diff --git a/core/priv/static/assets/app.css b/core/priv/static/assets/app.css deleted file mode 100644 index c8a66996d..000000000 --- a/core/priv/static/assets/app.css +++ /dev/null @@ -1,20863 +0,0 @@ -/* -! tailwindcss v3.3.6 | MIT License | https://tailwindcss.com -*/ - -/* -1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) -2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) -*/ - -*, -::before, -::after { - box-sizing: border-box; - /* 1 */ - border-width: 0; - /* 2 */ - border-style: solid; - /* 2 */ - border-color: currentColor; - /* 2 */ -} - -::before, -::after { - --tw-content: ''; -} - -/* -1. Use a consistent sensible line-height in all browsers. -2. Prevent adjustments of font size after orientation changes in iOS. -3. Use a more readable tab size. -4. Use the user's configured `sans` font-family by default. -5. Use the user's configured `sans` font-feature-settings by default. -6. Use the user's configured `sans` font-variation-settings by default. -*/ - -html { - line-height: 1.5; - /* 1 */ - -webkit-text-size-adjust: 100%; - /* 2 */ - -moz-tab-size: 4; - /* 3 */ - -o-tab-size: 4; - tab-size: 4; - /* 3 */ - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - /* 4 */ - font-feature-settings: normal; - /* 5 */ - font-variation-settings: normal; - /* 6 */ -} - -/* -1. Remove the margin in all browsers. -2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. -*/ - -body { - margin: 0; - /* 1 */ - line-height: inherit; - /* 2 */ -} - -/* -1. Add the correct height in Firefox. -2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) -3. Ensure horizontal rules are visible by default. -*/ - -hr { - height: 0; - /* 1 */ - color: inherit; - /* 2 */ - border-top-width: 1px; - /* 3 */ -} - -/* -Add the correct text decoration in Chrome, Edge, and Safari. -*/ - -abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; -} - -/* -Remove the default font size and weight for headings. -*/ - -h1, -h2, -h3, -h4, -h5, -h6 { - font-size: inherit; - font-weight: inherit; -} - -/* -Reset links to optimize for opt-in styling instead of opt-out. -*/ - -a { - color: inherit; - text-decoration: inherit; -} - -/* -Add the correct font weight in Edge and Safari. -*/ - -b, -strong { - font-weight: bolder; -} - -/* -1. Use the user's configured `mono` font-family by default. -2. Use the user's configured `mono` font-feature-settings by default. -3. Use the user's configured `mono` font-variation-settings by default. -4. Correct the odd `em` font sizing in all browsers. -*/ - -code, -kbd, -samp, -pre { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - /* 1 */ - font-feature-settings: normal; - /* 2 */ - font-variation-settings: normal; - /* 3 */ - font-size: 1em; - /* 4 */ -} - -/* -Add the correct font size in all browsers. -*/ - -small { - font-size: 80%; -} - -/* -Prevent `sub` and `sup` elements from affecting the line height in all browsers. -*/ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* -1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) -2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) -3. Remove gaps between table borders by default. -*/ - -table { - text-indent: 0; - /* 1 */ - border-color: inherit; - /* 2 */ - border-collapse: collapse; - /* 3 */ -} - -/* -1. Change the font styles in all browsers. -2. Remove the margin in Firefox and Safari. -3. Remove default padding in all browsers. -*/ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; - /* 1 */ - font-feature-settings: inherit; - /* 1 */ - font-variation-settings: inherit; - /* 1 */ - font-size: 100%; - /* 1 */ - font-weight: inherit; - /* 1 */ - line-height: inherit; - /* 1 */ - color: inherit; - /* 1 */ - margin: 0; - /* 2 */ - padding: 0; - /* 3 */ -} - -/* -Remove the inheritance of text transform in Edge and Firefox. -*/ - -button, -select { - text-transform: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Remove default button styles. -*/ - -button, -[type='button'], -[type='reset'], -[type='submit'] { - -webkit-appearance: button; - /* 1 */ - background-color: transparent; - /* 2 */ - background-image: none; - /* 2 */ -} - -/* -Use the modern Firefox focus style for all focusable elements. -*/ - -:-moz-focusring { - outline: auto; -} - -/* -Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) -*/ - -:-moz-ui-invalid { - box-shadow: none; -} - -/* -Add the correct vertical alignment in Chrome and Firefox. -*/ - -progress { - vertical-align: baseline; -} - -/* -Correct the cursor style of increment and decrement buttons in Safari. -*/ - -::-webkit-inner-spin-button, -::-webkit-outer-spin-button { - height: auto; -} - -/* -1. Correct the odd appearance in Chrome and Safari. -2. Correct the outline style in Safari. -*/ - -[type='search'] { - -webkit-appearance: textfield; - /* 1 */ - outline-offset: -2px; - /* 2 */ -} - -/* -Remove the inner padding in Chrome and Safari on macOS. -*/ - -::-webkit-search-decoration { - -webkit-appearance: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Change font properties to `inherit` in Safari. -*/ - -::-webkit-file-upload-button { - -webkit-appearance: button; - /* 1 */ - font: inherit; - /* 2 */ -} - -/* -Add the correct display in Chrome and Safari. -*/ - -summary { - display: list-item; -} - -/* -Removes the default spacing and border for appropriate elements. -*/ - -blockquote, -dl, -dd, -h1, -h2, -h3, -h4, -h5, -h6, -hr, -figure, -p, -pre { - margin: 0; -} - -fieldset { - margin: 0; - padding: 0; -} - -legend { - padding: 0; -} - -ol, -ul, -menu { - list-style: none; - margin: 0; - padding: 0; -} - -/* -Reset default styling for dialogs. -*/ - -dialog { - padding: 0; -} - -/* -Prevent resizing textareas horizontally by default. -*/ - -textarea { - resize: vertical; -} - -/* -1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) -2. Set the default placeholder color to the user's configured gray 400 color. -*/ - -input::-moz-placeholder, textarea::-moz-placeholder { - opacity: 1; - /* 1 */ - color: #9ca3af; - /* 2 */ -} - -input::placeholder, -textarea::placeholder { - opacity: 1; - /* 1 */ - color: #9ca3af; - /* 2 */ -} - -/* -Set the default cursor for buttons. -*/ - -button, -[role="button"] { - cursor: pointer; -} - -/* -Make sure disabled buttons don't get the pointer cursor. -*/ - -:disabled { - cursor: default; -} - -/* -1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) -2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) - This can trigger a poorly considered lint error in some tools but is included by design. -*/ - -img, -svg, -video, -canvas, -audio, -iframe, -embed, -object { - display: block; - /* 1 */ - vertical-align: middle; - /* 2 */ -} - -/* -Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) -*/ - -img, -video { - max-width: 100%; - height: auto; -} - -/* Make elements with the HTML hidden attribute stay hidden by default */ - -[hidden] { - display: none; -} - -*, ::before, ::after { - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-gradient-from-position: ; - --tw-gradient-via-position: ; - --tw-gradient-to-position: ; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; -} - -::backdrop { - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-gradient-from-position: ; - --tw-gradient-via-position: ; - --tw-gradient-to-position: ; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; -} - -.container { - width: 100%; -} - -@media (min-width: 640px) { - .container { - max-width: 640px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 768px; - } -} - -@media (min-width: 1024px) { - .container { - max-width: 1024px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1280px; - } -} - -@media (min-width: 1536px) { - .container { - max-width: 1536px; - } -} - -trix-toolbar { - margin-bottom: 1rem; - height: 2rem; -} - -trix-toolbar .trix-button-row { - height: 100%; - display: flex; - flex-wrap: nowrap; - justify-content: space-between; - overflow-x: auto; -} - -trix-toolbar .trix-button-group { - display: flex; - height: 100%; - overflow: hidden; - border-radius: 0.5rem; - border-width: 2px; - --tw-border-opacity: 1; - border-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -trix-toolbar .trix-button-group:not(:first-child) { - margin-left: 1.5vw; -} - -@media (max-width: 768px) { - trix-toolbar .trix-button-group:not(:first-child) { - margin-left: 0; - } -} - -trix-toolbar .trix-button-group-spacer { - flex-grow: 1; -} - -@media (max-width: 768px) { - trix-toolbar .trix-button-group-spacer { - display: none; - } -} - -trix-toolbar .trix-button { - height: 100%; - padding: 4px 4px 4px 4px; - position: relative; - float: left; - font-size: 0.75em; - font-weight: 600; - white-space: nowrap; - outline: none; - border: none; - padding: 4px; - border-radius: 0; - background: #fff; -} - -trix-toolbar .trix-button:not(:first-child) { - border-left: 1px solid #eee; -} - -trix-toolbar .trix-button.trix-active { - --tw-bg-opacity: 1; - background-color: rgb(227 234 253 / var(--tw-bg-opacity)); -} - -trix-toolbar .trix-button:not(:disabled) { - cursor: pointer; -} - -trix-toolbar .trix-button:disabled { - color: rgba(0, 0, 0, 0.3); -} - -@media (max-width: 768px) { - trix-toolbar .trix-button { - letter-spacing: -0.01em; - padding: 0 0.3em; - } -} - -trix-toolbar .trix-button--icon { - font-size: inherit; - width: 2.6em; - max-width: calc(0.8em + 4vw); - text-indent: -9999px; -} - -@media (max-width: 768px) { - trix-toolbar .trix-button--icon { - height: 100%; - max-width: calc(0.8em + 3.5vw); - } -} - -trix-toolbar .trix-button--icon::before { - display: inline-block; - position: absolute; - top: 4px; - right: 4px; - bottom: 4px; - left: 4px; - content: ""; - background-position: center; - background-repeat: no-repeat; - background-size: contain; -} - -@media (max-width: 768px) { - trix-toolbar .trix-button--icon::before { - right: 6%; - left: 6%; - } -} - -trix-toolbar .trix-button--icon:disabled::before { - opacity: 0.3; -} - -.trix-button-group--file-tools { - border: 0 !important; -} - -.trix-button--icon-attach, -.trix-button--icon-decrease-nesting-level, -.trix-button--icon-increase-nesting-level { - display: none; -} - -trix-toolbar .trix-button--icon-attach::before { - background-image: url('/images/wysiwyg/attach.svg'); -} - -trix-toolbar .trix-button--icon-bold::before { - background-image: url('/images/wysiwyg/bold.svg'); -} - -trix-toolbar .trix-button--icon-italic::before { - background-image: url('/images/wysiwyg/italic.svg'); -} - -trix-toolbar .trix-button--icon-link::before { - background-image: url('/images/wysiwyg/link.svg'); -} - -trix-toolbar .trix-button--icon-strike::before { - background-image: url('/images/wysiwyg/strike.svg'); -} - -trix-toolbar .trix-button--icon-quote::before { - background-image: url('/images/wysiwyg/quote.svg'); -} - -trix-toolbar .trix-button--icon-heading-1::before { - background-image: url('/images/wysiwyg/heading.svg'); -} - -trix-toolbar .trix-button--icon-code::before { - background-image: url('/images/wysiwyg/code.svg'); -} - -trix-toolbar .trix-button--icon-bullet-list::before { - background-image: url('/images/wysiwyg/list_bullet.svg'); -} - -trix-toolbar .trix-button--icon-number-list::before { - background-image: url('/images/wysiwyg/list_number.svg'); -} - -trix-toolbar .trix-button--icon-undo::before { - background-image: url('/images/wysiwyg/history_undo.svg'); -} - -trix-toolbar .trix-button--icon-redo::before { - background-image: url('/images/wysiwyg/history_redo.svg'); -} - -trix-toolbar .trix-button--icon-decrease-nesting-level::before { - background-image: url('/images/wysiwyg/nesting_level_decrease.svg'); -} - -trix-toolbar .trix-button--icon-increase-nesting-level::before { - background-image: url('/images/wysiwyg/nesting_level_increase.svg'); -} - -trix-toolbar .trix-dialogs { - position: relative; -} - -trix-toolbar .trix-dialog { - position: absolute; - left: 0px; - right: 0px; - top: 1rem; - z-index: 10; - border-radius: 0.5rem; - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); - padding: 1rem; - --tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1)); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -trix-toolbar .trix-input--dialog { - height: 3rem; - border-radius: 0.25rem; - border-width: 2px; - --tw-border-opacity: 1; - border-color: rgb(204 204 204 / var(--tw-border-opacity)); - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); - padding-left: 1rem; - font-family: Finador-Light, sans-serif; - font-size: 20px; - line-height: 30px; - --tw-text-opacity: 1; - color: rgb(34 34 34 / var(--tw-text-opacity)); -} - -trix-toolbar .trix-input--dialog::-moz-placeholder { - --tw-placeholder-opacity: 1; - color: rgb(153 153 153 / var(--tw-placeholder-opacity)); -} - -trix-toolbar .trix-input--dialog::placeholder { - --tw-placeholder-opacity: 1; - color: rgb(153 153 153 / var(--tw-placeholder-opacity)); -} - -trix-toolbar .trix-input--dialog { - outline: 2px solid transparent; - outline-offset: 2px; -} - -trix-toolbar .trix-input--dialog:focus { - --tw-border-opacity: 1; - border-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -trix-toolbar .trix-input--dialog.validate:invalid { - --tw-border-opacity: 1; - border-color: rgb(242 141 21 / var(--tw-border-opacity)); - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - -trix-toolbar [data-trix-dialog] [data-trix-validate]:invalid { - --tw-border-opacity: 1; - border-color: rgb(242 141 21 / var(--tw-border-opacity)); - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - -trix-toolbar .trix-button--dialog { - font-family: Finador-Bold, sans-serif; - font-size: 18px; - line-height: 18px; - --tw-text-opacity: 1; - color: rgb(66 114 239 / var(--tw-text-opacity)); -} - -trix-toolbar .trix-dialog__link-fields .trix-button-group { - height: 2rem; -} - -trix-toolbar .trix-dialog__link-fields .trix-button { - padding-left: 1rem; - padding-right: 1rem; -} - -trix-toolbar .trix-dialog--link { - max-width: 600px; -} - -trix-toolbar .trix-dialog__link-fields { - display: flex; - align-items: baseline; -} - -trix-toolbar .trix-dialog__link-fields .trix-input { - flex: 1; -} - -trix-editor, -.wysiwyg { - width: 100%; - font-family: Finador-Light, sans-serif; - font-size: 24px; - line-height: 36px; - --tw-text-opacity: 1; - color: rgb(34 34 34 / var(--tw-text-opacity)); - outline: 2px solid transparent; - outline-offset: 2px; -} - -trix-editor h1, -.wysiwyg h1 { - margin-bottom: 2rem; - font-family: Finador-Black, sans-serif; - font-size: 32px; - line-height: 38px; -} - -trix-editor h2, -.wysiwyg h2 { - margin-bottom: 2rem; - font-family: Finador-Black, sans-serif; - font-size: 28px; - line-height: 32px; -} - -trix-editor h3, -.wysiwyg h3 { - margin-bottom: 2rem; - font-family: Finador-Bold, sans-serif; - font-size: 24px; - line-height: 26px; -} - -trix-editor strong, -.wysiwyg strong { - font-family: Finador-Bold, sans-serif; - font-weight: 700; -} - -trix-editor h1 strong, -.wysiwyg h1 strong { - font-family: Finador-Black, sans-serif; -} - -trix-editor h2 strong, -.wysiwyg h2 strong { - font-family: Finador-Black, sans-serif; -} - -trix-editor h3 strong, -.wysiwyg h3 strong { - font-family: Finador-Black, sans-serif; -} - -trix-editor strong, -.wysiwyg strong { - font-family: Finador-Bold, sans-serif; - font-weight: 700; -} - -trix-editor a, -.wysiwyg a { - --tw-text-opacity: 1; - color: rgb(66 114 239 / var(--tw-text-opacity)); -} - -.wysiwyg-dark a { - --tw-text-opacity: 1; - color: rgb(255 207 96 / var(--tw-text-opacity)); -} - -trix-editor a:not(.no-underline), -.wysiwyg a:not(.no-underline) { - cursor: pointer; - text-decoration-line: underline; -} - -trix-editor ul, -.wysiwyg ul { - margin-bottom: 2rem; - list-style-type: none; -} - -trix-editor ul li::before, -.wysiwyg ul li::before { - background-image: url('/images/wysiwyg/bullet.svg'); - --tw-text-opacity: 1; - color: rgb(66 114 239 / var(--tw-text-opacity)); - vertical-align: center; - content: "\2022"; - /* Add content: \2022 is the CSS Code/unicode for a bullet */ - display: inline-block; - /* Needed to add space between the bullet and the text */ - width: 30px; - /* Also needed for space (tweak if needed) */ - margin-left: 6px; - /* Also needed for space (tweak if needed) */ - background-size: 10px 10px; - background-repeat: no-repeat; - background-position: left center; -} - -trix-editor ol, -.wysiwyg ol { - margin-bottom: 2rem; - list-style-type: none; - counter-reset: li; -} - -trix-editor ol li::before, -.wysiwyg ol li::before { - font-family: Finador-Bold, sans-serif; - font-size: 24px; - line-height: 26px; - content: counter(li) "."; - color: #4272EF; - display: inline-block; - width: 30px; - /* Also needed for space (tweak if needed) */ - margin-left: 6px; - /* Also needed for space (tweak if needed) */ -} - -trix-editor ol li, -.wysiwyg ol li { - counter-increment: li; -} - -trix-editor pre, -.wysiwyg pre { - position: relative; - margin-bottom: 2rem; - width: 100%; - white-space: pre-wrap; - border-radius: 0.5rem; - --tw-bg-opacity: 1; - background-color: rgb(246 246 246 / var(--tw-bg-opacity)); - padding: 2rem; - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - font-size: 20px; - line-height: 24px; - --tw-text-opacity: 1; - color: rgb(153 153 153 / var(--tw-text-opacity)); - vertical-align: top; -} - -trix-editor blockquote, -.wysiwyg blockquote { - position: relative; - margin-bottom: 2rem; - padding-left: 2.75rem; - padding-right: 2.75rem; - font-family: Finador-Bold, sans-serif; - font-size: 24px; - line-height: 30px; -} - -trix-editor blockquote::before, -.wysiwyg blockquote::before { - position: absolute; - left: -2px; - top: 6px; - font-family: Finador-Black, sans-serif; - font-size: 64px; - line-height: 68px; - --tw-text-opacity: 1; - color: rgb(66 114 239 / var(--tw-text-opacity)); - vertical-align: center; - content: "”"; - width: 0px; -} - -/* DARK MODE */ - -.wysiwyg-dark { - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.wysiwyg-dark ul li::before { - background-image: url('/images/wysiwyg/bullet-secondary.svg'); - --tw-text-opacity: 1; - color: rgb(255 207 96 / var(--tw-text-opacity)); -} - -.wysiwyg-dark ol li::before { - content: counter(li) "."; - color: #FF5E5E; -} - -.wysiwyg-dark blockquote::before { - --tw-text-opacity: 1; - color: rgb(255 207 96 / var(--tw-text-opacity)); -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.pointer-events-none { - pointer-events: none; -} - -.pointer-events-auto { - pointer-events: auto; -} - -.visible { - visibility: visible; -} - -.invisible { - visibility: hidden; -} - -.collapse { - visibility: collapse; -} - -.static { - position: static; -} - -.fixed { - position: fixed; -} - -.absolute { - position: absolute; -} - -.relative { - position: relative; -} - -.sticky { - position: sticky; -} - -.inset-0 { - inset: 0px; -} - -.-inset-y-px { - top: -1px; - bottom: -1px; -} - -.-left-4 { - left: -1rem; -} - -.-right-10 { - right: -2.5rem; -} - -.-right-4 { - right: -1rem; -} - -.bottom-0 { - bottom: 0px; -} - -.bottom-6 { - bottom: 1.5rem; -} - -.left-0 { - left: 0px; -} - -.right-0 { - right: 0px; -} - -.right-1 { - right: 0.25rem; -} - -.right-14px { - right: 14px; -} - -.right-2 { - right: 0.5rem; -} - -.right-5 { - right: 1.25rem; -} - -.right-6 { - right: 1.5rem; -} - -.top-0 { - top: 0px; -} - -.top-1 { - top: 0.25rem; -} - -.top-2 { - top: 0.5rem; -} - -.top-48px { - top: 48px; -} - -.top-6 { - top: 1.5rem; -} - -.top-navbar-height { - top: 90px; -} - -.z-10 { - z-index: 10; -} - -.z-20 { - z-index: 20; -} - -.z-30 { - z-index: 30; -} - -.z-40 { - z-index: 40; -} - -.z-50 { - z-index: 50; -} - -.col-span-3 { - grid-column: span 3 / span 3; -} - -.float-right { - float: right; -} - -.-m-3 { - margin: -0.75rem; -} - -.m-0 { - margin: 0px; -} - -.-my-4 { - margin-top: -1rem; - margin-bottom: -1rem; -} - -.mx-10 { - margin-left: 2.5rem; - margin-right: 2.5rem; -} - -.mx-6 { - margin-left: 1.5rem; - margin-right: 1.5rem; -} - -.mx-auto { - margin-left: auto; - margin-right: auto; -} - -.my-6 { - margin-top: 1.5rem; - margin-bottom: 1.5rem; -} - -.-mb-8 { - margin-bottom: -2rem; -} - -.-mt-1 { - margin-top: -0.25rem; -} - -.-mt-2px { - margin-top: -2px; -} - -.-mt-6 { - margin-top: -1.5rem; -} - -.mb-0 { - margin-bottom: 0px; -} - -.mb-1 { - margin-bottom: 0.25rem; -} - -.mb-12 { - margin-bottom: 3rem; -} - -.mb-2 { - margin-bottom: 0.5rem; -} - -.mb-20 { - margin-bottom: 5rem; -} - -.mb-3 { - margin-bottom: 0.75rem; -} - -.mb-4 { - margin-bottom: 1rem; -} - -.mb-5 { - margin-bottom: 1.25rem; -} - -.mb-6 { - margin-bottom: 1.5rem; -} - -.mb-7 { - margin-bottom: 1.75rem; -} - -.mb-8 { - margin-bottom: 2rem; -} - -.mb-9 { - margin-bottom: 2.25rem; -} - -.ml-1 { - margin-left: 0.25rem; -} - -.ml-10 { - margin-left: 2.5rem; -} - -.ml-12 { - margin-left: 3rem; -} - -.ml-16 { - margin-left: 4rem; -} - -.ml-2 { - margin-left: 0.5rem; -} - -.ml-2px { - margin-left: 2px; -} - -.ml-3 { - margin-left: 0.75rem; -} - -.ml-4 { - margin-left: 1rem; -} - -.ml-6 { - margin-left: 1.5rem; -} - -.ml-8 { - margin-left: 2rem; -} - -.ml-\[6px\] { - margin-left: 6px; -} - -.mr-1 { - margin-right: 0.25rem; -} - -.mr-1px { - margin-right: 1px; -} - -.mr-2 { - margin-right: 0.5rem; -} - -.mr-3 { - margin-right: 0.75rem; -} - -.mr-4 { - margin-right: 1rem; -} - -.mr-6 { - margin-right: 1.5rem; -} - -.mr-8 { - margin-right: 2rem; -} - -.mr-px { - margin-right: 1px; -} - -.mt-0 { - margin-top: 0px; -} - -.mt-0\.5 { - margin-top: 0.125rem; -} - -.mt-1 { - margin-top: 0.25rem; -} - -.mt-10 { - margin-top: 2.5rem; -} - -.mt-11 { - margin-top: 2.75rem; -} - -.mt-12 { - margin-top: 3rem; -} - -.mt-14 { - margin-top: 3.5rem; -} - -.mt-16 { - margin-top: 4rem; -} - -.mt-1px { - margin-top: 1px; -} - -.mt-2 { - margin-top: 0.5rem; -} - -.mt-2px { - margin-top: 2px; -} - -.mt-3 { - margin-top: 0.75rem; -} - -.mt-4 { - margin-top: 1rem; -} - -.mt-5 { - margin-top: 1.25rem; -} - -.mt-6 { - margin-top: 1.5rem; -} - -.mt-8 { - margin-top: 2rem; -} - -.mt-navbar-height { - margin-top: 90px; -} - -.mt-px { - margin-top: 1px; -} - -.block { - display: block; -} - -.inline-block { - display: inline-block; -} - -.inline { - display: inline; -} - -.flex { - display: flex; -} - -.table { - display: table; -} - -.grid { - display: grid; -} - -.contents { - display: contents; -} - -.hidden { - display: none; -} - -.h-10 { - height: 2.5rem; -} - -.h-11 { - height: 2.75rem; -} - -.h-12 { - height: 3rem; -} - -.h-14 { - height: 3.5rem; -} - -.h-16 { - height: 4rem; -} - -.h-18px { - height: 18px; -} - -.h-1px { - height: 1px; -} - -.h-2 { - height: 0.5rem; -} - -.h-20 { - height: 5rem; -} - -.h-200px { - height: 200px; -} - -.h-24 { - height: 6rem; -} - -.h-248px { - height: 248px; -} - -.h-2px { - height: 2px; -} - -.h-3 { - height: 0.75rem; -} - -.h-4 { - height: 1rem; -} - -.h-40 { - height: 10rem; -} - -.h-44px { - height: 44px; -} - -.h-48px { - height: 48px; -} - -.h-5 { - height: 1.25rem; -} - -.h-6 { - height: 1.5rem; -} - -.h-64 { - height: 16rem; -} - -.h-8 { - height: 2rem; -} - -.h-\[150px\] { - height: 150px; -} - -.h-\[180px\] { - height: 180px; -} - -.h-\[96px\] { - height: 96px; -} - -.h-border { - height: 2px; -} - -.h-button-sm { - height: 14px; -} - -.h-file-selector { - height: 96px; -} - -.h-footer { - height: 48px; -} - -.h-full { - height: 100%; -} - -.h-header1 { - height: 100px; -} - -.h-header2 { - height: 100px; -} - -.h-image-card { - height: 200px; -} - -.h-image-preview { - height: 90px; -} - -.h-image-preview-circle { - height: 120px; -} - -.h-lab-day-popup-list { - height: 392px; -} - -.h-navbar-height { - height: 90px; -} - -.h-platform-footer-height { - height: 62px; -} - -.h-px { - height: 1px; -} - -.h-topbar { - height: 64px; -} - -.max-h-dropdown { - max-height: 317px; -} - -.max-h-mailto { - max-height: 128px; -} - -.max-h-wysiwyg-editor { - max-height: 960px; -} - -.min-h-\[6rem\] { - min-height: 6rem; -} - -.min-h-full { - min-height: 100%; -} - -.min-h-wysiwyg-editor { - min-height: 512px; -} - -.w-0 { - width: 0px; -} - -.w-1\/4 { - width: 25%; -} - -.w-10 { - width: 2.5rem; -} - -.w-12 { - width: 3rem; -} - -.w-14 { - width: 3.5rem; -} - -.w-16 { - width: 4rem; -} - -.w-20 { - width: 5rem; -} - -.w-200px { - width: 200px; -} - -.w-24 { - width: 6rem; -} - -.w-28 { - width: 7rem; -} - -.w-3 { - width: 0.75rem; -} - -.w-30 { - width: 120px; -} - -.w-32 { - width: 8rem; -} - -.w-4 { - width: 1rem; -} - -.w-40 { - width: 10rem; -} - -.w-5 { - width: 1.25rem; -} - -.w-6 { - width: 1.5rem; -} - -.w-64px { - width: 64px; -} - -.w-8 { - width: 2rem; -} - -.w-80 { - width: 20rem; -} - -.w-\[240px\] { - width: 240px; -} - -.w-\[40rem\] { - width: 40rem; -} - -.w-\[700px\] { - width: 700px; -} - -.w-\[960px\] { - width: 960px; -} - -.w-\[96px\] { - width: 96px; -} - -.w-action_menu-width { - width: 180px; -} - -.w-button-sm { - width: 14px; -} - -.w-desktop-menu-width { - width: 296px; -} - -.w-form { - width: 400px; -} - -.w-full { - width: 100%; -} - -.w-illustration { - width: 188px; -} - -.w-image-preview { - width: 120px; -} - -.w-image-preview-circle { - width: 120px; -} - -.w-left-column { - width: 368px; -} - -.w-mobile-menu-width { - width: 256px; -} - -.w-popup-md { - width: 730px; -} - -.w-side-panel { - width: 535px; -} - -.w-tablet-menu-width { - width: 72px; -} - -.min-w-1\/2 { - min-width: 50%; -} - -.max-w-3xl { - max-width: 48rem; -} - -.max-w-9\/10 { - max-width: 90%; -} - -.max-w-form { - max-width: 400px; -} - -.max-w-popup { - max-width: 480px; -} - -.max-w-sm { - max-width: 24rem; -} - -.flex-1 { - flex: 1 1 0%; -} - -.flex-none { - flex: none; -} - -.flex-shrink-0 { - flex-shrink: 0; -} - -.shrink-0 { - flex-shrink: 0; -} - -.flex-grow { - flex-grow: 1; -} - -.grow { - flex-grow: 1; -} - -.table-auto { - table-layout: auto; -} - -.table-fixed { - table-layout: fixed; -} - -.border-collapse { - border-collapse: collapse; -} - -.border-separate { - border-collapse: separate; -} - -.border-spacing-0 { - --tw-border-spacing-x: 0px; - --tw-border-spacing-y: 0px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-0\.5 { - --tw-border-spacing-x: 0.125rem; - --tw-border-spacing-y: 0.125rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-1 { - --tw-border-spacing-x: 0.25rem; - --tw-border-spacing-y: 0.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-1\.5 { - --tw-border-spacing-x: 0.375rem; - --tw-border-spacing-y: 0.375rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-10 { - --tw-border-spacing-x: 2.5rem; - --tw-border-spacing-y: 2.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-10px { - --tw-border-spacing-x: 10px; - --tw-border-spacing-y: 10px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-11 { - --tw-border-spacing-x: 2.75rem; - --tw-border-spacing-y: 2.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-11px { - --tw-border-spacing-x: 11px; - --tw-border-spacing-y: 11px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-12 { - --tw-border-spacing-x: 3rem; - --tw-border-spacing-y: 3rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-13px { - --tw-border-spacing-x: 13px; - --tw-border-spacing-y: 13px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-14 { - --tw-border-spacing-x: 3.5rem; - --tw-border-spacing-y: 3.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-14px { - --tw-border-spacing-x: 14px; - --tw-border-spacing-y: 14px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-15 { - --tw-border-spacing-x: 60px; - --tw-border-spacing-y: 60px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-15px { - --tw-border-spacing-x: 15px; - --tw-border-spacing-y: 15px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-16 { - --tw-border-spacing-x: 4rem; - --tw-border-spacing-y: 4rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-17px { - --tw-border-spacing-x: 17px; - --tw-border-spacing-y: 17px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-18px { - --tw-border-spacing-x: 18px; - --tw-border-spacing-y: 18px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-19px { - --tw-border-spacing-x: 19px; - --tw-border-spacing-y: 19px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-1px { - --tw-border-spacing-x: 1px; - --tw-border-spacing-y: 1px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-2 { - --tw-border-spacing-x: 0.5rem; - --tw-border-spacing-y: 0.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-2\.5 { - --tw-border-spacing-x: 0.625rem; - --tw-border-spacing-y: 0.625rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-20 { - --tw-border-spacing-x: 5rem; - --tw-border-spacing-y: 5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-200px { - --tw-border-spacing-x: 200px; - --tw-border-spacing-y: 200px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-224px { - --tw-border-spacing-x: 224px; - --tw-border-spacing-y: 224px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-22px { - --tw-border-spacing-x: 22px; - --tw-border-spacing-y: 22px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-24 { - --tw-border-spacing-x: 6rem; - --tw-border-spacing-y: 6rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-248px { - --tw-border-spacing-x: 248px; - --tw-border-spacing-y: 248px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-28 { - --tw-border-spacing-x: 7rem; - --tw-border-spacing-y: 7rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-2px { - --tw-border-spacing-x: 2px; - --tw-border-spacing-y: 2px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-3 { - --tw-border-spacing-x: 0.75rem; - --tw-border-spacing-y: 0.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-3\.5 { - --tw-border-spacing-x: 0.875rem; - --tw-border-spacing-y: 0.875rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-30 { - --tw-border-spacing-x: 120px; - --tw-border-spacing-y: 120px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-30px { - --tw-border-spacing-x: 30px; - --tw-border-spacing-y: 30px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-32 { - --tw-border-spacing-x: 8rem; - --tw-border-spacing-y: 8rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-34 { - --tw-border-spacing-x: 136px; - --tw-border-spacing-y: 136px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-35 { - --tw-border-spacing-x: 140px; - --tw-border-spacing-y: 140px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-36 { - --tw-border-spacing-x: 9rem; - --tw-border-spacing-y: 9rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-3px { - --tw-border-spacing-x: 3px; - --tw-border-spacing-y: 3px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-4 { - --tw-border-spacing-x: 1rem; - --tw-border-spacing-y: 1rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-40 { - --tw-border-spacing-x: 10rem; - --tw-border-spacing-y: 10rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-44 { - --tw-border-spacing-x: 11rem; - --tw-border-spacing-y: 11rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-44px { - --tw-border-spacing-x: 44px; - --tw-border-spacing-y: 44px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-48 { - --tw-border-spacing-x: 12rem; - --tw-border-spacing-y: 12rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-48px { - --tw-border-spacing-x: 48px; - --tw-border-spacing-y: 48px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-5 { - --tw-border-spacing-x: 1.25rem; - --tw-border-spacing-y: 1.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-52 { - --tw-border-spacing-x: 13rem; - --tw-border-spacing-y: 13rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-56 { - --tw-border-spacing-x: 14rem; - --tw-border-spacing-y: 14rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-5px { - --tw-border-spacing-x: 5px; - --tw-border-spacing-y: 5px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-6 { - --tw-border-spacing-x: 1.5rem; - --tw-border-spacing-y: 1.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-60 { - --tw-border-spacing-x: 15rem; - --tw-border-spacing-y: 15rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-60px { - --tw-border-spacing-x: 60px; - --tw-border-spacing-y: 60px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-64 { - --tw-border-spacing-x: 16rem; - --tw-border-spacing-y: 16rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-64px { - --tw-border-spacing-x: 64px; - --tw-border-spacing-y: 64px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-6px { - --tw-border-spacing-x: 6px; - --tw-border-spacing-y: 6px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-7 { - --tw-border-spacing-x: 1.75rem; - --tw-border-spacing-y: 1.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-72 { - --tw-border-spacing-x: 18rem; - --tw-border-spacing-y: 18rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-7px { - --tw-border-spacing-x: 7px; - --tw-border-spacing-y: 7px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-8 { - --tw-border-spacing-x: 2rem; - --tw-border-spacing-y: 2rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-80 { - --tw-border-spacing-x: 20rem; - --tw-border-spacing-y: 20rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-84px { - --tw-border-spacing-x: 84px; - --tw-border-spacing-y: 84px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-9 { - --tw-border-spacing-x: 2.25rem; - --tw-border-spacing-y: 2.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-96 { - --tw-border-spacing-x: 24rem; - --tw-border-spacing-y: 24rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-9px { - --tw-border-spacing-x: 9px; - --tw-border-spacing-y: 9px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-action_menu-width { - --tw-border-spacing-x: 180px; - --tw-border-spacing-y: 180px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-border { - --tw-border-spacing-x: 2px; - --tw-border-spacing-y: 2px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-desktop-menu-bottom-padding { - --tw-border-spacing-x: 54px; - --tw-border-spacing-y: 54px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-desktop-menu-width { - --tw-border-spacing-x: 296px; - --tw-border-spacing-y: 296px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-dialog-width { - --tw-border-spacing-x: 320px; - --tw-border-spacing-y: 320px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-dialog-width-sm { - --tw-border-spacing-x: 400px; - --tw-border-spacing-y: 400px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-mobile-menu-width { - --tw-border-spacing-x: 256px; - --tw-border-spacing-y: 256px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-navbar-height { - --tw-border-spacing-x: 90px; - --tw-border-spacing-y: 90px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-platform-footer-height { - --tw-border-spacing-x: 62px; - --tw-border-spacing-y: 62px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-px { - --tw-border-spacing-x: 1px; - --tw-border-spacing-y: 1px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-sidepadding { - --tw-border-spacing-x: 64px; - --tw-border-spacing-y: 64px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-tablet-menu-width { - --tw-border-spacing-x: 72px; - --tw-border-spacing-y: 72px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-0 { - --tw-border-spacing-x: 0px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-0\.5 { - --tw-border-spacing-x: 0.125rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-1 { - --tw-border-spacing-x: 0.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-1\.5 { - --tw-border-spacing-x: 0.375rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-10 { - --tw-border-spacing-x: 2.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-10px { - --tw-border-spacing-x: 10px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-11 { - --tw-border-spacing-x: 2.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-11px { - --tw-border-spacing-x: 11px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-12 { - --tw-border-spacing-x: 3rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-13px { - --tw-border-spacing-x: 13px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-14 { - --tw-border-spacing-x: 3.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-14px { - --tw-border-spacing-x: 14px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-15 { - --tw-border-spacing-x: 60px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-15px { - --tw-border-spacing-x: 15px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-16 { - --tw-border-spacing-x: 4rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-17px { - --tw-border-spacing-x: 17px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-18px { - --tw-border-spacing-x: 18px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-19px { - --tw-border-spacing-x: 19px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-1px { - --tw-border-spacing-x: 1px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-2 { - --tw-border-spacing-x: 0.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-2\.5 { - --tw-border-spacing-x: 0.625rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-20 { - --tw-border-spacing-x: 5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-200px { - --tw-border-spacing-x: 200px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-224px { - --tw-border-spacing-x: 224px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-22px { - --tw-border-spacing-x: 22px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-24 { - --tw-border-spacing-x: 6rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-248px { - --tw-border-spacing-x: 248px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-28 { - --tw-border-spacing-x: 7rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-2px { - --tw-border-spacing-x: 2px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-3 { - --tw-border-spacing-x: 0.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-3\.5 { - --tw-border-spacing-x: 0.875rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-30 { - --tw-border-spacing-x: 120px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-30px { - --tw-border-spacing-x: 30px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-32 { - --tw-border-spacing-x: 8rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-34 { - --tw-border-spacing-x: 136px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-35 { - --tw-border-spacing-x: 140px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-36 { - --tw-border-spacing-x: 9rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-3px { - --tw-border-spacing-x: 3px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-4 { - --tw-border-spacing-x: 1rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-40 { - --tw-border-spacing-x: 10rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-44 { - --tw-border-spacing-x: 11rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-44px { - --tw-border-spacing-x: 44px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-48 { - --tw-border-spacing-x: 12rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-48px { - --tw-border-spacing-x: 48px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-5 { - --tw-border-spacing-x: 1.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-52 { - --tw-border-spacing-x: 13rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-56 { - --tw-border-spacing-x: 14rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-5px { - --tw-border-spacing-x: 5px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-6 { - --tw-border-spacing-x: 1.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-60 { - --tw-border-spacing-x: 15rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-60px { - --tw-border-spacing-x: 60px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-64 { - --tw-border-spacing-x: 16rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-64px { - --tw-border-spacing-x: 64px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-6px { - --tw-border-spacing-x: 6px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-7 { - --tw-border-spacing-x: 1.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-72 { - --tw-border-spacing-x: 18rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-7px { - --tw-border-spacing-x: 7px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-8 { - --tw-border-spacing-x: 2rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-80 { - --tw-border-spacing-x: 20rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-84px { - --tw-border-spacing-x: 84px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-9 { - --tw-border-spacing-x: 2.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-96 { - --tw-border-spacing-x: 24rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-9px { - --tw-border-spacing-x: 9px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-action_menu-width { - --tw-border-spacing-x: 180px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-border { - --tw-border-spacing-x: 2px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-desktop-menu-bottom-padding { - --tw-border-spacing-x: 54px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-desktop-menu-width { - --tw-border-spacing-x: 296px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-dialog-width { - --tw-border-spacing-x: 320px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-dialog-width-sm { - --tw-border-spacing-x: 400px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-mobile-menu-width { - --tw-border-spacing-x: 256px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-navbar-height { - --tw-border-spacing-x: 90px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-platform-footer-height { - --tw-border-spacing-x: 62px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-px { - --tw-border-spacing-x: 1px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-sidepadding { - --tw-border-spacing-x: 64px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-x-tablet-menu-width { - --tw-border-spacing-x: 72px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-0 { - --tw-border-spacing-y: 0px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-0\.5 { - --tw-border-spacing-y: 0.125rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-1 { - --tw-border-spacing-y: 0.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-1\.5 { - --tw-border-spacing-y: 0.375rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-10 { - --tw-border-spacing-y: 2.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-10px { - --tw-border-spacing-y: 10px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-11 { - --tw-border-spacing-y: 2.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-11px { - --tw-border-spacing-y: 11px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-12 { - --tw-border-spacing-y: 3rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-13px { - --tw-border-spacing-y: 13px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-14 { - --tw-border-spacing-y: 3.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-14px { - --tw-border-spacing-y: 14px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-15 { - --tw-border-spacing-y: 60px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-15px { - --tw-border-spacing-y: 15px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-16 { - --tw-border-spacing-y: 4rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-17px { - --tw-border-spacing-y: 17px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-18px { - --tw-border-spacing-y: 18px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-19px { - --tw-border-spacing-y: 19px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-1px { - --tw-border-spacing-y: 1px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-2 { - --tw-border-spacing-y: 0.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-2\.5 { - --tw-border-spacing-y: 0.625rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-20 { - --tw-border-spacing-y: 5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-200px { - --tw-border-spacing-y: 200px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-224px { - --tw-border-spacing-y: 224px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-22px { - --tw-border-spacing-y: 22px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-24 { - --tw-border-spacing-y: 6rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-248px { - --tw-border-spacing-y: 248px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-28 { - --tw-border-spacing-y: 7rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-2px { - --tw-border-spacing-y: 2px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-3 { - --tw-border-spacing-y: 0.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-3\.5 { - --tw-border-spacing-y: 0.875rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-30 { - --tw-border-spacing-y: 120px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-30px { - --tw-border-spacing-y: 30px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-32 { - --tw-border-spacing-y: 8rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-34 { - --tw-border-spacing-y: 136px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-35 { - --tw-border-spacing-y: 140px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-36 { - --tw-border-spacing-y: 9rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-3px { - --tw-border-spacing-y: 3px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-4 { - --tw-border-spacing-y: 1rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-40 { - --tw-border-spacing-y: 10rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-44 { - --tw-border-spacing-y: 11rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-44px { - --tw-border-spacing-y: 44px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-48 { - --tw-border-spacing-y: 12rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-48px { - --tw-border-spacing-y: 48px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-5 { - --tw-border-spacing-y: 1.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-52 { - --tw-border-spacing-y: 13rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-56 { - --tw-border-spacing-y: 14rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-5px { - --tw-border-spacing-y: 5px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-6 { - --tw-border-spacing-y: 1.5rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-60 { - --tw-border-spacing-y: 15rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-60px { - --tw-border-spacing-y: 60px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-64 { - --tw-border-spacing-y: 16rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-64px { - --tw-border-spacing-y: 64px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-6px { - --tw-border-spacing-y: 6px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-7 { - --tw-border-spacing-y: 1.75rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-72 { - --tw-border-spacing-y: 18rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-7px { - --tw-border-spacing-y: 7px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-8 { - --tw-border-spacing-y: 2rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-80 { - --tw-border-spacing-y: 20rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-84px { - --tw-border-spacing-y: 84px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-9 { - --tw-border-spacing-y: 2.25rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-96 { - --tw-border-spacing-y: 24rem; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-9px { - --tw-border-spacing-y: 9px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-action_menu-width { - --tw-border-spacing-y: 180px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-border { - --tw-border-spacing-y: 2px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-desktop-menu-bottom-padding { - --tw-border-spacing-y: 54px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-desktop-menu-width { - --tw-border-spacing-y: 296px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-dialog-width { - --tw-border-spacing-y: 320px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-dialog-width-sm { - --tw-border-spacing-y: 400px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-mobile-menu-width { - --tw-border-spacing-y: 256px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-navbar-height { - --tw-border-spacing-y: 90px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-platform-footer-height { - --tw-border-spacing-y: 62px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-px { - --tw-border-spacing-y: 1px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-sidepadding { - --tw-border-spacing-y: 64px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.border-spacing-y-tablet-menu-width { - --tw-border-spacing-y: 72px; - border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y); -} - -.translate-y-0 { - --tw-translate-y: 0px; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - -.translate-y-4 { - --tw-translate-y: 1rem; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - -.transform { - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - -@keyframes spin { - to { - transform: rotate(360deg); - } -} - -.animate-spin { - animation: spin 1s linear infinite; -} - -.cursor-not-allowed { - cursor: not-allowed; -} - -.cursor-pointer { - cursor: pointer; -} - -.select-none { - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; -} - -.resize { - resize: both; -} - -.appearance-none { - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.grid-cols-1 { - grid-template-columns: repeat(1, minmax(0, 1fr)); -} - -.grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); -} - -.grid-cols-3 { - grid-template-columns: repeat(3, minmax(0, 1fr)); -} - -.flex-row { - flex-direction: row; -} - -.flex-col { - flex-direction: column; -} - -.flex-col-reverse { - flex-direction: column-reverse; -} - -.flex-wrap { - flex-wrap: wrap; -} - -.items-center { - align-items: center; -} - -.items-stretch { - align-items: stretch; -} - -.justify-start { - justify-content: flex-start; -} - -.justify-end { - justify-content: flex-end; -} - -.justify-center { - justify-content: center; -} - -.justify-between { - justify-content: space-between; -} - -.gap-0 { - gap: 0px; -} - -.gap-1 { - gap: 0.25rem; -} - -.gap-1\.5 { - gap: 0.375rem; -} - -.gap-10 { - gap: 2.5rem; -} - -.gap-12 { - gap: 3rem; -} - -.gap-14 { - gap: 3.5rem; -} - -.gap-2 { - gap: 0.5rem; -} - -.gap-20 { - gap: 5rem; -} - -.gap-3 { - gap: 0.75rem; -} - -.gap-4 { - gap: 1rem; -} - -.gap-5 { - gap: 1.25rem; -} - -.gap-6 { - gap: 1.5rem; -} - -.gap-8 { - gap: 2rem; -} - -.gap-\[18px\] { - gap: 18px; -} - -.gap-x-10 { - -moz-column-gap: 2.5rem; - column-gap: 2.5rem; -} - -.gap-x-12 { - -moz-column-gap: 3rem; - column-gap: 3rem; -} - -.gap-x-4 { - -moz-column-gap: 1rem; - column-gap: 1rem; -} - -.gap-x-8 { - -moz-column-gap: 2rem; - column-gap: 2rem; -} - -.gap-y-2 { - row-gap: 0.5rem; -} - -.gap-y-3 { - row-gap: 0.75rem; -} - -.gap-y-4 { - row-gap: 1rem; -} - -.gap-y-8 { - row-gap: 2rem; -} - -.space-x-4 > :not([hidden]) ~ :not([hidden]) { - --tw-space-x-reverse: 0; - margin-right: calc(1rem * var(--tw-space-x-reverse)); - margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))); -} - -.space-y-12 > :not([hidden]) ~ :not([hidden]) { - --tw-space-y-reverse: 0; - margin-top: calc(3rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(3rem * var(--tw-space-y-reverse)); -} - -.space-y-8 > :not([hidden]) ~ :not([hidden]) { - --tw-space-y-reverse: 0; - margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(2rem * var(--tw-space-y-reverse)); -} - -.divide-y > :not([hidden]) ~ :not([hidden]) { - --tw-divide-y-reverse: 0; - border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); - border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); -} - -.place-self-center { - place-self: center; -} - -.self-start { - align-self: flex-start; -} - -.overflow-hidden { - overflow: hidden; -} - -.overflow-scroll { - overflow: scroll; -} - -.overflow-y-auto { - overflow-y: auto; -} - -.overflow-x-scroll { - overflow-x: scroll; -} - -.overflow-y-scroll { - overflow-y: scroll; -} - -.overscroll-contain { - overscroll-behavior: contain; -} - -.truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.whitespace-nowrap { - white-space: nowrap; -} - -.whitespace-pre-wrap { - white-space: pre-wrap; -} - -.break-all { - word-break: break-all; -} - -.rounded { - border-radius: 0.25rem; -} - -.rounded-2xl { - border-radius: 1rem; -} - -.rounded-full { - border-radius: 9999px; -} - -.rounded-lg { - border-radius: 0.5rem; -} - -.rounded-md { - border-radius: 0.375rem; -} - -.rounded-none { - border-radius: 0px; -} - -.rounded-t-lg { - border-top-left-radius: 0.5rem; - border-top-right-radius: 0.5rem; -} - -.rounded-br-lg { - border-bottom-right-radius: 0.5rem; -} - -.rounded-br-md { - border-bottom-right-radius: 0.375rem; -} - -.rounded-tr-lg { - border-top-right-radius: 0.5rem; -} - -.rounded-tr-xl { - border-top-right-radius: 0.75rem; -} - -.border { - border-width: 1px; -} - -.border-0 { - border-width: 0px; -} - -.border-1px { - border-width: px; -} - -.border-2 { - border-width: 2px; -} - -.border-4 { - border-width: 4px; -} - -.border-8 { - border-width: 8px; -} - -.border-x { - border-left-width: 1px; - border-right-width: 1px; -} - -.border-x-0 { - border-left-width: 0px; - border-right-width: 0px; -} - -.border-x-1px { - border-left-width: px; - border-right-width: px; -} - -.border-x-2 { - border-left-width: 2px; - border-right-width: 2px; -} - -.border-x-4 { - border-left-width: 4px; - border-right-width: 4px; -} - -.border-x-8 { - border-left-width: 8px; - border-right-width: 8px; -} - -.border-y { - border-top-width: 1px; - border-bottom-width: 1px; -} - -.border-y-0 { - border-top-width: 0px; - border-bottom-width: 0px; -} - -.border-y-1px { - border-top-width: px; - border-bottom-width: px; -} - -.border-y-2 { - border-top-width: 2px; - border-bottom-width: 2px; -} - -.border-y-4 { - border-top-width: 4px; - border-bottom-width: 4px; -} - -.border-y-8 { - border-top-width: 8px; - border-bottom-width: 8px; -} - -.border-b { - border-bottom-width: 1px; -} - -.border-b-0 { - border-bottom-width: 0px; -} - -.border-b-1px { - border-bottom-width: px; -} - -.border-b-2 { - border-bottom-width: 2px; -} - -.border-b-4 { - border-bottom-width: 4px; -} - -.border-b-8 { - border-bottom-width: 8px; -} - -.border-e { - border-inline-end-width: 1px; -} - -.border-e-0 { - border-inline-end-width: 0px; -} - -.border-e-1px { - border-inline-end-width: px; -} - -.border-e-2 { - border-inline-end-width: 2px; -} - -.border-e-4 { - border-inline-end-width: 4px; -} - -.border-e-8 { - border-inline-end-width: 8px; -} - -.border-l { - border-left-width: 1px; -} - -.border-l-0 { - border-left-width: 0px; -} - -.border-l-1px { - border-left-width: px; -} - -.border-l-2 { - border-left-width: 2px; -} - -.border-l-4 { - border-left-width: 4px; -} - -.border-l-8 { - border-left-width: 8px; -} - -.border-r { - border-right-width: 1px; -} - -.border-r-0 { - border-right-width: 0px; -} - -.border-r-1px { - border-right-width: px; -} - -.border-r-2 { - border-right-width: 2px; -} - -.border-r-4 { - border-right-width: 4px; -} - -.border-r-8 { - border-right-width: 8px; -} - -.border-s { - border-inline-start-width: 1px; -} - -.border-s-0 { - border-inline-start-width: 0px; -} - -.border-s-1px { - border-inline-start-width: px; -} - -.border-s-2 { - border-inline-start-width: 2px; -} - -.border-s-4 { - border-inline-start-width: 4px; -} - -.border-s-8 { - border-inline-start-width: 8px; -} - -.border-t { - border-top-width: 1px; -} - -.border-t-0 { - border-top-width: 0px; -} - -.border-t-1px { - border-top-width: px; -} - -.border-t-2 { - border-top-width: 2px; -} - -.border-t-4 { - border-top-width: 4px; -} - -.border-t-8 { - border-top-width: 8px; -} - -.border-solid { - border-style: solid; -} - -.border-dashed { - border-style: dashed; -} - -.border-dotted { - border-style: dotted; -} - -.border-double { - border-style: double; -} - -.border-hidden { - border-style: hidden; -} - -.border-none { - border-style: none; -} - -.border-apple { - --tw-border-opacity: 1; - border-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-apple\/0 { - border-color: rgb(0 0 0 / 0); -} - -.border-apple\/10 { - border-color: rgb(0 0 0 / 0.1); -} - -.border-apple\/100 { - border-color: rgb(0 0 0 / 1); -} - -.border-apple\/20 { - border-color: rgb(0 0 0 / 0.2); -} - -.border-apple\/25 { - border-color: rgb(0 0 0 / 0.25); -} - -.border-apple\/30 { - border-color: rgb(0 0 0 / 0.3); -} - -.border-apple\/40 { - border-color: rgb(0 0 0 / 0.4); -} - -.border-apple\/5 { - border-color: rgb(0 0 0 / 0.05); -} - -.border-apple\/50 { - border-color: rgb(0 0 0 / 0.5); -} - -.border-apple\/60 { - border-color: rgb(0 0 0 / 0.6); -} - -.border-apple\/70 { - border-color: rgb(0 0 0 / 0.7); -} - -.border-apple\/75 { - border-color: rgb(0 0 0 / 0.75); -} - -.border-apple\/80 { - border-color: rgb(0 0 0 / 0.8); -} - -.border-apple\/90 { - border-color: rgb(0 0 0 / 0.9); -} - -.border-apple\/95 { - border-color: rgb(0 0 0 / 0.95); -} - -.border-apple\/shadow { - border-color: rgb(0 0 0 / .15); -} - -.border-black { - --tw-border-opacity: 1; - border-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-black\/0 { - border-color: rgb(0 0 0 / 0); -} - -.border-black\/10 { - border-color: rgb(0 0 0 / 0.1); -} - -.border-black\/100 { - border-color: rgb(0 0 0 / 1); -} - -.border-black\/20 { - border-color: rgb(0 0 0 / 0.2); -} - -.border-black\/25 { - border-color: rgb(0 0 0 / 0.25); -} - -.border-black\/30 { - border-color: rgb(0 0 0 / 0.3); -} - -.border-black\/40 { - border-color: rgb(0 0 0 / 0.4); -} - -.border-black\/5 { - border-color: rgb(0 0 0 / 0.05); -} - -.border-black\/50 { - border-color: rgb(0 0 0 / 0.5); -} - -.border-black\/60 { - border-color: rgb(0 0 0 / 0.6); -} - -.border-black\/70 { - border-color: rgb(0 0 0 / 0.7); -} - -.border-black\/75 { - border-color: rgb(0 0 0 / 0.75); -} - -.border-black\/80 { - border-color: rgb(0 0 0 / 0.8); -} - -.border-black\/90 { - border-color: rgb(0 0 0 / 0.9); -} - -.border-black\/95 { - border-color: rgb(0 0 0 / 0.95); -} - -.border-black\/shadow { - border-color: rgb(0 0 0 / .15); -} - -.border-delete { - --tw-border-opacity: 1; - border-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-delete\/0 { - border-color: rgb(219 30 30 / 0); -} - -.border-delete\/10 { - border-color: rgb(219 30 30 / 0.1); -} - -.border-delete\/100 { - border-color: rgb(219 30 30 / 1); -} - -.border-delete\/20 { - border-color: rgb(219 30 30 / 0.2); -} - -.border-delete\/25 { - border-color: rgb(219 30 30 / 0.25); -} - -.border-delete\/30 { - border-color: rgb(219 30 30 / 0.3); -} - -.border-delete\/40 { - border-color: rgb(219 30 30 / 0.4); -} - -.border-delete\/5 { - border-color: rgb(219 30 30 / 0.05); -} - -.border-delete\/50 { - border-color: rgb(219 30 30 / 0.5); -} - -.border-delete\/60 { - border-color: rgb(219 30 30 / 0.6); -} - -.border-delete\/70 { - border-color: rgb(219 30 30 / 0.7); -} - -.border-delete\/75 { - border-color: rgb(219 30 30 / 0.75); -} - -.border-delete\/80 { - border-color: rgb(219 30 30 / 0.8); -} - -.border-delete\/90 { - border-color: rgb(219 30 30 / 0.9); -} - -.border-delete\/95 { - border-color: rgb(219 30 30 / 0.95); -} - -.border-delete\/shadow { - border-color: rgb(219 30 30 / .15); -} - -.border-deletelight { - --tw-border-opacity: 1; - border-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-deletelight\/0 { - border-color: rgb(255 236 236 / 0); -} - -.border-deletelight\/10 { - border-color: rgb(255 236 236 / 0.1); -} - -.border-deletelight\/100 { - border-color: rgb(255 236 236 / 1); -} - -.border-deletelight\/20 { - border-color: rgb(255 236 236 / 0.2); -} - -.border-deletelight\/25 { - border-color: rgb(255 236 236 / 0.25); -} - -.border-deletelight\/30 { - border-color: rgb(255 236 236 / 0.3); -} - -.border-deletelight\/40 { - border-color: rgb(255 236 236 / 0.4); -} - -.border-deletelight\/5 { - border-color: rgb(255 236 236 / 0.05); -} - -.border-deletelight\/50 { - border-color: rgb(255 236 236 / 0.5); -} - -.border-deletelight\/60 { - border-color: rgb(255 236 236 / 0.6); -} - -.border-deletelight\/70 { - border-color: rgb(255 236 236 / 0.7); -} - -.border-deletelight\/75 { - border-color: rgb(255 236 236 / 0.75); -} - -.border-deletelight\/80 { - border-color: rgb(255 236 236 / 0.8); -} - -.border-deletelight\/90 { - border-color: rgb(255 236 236 / 0.9); -} - -.border-deletelight\/95 { - border-color: rgb(255 236 236 / 0.95); -} - -.border-deletelight\/shadow { - border-color: rgb(255 236 236 / .15); -} - -.border-error { - --tw-border-opacity: 1; - border-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-error\/0 { - border-color: rgb(219 30 30 / 0); -} - -.border-error\/10 { - border-color: rgb(219 30 30 / 0.1); -} - -.border-error\/100 { - border-color: rgb(219 30 30 / 1); -} - -.border-error\/20 { - border-color: rgb(219 30 30 / 0.2); -} - -.border-error\/25 { - border-color: rgb(219 30 30 / 0.25); -} - -.border-error\/30 { - border-color: rgb(219 30 30 / 0.3); -} - -.border-error\/40 { - border-color: rgb(219 30 30 / 0.4); -} - -.border-error\/5 { - border-color: rgb(219 30 30 / 0.05); -} - -.border-error\/50 { - border-color: rgb(219 30 30 / 0.5); -} - -.border-error\/60 { - border-color: rgb(219 30 30 / 0.6); -} - -.border-error\/70 { - border-color: rgb(219 30 30 / 0.7); -} - -.border-error\/75 { - border-color: rgb(219 30 30 / 0.75); -} - -.border-error\/80 { - border-color: rgb(219 30 30 / 0.8); -} - -.border-error\/90 { - border-color: rgb(219 30 30 / 0.9); -} - -.border-error\/95 { - border-color: rgb(219 30 30 / 0.95); -} - -.border-error\/shadow { - border-color: rgb(219 30 30 / .15); -} - -.border-errorlight { - --tw-border-opacity: 1; - border-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-errorlight\/0 { - border-color: rgb(255 236 236 / 0); -} - -.border-errorlight\/10 { - border-color: rgb(255 236 236 / 0.1); -} - -.border-errorlight\/100 { - border-color: rgb(255 236 236 / 1); -} - -.border-errorlight\/20 { - border-color: rgb(255 236 236 / 0.2); -} - -.border-errorlight\/25 { - border-color: rgb(255 236 236 / 0.25); -} - -.border-errorlight\/30 { - border-color: rgb(255 236 236 / 0.3); -} - -.border-errorlight\/40 { - border-color: rgb(255 236 236 / 0.4); -} - -.border-errorlight\/5 { - border-color: rgb(255 236 236 / 0.05); -} - -.border-errorlight\/50 { - border-color: rgb(255 236 236 / 0.5); -} - -.border-errorlight\/60 { - border-color: rgb(255 236 236 / 0.6); -} - -.border-errorlight\/70 { - border-color: rgb(255 236 236 / 0.7); -} - -.border-errorlight\/75 { - border-color: rgb(255 236 236 / 0.75); -} - -.border-errorlight\/80 { - border-color: rgb(255 236 236 / 0.8); -} - -.border-errorlight\/90 { - border-color: rgb(255 236 236 / 0.9); -} - -.border-errorlight\/95 { - border-color: rgb(255 236 236 / 0.95); -} - -.border-errorlight\/shadow { - border-color: rgb(255 236 236 / .15); -} - -.border-google { - --tw-border-opacity: 1; - border-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-google\/0 { - border-color: rgb(234 67 53 / 0); -} - -.border-google\/10 { - border-color: rgb(234 67 53 / 0.1); -} - -.border-google\/100 { - border-color: rgb(234 67 53 / 1); -} - -.border-google\/20 { - border-color: rgb(234 67 53 / 0.2); -} - -.border-google\/25 { - border-color: rgb(234 67 53 / 0.25); -} - -.border-google\/30 { - border-color: rgb(234 67 53 / 0.3); -} - -.border-google\/40 { - border-color: rgb(234 67 53 / 0.4); -} - -.border-google\/5 { - border-color: rgb(234 67 53 / 0.05); -} - -.border-google\/50 { - border-color: rgb(234 67 53 / 0.5); -} - -.border-google\/60 { - border-color: rgb(234 67 53 / 0.6); -} - -.border-google\/70 { - border-color: rgb(234 67 53 / 0.7); -} - -.border-google\/75 { - border-color: rgb(234 67 53 / 0.75); -} - -.border-google\/80 { - border-color: rgb(234 67 53 / 0.8); -} - -.border-google\/90 { - border-color: rgb(234 67 53 / 0.9); -} - -.border-google\/95 { - border-color: rgb(234 67 53 / 0.95); -} - -.border-google\/shadow { - border-color: rgb(234 67 53 / .15); -} - -.border-grey1 { - --tw-border-opacity: 1; - border-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-grey1\/0 { - border-color: rgb(34 34 34 / 0); -} - -.border-grey1\/10 { - border-color: rgb(34 34 34 / 0.1); -} - -.border-grey1\/100 { - border-color: rgb(34 34 34 / 1); -} - -.border-grey1\/20 { - border-color: rgb(34 34 34 / 0.2); -} - -.border-grey1\/25 { - border-color: rgb(34 34 34 / 0.25); -} - -.border-grey1\/30 { - border-color: rgb(34 34 34 / 0.3); -} - -.border-grey1\/40 { - border-color: rgb(34 34 34 / 0.4); -} - -.border-grey1\/5 { - border-color: rgb(34 34 34 / 0.05); -} - -.border-grey1\/50 { - border-color: rgb(34 34 34 / 0.5); -} - -.border-grey1\/60 { - border-color: rgb(34 34 34 / 0.6); -} - -.border-grey1\/70 { - border-color: rgb(34 34 34 / 0.7); -} - -.border-grey1\/75 { - border-color: rgb(34 34 34 / 0.75); -} - -.border-grey1\/80 { - border-color: rgb(34 34 34 / 0.8); -} - -.border-grey1\/90 { - border-color: rgb(34 34 34 / 0.9); -} - -.border-grey1\/95 { - border-color: rgb(34 34 34 / 0.95); -} - -.border-grey1\/shadow { - border-color: rgb(34 34 34 / .15); -} - -.border-grey2 { - --tw-border-opacity: 1; - border-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-grey2\/0 { - border-color: rgb(153 153 153 / 0); -} - -.border-grey2\/10 { - border-color: rgb(153 153 153 / 0.1); -} - -.border-grey2\/100 { - border-color: rgb(153 153 153 / 1); -} - -.border-grey2\/20 { - border-color: rgb(153 153 153 / 0.2); -} - -.border-grey2\/25 { - border-color: rgb(153 153 153 / 0.25); -} - -.border-grey2\/30 { - border-color: rgb(153 153 153 / 0.3); -} - -.border-grey2\/40 { - border-color: rgb(153 153 153 / 0.4); -} - -.border-grey2\/5 { - border-color: rgb(153 153 153 / 0.05); -} - -.border-grey2\/50 { - border-color: rgb(153 153 153 / 0.5); -} - -.border-grey2\/60 { - border-color: rgb(153 153 153 / 0.6); -} - -.border-grey2\/70 { - border-color: rgb(153 153 153 / 0.7); -} - -.border-grey2\/75 { - border-color: rgb(153 153 153 / 0.75); -} - -.border-grey2\/80 { - border-color: rgb(153 153 153 / 0.8); -} - -.border-grey2\/90 { - border-color: rgb(153 153 153 / 0.9); -} - -.border-grey2\/95 { - border-color: rgb(153 153 153 / 0.95); -} - -.border-grey2\/shadow { - border-color: rgb(153 153 153 / .15); -} - -.border-grey3 { - --tw-border-opacity: 1; - border-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-grey3\/0 { - border-color: rgb(204 204 204 / 0); -} - -.border-grey3\/10 { - border-color: rgb(204 204 204 / 0.1); -} - -.border-grey3\/100 { - border-color: rgb(204 204 204 / 1); -} - -.border-grey3\/20 { - border-color: rgb(204 204 204 / 0.2); -} - -.border-grey3\/25 { - border-color: rgb(204 204 204 / 0.25); -} - -.border-grey3\/30 { - border-color: rgb(204 204 204 / 0.3); -} - -.border-grey3\/40 { - border-color: rgb(204 204 204 / 0.4); -} - -.border-grey3\/5 { - border-color: rgb(204 204 204 / 0.05); -} - -.border-grey3\/50 { - border-color: rgb(204 204 204 / 0.5); -} - -.border-grey3\/60 { - border-color: rgb(204 204 204 / 0.6); -} - -.border-grey3\/70 { - border-color: rgb(204 204 204 / 0.7); -} - -.border-grey3\/75 { - border-color: rgb(204 204 204 / 0.75); -} - -.border-grey3\/80 { - border-color: rgb(204 204 204 / 0.8); -} - -.border-grey3\/90 { - border-color: rgb(204 204 204 / 0.9); -} - -.border-grey3\/95 { - border-color: rgb(204 204 204 / 0.95); -} - -.border-grey3\/shadow { - border-color: rgb(204 204 204 / .15); -} - -.border-grey4 { - --tw-border-opacity: 1; - border-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-grey4\/0 { - border-color: rgb(238 238 238 / 0); -} - -.border-grey4\/10 { - border-color: rgb(238 238 238 / 0.1); -} - -.border-grey4\/100 { - border-color: rgb(238 238 238 / 1); -} - -.border-grey4\/20 { - border-color: rgb(238 238 238 / 0.2); -} - -.border-grey4\/25 { - border-color: rgb(238 238 238 / 0.25); -} - -.border-grey4\/30 { - border-color: rgb(238 238 238 / 0.3); -} - -.border-grey4\/40 { - border-color: rgb(238 238 238 / 0.4); -} - -.border-grey4\/5 { - border-color: rgb(238 238 238 / 0.05); -} - -.border-grey4\/50 { - border-color: rgb(238 238 238 / 0.5); -} - -.border-grey4\/60 { - border-color: rgb(238 238 238 / 0.6); -} - -.border-grey4\/70 { - border-color: rgb(238 238 238 / 0.7); -} - -.border-grey4\/75 { - border-color: rgb(238 238 238 / 0.75); -} - -.border-grey4\/80 { - border-color: rgb(238 238 238 / 0.8); -} - -.border-grey4\/90 { - border-color: rgb(238 238 238 / 0.9); -} - -.border-grey4\/95 { - border-color: rgb(238 238 238 / 0.95); -} - -.border-grey4\/shadow { - border-color: rgb(238 238 238 / .15); -} - -.border-grey5 { - --tw-border-opacity: 1; - border-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-grey5\/0 { - border-color: rgb(246 246 246 / 0); -} - -.border-grey5\/10 { - border-color: rgb(246 246 246 / 0.1); -} - -.border-grey5\/100 { - border-color: rgb(246 246 246 / 1); -} - -.border-grey5\/20 { - border-color: rgb(246 246 246 / 0.2); -} - -.border-grey5\/25 { - border-color: rgb(246 246 246 / 0.25); -} - -.border-grey5\/30 { - border-color: rgb(246 246 246 / 0.3); -} - -.border-grey5\/40 { - border-color: rgb(246 246 246 / 0.4); -} - -.border-grey5\/5 { - border-color: rgb(246 246 246 / 0.05); -} - -.border-grey5\/50 { - border-color: rgb(246 246 246 / 0.5); -} - -.border-grey5\/60 { - border-color: rgb(246 246 246 / 0.6); -} - -.border-grey5\/70 { - border-color: rgb(246 246 246 / 0.7); -} - -.border-grey5\/75 { - border-color: rgb(246 246 246 / 0.75); -} - -.border-grey5\/80 { - border-color: rgb(246 246 246 / 0.8); -} - -.border-grey5\/90 { - border-color: rgb(246 246 246 / 0.9); -} - -.border-grey5\/95 { - border-color: rgb(246 246 246 / 0.95); -} - -.border-grey5\/shadow { - border-color: rgb(246 246 246 / .15); -} - -.border-grey6 { - --tw-border-opacity: 1; - border-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-grey6\/0 { - border-color: rgb(250 250 250 / 0); -} - -.border-grey6\/10 { - border-color: rgb(250 250 250 / 0.1); -} - -.border-grey6\/100 { - border-color: rgb(250 250 250 / 1); -} - -.border-grey6\/20 { - border-color: rgb(250 250 250 / 0.2); -} - -.border-grey6\/25 { - border-color: rgb(250 250 250 / 0.25); -} - -.border-grey6\/30 { - border-color: rgb(250 250 250 / 0.3); -} - -.border-grey6\/40 { - border-color: rgb(250 250 250 / 0.4); -} - -.border-grey6\/5 { - border-color: rgb(250 250 250 / 0.05); -} - -.border-grey6\/50 { - border-color: rgb(250 250 250 / 0.5); -} - -.border-grey6\/60 { - border-color: rgb(250 250 250 / 0.6); -} - -.border-grey6\/70 { - border-color: rgb(250 250 250 / 0.7); -} - -.border-grey6\/75 { - border-color: rgb(250 250 250 / 0.75); -} - -.border-grey6\/80 { - border-color: rgb(250 250 250 / 0.8); -} - -.border-grey6\/90 { - border-color: rgb(250 250 250 / 0.9); -} - -.border-grey6\/95 { - border-color: rgb(250 250 250 / 0.95); -} - -.border-grey6\/shadow { - border-color: rgb(250 250 250 / .15); -} - -.border-primary { - --tw-border-opacity: 1; - border-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-primary\/0 { - border-color: rgb(66 114 239 / 0); -} - -.border-primary\/10 { - border-color: rgb(66 114 239 / 0.1); -} - -.border-primary\/100 { - border-color: rgb(66 114 239 / 1); -} - -.border-primary\/20 { - border-color: rgb(66 114 239 / 0.2); -} - -.border-primary\/25 { - border-color: rgb(66 114 239 / 0.25); -} - -.border-primary\/30 { - border-color: rgb(66 114 239 / 0.3); -} - -.border-primary\/40 { - border-color: rgb(66 114 239 / 0.4); -} - -.border-primary\/5 { - border-color: rgb(66 114 239 / 0.05); -} - -.border-primary\/50 { - border-color: rgb(66 114 239 / 0.5); -} - -.border-primary\/60 { - border-color: rgb(66 114 239 / 0.6); -} - -.border-primary\/70 { - border-color: rgb(66 114 239 / 0.7); -} - -.border-primary\/75 { - border-color: rgb(66 114 239 / 0.75); -} - -.border-primary\/80 { - border-color: rgb(66 114 239 / 0.8); -} - -.border-primary\/90 { - border-color: rgb(66 114 239 / 0.9); -} - -.border-primary\/95 { - border-color: rgb(66 114 239 / 0.95); -} - -.border-primary\/shadow { - border-color: rgb(66 114 239 / .15); -} - -.border-primarylight { - --tw-border-opacity: 1; - border-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-primarylight\/0 { - border-color: rgb(227 234 253 / 0); -} - -.border-primarylight\/10 { - border-color: rgb(227 234 253 / 0.1); -} - -.border-primarylight\/100 { - border-color: rgb(227 234 253 / 1); -} - -.border-primarylight\/20 { - border-color: rgb(227 234 253 / 0.2); -} - -.border-primarylight\/25 { - border-color: rgb(227 234 253 / 0.25); -} - -.border-primarylight\/30 { - border-color: rgb(227 234 253 / 0.3); -} - -.border-primarylight\/40 { - border-color: rgb(227 234 253 / 0.4); -} - -.border-primarylight\/5 { - border-color: rgb(227 234 253 / 0.05); -} - -.border-primarylight\/50 { - border-color: rgb(227 234 253 / 0.5); -} - -.border-primarylight\/60 { - border-color: rgb(227 234 253 / 0.6); -} - -.border-primarylight\/70 { - border-color: rgb(227 234 253 / 0.7); -} - -.border-primarylight\/75 { - border-color: rgb(227 234 253 / 0.75); -} - -.border-primarylight\/80 { - border-color: rgb(227 234 253 / 0.8); -} - -.border-primarylight\/90 { - border-color: rgb(227 234 253 / 0.9); -} - -.border-primarylight\/95 { - border-color: rgb(227 234 253 / 0.95); -} - -.border-primarylight\/shadow { - border-color: rgb(227 234 253 / .15); -} - -.border-secondary { - --tw-border-opacity: 1; - border-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-secondary\/0 { - border-color: rgb(255 94 94 / 0); -} - -.border-secondary\/10 { - border-color: rgb(255 94 94 / 0.1); -} - -.border-secondary\/100 { - border-color: rgb(255 94 94 / 1); -} - -.border-secondary\/20 { - border-color: rgb(255 94 94 / 0.2); -} - -.border-secondary\/25 { - border-color: rgb(255 94 94 / 0.25); -} - -.border-secondary\/30 { - border-color: rgb(255 94 94 / 0.3); -} - -.border-secondary\/40 { - border-color: rgb(255 94 94 / 0.4); -} - -.border-secondary\/5 { - border-color: rgb(255 94 94 / 0.05); -} - -.border-secondary\/50 { - border-color: rgb(255 94 94 / 0.5); -} - -.border-secondary\/60 { - border-color: rgb(255 94 94 / 0.6); -} - -.border-secondary\/70 { - border-color: rgb(255 94 94 / 0.7); -} - -.border-secondary\/75 { - border-color: rgb(255 94 94 / 0.75); -} - -.border-secondary\/80 { - border-color: rgb(255 94 94 / 0.8); -} - -.border-secondary\/90 { - border-color: rgb(255 94 94 / 0.9); -} - -.border-secondary\/95 { - border-color: rgb(255 94 94 / 0.95); -} - -.border-secondary\/shadow { - border-color: rgb(255 94 94 / .15); -} - -.border-success { - --tw-border-opacity: 1; - border-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-success\/0 { - border-color: rgb(111 202 55 / 0); -} - -.border-success\/10 { - border-color: rgb(111 202 55 / 0.1); -} - -.border-success\/100 { - border-color: rgb(111 202 55 / 1); -} - -.border-success\/20 { - border-color: rgb(111 202 55 / 0.2); -} - -.border-success\/25 { - border-color: rgb(111 202 55 / 0.25); -} - -.border-success\/30 { - border-color: rgb(111 202 55 / 0.3); -} - -.border-success\/40 { - border-color: rgb(111 202 55 / 0.4); -} - -.border-success\/5 { - border-color: rgb(111 202 55 / 0.05); -} - -.border-success\/50 { - border-color: rgb(111 202 55 / 0.5); -} - -.border-success\/60 { - border-color: rgb(111 202 55 / 0.6); -} - -.border-success\/70 { - border-color: rgb(111 202 55 / 0.7); -} - -.border-success\/75 { - border-color: rgb(111 202 55 / 0.75); -} - -.border-success\/80 { - border-color: rgb(111 202 55 / 0.8); -} - -.border-success\/90 { - border-color: rgb(111 202 55 / 0.9); -} - -.border-success\/95 { - border-color: rgb(111 202 55 / 0.95); -} - -.border-success\/shadow { - border-color: rgb(111 202 55 / .15); -} - -.border-successlight { - --tw-border-opacity: 1; - border-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-successlight\/0 { - border-color: rgb(235 255 223 / 0); -} - -.border-successlight\/10 { - border-color: rgb(235 255 223 / 0.1); -} - -.border-successlight\/100 { - border-color: rgb(235 255 223 / 1); -} - -.border-successlight\/20 { - border-color: rgb(235 255 223 / 0.2); -} - -.border-successlight\/25 { - border-color: rgb(235 255 223 / 0.25); -} - -.border-successlight\/30 { - border-color: rgb(235 255 223 / 0.3); -} - -.border-successlight\/40 { - border-color: rgb(235 255 223 / 0.4); -} - -.border-successlight\/5 { - border-color: rgb(235 255 223 / 0.05); -} - -.border-successlight\/50 { - border-color: rgb(235 255 223 / 0.5); -} - -.border-successlight\/60 { - border-color: rgb(235 255 223 / 0.6); -} - -.border-successlight\/70 { - border-color: rgb(235 255 223 / 0.7); -} - -.border-successlight\/75 { - border-color: rgb(235 255 223 / 0.75); -} - -.border-successlight\/80 { - border-color: rgb(235 255 223 / 0.8); -} - -.border-successlight\/90 { - border-color: rgb(235 255 223 / 0.9); -} - -.border-successlight\/95 { - border-color: rgb(235 255 223 / 0.95); -} - -.border-successlight\/shadow { - border-color: rgb(235 255 223 / .15); -} - -.border-surfconext { - --tw-border-opacity: 1; - border-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-surfconext\/0 { - border-color: rgb(77 178 207 / 0); -} - -.border-surfconext\/10 { - border-color: rgb(77 178 207 / 0.1); -} - -.border-surfconext\/100 { - border-color: rgb(77 178 207 / 1); -} - -.border-surfconext\/20 { - border-color: rgb(77 178 207 / 0.2); -} - -.border-surfconext\/25 { - border-color: rgb(77 178 207 / 0.25); -} - -.border-surfconext\/30 { - border-color: rgb(77 178 207 / 0.3); -} - -.border-surfconext\/40 { - border-color: rgb(77 178 207 / 0.4); -} - -.border-surfconext\/5 { - border-color: rgb(77 178 207 / 0.05); -} - -.border-surfconext\/50 { - border-color: rgb(77 178 207 / 0.5); -} - -.border-surfconext\/60 { - border-color: rgb(77 178 207 / 0.6); -} - -.border-surfconext\/70 { - border-color: rgb(77 178 207 / 0.7); -} - -.border-surfconext\/75 { - border-color: rgb(77 178 207 / 0.75); -} - -.border-surfconext\/80 { - border-color: rgb(77 178 207 / 0.8); -} - -.border-surfconext\/90 { - border-color: rgb(77 178 207 / 0.9); -} - -.border-surfconext\/95 { - border-color: rgb(77 178 207 / 0.95); -} - -.border-surfconext\/shadow { - border-color: rgb(77 178 207 / .15); -} - -.border-tertiary { - --tw-border-opacity: 1; - border-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-tertiary\/0 { - border-color: rgb(255 207 96 / 0); -} - -.border-tertiary\/10 { - border-color: rgb(255 207 96 / 0.1); -} - -.border-tertiary\/100 { - border-color: rgb(255 207 96 / 1); -} - -.border-tertiary\/20 { - border-color: rgb(255 207 96 / 0.2); -} - -.border-tertiary\/25 { - border-color: rgb(255 207 96 / 0.25); -} - -.border-tertiary\/30 { - border-color: rgb(255 207 96 / 0.3); -} - -.border-tertiary\/40 { - border-color: rgb(255 207 96 / 0.4); -} - -.border-tertiary\/5 { - border-color: rgb(255 207 96 / 0.05); -} - -.border-tertiary\/50 { - border-color: rgb(255 207 96 / 0.5); -} - -.border-tertiary\/60 { - border-color: rgb(255 207 96 / 0.6); -} - -.border-tertiary\/70 { - border-color: rgb(255 207 96 / 0.7); -} - -.border-tertiary\/75 { - border-color: rgb(255 207 96 / 0.75); -} - -.border-tertiary\/80 { - border-color: rgb(255 207 96 / 0.8); -} - -.border-tertiary\/90 { - border-color: rgb(255 207 96 / 0.9); -} - -.border-tertiary\/95 { - border-color: rgb(255 207 96 / 0.95); -} - -.border-tertiary\/shadow { - border-color: rgb(255 207 96 / .15); -} - -.border-warning { - --tw-border-opacity: 1; - border-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-warning\/0 { - border-color: rgb(242 141 21 / 0); -} - -.border-warning\/10 { - border-color: rgb(242 141 21 / 0.1); -} - -.border-warning\/100 { - border-color: rgb(242 141 21 / 1); -} - -.border-warning\/20 { - border-color: rgb(242 141 21 / 0.2); -} - -.border-warning\/25 { - border-color: rgb(242 141 21 / 0.25); -} - -.border-warning\/30 { - border-color: rgb(242 141 21 / 0.3); -} - -.border-warning\/40 { - border-color: rgb(242 141 21 / 0.4); -} - -.border-warning\/5 { - border-color: rgb(242 141 21 / 0.05); -} - -.border-warning\/50 { - border-color: rgb(242 141 21 / 0.5); -} - -.border-warning\/60 { - border-color: rgb(242 141 21 / 0.6); -} - -.border-warning\/70 { - border-color: rgb(242 141 21 / 0.7); -} - -.border-warning\/75 { - border-color: rgb(242 141 21 / 0.75); -} - -.border-warning\/80 { - border-color: rgb(242 141 21 / 0.8); -} - -.border-warning\/90 { - border-color: rgb(242 141 21 / 0.9); -} - -.border-warning\/95 { - border-color: rgb(242 141 21 / 0.95); -} - -.border-warning\/shadow { - border-color: rgb(242 141 21 / .15); -} - -.border-warninglight { - --tw-border-opacity: 1; - border-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-warninglight\/0 { - border-color: rgb(255 239 220 / 0); -} - -.border-warninglight\/10 { - border-color: rgb(255 239 220 / 0.1); -} - -.border-warninglight\/100 { - border-color: rgb(255 239 220 / 1); -} - -.border-warninglight\/20 { - border-color: rgb(255 239 220 / 0.2); -} - -.border-warninglight\/25 { - border-color: rgb(255 239 220 / 0.25); -} - -.border-warninglight\/30 { - border-color: rgb(255 239 220 / 0.3); -} - -.border-warninglight\/40 { - border-color: rgb(255 239 220 / 0.4); -} - -.border-warninglight\/5 { - border-color: rgb(255 239 220 / 0.05); -} - -.border-warninglight\/50 { - border-color: rgb(255 239 220 / 0.5); -} - -.border-warninglight\/60 { - border-color: rgb(255 239 220 / 0.6); -} - -.border-warninglight\/70 { - border-color: rgb(255 239 220 / 0.7); -} - -.border-warninglight\/75 { - border-color: rgb(255 239 220 / 0.75); -} - -.border-warninglight\/80 { - border-color: rgb(255 239 220 / 0.8); -} - -.border-warninglight\/90 { - border-color: rgb(255 239 220 / 0.9); -} - -.border-warninglight\/95 { - border-color: rgb(255 239 220 / 0.95); -} - -.border-warninglight\/shadow { - border-color: rgb(255 239 220 / .15); -} - -.border-white { - --tw-border-opacity: 1; - border-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-white\/0 { - border-color: rgb(255 255 255 / 0); -} - -.border-white\/10 { - border-color: rgb(255 255 255 / 0.1); -} - -.border-white\/100 { - border-color: rgb(255 255 255 / 1); -} - -.border-white\/20 { - border-color: rgb(255 255 255 / 0.2); -} - -.border-white\/25 { - border-color: rgb(255 255 255 / 0.25); -} - -.border-white\/30 { - border-color: rgb(255 255 255 / 0.3); -} - -.border-white\/40 { - border-color: rgb(255 255 255 / 0.4); -} - -.border-white\/5 { - border-color: rgb(255 255 255 / 0.05); -} - -.border-white\/50 { - border-color: rgb(255 255 255 / 0.5); -} - -.border-white\/60 { - border-color: rgb(255 255 255 / 0.6); -} - -.border-white\/70 { - border-color: rgb(255 255 255 / 0.7); -} - -.border-white\/75 { - border-color: rgb(255 255 255 / 0.75); -} - -.border-white\/80 { - border-color: rgb(255 255 255 / 0.8); -} - -.border-white\/90 { - border-color: rgb(255 255 255 / 0.9); -} - -.border-white\/95 { - border-color: rgb(255 255 255 / 0.95); -} - -.border-white\/shadow { - border-color: rgb(255 255 255 / .15); -} - -.border-x-apple { - --tw-border-opacity: 1; - border-left-color: rgb(0 0 0 / var(--tw-border-opacity)); - border-right-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-x-apple\/0 { - border-left-color: rgb(0 0 0 / 0); - border-right-color: rgb(0 0 0 / 0); -} - -.border-x-apple\/10 { - border-left-color: rgb(0 0 0 / 0.1); - border-right-color: rgb(0 0 0 / 0.1); -} - -.border-x-apple\/100 { - border-left-color: rgb(0 0 0 / 1); - border-right-color: rgb(0 0 0 / 1); -} - -.border-x-apple\/20 { - border-left-color: rgb(0 0 0 / 0.2); - border-right-color: rgb(0 0 0 / 0.2); -} - -.border-x-apple\/25 { - border-left-color: rgb(0 0 0 / 0.25); - border-right-color: rgb(0 0 0 / 0.25); -} - -.border-x-apple\/30 { - border-left-color: rgb(0 0 0 / 0.3); - border-right-color: rgb(0 0 0 / 0.3); -} - -.border-x-apple\/40 { - border-left-color: rgb(0 0 0 / 0.4); - border-right-color: rgb(0 0 0 / 0.4); -} - -.border-x-apple\/5 { - border-left-color: rgb(0 0 0 / 0.05); - border-right-color: rgb(0 0 0 / 0.05); -} - -.border-x-apple\/50 { - border-left-color: rgb(0 0 0 / 0.5); - border-right-color: rgb(0 0 0 / 0.5); -} - -.border-x-apple\/60 { - border-left-color: rgb(0 0 0 / 0.6); - border-right-color: rgb(0 0 0 / 0.6); -} - -.border-x-apple\/70 { - border-left-color: rgb(0 0 0 / 0.7); - border-right-color: rgb(0 0 0 / 0.7); -} - -.border-x-apple\/75 { - border-left-color: rgb(0 0 0 / 0.75); - border-right-color: rgb(0 0 0 / 0.75); -} - -.border-x-apple\/80 { - border-left-color: rgb(0 0 0 / 0.8); - border-right-color: rgb(0 0 0 / 0.8); -} - -.border-x-apple\/90 { - border-left-color: rgb(0 0 0 / 0.9); - border-right-color: rgb(0 0 0 / 0.9); -} - -.border-x-apple\/95 { - border-left-color: rgb(0 0 0 / 0.95); - border-right-color: rgb(0 0 0 / 0.95); -} - -.border-x-apple\/shadow { - border-left-color: rgb(0 0 0 / .15); - border-right-color: rgb(0 0 0 / .15); -} - -.border-x-black { - --tw-border-opacity: 1; - border-left-color: rgb(0 0 0 / var(--tw-border-opacity)); - border-right-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-x-black\/0 { - border-left-color: rgb(0 0 0 / 0); - border-right-color: rgb(0 0 0 / 0); -} - -.border-x-black\/10 { - border-left-color: rgb(0 0 0 / 0.1); - border-right-color: rgb(0 0 0 / 0.1); -} - -.border-x-black\/100 { - border-left-color: rgb(0 0 0 / 1); - border-right-color: rgb(0 0 0 / 1); -} - -.border-x-black\/20 { - border-left-color: rgb(0 0 0 / 0.2); - border-right-color: rgb(0 0 0 / 0.2); -} - -.border-x-black\/25 { - border-left-color: rgb(0 0 0 / 0.25); - border-right-color: rgb(0 0 0 / 0.25); -} - -.border-x-black\/30 { - border-left-color: rgb(0 0 0 / 0.3); - border-right-color: rgb(0 0 0 / 0.3); -} - -.border-x-black\/40 { - border-left-color: rgb(0 0 0 / 0.4); - border-right-color: rgb(0 0 0 / 0.4); -} - -.border-x-black\/5 { - border-left-color: rgb(0 0 0 / 0.05); - border-right-color: rgb(0 0 0 / 0.05); -} - -.border-x-black\/50 { - border-left-color: rgb(0 0 0 / 0.5); - border-right-color: rgb(0 0 0 / 0.5); -} - -.border-x-black\/60 { - border-left-color: rgb(0 0 0 / 0.6); - border-right-color: rgb(0 0 0 / 0.6); -} - -.border-x-black\/70 { - border-left-color: rgb(0 0 0 / 0.7); - border-right-color: rgb(0 0 0 / 0.7); -} - -.border-x-black\/75 { - border-left-color: rgb(0 0 0 / 0.75); - border-right-color: rgb(0 0 0 / 0.75); -} - -.border-x-black\/80 { - border-left-color: rgb(0 0 0 / 0.8); - border-right-color: rgb(0 0 0 / 0.8); -} - -.border-x-black\/90 { - border-left-color: rgb(0 0 0 / 0.9); - border-right-color: rgb(0 0 0 / 0.9); -} - -.border-x-black\/95 { - border-left-color: rgb(0 0 0 / 0.95); - border-right-color: rgb(0 0 0 / 0.95); -} - -.border-x-black\/shadow { - border-left-color: rgb(0 0 0 / .15); - border-right-color: rgb(0 0 0 / .15); -} - -.border-x-delete { - --tw-border-opacity: 1; - border-left-color: rgb(219 30 30 / var(--tw-border-opacity)); - border-right-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-x-delete\/0 { - border-left-color: rgb(219 30 30 / 0); - border-right-color: rgb(219 30 30 / 0); -} - -.border-x-delete\/10 { - border-left-color: rgb(219 30 30 / 0.1); - border-right-color: rgb(219 30 30 / 0.1); -} - -.border-x-delete\/100 { - border-left-color: rgb(219 30 30 / 1); - border-right-color: rgb(219 30 30 / 1); -} - -.border-x-delete\/20 { - border-left-color: rgb(219 30 30 / 0.2); - border-right-color: rgb(219 30 30 / 0.2); -} - -.border-x-delete\/25 { - border-left-color: rgb(219 30 30 / 0.25); - border-right-color: rgb(219 30 30 / 0.25); -} - -.border-x-delete\/30 { - border-left-color: rgb(219 30 30 / 0.3); - border-right-color: rgb(219 30 30 / 0.3); -} - -.border-x-delete\/40 { - border-left-color: rgb(219 30 30 / 0.4); - border-right-color: rgb(219 30 30 / 0.4); -} - -.border-x-delete\/5 { - border-left-color: rgb(219 30 30 / 0.05); - border-right-color: rgb(219 30 30 / 0.05); -} - -.border-x-delete\/50 { - border-left-color: rgb(219 30 30 / 0.5); - border-right-color: rgb(219 30 30 / 0.5); -} - -.border-x-delete\/60 { - border-left-color: rgb(219 30 30 / 0.6); - border-right-color: rgb(219 30 30 / 0.6); -} - -.border-x-delete\/70 { - border-left-color: rgb(219 30 30 / 0.7); - border-right-color: rgb(219 30 30 / 0.7); -} - -.border-x-delete\/75 { - border-left-color: rgb(219 30 30 / 0.75); - border-right-color: rgb(219 30 30 / 0.75); -} - -.border-x-delete\/80 { - border-left-color: rgb(219 30 30 / 0.8); - border-right-color: rgb(219 30 30 / 0.8); -} - -.border-x-delete\/90 { - border-left-color: rgb(219 30 30 / 0.9); - border-right-color: rgb(219 30 30 / 0.9); -} - -.border-x-delete\/95 { - border-left-color: rgb(219 30 30 / 0.95); - border-right-color: rgb(219 30 30 / 0.95); -} - -.border-x-delete\/shadow { - border-left-color: rgb(219 30 30 / .15); - border-right-color: rgb(219 30 30 / .15); -} - -.border-x-deletelight { - --tw-border-opacity: 1; - border-left-color: rgb(255 236 236 / var(--tw-border-opacity)); - border-right-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-x-deletelight\/0 { - border-left-color: rgb(255 236 236 / 0); - border-right-color: rgb(255 236 236 / 0); -} - -.border-x-deletelight\/10 { - border-left-color: rgb(255 236 236 / 0.1); - border-right-color: rgb(255 236 236 / 0.1); -} - -.border-x-deletelight\/100 { - border-left-color: rgb(255 236 236 / 1); - border-right-color: rgb(255 236 236 / 1); -} - -.border-x-deletelight\/20 { - border-left-color: rgb(255 236 236 / 0.2); - border-right-color: rgb(255 236 236 / 0.2); -} - -.border-x-deletelight\/25 { - border-left-color: rgb(255 236 236 / 0.25); - border-right-color: rgb(255 236 236 / 0.25); -} - -.border-x-deletelight\/30 { - border-left-color: rgb(255 236 236 / 0.3); - border-right-color: rgb(255 236 236 / 0.3); -} - -.border-x-deletelight\/40 { - border-left-color: rgb(255 236 236 / 0.4); - border-right-color: rgb(255 236 236 / 0.4); -} - -.border-x-deletelight\/5 { - border-left-color: rgb(255 236 236 / 0.05); - border-right-color: rgb(255 236 236 / 0.05); -} - -.border-x-deletelight\/50 { - border-left-color: rgb(255 236 236 / 0.5); - border-right-color: rgb(255 236 236 / 0.5); -} - -.border-x-deletelight\/60 { - border-left-color: rgb(255 236 236 / 0.6); - border-right-color: rgb(255 236 236 / 0.6); -} - -.border-x-deletelight\/70 { - border-left-color: rgb(255 236 236 / 0.7); - border-right-color: rgb(255 236 236 / 0.7); -} - -.border-x-deletelight\/75 { - border-left-color: rgb(255 236 236 / 0.75); - border-right-color: rgb(255 236 236 / 0.75); -} - -.border-x-deletelight\/80 { - border-left-color: rgb(255 236 236 / 0.8); - border-right-color: rgb(255 236 236 / 0.8); -} - -.border-x-deletelight\/90 { - border-left-color: rgb(255 236 236 / 0.9); - border-right-color: rgb(255 236 236 / 0.9); -} - -.border-x-deletelight\/95 { - border-left-color: rgb(255 236 236 / 0.95); - border-right-color: rgb(255 236 236 / 0.95); -} - -.border-x-deletelight\/shadow { - border-left-color: rgb(255 236 236 / .15); - border-right-color: rgb(255 236 236 / .15); -} - -.border-x-error { - --tw-border-opacity: 1; - border-left-color: rgb(219 30 30 / var(--tw-border-opacity)); - border-right-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-x-error\/0 { - border-left-color: rgb(219 30 30 / 0); - border-right-color: rgb(219 30 30 / 0); -} - -.border-x-error\/10 { - border-left-color: rgb(219 30 30 / 0.1); - border-right-color: rgb(219 30 30 / 0.1); -} - -.border-x-error\/100 { - border-left-color: rgb(219 30 30 / 1); - border-right-color: rgb(219 30 30 / 1); -} - -.border-x-error\/20 { - border-left-color: rgb(219 30 30 / 0.2); - border-right-color: rgb(219 30 30 / 0.2); -} - -.border-x-error\/25 { - border-left-color: rgb(219 30 30 / 0.25); - border-right-color: rgb(219 30 30 / 0.25); -} - -.border-x-error\/30 { - border-left-color: rgb(219 30 30 / 0.3); - border-right-color: rgb(219 30 30 / 0.3); -} - -.border-x-error\/40 { - border-left-color: rgb(219 30 30 / 0.4); - border-right-color: rgb(219 30 30 / 0.4); -} - -.border-x-error\/5 { - border-left-color: rgb(219 30 30 / 0.05); - border-right-color: rgb(219 30 30 / 0.05); -} - -.border-x-error\/50 { - border-left-color: rgb(219 30 30 / 0.5); - border-right-color: rgb(219 30 30 / 0.5); -} - -.border-x-error\/60 { - border-left-color: rgb(219 30 30 / 0.6); - border-right-color: rgb(219 30 30 / 0.6); -} - -.border-x-error\/70 { - border-left-color: rgb(219 30 30 / 0.7); - border-right-color: rgb(219 30 30 / 0.7); -} - -.border-x-error\/75 { - border-left-color: rgb(219 30 30 / 0.75); - border-right-color: rgb(219 30 30 / 0.75); -} - -.border-x-error\/80 { - border-left-color: rgb(219 30 30 / 0.8); - border-right-color: rgb(219 30 30 / 0.8); -} - -.border-x-error\/90 { - border-left-color: rgb(219 30 30 / 0.9); - border-right-color: rgb(219 30 30 / 0.9); -} - -.border-x-error\/95 { - border-left-color: rgb(219 30 30 / 0.95); - border-right-color: rgb(219 30 30 / 0.95); -} - -.border-x-error\/shadow { - border-left-color: rgb(219 30 30 / .15); - border-right-color: rgb(219 30 30 / .15); -} - -.border-x-errorlight { - --tw-border-opacity: 1; - border-left-color: rgb(255 236 236 / var(--tw-border-opacity)); - border-right-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-x-errorlight\/0 { - border-left-color: rgb(255 236 236 / 0); - border-right-color: rgb(255 236 236 / 0); -} - -.border-x-errorlight\/10 { - border-left-color: rgb(255 236 236 / 0.1); - border-right-color: rgb(255 236 236 / 0.1); -} - -.border-x-errorlight\/100 { - border-left-color: rgb(255 236 236 / 1); - border-right-color: rgb(255 236 236 / 1); -} - -.border-x-errorlight\/20 { - border-left-color: rgb(255 236 236 / 0.2); - border-right-color: rgb(255 236 236 / 0.2); -} - -.border-x-errorlight\/25 { - border-left-color: rgb(255 236 236 / 0.25); - border-right-color: rgb(255 236 236 / 0.25); -} - -.border-x-errorlight\/30 { - border-left-color: rgb(255 236 236 / 0.3); - border-right-color: rgb(255 236 236 / 0.3); -} - -.border-x-errorlight\/40 { - border-left-color: rgb(255 236 236 / 0.4); - border-right-color: rgb(255 236 236 / 0.4); -} - -.border-x-errorlight\/5 { - border-left-color: rgb(255 236 236 / 0.05); - border-right-color: rgb(255 236 236 / 0.05); -} - -.border-x-errorlight\/50 { - border-left-color: rgb(255 236 236 / 0.5); - border-right-color: rgb(255 236 236 / 0.5); -} - -.border-x-errorlight\/60 { - border-left-color: rgb(255 236 236 / 0.6); - border-right-color: rgb(255 236 236 / 0.6); -} - -.border-x-errorlight\/70 { - border-left-color: rgb(255 236 236 / 0.7); - border-right-color: rgb(255 236 236 / 0.7); -} - -.border-x-errorlight\/75 { - border-left-color: rgb(255 236 236 / 0.75); - border-right-color: rgb(255 236 236 / 0.75); -} - -.border-x-errorlight\/80 { - border-left-color: rgb(255 236 236 / 0.8); - border-right-color: rgb(255 236 236 / 0.8); -} - -.border-x-errorlight\/90 { - border-left-color: rgb(255 236 236 / 0.9); - border-right-color: rgb(255 236 236 / 0.9); -} - -.border-x-errorlight\/95 { - border-left-color: rgb(255 236 236 / 0.95); - border-right-color: rgb(255 236 236 / 0.95); -} - -.border-x-errorlight\/shadow { - border-left-color: rgb(255 236 236 / .15); - border-right-color: rgb(255 236 236 / .15); -} - -.border-x-google { - --tw-border-opacity: 1; - border-left-color: rgb(234 67 53 / var(--tw-border-opacity)); - border-right-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-x-google\/0 { - border-left-color: rgb(234 67 53 / 0); - border-right-color: rgb(234 67 53 / 0); -} - -.border-x-google\/10 { - border-left-color: rgb(234 67 53 / 0.1); - border-right-color: rgb(234 67 53 / 0.1); -} - -.border-x-google\/100 { - border-left-color: rgb(234 67 53 / 1); - border-right-color: rgb(234 67 53 / 1); -} - -.border-x-google\/20 { - border-left-color: rgb(234 67 53 / 0.2); - border-right-color: rgb(234 67 53 / 0.2); -} - -.border-x-google\/25 { - border-left-color: rgb(234 67 53 / 0.25); - border-right-color: rgb(234 67 53 / 0.25); -} - -.border-x-google\/30 { - border-left-color: rgb(234 67 53 / 0.3); - border-right-color: rgb(234 67 53 / 0.3); -} - -.border-x-google\/40 { - border-left-color: rgb(234 67 53 / 0.4); - border-right-color: rgb(234 67 53 / 0.4); -} - -.border-x-google\/5 { - border-left-color: rgb(234 67 53 / 0.05); - border-right-color: rgb(234 67 53 / 0.05); -} - -.border-x-google\/50 { - border-left-color: rgb(234 67 53 / 0.5); - border-right-color: rgb(234 67 53 / 0.5); -} - -.border-x-google\/60 { - border-left-color: rgb(234 67 53 / 0.6); - border-right-color: rgb(234 67 53 / 0.6); -} - -.border-x-google\/70 { - border-left-color: rgb(234 67 53 / 0.7); - border-right-color: rgb(234 67 53 / 0.7); -} - -.border-x-google\/75 { - border-left-color: rgb(234 67 53 / 0.75); - border-right-color: rgb(234 67 53 / 0.75); -} - -.border-x-google\/80 { - border-left-color: rgb(234 67 53 / 0.8); - border-right-color: rgb(234 67 53 / 0.8); -} - -.border-x-google\/90 { - border-left-color: rgb(234 67 53 / 0.9); - border-right-color: rgb(234 67 53 / 0.9); -} - -.border-x-google\/95 { - border-left-color: rgb(234 67 53 / 0.95); - border-right-color: rgb(234 67 53 / 0.95); -} - -.border-x-google\/shadow { - border-left-color: rgb(234 67 53 / .15); - border-right-color: rgb(234 67 53 / .15); -} - -.border-x-grey1 { - --tw-border-opacity: 1; - border-left-color: rgb(34 34 34 / var(--tw-border-opacity)); - border-right-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-x-grey1\/0 { - border-left-color: rgb(34 34 34 / 0); - border-right-color: rgb(34 34 34 / 0); -} - -.border-x-grey1\/10 { - border-left-color: rgb(34 34 34 / 0.1); - border-right-color: rgb(34 34 34 / 0.1); -} - -.border-x-grey1\/100 { - border-left-color: rgb(34 34 34 / 1); - border-right-color: rgb(34 34 34 / 1); -} - -.border-x-grey1\/20 { - border-left-color: rgb(34 34 34 / 0.2); - border-right-color: rgb(34 34 34 / 0.2); -} - -.border-x-grey1\/25 { - border-left-color: rgb(34 34 34 / 0.25); - border-right-color: rgb(34 34 34 / 0.25); -} - -.border-x-grey1\/30 { - border-left-color: rgb(34 34 34 / 0.3); - border-right-color: rgb(34 34 34 / 0.3); -} - -.border-x-grey1\/40 { - border-left-color: rgb(34 34 34 / 0.4); - border-right-color: rgb(34 34 34 / 0.4); -} - -.border-x-grey1\/5 { - border-left-color: rgb(34 34 34 / 0.05); - border-right-color: rgb(34 34 34 / 0.05); -} - -.border-x-grey1\/50 { - border-left-color: rgb(34 34 34 / 0.5); - border-right-color: rgb(34 34 34 / 0.5); -} - -.border-x-grey1\/60 { - border-left-color: rgb(34 34 34 / 0.6); - border-right-color: rgb(34 34 34 / 0.6); -} - -.border-x-grey1\/70 { - border-left-color: rgb(34 34 34 / 0.7); - border-right-color: rgb(34 34 34 / 0.7); -} - -.border-x-grey1\/75 { - border-left-color: rgb(34 34 34 / 0.75); - border-right-color: rgb(34 34 34 / 0.75); -} - -.border-x-grey1\/80 { - border-left-color: rgb(34 34 34 / 0.8); - border-right-color: rgb(34 34 34 / 0.8); -} - -.border-x-grey1\/90 { - border-left-color: rgb(34 34 34 / 0.9); - border-right-color: rgb(34 34 34 / 0.9); -} - -.border-x-grey1\/95 { - border-left-color: rgb(34 34 34 / 0.95); - border-right-color: rgb(34 34 34 / 0.95); -} - -.border-x-grey1\/shadow { - border-left-color: rgb(34 34 34 / .15); - border-right-color: rgb(34 34 34 / .15); -} - -.border-x-grey2 { - --tw-border-opacity: 1; - border-left-color: rgb(153 153 153 / var(--tw-border-opacity)); - border-right-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-x-grey2\/0 { - border-left-color: rgb(153 153 153 / 0); - border-right-color: rgb(153 153 153 / 0); -} - -.border-x-grey2\/10 { - border-left-color: rgb(153 153 153 / 0.1); - border-right-color: rgb(153 153 153 / 0.1); -} - -.border-x-grey2\/100 { - border-left-color: rgb(153 153 153 / 1); - border-right-color: rgb(153 153 153 / 1); -} - -.border-x-grey2\/20 { - border-left-color: rgb(153 153 153 / 0.2); - border-right-color: rgb(153 153 153 / 0.2); -} - -.border-x-grey2\/25 { - border-left-color: rgb(153 153 153 / 0.25); - border-right-color: rgb(153 153 153 / 0.25); -} - -.border-x-grey2\/30 { - border-left-color: rgb(153 153 153 / 0.3); - border-right-color: rgb(153 153 153 / 0.3); -} - -.border-x-grey2\/40 { - border-left-color: rgb(153 153 153 / 0.4); - border-right-color: rgb(153 153 153 / 0.4); -} - -.border-x-grey2\/5 { - border-left-color: rgb(153 153 153 / 0.05); - border-right-color: rgb(153 153 153 / 0.05); -} - -.border-x-grey2\/50 { - border-left-color: rgb(153 153 153 / 0.5); - border-right-color: rgb(153 153 153 / 0.5); -} - -.border-x-grey2\/60 { - border-left-color: rgb(153 153 153 / 0.6); - border-right-color: rgb(153 153 153 / 0.6); -} - -.border-x-grey2\/70 { - border-left-color: rgb(153 153 153 / 0.7); - border-right-color: rgb(153 153 153 / 0.7); -} - -.border-x-grey2\/75 { - border-left-color: rgb(153 153 153 / 0.75); - border-right-color: rgb(153 153 153 / 0.75); -} - -.border-x-grey2\/80 { - border-left-color: rgb(153 153 153 / 0.8); - border-right-color: rgb(153 153 153 / 0.8); -} - -.border-x-grey2\/90 { - border-left-color: rgb(153 153 153 / 0.9); - border-right-color: rgb(153 153 153 / 0.9); -} - -.border-x-grey2\/95 { - border-left-color: rgb(153 153 153 / 0.95); - border-right-color: rgb(153 153 153 / 0.95); -} - -.border-x-grey2\/shadow { - border-left-color: rgb(153 153 153 / .15); - border-right-color: rgb(153 153 153 / .15); -} - -.border-x-grey3 { - --tw-border-opacity: 1; - border-left-color: rgb(204 204 204 / var(--tw-border-opacity)); - border-right-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-x-grey3\/0 { - border-left-color: rgb(204 204 204 / 0); - border-right-color: rgb(204 204 204 / 0); -} - -.border-x-grey3\/10 { - border-left-color: rgb(204 204 204 / 0.1); - border-right-color: rgb(204 204 204 / 0.1); -} - -.border-x-grey3\/100 { - border-left-color: rgb(204 204 204 / 1); - border-right-color: rgb(204 204 204 / 1); -} - -.border-x-grey3\/20 { - border-left-color: rgb(204 204 204 / 0.2); - border-right-color: rgb(204 204 204 / 0.2); -} - -.border-x-grey3\/25 { - border-left-color: rgb(204 204 204 / 0.25); - border-right-color: rgb(204 204 204 / 0.25); -} - -.border-x-grey3\/30 { - border-left-color: rgb(204 204 204 / 0.3); - border-right-color: rgb(204 204 204 / 0.3); -} - -.border-x-grey3\/40 { - border-left-color: rgb(204 204 204 / 0.4); - border-right-color: rgb(204 204 204 / 0.4); -} - -.border-x-grey3\/5 { - border-left-color: rgb(204 204 204 / 0.05); - border-right-color: rgb(204 204 204 / 0.05); -} - -.border-x-grey3\/50 { - border-left-color: rgb(204 204 204 / 0.5); - border-right-color: rgb(204 204 204 / 0.5); -} - -.border-x-grey3\/60 { - border-left-color: rgb(204 204 204 / 0.6); - border-right-color: rgb(204 204 204 / 0.6); -} - -.border-x-grey3\/70 { - border-left-color: rgb(204 204 204 / 0.7); - border-right-color: rgb(204 204 204 / 0.7); -} - -.border-x-grey3\/75 { - border-left-color: rgb(204 204 204 / 0.75); - border-right-color: rgb(204 204 204 / 0.75); -} - -.border-x-grey3\/80 { - border-left-color: rgb(204 204 204 / 0.8); - border-right-color: rgb(204 204 204 / 0.8); -} - -.border-x-grey3\/90 { - border-left-color: rgb(204 204 204 / 0.9); - border-right-color: rgb(204 204 204 / 0.9); -} - -.border-x-grey3\/95 { - border-left-color: rgb(204 204 204 / 0.95); - border-right-color: rgb(204 204 204 / 0.95); -} - -.border-x-grey3\/shadow { - border-left-color: rgb(204 204 204 / .15); - border-right-color: rgb(204 204 204 / .15); -} - -.border-x-grey4 { - --tw-border-opacity: 1; - border-left-color: rgb(238 238 238 / var(--tw-border-opacity)); - border-right-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-x-grey4\/0 { - border-left-color: rgb(238 238 238 / 0); - border-right-color: rgb(238 238 238 / 0); -} - -.border-x-grey4\/10 { - border-left-color: rgb(238 238 238 / 0.1); - border-right-color: rgb(238 238 238 / 0.1); -} - -.border-x-grey4\/100 { - border-left-color: rgb(238 238 238 / 1); - border-right-color: rgb(238 238 238 / 1); -} - -.border-x-grey4\/20 { - border-left-color: rgb(238 238 238 / 0.2); - border-right-color: rgb(238 238 238 / 0.2); -} - -.border-x-grey4\/25 { - border-left-color: rgb(238 238 238 / 0.25); - border-right-color: rgb(238 238 238 / 0.25); -} - -.border-x-grey4\/30 { - border-left-color: rgb(238 238 238 / 0.3); - border-right-color: rgb(238 238 238 / 0.3); -} - -.border-x-grey4\/40 { - border-left-color: rgb(238 238 238 / 0.4); - border-right-color: rgb(238 238 238 / 0.4); -} - -.border-x-grey4\/5 { - border-left-color: rgb(238 238 238 / 0.05); - border-right-color: rgb(238 238 238 / 0.05); -} - -.border-x-grey4\/50 { - border-left-color: rgb(238 238 238 / 0.5); - border-right-color: rgb(238 238 238 / 0.5); -} - -.border-x-grey4\/60 { - border-left-color: rgb(238 238 238 / 0.6); - border-right-color: rgb(238 238 238 / 0.6); -} - -.border-x-grey4\/70 { - border-left-color: rgb(238 238 238 / 0.7); - border-right-color: rgb(238 238 238 / 0.7); -} - -.border-x-grey4\/75 { - border-left-color: rgb(238 238 238 / 0.75); - border-right-color: rgb(238 238 238 / 0.75); -} - -.border-x-grey4\/80 { - border-left-color: rgb(238 238 238 / 0.8); - border-right-color: rgb(238 238 238 / 0.8); -} - -.border-x-grey4\/90 { - border-left-color: rgb(238 238 238 / 0.9); - border-right-color: rgb(238 238 238 / 0.9); -} - -.border-x-grey4\/95 { - border-left-color: rgb(238 238 238 / 0.95); - border-right-color: rgb(238 238 238 / 0.95); -} - -.border-x-grey4\/shadow { - border-left-color: rgb(238 238 238 / .15); - border-right-color: rgb(238 238 238 / .15); -} - -.border-x-grey5 { - --tw-border-opacity: 1; - border-left-color: rgb(246 246 246 / var(--tw-border-opacity)); - border-right-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-x-grey5\/0 { - border-left-color: rgb(246 246 246 / 0); - border-right-color: rgb(246 246 246 / 0); -} - -.border-x-grey5\/10 { - border-left-color: rgb(246 246 246 / 0.1); - border-right-color: rgb(246 246 246 / 0.1); -} - -.border-x-grey5\/100 { - border-left-color: rgb(246 246 246 / 1); - border-right-color: rgb(246 246 246 / 1); -} - -.border-x-grey5\/20 { - border-left-color: rgb(246 246 246 / 0.2); - border-right-color: rgb(246 246 246 / 0.2); -} - -.border-x-grey5\/25 { - border-left-color: rgb(246 246 246 / 0.25); - border-right-color: rgb(246 246 246 / 0.25); -} - -.border-x-grey5\/30 { - border-left-color: rgb(246 246 246 / 0.3); - border-right-color: rgb(246 246 246 / 0.3); -} - -.border-x-grey5\/40 { - border-left-color: rgb(246 246 246 / 0.4); - border-right-color: rgb(246 246 246 / 0.4); -} - -.border-x-grey5\/5 { - border-left-color: rgb(246 246 246 / 0.05); - border-right-color: rgb(246 246 246 / 0.05); -} - -.border-x-grey5\/50 { - border-left-color: rgb(246 246 246 / 0.5); - border-right-color: rgb(246 246 246 / 0.5); -} - -.border-x-grey5\/60 { - border-left-color: rgb(246 246 246 / 0.6); - border-right-color: rgb(246 246 246 / 0.6); -} - -.border-x-grey5\/70 { - border-left-color: rgb(246 246 246 / 0.7); - border-right-color: rgb(246 246 246 / 0.7); -} - -.border-x-grey5\/75 { - border-left-color: rgb(246 246 246 / 0.75); - border-right-color: rgb(246 246 246 / 0.75); -} - -.border-x-grey5\/80 { - border-left-color: rgb(246 246 246 / 0.8); - border-right-color: rgb(246 246 246 / 0.8); -} - -.border-x-grey5\/90 { - border-left-color: rgb(246 246 246 / 0.9); - border-right-color: rgb(246 246 246 / 0.9); -} - -.border-x-grey5\/95 { - border-left-color: rgb(246 246 246 / 0.95); - border-right-color: rgb(246 246 246 / 0.95); -} - -.border-x-grey5\/shadow { - border-left-color: rgb(246 246 246 / .15); - border-right-color: rgb(246 246 246 / .15); -} - -.border-x-grey6 { - --tw-border-opacity: 1; - border-left-color: rgb(250 250 250 / var(--tw-border-opacity)); - border-right-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-x-grey6\/0 { - border-left-color: rgb(250 250 250 / 0); - border-right-color: rgb(250 250 250 / 0); -} - -.border-x-grey6\/10 { - border-left-color: rgb(250 250 250 / 0.1); - border-right-color: rgb(250 250 250 / 0.1); -} - -.border-x-grey6\/100 { - border-left-color: rgb(250 250 250 / 1); - border-right-color: rgb(250 250 250 / 1); -} - -.border-x-grey6\/20 { - border-left-color: rgb(250 250 250 / 0.2); - border-right-color: rgb(250 250 250 / 0.2); -} - -.border-x-grey6\/25 { - border-left-color: rgb(250 250 250 / 0.25); - border-right-color: rgb(250 250 250 / 0.25); -} - -.border-x-grey6\/30 { - border-left-color: rgb(250 250 250 / 0.3); - border-right-color: rgb(250 250 250 / 0.3); -} - -.border-x-grey6\/40 { - border-left-color: rgb(250 250 250 / 0.4); - border-right-color: rgb(250 250 250 / 0.4); -} - -.border-x-grey6\/5 { - border-left-color: rgb(250 250 250 / 0.05); - border-right-color: rgb(250 250 250 / 0.05); -} - -.border-x-grey6\/50 { - border-left-color: rgb(250 250 250 / 0.5); - border-right-color: rgb(250 250 250 / 0.5); -} - -.border-x-grey6\/60 { - border-left-color: rgb(250 250 250 / 0.6); - border-right-color: rgb(250 250 250 / 0.6); -} - -.border-x-grey6\/70 { - border-left-color: rgb(250 250 250 / 0.7); - border-right-color: rgb(250 250 250 / 0.7); -} - -.border-x-grey6\/75 { - border-left-color: rgb(250 250 250 / 0.75); - border-right-color: rgb(250 250 250 / 0.75); -} - -.border-x-grey6\/80 { - border-left-color: rgb(250 250 250 / 0.8); - border-right-color: rgb(250 250 250 / 0.8); -} - -.border-x-grey6\/90 { - border-left-color: rgb(250 250 250 / 0.9); - border-right-color: rgb(250 250 250 / 0.9); -} - -.border-x-grey6\/95 { - border-left-color: rgb(250 250 250 / 0.95); - border-right-color: rgb(250 250 250 / 0.95); -} - -.border-x-grey6\/shadow { - border-left-color: rgb(250 250 250 / .15); - border-right-color: rgb(250 250 250 / .15); -} - -.border-x-primary { - --tw-border-opacity: 1; - border-left-color: rgb(66 114 239 / var(--tw-border-opacity)); - border-right-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-x-primary\/0 { - border-left-color: rgb(66 114 239 / 0); - border-right-color: rgb(66 114 239 / 0); -} - -.border-x-primary\/10 { - border-left-color: rgb(66 114 239 / 0.1); - border-right-color: rgb(66 114 239 / 0.1); -} - -.border-x-primary\/100 { - border-left-color: rgb(66 114 239 / 1); - border-right-color: rgb(66 114 239 / 1); -} - -.border-x-primary\/20 { - border-left-color: rgb(66 114 239 / 0.2); - border-right-color: rgb(66 114 239 / 0.2); -} - -.border-x-primary\/25 { - border-left-color: rgb(66 114 239 / 0.25); - border-right-color: rgb(66 114 239 / 0.25); -} - -.border-x-primary\/30 { - border-left-color: rgb(66 114 239 / 0.3); - border-right-color: rgb(66 114 239 / 0.3); -} - -.border-x-primary\/40 { - border-left-color: rgb(66 114 239 / 0.4); - border-right-color: rgb(66 114 239 / 0.4); -} - -.border-x-primary\/5 { - border-left-color: rgb(66 114 239 / 0.05); - border-right-color: rgb(66 114 239 / 0.05); -} - -.border-x-primary\/50 { - border-left-color: rgb(66 114 239 / 0.5); - border-right-color: rgb(66 114 239 / 0.5); -} - -.border-x-primary\/60 { - border-left-color: rgb(66 114 239 / 0.6); - border-right-color: rgb(66 114 239 / 0.6); -} - -.border-x-primary\/70 { - border-left-color: rgb(66 114 239 / 0.7); - border-right-color: rgb(66 114 239 / 0.7); -} - -.border-x-primary\/75 { - border-left-color: rgb(66 114 239 / 0.75); - border-right-color: rgb(66 114 239 / 0.75); -} - -.border-x-primary\/80 { - border-left-color: rgb(66 114 239 / 0.8); - border-right-color: rgb(66 114 239 / 0.8); -} - -.border-x-primary\/90 { - border-left-color: rgb(66 114 239 / 0.9); - border-right-color: rgb(66 114 239 / 0.9); -} - -.border-x-primary\/95 { - border-left-color: rgb(66 114 239 / 0.95); - border-right-color: rgb(66 114 239 / 0.95); -} - -.border-x-primary\/shadow { - border-left-color: rgb(66 114 239 / .15); - border-right-color: rgb(66 114 239 / .15); -} - -.border-x-primarylight { - --tw-border-opacity: 1; - border-left-color: rgb(227 234 253 / var(--tw-border-opacity)); - border-right-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-x-primarylight\/0 { - border-left-color: rgb(227 234 253 / 0); - border-right-color: rgb(227 234 253 / 0); -} - -.border-x-primarylight\/10 { - border-left-color: rgb(227 234 253 / 0.1); - border-right-color: rgb(227 234 253 / 0.1); -} - -.border-x-primarylight\/100 { - border-left-color: rgb(227 234 253 / 1); - border-right-color: rgb(227 234 253 / 1); -} - -.border-x-primarylight\/20 { - border-left-color: rgb(227 234 253 / 0.2); - border-right-color: rgb(227 234 253 / 0.2); -} - -.border-x-primarylight\/25 { - border-left-color: rgb(227 234 253 / 0.25); - border-right-color: rgb(227 234 253 / 0.25); -} - -.border-x-primarylight\/30 { - border-left-color: rgb(227 234 253 / 0.3); - border-right-color: rgb(227 234 253 / 0.3); -} - -.border-x-primarylight\/40 { - border-left-color: rgb(227 234 253 / 0.4); - border-right-color: rgb(227 234 253 / 0.4); -} - -.border-x-primarylight\/5 { - border-left-color: rgb(227 234 253 / 0.05); - border-right-color: rgb(227 234 253 / 0.05); -} - -.border-x-primarylight\/50 { - border-left-color: rgb(227 234 253 / 0.5); - border-right-color: rgb(227 234 253 / 0.5); -} - -.border-x-primarylight\/60 { - border-left-color: rgb(227 234 253 / 0.6); - border-right-color: rgb(227 234 253 / 0.6); -} - -.border-x-primarylight\/70 { - border-left-color: rgb(227 234 253 / 0.7); - border-right-color: rgb(227 234 253 / 0.7); -} - -.border-x-primarylight\/75 { - border-left-color: rgb(227 234 253 / 0.75); - border-right-color: rgb(227 234 253 / 0.75); -} - -.border-x-primarylight\/80 { - border-left-color: rgb(227 234 253 / 0.8); - border-right-color: rgb(227 234 253 / 0.8); -} - -.border-x-primarylight\/90 { - border-left-color: rgb(227 234 253 / 0.9); - border-right-color: rgb(227 234 253 / 0.9); -} - -.border-x-primarylight\/95 { - border-left-color: rgb(227 234 253 / 0.95); - border-right-color: rgb(227 234 253 / 0.95); -} - -.border-x-primarylight\/shadow { - border-left-color: rgb(227 234 253 / .15); - border-right-color: rgb(227 234 253 / .15); -} - -.border-x-secondary { - --tw-border-opacity: 1; - border-left-color: rgb(255 94 94 / var(--tw-border-opacity)); - border-right-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-x-secondary\/0 { - border-left-color: rgb(255 94 94 / 0); - border-right-color: rgb(255 94 94 / 0); -} - -.border-x-secondary\/10 { - border-left-color: rgb(255 94 94 / 0.1); - border-right-color: rgb(255 94 94 / 0.1); -} - -.border-x-secondary\/100 { - border-left-color: rgb(255 94 94 / 1); - border-right-color: rgb(255 94 94 / 1); -} - -.border-x-secondary\/20 { - border-left-color: rgb(255 94 94 / 0.2); - border-right-color: rgb(255 94 94 / 0.2); -} - -.border-x-secondary\/25 { - border-left-color: rgb(255 94 94 / 0.25); - border-right-color: rgb(255 94 94 / 0.25); -} - -.border-x-secondary\/30 { - border-left-color: rgb(255 94 94 / 0.3); - border-right-color: rgb(255 94 94 / 0.3); -} - -.border-x-secondary\/40 { - border-left-color: rgb(255 94 94 / 0.4); - border-right-color: rgb(255 94 94 / 0.4); -} - -.border-x-secondary\/5 { - border-left-color: rgb(255 94 94 / 0.05); - border-right-color: rgb(255 94 94 / 0.05); -} - -.border-x-secondary\/50 { - border-left-color: rgb(255 94 94 / 0.5); - border-right-color: rgb(255 94 94 / 0.5); -} - -.border-x-secondary\/60 { - border-left-color: rgb(255 94 94 / 0.6); - border-right-color: rgb(255 94 94 / 0.6); -} - -.border-x-secondary\/70 { - border-left-color: rgb(255 94 94 / 0.7); - border-right-color: rgb(255 94 94 / 0.7); -} - -.border-x-secondary\/75 { - border-left-color: rgb(255 94 94 / 0.75); - border-right-color: rgb(255 94 94 / 0.75); -} - -.border-x-secondary\/80 { - border-left-color: rgb(255 94 94 / 0.8); - border-right-color: rgb(255 94 94 / 0.8); -} - -.border-x-secondary\/90 { - border-left-color: rgb(255 94 94 / 0.9); - border-right-color: rgb(255 94 94 / 0.9); -} - -.border-x-secondary\/95 { - border-left-color: rgb(255 94 94 / 0.95); - border-right-color: rgb(255 94 94 / 0.95); -} - -.border-x-secondary\/shadow { - border-left-color: rgb(255 94 94 / .15); - border-right-color: rgb(255 94 94 / .15); -} - -.border-x-success { - --tw-border-opacity: 1; - border-left-color: rgb(111 202 55 / var(--tw-border-opacity)); - border-right-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-x-success\/0 { - border-left-color: rgb(111 202 55 / 0); - border-right-color: rgb(111 202 55 / 0); -} - -.border-x-success\/10 { - border-left-color: rgb(111 202 55 / 0.1); - border-right-color: rgb(111 202 55 / 0.1); -} - -.border-x-success\/100 { - border-left-color: rgb(111 202 55 / 1); - border-right-color: rgb(111 202 55 / 1); -} - -.border-x-success\/20 { - border-left-color: rgb(111 202 55 / 0.2); - border-right-color: rgb(111 202 55 / 0.2); -} - -.border-x-success\/25 { - border-left-color: rgb(111 202 55 / 0.25); - border-right-color: rgb(111 202 55 / 0.25); -} - -.border-x-success\/30 { - border-left-color: rgb(111 202 55 / 0.3); - border-right-color: rgb(111 202 55 / 0.3); -} - -.border-x-success\/40 { - border-left-color: rgb(111 202 55 / 0.4); - border-right-color: rgb(111 202 55 / 0.4); -} - -.border-x-success\/5 { - border-left-color: rgb(111 202 55 / 0.05); - border-right-color: rgb(111 202 55 / 0.05); -} - -.border-x-success\/50 { - border-left-color: rgb(111 202 55 / 0.5); - border-right-color: rgb(111 202 55 / 0.5); -} - -.border-x-success\/60 { - border-left-color: rgb(111 202 55 / 0.6); - border-right-color: rgb(111 202 55 / 0.6); -} - -.border-x-success\/70 { - border-left-color: rgb(111 202 55 / 0.7); - border-right-color: rgb(111 202 55 / 0.7); -} - -.border-x-success\/75 { - border-left-color: rgb(111 202 55 / 0.75); - border-right-color: rgb(111 202 55 / 0.75); -} - -.border-x-success\/80 { - border-left-color: rgb(111 202 55 / 0.8); - border-right-color: rgb(111 202 55 / 0.8); -} - -.border-x-success\/90 { - border-left-color: rgb(111 202 55 / 0.9); - border-right-color: rgb(111 202 55 / 0.9); -} - -.border-x-success\/95 { - border-left-color: rgb(111 202 55 / 0.95); - border-right-color: rgb(111 202 55 / 0.95); -} - -.border-x-success\/shadow { - border-left-color: rgb(111 202 55 / .15); - border-right-color: rgb(111 202 55 / .15); -} - -.border-x-successlight { - --tw-border-opacity: 1; - border-left-color: rgb(235 255 223 / var(--tw-border-opacity)); - border-right-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-x-successlight\/0 { - border-left-color: rgb(235 255 223 / 0); - border-right-color: rgb(235 255 223 / 0); -} - -.border-x-successlight\/10 { - border-left-color: rgb(235 255 223 / 0.1); - border-right-color: rgb(235 255 223 / 0.1); -} - -.border-x-successlight\/100 { - border-left-color: rgb(235 255 223 / 1); - border-right-color: rgb(235 255 223 / 1); -} - -.border-x-successlight\/20 { - border-left-color: rgb(235 255 223 / 0.2); - border-right-color: rgb(235 255 223 / 0.2); -} - -.border-x-successlight\/25 { - border-left-color: rgb(235 255 223 / 0.25); - border-right-color: rgb(235 255 223 / 0.25); -} - -.border-x-successlight\/30 { - border-left-color: rgb(235 255 223 / 0.3); - border-right-color: rgb(235 255 223 / 0.3); -} - -.border-x-successlight\/40 { - border-left-color: rgb(235 255 223 / 0.4); - border-right-color: rgb(235 255 223 / 0.4); -} - -.border-x-successlight\/5 { - border-left-color: rgb(235 255 223 / 0.05); - border-right-color: rgb(235 255 223 / 0.05); -} - -.border-x-successlight\/50 { - border-left-color: rgb(235 255 223 / 0.5); - border-right-color: rgb(235 255 223 / 0.5); -} - -.border-x-successlight\/60 { - border-left-color: rgb(235 255 223 / 0.6); - border-right-color: rgb(235 255 223 / 0.6); -} - -.border-x-successlight\/70 { - border-left-color: rgb(235 255 223 / 0.7); - border-right-color: rgb(235 255 223 / 0.7); -} - -.border-x-successlight\/75 { - border-left-color: rgb(235 255 223 / 0.75); - border-right-color: rgb(235 255 223 / 0.75); -} - -.border-x-successlight\/80 { - border-left-color: rgb(235 255 223 / 0.8); - border-right-color: rgb(235 255 223 / 0.8); -} - -.border-x-successlight\/90 { - border-left-color: rgb(235 255 223 / 0.9); - border-right-color: rgb(235 255 223 / 0.9); -} - -.border-x-successlight\/95 { - border-left-color: rgb(235 255 223 / 0.95); - border-right-color: rgb(235 255 223 / 0.95); -} - -.border-x-successlight\/shadow { - border-left-color: rgb(235 255 223 / .15); - border-right-color: rgb(235 255 223 / .15); -} - -.border-x-surfconext { - --tw-border-opacity: 1; - border-left-color: rgb(77 178 207 / var(--tw-border-opacity)); - border-right-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-x-surfconext\/0 { - border-left-color: rgb(77 178 207 / 0); - border-right-color: rgb(77 178 207 / 0); -} - -.border-x-surfconext\/10 { - border-left-color: rgb(77 178 207 / 0.1); - border-right-color: rgb(77 178 207 / 0.1); -} - -.border-x-surfconext\/100 { - border-left-color: rgb(77 178 207 / 1); - border-right-color: rgb(77 178 207 / 1); -} - -.border-x-surfconext\/20 { - border-left-color: rgb(77 178 207 / 0.2); - border-right-color: rgb(77 178 207 / 0.2); -} - -.border-x-surfconext\/25 { - border-left-color: rgb(77 178 207 / 0.25); - border-right-color: rgb(77 178 207 / 0.25); -} - -.border-x-surfconext\/30 { - border-left-color: rgb(77 178 207 / 0.3); - border-right-color: rgb(77 178 207 / 0.3); -} - -.border-x-surfconext\/40 { - border-left-color: rgb(77 178 207 / 0.4); - border-right-color: rgb(77 178 207 / 0.4); -} - -.border-x-surfconext\/5 { - border-left-color: rgb(77 178 207 / 0.05); - border-right-color: rgb(77 178 207 / 0.05); -} - -.border-x-surfconext\/50 { - border-left-color: rgb(77 178 207 / 0.5); - border-right-color: rgb(77 178 207 / 0.5); -} - -.border-x-surfconext\/60 { - border-left-color: rgb(77 178 207 / 0.6); - border-right-color: rgb(77 178 207 / 0.6); -} - -.border-x-surfconext\/70 { - border-left-color: rgb(77 178 207 / 0.7); - border-right-color: rgb(77 178 207 / 0.7); -} - -.border-x-surfconext\/75 { - border-left-color: rgb(77 178 207 / 0.75); - border-right-color: rgb(77 178 207 / 0.75); -} - -.border-x-surfconext\/80 { - border-left-color: rgb(77 178 207 / 0.8); - border-right-color: rgb(77 178 207 / 0.8); -} - -.border-x-surfconext\/90 { - border-left-color: rgb(77 178 207 / 0.9); - border-right-color: rgb(77 178 207 / 0.9); -} - -.border-x-surfconext\/95 { - border-left-color: rgb(77 178 207 / 0.95); - border-right-color: rgb(77 178 207 / 0.95); -} - -.border-x-surfconext\/shadow { - border-left-color: rgb(77 178 207 / .15); - border-right-color: rgb(77 178 207 / .15); -} - -.border-x-tertiary { - --tw-border-opacity: 1; - border-left-color: rgb(255 207 96 / var(--tw-border-opacity)); - border-right-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-x-tertiary\/0 { - border-left-color: rgb(255 207 96 / 0); - border-right-color: rgb(255 207 96 / 0); -} - -.border-x-tertiary\/10 { - border-left-color: rgb(255 207 96 / 0.1); - border-right-color: rgb(255 207 96 / 0.1); -} - -.border-x-tertiary\/100 { - border-left-color: rgb(255 207 96 / 1); - border-right-color: rgb(255 207 96 / 1); -} - -.border-x-tertiary\/20 { - border-left-color: rgb(255 207 96 / 0.2); - border-right-color: rgb(255 207 96 / 0.2); -} - -.border-x-tertiary\/25 { - border-left-color: rgb(255 207 96 / 0.25); - border-right-color: rgb(255 207 96 / 0.25); -} - -.border-x-tertiary\/30 { - border-left-color: rgb(255 207 96 / 0.3); - border-right-color: rgb(255 207 96 / 0.3); -} - -.border-x-tertiary\/40 { - border-left-color: rgb(255 207 96 / 0.4); - border-right-color: rgb(255 207 96 / 0.4); -} - -.border-x-tertiary\/5 { - border-left-color: rgb(255 207 96 / 0.05); - border-right-color: rgb(255 207 96 / 0.05); -} - -.border-x-tertiary\/50 { - border-left-color: rgb(255 207 96 / 0.5); - border-right-color: rgb(255 207 96 / 0.5); -} - -.border-x-tertiary\/60 { - border-left-color: rgb(255 207 96 / 0.6); - border-right-color: rgb(255 207 96 / 0.6); -} - -.border-x-tertiary\/70 { - border-left-color: rgb(255 207 96 / 0.7); - border-right-color: rgb(255 207 96 / 0.7); -} - -.border-x-tertiary\/75 { - border-left-color: rgb(255 207 96 / 0.75); - border-right-color: rgb(255 207 96 / 0.75); -} - -.border-x-tertiary\/80 { - border-left-color: rgb(255 207 96 / 0.8); - border-right-color: rgb(255 207 96 / 0.8); -} - -.border-x-tertiary\/90 { - border-left-color: rgb(255 207 96 / 0.9); - border-right-color: rgb(255 207 96 / 0.9); -} - -.border-x-tertiary\/95 { - border-left-color: rgb(255 207 96 / 0.95); - border-right-color: rgb(255 207 96 / 0.95); -} - -.border-x-tertiary\/shadow { - border-left-color: rgb(255 207 96 / .15); - border-right-color: rgb(255 207 96 / .15); -} - -.border-x-warning { - --tw-border-opacity: 1; - border-left-color: rgb(242 141 21 / var(--tw-border-opacity)); - border-right-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-x-warning\/0 { - border-left-color: rgb(242 141 21 / 0); - border-right-color: rgb(242 141 21 / 0); -} - -.border-x-warning\/10 { - border-left-color: rgb(242 141 21 / 0.1); - border-right-color: rgb(242 141 21 / 0.1); -} - -.border-x-warning\/100 { - border-left-color: rgb(242 141 21 / 1); - border-right-color: rgb(242 141 21 / 1); -} - -.border-x-warning\/20 { - border-left-color: rgb(242 141 21 / 0.2); - border-right-color: rgb(242 141 21 / 0.2); -} - -.border-x-warning\/25 { - border-left-color: rgb(242 141 21 / 0.25); - border-right-color: rgb(242 141 21 / 0.25); -} - -.border-x-warning\/30 { - border-left-color: rgb(242 141 21 / 0.3); - border-right-color: rgb(242 141 21 / 0.3); -} - -.border-x-warning\/40 { - border-left-color: rgb(242 141 21 / 0.4); - border-right-color: rgb(242 141 21 / 0.4); -} - -.border-x-warning\/5 { - border-left-color: rgb(242 141 21 / 0.05); - border-right-color: rgb(242 141 21 / 0.05); -} - -.border-x-warning\/50 { - border-left-color: rgb(242 141 21 / 0.5); - border-right-color: rgb(242 141 21 / 0.5); -} - -.border-x-warning\/60 { - border-left-color: rgb(242 141 21 / 0.6); - border-right-color: rgb(242 141 21 / 0.6); -} - -.border-x-warning\/70 { - border-left-color: rgb(242 141 21 / 0.7); - border-right-color: rgb(242 141 21 / 0.7); -} - -.border-x-warning\/75 { - border-left-color: rgb(242 141 21 / 0.75); - border-right-color: rgb(242 141 21 / 0.75); -} - -.border-x-warning\/80 { - border-left-color: rgb(242 141 21 / 0.8); - border-right-color: rgb(242 141 21 / 0.8); -} - -.border-x-warning\/90 { - border-left-color: rgb(242 141 21 / 0.9); - border-right-color: rgb(242 141 21 / 0.9); -} - -.border-x-warning\/95 { - border-left-color: rgb(242 141 21 / 0.95); - border-right-color: rgb(242 141 21 / 0.95); -} - -.border-x-warning\/shadow { - border-left-color: rgb(242 141 21 / .15); - border-right-color: rgb(242 141 21 / .15); -} - -.border-x-warninglight { - --tw-border-opacity: 1; - border-left-color: rgb(255 239 220 / var(--tw-border-opacity)); - border-right-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-x-warninglight\/0 { - border-left-color: rgb(255 239 220 / 0); - border-right-color: rgb(255 239 220 / 0); -} - -.border-x-warninglight\/10 { - border-left-color: rgb(255 239 220 / 0.1); - border-right-color: rgb(255 239 220 / 0.1); -} - -.border-x-warninglight\/100 { - border-left-color: rgb(255 239 220 / 1); - border-right-color: rgb(255 239 220 / 1); -} - -.border-x-warninglight\/20 { - border-left-color: rgb(255 239 220 / 0.2); - border-right-color: rgb(255 239 220 / 0.2); -} - -.border-x-warninglight\/25 { - border-left-color: rgb(255 239 220 / 0.25); - border-right-color: rgb(255 239 220 / 0.25); -} - -.border-x-warninglight\/30 { - border-left-color: rgb(255 239 220 / 0.3); - border-right-color: rgb(255 239 220 / 0.3); -} - -.border-x-warninglight\/40 { - border-left-color: rgb(255 239 220 / 0.4); - border-right-color: rgb(255 239 220 / 0.4); -} - -.border-x-warninglight\/5 { - border-left-color: rgb(255 239 220 / 0.05); - border-right-color: rgb(255 239 220 / 0.05); -} - -.border-x-warninglight\/50 { - border-left-color: rgb(255 239 220 / 0.5); - border-right-color: rgb(255 239 220 / 0.5); -} - -.border-x-warninglight\/60 { - border-left-color: rgb(255 239 220 / 0.6); - border-right-color: rgb(255 239 220 / 0.6); -} - -.border-x-warninglight\/70 { - border-left-color: rgb(255 239 220 / 0.7); - border-right-color: rgb(255 239 220 / 0.7); -} - -.border-x-warninglight\/75 { - border-left-color: rgb(255 239 220 / 0.75); - border-right-color: rgb(255 239 220 / 0.75); -} - -.border-x-warninglight\/80 { - border-left-color: rgb(255 239 220 / 0.8); - border-right-color: rgb(255 239 220 / 0.8); -} - -.border-x-warninglight\/90 { - border-left-color: rgb(255 239 220 / 0.9); - border-right-color: rgb(255 239 220 / 0.9); -} - -.border-x-warninglight\/95 { - border-left-color: rgb(255 239 220 / 0.95); - border-right-color: rgb(255 239 220 / 0.95); -} - -.border-x-warninglight\/shadow { - border-left-color: rgb(255 239 220 / .15); - border-right-color: rgb(255 239 220 / .15); -} - -.border-x-white { - --tw-border-opacity: 1; - border-left-color: rgb(255 255 255 / var(--tw-border-opacity)); - border-right-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-x-white\/0 { - border-left-color: rgb(255 255 255 / 0); - border-right-color: rgb(255 255 255 / 0); -} - -.border-x-white\/10 { - border-left-color: rgb(255 255 255 / 0.1); - border-right-color: rgb(255 255 255 / 0.1); -} - -.border-x-white\/100 { - border-left-color: rgb(255 255 255 / 1); - border-right-color: rgb(255 255 255 / 1); -} - -.border-x-white\/20 { - border-left-color: rgb(255 255 255 / 0.2); - border-right-color: rgb(255 255 255 / 0.2); -} - -.border-x-white\/25 { - border-left-color: rgb(255 255 255 / 0.25); - border-right-color: rgb(255 255 255 / 0.25); -} - -.border-x-white\/30 { - border-left-color: rgb(255 255 255 / 0.3); - border-right-color: rgb(255 255 255 / 0.3); -} - -.border-x-white\/40 { - border-left-color: rgb(255 255 255 / 0.4); - border-right-color: rgb(255 255 255 / 0.4); -} - -.border-x-white\/5 { - border-left-color: rgb(255 255 255 / 0.05); - border-right-color: rgb(255 255 255 / 0.05); -} - -.border-x-white\/50 { - border-left-color: rgb(255 255 255 / 0.5); - border-right-color: rgb(255 255 255 / 0.5); -} - -.border-x-white\/60 { - border-left-color: rgb(255 255 255 / 0.6); - border-right-color: rgb(255 255 255 / 0.6); -} - -.border-x-white\/70 { - border-left-color: rgb(255 255 255 / 0.7); - border-right-color: rgb(255 255 255 / 0.7); -} - -.border-x-white\/75 { - border-left-color: rgb(255 255 255 / 0.75); - border-right-color: rgb(255 255 255 / 0.75); -} - -.border-x-white\/80 { - border-left-color: rgb(255 255 255 / 0.8); - border-right-color: rgb(255 255 255 / 0.8); -} - -.border-x-white\/90 { - border-left-color: rgb(255 255 255 / 0.9); - border-right-color: rgb(255 255 255 / 0.9); -} - -.border-x-white\/95 { - border-left-color: rgb(255 255 255 / 0.95); - border-right-color: rgb(255 255 255 / 0.95); -} - -.border-x-white\/shadow { - border-left-color: rgb(255 255 255 / .15); - border-right-color: rgb(255 255 255 / .15); -} - -.border-y-apple { - --tw-border-opacity: 1; - border-top-color: rgb(0 0 0 / var(--tw-border-opacity)); - border-bottom-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-y-apple\/0 { - border-top-color: rgb(0 0 0 / 0); - border-bottom-color: rgb(0 0 0 / 0); -} - -.border-y-apple\/10 { - border-top-color: rgb(0 0 0 / 0.1); - border-bottom-color: rgb(0 0 0 / 0.1); -} - -.border-y-apple\/100 { - border-top-color: rgb(0 0 0 / 1); - border-bottom-color: rgb(0 0 0 / 1); -} - -.border-y-apple\/20 { - border-top-color: rgb(0 0 0 / 0.2); - border-bottom-color: rgb(0 0 0 / 0.2); -} - -.border-y-apple\/25 { - border-top-color: rgb(0 0 0 / 0.25); - border-bottom-color: rgb(0 0 0 / 0.25); -} - -.border-y-apple\/30 { - border-top-color: rgb(0 0 0 / 0.3); - border-bottom-color: rgb(0 0 0 / 0.3); -} - -.border-y-apple\/40 { - border-top-color: rgb(0 0 0 / 0.4); - border-bottom-color: rgb(0 0 0 / 0.4); -} - -.border-y-apple\/5 { - border-top-color: rgb(0 0 0 / 0.05); - border-bottom-color: rgb(0 0 0 / 0.05); -} - -.border-y-apple\/50 { - border-top-color: rgb(0 0 0 / 0.5); - border-bottom-color: rgb(0 0 0 / 0.5); -} - -.border-y-apple\/60 { - border-top-color: rgb(0 0 0 / 0.6); - border-bottom-color: rgb(0 0 0 / 0.6); -} - -.border-y-apple\/70 { - border-top-color: rgb(0 0 0 / 0.7); - border-bottom-color: rgb(0 0 0 / 0.7); -} - -.border-y-apple\/75 { - border-top-color: rgb(0 0 0 / 0.75); - border-bottom-color: rgb(0 0 0 / 0.75); -} - -.border-y-apple\/80 { - border-top-color: rgb(0 0 0 / 0.8); - border-bottom-color: rgb(0 0 0 / 0.8); -} - -.border-y-apple\/90 { - border-top-color: rgb(0 0 0 / 0.9); - border-bottom-color: rgb(0 0 0 / 0.9); -} - -.border-y-apple\/95 { - border-top-color: rgb(0 0 0 / 0.95); - border-bottom-color: rgb(0 0 0 / 0.95); -} - -.border-y-apple\/shadow { - border-top-color: rgb(0 0 0 / .15); - border-bottom-color: rgb(0 0 0 / .15); -} - -.border-y-black { - --tw-border-opacity: 1; - border-top-color: rgb(0 0 0 / var(--tw-border-opacity)); - border-bottom-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-y-black\/0 { - border-top-color: rgb(0 0 0 / 0); - border-bottom-color: rgb(0 0 0 / 0); -} - -.border-y-black\/10 { - border-top-color: rgb(0 0 0 / 0.1); - border-bottom-color: rgb(0 0 0 / 0.1); -} - -.border-y-black\/100 { - border-top-color: rgb(0 0 0 / 1); - border-bottom-color: rgb(0 0 0 / 1); -} - -.border-y-black\/20 { - border-top-color: rgb(0 0 0 / 0.2); - border-bottom-color: rgb(0 0 0 / 0.2); -} - -.border-y-black\/25 { - border-top-color: rgb(0 0 0 / 0.25); - border-bottom-color: rgb(0 0 0 / 0.25); -} - -.border-y-black\/30 { - border-top-color: rgb(0 0 0 / 0.3); - border-bottom-color: rgb(0 0 0 / 0.3); -} - -.border-y-black\/40 { - border-top-color: rgb(0 0 0 / 0.4); - border-bottom-color: rgb(0 0 0 / 0.4); -} - -.border-y-black\/5 { - border-top-color: rgb(0 0 0 / 0.05); - border-bottom-color: rgb(0 0 0 / 0.05); -} - -.border-y-black\/50 { - border-top-color: rgb(0 0 0 / 0.5); - border-bottom-color: rgb(0 0 0 / 0.5); -} - -.border-y-black\/60 { - border-top-color: rgb(0 0 0 / 0.6); - border-bottom-color: rgb(0 0 0 / 0.6); -} - -.border-y-black\/70 { - border-top-color: rgb(0 0 0 / 0.7); - border-bottom-color: rgb(0 0 0 / 0.7); -} - -.border-y-black\/75 { - border-top-color: rgb(0 0 0 / 0.75); - border-bottom-color: rgb(0 0 0 / 0.75); -} - -.border-y-black\/80 { - border-top-color: rgb(0 0 0 / 0.8); - border-bottom-color: rgb(0 0 0 / 0.8); -} - -.border-y-black\/90 { - border-top-color: rgb(0 0 0 / 0.9); - border-bottom-color: rgb(0 0 0 / 0.9); -} - -.border-y-black\/95 { - border-top-color: rgb(0 0 0 / 0.95); - border-bottom-color: rgb(0 0 0 / 0.95); -} - -.border-y-black\/shadow { - border-top-color: rgb(0 0 0 / .15); - border-bottom-color: rgb(0 0 0 / .15); -} - -.border-y-delete { - --tw-border-opacity: 1; - border-top-color: rgb(219 30 30 / var(--tw-border-opacity)); - border-bottom-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-y-delete\/0 { - border-top-color: rgb(219 30 30 / 0); - border-bottom-color: rgb(219 30 30 / 0); -} - -.border-y-delete\/10 { - border-top-color: rgb(219 30 30 / 0.1); - border-bottom-color: rgb(219 30 30 / 0.1); -} - -.border-y-delete\/100 { - border-top-color: rgb(219 30 30 / 1); - border-bottom-color: rgb(219 30 30 / 1); -} - -.border-y-delete\/20 { - border-top-color: rgb(219 30 30 / 0.2); - border-bottom-color: rgb(219 30 30 / 0.2); -} - -.border-y-delete\/25 { - border-top-color: rgb(219 30 30 / 0.25); - border-bottom-color: rgb(219 30 30 / 0.25); -} - -.border-y-delete\/30 { - border-top-color: rgb(219 30 30 / 0.3); - border-bottom-color: rgb(219 30 30 / 0.3); -} - -.border-y-delete\/40 { - border-top-color: rgb(219 30 30 / 0.4); - border-bottom-color: rgb(219 30 30 / 0.4); -} - -.border-y-delete\/5 { - border-top-color: rgb(219 30 30 / 0.05); - border-bottom-color: rgb(219 30 30 / 0.05); -} - -.border-y-delete\/50 { - border-top-color: rgb(219 30 30 / 0.5); - border-bottom-color: rgb(219 30 30 / 0.5); -} - -.border-y-delete\/60 { - border-top-color: rgb(219 30 30 / 0.6); - border-bottom-color: rgb(219 30 30 / 0.6); -} - -.border-y-delete\/70 { - border-top-color: rgb(219 30 30 / 0.7); - border-bottom-color: rgb(219 30 30 / 0.7); -} - -.border-y-delete\/75 { - border-top-color: rgb(219 30 30 / 0.75); - border-bottom-color: rgb(219 30 30 / 0.75); -} - -.border-y-delete\/80 { - border-top-color: rgb(219 30 30 / 0.8); - border-bottom-color: rgb(219 30 30 / 0.8); -} - -.border-y-delete\/90 { - border-top-color: rgb(219 30 30 / 0.9); - border-bottom-color: rgb(219 30 30 / 0.9); -} - -.border-y-delete\/95 { - border-top-color: rgb(219 30 30 / 0.95); - border-bottom-color: rgb(219 30 30 / 0.95); -} - -.border-y-delete\/shadow { - border-top-color: rgb(219 30 30 / .15); - border-bottom-color: rgb(219 30 30 / .15); -} - -.border-y-deletelight { - --tw-border-opacity: 1; - border-top-color: rgb(255 236 236 / var(--tw-border-opacity)); - border-bottom-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-y-deletelight\/0 { - border-top-color: rgb(255 236 236 / 0); - border-bottom-color: rgb(255 236 236 / 0); -} - -.border-y-deletelight\/10 { - border-top-color: rgb(255 236 236 / 0.1); - border-bottom-color: rgb(255 236 236 / 0.1); -} - -.border-y-deletelight\/100 { - border-top-color: rgb(255 236 236 / 1); - border-bottom-color: rgb(255 236 236 / 1); -} - -.border-y-deletelight\/20 { - border-top-color: rgb(255 236 236 / 0.2); - border-bottom-color: rgb(255 236 236 / 0.2); -} - -.border-y-deletelight\/25 { - border-top-color: rgb(255 236 236 / 0.25); - border-bottom-color: rgb(255 236 236 / 0.25); -} - -.border-y-deletelight\/30 { - border-top-color: rgb(255 236 236 / 0.3); - border-bottom-color: rgb(255 236 236 / 0.3); -} - -.border-y-deletelight\/40 { - border-top-color: rgb(255 236 236 / 0.4); - border-bottom-color: rgb(255 236 236 / 0.4); -} - -.border-y-deletelight\/5 { - border-top-color: rgb(255 236 236 / 0.05); - border-bottom-color: rgb(255 236 236 / 0.05); -} - -.border-y-deletelight\/50 { - border-top-color: rgb(255 236 236 / 0.5); - border-bottom-color: rgb(255 236 236 / 0.5); -} - -.border-y-deletelight\/60 { - border-top-color: rgb(255 236 236 / 0.6); - border-bottom-color: rgb(255 236 236 / 0.6); -} - -.border-y-deletelight\/70 { - border-top-color: rgb(255 236 236 / 0.7); - border-bottom-color: rgb(255 236 236 / 0.7); -} - -.border-y-deletelight\/75 { - border-top-color: rgb(255 236 236 / 0.75); - border-bottom-color: rgb(255 236 236 / 0.75); -} - -.border-y-deletelight\/80 { - border-top-color: rgb(255 236 236 / 0.8); - border-bottom-color: rgb(255 236 236 / 0.8); -} - -.border-y-deletelight\/90 { - border-top-color: rgb(255 236 236 / 0.9); - border-bottom-color: rgb(255 236 236 / 0.9); -} - -.border-y-deletelight\/95 { - border-top-color: rgb(255 236 236 / 0.95); - border-bottom-color: rgb(255 236 236 / 0.95); -} - -.border-y-deletelight\/shadow { - border-top-color: rgb(255 236 236 / .15); - border-bottom-color: rgb(255 236 236 / .15); -} - -.border-y-error { - --tw-border-opacity: 1; - border-top-color: rgb(219 30 30 / var(--tw-border-opacity)); - border-bottom-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-y-error\/0 { - border-top-color: rgb(219 30 30 / 0); - border-bottom-color: rgb(219 30 30 / 0); -} - -.border-y-error\/10 { - border-top-color: rgb(219 30 30 / 0.1); - border-bottom-color: rgb(219 30 30 / 0.1); -} - -.border-y-error\/100 { - border-top-color: rgb(219 30 30 / 1); - border-bottom-color: rgb(219 30 30 / 1); -} - -.border-y-error\/20 { - border-top-color: rgb(219 30 30 / 0.2); - border-bottom-color: rgb(219 30 30 / 0.2); -} - -.border-y-error\/25 { - border-top-color: rgb(219 30 30 / 0.25); - border-bottom-color: rgb(219 30 30 / 0.25); -} - -.border-y-error\/30 { - border-top-color: rgb(219 30 30 / 0.3); - border-bottom-color: rgb(219 30 30 / 0.3); -} - -.border-y-error\/40 { - border-top-color: rgb(219 30 30 / 0.4); - border-bottom-color: rgb(219 30 30 / 0.4); -} - -.border-y-error\/5 { - border-top-color: rgb(219 30 30 / 0.05); - border-bottom-color: rgb(219 30 30 / 0.05); -} - -.border-y-error\/50 { - border-top-color: rgb(219 30 30 / 0.5); - border-bottom-color: rgb(219 30 30 / 0.5); -} - -.border-y-error\/60 { - border-top-color: rgb(219 30 30 / 0.6); - border-bottom-color: rgb(219 30 30 / 0.6); -} - -.border-y-error\/70 { - border-top-color: rgb(219 30 30 / 0.7); - border-bottom-color: rgb(219 30 30 / 0.7); -} - -.border-y-error\/75 { - border-top-color: rgb(219 30 30 / 0.75); - border-bottom-color: rgb(219 30 30 / 0.75); -} - -.border-y-error\/80 { - border-top-color: rgb(219 30 30 / 0.8); - border-bottom-color: rgb(219 30 30 / 0.8); -} - -.border-y-error\/90 { - border-top-color: rgb(219 30 30 / 0.9); - border-bottom-color: rgb(219 30 30 / 0.9); -} - -.border-y-error\/95 { - border-top-color: rgb(219 30 30 / 0.95); - border-bottom-color: rgb(219 30 30 / 0.95); -} - -.border-y-error\/shadow { - border-top-color: rgb(219 30 30 / .15); - border-bottom-color: rgb(219 30 30 / .15); -} - -.border-y-errorlight { - --tw-border-opacity: 1; - border-top-color: rgb(255 236 236 / var(--tw-border-opacity)); - border-bottom-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-y-errorlight\/0 { - border-top-color: rgb(255 236 236 / 0); - border-bottom-color: rgb(255 236 236 / 0); -} - -.border-y-errorlight\/10 { - border-top-color: rgb(255 236 236 / 0.1); - border-bottom-color: rgb(255 236 236 / 0.1); -} - -.border-y-errorlight\/100 { - border-top-color: rgb(255 236 236 / 1); - border-bottom-color: rgb(255 236 236 / 1); -} - -.border-y-errorlight\/20 { - border-top-color: rgb(255 236 236 / 0.2); - border-bottom-color: rgb(255 236 236 / 0.2); -} - -.border-y-errorlight\/25 { - border-top-color: rgb(255 236 236 / 0.25); - border-bottom-color: rgb(255 236 236 / 0.25); -} - -.border-y-errorlight\/30 { - border-top-color: rgb(255 236 236 / 0.3); - border-bottom-color: rgb(255 236 236 / 0.3); -} - -.border-y-errorlight\/40 { - border-top-color: rgb(255 236 236 / 0.4); - border-bottom-color: rgb(255 236 236 / 0.4); -} - -.border-y-errorlight\/5 { - border-top-color: rgb(255 236 236 / 0.05); - border-bottom-color: rgb(255 236 236 / 0.05); -} - -.border-y-errorlight\/50 { - border-top-color: rgb(255 236 236 / 0.5); - border-bottom-color: rgb(255 236 236 / 0.5); -} - -.border-y-errorlight\/60 { - border-top-color: rgb(255 236 236 / 0.6); - border-bottom-color: rgb(255 236 236 / 0.6); -} - -.border-y-errorlight\/70 { - border-top-color: rgb(255 236 236 / 0.7); - border-bottom-color: rgb(255 236 236 / 0.7); -} - -.border-y-errorlight\/75 { - border-top-color: rgb(255 236 236 / 0.75); - border-bottom-color: rgb(255 236 236 / 0.75); -} - -.border-y-errorlight\/80 { - border-top-color: rgb(255 236 236 / 0.8); - border-bottom-color: rgb(255 236 236 / 0.8); -} - -.border-y-errorlight\/90 { - border-top-color: rgb(255 236 236 / 0.9); - border-bottom-color: rgb(255 236 236 / 0.9); -} - -.border-y-errorlight\/95 { - border-top-color: rgb(255 236 236 / 0.95); - border-bottom-color: rgb(255 236 236 / 0.95); -} - -.border-y-errorlight\/shadow { - border-top-color: rgb(255 236 236 / .15); - border-bottom-color: rgb(255 236 236 / .15); -} - -.border-y-google { - --tw-border-opacity: 1; - border-top-color: rgb(234 67 53 / var(--tw-border-opacity)); - border-bottom-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-y-google\/0 { - border-top-color: rgb(234 67 53 / 0); - border-bottom-color: rgb(234 67 53 / 0); -} - -.border-y-google\/10 { - border-top-color: rgb(234 67 53 / 0.1); - border-bottom-color: rgb(234 67 53 / 0.1); -} - -.border-y-google\/100 { - border-top-color: rgb(234 67 53 / 1); - border-bottom-color: rgb(234 67 53 / 1); -} - -.border-y-google\/20 { - border-top-color: rgb(234 67 53 / 0.2); - border-bottom-color: rgb(234 67 53 / 0.2); -} - -.border-y-google\/25 { - border-top-color: rgb(234 67 53 / 0.25); - border-bottom-color: rgb(234 67 53 / 0.25); -} - -.border-y-google\/30 { - border-top-color: rgb(234 67 53 / 0.3); - border-bottom-color: rgb(234 67 53 / 0.3); -} - -.border-y-google\/40 { - border-top-color: rgb(234 67 53 / 0.4); - border-bottom-color: rgb(234 67 53 / 0.4); -} - -.border-y-google\/5 { - border-top-color: rgb(234 67 53 / 0.05); - border-bottom-color: rgb(234 67 53 / 0.05); -} - -.border-y-google\/50 { - border-top-color: rgb(234 67 53 / 0.5); - border-bottom-color: rgb(234 67 53 / 0.5); -} - -.border-y-google\/60 { - border-top-color: rgb(234 67 53 / 0.6); - border-bottom-color: rgb(234 67 53 / 0.6); -} - -.border-y-google\/70 { - border-top-color: rgb(234 67 53 / 0.7); - border-bottom-color: rgb(234 67 53 / 0.7); -} - -.border-y-google\/75 { - border-top-color: rgb(234 67 53 / 0.75); - border-bottom-color: rgb(234 67 53 / 0.75); -} - -.border-y-google\/80 { - border-top-color: rgb(234 67 53 / 0.8); - border-bottom-color: rgb(234 67 53 / 0.8); -} - -.border-y-google\/90 { - border-top-color: rgb(234 67 53 / 0.9); - border-bottom-color: rgb(234 67 53 / 0.9); -} - -.border-y-google\/95 { - border-top-color: rgb(234 67 53 / 0.95); - border-bottom-color: rgb(234 67 53 / 0.95); -} - -.border-y-google\/shadow { - border-top-color: rgb(234 67 53 / .15); - border-bottom-color: rgb(234 67 53 / .15); -} - -.border-y-grey1 { - --tw-border-opacity: 1; - border-top-color: rgb(34 34 34 / var(--tw-border-opacity)); - border-bottom-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-y-grey1\/0 { - border-top-color: rgb(34 34 34 / 0); - border-bottom-color: rgb(34 34 34 / 0); -} - -.border-y-grey1\/10 { - border-top-color: rgb(34 34 34 / 0.1); - border-bottom-color: rgb(34 34 34 / 0.1); -} - -.border-y-grey1\/100 { - border-top-color: rgb(34 34 34 / 1); - border-bottom-color: rgb(34 34 34 / 1); -} - -.border-y-grey1\/20 { - border-top-color: rgb(34 34 34 / 0.2); - border-bottom-color: rgb(34 34 34 / 0.2); -} - -.border-y-grey1\/25 { - border-top-color: rgb(34 34 34 / 0.25); - border-bottom-color: rgb(34 34 34 / 0.25); -} - -.border-y-grey1\/30 { - border-top-color: rgb(34 34 34 / 0.3); - border-bottom-color: rgb(34 34 34 / 0.3); -} - -.border-y-grey1\/40 { - border-top-color: rgb(34 34 34 / 0.4); - border-bottom-color: rgb(34 34 34 / 0.4); -} - -.border-y-grey1\/5 { - border-top-color: rgb(34 34 34 / 0.05); - border-bottom-color: rgb(34 34 34 / 0.05); -} - -.border-y-grey1\/50 { - border-top-color: rgb(34 34 34 / 0.5); - border-bottom-color: rgb(34 34 34 / 0.5); -} - -.border-y-grey1\/60 { - border-top-color: rgb(34 34 34 / 0.6); - border-bottom-color: rgb(34 34 34 / 0.6); -} - -.border-y-grey1\/70 { - border-top-color: rgb(34 34 34 / 0.7); - border-bottom-color: rgb(34 34 34 / 0.7); -} - -.border-y-grey1\/75 { - border-top-color: rgb(34 34 34 / 0.75); - border-bottom-color: rgb(34 34 34 / 0.75); -} - -.border-y-grey1\/80 { - border-top-color: rgb(34 34 34 / 0.8); - border-bottom-color: rgb(34 34 34 / 0.8); -} - -.border-y-grey1\/90 { - border-top-color: rgb(34 34 34 / 0.9); - border-bottom-color: rgb(34 34 34 / 0.9); -} - -.border-y-grey1\/95 { - border-top-color: rgb(34 34 34 / 0.95); - border-bottom-color: rgb(34 34 34 / 0.95); -} - -.border-y-grey1\/shadow { - border-top-color: rgb(34 34 34 / .15); - border-bottom-color: rgb(34 34 34 / .15); -} - -.border-y-grey2 { - --tw-border-opacity: 1; - border-top-color: rgb(153 153 153 / var(--tw-border-opacity)); - border-bottom-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-y-grey2\/0 { - border-top-color: rgb(153 153 153 / 0); - border-bottom-color: rgb(153 153 153 / 0); -} - -.border-y-grey2\/10 { - border-top-color: rgb(153 153 153 / 0.1); - border-bottom-color: rgb(153 153 153 / 0.1); -} - -.border-y-grey2\/100 { - border-top-color: rgb(153 153 153 / 1); - border-bottom-color: rgb(153 153 153 / 1); -} - -.border-y-grey2\/20 { - border-top-color: rgb(153 153 153 / 0.2); - border-bottom-color: rgb(153 153 153 / 0.2); -} - -.border-y-grey2\/25 { - border-top-color: rgb(153 153 153 / 0.25); - border-bottom-color: rgb(153 153 153 / 0.25); -} - -.border-y-grey2\/30 { - border-top-color: rgb(153 153 153 / 0.3); - border-bottom-color: rgb(153 153 153 / 0.3); -} - -.border-y-grey2\/40 { - border-top-color: rgb(153 153 153 / 0.4); - border-bottom-color: rgb(153 153 153 / 0.4); -} - -.border-y-grey2\/5 { - border-top-color: rgb(153 153 153 / 0.05); - border-bottom-color: rgb(153 153 153 / 0.05); -} - -.border-y-grey2\/50 { - border-top-color: rgb(153 153 153 / 0.5); - border-bottom-color: rgb(153 153 153 / 0.5); -} - -.border-y-grey2\/60 { - border-top-color: rgb(153 153 153 / 0.6); - border-bottom-color: rgb(153 153 153 / 0.6); -} - -.border-y-grey2\/70 { - border-top-color: rgb(153 153 153 / 0.7); - border-bottom-color: rgb(153 153 153 / 0.7); -} - -.border-y-grey2\/75 { - border-top-color: rgb(153 153 153 / 0.75); - border-bottom-color: rgb(153 153 153 / 0.75); -} - -.border-y-grey2\/80 { - border-top-color: rgb(153 153 153 / 0.8); - border-bottom-color: rgb(153 153 153 / 0.8); -} - -.border-y-grey2\/90 { - border-top-color: rgb(153 153 153 / 0.9); - border-bottom-color: rgb(153 153 153 / 0.9); -} - -.border-y-grey2\/95 { - border-top-color: rgb(153 153 153 / 0.95); - border-bottom-color: rgb(153 153 153 / 0.95); -} - -.border-y-grey2\/shadow { - border-top-color: rgb(153 153 153 / .15); - border-bottom-color: rgb(153 153 153 / .15); -} - -.border-y-grey3 { - --tw-border-opacity: 1; - border-top-color: rgb(204 204 204 / var(--tw-border-opacity)); - border-bottom-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-y-grey3\/0 { - border-top-color: rgb(204 204 204 / 0); - border-bottom-color: rgb(204 204 204 / 0); -} - -.border-y-grey3\/10 { - border-top-color: rgb(204 204 204 / 0.1); - border-bottom-color: rgb(204 204 204 / 0.1); -} - -.border-y-grey3\/100 { - border-top-color: rgb(204 204 204 / 1); - border-bottom-color: rgb(204 204 204 / 1); -} - -.border-y-grey3\/20 { - border-top-color: rgb(204 204 204 / 0.2); - border-bottom-color: rgb(204 204 204 / 0.2); -} - -.border-y-grey3\/25 { - border-top-color: rgb(204 204 204 / 0.25); - border-bottom-color: rgb(204 204 204 / 0.25); -} - -.border-y-grey3\/30 { - border-top-color: rgb(204 204 204 / 0.3); - border-bottom-color: rgb(204 204 204 / 0.3); -} - -.border-y-grey3\/40 { - border-top-color: rgb(204 204 204 / 0.4); - border-bottom-color: rgb(204 204 204 / 0.4); -} - -.border-y-grey3\/5 { - border-top-color: rgb(204 204 204 / 0.05); - border-bottom-color: rgb(204 204 204 / 0.05); -} - -.border-y-grey3\/50 { - border-top-color: rgb(204 204 204 / 0.5); - border-bottom-color: rgb(204 204 204 / 0.5); -} - -.border-y-grey3\/60 { - border-top-color: rgb(204 204 204 / 0.6); - border-bottom-color: rgb(204 204 204 / 0.6); -} - -.border-y-grey3\/70 { - border-top-color: rgb(204 204 204 / 0.7); - border-bottom-color: rgb(204 204 204 / 0.7); -} - -.border-y-grey3\/75 { - border-top-color: rgb(204 204 204 / 0.75); - border-bottom-color: rgb(204 204 204 / 0.75); -} - -.border-y-grey3\/80 { - border-top-color: rgb(204 204 204 / 0.8); - border-bottom-color: rgb(204 204 204 / 0.8); -} - -.border-y-grey3\/90 { - border-top-color: rgb(204 204 204 / 0.9); - border-bottom-color: rgb(204 204 204 / 0.9); -} - -.border-y-grey3\/95 { - border-top-color: rgb(204 204 204 / 0.95); - border-bottom-color: rgb(204 204 204 / 0.95); -} - -.border-y-grey3\/shadow { - border-top-color: rgb(204 204 204 / .15); - border-bottom-color: rgb(204 204 204 / .15); -} - -.border-y-grey4 { - --tw-border-opacity: 1; - border-top-color: rgb(238 238 238 / var(--tw-border-opacity)); - border-bottom-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-y-grey4\/0 { - border-top-color: rgb(238 238 238 / 0); - border-bottom-color: rgb(238 238 238 / 0); -} - -.border-y-grey4\/10 { - border-top-color: rgb(238 238 238 / 0.1); - border-bottom-color: rgb(238 238 238 / 0.1); -} - -.border-y-grey4\/100 { - border-top-color: rgb(238 238 238 / 1); - border-bottom-color: rgb(238 238 238 / 1); -} - -.border-y-grey4\/20 { - border-top-color: rgb(238 238 238 / 0.2); - border-bottom-color: rgb(238 238 238 / 0.2); -} - -.border-y-grey4\/25 { - border-top-color: rgb(238 238 238 / 0.25); - border-bottom-color: rgb(238 238 238 / 0.25); -} - -.border-y-grey4\/30 { - border-top-color: rgb(238 238 238 / 0.3); - border-bottom-color: rgb(238 238 238 / 0.3); -} - -.border-y-grey4\/40 { - border-top-color: rgb(238 238 238 / 0.4); - border-bottom-color: rgb(238 238 238 / 0.4); -} - -.border-y-grey4\/5 { - border-top-color: rgb(238 238 238 / 0.05); - border-bottom-color: rgb(238 238 238 / 0.05); -} - -.border-y-grey4\/50 { - border-top-color: rgb(238 238 238 / 0.5); - border-bottom-color: rgb(238 238 238 / 0.5); -} - -.border-y-grey4\/60 { - border-top-color: rgb(238 238 238 / 0.6); - border-bottom-color: rgb(238 238 238 / 0.6); -} - -.border-y-grey4\/70 { - border-top-color: rgb(238 238 238 / 0.7); - border-bottom-color: rgb(238 238 238 / 0.7); -} - -.border-y-grey4\/75 { - border-top-color: rgb(238 238 238 / 0.75); - border-bottom-color: rgb(238 238 238 / 0.75); -} - -.border-y-grey4\/80 { - border-top-color: rgb(238 238 238 / 0.8); - border-bottom-color: rgb(238 238 238 / 0.8); -} - -.border-y-grey4\/90 { - border-top-color: rgb(238 238 238 / 0.9); - border-bottom-color: rgb(238 238 238 / 0.9); -} - -.border-y-grey4\/95 { - border-top-color: rgb(238 238 238 / 0.95); - border-bottom-color: rgb(238 238 238 / 0.95); -} - -.border-y-grey4\/shadow { - border-top-color: rgb(238 238 238 / .15); - border-bottom-color: rgb(238 238 238 / .15); -} - -.border-y-grey5 { - --tw-border-opacity: 1; - border-top-color: rgb(246 246 246 / var(--tw-border-opacity)); - border-bottom-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-y-grey5\/0 { - border-top-color: rgb(246 246 246 / 0); - border-bottom-color: rgb(246 246 246 / 0); -} - -.border-y-grey5\/10 { - border-top-color: rgb(246 246 246 / 0.1); - border-bottom-color: rgb(246 246 246 / 0.1); -} - -.border-y-grey5\/100 { - border-top-color: rgb(246 246 246 / 1); - border-bottom-color: rgb(246 246 246 / 1); -} - -.border-y-grey5\/20 { - border-top-color: rgb(246 246 246 / 0.2); - border-bottom-color: rgb(246 246 246 / 0.2); -} - -.border-y-grey5\/25 { - border-top-color: rgb(246 246 246 / 0.25); - border-bottom-color: rgb(246 246 246 / 0.25); -} - -.border-y-grey5\/30 { - border-top-color: rgb(246 246 246 / 0.3); - border-bottom-color: rgb(246 246 246 / 0.3); -} - -.border-y-grey5\/40 { - border-top-color: rgb(246 246 246 / 0.4); - border-bottom-color: rgb(246 246 246 / 0.4); -} - -.border-y-grey5\/5 { - border-top-color: rgb(246 246 246 / 0.05); - border-bottom-color: rgb(246 246 246 / 0.05); -} - -.border-y-grey5\/50 { - border-top-color: rgb(246 246 246 / 0.5); - border-bottom-color: rgb(246 246 246 / 0.5); -} - -.border-y-grey5\/60 { - border-top-color: rgb(246 246 246 / 0.6); - border-bottom-color: rgb(246 246 246 / 0.6); -} - -.border-y-grey5\/70 { - border-top-color: rgb(246 246 246 / 0.7); - border-bottom-color: rgb(246 246 246 / 0.7); -} - -.border-y-grey5\/75 { - border-top-color: rgb(246 246 246 / 0.75); - border-bottom-color: rgb(246 246 246 / 0.75); -} - -.border-y-grey5\/80 { - border-top-color: rgb(246 246 246 / 0.8); - border-bottom-color: rgb(246 246 246 / 0.8); -} - -.border-y-grey5\/90 { - border-top-color: rgb(246 246 246 / 0.9); - border-bottom-color: rgb(246 246 246 / 0.9); -} - -.border-y-grey5\/95 { - border-top-color: rgb(246 246 246 / 0.95); - border-bottom-color: rgb(246 246 246 / 0.95); -} - -.border-y-grey5\/shadow { - border-top-color: rgb(246 246 246 / .15); - border-bottom-color: rgb(246 246 246 / .15); -} - -.border-y-grey6 { - --tw-border-opacity: 1; - border-top-color: rgb(250 250 250 / var(--tw-border-opacity)); - border-bottom-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-y-grey6\/0 { - border-top-color: rgb(250 250 250 / 0); - border-bottom-color: rgb(250 250 250 / 0); -} - -.border-y-grey6\/10 { - border-top-color: rgb(250 250 250 / 0.1); - border-bottom-color: rgb(250 250 250 / 0.1); -} - -.border-y-grey6\/100 { - border-top-color: rgb(250 250 250 / 1); - border-bottom-color: rgb(250 250 250 / 1); -} - -.border-y-grey6\/20 { - border-top-color: rgb(250 250 250 / 0.2); - border-bottom-color: rgb(250 250 250 / 0.2); -} - -.border-y-grey6\/25 { - border-top-color: rgb(250 250 250 / 0.25); - border-bottom-color: rgb(250 250 250 / 0.25); -} - -.border-y-grey6\/30 { - border-top-color: rgb(250 250 250 / 0.3); - border-bottom-color: rgb(250 250 250 / 0.3); -} - -.border-y-grey6\/40 { - border-top-color: rgb(250 250 250 / 0.4); - border-bottom-color: rgb(250 250 250 / 0.4); -} - -.border-y-grey6\/5 { - border-top-color: rgb(250 250 250 / 0.05); - border-bottom-color: rgb(250 250 250 / 0.05); -} - -.border-y-grey6\/50 { - border-top-color: rgb(250 250 250 / 0.5); - border-bottom-color: rgb(250 250 250 / 0.5); -} - -.border-y-grey6\/60 { - border-top-color: rgb(250 250 250 / 0.6); - border-bottom-color: rgb(250 250 250 / 0.6); -} - -.border-y-grey6\/70 { - border-top-color: rgb(250 250 250 / 0.7); - border-bottom-color: rgb(250 250 250 / 0.7); -} - -.border-y-grey6\/75 { - border-top-color: rgb(250 250 250 / 0.75); - border-bottom-color: rgb(250 250 250 / 0.75); -} - -.border-y-grey6\/80 { - border-top-color: rgb(250 250 250 / 0.8); - border-bottom-color: rgb(250 250 250 / 0.8); -} - -.border-y-grey6\/90 { - border-top-color: rgb(250 250 250 / 0.9); - border-bottom-color: rgb(250 250 250 / 0.9); -} - -.border-y-grey6\/95 { - border-top-color: rgb(250 250 250 / 0.95); - border-bottom-color: rgb(250 250 250 / 0.95); -} - -.border-y-grey6\/shadow { - border-top-color: rgb(250 250 250 / .15); - border-bottom-color: rgb(250 250 250 / .15); -} - -.border-y-primary { - --tw-border-opacity: 1; - border-top-color: rgb(66 114 239 / var(--tw-border-opacity)); - border-bottom-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-y-primary\/0 { - border-top-color: rgb(66 114 239 / 0); - border-bottom-color: rgb(66 114 239 / 0); -} - -.border-y-primary\/10 { - border-top-color: rgb(66 114 239 / 0.1); - border-bottom-color: rgb(66 114 239 / 0.1); -} - -.border-y-primary\/100 { - border-top-color: rgb(66 114 239 / 1); - border-bottom-color: rgb(66 114 239 / 1); -} - -.border-y-primary\/20 { - border-top-color: rgb(66 114 239 / 0.2); - border-bottom-color: rgb(66 114 239 / 0.2); -} - -.border-y-primary\/25 { - border-top-color: rgb(66 114 239 / 0.25); - border-bottom-color: rgb(66 114 239 / 0.25); -} - -.border-y-primary\/30 { - border-top-color: rgb(66 114 239 / 0.3); - border-bottom-color: rgb(66 114 239 / 0.3); -} - -.border-y-primary\/40 { - border-top-color: rgb(66 114 239 / 0.4); - border-bottom-color: rgb(66 114 239 / 0.4); -} - -.border-y-primary\/5 { - border-top-color: rgb(66 114 239 / 0.05); - border-bottom-color: rgb(66 114 239 / 0.05); -} - -.border-y-primary\/50 { - border-top-color: rgb(66 114 239 / 0.5); - border-bottom-color: rgb(66 114 239 / 0.5); -} - -.border-y-primary\/60 { - border-top-color: rgb(66 114 239 / 0.6); - border-bottom-color: rgb(66 114 239 / 0.6); -} - -.border-y-primary\/70 { - border-top-color: rgb(66 114 239 / 0.7); - border-bottom-color: rgb(66 114 239 / 0.7); -} - -.border-y-primary\/75 { - border-top-color: rgb(66 114 239 / 0.75); - border-bottom-color: rgb(66 114 239 / 0.75); -} - -.border-y-primary\/80 { - border-top-color: rgb(66 114 239 / 0.8); - border-bottom-color: rgb(66 114 239 / 0.8); -} - -.border-y-primary\/90 { - border-top-color: rgb(66 114 239 / 0.9); - border-bottom-color: rgb(66 114 239 / 0.9); -} - -.border-y-primary\/95 { - border-top-color: rgb(66 114 239 / 0.95); - border-bottom-color: rgb(66 114 239 / 0.95); -} - -.border-y-primary\/shadow { - border-top-color: rgb(66 114 239 / .15); - border-bottom-color: rgb(66 114 239 / .15); -} - -.border-y-primarylight { - --tw-border-opacity: 1; - border-top-color: rgb(227 234 253 / var(--tw-border-opacity)); - border-bottom-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-y-primarylight\/0 { - border-top-color: rgb(227 234 253 / 0); - border-bottom-color: rgb(227 234 253 / 0); -} - -.border-y-primarylight\/10 { - border-top-color: rgb(227 234 253 / 0.1); - border-bottom-color: rgb(227 234 253 / 0.1); -} - -.border-y-primarylight\/100 { - border-top-color: rgb(227 234 253 / 1); - border-bottom-color: rgb(227 234 253 / 1); -} - -.border-y-primarylight\/20 { - border-top-color: rgb(227 234 253 / 0.2); - border-bottom-color: rgb(227 234 253 / 0.2); -} - -.border-y-primarylight\/25 { - border-top-color: rgb(227 234 253 / 0.25); - border-bottom-color: rgb(227 234 253 / 0.25); -} - -.border-y-primarylight\/30 { - border-top-color: rgb(227 234 253 / 0.3); - border-bottom-color: rgb(227 234 253 / 0.3); -} - -.border-y-primarylight\/40 { - border-top-color: rgb(227 234 253 / 0.4); - border-bottom-color: rgb(227 234 253 / 0.4); -} - -.border-y-primarylight\/5 { - border-top-color: rgb(227 234 253 / 0.05); - border-bottom-color: rgb(227 234 253 / 0.05); -} - -.border-y-primarylight\/50 { - border-top-color: rgb(227 234 253 / 0.5); - border-bottom-color: rgb(227 234 253 / 0.5); -} - -.border-y-primarylight\/60 { - border-top-color: rgb(227 234 253 / 0.6); - border-bottom-color: rgb(227 234 253 / 0.6); -} - -.border-y-primarylight\/70 { - border-top-color: rgb(227 234 253 / 0.7); - border-bottom-color: rgb(227 234 253 / 0.7); -} - -.border-y-primarylight\/75 { - border-top-color: rgb(227 234 253 / 0.75); - border-bottom-color: rgb(227 234 253 / 0.75); -} - -.border-y-primarylight\/80 { - border-top-color: rgb(227 234 253 / 0.8); - border-bottom-color: rgb(227 234 253 / 0.8); -} - -.border-y-primarylight\/90 { - border-top-color: rgb(227 234 253 / 0.9); - border-bottom-color: rgb(227 234 253 / 0.9); -} - -.border-y-primarylight\/95 { - border-top-color: rgb(227 234 253 / 0.95); - border-bottom-color: rgb(227 234 253 / 0.95); -} - -.border-y-primarylight\/shadow { - border-top-color: rgb(227 234 253 / .15); - border-bottom-color: rgb(227 234 253 / .15); -} - -.border-y-secondary { - --tw-border-opacity: 1; - border-top-color: rgb(255 94 94 / var(--tw-border-opacity)); - border-bottom-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-y-secondary\/0 { - border-top-color: rgb(255 94 94 / 0); - border-bottom-color: rgb(255 94 94 / 0); -} - -.border-y-secondary\/10 { - border-top-color: rgb(255 94 94 / 0.1); - border-bottom-color: rgb(255 94 94 / 0.1); -} - -.border-y-secondary\/100 { - border-top-color: rgb(255 94 94 / 1); - border-bottom-color: rgb(255 94 94 / 1); -} - -.border-y-secondary\/20 { - border-top-color: rgb(255 94 94 / 0.2); - border-bottom-color: rgb(255 94 94 / 0.2); -} - -.border-y-secondary\/25 { - border-top-color: rgb(255 94 94 / 0.25); - border-bottom-color: rgb(255 94 94 / 0.25); -} - -.border-y-secondary\/30 { - border-top-color: rgb(255 94 94 / 0.3); - border-bottom-color: rgb(255 94 94 / 0.3); -} - -.border-y-secondary\/40 { - border-top-color: rgb(255 94 94 / 0.4); - border-bottom-color: rgb(255 94 94 / 0.4); -} - -.border-y-secondary\/5 { - border-top-color: rgb(255 94 94 / 0.05); - border-bottom-color: rgb(255 94 94 / 0.05); -} - -.border-y-secondary\/50 { - border-top-color: rgb(255 94 94 / 0.5); - border-bottom-color: rgb(255 94 94 / 0.5); -} - -.border-y-secondary\/60 { - border-top-color: rgb(255 94 94 / 0.6); - border-bottom-color: rgb(255 94 94 / 0.6); -} - -.border-y-secondary\/70 { - border-top-color: rgb(255 94 94 / 0.7); - border-bottom-color: rgb(255 94 94 / 0.7); -} - -.border-y-secondary\/75 { - border-top-color: rgb(255 94 94 / 0.75); - border-bottom-color: rgb(255 94 94 / 0.75); -} - -.border-y-secondary\/80 { - border-top-color: rgb(255 94 94 / 0.8); - border-bottom-color: rgb(255 94 94 / 0.8); -} - -.border-y-secondary\/90 { - border-top-color: rgb(255 94 94 / 0.9); - border-bottom-color: rgb(255 94 94 / 0.9); -} - -.border-y-secondary\/95 { - border-top-color: rgb(255 94 94 / 0.95); - border-bottom-color: rgb(255 94 94 / 0.95); -} - -.border-y-secondary\/shadow { - border-top-color: rgb(255 94 94 / .15); - border-bottom-color: rgb(255 94 94 / .15); -} - -.border-y-success { - --tw-border-opacity: 1; - border-top-color: rgb(111 202 55 / var(--tw-border-opacity)); - border-bottom-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-y-success\/0 { - border-top-color: rgb(111 202 55 / 0); - border-bottom-color: rgb(111 202 55 / 0); -} - -.border-y-success\/10 { - border-top-color: rgb(111 202 55 / 0.1); - border-bottom-color: rgb(111 202 55 / 0.1); -} - -.border-y-success\/100 { - border-top-color: rgb(111 202 55 / 1); - border-bottom-color: rgb(111 202 55 / 1); -} - -.border-y-success\/20 { - border-top-color: rgb(111 202 55 / 0.2); - border-bottom-color: rgb(111 202 55 / 0.2); -} - -.border-y-success\/25 { - border-top-color: rgb(111 202 55 / 0.25); - border-bottom-color: rgb(111 202 55 / 0.25); -} - -.border-y-success\/30 { - border-top-color: rgb(111 202 55 / 0.3); - border-bottom-color: rgb(111 202 55 / 0.3); -} - -.border-y-success\/40 { - border-top-color: rgb(111 202 55 / 0.4); - border-bottom-color: rgb(111 202 55 / 0.4); -} - -.border-y-success\/5 { - border-top-color: rgb(111 202 55 / 0.05); - border-bottom-color: rgb(111 202 55 / 0.05); -} - -.border-y-success\/50 { - border-top-color: rgb(111 202 55 / 0.5); - border-bottom-color: rgb(111 202 55 / 0.5); -} - -.border-y-success\/60 { - border-top-color: rgb(111 202 55 / 0.6); - border-bottom-color: rgb(111 202 55 / 0.6); -} - -.border-y-success\/70 { - border-top-color: rgb(111 202 55 / 0.7); - border-bottom-color: rgb(111 202 55 / 0.7); -} - -.border-y-success\/75 { - border-top-color: rgb(111 202 55 / 0.75); - border-bottom-color: rgb(111 202 55 / 0.75); -} - -.border-y-success\/80 { - border-top-color: rgb(111 202 55 / 0.8); - border-bottom-color: rgb(111 202 55 / 0.8); -} - -.border-y-success\/90 { - border-top-color: rgb(111 202 55 / 0.9); - border-bottom-color: rgb(111 202 55 / 0.9); -} - -.border-y-success\/95 { - border-top-color: rgb(111 202 55 / 0.95); - border-bottom-color: rgb(111 202 55 / 0.95); -} - -.border-y-success\/shadow { - border-top-color: rgb(111 202 55 / .15); - border-bottom-color: rgb(111 202 55 / .15); -} - -.border-y-successlight { - --tw-border-opacity: 1; - border-top-color: rgb(235 255 223 / var(--tw-border-opacity)); - border-bottom-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-y-successlight\/0 { - border-top-color: rgb(235 255 223 / 0); - border-bottom-color: rgb(235 255 223 / 0); -} - -.border-y-successlight\/10 { - border-top-color: rgb(235 255 223 / 0.1); - border-bottom-color: rgb(235 255 223 / 0.1); -} - -.border-y-successlight\/100 { - border-top-color: rgb(235 255 223 / 1); - border-bottom-color: rgb(235 255 223 / 1); -} - -.border-y-successlight\/20 { - border-top-color: rgb(235 255 223 / 0.2); - border-bottom-color: rgb(235 255 223 / 0.2); -} - -.border-y-successlight\/25 { - border-top-color: rgb(235 255 223 / 0.25); - border-bottom-color: rgb(235 255 223 / 0.25); -} - -.border-y-successlight\/30 { - border-top-color: rgb(235 255 223 / 0.3); - border-bottom-color: rgb(235 255 223 / 0.3); -} - -.border-y-successlight\/40 { - border-top-color: rgb(235 255 223 / 0.4); - border-bottom-color: rgb(235 255 223 / 0.4); -} - -.border-y-successlight\/5 { - border-top-color: rgb(235 255 223 / 0.05); - border-bottom-color: rgb(235 255 223 / 0.05); -} - -.border-y-successlight\/50 { - border-top-color: rgb(235 255 223 / 0.5); - border-bottom-color: rgb(235 255 223 / 0.5); -} - -.border-y-successlight\/60 { - border-top-color: rgb(235 255 223 / 0.6); - border-bottom-color: rgb(235 255 223 / 0.6); -} - -.border-y-successlight\/70 { - border-top-color: rgb(235 255 223 / 0.7); - border-bottom-color: rgb(235 255 223 / 0.7); -} - -.border-y-successlight\/75 { - border-top-color: rgb(235 255 223 / 0.75); - border-bottom-color: rgb(235 255 223 / 0.75); -} - -.border-y-successlight\/80 { - border-top-color: rgb(235 255 223 / 0.8); - border-bottom-color: rgb(235 255 223 / 0.8); -} - -.border-y-successlight\/90 { - border-top-color: rgb(235 255 223 / 0.9); - border-bottom-color: rgb(235 255 223 / 0.9); -} - -.border-y-successlight\/95 { - border-top-color: rgb(235 255 223 / 0.95); - border-bottom-color: rgb(235 255 223 / 0.95); -} - -.border-y-successlight\/shadow { - border-top-color: rgb(235 255 223 / .15); - border-bottom-color: rgb(235 255 223 / .15); -} - -.border-y-surfconext { - --tw-border-opacity: 1; - border-top-color: rgb(77 178 207 / var(--tw-border-opacity)); - border-bottom-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-y-surfconext\/0 { - border-top-color: rgb(77 178 207 / 0); - border-bottom-color: rgb(77 178 207 / 0); -} - -.border-y-surfconext\/10 { - border-top-color: rgb(77 178 207 / 0.1); - border-bottom-color: rgb(77 178 207 / 0.1); -} - -.border-y-surfconext\/100 { - border-top-color: rgb(77 178 207 / 1); - border-bottom-color: rgb(77 178 207 / 1); -} - -.border-y-surfconext\/20 { - border-top-color: rgb(77 178 207 / 0.2); - border-bottom-color: rgb(77 178 207 / 0.2); -} - -.border-y-surfconext\/25 { - border-top-color: rgb(77 178 207 / 0.25); - border-bottom-color: rgb(77 178 207 / 0.25); -} - -.border-y-surfconext\/30 { - border-top-color: rgb(77 178 207 / 0.3); - border-bottom-color: rgb(77 178 207 / 0.3); -} - -.border-y-surfconext\/40 { - border-top-color: rgb(77 178 207 / 0.4); - border-bottom-color: rgb(77 178 207 / 0.4); -} - -.border-y-surfconext\/5 { - border-top-color: rgb(77 178 207 / 0.05); - border-bottom-color: rgb(77 178 207 / 0.05); -} - -.border-y-surfconext\/50 { - border-top-color: rgb(77 178 207 / 0.5); - border-bottom-color: rgb(77 178 207 / 0.5); -} - -.border-y-surfconext\/60 { - border-top-color: rgb(77 178 207 / 0.6); - border-bottom-color: rgb(77 178 207 / 0.6); -} - -.border-y-surfconext\/70 { - border-top-color: rgb(77 178 207 / 0.7); - border-bottom-color: rgb(77 178 207 / 0.7); -} - -.border-y-surfconext\/75 { - border-top-color: rgb(77 178 207 / 0.75); - border-bottom-color: rgb(77 178 207 / 0.75); -} - -.border-y-surfconext\/80 { - border-top-color: rgb(77 178 207 / 0.8); - border-bottom-color: rgb(77 178 207 / 0.8); -} - -.border-y-surfconext\/90 { - border-top-color: rgb(77 178 207 / 0.9); - border-bottom-color: rgb(77 178 207 / 0.9); -} - -.border-y-surfconext\/95 { - border-top-color: rgb(77 178 207 / 0.95); - border-bottom-color: rgb(77 178 207 / 0.95); -} - -.border-y-surfconext\/shadow { - border-top-color: rgb(77 178 207 / .15); - border-bottom-color: rgb(77 178 207 / .15); -} - -.border-y-tertiary { - --tw-border-opacity: 1; - border-top-color: rgb(255 207 96 / var(--tw-border-opacity)); - border-bottom-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-y-tertiary\/0 { - border-top-color: rgb(255 207 96 / 0); - border-bottom-color: rgb(255 207 96 / 0); -} - -.border-y-tertiary\/10 { - border-top-color: rgb(255 207 96 / 0.1); - border-bottom-color: rgb(255 207 96 / 0.1); -} - -.border-y-tertiary\/100 { - border-top-color: rgb(255 207 96 / 1); - border-bottom-color: rgb(255 207 96 / 1); -} - -.border-y-tertiary\/20 { - border-top-color: rgb(255 207 96 / 0.2); - border-bottom-color: rgb(255 207 96 / 0.2); -} - -.border-y-tertiary\/25 { - border-top-color: rgb(255 207 96 / 0.25); - border-bottom-color: rgb(255 207 96 / 0.25); -} - -.border-y-tertiary\/30 { - border-top-color: rgb(255 207 96 / 0.3); - border-bottom-color: rgb(255 207 96 / 0.3); -} - -.border-y-tertiary\/40 { - border-top-color: rgb(255 207 96 / 0.4); - border-bottom-color: rgb(255 207 96 / 0.4); -} - -.border-y-tertiary\/5 { - border-top-color: rgb(255 207 96 / 0.05); - border-bottom-color: rgb(255 207 96 / 0.05); -} - -.border-y-tertiary\/50 { - border-top-color: rgb(255 207 96 / 0.5); - border-bottom-color: rgb(255 207 96 / 0.5); -} - -.border-y-tertiary\/60 { - border-top-color: rgb(255 207 96 / 0.6); - border-bottom-color: rgb(255 207 96 / 0.6); -} - -.border-y-tertiary\/70 { - border-top-color: rgb(255 207 96 / 0.7); - border-bottom-color: rgb(255 207 96 / 0.7); -} - -.border-y-tertiary\/75 { - border-top-color: rgb(255 207 96 / 0.75); - border-bottom-color: rgb(255 207 96 / 0.75); -} - -.border-y-tertiary\/80 { - border-top-color: rgb(255 207 96 / 0.8); - border-bottom-color: rgb(255 207 96 / 0.8); -} - -.border-y-tertiary\/90 { - border-top-color: rgb(255 207 96 / 0.9); - border-bottom-color: rgb(255 207 96 / 0.9); -} - -.border-y-tertiary\/95 { - border-top-color: rgb(255 207 96 / 0.95); - border-bottom-color: rgb(255 207 96 / 0.95); -} - -.border-y-tertiary\/shadow { - border-top-color: rgb(255 207 96 / .15); - border-bottom-color: rgb(255 207 96 / .15); -} - -.border-y-warning { - --tw-border-opacity: 1; - border-top-color: rgb(242 141 21 / var(--tw-border-opacity)); - border-bottom-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-y-warning\/0 { - border-top-color: rgb(242 141 21 / 0); - border-bottom-color: rgb(242 141 21 / 0); -} - -.border-y-warning\/10 { - border-top-color: rgb(242 141 21 / 0.1); - border-bottom-color: rgb(242 141 21 / 0.1); -} - -.border-y-warning\/100 { - border-top-color: rgb(242 141 21 / 1); - border-bottom-color: rgb(242 141 21 / 1); -} - -.border-y-warning\/20 { - border-top-color: rgb(242 141 21 / 0.2); - border-bottom-color: rgb(242 141 21 / 0.2); -} - -.border-y-warning\/25 { - border-top-color: rgb(242 141 21 / 0.25); - border-bottom-color: rgb(242 141 21 / 0.25); -} - -.border-y-warning\/30 { - border-top-color: rgb(242 141 21 / 0.3); - border-bottom-color: rgb(242 141 21 / 0.3); -} - -.border-y-warning\/40 { - border-top-color: rgb(242 141 21 / 0.4); - border-bottom-color: rgb(242 141 21 / 0.4); -} - -.border-y-warning\/5 { - border-top-color: rgb(242 141 21 / 0.05); - border-bottom-color: rgb(242 141 21 / 0.05); -} - -.border-y-warning\/50 { - border-top-color: rgb(242 141 21 / 0.5); - border-bottom-color: rgb(242 141 21 / 0.5); -} - -.border-y-warning\/60 { - border-top-color: rgb(242 141 21 / 0.6); - border-bottom-color: rgb(242 141 21 / 0.6); -} - -.border-y-warning\/70 { - border-top-color: rgb(242 141 21 / 0.7); - border-bottom-color: rgb(242 141 21 / 0.7); -} - -.border-y-warning\/75 { - border-top-color: rgb(242 141 21 / 0.75); - border-bottom-color: rgb(242 141 21 / 0.75); -} - -.border-y-warning\/80 { - border-top-color: rgb(242 141 21 / 0.8); - border-bottom-color: rgb(242 141 21 / 0.8); -} - -.border-y-warning\/90 { - border-top-color: rgb(242 141 21 / 0.9); - border-bottom-color: rgb(242 141 21 / 0.9); -} - -.border-y-warning\/95 { - border-top-color: rgb(242 141 21 / 0.95); - border-bottom-color: rgb(242 141 21 / 0.95); -} - -.border-y-warning\/shadow { - border-top-color: rgb(242 141 21 / .15); - border-bottom-color: rgb(242 141 21 / .15); -} - -.border-y-warninglight { - --tw-border-opacity: 1; - border-top-color: rgb(255 239 220 / var(--tw-border-opacity)); - border-bottom-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-y-warninglight\/0 { - border-top-color: rgb(255 239 220 / 0); - border-bottom-color: rgb(255 239 220 / 0); -} - -.border-y-warninglight\/10 { - border-top-color: rgb(255 239 220 / 0.1); - border-bottom-color: rgb(255 239 220 / 0.1); -} - -.border-y-warninglight\/100 { - border-top-color: rgb(255 239 220 / 1); - border-bottom-color: rgb(255 239 220 / 1); -} - -.border-y-warninglight\/20 { - border-top-color: rgb(255 239 220 / 0.2); - border-bottom-color: rgb(255 239 220 / 0.2); -} - -.border-y-warninglight\/25 { - border-top-color: rgb(255 239 220 / 0.25); - border-bottom-color: rgb(255 239 220 / 0.25); -} - -.border-y-warninglight\/30 { - border-top-color: rgb(255 239 220 / 0.3); - border-bottom-color: rgb(255 239 220 / 0.3); -} - -.border-y-warninglight\/40 { - border-top-color: rgb(255 239 220 / 0.4); - border-bottom-color: rgb(255 239 220 / 0.4); -} - -.border-y-warninglight\/5 { - border-top-color: rgb(255 239 220 / 0.05); - border-bottom-color: rgb(255 239 220 / 0.05); -} - -.border-y-warninglight\/50 { - border-top-color: rgb(255 239 220 / 0.5); - border-bottom-color: rgb(255 239 220 / 0.5); -} - -.border-y-warninglight\/60 { - border-top-color: rgb(255 239 220 / 0.6); - border-bottom-color: rgb(255 239 220 / 0.6); -} - -.border-y-warninglight\/70 { - border-top-color: rgb(255 239 220 / 0.7); - border-bottom-color: rgb(255 239 220 / 0.7); -} - -.border-y-warninglight\/75 { - border-top-color: rgb(255 239 220 / 0.75); - border-bottom-color: rgb(255 239 220 / 0.75); -} - -.border-y-warninglight\/80 { - border-top-color: rgb(255 239 220 / 0.8); - border-bottom-color: rgb(255 239 220 / 0.8); -} - -.border-y-warninglight\/90 { - border-top-color: rgb(255 239 220 / 0.9); - border-bottom-color: rgb(255 239 220 / 0.9); -} - -.border-y-warninglight\/95 { - border-top-color: rgb(255 239 220 / 0.95); - border-bottom-color: rgb(255 239 220 / 0.95); -} - -.border-y-warninglight\/shadow { - border-top-color: rgb(255 239 220 / .15); - border-bottom-color: rgb(255 239 220 / .15); -} - -.border-y-white { - --tw-border-opacity: 1; - border-top-color: rgb(255 255 255 / var(--tw-border-opacity)); - border-bottom-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-y-white\/0 { - border-top-color: rgb(255 255 255 / 0); - border-bottom-color: rgb(255 255 255 / 0); -} - -.border-y-white\/10 { - border-top-color: rgb(255 255 255 / 0.1); - border-bottom-color: rgb(255 255 255 / 0.1); -} - -.border-y-white\/100 { - border-top-color: rgb(255 255 255 / 1); - border-bottom-color: rgb(255 255 255 / 1); -} - -.border-y-white\/20 { - border-top-color: rgb(255 255 255 / 0.2); - border-bottom-color: rgb(255 255 255 / 0.2); -} - -.border-y-white\/25 { - border-top-color: rgb(255 255 255 / 0.25); - border-bottom-color: rgb(255 255 255 / 0.25); -} - -.border-y-white\/30 { - border-top-color: rgb(255 255 255 / 0.3); - border-bottom-color: rgb(255 255 255 / 0.3); -} - -.border-y-white\/40 { - border-top-color: rgb(255 255 255 / 0.4); - border-bottom-color: rgb(255 255 255 / 0.4); -} - -.border-y-white\/5 { - border-top-color: rgb(255 255 255 / 0.05); - border-bottom-color: rgb(255 255 255 / 0.05); -} - -.border-y-white\/50 { - border-top-color: rgb(255 255 255 / 0.5); - border-bottom-color: rgb(255 255 255 / 0.5); -} - -.border-y-white\/60 { - border-top-color: rgb(255 255 255 / 0.6); - border-bottom-color: rgb(255 255 255 / 0.6); -} - -.border-y-white\/70 { - border-top-color: rgb(255 255 255 / 0.7); - border-bottom-color: rgb(255 255 255 / 0.7); -} - -.border-y-white\/75 { - border-top-color: rgb(255 255 255 / 0.75); - border-bottom-color: rgb(255 255 255 / 0.75); -} - -.border-y-white\/80 { - border-top-color: rgb(255 255 255 / 0.8); - border-bottom-color: rgb(255 255 255 / 0.8); -} - -.border-y-white\/90 { - border-top-color: rgb(255 255 255 / 0.9); - border-bottom-color: rgb(255 255 255 / 0.9); -} - -.border-y-white\/95 { - border-top-color: rgb(255 255 255 / 0.95); - border-bottom-color: rgb(255 255 255 / 0.95); -} - -.border-y-white\/shadow { - border-top-color: rgb(255 255 255 / .15); - border-bottom-color: rgb(255 255 255 / .15); -} - -.border-b-apple { - --tw-border-opacity: 1; - border-bottom-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-b-apple\/0 { - border-bottom-color: rgb(0 0 0 / 0); -} - -.border-b-apple\/10 { - border-bottom-color: rgb(0 0 0 / 0.1); -} - -.border-b-apple\/100 { - border-bottom-color: rgb(0 0 0 / 1); -} - -.border-b-apple\/20 { - border-bottom-color: rgb(0 0 0 / 0.2); -} - -.border-b-apple\/25 { - border-bottom-color: rgb(0 0 0 / 0.25); -} - -.border-b-apple\/30 { - border-bottom-color: rgb(0 0 0 / 0.3); -} - -.border-b-apple\/40 { - border-bottom-color: rgb(0 0 0 / 0.4); -} - -.border-b-apple\/5 { - border-bottom-color: rgb(0 0 0 / 0.05); -} - -.border-b-apple\/50 { - border-bottom-color: rgb(0 0 0 / 0.5); -} - -.border-b-apple\/60 { - border-bottom-color: rgb(0 0 0 / 0.6); -} - -.border-b-apple\/70 { - border-bottom-color: rgb(0 0 0 / 0.7); -} - -.border-b-apple\/75 { - border-bottom-color: rgb(0 0 0 / 0.75); -} - -.border-b-apple\/80 { - border-bottom-color: rgb(0 0 0 / 0.8); -} - -.border-b-apple\/90 { - border-bottom-color: rgb(0 0 0 / 0.9); -} - -.border-b-apple\/95 { - border-bottom-color: rgb(0 0 0 / 0.95); -} - -.border-b-apple\/shadow { - border-bottom-color: rgb(0 0 0 / .15); -} - -.border-b-black { - --tw-border-opacity: 1; - border-bottom-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-b-black\/0 { - border-bottom-color: rgb(0 0 0 / 0); -} - -.border-b-black\/10 { - border-bottom-color: rgb(0 0 0 / 0.1); -} - -.border-b-black\/100 { - border-bottom-color: rgb(0 0 0 / 1); -} - -.border-b-black\/20 { - border-bottom-color: rgb(0 0 0 / 0.2); -} - -.border-b-black\/25 { - border-bottom-color: rgb(0 0 0 / 0.25); -} - -.border-b-black\/30 { - border-bottom-color: rgb(0 0 0 / 0.3); -} - -.border-b-black\/40 { - border-bottom-color: rgb(0 0 0 / 0.4); -} - -.border-b-black\/5 { - border-bottom-color: rgb(0 0 0 / 0.05); -} - -.border-b-black\/50 { - border-bottom-color: rgb(0 0 0 / 0.5); -} - -.border-b-black\/60 { - border-bottom-color: rgb(0 0 0 / 0.6); -} - -.border-b-black\/70 { - border-bottom-color: rgb(0 0 0 / 0.7); -} - -.border-b-black\/75 { - border-bottom-color: rgb(0 0 0 / 0.75); -} - -.border-b-black\/80 { - border-bottom-color: rgb(0 0 0 / 0.8); -} - -.border-b-black\/90 { - border-bottom-color: rgb(0 0 0 / 0.9); -} - -.border-b-black\/95 { - border-bottom-color: rgb(0 0 0 / 0.95); -} - -.border-b-black\/shadow { - border-bottom-color: rgb(0 0 0 / .15); -} - -.border-b-delete { - --tw-border-opacity: 1; - border-bottom-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-b-delete\/0 { - border-bottom-color: rgb(219 30 30 / 0); -} - -.border-b-delete\/10 { - border-bottom-color: rgb(219 30 30 / 0.1); -} - -.border-b-delete\/100 { - border-bottom-color: rgb(219 30 30 / 1); -} - -.border-b-delete\/20 { - border-bottom-color: rgb(219 30 30 / 0.2); -} - -.border-b-delete\/25 { - border-bottom-color: rgb(219 30 30 / 0.25); -} - -.border-b-delete\/30 { - border-bottom-color: rgb(219 30 30 / 0.3); -} - -.border-b-delete\/40 { - border-bottom-color: rgb(219 30 30 / 0.4); -} - -.border-b-delete\/5 { - border-bottom-color: rgb(219 30 30 / 0.05); -} - -.border-b-delete\/50 { - border-bottom-color: rgb(219 30 30 / 0.5); -} - -.border-b-delete\/60 { - border-bottom-color: rgb(219 30 30 / 0.6); -} - -.border-b-delete\/70 { - border-bottom-color: rgb(219 30 30 / 0.7); -} - -.border-b-delete\/75 { - border-bottom-color: rgb(219 30 30 / 0.75); -} - -.border-b-delete\/80 { - border-bottom-color: rgb(219 30 30 / 0.8); -} - -.border-b-delete\/90 { - border-bottom-color: rgb(219 30 30 / 0.9); -} - -.border-b-delete\/95 { - border-bottom-color: rgb(219 30 30 / 0.95); -} - -.border-b-delete\/shadow { - border-bottom-color: rgb(219 30 30 / .15); -} - -.border-b-deletelight { - --tw-border-opacity: 1; - border-bottom-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-b-deletelight\/0 { - border-bottom-color: rgb(255 236 236 / 0); -} - -.border-b-deletelight\/10 { - border-bottom-color: rgb(255 236 236 / 0.1); -} - -.border-b-deletelight\/100 { - border-bottom-color: rgb(255 236 236 / 1); -} - -.border-b-deletelight\/20 { - border-bottom-color: rgb(255 236 236 / 0.2); -} - -.border-b-deletelight\/25 { - border-bottom-color: rgb(255 236 236 / 0.25); -} - -.border-b-deletelight\/30 { - border-bottom-color: rgb(255 236 236 / 0.3); -} - -.border-b-deletelight\/40 { - border-bottom-color: rgb(255 236 236 / 0.4); -} - -.border-b-deletelight\/5 { - border-bottom-color: rgb(255 236 236 / 0.05); -} - -.border-b-deletelight\/50 { - border-bottom-color: rgb(255 236 236 / 0.5); -} - -.border-b-deletelight\/60 { - border-bottom-color: rgb(255 236 236 / 0.6); -} - -.border-b-deletelight\/70 { - border-bottom-color: rgb(255 236 236 / 0.7); -} - -.border-b-deletelight\/75 { - border-bottom-color: rgb(255 236 236 / 0.75); -} - -.border-b-deletelight\/80 { - border-bottom-color: rgb(255 236 236 / 0.8); -} - -.border-b-deletelight\/90 { - border-bottom-color: rgb(255 236 236 / 0.9); -} - -.border-b-deletelight\/95 { - border-bottom-color: rgb(255 236 236 / 0.95); -} - -.border-b-deletelight\/shadow { - border-bottom-color: rgb(255 236 236 / .15); -} - -.border-b-error { - --tw-border-opacity: 1; - border-bottom-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-b-error\/0 { - border-bottom-color: rgb(219 30 30 / 0); -} - -.border-b-error\/10 { - border-bottom-color: rgb(219 30 30 / 0.1); -} - -.border-b-error\/100 { - border-bottom-color: rgb(219 30 30 / 1); -} - -.border-b-error\/20 { - border-bottom-color: rgb(219 30 30 / 0.2); -} - -.border-b-error\/25 { - border-bottom-color: rgb(219 30 30 / 0.25); -} - -.border-b-error\/30 { - border-bottom-color: rgb(219 30 30 / 0.3); -} - -.border-b-error\/40 { - border-bottom-color: rgb(219 30 30 / 0.4); -} - -.border-b-error\/5 { - border-bottom-color: rgb(219 30 30 / 0.05); -} - -.border-b-error\/50 { - border-bottom-color: rgb(219 30 30 / 0.5); -} - -.border-b-error\/60 { - border-bottom-color: rgb(219 30 30 / 0.6); -} - -.border-b-error\/70 { - border-bottom-color: rgb(219 30 30 / 0.7); -} - -.border-b-error\/75 { - border-bottom-color: rgb(219 30 30 / 0.75); -} - -.border-b-error\/80 { - border-bottom-color: rgb(219 30 30 / 0.8); -} - -.border-b-error\/90 { - border-bottom-color: rgb(219 30 30 / 0.9); -} - -.border-b-error\/95 { - border-bottom-color: rgb(219 30 30 / 0.95); -} - -.border-b-error\/shadow { - border-bottom-color: rgb(219 30 30 / .15); -} - -.border-b-errorlight { - --tw-border-opacity: 1; - border-bottom-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-b-errorlight\/0 { - border-bottom-color: rgb(255 236 236 / 0); -} - -.border-b-errorlight\/10 { - border-bottom-color: rgb(255 236 236 / 0.1); -} - -.border-b-errorlight\/100 { - border-bottom-color: rgb(255 236 236 / 1); -} - -.border-b-errorlight\/20 { - border-bottom-color: rgb(255 236 236 / 0.2); -} - -.border-b-errorlight\/25 { - border-bottom-color: rgb(255 236 236 / 0.25); -} - -.border-b-errorlight\/30 { - border-bottom-color: rgb(255 236 236 / 0.3); -} - -.border-b-errorlight\/40 { - border-bottom-color: rgb(255 236 236 / 0.4); -} - -.border-b-errorlight\/5 { - border-bottom-color: rgb(255 236 236 / 0.05); -} - -.border-b-errorlight\/50 { - border-bottom-color: rgb(255 236 236 / 0.5); -} - -.border-b-errorlight\/60 { - border-bottom-color: rgb(255 236 236 / 0.6); -} - -.border-b-errorlight\/70 { - border-bottom-color: rgb(255 236 236 / 0.7); -} - -.border-b-errorlight\/75 { - border-bottom-color: rgb(255 236 236 / 0.75); -} - -.border-b-errorlight\/80 { - border-bottom-color: rgb(255 236 236 / 0.8); -} - -.border-b-errorlight\/90 { - border-bottom-color: rgb(255 236 236 / 0.9); -} - -.border-b-errorlight\/95 { - border-bottom-color: rgb(255 236 236 / 0.95); -} - -.border-b-errorlight\/shadow { - border-bottom-color: rgb(255 236 236 / .15); -} - -.border-b-google { - --tw-border-opacity: 1; - border-bottom-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-b-google\/0 { - border-bottom-color: rgb(234 67 53 / 0); -} - -.border-b-google\/10 { - border-bottom-color: rgb(234 67 53 / 0.1); -} - -.border-b-google\/100 { - border-bottom-color: rgb(234 67 53 / 1); -} - -.border-b-google\/20 { - border-bottom-color: rgb(234 67 53 / 0.2); -} - -.border-b-google\/25 { - border-bottom-color: rgb(234 67 53 / 0.25); -} - -.border-b-google\/30 { - border-bottom-color: rgb(234 67 53 / 0.3); -} - -.border-b-google\/40 { - border-bottom-color: rgb(234 67 53 / 0.4); -} - -.border-b-google\/5 { - border-bottom-color: rgb(234 67 53 / 0.05); -} - -.border-b-google\/50 { - border-bottom-color: rgb(234 67 53 / 0.5); -} - -.border-b-google\/60 { - border-bottom-color: rgb(234 67 53 / 0.6); -} - -.border-b-google\/70 { - border-bottom-color: rgb(234 67 53 / 0.7); -} - -.border-b-google\/75 { - border-bottom-color: rgb(234 67 53 / 0.75); -} - -.border-b-google\/80 { - border-bottom-color: rgb(234 67 53 / 0.8); -} - -.border-b-google\/90 { - border-bottom-color: rgb(234 67 53 / 0.9); -} - -.border-b-google\/95 { - border-bottom-color: rgb(234 67 53 / 0.95); -} - -.border-b-google\/shadow { - border-bottom-color: rgb(234 67 53 / .15); -} - -.border-b-grey1 { - --tw-border-opacity: 1; - border-bottom-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-b-grey1\/0 { - border-bottom-color: rgb(34 34 34 / 0); -} - -.border-b-grey1\/10 { - border-bottom-color: rgb(34 34 34 / 0.1); -} - -.border-b-grey1\/100 { - border-bottom-color: rgb(34 34 34 / 1); -} - -.border-b-grey1\/20 { - border-bottom-color: rgb(34 34 34 / 0.2); -} - -.border-b-grey1\/25 { - border-bottom-color: rgb(34 34 34 / 0.25); -} - -.border-b-grey1\/30 { - border-bottom-color: rgb(34 34 34 / 0.3); -} - -.border-b-grey1\/40 { - border-bottom-color: rgb(34 34 34 / 0.4); -} - -.border-b-grey1\/5 { - border-bottom-color: rgb(34 34 34 / 0.05); -} - -.border-b-grey1\/50 { - border-bottom-color: rgb(34 34 34 / 0.5); -} - -.border-b-grey1\/60 { - border-bottom-color: rgb(34 34 34 / 0.6); -} - -.border-b-grey1\/70 { - border-bottom-color: rgb(34 34 34 / 0.7); -} - -.border-b-grey1\/75 { - border-bottom-color: rgb(34 34 34 / 0.75); -} - -.border-b-grey1\/80 { - border-bottom-color: rgb(34 34 34 / 0.8); -} - -.border-b-grey1\/90 { - border-bottom-color: rgb(34 34 34 / 0.9); -} - -.border-b-grey1\/95 { - border-bottom-color: rgb(34 34 34 / 0.95); -} - -.border-b-grey1\/shadow { - border-bottom-color: rgb(34 34 34 / .15); -} - -.border-b-grey2 { - --tw-border-opacity: 1; - border-bottom-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-b-grey2\/0 { - border-bottom-color: rgb(153 153 153 / 0); -} - -.border-b-grey2\/10 { - border-bottom-color: rgb(153 153 153 / 0.1); -} - -.border-b-grey2\/100 { - border-bottom-color: rgb(153 153 153 / 1); -} - -.border-b-grey2\/20 { - border-bottom-color: rgb(153 153 153 / 0.2); -} - -.border-b-grey2\/25 { - border-bottom-color: rgb(153 153 153 / 0.25); -} - -.border-b-grey2\/30 { - border-bottom-color: rgb(153 153 153 / 0.3); -} - -.border-b-grey2\/40 { - border-bottom-color: rgb(153 153 153 / 0.4); -} - -.border-b-grey2\/5 { - border-bottom-color: rgb(153 153 153 / 0.05); -} - -.border-b-grey2\/50 { - border-bottom-color: rgb(153 153 153 / 0.5); -} - -.border-b-grey2\/60 { - border-bottom-color: rgb(153 153 153 / 0.6); -} - -.border-b-grey2\/70 { - border-bottom-color: rgb(153 153 153 / 0.7); -} - -.border-b-grey2\/75 { - border-bottom-color: rgb(153 153 153 / 0.75); -} - -.border-b-grey2\/80 { - border-bottom-color: rgb(153 153 153 / 0.8); -} - -.border-b-grey2\/90 { - border-bottom-color: rgb(153 153 153 / 0.9); -} - -.border-b-grey2\/95 { - border-bottom-color: rgb(153 153 153 / 0.95); -} - -.border-b-grey2\/shadow { - border-bottom-color: rgb(153 153 153 / .15); -} - -.border-b-grey3 { - --tw-border-opacity: 1; - border-bottom-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-b-grey3\/0 { - border-bottom-color: rgb(204 204 204 / 0); -} - -.border-b-grey3\/10 { - border-bottom-color: rgb(204 204 204 / 0.1); -} - -.border-b-grey3\/100 { - border-bottom-color: rgb(204 204 204 / 1); -} - -.border-b-grey3\/20 { - border-bottom-color: rgb(204 204 204 / 0.2); -} - -.border-b-grey3\/25 { - border-bottom-color: rgb(204 204 204 / 0.25); -} - -.border-b-grey3\/30 { - border-bottom-color: rgb(204 204 204 / 0.3); -} - -.border-b-grey3\/40 { - border-bottom-color: rgb(204 204 204 / 0.4); -} - -.border-b-grey3\/5 { - border-bottom-color: rgb(204 204 204 / 0.05); -} - -.border-b-grey3\/50 { - border-bottom-color: rgb(204 204 204 / 0.5); -} - -.border-b-grey3\/60 { - border-bottom-color: rgb(204 204 204 / 0.6); -} - -.border-b-grey3\/70 { - border-bottom-color: rgb(204 204 204 / 0.7); -} - -.border-b-grey3\/75 { - border-bottom-color: rgb(204 204 204 / 0.75); -} - -.border-b-grey3\/80 { - border-bottom-color: rgb(204 204 204 / 0.8); -} - -.border-b-grey3\/90 { - border-bottom-color: rgb(204 204 204 / 0.9); -} - -.border-b-grey3\/95 { - border-bottom-color: rgb(204 204 204 / 0.95); -} - -.border-b-grey3\/shadow { - border-bottom-color: rgb(204 204 204 / .15); -} - -.border-b-grey4 { - --tw-border-opacity: 1; - border-bottom-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-b-grey4\/0 { - border-bottom-color: rgb(238 238 238 / 0); -} - -.border-b-grey4\/10 { - border-bottom-color: rgb(238 238 238 / 0.1); -} - -.border-b-grey4\/100 { - border-bottom-color: rgb(238 238 238 / 1); -} - -.border-b-grey4\/20 { - border-bottom-color: rgb(238 238 238 / 0.2); -} - -.border-b-grey4\/25 { - border-bottom-color: rgb(238 238 238 / 0.25); -} - -.border-b-grey4\/30 { - border-bottom-color: rgb(238 238 238 / 0.3); -} - -.border-b-grey4\/40 { - border-bottom-color: rgb(238 238 238 / 0.4); -} - -.border-b-grey4\/5 { - border-bottom-color: rgb(238 238 238 / 0.05); -} - -.border-b-grey4\/50 { - border-bottom-color: rgb(238 238 238 / 0.5); -} - -.border-b-grey4\/60 { - border-bottom-color: rgb(238 238 238 / 0.6); -} - -.border-b-grey4\/70 { - border-bottom-color: rgb(238 238 238 / 0.7); -} - -.border-b-grey4\/75 { - border-bottom-color: rgb(238 238 238 / 0.75); -} - -.border-b-grey4\/80 { - border-bottom-color: rgb(238 238 238 / 0.8); -} - -.border-b-grey4\/90 { - border-bottom-color: rgb(238 238 238 / 0.9); -} - -.border-b-grey4\/95 { - border-bottom-color: rgb(238 238 238 / 0.95); -} - -.border-b-grey4\/shadow { - border-bottom-color: rgb(238 238 238 / .15); -} - -.border-b-grey5 { - --tw-border-opacity: 1; - border-bottom-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-b-grey5\/0 { - border-bottom-color: rgb(246 246 246 / 0); -} - -.border-b-grey5\/10 { - border-bottom-color: rgb(246 246 246 / 0.1); -} - -.border-b-grey5\/100 { - border-bottom-color: rgb(246 246 246 / 1); -} - -.border-b-grey5\/20 { - border-bottom-color: rgb(246 246 246 / 0.2); -} - -.border-b-grey5\/25 { - border-bottom-color: rgb(246 246 246 / 0.25); -} - -.border-b-grey5\/30 { - border-bottom-color: rgb(246 246 246 / 0.3); -} - -.border-b-grey5\/40 { - border-bottom-color: rgb(246 246 246 / 0.4); -} - -.border-b-grey5\/5 { - border-bottom-color: rgb(246 246 246 / 0.05); -} - -.border-b-grey5\/50 { - border-bottom-color: rgb(246 246 246 / 0.5); -} - -.border-b-grey5\/60 { - border-bottom-color: rgb(246 246 246 / 0.6); -} - -.border-b-grey5\/70 { - border-bottom-color: rgb(246 246 246 / 0.7); -} - -.border-b-grey5\/75 { - border-bottom-color: rgb(246 246 246 / 0.75); -} - -.border-b-grey5\/80 { - border-bottom-color: rgb(246 246 246 / 0.8); -} - -.border-b-grey5\/90 { - border-bottom-color: rgb(246 246 246 / 0.9); -} - -.border-b-grey5\/95 { - border-bottom-color: rgb(246 246 246 / 0.95); -} - -.border-b-grey5\/shadow { - border-bottom-color: rgb(246 246 246 / .15); -} - -.border-b-grey6 { - --tw-border-opacity: 1; - border-bottom-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-b-grey6\/0 { - border-bottom-color: rgb(250 250 250 / 0); -} - -.border-b-grey6\/10 { - border-bottom-color: rgb(250 250 250 / 0.1); -} - -.border-b-grey6\/100 { - border-bottom-color: rgb(250 250 250 / 1); -} - -.border-b-grey6\/20 { - border-bottom-color: rgb(250 250 250 / 0.2); -} - -.border-b-grey6\/25 { - border-bottom-color: rgb(250 250 250 / 0.25); -} - -.border-b-grey6\/30 { - border-bottom-color: rgb(250 250 250 / 0.3); -} - -.border-b-grey6\/40 { - border-bottom-color: rgb(250 250 250 / 0.4); -} - -.border-b-grey6\/5 { - border-bottom-color: rgb(250 250 250 / 0.05); -} - -.border-b-grey6\/50 { - border-bottom-color: rgb(250 250 250 / 0.5); -} - -.border-b-grey6\/60 { - border-bottom-color: rgb(250 250 250 / 0.6); -} - -.border-b-grey6\/70 { - border-bottom-color: rgb(250 250 250 / 0.7); -} - -.border-b-grey6\/75 { - border-bottom-color: rgb(250 250 250 / 0.75); -} - -.border-b-grey6\/80 { - border-bottom-color: rgb(250 250 250 / 0.8); -} - -.border-b-grey6\/90 { - border-bottom-color: rgb(250 250 250 / 0.9); -} - -.border-b-grey6\/95 { - border-bottom-color: rgb(250 250 250 / 0.95); -} - -.border-b-grey6\/shadow { - border-bottom-color: rgb(250 250 250 / .15); -} - -.border-b-primary { - --tw-border-opacity: 1; - border-bottom-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-b-primary\/0 { - border-bottom-color: rgb(66 114 239 / 0); -} - -.border-b-primary\/10 { - border-bottom-color: rgb(66 114 239 / 0.1); -} - -.border-b-primary\/100 { - border-bottom-color: rgb(66 114 239 / 1); -} - -.border-b-primary\/20 { - border-bottom-color: rgb(66 114 239 / 0.2); -} - -.border-b-primary\/25 { - border-bottom-color: rgb(66 114 239 / 0.25); -} - -.border-b-primary\/30 { - border-bottom-color: rgb(66 114 239 / 0.3); -} - -.border-b-primary\/40 { - border-bottom-color: rgb(66 114 239 / 0.4); -} - -.border-b-primary\/5 { - border-bottom-color: rgb(66 114 239 / 0.05); -} - -.border-b-primary\/50 { - border-bottom-color: rgb(66 114 239 / 0.5); -} - -.border-b-primary\/60 { - border-bottom-color: rgb(66 114 239 / 0.6); -} - -.border-b-primary\/70 { - border-bottom-color: rgb(66 114 239 / 0.7); -} - -.border-b-primary\/75 { - border-bottom-color: rgb(66 114 239 / 0.75); -} - -.border-b-primary\/80 { - border-bottom-color: rgb(66 114 239 / 0.8); -} - -.border-b-primary\/90 { - border-bottom-color: rgb(66 114 239 / 0.9); -} - -.border-b-primary\/95 { - border-bottom-color: rgb(66 114 239 / 0.95); -} - -.border-b-primary\/shadow { - border-bottom-color: rgb(66 114 239 / .15); -} - -.border-b-primarylight { - --tw-border-opacity: 1; - border-bottom-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-b-primarylight\/0 { - border-bottom-color: rgb(227 234 253 / 0); -} - -.border-b-primarylight\/10 { - border-bottom-color: rgb(227 234 253 / 0.1); -} - -.border-b-primarylight\/100 { - border-bottom-color: rgb(227 234 253 / 1); -} - -.border-b-primarylight\/20 { - border-bottom-color: rgb(227 234 253 / 0.2); -} - -.border-b-primarylight\/25 { - border-bottom-color: rgb(227 234 253 / 0.25); -} - -.border-b-primarylight\/30 { - border-bottom-color: rgb(227 234 253 / 0.3); -} - -.border-b-primarylight\/40 { - border-bottom-color: rgb(227 234 253 / 0.4); -} - -.border-b-primarylight\/5 { - border-bottom-color: rgb(227 234 253 / 0.05); -} - -.border-b-primarylight\/50 { - border-bottom-color: rgb(227 234 253 / 0.5); -} - -.border-b-primarylight\/60 { - border-bottom-color: rgb(227 234 253 / 0.6); -} - -.border-b-primarylight\/70 { - border-bottom-color: rgb(227 234 253 / 0.7); -} - -.border-b-primarylight\/75 { - border-bottom-color: rgb(227 234 253 / 0.75); -} - -.border-b-primarylight\/80 { - border-bottom-color: rgb(227 234 253 / 0.8); -} - -.border-b-primarylight\/90 { - border-bottom-color: rgb(227 234 253 / 0.9); -} - -.border-b-primarylight\/95 { - border-bottom-color: rgb(227 234 253 / 0.95); -} - -.border-b-primarylight\/shadow { - border-bottom-color: rgb(227 234 253 / .15); -} - -.border-b-secondary { - --tw-border-opacity: 1; - border-bottom-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-b-secondary\/0 { - border-bottom-color: rgb(255 94 94 / 0); -} - -.border-b-secondary\/10 { - border-bottom-color: rgb(255 94 94 / 0.1); -} - -.border-b-secondary\/100 { - border-bottom-color: rgb(255 94 94 / 1); -} - -.border-b-secondary\/20 { - border-bottom-color: rgb(255 94 94 / 0.2); -} - -.border-b-secondary\/25 { - border-bottom-color: rgb(255 94 94 / 0.25); -} - -.border-b-secondary\/30 { - border-bottom-color: rgb(255 94 94 / 0.3); -} - -.border-b-secondary\/40 { - border-bottom-color: rgb(255 94 94 / 0.4); -} - -.border-b-secondary\/5 { - border-bottom-color: rgb(255 94 94 / 0.05); -} - -.border-b-secondary\/50 { - border-bottom-color: rgb(255 94 94 / 0.5); -} - -.border-b-secondary\/60 { - border-bottom-color: rgb(255 94 94 / 0.6); -} - -.border-b-secondary\/70 { - border-bottom-color: rgb(255 94 94 / 0.7); -} - -.border-b-secondary\/75 { - border-bottom-color: rgb(255 94 94 / 0.75); -} - -.border-b-secondary\/80 { - border-bottom-color: rgb(255 94 94 / 0.8); -} - -.border-b-secondary\/90 { - border-bottom-color: rgb(255 94 94 / 0.9); -} - -.border-b-secondary\/95 { - border-bottom-color: rgb(255 94 94 / 0.95); -} - -.border-b-secondary\/shadow { - border-bottom-color: rgb(255 94 94 / .15); -} - -.border-b-success { - --tw-border-opacity: 1; - border-bottom-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-b-success\/0 { - border-bottom-color: rgb(111 202 55 / 0); -} - -.border-b-success\/10 { - border-bottom-color: rgb(111 202 55 / 0.1); -} - -.border-b-success\/100 { - border-bottom-color: rgb(111 202 55 / 1); -} - -.border-b-success\/20 { - border-bottom-color: rgb(111 202 55 / 0.2); -} - -.border-b-success\/25 { - border-bottom-color: rgb(111 202 55 / 0.25); -} - -.border-b-success\/30 { - border-bottom-color: rgb(111 202 55 / 0.3); -} - -.border-b-success\/40 { - border-bottom-color: rgb(111 202 55 / 0.4); -} - -.border-b-success\/5 { - border-bottom-color: rgb(111 202 55 / 0.05); -} - -.border-b-success\/50 { - border-bottom-color: rgb(111 202 55 / 0.5); -} - -.border-b-success\/60 { - border-bottom-color: rgb(111 202 55 / 0.6); -} - -.border-b-success\/70 { - border-bottom-color: rgb(111 202 55 / 0.7); -} - -.border-b-success\/75 { - border-bottom-color: rgb(111 202 55 / 0.75); -} - -.border-b-success\/80 { - border-bottom-color: rgb(111 202 55 / 0.8); -} - -.border-b-success\/90 { - border-bottom-color: rgb(111 202 55 / 0.9); -} - -.border-b-success\/95 { - border-bottom-color: rgb(111 202 55 / 0.95); -} - -.border-b-success\/shadow { - border-bottom-color: rgb(111 202 55 / .15); -} - -.border-b-successlight { - --tw-border-opacity: 1; - border-bottom-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-b-successlight\/0 { - border-bottom-color: rgb(235 255 223 / 0); -} - -.border-b-successlight\/10 { - border-bottom-color: rgb(235 255 223 / 0.1); -} - -.border-b-successlight\/100 { - border-bottom-color: rgb(235 255 223 / 1); -} - -.border-b-successlight\/20 { - border-bottom-color: rgb(235 255 223 / 0.2); -} - -.border-b-successlight\/25 { - border-bottom-color: rgb(235 255 223 / 0.25); -} - -.border-b-successlight\/30 { - border-bottom-color: rgb(235 255 223 / 0.3); -} - -.border-b-successlight\/40 { - border-bottom-color: rgb(235 255 223 / 0.4); -} - -.border-b-successlight\/5 { - border-bottom-color: rgb(235 255 223 / 0.05); -} - -.border-b-successlight\/50 { - border-bottom-color: rgb(235 255 223 / 0.5); -} - -.border-b-successlight\/60 { - border-bottom-color: rgb(235 255 223 / 0.6); -} - -.border-b-successlight\/70 { - border-bottom-color: rgb(235 255 223 / 0.7); -} - -.border-b-successlight\/75 { - border-bottom-color: rgb(235 255 223 / 0.75); -} - -.border-b-successlight\/80 { - border-bottom-color: rgb(235 255 223 / 0.8); -} - -.border-b-successlight\/90 { - border-bottom-color: rgb(235 255 223 / 0.9); -} - -.border-b-successlight\/95 { - border-bottom-color: rgb(235 255 223 / 0.95); -} - -.border-b-successlight\/shadow { - border-bottom-color: rgb(235 255 223 / .15); -} - -.border-b-surfconext { - --tw-border-opacity: 1; - border-bottom-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-b-surfconext\/0 { - border-bottom-color: rgb(77 178 207 / 0); -} - -.border-b-surfconext\/10 { - border-bottom-color: rgb(77 178 207 / 0.1); -} - -.border-b-surfconext\/100 { - border-bottom-color: rgb(77 178 207 / 1); -} - -.border-b-surfconext\/20 { - border-bottom-color: rgb(77 178 207 / 0.2); -} - -.border-b-surfconext\/25 { - border-bottom-color: rgb(77 178 207 / 0.25); -} - -.border-b-surfconext\/30 { - border-bottom-color: rgb(77 178 207 / 0.3); -} - -.border-b-surfconext\/40 { - border-bottom-color: rgb(77 178 207 / 0.4); -} - -.border-b-surfconext\/5 { - border-bottom-color: rgb(77 178 207 / 0.05); -} - -.border-b-surfconext\/50 { - border-bottom-color: rgb(77 178 207 / 0.5); -} - -.border-b-surfconext\/60 { - border-bottom-color: rgb(77 178 207 / 0.6); -} - -.border-b-surfconext\/70 { - border-bottom-color: rgb(77 178 207 / 0.7); -} - -.border-b-surfconext\/75 { - border-bottom-color: rgb(77 178 207 / 0.75); -} - -.border-b-surfconext\/80 { - border-bottom-color: rgb(77 178 207 / 0.8); -} - -.border-b-surfconext\/90 { - border-bottom-color: rgb(77 178 207 / 0.9); -} - -.border-b-surfconext\/95 { - border-bottom-color: rgb(77 178 207 / 0.95); -} - -.border-b-surfconext\/shadow { - border-bottom-color: rgb(77 178 207 / .15); -} - -.border-b-tertiary { - --tw-border-opacity: 1; - border-bottom-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-b-tertiary\/0 { - border-bottom-color: rgb(255 207 96 / 0); -} - -.border-b-tertiary\/10 { - border-bottom-color: rgb(255 207 96 / 0.1); -} - -.border-b-tertiary\/100 { - border-bottom-color: rgb(255 207 96 / 1); -} - -.border-b-tertiary\/20 { - border-bottom-color: rgb(255 207 96 / 0.2); -} - -.border-b-tertiary\/25 { - border-bottom-color: rgb(255 207 96 / 0.25); -} - -.border-b-tertiary\/30 { - border-bottom-color: rgb(255 207 96 / 0.3); -} - -.border-b-tertiary\/40 { - border-bottom-color: rgb(255 207 96 / 0.4); -} - -.border-b-tertiary\/5 { - border-bottom-color: rgb(255 207 96 / 0.05); -} - -.border-b-tertiary\/50 { - border-bottom-color: rgb(255 207 96 / 0.5); -} - -.border-b-tertiary\/60 { - border-bottom-color: rgb(255 207 96 / 0.6); -} - -.border-b-tertiary\/70 { - border-bottom-color: rgb(255 207 96 / 0.7); -} - -.border-b-tertiary\/75 { - border-bottom-color: rgb(255 207 96 / 0.75); -} - -.border-b-tertiary\/80 { - border-bottom-color: rgb(255 207 96 / 0.8); -} - -.border-b-tertiary\/90 { - border-bottom-color: rgb(255 207 96 / 0.9); -} - -.border-b-tertiary\/95 { - border-bottom-color: rgb(255 207 96 / 0.95); -} - -.border-b-tertiary\/shadow { - border-bottom-color: rgb(255 207 96 / .15); -} - -.border-b-warning { - --tw-border-opacity: 1; - border-bottom-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-b-warning\/0 { - border-bottom-color: rgb(242 141 21 / 0); -} - -.border-b-warning\/10 { - border-bottom-color: rgb(242 141 21 / 0.1); -} - -.border-b-warning\/100 { - border-bottom-color: rgb(242 141 21 / 1); -} - -.border-b-warning\/20 { - border-bottom-color: rgb(242 141 21 / 0.2); -} - -.border-b-warning\/25 { - border-bottom-color: rgb(242 141 21 / 0.25); -} - -.border-b-warning\/30 { - border-bottom-color: rgb(242 141 21 / 0.3); -} - -.border-b-warning\/40 { - border-bottom-color: rgb(242 141 21 / 0.4); -} - -.border-b-warning\/5 { - border-bottom-color: rgb(242 141 21 / 0.05); -} - -.border-b-warning\/50 { - border-bottom-color: rgb(242 141 21 / 0.5); -} - -.border-b-warning\/60 { - border-bottom-color: rgb(242 141 21 / 0.6); -} - -.border-b-warning\/70 { - border-bottom-color: rgb(242 141 21 / 0.7); -} - -.border-b-warning\/75 { - border-bottom-color: rgb(242 141 21 / 0.75); -} - -.border-b-warning\/80 { - border-bottom-color: rgb(242 141 21 / 0.8); -} - -.border-b-warning\/90 { - border-bottom-color: rgb(242 141 21 / 0.9); -} - -.border-b-warning\/95 { - border-bottom-color: rgb(242 141 21 / 0.95); -} - -.border-b-warning\/shadow { - border-bottom-color: rgb(242 141 21 / .15); -} - -.border-b-warninglight { - --tw-border-opacity: 1; - border-bottom-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-b-warninglight\/0 { - border-bottom-color: rgb(255 239 220 / 0); -} - -.border-b-warninglight\/10 { - border-bottom-color: rgb(255 239 220 / 0.1); -} - -.border-b-warninglight\/100 { - border-bottom-color: rgb(255 239 220 / 1); -} - -.border-b-warninglight\/20 { - border-bottom-color: rgb(255 239 220 / 0.2); -} - -.border-b-warninglight\/25 { - border-bottom-color: rgb(255 239 220 / 0.25); -} - -.border-b-warninglight\/30 { - border-bottom-color: rgb(255 239 220 / 0.3); -} - -.border-b-warninglight\/40 { - border-bottom-color: rgb(255 239 220 / 0.4); -} - -.border-b-warninglight\/5 { - border-bottom-color: rgb(255 239 220 / 0.05); -} - -.border-b-warninglight\/50 { - border-bottom-color: rgb(255 239 220 / 0.5); -} - -.border-b-warninglight\/60 { - border-bottom-color: rgb(255 239 220 / 0.6); -} - -.border-b-warninglight\/70 { - border-bottom-color: rgb(255 239 220 / 0.7); -} - -.border-b-warninglight\/75 { - border-bottom-color: rgb(255 239 220 / 0.75); -} - -.border-b-warninglight\/80 { - border-bottom-color: rgb(255 239 220 / 0.8); -} - -.border-b-warninglight\/90 { - border-bottom-color: rgb(255 239 220 / 0.9); -} - -.border-b-warninglight\/95 { - border-bottom-color: rgb(255 239 220 / 0.95); -} - -.border-b-warninglight\/shadow { - border-bottom-color: rgb(255 239 220 / .15); -} - -.border-b-white { - --tw-border-opacity: 1; - border-bottom-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-b-white\/0 { - border-bottom-color: rgb(255 255 255 / 0); -} - -.border-b-white\/10 { - border-bottom-color: rgb(255 255 255 / 0.1); -} - -.border-b-white\/100 { - border-bottom-color: rgb(255 255 255 / 1); -} - -.border-b-white\/20 { - border-bottom-color: rgb(255 255 255 / 0.2); -} - -.border-b-white\/25 { - border-bottom-color: rgb(255 255 255 / 0.25); -} - -.border-b-white\/30 { - border-bottom-color: rgb(255 255 255 / 0.3); -} - -.border-b-white\/40 { - border-bottom-color: rgb(255 255 255 / 0.4); -} - -.border-b-white\/5 { - border-bottom-color: rgb(255 255 255 / 0.05); -} - -.border-b-white\/50 { - border-bottom-color: rgb(255 255 255 / 0.5); -} - -.border-b-white\/60 { - border-bottom-color: rgb(255 255 255 / 0.6); -} - -.border-b-white\/70 { - border-bottom-color: rgb(255 255 255 / 0.7); -} - -.border-b-white\/75 { - border-bottom-color: rgb(255 255 255 / 0.75); -} - -.border-b-white\/80 { - border-bottom-color: rgb(255 255 255 / 0.8); -} - -.border-b-white\/90 { - border-bottom-color: rgb(255 255 255 / 0.9); -} - -.border-b-white\/95 { - border-bottom-color: rgb(255 255 255 / 0.95); -} - -.border-b-white\/shadow { - border-bottom-color: rgb(255 255 255 / .15); -} - -.border-e-apple { - --tw-border-opacity: 1; - border-inline-end-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-e-apple\/0 { - border-inline-end-color: rgb(0 0 0 / 0); -} - -.border-e-apple\/10 { - border-inline-end-color: rgb(0 0 0 / 0.1); -} - -.border-e-apple\/100 { - border-inline-end-color: rgb(0 0 0 / 1); -} - -.border-e-apple\/20 { - border-inline-end-color: rgb(0 0 0 / 0.2); -} - -.border-e-apple\/25 { - border-inline-end-color: rgb(0 0 0 / 0.25); -} - -.border-e-apple\/30 { - border-inline-end-color: rgb(0 0 0 / 0.3); -} - -.border-e-apple\/40 { - border-inline-end-color: rgb(0 0 0 / 0.4); -} - -.border-e-apple\/5 { - border-inline-end-color: rgb(0 0 0 / 0.05); -} - -.border-e-apple\/50 { - border-inline-end-color: rgb(0 0 0 / 0.5); -} - -.border-e-apple\/60 { - border-inline-end-color: rgb(0 0 0 / 0.6); -} - -.border-e-apple\/70 { - border-inline-end-color: rgb(0 0 0 / 0.7); -} - -.border-e-apple\/75 { - border-inline-end-color: rgb(0 0 0 / 0.75); -} - -.border-e-apple\/80 { - border-inline-end-color: rgb(0 0 0 / 0.8); -} - -.border-e-apple\/90 { - border-inline-end-color: rgb(0 0 0 / 0.9); -} - -.border-e-apple\/95 { - border-inline-end-color: rgb(0 0 0 / 0.95); -} - -.border-e-apple\/shadow { - border-inline-end-color: rgb(0 0 0 / .15); -} - -.border-e-black { - --tw-border-opacity: 1; - border-inline-end-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-e-black\/0 { - border-inline-end-color: rgb(0 0 0 / 0); -} - -.border-e-black\/10 { - border-inline-end-color: rgb(0 0 0 / 0.1); -} - -.border-e-black\/100 { - border-inline-end-color: rgb(0 0 0 / 1); -} - -.border-e-black\/20 { - border-inline-end-color: rgb(0 0 0 / 0.2); -} - -.border-e-black\/25 { - border-inline-end-color: rgb(0 0 0 / 0.25); -} - -.border-e-black\/30 { - border-inline-end-color: rgb(0 0 0 / 0.3); -} - -.border-e-black\/40 { - border-inline-end-color: rgb(0 0 0 / 0.4); -} - -.border-e-black\/5 { - border-inline-end-color: rgb(0 0 0 / 0.05); -} - -.border-e-black\/50 { - border-inline-end-color: rgb(0 0 0 / 0.5); -} - -.border-e-black\/60 { - border-inline-end-color: rgb(0 0 0 / 0.6); -} - -.border-e-black\/70 { - border-inline-end-color: rgb(0 0 0 / 0.7); -} - -.border-e-black\/75 { - border-inline-end-color: rgb(0 0 0 / 0.75); -} - -.border-e-black\/80 { - border-inline-end-color: rgb(0 0 0 / 0.8); -} - -.border-e-black\/90 { - border-inline-end-color: rgb(0 0 0 / 0.9); -} - -.border-e-black\/95 { - border-inline-end-color: rgb(0 0 0 / 0.95); -} - -.border-e-black\/shadow { - border-inline-end-color: rgb(0 0 0 / .15); -} - -.border-e-delete { - --tw-border-opacity: 1; - border-inline-end-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-e-delete\/0 { - border-inline-end-color: rgb(219 30 30 / 0); -} - -.border-e-delete\/10 { - border-inline-end-color: rgb(219 30 30 / 0.1); -} - -.border-e-delete\/100 { - border-inline-end-color: rgb(219 30 30 / 1); -} - -.border-e-delete\/20 { - border-inline-end-color: rgb(219 30 30 / 0.2); -} - -.border-e-delete\/25 { - border-inline-end-color: rgb(219 30 30 / 0.25); -} - -.border-e-delete\/30 { - border-inline-end-color: rgb(219 30 30 / 0.3); -} - -.border-e-delete\/40 { - border-inline-end-color: rgb(219 30 30 / 0.4); -} - -.border-e-delete\/5 { - border-inline-end-color: rgb(219 30 30 / 0.05); -} - -.border-e-delete\/50 { - border-inline-end-color: rgb(219 30 30 / 0.5); -} - -.border-e-delete\/60 { - border-inline-end-color: rgb(219 30 30 / 0.6); -} - -.border-e-delete\/70 { - border-inline-end-color: rgb(219 30 30 / 0.7); -} - -.border-e-delete\/75 { - border-inline-end-color: rgb(219 30 30 / 0.75); -} - -.border-e-delete\/80 { - border-inline-end-color: rgb(219 30 30 / 0.8); -} - -.border-e-delete\/90 { - border-inline-end-color: rgb(219 30 30 / 0.9); -} - -.border-e-delete\/95 { - border-inline-end-color: rgb(219 30 30 / 0.95); -} - -.border-e-delete\/shadow { - border-inline-end-color: rgb(219 30 30 / .15); -} - -.border-e-deletelight { - --tw-border-opacity: 1; - border-inline-end-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-e-deletelight\/0 { - border-inline-end-color: rgb(255 236 236 / 0); -} - -.border-e-deletelight\/10 { - border-inline-end-color: rgb(255 236 236 / 0.1); -} - -.border-e-deletelight\/100 { - border-inline-end-color: rgb(255 236 236 / 1); -} - -.border-e-deletelight\/20 { - border-inline-end-color: rgb(255 236 236 / 0.2); -} - -.border-e-deletelight\/25 { - border-inline-end-color: rgb(255 236 236 / 0.25); -} - -.border-e-deletelight\/30 { - border-inline-end-color: rgb(255 236 236 / 0.3); -} - -.border-e-deletelight\/40 { - border-inline-end-color: rgb(255 236 236 / 0.4); -} - -.border-e-deletelight\/5 { - border-inline-end-color: rgb(255 236 236 / 0.05); -} - -.border-e-deletelight\/50 { - border-inline-end-color: rgb(255 236 236 / 0.5); -} - -.border-e-deletelight\/60 { - border-inline-end-color: rgb(255 236 236 / 0.6); -} - -.border-e-deletelight\/70 { - border-inline-end-color: rgb(255 236 236 / 0.7); -} - -.border-e-deletelight\/75 { - border-inline-end-color: rgb(255 236 236 / 0.75); -} - -.border-e-deletelight\/80 { - border-inline-end-color: rgb(255 236 236 / 0.8); -} - -.border-e-deletelight\/90 { - border-inline-end-color: rgb(255 236 236 / 0.9); -} - -.border-e-deletelight\/95 { - border-inline-end-color: rgb(255 236 236 / 0.95); -} - -.border-e-deletelight\/shadow { - border-inline-end-color: rgb(255 236 236 / .15); -} - -.border-e-error { - --tw-border-opacity: 1; - border-inline-end-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-e-error\/0 { - border-inline-end-color: rgb(219 30 30 / 0); -} - -.border-e-error\/10 { - border-inline-end-color: rgb(219 30 30 / 0.1); -} - -.border-e-error\/100 { - border-inline-end-color: rgb(219 30 30 / 1); -} - -.border-e-error\/20 { - border-inline-end-color: rgb(219 30 30 / 0.2); -} - -.border-e-error\/25 { - border-inline-end-color: rgb(219 30 30 / 0.25); -} - -.border-e-error\/30 { - border-inline-end-color: rgb(219 30 30 / 0.3); -} - -.border-e-error\/40 { - border-inline-end-color: rgb(219 30 30 / 0.4); -} - -.border-e-error\/5 { - border-inline-end-color: rgb(219 30 30 / 0.05); -} - -.border-e-error\/50 { - border-inline-end-color: rgb(219 30 30 / 0.5); -} - -.border-e-error\/60 { - border-inline-end-color: rgb(219 30 30 / 0.6); -} - -.border-e-error\/70 { - border-inline-end-color: rgb(219 30 30 / 0.7); -} - -.border-e-error\/75 { - border-inline-end-color: rgb(219 30 30 / 0.75); -} - -.border-e-error\/80 { - border-inline-end-color: rgb(219 30 30 / 0.8); -} - -.border-e-error\/90 { - border-inline-end-color: rgb(219 30 30 / 0.9); -} - -.border-e-error\/95 { - border-inline-end-color: rgb(219 30 30 / 0.95); -} - -.border-e-error\/shadow { - border-inline-end-color: rgb(219 30 30 / .15); -} - -.border-e-errorlight { - --tw-border-opacity: 1; - border-inline-end-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-e-errorlight\/0 { - border-inline-end-color: rgb(255 236 236 / 0); -} - -.border-e-errorlight\/10 { - border-inline-end-color: rgb(255 236 236 / 0.1); -} - -.border-e-errorlight\/100 { - border-inline-end-color: rgb(255 236 236 / 1); -} - -.border-e-errorlight\/20 { - border-inline-end-color: rgb(255 236 236 / 0.2); -} - -.border-e-errorlight\/25 { - border-inline-end-color: rgb(255 236 236 / 0.25); -} - -.border-e-errorlight\/30 { - border-inline-end-color: rgb(255 236 236 / 0.3); -} - -.border-e-errorlight\/40 { - border-inline-end-color: rgb(255 236 236 / 0.4); -} - -.border-e-errorlight\/5 { - border-inline-end-color: rgb(255 236 236 / 0.05); -} - -.border-e-errorlight\/50 { - border-inline-end-color: rgb(255 236 236 / 0.5); -} - -.border-e-errorlight\/60 { - border-inline-end-color: rgb(255 236 236 / 0.6); -} - -.border-e-errorlight\/70 { - border-inline-end-color: rgb(255 236 236 / 0.7); -} - -.border-e-errorlight\/75 { - border-inline-end-color: rgb(255 236 236 / 0.75); -} - -.border-e-errorlight\/80 { - border-inline-end-color: rgb(255 236 236 / 0.8); -} - -.border-e-errorlight\/90 { - border-inline-end-color: rgb(255 236 236 / 0.9); -} - -.border-e-errorlight\/95 { - border-inline-end-color: rgb(255 236 236 / 0.95); -} - -.border-e-errorlight\/shadow { - border-inline-end-color: rgb(255 236 236 / .15); -} - -.border-e-google { - --tw-border-opacity: 1; - border-inline-end-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-e-google\/0 { - border-inline-end-color: rgb(234 67 53 / 0); -} - -.border-e-google\/10 { - border-inline-end-color: rgb(234 67 53 / 0.1); -} - -.border-e-google\/100 { - border-inline-end-color: rgb(234 67 53 / 1); -} - -.border-e-google\/20 { - border-inline-end-color: rgb(234 67 53 / 0.2); -} - -.border-e-google\/25 { - border-inline-end-color: rgb(234 67 53 / 0.25); -} - -.border-e-google\/30 { - border-inline-end-color: rgb(234 67 53 / 0.3); -} - -.border-e-google\/40 { - border-inline-end-color: rgb(234 67 53 / 0.4); -} - -.border-e-google\/5 { - border-inline-end-color: rgb(234 67 53 / 0.05); -} - -.border-e-google\/50 { - border-inline-end-color: rgb(234 67 53 / 0.5); -} - -.border-e-google\/60 { - border-inline-end-color: rgb(234 67 53 / 0.6); -} - -.border-e-google\/70 { - border-inline-end-color: rgb(234 67 53 / 0.7); -} - -.border-e-google\/75 { - border-inline-end-color: rgb(234 67 53 / 0.75); -} - -.border-e-google\/80 { - border-inline-end-color: rgb(234 67 53 / 0.8); -} - -.border-e-google\/90 { - border-inline-end-color: rgb(234 67 53 / 0.9); -} - -.border-e-google\/95 { - border-inline-end-color: rgb(234 67 53 / 0.95); -} - -.border-e-google\/shadow { - border-inline-end-color: rgb(234 67 53 / .15); -} - -.border-e-grey1 { - --tw-border-opacity: 1; - border-inline-end-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-e-grey1\/0 { - border-inline-end-color: rgb(34 34 34 / 0); -} - -.border-e-grey1\/10 { - border-inline-end-color: rgb(34 34 34 / 0.1); -} - -.border-e-grey1\/100 { - border-inline-end-color: rgb(34 34 34 / 1); -} - -.border-e-grey1\/20 { - border-inline-end-color: rgb(34 34 34 / 0.2); -} - -.border-e-grey1\/25 { - border-inline-end-color: rgb(34 34 34 / 0.25); -} - -.border-e-grey1\/30 { - border-inline-end-color: rgb(34 34 34 / 0.3); -} - -.border-e-grey1\/40 { - border-inline-end-color: rgb(34 34 34 / 0.4); -} - -.border-e-grey1\/5 { - border-inline-end-color: rgb(34 34 34 / 0.05); -} - -.border-e-grey1\/50 { - border-inline-end-color: rgb(34 34 34 / 0.5); -} - -.border-e-grey1\/60 { - border-inline-end-color: rgb(34 34 34 / 0.6); -} - -.border-e-grey1\/70 { - border-inline-end-color: rgb(34 34 34 / 0.7); -} - -.border-e-grey1\/75 { - border-inline-end-color: rgb(34 34 34 / 0.75); -} - -.border-e-grey1\/80 { - border-inline-end-color: rgb(34 34 34 / 0.8); -} - -.border-e-grey1\/90 { - border-inline-end-color: rgb(34 34 34 / 0.9); -} - -.border-e-grey1\/95 { - border-inline-end-color: rgb(34 34 34 / 0.95); -} - -.border-e-grey1\/shadow { - border-inline-end-color: rgb(34 34 34 / .15); -} - -.border-e-grey2 { - --tw-border-opacity: 1; - border-inline-end-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-e-grey2\/0 { - border-inline-end-color: rgb(153 153 153 / 0); -} - -.border-e-grey2\/10 { - border-inline-end-color: rgb(153 153 153 / 0.1); -} - -.border-e-grey2\/100 { - border-inline-end-color: rgb(153 153 153 / 1); -} - -.border-e-grey2\/20 { - border-inline-end-color: rgb(153 153 153 / 0.2); -} - -.border-e-grey2\/25 { - border-inline-end-color: rgb(153 153 153 / 0.25); -} - -.border-e-grey2\/30 { - border-inline-end-color: rgb(153 153 153 / 0.3); -} - -.border-e-grey2\/40 { - border-inline-end-color: rgb(153 153 153 / 0.4); -} - -.border-e-grey2\/5 { - border-inline-end-color: rgb(153 153 153 / 0.05); -} - -.border-e-grey2\/50 { - border-inline-end-color: rgb(153 153 153 / 0.5); -} - -.border-e-grey2\/60 { - border-inline-end-color: rgb(153 153 153 / 0.6); -} - -.border-e-grey2\/70 { - border-inline-end-color: rgb(153 153 153 / 0.7); -} - -.border-e-grey2\/75 { - border-inline-end-color: rgb(153 153 153 / 0.75); -} - -.border-e-grey2\/80 { - border-inline-end-color: rgb(153 153 153 / 0.8); -} - -.border-e-grey2\/90 { - border-inline-end-color: rgb(153 153 153 / 0.9); -} - -.border-e-grey2\/95 { - border-inline-end-color: rgb(153 153 153 / 0.95); -} - -.border-e-grey2\/shadow { - border-inline-end-color: rgb(153 153 153 / .15); -} - -.border-e-grey3 { - --tw-border-opacity: 1; - border-inline-end-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-e-grey3\/0 { - border-inline-end-color: rgb(204 204 204 / 0); -} - -.border-e-grey3\/10 { - border-inline-end-color: rgb(204 204 204 / 0.1); -} - -.border-e-grey3\/100 { - border-inline-end-color: rgb(204 204 204 / 1); -} - -.border-e-grey3\/20 { - border-inline-end-color: rgb(204 204 204 / 0.2); -} - -.border-e-grey3\/25 { - border-inline-end-color: rgb(204 204 204 / 0.25); -} - -.border-e-grey3\/30 { - border-inline-end-color: rgb(204 204 204 / 0.3); -} - -.border-e-grey3\/40 { - border-inline-end-color: rgb(204 204 204 / 0.4); -} - -.border-e-grey3\/5 { - border-inline-end-color: rgb(204 204 204 / 0.05); -} - -.border-e-grey3\/50 { - border-inline-end-color: rgb(204 204 204 / 0.5); -} - -.border-e-grey3\/60 { - border-inline-end-color: rgb(204 204 204 / 0.6); -} - -.border-e-grey3\/70 { - border-inline-end-color: rgb(204 204 204 / 0.7); -} - -.border-e-grey3\/75 { - border-inline-end-color: rgb(204 204 204 / 0.75); -} - -.border-e-grey3\/80 { - border-inline-end-color: rgb(204 204 204 / 0.8); -} - -.border-e-grey3\/90 { - border-inline-end-color: rgb(204 204 204 / 0.9); -} - -.border-e-grey3\/95 { - border-inline-end-color: rgb(204 204 204 / 0.95); -} - -.border-e-grey3\/shadow { - border-inline-end-color: rgb(204 204 204 / .15); -} - -.border-e-grey4 { - --tw-border-opacity: 1; - border-inline-end-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-e-grey4\/0 { - border-inline-end-color: rgb(238 238 238 / 0); -} - -.border-e-grey4\/10 { - border-inline-end-color: rgb(238 238 238 / 0.1); -} - -.border-e-grey4\/100 { - border-inline-end-color: rgb(238 238 238 / 1); -} - -.border-e-grey4\/20 { - border-inline-end-color: rgb(238 238 238 / 0.2); -} - -.border-e-grey4\/25 { - border-inline-end-color: rgb(238 238 238 / 0.25); -} - -.border-e-grey4\/30 { - border-inline-end-color: rgb(238 238 238 / 0.3); -} - -.border-e-grey4\/40 { - border-inline-end-color: rgb(238 238 238 / 0.4); -} - -.border-e-grey4\/5 { - border-inline-end-color: rgb(238 238 238 / 0.05); -} - -.border-e-grey4\/50 { - border-inline-end-color: rgb(238 238 238 / 0.5); -} - -.border-e-grey4\/60 { - border-inline-end-color: rgb(238 238 238 / 0.6); -} - -.border-e-grey4\/70 { - border-inline-end-color: rgb(238 238 238 / 0.7); -} - -.border-e-grey4\/75 { - border-inline-end-color: rgb(238 238 238 / 0.75); -} - -.border-e-grey4\/80 { - border-inline-end-color: rgb(238 238 238 / 0.8); -} - -.border-e-grey4\/90 { - border-inline-end-color: rgb(238 238 238 / 0.9); -} - -.border-e-grey4\/95 { - border-inline-end-color: rgb(238 238 238 / 0.95); -} - -.border-e-grey4\/shadow { - border-inline-end-color: rgb(238 238 238 / .15); -} - -.border-e-grey5 { - --tw-border-opacity: 1; - border-inline-end-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-e-grey5\/0 { - border-inline-end-color: rgb(246 246 246 / 0); -} - -.border-e-grey5\/10 { - border-inline-end-color: rgb(246 246 246 / 0.1); -} - -.border-e-grey5\/100 { - border-inline-end-color: rgb(246 246 246 / 1); -} - -.border-e-grey5\/20 { - border-inline-end-color: rgb(246 246 246 / 0.2); -} - -.border-e-grey5\/25 { - border-inline-end-color: rgb(246 246 246 / 0.25); -} - -.border-e-grey5\/30 { - border-inline-end-color: rgb(246 246 246 / 0.3); -} - -.border-e-grey5\/40 { - border-inline-end-color: rgb(246 246 246 / 0.4); -} - -.border-e-grey5\/5 { - border-inline-end-color: rgb(246 246 246 / 0.05); -} - -.border-e-grey5\/50 { - border-inline-end-color: rgb(246 246 246 / 0.5); -} - -.border-e-grey5\/60 { - border-inline-end-color: rgb(246 246 246 / 0.6); -} - -.border-e-grey5\/70 { - border-inline-end-color: rgb(246 246 246 / 0.7); -} - -.border-e-grey5\/75 { - border-inline-end-color: rgb(246 246 246 / 0.75); -} - -.border-e-grey5\/80 { - border-inline-end-color: rgb(246 246 246 / 0.8); -} - -.border-e-grey5\/90 { - border-inline-end-color: rgb(246 246 246 / 0.9); -} - -.border-e-grey5\/95 { - border-inline-end-color: rgb(246 246 246 / 0.95); -} - -.border-e-grey5\/shadow { - border-inline-end-color: rgb(246 246 246 / .15); -} - -.border-e-grey6 { - --tw-border-opacity: 1; - border-inline-end-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-e-grey6\/0 { - border-inline-end-color: rgb(250 250 250 / 0); -} - -.border-e-grey6\/10 { - border-inline-end-color: rgb(250 250 250 / 0.1); -} - -.border-e-grey6\/100 { - border-inline-end-color: rgb(250 250 250 / 1); -} - -.border-e-grey6\/20 { - border-inline-end-color: rgb(250 250 250 / 0.2); -} - -.border-e-grey6\/25 { - border-inline-end-color: rgb(250 250 250 / 0.25); -} - -.border-e-grey6\/30 { - border-inline-end-color: rgb(250 250 250 / 0.3); -} - -.border-e-grey6\/40 { - border-inline-end-color: rgb(250 250 250 / 0.4); -} - -.border-e-grey6\/5 { - border-inline-end-color: rgb(250 250 250 / 0.05); -} - -.border-e-grey6\/50 { - border-inline-end-color: rgb(250 250 250 / 0.5); -} - -.border-e-grey6\/60 { - border-inline-end-color: rgb(250 250 250 / 0.6); -} - -.border-e-grey6\/70 { - border-inline-end-color: rgb(250 250 250 / 0.7); -} - -.border-e-grey6\/75 { - border-inline-end-color: rgb(250 250 250 / 0.75); -} - -.border-e-grey6\/80 { - border-inline-end-color: rgb(250 250 250 / 0.8); -} - -.border-e-grey6\/90 { - border-inline-end-color: rgb(250 250 250 / 0.9); -} - -.border-e-grey6\/95 { - border-inline-end-color: rgb(250 250 250 / 0.95); -} - -.border-e-grey6\/shadow { - border-inline-end-color: rgb(250 250 250 / .15); -} - -.border-e-primary { - --tw-border-opacity: 1; - border-inline-end-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-e-primary\/0 { - border-inline-end-color: rgb(66 114 239 / 0); -} - -.border-e-primary\/10 { - border-inline-end-color: rgb(66 114 239 / 0.1); -} - -.border-e-primary\/100 { - border-inline-end-color: rgb(66 114 239 / 1); -} - -.border-e-primary\/20 { - border-inline-end-color: rgb(66 114 239 / 0.2); -} - -.border-e-primary\/25 { - border-inline-end-color: rgb(66 114 239 / 0.25); -} - -.border-e-primary\/30 { - border-inline-end-color: rgb(66 114 239 / 0.3); -} - -.border-e-primary\/40 { - border-inline-end-color: rgb(66 114 239 / 0.4); -} - -.border-e-primary\/5 { - border-inline-end-color: rgb(66 114 239 / 0.05); -} - -.border-e-primary\/50 { - border-inline-end-color: rgb(66 114 239 / 0.5); -} - -.border-e-primary\/60 { - border-inline-end-color: rgb(66 114 239 / 0.6); -} - -.border-e-primary\/70 { - border-inline-end-color: rgb(66 114 239 / 0.7); -} - -.border-e-primary\/75 { - border-inline-end-color: rgb(66 114 239 / 0.75); -} - -.border-e-primary\/80 { - border-inline-end-color: rgb(66 114 239 / 0.8); -} - -.border-e-primary\/90 { - border-inline-end-color: rgb(66 114 239 / 0.9); -} - -.border-e-primary\/95 { - border-inline-end-color: rgb(66 114 239 / 0.95); -} - -.border-e-primary\/shadow { - border-inline-end-color: rgb(66 114 239 / .15); -} - -.border-e-primarylight { - --tw-border-opacity: 1; - border-inline-end-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-e-primarylight\/0 { - border-inline-end-color: rgb(227 234 253 / 0); -} - -.border-e-primarylight\/10 { - border-inline-end-color: rgb(227 234 253 / 0.1); -} - -.border-e-primarylight\/100 { - border-inline-end-color: rgb(227 234 253 / 1); -} - -.border-e-primarylight\/20 { - border-inline-end-color: rgb(227 234 253 / 0.2); -} - -.border-e-primarylight\/25 { - border-inline-end-color: rgb(227 234 253 / 0.25); -} - -.border-e-primarylight\/30 { - border-inline-end-color: rgb(227 234 253 / 0.3); -} - -.border-e-primarylight\/40 { - border-inline-end-color: rgb(227 234 253 / 0.4); -} - -.border-e-primarylight\/5 { - border-inline-end-color: rgb(227 234 253 / 0.05); -} - -.border-e-primarylight\/50 { - border-inline-end-color: rgb(227 234 253 / 0.5); -} - -.border-e-primarylight\/60 { - border-inline-end-color: rgb(227 234 253 / 0.6); -} - -.border-e-primarylight\/70 { - border-inline-end-color: rgb(227 234 253 / 0.7); -} - -.border-e-primarylight\/75 { - border-inline-end-color: rgb(227 234 253 / 0.75); -} - -.border-e-primarylight\/80 { - border-inline-end-color: rgb(227 234 253 / 0.8); -} - -.border-e-primarylight\/90 { - border-inline-end-color: rgb(227 234 253 / 0.9); -} - -.border-e-primarylight\/95 { - border-inline-end-color: rgb(227 234 253 / 0.95); -} - -.border-e-primarylight\/shadow { - border-inline-end-color: rgb(227 234 253 / .15); -} - -.border-e-secondary { - --tw-border-opacity: 1; - border-inline-end-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-e-secondary\/0 { - border-inline-end-color: rgb(255 94 94 / 0); -} - -.border-e-secondary\/10 { - border-inline-end-color: rgb(255 94 94 / 0.1); -} - -.border-e-secondary\/100 { - border-inline-end-color: rgb(255 94 94 / 1); -} - -.border-e-secondary\/20 { - border-inline-end-color: rgb(255 94 94 / 0.2); -} - -.border-e-secondary\/25 { - border-inline-end-color: rgb(255 94 94 / 0.25); -} - -.border-e-secondary\/30 { - border-inline-end-color: rgb(255 94 94 / 0.3); -} - -.border-e-secondary\/40 { - border-inline-end-color: rgb(255 94 94 / 0.4); -} - -.border-e-secondary\/5 { - border-inline-end-color: rgb(255 94 94 / 0.05); -} - -.border-e-secondary\/50 { - border-inline-end-color: rgb(255 94 94 / 0.5); -} - -.border-e-secondary\/60 { - border-inline-end-color: rgb(255 94 94 / 0.6); -} - -.border-e-secondary\/70 { - border-inline-end-color: rgb(255 94 94 / 0.7); -} - -.border-e-secondary\/75 { - border-inline-end-color: rgb(255 94 94 / 0.75); -} - -.border-e-secondary\/80 { - border-inline-end-color: rgb(255 94 94 / 0.8); -} - -.border-e-secondary\/90 { - border-inline-end-color: rgb(255 94 94 / 0.9); -} - -.border-e-secondary\/95 { - border-inline-end-color: rgb(255 94 94 / 0.95); -} - -.border-e-secondary\/shadow { - border-inline-end-color: rgb(255 94 94 / .15); -} - -.border-e-success { - --tw-border-opacity: 1; - border-inline-end-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-e-success\/0 { - border-inline-end-color: rgb(111 202 55 / 0); -} - -.border-e-success\/10 { - border-inline-end-color: rgb(111 202 55 / 0.1); -} - -.border-e-success\/100 { - border-inline-end-color: rgb(111 202 55 / 1); -} - -.border-e-success\/20 { - border-inline-end-color: rgb(111 202 55 / 0.2); -} - -.border-e-success\/25 { - border-inline-end-color: rgb(111 202 55 / 0.25); -} - -.border-e-success\/30 { - border-inline-end-color: rgb(111 202 55 / 0.3); -} - -.border-e-success\/40 { - border-inline-end-color: rgb(111 202 55 / 0.4); -} - -.border-e-success\/5 { - border-inline-end-color: rgb(111 202 55 / 0.05); -} - -.border-e-success\/50 { - border-inline-end-color: rgb(111 202 55 / 0.5); -} - -.border-e-success\/60 { - border-inline-end-color: rgb(111 202 55 / 0.6); -} - -.border-e-success\/70 { - border-inline-end-color: rgb(111 202 55 / 0.7); -} - -.border-e-success\/75 { - border-inline-end-color: rgb(111 202 55 / 0.75); -} - -.border-e-success\/80 { - border-inline-end-color: rgb(111 202 55 / 0.8); -} - -.border-e-success\/90 { - border-inline-end-color: rgb(111 202 55 / 0.9); -} - -.border-e-success\/95 { - border-inline-end-color: rgb(111 202 55 / 0.95); -} - -.border-e-success\/shadow { - border-inline-end-color: rgb(111 202 55 / .15); -} - -.border-e-successlight { - --tw-border-opacity: 1; - border-inline-end-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-e-successlight\/0 { - border-inline-end-color: rgb(235 255 223 / 0); -} - -.border-e-successlight\/10 { - border-inline-end-color: rgb(235 255 223 / 0.1); -} - -.border-e-successlight\/100 { - border-inline-end-color: rgb(235 255 223 / 1); -} - -.border-e-successlight\/20 { - border-inline-end-color: rgb(235 255 223 / 0.2); -} - -.border-e-successlight\/25 { - border-inline-end-color: rgb(235 255 223 / 0.25); -} - -.border-e-successlight\/30 { - border-inline-end-color: rgb(235 255 223 / 0.3); -} - -.border-e-successlight\/40 { - border-inline-end-color: rgb(235 255 223 / 0.4); -} - -.border-e-successlight\/5 { - border-inline-end-color: rgb(235 255 223 / 0.05); -} - -.border-e-successlight\/50 { - border-inline-end-color: rgb(235 255 223 / 0.5); -} - -.border-e-successlight\/60 { - border-inline-end-color: rgb(235 255 223 / 0.6); -} - -.border-e-successlight\/70 { - border-inline-end-color: rgb(235 255 223 / 0.7); -} - -.border-e-successlight\/75 { - border-inline-end-color: rgb(235 255 223 / 0.75); -} - -.border-e-successlight\/80 { - border-inline-end-color: rgb(235 255 223 / 0.8); -} - -.border-e-successlight\/90 { - border-inline-end-color: rgb(235 255 223 / 0.9); -} - -.border-e-successlight\/95 { - border-inline-end-color: rgb(235 255 223 / 0.95); -} - -.border-e-successlight\/shadow { - border-inline-end-color: rgb(235 255 223 / .15); -} - -.border-e-surfconext { - --tw-border-opacity: 1; - border-inline-end-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-e-surfconext\/0 { - border-inline-end-color: rgb(77 178 207 / 0); -} - -.border-e-surfconext\/10 { - border-inline-end-color: rgb(77 178 207 / 0.1); -} - -.border-e-surfconext\/100 { - border-inline-end-color: rgb(77 178 207 / 1); -} - -.border-e-surfconext\/20 { - border-inline-end-color: rgb(77 178 207 / 0.2); -} - -.border-e-surfconext\/25 { - border-inline-end-color: rgb(77 178 207 / 0.25); -} - -.border-e-surfconext\/30 { - border-inline-end-color: rgb(77 178 207 / 0.3); -} - -.border-e-surfconext\/40 { - border-inline-end-color: rgb(77 178 207 / 0.4); -} - -.border-e-surfconext\/5 { - border-inline-end-color: rgb(77 178 207 / 0.05); -} - -.border-e-surfconext\/50 { - border-inline-end-color: rgb(77 178 207 / 0.5); -} - -.border-e-surfconext\/60 { - border-inline-end-color: rgb(77 178 207 / 0.6); -} - -.border-e-surfconext\/70 { - border-inline-end-color: rgb(77 178 207 / 0.7); -} - -.border-e-surfconext\/75 { - border-inline-end-color: rgb(77 178 207 / 0.75); -} - -.border-e-surfconext\/80 { - border-inline-end-color: rgb(77 178 207 / 0.8); -} - -.border-e-surfconext\/90 { - border-inline-end-color: rgb(77 178 207 / 0.9); -} - -.border-e-surfconext\/95 { - border-inline-end-color: rgb(77 178 207 / 0.95); -} - -.border-e-surfconext\/shadow { - border-inline-end-color: rgb(77 178 207 / .15); -} - -.border-e-tertiary { - --tw-border-opacity: 1; - border-inline-end-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-e-tertiary\/0 { - border-inline-end-color: rgb(255 207 96 / 0); -} - -.border-e-tertiary\/10 { - border-inline-end-color: rgb(255 207 96 / 0.1); -} - -.border-e-tertiary\/100 { - border-inline-end-color: rgb(255 207 96 / 1); -} - -.border-e-tertiary\/20 { - border-inline-end-color: rgb(255 207 96 / 0.2); -} - -.border-e-tertiary\/25 { - border-inline-end-color: rgb(255 207 96 / 0.25); -} - -.border-e-tertiary\/30 { - border-inline-end-color: rgb(255 207 96 / 0.3); -} - -.border-e-tertiary\/40 { - border-inline-end-color: rgb(255 207 96 / 0.4); -} - -.border-e-tertiary\/5 { - border-inline-end-color: rgb(255 207 96 / 0.05); -} - -.border-e-tertiary\/50 { - border-inline-end-color: rgb(255 207 96 / 0.5); -} - -.border-e-tertiary\/60 { - border-inline-end-color: rgb(255 207 96 / 0.6); -} - -.border-e-tertiary\/70 { - border-inline-end-color: rgb(255 207 96 / 0.7); -} - -.border-e-tertiary\/75 { - border-inline-end-color: rgb(255 207 96 / 0.75); -} - -.border-e-tertiary\/80 { - border-inline-end-color: rgb(255 207 96 / 0.8); -} - -.border-e-tertiary\/90 { - border-inline-end-color: rgb(255 207 96 / 0.9); -} - -.border-e-tertiary\/95 { - border-inline-end-color: rgb(255 207 96 / 0.95); -} - -.border-e-tertiary\/shadow { - border-inline-end-color: rgb(255 207 96 / .15); -} - -.border-e-warning { - --tw-border-opacity: 1; - border-inline-end-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-e-warning\/0 { - border-inline-end-color: rgb(242 141 21 / 0); -} - -.border-e-warning\/10 { - border-inline-end-color: rgb(242 141 21 / 0.1); -} - -.border-e-warning\/100 { - border-inline-end-color: rgb(242 141 21 / 1); -} - -.border-e-warning\/20 { - border-inline-end-color: rgb(242 141 21 / 0.2); -} - -.border-e-warning\/25 { - border-inline-end-color: rgb(242 141 21 / 0.25); -} - -.border-e-warning\/30 { - border-inline-end-color: rgb(242 141 21 / 0.3); -} - -.border-e-warning\/40 { - border-inline-end-color: rgb(242 141 21 / 0.4); -} - -.border-e-warning\/5 { - border-inline-end-color: rgb(242 141 21 / 0.05); -} - -.border-e-warning\/50 { - border-inline-end-color: rgb(242 141 21 / 0.5); -} - -.border-e-warning\/60 { - border-inline-end-color: rgb(242 141 21 / 0.6); -} - -.border-e-warning\/70 { - border-inline-end-color: rgb(242 141 21 / 0.7); -} - -.border-e-warning\/75 { - border-inline-end-color: rgb(242 141 21 / 0.75); -} - -.border-e-warning\/80 { - border-inline-end-color: rgb(242 141 21 / 0.8); -} - -.border-e-warning\/90 { - border-inline-end-color: rgb(242 141 21 / 0.9); -} - -.border-e-warning\/95 { - border-inline-end-color: rgb(242 141 21 / 0.95); -} - -.border-e-warning\/shadow { - border-inline-end-color: rgb(242 141 21 / .15); -} - -.border-e-warninglight { - --tw-border-opacity: 1; - border-inline-end-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-e-warninglight\/0 { - border-inline-end-color: rgb(255 239 220 / 0); -} - -.border-e-warninglight\/10 { - border-inline-end-color: rgb(255 239 220 / 0.1); -} - -.border-e-warninglight\/100 { - border-inline-end-color: rgb(255 239 220 / 1); -} - -.border-e-warninglight\/20 { - border-inline-end-color: rgb(255 239 220 / 0.2); -} - -.border-e-warninglight\/25 { - border-inline-end-color: rgb(255 239 220 / 0.25); -} - -.border-e-warninglight\/30 { - border-inline-end-color: rgb(255 239 220 / 0.3); -} - -.border-e-warninglight\/40 { - border-inline-end-color: rgb(255 239 220 / 0.4); -} - -.border-e-warninglight\/5 { - border-inline-end-color: rgb(255 239 220 / 0.05); -} - -.border-e-warninglight\/50 { - border-inline-end-color: rgb(255 239 220 / 0.5); -} - -.border-e-warninglight\/60 { - border-inline-end-color: rgb(255 239 220 / 0.6); -} - -.border-e-warninglight\/70 { - border-inline-end-color: rgb(255 239 220 / 0.7); -} - -.border-e-warninglight\/75 { - border-inline-end-color: rgb(255 239 220 / 0.75); -} - -.border-e-warninglight\/80 { - border-inline-end-color: rgb(255 239 220 / 0.8); -} - -.border-e-warninglight\/90 { - border-inline-end-color: rgb(255 239 220 / 0.9); -} - -.border-e-warninglight\/95 { - border-inline-end-color: rgb(255 239 220 / 0.95); -} - -.border-e-warninglight\/shadow { - border-inline-end-color: rgb(255 239 220 / .15); -} - -.border-e-white { - --tw-border-opacity: 1; - border-inline-end-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-e-white\/0 { - border-inline-end-color: rgb(255 255 255 / 0); -} - -.border-e-white\/10 { - border-inline-end-color: rgb(255 255 255 / 0.1); -} - -.border-e-white\/100 { - border-inline-end-color: rgb(255 255 255 / 1); -} - -.border-e-white\/20 { - border-inline-end-color: rgb(255 255 255 / 0.2); -} - -.border-e-white\/25 { - border-inline-end-color: rgb(255 255 255 / 0.25); -} - -.border-e-white\/30 { - border-inline-end-color: rgb(255 255 255 / 0.3); -} - -.border-e-white\/40 { - border-inline-end-color: rgb(255 255 255 / 0.4); -} - -.border-e-white\/5 { - border-inline-end-color: rgb(255 255 255 / 0.05); -} - -.border-e-white\/50 { - border-inline-end-color: rgb(255 255 255 / 0.5); -} - -.border-e-white\/60 { - border-inline-end-color: rgb(255 255 255 / 0.6); -} - -.border-e-white\/70 { - border-inline-end-color: rgb(255 255 255 / 0.7); -} - -.border-e-white\/75 { - border-inline-end-color: rgb(255 255 255 / 0.75); -} - -.border-e-white\/80 { - border-inline-end-color: rgb(255 255 255 / 0.8); -} - -.border-e-white\/90 { - border-inline-end-color: rgb(255 255 255 / 0.9); -} - -.border-e-white\/95 { - border-inline-end-color: rgb(255 255 255 / 0.95); -} - -.border-e-white\/shadow { - border-inline-end-color: rgb(255 255 255 / .15); -} - -.border-l-apple { - --tw-border-opacity: 1; - border-left-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-l-apple\/0 { - border-left-color: rgb(0 0 0 / 0); -} - -.border-l-apple\/10 { - border-left-color: rgb(0 0 0 / 0.1); -} - -.border-l-apple\/100 { - border-left-color: rgb(0 0 0 / 1); -} - -.border-l-apple\/20 { - border-left-color: rgb(0 0 0 / 0.2); -} - -.border-l-apple\/25 { - border-left-color: rgb(0 0 0 / 0.25); -} - -.border-l-apple\/30 { - border-left-color: rgb(0 0 0 / 0.3); -} - -.border-l-apple\/40 { - border-left-color: rgb(0 0 0 / 0.4); -} - -.border-l-apple\/5 { - border-left-color: rgb(0 0 0 / 0.05); -} - -.border-l-apple\/50 { - border-left-color: rgb(0 0 0 / 0.5); -} - -.border-l-apple\/60 { - border-left-color: rgb(0 0 0 / 0.6); -} - -.border-l-apple\/70 { - border-left-color: rgb(0 0 0 / 0.7); -} - -.border-l-apple\/75 { - border-left-color: rgb(0 0 0 / 0.75); -} - -.border-l-apple\/80 { - border-left-color: rgb(0 0 0 / 0.8); -} - -.border-l-apple\/90 { - border-left-color: rgb(0 0 0 / 0.9); -} - -.border-l-apple\/95 { - border-left-color: rgb(0 0 0 / 0.95); -} - -.border-l-apple\/shadow { - border-left-color: rgb(0 0 0 / .15); -} - -.border-l-black { - --tw-border-opacity: 1; - border-left-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-l-black\/0 { - border-left-color: rgb(0 0 0 / 0); -} - -.border-l-black\/10 { - border-left-color: rgb(0 0 0 / 0.1); -} - -.border-l-black\/100 { - border-left-color: rgb(0 0 0 / 1); -} - -.border-l-black\/20 { - border-left-color: rgb(0 0 0 / 0.2); -} - -.border-l-black\/25 { - border-left-color: rgb(0 0 0 / 0.25); -} - -.border-l-black\/30 { - border-left-color: rgb(0 0 0 / 0.3); -} - -.border-l-black\/40 { - border-left-color: rgb(0 0 0 / 0.4); -} - -.border-l-black\/5 { - border-left-color: rgb(0 0 0 / 0.05); -} - -.border-l-black\/50 { - border-left-color: rgb(0 0 0 / 0.5); -} - -.border-l-black\/60 { - border-left-color: rgb(0 0 0 / 0.6); -} - -.border-l-black\/70 { - border-left-color: rgb(0 0 0 / 0.7); -} - -.border-l-black\/75 { - border-left-color: rgb(0 0 0 / 0.75); -} - -.border-l-black\/80 { - border-left-color: rgb(0 0 0 / 0.8); -} - -.border-l-black\/90 { - border-left-color: rgb(0 0 0 / 0.9); -} - -.border-l-black\/95 { - border-left-color: rgb(0 0 0 / 0.95); -} - -.border-l-black\/shadow { - border-left-color: rgb(0 0 0 / .15); -} - -.border-l-delete { - --tw-border-opacity: 1; - border-left-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-l-delete\/0 { - border-left-color: rgb(219 30 30 / 0); -} - -.border-l-delete\/10 { - border-left-color: rgb(219 30 30 / 0.1); -} - -.border-l-delete\/100 { - border-left-color: rgb(219 30 30 / 1); -} - -.border-l-delete\/20 { - border-left-color: rgb(219 30 30 / 0.2); -} - -.border-l-delete\/25 { - border-left-color: rgb(219 30 30 / 0.25); -} - -.border-l-delete\/30 { - border-left-color: rgb(219 30 30 / 0.3); -} - -.border-l-delete\/40 { - border-left-color: rgb(219 30 30 / 0.4); -} - -.border-l-delete\/5 { - border-left-color: rgb(219 30 30 / 0.05); -} - -.border-l-delete\/50 { - border-left-color: rgb(219 30 30 / 0.5); -} - -.border-l-delete\/60 { - border-left-color: rgb(219 30 30 / 0.6); -} - -.border-l-delete\/70 { - border-left-color: rgb(219 30 30 / 0.7); -} - -.border-l-delete\/75 { - border-left-color: rgb(219 30 30 / 0.75); -} - -.border-l-delete\/80 { - border-left-color: rgb(219 30 30 / 0.8); -} - -.border-l-delete\/90 { - border-left-color: rgb(219 30 30 / 0.9); -} - -.border-l-delete\/95 { - border-left-color: rgb(219 30 30 / 0.95); -} - -.border-l-delete\/shadow { - border-left-color: rgb(219 30 30 / .15); -} - -.border-l-deletelight { - --tw-border-opacity: 1; - border-left-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-l-deletelight\/0 { - border-left-color: rgb(255 236 236 / 0); -} - -.border-l-deletelight\/10 { - border-left-color: rgb(255 236 236 / 0.1); -} - -.border-l-deletelight\/100 { - border-left-color: rgb(255 236 236 / 1); -} - -.border-l-deletelight\/20 { - border-left-color: rgb(255 236 236 / 0.2); -} - -.border-l-deletelight\/25 { - border-left-color: rgb(255 236 236 / 0.25); -} - -.border-l-deletelight\/30 { - border-left-color: rgb(255 236 236 / 0.3); -} - -.border-l-deletelight\/40 { - border-left-color: rgb(255 236 236 / 0.4); -} - -.border-l-deletelight\/5 { - border-left-color: rgb(255 236 236 / 0.05); -} - -.border-l-deletelight\/50 { - border-left-color: rgb(255 236 236 / 0.5); -} - -.border-l-deletelight\/60 { - border-left-color: rgb(255 236 236 / 0.6); -} - -.border-l-deletelight\/70 { - border-left-color: rgb(255 236 236 / 0.7); -} - -.border-l-deletelight\/75 { - border-left-color: rgb(255 236 236 / 0.75); -} - -.border-l-deletelight\/80 { - border-left-color: rgb(255 236 236 / 0.8); -} - -.border-l-deletelight\/90 { - border-left-color: rgb(255 236 236 / 0.9); -} - -.border-l-deletelight\/95 { - border-left-color: rgb(255 236 236 / 0.95); -} - -.border-l-deletelight\/shadow { - border-left-color: rgb(255 236 236 / .15); -} - -.border-l-error { - --tw-border-opacity: 1; - border-left-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-l-error\/0 { - border-left-color: rgb(219 30 30 / 0); -} - -.border-l-error\/10 { - border-left-color: rgb(219 30 30 / 0.1); -} - -.border-l-error\/100 { - border-left-color: rgb(219 30 30 / 1); -} - -.border-l-error\/20 { - border-left-color: rgb(219 30 30 / 0.2); -} - -.border-l-error\/25 { - border-left-color: rgb(219 30 30 / 0.25); -} - -.border-l-error\/30 { - border-left-color: rgb(219 30 30 / 0.3); -} - -.border-l-error\/40 { - border-left-color: rgb(219 30 30 / 0.4); -} - -.border-l-error\/5 { - border-left-color: rgb(219 30 30 / 0.05); -} - -.border-l-error\/50 { - border-left-color: rgb(219 30 30 / 0.5); -} - -.border-l-error\/60 { - border-left-color: rgb(219 30 30 / 0.6); -} - -.border-l-error\/70 { - border-left-color: rgb(219 30 30 / 0.7); -} - -.border-l-error\/75 { - border-left-color: rgb(219 30 30 / 0.75); -} - -.border-l-error\/80 { - border-left-color: rgb(219 30 30 / 0.8); -} - -.border-l-error\/90 { - border-left-color: rgb(219 30 30 / 0.9); -} - -.border-l-error\/95 { - border-left-color: rgb(219 30 30 / 0.95); -} - -.border-l-error\/shadow { - border-left-color: rgb(219 30 30 / .15); -} - -.border-l-errorlight { - --tw-border-opacity: 1; - border-left-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-l-errorlight\/0 { - border-left-color: rgb(255 236 236 / 0); -} - -.border-l-errorlight\/10 { - border-left-color: rgb(255 236 236 / 0.1); -} - -.border-l-errorlight\/100 { - border-left-color: rgb(255 236 236 / 1); -} - -.border-l-errorlight\/20 { - border-left-color: rgb(255 236 236 / 0.2); -} - -.border-l-errorlight\/25 { - border-left-color: rgb(255 236 236 / 0.25); -} - -.border-l-errorlight\/30 { - border-left-color: rgb(255 236 236 / 0.3); -} - -.border-l-errorlight\/40 { - border-left-color: rgb(255 236 236 / 0.4); -} - -.border-l-errorlight\/5 { - border-left-color: rgb(255 236 236 / 0.05); -} - -.border-l-errorlight\/50 { - border-left-color: rgb(255 236 236 / 0.5); -} - -.border-l-errorlight\/60 { - border-left-color: rgb(255 236 236 / 0.6); -} - -.border-l-errorlight\/70 { - border-left-color: rgb(255 236 236 / 0.7); -} - -.border-l-errorlight\/75 { - border-left-color: rgb(255 236 236 / 0.75); -} - -.border-l-errorlight\/80 { - border-left-color: rgb(255 236 236 / 0.8); -} - -.border-l-errorlight\/90 { - border-left-color: rgb(255 236 236 / 0.9); -} - -.border-l-errorlight\/95 { - border-left-color: rgb(255 236 236 / 0.95); -} - -.border-l-errorlight\/shadow { - border-left-color: rgb(255 236 236 / .15); -} - -.border-l-google { - --tw-border-opacity: 1; - border-left-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-l-google\/0 { - border-left-color: rgb(234 67 53 / 0); -} - -.border-l-google\/10 { - border-left-color: rgb(234 67 53 / 0.1); -} - -.border-l-google\/100 { - border-left-color: rgb(234 67 53 / 1); -} - -.border-l-google\/20 { - border-left-color: rgb(234 67 53 / 0.2); -} - -.border-l-google\/25 { - border-left-color: rgb(234 67 53 / 0.25); -} - -.border-l-google\/30 { - border-left-color: rgb(234 67 53 / 0.3); -} - -.border-l-google\/40 { - border-left-color: rgb(234 67 53 / 0.4); -} - -.border-l-google\/5 { - border-left-color: rgb(234 67 53 / 0.05); -} - -.border-l-google\/50 { - border-left-color: rgb(234 67 53 / 0.5); -} - -.border-l-google\/60 { - border-left-color: rgb(234 67 53 / 0.6); -} - -.border-l-google\/70 { - border-left-color: rgb(234 67 53 / 0.7); -} - -.border-l-google\/75 { - border-left-color: rgb(234 67 53 / 0.75); -} - -.border-l-google\/80 { - border-left-color: rgb(234 67 53 / 0.8); -} - -.border-l-google\/90 { - border-left-color: rgb(234 67 53 / 0.9); -} - -.border-l-google\/95 { - border-left-color: rgb(234 67 53 / 0.95); -} - -.border-l-google\/shadow { - border-left-color: rgb(234 67 53 / .15); -} - -.border-l-grey1 { - --tw-border-opacity: 1; - border-left-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-l-grey1\/0 { - border-left-color: rgb(34 34 34 / 0); -} - -.border-l-grey1\/10 { - border-left-color: rgb(34 34 34 / 0.1); -} - -.border-l-grey1\/100 { - border-left-color: rgb(34 34 34 / 1); -} - -.border-l-grey1\/20 { - border-left-color: rgb(34 34 34 / 0.2); -} - -.border-l-grey1\/25 { - border-left-color: rgb(34 34 34 / 0.25); -} - -.border-l-grey1\/30 { - border-left-color: rgb(34 34 34 / 0.3); -} - -.border-l-grey1\/40 { - border-left-color: rgb(34 34 34 / 0.4); -} - -.border-l-grey1\/5 { - border-left-color: rgb(34 34 34 / 0.05); -} - -.border-l-grey1\/50 { - border-left-color: rgb(34 34 34 / 0.5); -} - -.border-l-grey1\/60 { - border-left-color: rgb(34 34 34 / 0.6); -} - -.border-l-grey1\/70 { - border-left-color: rgb(34 34 34 / 0.7); -} - -.border-l-grey1\/75 { - border-left-color: rgb(34 34 34 / 0.75); -} - -.border-l-grey1\/80 { - border-left-color: rgb(34 34 34 / 0.8); -} - -.border-l-grey1\/90 { - border-left-color: rgb(34 34 34 / 0.9); -} - -.border-l-grey1\/95 { - border-left-color: rgb(34 34 34 / 0.95); -} - -.border-l-grey1\/shadow { - border-left-color: rgb(34 34 34 / .15); -} - -.border-l-grey2 { - --tw-border-opacity: 1; - border-left-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-l-grey2\/0 { - border-left-color: rgb(153 153 153 / 0); -} - -.border-l-grey2\/10 { - border-left-color: rgb(153 153 153 / 0.1); -} - -.border-l-grey2\/100 { - border-left-color: rgb(153 153 153 / 1); -} - -.border-l-grey2\/20 { - border-left-color: rgb(153 153 153 / 0.2); -} - -.border-l-grey2\/25 { - border-left-color: rgb(153 153 153 / 0.25); -} - -.border-l-grey2\/30 { - border-left-color: rgb(153 153 153 / 0.3); -} - -.border-l-grey2\/40 { - border-left-color: rgb(153 153 153 / 0.4); -} - -.border-l-grey2\/5 { - border-left-color: rgb(153 153 153 / 0.05); -} - -.border-l-grey2\/50 { - border-left-color: rgb(153 153 153 / 0.5); -} - -.border-l-grey2\/60 { - border-left-color: rgb(153 153 153 / 0.6); -} - -.border-l-grey2\/70 { - border-left-color: rgb(153 153 153 / 0.7); -} - -.border-l-grey2\/75 { - border-left-color: rgb(153 153 153 / 0.75); -} - -.border-l-grey2\/80 { - border-left-color: rgb(153 153 153 / 0.8); -} - -.border-l-grey2\/90 { - border-left-color: rgb(153 153 153 / 0.9); -} - -.border-l-grey2\/95 { - border-left-color: rgb(153 153 153 / 0.95); -} - -.border-l-grey2\/shadow { - border-left-color: rgb(153 153 153 / .15); -} - -.border-l-grey3 { - --tw-border-opacity: 1; - border-left-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-l-grey3\/0 { - border-left-color: rgb(204 204 204 / 0); -} - -.border-l-grey3\/10 { - border-left-color: rgb(204 204 204 / 0.1); -} - -.border-l-grey3\/100 { - border-left-color: rgb(204 204 204 / 1); -} - -.border-l-grey3\/20 { - border-left-color: rgb(204 204 204 / 0.2); -} - -.border-l-grey3\/25 { - border-left-color: rgb(204 204 204 / 0.25); -} - -.border-l-grey3\/30 { - border-left-color: rgb(204 204 204 / 0.3); -} - -.border-l-grey3\/40 { - border-left-color: rgb(204 204 204 / 0.4); -} - -.border-l-grey3\/5 { - border-left-color: rgb(204 204 204 / 0.05); -} - -.border-l-grey3\/50 { - border-left-color: rgb(204 204 204 / 0.5); -} - -.border-l-grey3\/60 { - border-left-color: rgb(204 204 204 / 0.6); -} - -.border-l-grey3\/70 { - border-left-color: rgb(204 204 204 / 0.7); -} - -.border-l-grey3\/75 { - border-left-color: rgb(204 204 204 / 0.75); -} - -.border-l-grey3\/80 { - border-left-color: rgb(204 204 204 / 0.8); -} - -.border-l-grey3\/90 { - border-left-color: rgb(204 204 204 / 0.9); -} - -.border-l-grey3\/95 { - border-left-color: rgb(204 204 204 / 0.95); -} - -.border-l-grey3\/shadow { - border-left-color: rgb(204 204 204 / .15); -} - -.border-l-grey4 { - --tw-border-opacity: 1; - border-left-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-l-grey4\/0 { - border-left-color: rgb(238 238 238 / 0); -} - -.border-l-grey4\/10 { - border-left-color: rgb(238 238 238 / 0.1); -} - -.border-l-grey4\/100 { - border-left-color: rgb(238 238 238 / 1); -} - -.border-l-grey4\/20 { - border-left-color: rgb(238 238 238 / 0.2); -} - -.border-l-grey4\/25 { - border-left-color: rgb(238 238 238 / 0.25); -} - -.border-l-grey4\/30 { - border-left-color: rgb(238 238 238 / 0.3); -} - -.border-l-grey4\/40 { - border-left-color: rgb(238 238 238 / 0.4); -} - -.border-l-grey4\/5 { - border-left-color: rgb(238 238 238 / 0.05); -} - -.border-l-grey4\/50 { - border-left-color: rgb(238 238 238 / 0.5); -} - -.border-l-grey4\/60 { - border-left-color: rgb(238 238 238 / 0.6); -} - -.border-l-grey4\/70 { - border-left-color: rgb(238 238 238 / 0.7); -} - -.border-l-grey4\/75 { - border-left-color: rgb(238 238 238 / 0.75); -} - -.border-l-grey4\/80 { - border-left-color: rgb(238 238 238 / 0.8); -} - -.border-l-grey4\/90 { - border-left-color: rgb(238 238 238 / 0.9); -} - -.border-l-grey4\/95 { - border-left-color: rgb(238 238 238 / 0.95); -} - -.border-l-grey4\/shadow { - border-left-color: rgb(238 238 238 / .15); -} - -.border-l-grey5 { - --tw-border-opacity: 1; - border-left-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-l-grey5\/0 { - border-left-color: rgb(246 246 246 / 0); -} - -.border-l-grey5\/10 { - border-left-color: rgb(246 246 246 / 0.1); -} - -.border-l-grey5\/100 { - border-left-color: rgb(246 246 246 / 1); -} - -.border-l-grey5\/20 { - border-left-color: rgb(246 246 246 / 0.2); -} - -.border-l-grey5\/25 { - border-left-color: rgb(246 246 246 / 0.25); -} - -.border-l-grey5\/30 { - border-left-color: rgb(246 246 246 / 0.3); -} - -.border-l-grey5\/40 { - border-left-color: rgb(246 246 246 / 0.4); -} - -.border-l-grey5\/5 { - border-left-color: rgb(246 246 246 / 0.05); -} - -.border-l-grey5\/50 { - border-left-color: rgb(246 246 246 / 0.5); -} - -.border-l-grey5\/60 { - border-left-color: rgb(246 246 246 / 0.6); -} - -.border-l-grey5\/70 { - border-left-color: rgb(246 246 246 / 0.7); -} - -.border-l-grey5\/75 { - border-left-color: rgb(246 246 246 / 0.75); -} - -.border-l-grey5\/80 { - border-left-color: rgb(246 246 246 / 0.8); -} - -.border-l-grey5\/90 { - border-left-color: rgb(246 246 246 / 0.9); -} - -.border-l-grey5\/95 { - border-left-color: rgb(246 246 246 / 0.95); -} - -.border-l-grey5\/shadow { - border-left-color: rgb(246 246 246 / .15); -} - -.border-l-grey6 { - --tw-border-opacity: 1; - border-left-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-l-grey6\/0 { - border-left-color: rgb(250 250 250 / 0); -} - -.border-l-grey6\/10 { - border-left-color: rgb(250 250 250 / 0.1); -} - -.border-l-grey6\/100 { - border-left-color: rgb(250 250 250 / 1); -} - -.border-l-grey6\/20 { - border-left-color: rgb(250 250 250 / 0.2); -} - -.border-l-grey6\/25 { - border-left-color: rgb(250 250 250 / 0.25); -} - -.border-l-grey6\/30 { - border-left-color: rgb(250 250 250 / 0.3); -} - -.border-l-grey6\/40 { - border-left-color: rgb(250 250 250 / 0.4); -} - -.border-l-grey6\/5 { - border-left-color: rgb(250 250 250 / 0.05); -} - -.border-l-grey6\/50 { - border-left-color: rgb(250 250 250 / 0.5); -} - -.border-l-grey6\/60 { - border-left-color: rgb(250 250 250 / 0.6); -} - -.border-l-grey6\/70 { - border-left-color: rgb(250 250 250 / 0.7); -} - -.border-l-grey6\/75 { - border-left-color: rgb(250 250 250 / 0.75); -} - -.border-l-grey6\/80 { - border-left-color: rgb(250 250 250 / 0.8); -} - -.border-l-grey6\/90 { - border-left-color: rgb(250 250 250 / 0.9); -} - -.border-l-grey6\/95 { - border-left-color: rgb(250 250 250 / 0.95); -} - -.border-l-grey6\/shadow { - border-left-color: rgb(250 250 250 / .15); -} - -.border-l-primary { - --tw-border-opacity: 1; - border-left-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-l-primary\/0 { - border-left-color: rgb(66 114 239 / 0); -} - -.border-l-primary\/10 { - border-left-color: rgb(66 114 239 / 0.1); -} - -.border-l-primary\/100 { - border-left-color: rgb(66 114 239 / 1); -} - -.border-l-primary\/20 { - border-left-color: rgb(66 114 239 / 0.2); -} - -.border-l-primary\/25 { - border-left-color: rgb(66 114 239 / 0.25); -} - -.border-l-primary\/30 { - border-left-color: rgb(66 114 239 / 0.3); -} - -.border-l-primary\/40 { - border-left-color: rgb(66 114 239 / 0.4); -} - -.border-l-primary\/5 { - border-left-color: rgb(66 114 239 / 0.05); -} - -.border-l-primary\/50 { - border-left-color: rgb(66 114 239 / 0.5); -} - -.border-l-primary\/60 { - border-left-color: rgb(66 114 239 / 0.6); -} - -.border-l-primary\/70 { - border-left-color: rgb(66 114 239 / 0.7); -} - -.border-l-primary\/75 { - border-left-color: rgb(66 114 239 / 0.75); -} - -.border-l-primary\/80 { - border-left-color: rgb(66 114 239 / 0.8); -} - -.border-l-primary\/90 { - border-left-color: rgb(66 114 239 / 0.9); -} - -.border-l-primary\/95 { - border-left-color: rgb(66 114 239 / 0.95); -} - -.border-l-primary\/shadow { - border-left-color: rgb(66 114 239 / .15); -} - -.border-l-primarylight { - --tw-border-opacity: 1; - border-left-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-l-primarylight\/0 { - border-left-color: rgb(227 234 253 / 0); -} - -.border-l-primarylight\/10 { - border-left-color: rgb(227 234 253 / 0.1); -} - -.border-l-primarylight\/100 { - border-left-color: rgb(227 234 253 / 1); -} - -.border-l-primarylight\/20 { - border-left-color: rgb(227 234 253 / 0.2); -} - -.border-l-primarylight\/25 { - border-left-color: rgb(227 234 253 / 0.25); -} - -.border-l-primarylight\/30 { - border-left-color: rgb(227 234 253 / 0.3); -} - -.border-l-primarylight\/40 { - border-left-color: rgb(227 234 253 / 0.4); -} - -.border-l-primarylight\/5 { - border-left-color: rgb(227 234 253 / 0.05); -} - -.border-l-primarylight\/50 { - border-left-color: rgb(227 234 253 / 0.5); -} - -.border-l-primarylight\/60 { - border-left-color: rgb(227 234 253 / 0.6); -} - -.border-l-primarylight\/70 { - border-left-color: rgb(227 234 253 / 0.7); -} - -.border-l-primarylight\/75 { - border-left-color: rgb(227 234 253 / 0.75); -} - -.border-l-primarylight\/80 { - border-left-color: rgb(227 234 253 / 0.8); -} - -.border-l-primarylight\/90 { - border-left-color: rgb(227 234 253 / 0.9); -} - -.border-l-primarylight\/95 { - border-left-color: rgb(227 234 253 / 0.95); -} - -.border-l-primarylight\/shadow { - border-left-color: rgb(227 234 253 / .15); -} - -.border-l-secondary { - --tw-border-opacity: 1; - border-left-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-l-secondary\/0 { - border-left-color: rgb(255 94 94 / 0); -} - -.border-l-secondary\/10 { - border-left-color: rgb(255 94 94 / 0.1); -} - -.border-l-secondary\/100 { - border-left-color: rgb(255 94 94 / 1); -} - -.border-l-secondary\/20 { - border-left-color: rgb(255 94 94 / 0.2); -} - -.border-l-secondary\/25 { - border-left-color: rgb(255 94 94 / 0.25); -} - -.border-l-secondary\/30 { - border-left-color: rgb(255 94 94 / 0.3); -} - -.border-l-secondary\/40 { - border-left-color: rgb(255 94 94 / 0.4); -} - -.border-l-secondary\/5 { - border-left-color: rgb(255 94 94 / 0.05); -} - -.border-l-secondary\/50 { - border-left-color: rgb(255 94 94 / 0.5); -} - -.border-l-secondary\/60 { - border-left-color: rgb(255 94 94 / 0.6); -} - -.border-l-secondary\/70 { - border-left-color: rgb(255 94 94 / 0.7); -} - -.border-l-secondary\/75 { - border-left-color: rgb(255 94 94 / 0.75); -} - -.border-l-secondary\/80 { - border-left-color: rgb(255 94 94 / 0.8); -} - -.border-l-secondary\/90 { - border-left-color: rgb(255 94 94 / 0.9); -} - -.border-l-secondary\/95 { - border-left-color: rgb(255 94 94 / 0.95); -} - -.border-l-secondary\/shadow { - border-left-color: rgb(255 94 94 / .15); -} - -.border-l-success { - --tw-border-opacity: 1; - border-left-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-l-success\/0 { - border-left-color: rgb(111 202 55 / 0); -} - -.border-l-success\/10 { - border-left-color: rgb(111 202 55 / 0.1); -} - -.border-l-success\/100 { - border-left-color: rgb(111 202 55 / 1); -} - -.border-l-success\/20 { - border-left-color: rgb(111 202 55 / 0.2); -} - -.border-l-success\/25 { - border-left-color: rgb(111 202 55 / 0.25); -} - -.border-l-success\/30 { - border-left-color: rgb(111 202 55 / 0.3); -} - -.border-l-success\/40 { - border-left-color: rgb(111 202 55 / 0.4); -} - -.border-l-success\/5 { - border-left-color: rgb(111 202 55 / 0.05); -} - -.border-l-success\/50 { - border-left-color: rgb(111 202 55 / 0.5); -} - -.border-l-success\/60 { - border-left-color: rgb(111 202 55 / 0.6); -} - -.border-l-success\/70 { - border-left-color: rgb(111 202 55 / 0.7); -} - -.border-l-success\/75 { - border-left-color: rgb(111 202 55 / 0.75); -} - -.border-l-success\/80 { - border-left-color: rgb(111 202 55 / 0.8); -} - -.border-l-success\/90 { - border-left-color: rgb(111 202 55 / 0.9); -} - -.border-l-success\/95 { - border-left-color: rgb(111 202 55 / 0.95); -} - -.border-l-success\/shadow { - border-left-color: rgb(111 202 55 / .15); -} - -.border-l-successlight { - --tw-border-opacity: 1; - border-left-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-l-successlight\/0 { - border-left-color: rgb(235 255 223 / 0); -} - -.border-l-successlight\/10 { - border-left-color: rgb(235 255 223 / 0.1); -} - -.border-l-successlight\/100 { - border-left-color: rgb(235 255 223 / 1); -} - -.border-l-successlight\/20 { - border-left-color: rgb(235 255 223 / 0.2); -} - -.border-l-successlight\/25 { - border-left-color: rgb(235 255 223 / 0.25); -} - -.border-l-successlight\/30 { - border-left-color: rgb(235 255 223 / 0.3); -} - -.border-l-successlight\/40 { - border-left-color: rgb(235 255 223 / 0.4); -} - -.border-l-successlight\/5 { - border-left-color: rgb(235 255 223 / 0.05); -} - -.border-l-successlight\/50 { - border-left-color: rgb(235 255 223 / 0.5); -} - -.border-l-successlight\/60 { - border-left-color: rgb(235 255 223 / 0.6); -} - -.border-l-successlight\/70 { - border-left-color: rgb(235 255 223 / 0.7); -} - -.border-l-successlight\/75 { - border-left-color: rgb(235 255 223 / 0.75); -} - -.border-l-successlight\/80 { - border-left-color: rgb(235 255 223 / 0.8); -} - -.border-l-successlight\/90 { - border-left-color: rgb(235 255 223 / 0.9); -} - -.border-l-successlight\/95 { - border-left-color: rgb(235 255 223 / 0.95); -} - -.border-l-successlight\/shadow { - border-left-color: rgb(235 255 223 / .15); -} - -.border-l-surfconext { - --tw-border-opacity: 1; - border-left-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-l-surfconext\/0 { - border-left-color: rgb(77 178 207 / 0); -} - -.border-l-surfconext\/10 { - border-left-color: rgb(77 178 207 / 0.1); -} - -.border-l-surfconext\/100 { - border-left-color: rgb(77 178 207 / 1); -} - -.border-l-surfconext\/20 { - border-left-color: rgb(77 178 207 / 0.2); -} - -.border-l-surfconext\/25 { - border-left-color: rgb(77 178 207 / 0.25); -} - -.border-l-surfconext\/30 { - border-left-color: rgb(77 178 207 / 0.3); -} - -.border-l-surfconext\/40 { - border-left-color: rgb(77 178 207 / 0.4); -} - -.border-l-surfconext\/5 { - border-left-color: rgb(77 178 207 / 0.05); -} - -.border-l-surfconext\/50 { - border-left-color: rgb(77 178 207 / 0.5); -} - -.border-l-surfconext\/60 { - border-left-color: rgb(77 178 207 / 0.6); -} - -.border-l-surfconext\/70 { - border-left-color: rgb(77 178 207 / 0.7); -} - -.border-l-surfconext\/75 { - border-left-color: rgb(77 178 207 / 0.75); -} - -.border-l-surfconext\/80 { - border-left-color: rgb(77 178 207 / 0.8); -} - -.border-l-surfconext\/90 { - border-left-color: rgb(77 178 207 / 0.9); -} - -.border-l-surfconext\/95 { - border-left-color: rgb(77 178 207 / 0.95); -} - -.border-l-surfconext\/shadow { - border-left-color: rgb(77 178 207 / .15); -} - -.border-l-tertiary { - --tw-border-opacity: 1; - border-left-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-l-tertiary\/0 { - border-left-color: rgb(255 207 96 / 0); -} - -.border-l-tertiary\/10 { - border-left-color: rgb(255 207 96 / 0.1); -} - -.border-l-tertiary\/100 { - border-left-color: rgb(255 207 96 / 1); -} - -.border-l-tertiary\/20 { - border-left-color: rgb(255 207 96 / 0.2); -} - -.border-l-tertiary\/25 { - border-left-color: rgb(255 207 96 / 0.25); -} - -.border-l-tertiary\/30 { - border-left-color: rgb(255 207 96 / 0.3); -} - -.border-l-tertiary\/40 { - border-left-color: rgb(255 207 96 / 0.4); -} - -.border-l-tertiary\/5 { - border-left-color: rgb(255 207 96 / 0.05); -} - -.border-l-tertiary\/50 { - border-left-color: rgb(255 207 96 / 0.5); -} - -.border-l-tertiary\/60 { - border-left-color: rgb(255 207 96 / 0.6); -} - -.border-l-tertiary\/70 { - border-left-color: rgb(255 207 96 / 0.7); -} - -.border-l-tertiary\/75 { - border-left-color: rgb(255 207 96 / 0.75); -} - -.border-l-tertiary\/80 { - border-left-color: rgb(255 207 96 / 0.8); -} - -.border-l-tertiary\/90 { - border-left-color: rgb(255 207 96 / 0.9); -} - -.border-l-tertiary\/95 { - border-left-color: rgb(255 207 96 / 0.95); -} - -.border-l-tertiary\/shadow { - border-left-color: rgb(255 207 96 / .15); -} - -.border-l-warning { - --tw-border-opacity: 1; - border-left-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-l-warning\/0 { - border-left-color: rgb(242 141 21 / 0); -} - -.border-l-warning\/10 { - border-left-color: rgb(242 141 21 / 0.1); -} - -.border-l-warning\/100 { - border-left-color: rgb(242 141 21 / 1); -} - -.border-l-warning\/20 { - border-left-color: rgb(242 141 21 / 0.2); -} - -.border-l-warning\/25 { - border-left-color: rgb(242 141 21 / 0.25); -} - -.border-l-warning\/30 { - border-left-color: rgb(242 141 21 / 0.3); -} - -.border-l-warning\/40 { - border-left-color: rgb(242 141 21 / 0.4); -} - -.border-l-warning\/5 { - border-left-color: rgb(242 141 21 / 0.05); -} - -.border-l-warning\/50 { - border-left-color: rgb(242 141 21 / 0.5); -} - -.border-l-warning\/60 { - border-left-color: rgb(242 141 21 / 0.6); -} - -.border-l-warning\/70 { - border-left-color: rgb(242 141 21 / 0.7); -} - -.border-l-warning\/75 { - border-left-color: rgb(242 141 21 / 0.75); -} - -.border-l-warning\/80 { - border-left-color: rgb(242 141 21 / 0.8); -} - -.border-l-warning\/90 { - border-left-color: rgb(242 141 21 / 0.9); -} - -.border-l-warning\/95 { - border-left-color: rgb(242 141 21 / 0.95); -} - -.border-l-warning\/shadow { - border-left-color: rgb(242 141 21 / .15); -} - -.border-l-warninglight { - --tw-border-opacity: 1; - border-left-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-l-warninglight\/0 { - border-left-color: rgb(255 239 220 / 0); -} - -.border-l-warninglight\/10 { - border-left-color: rgb(255 239 220 / 0.1); -} - -.border-l-warninglight\/100 { - border-left-color: rgb(255 239 220 / 1); -} - -.border-l-warninglight\/20 { - border-left-color: rgb(255 239 220 / 0.2); -} - -.border-l-warninglight\/25 { - border-left-color: rgb(255 239 220 / 0.25); -} - -.border-l-warninglight\/30 { - border-left-color: rgb(255 239 220 / 0.3); -} - -.border-l-warninglight\/40 { - border-left-color: rgb(255 239 220 / 0.4); -} - -.border-l-warninglight\/5 { - border-left-color: rgb(255 239 220 / 0.05); -} - -.border-l-warninglight\/50 { - border-left-color: rgb(255 239 220 / 0.5); -} - -.border-l-warninglight\/60 { - border-left-color: rgb(255 239 220 / 0.6); -} - -.border-l-warninglight\/70 { - border-left-color: rgb(255 239 220 / 0.7); -} - -.border-l-warninglight\/75 { - border-left-color: rgb(255 239 220 / 0.75); -} - -.border-l-warninglight\/80 { - border-left-color: rgb(255 239 220 / 0.8); -} - -.border-l-warninglight\/90 { - border-left-color: rgb(255 239 220 / 0.9); -} - -.border-l-warninglight\/95 { - border-left-color: rgb(255 239 220 / 0.95); -} - -.border-l-warninglight\/shadow { - border-left-color: rgb(255 239 220 / .15); -} - -.border-l-white { - --tw-border-opacity: 1; - border-left-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-l-white\/0 { - border-left-color: rgb(255 255 255 / 0); -} - -.border-l-white\/10 { - border-left-color: rgb(255 255 255 / 0.1); -} - -.border-l-white\/100 { - border-left-color: rgb(255 255 255 / 1); -} - -.border-l-white\/20 { - border-left-color: rgb(255 255 255 / 0.2); -} - -.border-l-white\/25 { - border-left-color: rgb(255 255 255 / 0.25); -} - -.border-l-white\/30 { - border-left-color: rgb(255 255 255 / 0.3); -} - -.border-l-white\/40 { - border-left-color: rgb(255 255 255 / 0.4); -} - -.border-l-white\/5 { - border-left-color: rgb(255 255 255 / 0.05); -} - -.border-l-white\/50 { - border-left-color: rgb(255 255 255 / 0.5); -} - -.border-l-white\/60 { - border-left-color: rgb(255 255 255 / 0.6); -} - -.border-l-white\/70 { - border-left-color: rgb(255 255 255 / 0.7); -} - -.border-l-white\/75 { - border-left-color: rgb(255 255 255 / 0.75); -} - -.border-l-white\/80 { - border-left-color: rgb(255 255 255 / 0.8); -} - -.border-l-white\/90 { - border-left-color: rgb(255 255 255 / 0.9); -} - -.border-l-white\/95 { - border-left-color: rgb(255 255 255 / 0.95); -} - -.border-l-white\/shadow { - border-left-color: rgb(255 255 255 / .15); -} - -.border-r-apple { - --tw-border-opacity: 1; - border-right-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-r-apple\/0 { - border-right-color: rgb(0 0 0 / 0); -} - -.border-r-apple\/10 { - border-right-color: rgb(0 0 0 / 0.1); -} - -.border-r-apple\/100 { - border-right-color: rgb(0 0 0 / 1); -} - -.border-r-apple\/20 { - border-right-color: rgb(0 0 0 / 0.2); -} - -.border-r-apple\/25 { - border-right-color: rgb(0 0 0 / 0.25); -} - -.border-r-apple\/30 { - border-right-color: rgb(0 0 0 / 0.3); -} - -.border-r-apple\/40 { - border-right-color: rgb(0 0 0 / 0.4); -} - -.border-r-apple\/5 { - border-right-color: rgb(0 0 0 / 0.05); -} - -.border-r-apple\/50 { - border-right-color: rgb(0 0 0 / 0.5); -} - -.border-r-apple\/60 { - border-right-color: rgb(0 0 0 / 0.6); -} - -.border-r-apple\/70 { - border-right-color: rgb(0 0 0 / 0.7); -} - -.border-r-apple\/75 { - border-right-color: rgb(0 0 0 / 0.75); -} - -.border-r-apple\/80 { - border-right-color: rgb(0 0 0 / 0.8); -} - -.border-r-apple\/90 { - border-right-color: rgb(0 0 0 / 0.9); -} - -.border-r-apple\/95 { - border-right-color: rgb(0 0 0 / 0.95); -} - -.border-r-apple\/shadow { - border-right-color: rgb(0 0 0 / .15); -} - -.border-r-black { - --tw-border-opacity: 1; - border-right-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-r-black\/0 { - border-right-color: rgb(0 0 0 / 0); -} - -.border-r-black\/10 { - border-right-color: rgb(0 0 0 / 0.1); -} - -.border-r-black\/100 { - border-right-color: rgb(0 0 0 / 1); -} - -.border-r-black\/20 { - border-right-color: rgb(0 0 0 / 0.2); -} - -.border-r-black\/25 { - border-right-color: rgb(0 0 0 / 0.25); -} - -.border-r-black\/30 { - border-right-color: rgb(0 0 0 / 0.3); -} - -.border-r-black\/40 { - border-right-color: rgb(0 0 0 / 0.4); -} - -.border-r-black\/5 { - border-right-color: rgb(0 0 0 / 0.05); -} - -.border-r-black\/50 { - border-right-color: rgb(0 0 0 / 0.5); -} - -.border-r-black\/60 { - border-right-color: rgb(0 0 0 / 0.6); -} - -.border-r-black\/70 { - border-right-color: rgb(0 0 0 / 0.7); -} - -.border-r-black\/75 { - border-right-color: rgb(0 0 0 / 0.75); -} - -.border-r-black\/80 { - border-right-color: rgb(0 0 0 / 0.8); -} - -.border-r-black\/90 { - border-right-color: rgb(0 0 0 / 0.9); -} - -.border-r-black\/95 { - border-right-color: rgb(0 0 0 / 0.95); -} - -.border-r-black\/shadow { - border-right-color: rgb(0 0 0 / .15); -} - -.border-r-delete { - --tw-border-opacity: 1; - border-right-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-r-delete\/0 { - border-right-color: rgb(219 30 30 / 0); -} - -.border-r-delete\/10 { - border-right-color: rgb(219 30 30 / 0.1); -} - -.border-r-delete\/100 { - border-right-color: rgb(219 30 30 / 1); -} - -.border-r-delete\/20 { - border-right-color: rgb(219 30 30 / 0.2); -} - -.border-r-delete\/25 { - border-right-color: rgb(219 30 30 / 0.25); -} - -.border-r-delete\/30 { - border-right-color: rgb(219 30 30 / 0.3); -} - -.border-r-delete\/40 { - border-right-color: rgb(219 30 30 / 0.4); -} - -.border-r-delete\/5 { - border-right-color: rgb(219 30 30 / 0.05); -} - -.border-r-delete\/50 { - border-right-color: rgb(219 30 30 / 0.5); -} - -.border-r-delete\/60 { - border-right-color: rgb(219 30 30 / 0.6); -} - -.border-r-delete\/70 { - border-right-color: rgb(219 30 30 / 0.7); -} - -.border-r-delete\/75 { - border-right-color: rgb(219 30 30 / 0.75); -} - -.border-r-delete\/80 { - border-right-color: rgb(219 30 30 / 0.8); -} - -.border-r-delete\/90 { - border-right-color: rgb(219 30 30 / 0.9); -} - -.border-r-delete\/95 { - border-right-color: rgb(219 30 30 / 0.95); -} - -.border-r-delete\/shadow { - border-right-color: rgb(219 30 30 / .15); -} - -.border-r-deletelight { - --tw-border-opacity: 1; - border-right-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-r-deletelight\/0 { - border-right-color: rgb(255 236 236 / 0); -} - -.border-r-deletelight\/10 { - border-right-color: rgb(255 236 236 / 0.1); -} - -.border-r-deletelight\/100 { - border-right-color: rgb(255 236 236 / 1); -} - -.border-r-deletelight\/20 { - border-right-color: rgb(255 236 236 / 0.2); -} - -.border-r-deletelight\/25 { - border-right-color: rgb(255 236 236 / 0.25); -} - -.border-r-deletelight\/30 { - border-right-color: rgb(255 236 236 / 0.3); -} - -.border-r-deletelight\/40 { - border-right-color: rgb(255 236 236 / 0.4); -} - -.border-r-deletelight\/5 { - border-right-color: rgb(255 236 236 / 0.05); -} - -.border-r-deletelight\/50 { - border-right-color: rgb(255 236 236 / 0.5); -} - -.border-r-deletelight\/60 { - border-right-color: rgb(255 236 236 / 0.6); -} - -.border-r-deletelight\/70 { - border-right-color: rgb(255 236 236 / 0.7); -} - -.border-r-deletelight\/75 { - border-right-color: rgb(255 236 236 / 0.75); -} - -.border-r-deletelight\/80 { - border-right-color: rgb(255 236 236 / 0.8); -} - -.border-r-deletelight\/90 { - border-right-color: rgb(255 236 236 / 0.9); -} - -.border-r-deletelight\/95 { - border-right-color: rgb(255 236 236 / 0.95); -} - -.border-r-deletelight\/shadow { - border-right-color: rgb(255 236 236 / .15); -} - -.border-r-error { - --tw-border-opacity: 1; - border-right-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-r-error\/0 { - border-right-color: rgb(219 30 30 / 0); -} - -.border-r-error\/10 { - border-right-color: rgb(219 30 30 / 0.1); -} - -.border-r-error\/100 { - border-right-color: rgb(219 30 30 / 1); -} - -.border-r-error\/20 { - border-right-color: rgb(219 30 30 / 0.2); -} - -.border-r-error\/25 { - border-right-color: rgb(219 30 30 / 0.25); -} - -.border-r-error\/30 { - border-right-color: rgb(219 30 30 / 0.3); -} - -.border-r-error\/40 { - border-right-color: rgb(219 30 30 / 0.4); -} - -.border-r-error\/5 { - border-right-color: rgb(219 30 30 / 0.05); -} - -.border-r-error\/50 { - border-right-color: rgb(219 30 30 / 0.5); -} - -.border-r-error\/60 { - border-right-color: rgb(219 30 30 / 0.6); -} - -.border-r-error\/70 { - border-right-color: rgb(219 30 30 / 0.7); -} - -.border-r-error\/75 { - border-right-color: rgb(219 30 30 / 0.75); -} - -.border-r-error\/80 { - border-right-color: rgb(219 30 30 / 0.8); -} - -.border-r-error\/90 { - border-right-color: rgb(219 30 30 / 0.9); -} - -.border-r-error\/95 { - border-right-color: rgb(219 30 30 / 0.95); -} - -.border-r-error\/shadow { - border-right-color: rgb(219 30 30 / .15); -} - -.border-r-errorlight { - --tw-border-opacity: 1; - border-right-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-r-errorlight\/0 { - border-right-color: rgb(255 236 236 / 0); -} - -.border-r-errorlight\/10 { - border-right-color: rgb(255 236 236 / 0.1); -} - -.border-r-errorlight\/100 { - border-right-color: rgb(255 236 236 / 1); -} - -.border-r-errorlight\/20 { - border-right-color: rgb(255 236 236 / 0.2); -} - -.border-r-errorlight\/25 { - border-right-color: rgb(255 236 236 / 0.25); -} - -.border-r-errorlight\/30 { - border-right-color: rgb(255 236 236 / 0.3); -} - -.border-r-errorlight\/40 { - border-right-color: rgb(255 236 236 / 0.4); -} - -.border-r-errorlight\/5 { - border-right-color: rgb(255 236 236 / 0.05); -} - -.border-r-errorlight\/50 { - border-right-color: rgb(255 236 236 / 0.5); -} - -.border-r-errorlight\/60 { - border-right-color: rgb(255 236 236 / 0.6); -} - -.border-r-errorlight\/70 { - border-right-color: rgb(255 236 236 / 0.7); -} - -.border-r-errorlight\/75 { - border-right-color: rgb(255 236 236 / 0.75); -} - -.border-r-errorlight\/80 { - border-right-color: rgb(255 236 236 / 0.8); -} - -.border-r-errorlight\/90 { - border-right-color: rgb(255 236 236 / 0.9); -} - -.border-r-errorlight\/95 { - border-right-color: rgb(255 236 236 / 0.95); -} - -.border-r-errorlight\/shadow { - border-right-color: rgb(255 236 236 / .15); -} - -.border-r-google { - --tw-border-opacity: 1; - border-right-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-r-google\/0 { - border-right-color: rgb(234 67 53 / 0); -} - -.border-r-google\/10 { - border-right-color: rgb(234 67 53 / 0.1); -} - -.border-r-google\/100 { - border-right-color: rgb(234 67 53 / 1); -} - -.border-r-google\/20 { - border-right-color: rgb(234 67 53 / 0.2); -} - -.border-r-google\/25 { - border-right-color: rgb(234 67 53 / 0.25); -} - -.border-r-google\/30 { - border-right-color: rgb(234 67 53 / 0.3); -} - -.border-r-google\/40 { - border-right-color: rgb(234 67 53 / 0.4); -} - -.border-r-google\/5 { - border-right-color: rgb(234 67 53 / 0.05); -} - -.border-r-google\/50 { - border-right-color: rgb(234 67 53 / 0.5); -} - -.border-r-google\/60 { - border-right-color: rgb(234 67 53 / 0.6); -} - -.border-r-google\/70 { - border-right-color: rgb(234 67 53 / 0.7); -} - -.border-r-google\/75 { - border-right-color: rgb(234 67 53 / 0.75); -} - -.border-r-google\/80 { - border-right-color: rgb(234 67 53 / 0.8); -} - -.border-r-google\/90 { - border-right-color: rgb(234 67 53 / 0.9); -} - -.border-r-google\/95 { - border-right-color: rgb(234 67 53 / 0.95); -} - -.border-r-google\/shadow { - border-right-color: rgb(234 67 53 / .15); -} - -.border-r-grey1 { - --tw-border-opacity: 1; - border-right-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-r-grey1\/0 { - border-right-color: rgb(34 34 34 / 0); -} - -.border-r-grey1\/10 { - border-right-color: rgb(34 34 34 / 0.1); -} - -.border-r-grey1\/100 { - border-right-color: rgb(34 34 34 / 1); -} - -.border-r-grey1\/20 { - border-right-color: rgb(34 34 34 / 0.2); -} - -.border-r-grey1\/25 { - border-right-color: rgb(34 34 34 / 0.25); -} - -.border-r-grey1\/30 { - border-right-color: rgb(34 34 34 / 0.3); -} - -.border-r-grey1\/40 { - border-right-color: rgb(34 34 34 / 0.4); -} - -.border-r-grey1\/5 { - border-right-color: rgb(34 34 34 / 0.05); -} - -.border-r-grey1\/50 { - border-right-color: rgb(34 34 34 / 0.5); -} - -.border-r-grey1\/60 { - border-right-color: rgb(34 34 34 / 0.6); -} - -.border-r-grey1\/70 { - border-right-color: rgb(34 34 34 / 0.7); -} - -.border-r-grey1\/75 { - border-right-color: rgb(34 34 34 / 0.75); -} - -.border-r-grey1\/80 { - border-right-color: rgb(34 34 34 / 0.8); -} - -.border-r-grey1\/90 { - border-right-color: rgb(34 34 34 / 0.9); -} - -.border-r-grey1\/95 { - border-right-color: rgb(34 34 34 / 0.95); -} - -.border-r-grey1\/shadow { - border-right-color: rgb(34 34 34 / .15); -} - -.border-r-grey2 { - --tw-border-opacity: 1; - border-right-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-r-grey2\/0 { - border-right-color: rgb(153 153 153 / 0); -} - -.border-r-grey2\/10 { - border-right-color: rgb(153 153 153 / 0.1); -} - -.border-r-grey2\/100 { - border-right-color: rgb(153 153 153 / 1); -} - -.border-r-grey2\/20 { - border-right-color: rgb(153 153 153 / 0.2); -} - -.border-r-grey2\/25 { - border-right-color: rgb(153 153 153 / 0.25); -} - -.border-r-grey2\/30 { - border-right-color: rgb(153 153 153 / 0.3); -} - -.border-r-grey2\/40 { - border-right-color: rgb(153 153 153 / 0.4); -} - -.border-r-grey2\/5 { - border-right-color: rgb(153 153 153 / 0.05); -} - -.border-r-grey2\/50 { - border-right-color: rgb(153 153 153 / 0.5); -} - -.border-r-grey2\/60 { - border-right-color: rgb(153 153 153 / 0.6); -} - -.border-r-grey2\/70 { - border-right-color: rgb(153 153 153 / 0.7); -} - -.border-r-grey2\/75 { - border-right-color: rgb(153 153 153 / 0.75); -} - -.border-r-grey2\/80 { - border-right-color: rgb(153 153 153 / 0.8); -} - -.border-r-grey2\/90 { - border-right-color: rgb(153 153 153 / 0.9); -} - -.border-r-grey2\/95 { - border-right-color: rgb(153 153 153 / 0.95); -} - -.border-r-grey2\/shadow { - border-right-color: rgb(153 153 153 / .15); -} - -.border-r-grey3 { - --tw-border-opacity: 1; - border-right-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-r-grey3\/0 { - border-right-color: rgb(204 204 204 / 0); -} - -.border-r-grey3\/10 { - border-right-color: rgb(204 204 204 / 0.1); -} - -.border-r-grey3\/100 { - border-right-color: rgb(204 204 204 / 1); -} - -.border-r-grey3\/20 { - border-right-color: rgb(204 204 204 / 0.2); -} - -.border-r-grey3\/25 { - border-right-color: rgb(204 204 204 / 0.25); -} - -.border-r-grey3\/30 { - border-right-color: rgb(204 204 204 / 0.3); -} - -.border-r-grey3\/40 { - border-right-color: rgb(204 204 204 / 0.4); -} - -.border-r-grey3\/5 { - border-right-color: rgb(204 204 204 / 0.05); -} - -.border-r-grey3\/50 { - border-right-color: rgb(204 204 204 / 0.5); -} - -.border-r-grey3\/60 { - border-right-color: rgb(204 204 204 / 0.6); -} - -.border-r-grey3\/70 { - border-right-color: rgb(204 204 204 / 0.7); -} - -.border-r-grey3\/75 { - border-right-color: rgb(204 204 204 / 0.75); -} - -.border-r-grey3\/80 { - border-right-color: rgb(204 204 204 / 0.8); -} - -.border-r-grey3\/90 { - border-right-color: rgb(204 204 204 / 0.9); -} - -.border-r-grey3\/95 { - border-right-color: rgb(204 204 204 / 0.95); -} - -.border-r-grey3\/shadow { - border-right-color: rgb(204 204 204 / .15); -} - -.border-r-grey4 { - --tw-border-opacity: 1; - border-right-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-r-grey4\/0 { - border-right-color: rgb(238 238 238 / 0); -} - -.border-r-grey4\/10 { - border-right-color: rgb(238 238 238 / 0.1); -} - -.border-r-grey4\/100 { - border-right-color: rgb(238 238 238 / 1); -} - -.border-r-grey4\/20 { - border-right-color: rgb(238 238 238 / 0.2); -} - -.border-r-grey4\/25 { - border-right-color: rgb(238 238 238 / 0.25); -} - -.border-r-grey4\/30 { - border-right-color: rgb(238 238 238 / 0.3); -} - -.border-r-grey4\/40 { - border-right-color: rgb(238 238 238 / 0.4); -} - -.border-r-grey4\/5 { - border-right-color: rgb(238 238 238 / 0.05); -} - -.border-r-grey4\/50 { - border-right-color: rgb(238 238 238 / 0.5); -} - -.border-r-grey4\/60 { - border-right-color: rgb(238 238 238 / 0.6); -} - -.border-r-grey4\/70 { - border-right-color: rgb(238 238 238 / 0.7); -} - -.border-r-grey4\/75 { - border-right-color: rgb(238 238 238 / 0.75); -} - -.border-r-grey4\/80 { - border-right-color: rgb(238 238 238 / 0.8); -} - -.border-r-grey4\/90 { - border-right-color: rgb(238 238 238 / 0.9); -} - -.border-r-grey4\/95 { - border-right-color: rgb(238 238 238 / 0.95); -} - -.border-r-grey4\/shadow { - border-right-color: rgb(238 238 238 / .15); -} - -.border-r-grey5 { - --tw-border-opacity: 1; - border-right-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-r-grey5\/0 { - border-right-color: rgb(246 246 246 / 0); -} - -.border-r-grey5\/10 { - border-right-color: rgb(246 246 246 / 0.1); -} - -.border-r-grey5\/100 { - border-right-color: rgb(246 246 246 / 1); -} - -.border-r-grey5\/20 { - border-right-color: rgb(246 246 246 / 0.2); -} - -.border-r-grey5\/25 { - border-right-color: rgb(246 246 246 / 0.25); -} - -.border-r-grey5\/30 { - border-right-color: rgb(246 246 246 / 0.3); -} - -.border-r-grey5\/40 { - border-right-color: rgb(246 246 246 / 0.4); -} - -.border-r-grey5\/5 { - border-right-color: rgb(246 246 246 / 0.05); -} - -.border-r-grey5\/50 { - border-right-color: rgb(246 246 246 / 0.5); -} - -.border-r-grey5\/60 { - border-right-color: rgb(246 246 246 / 0.6); -} - -.border-r-grey5\/70 { - border-right-color: rgb(246 246 246 / 0.7); -} - -.border-r-grey5\/75 { - border-right-color: rgb(246 246 246 / 0.75); -} - -.border-r-grey5\/80 { - border-right-color: rgb(246 246 246 / 0.8); -} - -.border-r-grey5\/90 { - border-right-color: rgb(246 246 246 / 0.9); -} - -.border-r-grey5\/95 { - border-right-color: rgb(246 246 246 / 0.95); -} - -.border-r-grey5\/shadow { - border-right-color: rgb(246 246 246 / .15); -} - -.border-r-grey6 { - --tw-border-opacity: 1; - border-right-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-r-grey6\/0 { - border-right-color: rgb(250 250 250 / 0); -} - -.border-r-grey6\/10 { - border-right-color: rgb(250 250 250 / 0.1); -} - -.border-r-grey6\/100 { - border-right-color: rgb(250 250 250 / 1); -} - -.border-r-grey6\/20 { - border-right-color: rgb(250 250 250 / 0.2); -} - -.border-r-grey6\/25 { - border-right-color: rgb(250 250 250 / 0.25); -} - -.border-r-grey6\/30 { - border-right-color: rgb(250 250 250 / 0.3); -} - -.border-r-grey6\/40 { - border-right-color: rgb(250 250 250 / 0.4); -} - -.border-r-grey6\/5 { - border-right-color: rgb(250 250 250 / 0.05); -} - -.border-r-grey6\/50 { - border-right-color: rgb(250 250 250 / 0.5); -} - -.border-r-grey6\/60 { - border-right-color: rgb(250 250 250 / 0.6); -} - -.border-r-grey6\/70 { - border-right-color: rgb(250 250 250 / 0.7); -} - -.border-r-grey6\/75 { - border-right-color: rgb(250 250 250 / 0.75); -} - -.border-r-grey6\/80 { - border-right-color: rgb(250 250 250 / 0.8); -} - -.border-r-grey6\/90 { - border-right-color: rgb(250 250 250 / 0.9); -} - -.border-r-grey6\/95 { - border-right-color: rgb(250 250 250 / 0.95); -} - -.border-r-grey6\/shadow { - border-right-color: rgb(250 250 250 / .15); -} - -.border-r-primary { - --tw-border-opacity: 1; - border-right-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-r-primary\/0 { - border-right-color: rgb(66 114 239 / 0); -} - -.border-r-primary\/10 { - border-right-color: rgb(66 114 239 / 0.1); -} - -.border-r-primary\/100 { - border-right-color: rgb(66 114 239 / 1); -} - -.border-r-primary\/20 { - border-right-color: rgb(66 114 239 / 0.2); -} - -.border-r-primary\/25 { - border-right-color: rgb(66 114 239 / 0.25); -} - -.border-r-primary\/30 { - border-right-color: rgb(66 114 239 / 0.3); -} - -.border-r-primary\/40 { - border-right-color: rgb(66 114 239 / 0.4); -} - -.border-r-primary\/5 { - border-right-color: rgb(66 114 239 / 0.05); -} - -.border-r-primary\/50 { - border-right-color: rgb(66 114 239 / 0.5); -} - -.border-r-primary\/60 { - border-right-color: rgb(66 114 239 / 0.6); -} - -.border-r-primary\/70 { - border-right-color: rgb(66 114 239 / 0.7); -} - -.border-r-primary\/75 { - border-right-color: rgb(66 114 239 / 0.75); -} - -.border-r-primary\/80 { - border-right-color: rgb(66 114 239 / 0.8); -} - -.border-r-primary\/90 { - border-right-color: rgb(66 114 239 / 0.9); -} - -.border-r-primary\/95 { - border-right-color: rgb(66 114 239 / 0.95); -} - -.border-r-primary\/shadow { - border-right-color: rgb(66 114 239 / .15); -} - -.border-r-primarylight { - --tw-border-opacity: 1; - border-right-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-r-primarylight\/0 { - border-right-color: rgb(227 234 253 / 0); -} - -.border-r-primarylight\/10 { - border-right-color: rgb(227 234 253 / 0.1); -} - -.border-r-primarylight\/100 { - border-right-color: rgb(227 234 253 / 1); -} - -.border-r-primarylight\/20 { - border-right-color: rgb(227 234 253 / 0.2); -} - -.border-r-primarylight\/25 { - border-right-color: rgb(227 234 253 / 0.25); -} - -.border-r-primarylight\/30 { - border-right-color: rgb(227 234 253 / 0.3); -} - -.border-r-primarylight\/40 { - border-right-color: rgb(227 234 253 / 0.4); -} - -.border-r-primarylight\/5 { - border-right-color: rgb(227 234 253 / 0.05); -} - -.border-r-primarylight\/50 { - border-right-color: rgb(227 234 253 / 0.5); -} - -.border-r-primarylight\/60 { - border-right-color: rgb(227 234 253 / 0.6); -} - -.border-r-primarylight\/70 { - border-right-color: rgb(227 234 253 / 0.7); -} - -.border-r-primarylight\/75 { - border-right-color: rgb(227 234 253 / 0.75); -} - -.border-r-primarylight\/80 { - border-right-color: rgb(227 234 253 / 0.8); -} - -.border-r-primarylight\/90 { - border-right-color: rgb(227 234 253 / 0.9); -} - -.border-r-primarylight\/95 { - border-right-color: rgb(227 234 253 / 0.95); -} - -.border-r-primarylight\/shadow { - border-right-color: rgb(227 234 253 / .15); -} - -.border-r-secondary { - --tw-border-opacity: 1; - border-right-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-r-secondary\/0 { - border-right-color: rgb(255 94 94 / 0); -} - -.border-r-secondary\/10 { - border-right-color: rgb(255 94 94 / 0.1); -} - -.border-r-secondary\/100 { - border-right-color: rgb(255 94 94 / 1); -} - -.border-r-secondary\/20 { - border-right-color: rgb(255 94 94 / 0.2); -} - -.border-r-secondary\/25 { - border-right-color: rgb(255 94 94 / 0.25); -} - -.border-r-secondary\/30 { - border-right-color: rgb(255 94 94 / 0.3); -} - -.border-r-secondary\/40 { - border-right-color: rgb(255 94 94 / 0.4); -} - -.border-r-secondary\/5 { - border-right-color: rgb(255 94 94 / 0.05); -} - -.border-r-secondary\/50 { - border-right-color: rgb(255 94 94 / 0.5); -} - -.border-r-secondary\/60 { - border-right-color: rgb(255 94 94 / 0.6); -} - -.border-r-secondary\/70 { - border-right-color: rgb(255 94 94 / 0.7); -} - -.border-r-secondary\/75 { - border-right-color: rgb(255 94 94 / 0.75); -} - -.border-r-secondary\/80 { - border-right-color: rgb(255 94 94 / 0.8); -} - -.border-r-secondary\/90 { - border-right-color: rgb(255 94 94 / 0.9); -} - -.border-r-secondary\/95 { - border-right-color: rgb(255 94 94 / 0.95); -} - -.border-r-secondary\/shadow { - border-right-color: rgb(255 94 94 / .15); -} - -.border-r-success { - --tw-border-opacity: 1; - border-right-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-r-success\/0 { - border-right-color: rgb(111 202 55 / 0); -} - -.border-r-success\/10 { - border-right-color: rgb(111 202 55 / 0.1); -} - -.border-r-success\/100 { - border-right-color: rgb(111 202 55 / 1); -} - -.border-r-success\/20 { - border-right-color: rgb(111 202 55 / 0.2); -} - -.border-r-success\/25 { - border-right-color: rgb(111 202 55 / 0.25); -} - -.border-r-success\/30 { - border-right-color: rgb(111 202 55 / 0.3); -} - -.border-r-success\/40 { - border-right-color: rgb(111 202 55 / 0.4); -} - -.border-r-success\/5 { - border-right-color: rgb(111 202 55 / 0.05); -} - -.border-r-success\/50 { - border-right-color: rgb(111 202 55 / 0.5); -} - -.border-r-success\/60 { - border-right-color: rgb(111 202 55 / 0.6); -} - -.border-r-success\/70 { - border-right-color: rgb(111 202 55 / 0.7); -} - -.border-r-success\/75 { - border-right-color: rgb(111 202 55 / 0.75); -} - -.border-r-success\/80 { - border-right-color: rgb(111 202 55 / 0.8); -} - -.border-r-success\/90 { - border-right-color: rgb(111 202 55 / 0.9); -} - -.border-r-success\/95 { - border-right-color: rgb(111 202 55 / 0.95); -} - -.border-r-success\/shadow { - border-right-color: rgb(111 202 55 / .15); -} - -.border-r-successlight { - --tw-border-opacity: 1; - border-right-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-r-successlight\/0 { - border-right-color: rgb(235 255 223 / 0); -} - -.border-r-successlight\/10 { - border-right-color: rgb(235 255 223 / 0.1); -} - -.border-r-successlight\/100 { - border-right-color: rgb(235 255 223 / 1); -} - -.border-r-successlight\/20 { - border-right-color: rgb(235 255 223 / 0.2); -} - -.border-r-successlight\/25 { - border-right-color: rgb(235 255 223 / 0.25); -} - -.border-r-successlight\/30 { - border-right-color: rgb(235 255 223 / 0.3); -} - -.border-r-successlight\/40 { - border-right-color: rgb(235 255 223 / 0.4); -} - -.border-r-successlight\/5 { - border-right-color: rgb(235 255 223 / 0.05); -} - -.border-r-successlight\/50 { - border-right-color: rgb(235 255 223 / 0.5); -} - -.border-r-successlight\/60 { - border-right-color: rgb(235 255 223 / 0.6); -} - -.border-r-successlight\/70 { - border-right-color: rgb(235 255 223 / 0.7); -} - -.border-r-successlight\/75 { - border-right-color: rgb(235 255 223 / 0.75); -} - -.border-r-successlight\/80 { - border-right-color: rgb(235 255 223 / 0.8); -} - -.border-r-successlight\/90 { - border-right-color: rgb(235 255 223 / 0.9); -} - -.border-r-successlight\/95 { - border-right-color: rgb(235 255 223 / 0.95); -} - -.border-r-successlight\/shadow { - border-right-color: rgb(235 255 223 / .15); -} - -.border-r-surfconext { - --tw-border-opacity: 1; - border-right-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-r-surfconext\/0 { - border-right-color: rgb(77 178 207 / 0); -} - -.border-r-surfconext\/10 { - border-right-color: rgb(77 178 207 / 0.1); -} - -.border-r-surfconext\/100 { - border-right-color: rgb(77 178 207 / 1); -} - -.border-r-surfconext\/20 { - border-right-color: rgb(77 178 207 / 0.2); -} - -.border-r-surfconext\/25 { - border-right-color: rgb(77 178 207 / 0.25); -} - -.border-r-surfconext\/30 { - border-right-color: rgb(77 178 207 / 0.3); -} - -.border-r-surfconext\/40 { - border-right-color: rgb(77 178 207 / 0.4); -} - -.border-r-surfconext\/5 { - border-right-color: rgb(77 178 207 / 0.05); -} - -.border-r-surfconext\/50 { - border-right-color: rgb(77 178 207 / 0.5); -} - -.border-r-surfconext\/60 { - border-right-color: rgb(77 178 207 / 0.6); -} - -.border-r-surfconext\/70 { - border-right-color: rgb(77 178 207 / 0.7); -} - -.border-r-surfconext\/75 { - border-right-color: rgb(77 178 207 / 0.75); -} - -.border-r-surfconext\/80 { - border-right-color: rgb(77 178 207 / 0.8); -} - -.border-r-surfconext\/90 { - border-right-color: rgb(77 178 207 / 0.9); -} - -.border-r-surfconext\/95 { - border-right-color: rgb(77 178 207 / 0.95); -} - -.border-r-surfconext\/shadow { - border-right-color: rgb(77 178 207 / .15); -} - -.border-r-tertiary { - --tw-border-opacity: 1; - border-right-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-r-tertiary\/0 { - border-right-color: rgb(255 207 96 / 0); -} - -.border-r-tertiary\/10 { - border-right-color: rgb(255 207 96 / 0.1); -} - -.border-r-tertiary\/100 { - border-right-color: rgb(255 207 96 / 1); -} - -.border-r-tertiary\/20 { - border-right-color: rgb(255 207 96 / 0.2); -} - -.border-r-tertiary\/25 { - border-right-color: rgb(255 207 96 / 0.25); -} - -.border-r-tertiary\/30 { - border-right-color: rgb(255 207 96 / 0.3); -} - -.border-r-tertiary\/40 { - border-right-color: rgb(255 207 96 / 0.4); -} - -.border-r-tertiary\/5 { - border-right-color: rgb(255 207 96 / 0.05); -} - -.border-r-tertiary\/50 { - border-right-color: rgb(255 207 96 / 0.5); -} - -.border-r-tertiary\/60 { - border-right-color: rgb(255 207 96 / 0.6); -} - -.border-r-tertiary\/70 { - border-right-color: rgb(255 207 96 / 0.7); -} - -.border-r-tertiary\/75 { - border-right-color: rgb(255 207 96 / 0.75); -} - -.border-r-tertiary\/80 { - border-right-color: rgb(255 207 96 / 0.8); -} - -.border-r-tertiary\/90 { - border-right-color: rgb(255 207 96 / 0.9); -} - -.border-r-tertiary\/95 { - border-right-color: rgb(255 207 96 / 0.95); -} - -.border-r-tertiary\/shadow { - border-right-color: rgb(255 207 96 / .15); -} - -.border-r-warning { - --tw-border-opacity: 1; - border-right-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-r-warning\/0 { - border-right-color: rgb(242 141 21 / 0); -} - -.border-r-warning\/10 { - border-right-color: rgb(242 141 21 / 0.1); -} - -.border-r-warning\/100 { - border-right-color: rgb(242 141 21 / 1); -} - -.border-r-warning\/20 { - border-right-color: rgb(242 141 21 / 0.2); -} - -.border-r-warning\/25 { - border-right-color: rgb(242 141 21 / 0.25); -} - -.border-r-warning\/30 { - border-right-color: rgb(242 141 21 / 0.3); -} - -.border-r-warning\/40 { - border-right-color: rgb(242 141 21 / 0.4); -} - -.border-r-warning\/5 { - border-right-color: rgb(242 141 21 / 0.05); -} - -.border-r-warning\/50 { - border-right-color: rgb(242 141 21 / 0.5); -} - -.border-r-warning\/60 { - border-right-color: rgb(242 141 21 / 0.6); -} - -.border-r-warning\/70 { - border-right-color: rgb(242 141 21 / 0.7); -} - -.border-r-warning\/75 { - border-right-color: rgb(242 141 21 / 0.75); -} - -.border-r-warning\/80 { - border-right-color: rgb(242 141 21 / 0.8); -} - -.border-r-warning\/90 { - border-right-color: rgb(242 141 21 / 0.9); -} - -.border-r-warning\/95 { - border-right-color: rgb(242 141 21 / 0.95); -} - -.border-r-warning\/shadow { - border-right-color: rgb(242 141 21 / .15); -} - -.border-r-warninglight { - --tw-border-opacity: 1; - border-right-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-r-warninglight\/0 { - border-right-color: rgb(255 239 220 / 0); -} - -.border-r-warninglight\/10 { - border-right-color: rgb(255 239 220 / 0.1); -} - -.border-r-warninglight\/100 { - border-right-color: rgb(255 239 220 / 1); -} - -.border-r-warninglight\/20 { - border-right-color: rgb(255 239 220 / 0.2); -} - -.border-r-warninglight\/25 { - border-right-color: rgb(255 239 220 / 0.25); -} - -.border-r-warninglight\/30 { - border-right-color: rgb(255 239 220 / 0.3); -} - -.border-r-warninglight\/40 { - border-right-color: rgb(255 239 220 / 0.4); -} - -.border-r-warninglight\/5 { - border-right-color: rgb(255 239 220 / 0.05); -} - -.border-r-warninglight\/50 { - border-right-color: rgb(255 239 220 / 0.5); -} - -.border-r-warninglight\/60 { - border-right-color: rgb(255 239 220 / 0.6); -} - -.border-r-warninglight\/70 { - border-right-color: rgb(255 239 220 / 0.7); -} - -.border-r-warninglight\/75 { - border-right-color: rgb(255 239 220 / 0.75); -} - -.border-r-warninglight\/80 { - border-right-color: rgb(255 239 220 / 0.8); -} - -.border-r-warninglight\/90 { - border-right-color: rgb(255 239 220 / 0.9); -} - -.border-r-warninglight\/95 { - border-right-color: rgb(255 239 220 / 0.95); -} - -.border-r-warninglight\/shadow { - border-right-color: rgb(255 239 220 / .15); -} - -.border-r-white { - --tw-border-opacity: 1; - border-right-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-r-white\/0 { - border-right-color: rgb(255 255 255 / 0); -} - -.border-r-white\/10 { - border-right-color: rgb(255 255 255 / 0.1); -} - -.border-r-white\/100 { - border-right-color: rgb(255 255 255 / 1); -} - -.border-r-white\/20 { - border-right-color: rgb(255 255 255 / 0.2); -} - -.border-r-white\/25 { - border-right-color: rgb(255 255 255 / 0.25); -} - -.border-r-white\/30 { - border-right-color: rgb(255 255 255 / 0.3); -} - -.border-r-white\/40 { - border-right-color: rgb(255 255 255 / 0.4); -} - -.border-r-white\/5 { - border-right-color: rgb(255 255 255 / 0.05); -} - -.border-r-white\/50 { - border-right-color: rgb(255 255 255 / 0.5); -} - -.border-r-white\/60 { - border-right-color: rgb(255 255 255 / 0.6); -} - -.border-r-white\/70 { - border-right-color: rgb(255 255 255 / 0.7); -} - -.border-r-white\/75 { - border-right-color: rgb(255 255 255 / 0.75); -} - -.border-r-white\/80 { - border-right-color: rgb(255 255 255 / 0.8); -} - -.border-r-white\/90 { - border-right-color: rgb(255 255 255 / 0.9); -} - -.border-r-white\/95 { - border-right-color: rgb(255 255 255 / 0.95); -} - -.border-r-white\/shadow { - border-right-color: rgb(255 255 255 / .15); -} - -.border-s-apple { - --tw-border-opacity: 1; - border-inline-start-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-s-apple\/0 { - border-inline-start-color: rgb(0 0 0 / 0); -} - -.border-s-apple\/10 { - border-inline-start-color: rgb(0 0 0 / 0.1); -} - -.border-s-apple\/100 { - border-inline-start-color: rgb(0 0 0 / 1); -} - -.border-s-apple\/20 { - border-inline-start-color: rgb(0 0 0 / 0.2); -} - -.border-s-apple\/25 { - border-inline-start-color: rgb(0 0 0 / 0.25); -} - -.border-s-apple\/30 { - border-inline-start-color: rgb(0 0 0 / 0.3); -} - -.border-s-apple\/40 { - border-inline-start-color: rgb(0 0 0 / 0.4); -} - -.border-s-apple\/5 { - border-inline-start-color: rgb(0 0 0 / 0.05); -} - -.border-s-apple\/50 { - border-inline-start-color: rgb(0 0 0 / 0.5); -} - -.border-s-apple\/60 { - border-inline-start-color: rgb(0 0 0 / 0.6); -} - -.border-s-apple\/70 { - border-inline-start-color: rgb(0 0 0 / 0.7); -} - -.border-s-apple\/75 { - border-inline-start-color: rgb(0 0 0 / 0.75); -} - -.border-s-apple\/80 { - border-inline-start-color: rgb(0 0 0 / 0.8); -} - -.border-s-apple\/90 { - border-inline-start-color: rgb(0 0 0 / 0.9); -} - -.border-s-apple\/95 { - border-inline-start-color: rgb(0 0 0 / 0.95); -} - -.border-s-apple\/shadow { - border-inline-start-color: rgb(0 0 0 / .15); -} - -.border-s-black { - --tw-border-opacity: 1; - border-inline-start-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-s-black\/0 { - border-inline-start-color: rgb(0 0 0 / 0); -} - -.border-s-black\/10 { - border-inline-start-color: rgb(0 0 0 / 0.1); -} - -.border-s-black\/100 { - border-inline-start-color: rgb(0 0 0 / 1); -} - -.border-s-black\/20 { - border-inline-start-color: rgb(0 0 0 / 0.2); -} - -.border-s-black\/25 { - border-inline-start-color: rgb(0 0 0 / 0.25); -} - -.border-s-black\/30 { - border-inline-start-color: rgb(0 0 0 / 0.3); -} - -.border-s-black\/40 { - border-inline-start-color: rgb(0 0 0 / 0.4); -} - -.border-s-black\/5 { - border-inline-start-color: rgb(0 0 0 / 0.05); -} - -.border-s-black\/50 { - border-inline-start-color: rgb(0 0 0 / 0.5); -} - -.border-s-black\/60 { - border-inline-start-color: rgb(0 0 0 / 0.6); -} - -.border-s-black\/70 { - border-inline-start-color: rgb(0 0 0 / 0.7); -} - -.border-s-black\/75 { - border-inline-start-color: rgb(0 0 0 / 0.75); -} - -.border-s-black\/80 { - border-inline-start-color: rgb(0 0 0 / 0.8); -} - -.border-s-black\/90 { - border-inline-start-color: rgb(0 0 0 / 0.9); -} - -.border-s-black\/95 { - border-inline-start-color: rgb(0 0 0 / 0.95); -} - -.border-s-black\/shadow { - border-inline-start-color: rgb(0 0 0 / .15); -} - -.border-s-delete { - --tw-border-opacity: 1; - border-inline-start-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-s-delete\/0 { - border-inline-start-color: rgb(219 30 30 / 0); -} - -.border-s-delete\/10 { - border-inline-start-color: rgb(219 30 30 / 0.1); -} - -.border-s-delete\/100 { - border-inline-start-color: rgb(219 30 30 / 1); -} - -.border-s-delete\/20 { - border-inline-start-color: rgb(219 30 30 / 0.2); -} - -.border-s-delete\/25 { - border-inline-start-color: rgb(219 30 30 / 0.25); -} - -.border-s-delete\/30 { - border-inline-start-color: rgb(219 30 30 / 0.3); -} - -.border-s-delete\/40 { - border-inline-start-color: rgb(219 30 30 / 0.4); -} - -.border-s-delete\/5 { - border-inline-start-color: rgb(219 30 30 / 0.05); -} - -.border-s-delete\/50 { - border-inline-start-color: rgb(219 30 30 / 0.5); -} - -.border-s-delete\/60 { - border-inline-start-color: rgb(219 30 30 / 0.6); -} - -.border-s-delete\/70 { - border-inline-start-color: rgb(219 30 30 / 0.7); -} - -.border-s-delete\/75 { - border-inline-start-color: rgb(219 30 30 / 0.75); -} - -.border-s-delete\/80 { - border-inline-start-color: rgb(219 30 30 / 0.8); -} - -.border-s-delete\/90 { - border-inline-start-color: rgb(219 30 30 / 0.9); -} - -.border-s-delete\/95 { - border-inline-start-color: rgb(219 30 30 / 0.95); -} - -.border-s-delete\/shadow { - border-inline-start-color: rgb(219 30 30 / .15); -} - -.border-s-deletelight { - --tw-border-opacity: 1; - border-inline-start-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-s-deletelight\/0 { - border-inline-start-color: rgb(255 236 236 / 0); -} - -.border-s-deletelight\/10 { - border-inline-start-color: rgb(255 236 236 / 0.1); -} - -.border-s-deletelight\/100 { - border-inline-start-color: rgb(255 236 236 / 1); -} - -.border-s-deletelight\/20 { - border-inline-start-color: rgb(255 236 236 / 0.2); -} - -.border-s-deletelight\/25 { - border-inline-start-color: rgb(255 236 236 / 0.25); -} - -.border-s-deletelight\/30 { - border-inline-start-color: rgb(255 236 236 / 0.3); -} - -.border-s-deletelight\/40 { - border-inline-start-color: rgb(255 236 236 / 0.4); -} - -.border-s-deletelight\/5 { - border-inline-start-color: rgb(255 236 236 / 0.05); -} - -.border-s-deletelight\/50 { - border-inline-start-color: rgb(255 236 236 / 0.5); -} - -.border-s-deletelight\/60 { - border-inline-start-color: rgb(255 236 236 / 0.6); -} - -.border-s-deletelight\/70 { - border-inline-start-color: rgb(255 236 236 / 0.7); -} - -.border-s-deletelight\/75 { - border-inline-start-color: rgb(255 236 236 / 0.75); -} - -.border-s-deletelight\/80 { - border-inline-start-color: rgb(255 236 236 / 0.8); -} - -.border-s-deletelight\/90 { - border-inline-start-color: rgb(255 236 236 / 0.9); -} - -.border-s-deletelight\/95 { - border-inline-start-color: rgb(255 236 236 / 0.95); -} - -.border-s-deletelight\/shadow { - border-inline-start-color: rgb(255 236 236 / .15); -} - -.border-s-error { - --tw-border-opacity: 1; - border-inline-start-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-s-error\/0 { - border-inline-start-color: rgb(219 30 30 / 0); -} - -.border-s-error\/10 { - border-inline-start-color: rgb(219 30 30 / 0.1); -} - -.border-s-error\/100 { - border-inline-start-color: rgb(219 30 30 / 1); -} - -.border-s-error\/20 { - border-inline-start-color: rgb(219 30 30 / 0.2); -} - -.border-s-error\/25 { - border-inline-start-color: rgb(219 30 30 / 0.25); -} - -.border-s-error\/30 { - border-inline-start-color: rgb(219 30 30 / 0.3); -} - -.border-s-error\/40 { - border-inline-start-color: rgb(219 30 30 / 0.4); -} - -.border-s-error\/5 { - border-inline-start-color: rgb(219 30 30 / 0.05); -} - -.border-s-error\/50 { - border-inline-start-color: rgb(219 30 30 / 0.5); -} - -.border-s-error\/60 { - border-inline-start-color: rgb(219 30 30 / 0.6); -} - -.border-s-error\/70 { - border-inline-start-color: rgb(219 30 30 / 0.7); -} - -.border-s-error\/75 { - border-inline-start-color: rgb(219 30 30 / 0.75); -} - -.border-s-error\/80 { - border-inline-start-color: rgb(219 30 30 / 0.8); -} - -.border-s-error\/90 { - border-inline-start-color: rgb(219 30 30 / 0.9); -} - -.border-s-error\/95 { - border-inline-start-color: rgb(219 30 30 / 0.95); -} - -.border-s-error\/shadow { - border-inline-start-color: rgb(219 30 30 / .15); -} - -.border-s-errorlight { - --tw-border-opacity: 1; - border-inline-start-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-s-errorlight\/0 { - border-inline-start-color: rgb(255 236 236 / 0); -} - -.border-s-errorlight\/10 { - border-inline-start-color: rgb(255 236 236 / 0.1); -} - -.border-s-errorlight\/100 { - border-inline-start-color: rgb(255 236 236 / 1); -} - -.border-s-errorlight\/20 { - border-inline-start-color: rgb(255 236 236 / 0.2); -} - -.border-s-errorlight\/25 { - border-inline-start-color: rgb(255 236 236 / 0.25); -} - -.border-s-errorlight\/30 { - border-inline-start-color: rgb(255 236 236 / 0.3); -} - -.border-s-errorlight\/40 { - border-inline-start-color: rgb(255 236 236 / 0.4); -} - -.border-s-errorlight\/5 { - border-inline-start-color: rgb(255 236 236 / 0.05); -} - -.border-s-errorlight\/50 { - border-inline-start-color: rgb(255 236 236 / 0.5); -} - -.border-s-errorlight\/60 { - border-inline-start-color: rgb(255 236 236 / 0.6); -} - -.border-s-errorlight\/70 { - border-inline-start-color: rgb(255 236 236 / 0.7); -} - -.border-s-errorlight\/75 { - border-inline-start-color: rgb(255 236 236 / 0.75); -} - -.border-s-errorlight\/80 { - border-inline-start-color: rgb(255 236 236 / 0.8); -} - -.border-s-errorlight\/90 { - border-inline-start-color: rgb(255 236 236 / 0.9); -} - -.border-s-errorlight\/95 { - border-inline-start-color: rgb(255 236 236 / 0.95); -} - -.border-s-errorlight\/shadow { - border-inline-start-color: rgb(255 236 236 / .15); -} - -.border-s-google { - --tw-border-opacity: 1; - border-inline-start-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-s-google\/0 { - border-inline-start-color: rgb(234 67 53 / 0); -} - -.border-s-google\/10 { - border-inline-start-color: rgb(234 67 53 / 0.1); -} - -.border-s-google\/100 { - border-inline-start-color: rgb(234 67 53 / 1); -} - -.border-s-google\/20 { - border-inline-start-color: rgb(234 67 53 / 0.2); -} - -.border-s-google\/25 { - border-inline-start-color: rgb(234 67 53 / 0.25); -} - -.border-s-google\/30 { - border-inline-start-color: rgb(234 67 53 / 0.3); -} - -.border-s-google\/40 { - border-inline-start-color: rgb(234 67 53 / 0.4); -} - -.border-s-google\/5 { - border-inline-start-color: rgb(234 67 53 / 0.05); -} - -.border-s-google\/50 { - border-inline-start-color: rgb(234 67 53 / 0.5); -} - -.border-s-google\/60 { - border-inline-start-color: rgb(234 67 53 / 0.6); -} - -.border-s-google\/70 { - border-inline-start-color: rgb(234 67 53 / 0.7); -} - -.border-s-google\/75 { - border-inline-start-color: rgb(234 67 53 / 0.75); -} - -.border-s-google\/80 { - border-inline-start-color: rgb(234 67 53 / 0.8); -} - -.border-s-google\/90 { - border-inline-start-color: rgb(234 67 53 / 0.9); -} - -.border-s-google\/95 { - border-inline-start-color: rgb(234 67 53 / 0.95); -} - -.border-s-google\/shadow { - border-inline-start-color: rgb(234 67 53 / .15); -} - -.border-s-grey1 { - --tw-border-opacity: 1; - border-inline-start-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-s-grey1\/0 { - border-inline-start-color: rgb(34 34 34 / 0); -} - -.border-s-grey1\/10 { - border-inline-start-color: rgb(34 34 34 / 0.1); -} - -.border-s-grey1\/100 { - border-inline-start-color: rgb(34 34 34 / 1); -} - -.border-s-grey1\/20 { - border-inline-start-color: rgb(34 34 34 / 0.2); -} - -.border-s-grey1\/25 { - border-inline-start-color: rgb(34 34 34 / 0.25); -} - -.border-s-grey1\/30 { - border-inline-start-color: rgb(34 34 34 / 0.3); -} - -.border-s-grey1\/40 { - border-inline-start-color: rgb(34 34 34 / 0.4); -} - -.border-s-grey1\/5 { - border-inline-start-color: rgb(34 34 34 / 0.05); -} - -.border-s-grey1\/50 { - border-inline-start-color: rgb(34 34 34 / 0.5); -} - -.border-s-grey1\/60 { - border-inline-start-color: rgb(34 34 34 / 0.6); -} - -.border-s-grey1\/70 { - border-inline-start-color: rgb(34 34 34 / 0.7); -} - -.border-s-grey1\/75 { - border-inline-start-color: rgb(34 34 34 / 0.75); -} - -.border-s-grey1\/80 { - border-inline-start-color: rgb(34 34 34 / 0.8); -} - -.border-s-grey1\/90 { - border-inline-start-color: rgb(34 34 34 / 0.9); -} - -.border-s-grey1\/95 { - border-inline-start-color: rgb(34 34 34 / 0.95); -} - -.border-s-grey1\/shadow { - border-inline-start-color: rgb(34 34 34 / .15); -} - -.border-s-grey2 { - --tw-border-opacity: 1; - border-inline-start-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-s-grey2\/0 { - border-inline-start-color: rgb(153 153 153 / 0); -} - -.border-s-grey2\/10 { - border-inline-start-color: rgb(153 153 153 / 0.1); -} - -.border-s-grey2\/100 { - border-inline-start-color: rgb(153 153 153 / 1); -} - -.border-s-grey2\/20 { - border-inline-start-color: rgb(153 153 153 / 0.2); -} - -.border-s-grey2\/25 { - border-inline-start-color: rgb(153 153 153 / 0.25); -} - -.border-s-grey2\/30 { - border-inline-start-color: rgb(153 153 153 / 0.3); -} - -.border-s-grey2\/40 { - border-inline-start-color: rgb(153 153 153 / 0.4); -} - -.border-s-grey2\/5 { - border-inline-start-color: rgb(153 153 153 / 0.05); -} - -.border-s-grey2\/50 { - border-inline-start-color: rgb(153 153 153 / 0.5); -} - -.border-s-grey2\/60 { - border-inline-start-color: rgb(153 153 153 / 0.6); -} - -.border-s-grey2\/70 { - border-inline-start-color: rgb(153 153 153 / 0.7); -} - -.border-s-grey2\/75 { - border-inline-start-color: rgb(153 153 153 / 0.75); -} - -.border-s-grey2\/80 { - border-inline-start-color: rgb(153 153 153 / 0.8); -} - -.border-s-grey2\/90 { - border-inline-start-color: rgb(153 153 153 / 0.9); -} - -.border-s-grey2\/95 { - border-inline-start-color: rgb(153 153 153 / 0.95); -} - -.border-s-grey2\/shadow { - border-inline-start-color: rgb(153 153 153 / .15); -} - -.border-s-grey3 { - --tw-border-opacity: 1; - border-inline-start-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-s-grey3\/0 { - border-inline-start-color: rgb(204 204 204 / 0); -} - -.border-s-grey3\/10 { - border-inline-start-color: rgb(204 204 204 / 0.1); -} - -.border-s-grey3\/100 { - border-inline-start-color: rgb(204 204 204 / 1); -} - -.border-s-grey3\/20 { - border-inline-start-color: rgb(204 204 204 / 0.2); -} - -.border-s-grey3\/25 { - border-inline-start-color: rgb(204 204 204 / 0.25); -} - -.border-s-grey3\/30 { - border-inline-start-color: rgb(204 204 204 / 0.3); -} - -.border-s-grey3\/40 { - border-inline-start-color: rgb(204 204 204 / 0.4); -} - -.border-s-grey3\/5 { - border-inline-start-color: rgb(204 204 204 / 0.05); -} - -.border-s-grey3\/50 { - border-inline-start-color: rgb(204 204 204 / 0.5); -} - -.border-s-grey3\/60 { - border-inline-start-color: rgb(204 204 204 / 0.6); -} - -.border-s-grey3\/70 { - border-inline-start-color: rgb(204 204 204 / 0.7); -} - -.border-s-grey3\/75 { - border-inline-start-color: rgb(204 204 204 / 0.75); -} - -.border-s-grey3\/80 { - border-inline-start-color: rgb(204 204 204 / 0.8); -} - -.border-s-grey3\/90 { - border-inline-start-color: rgb(204 204 204 / 0.9); -} - -.border-s-grey3\/95 { - border-inline-start-color: rgb(204 204 204 / 0.95); -} - -.border-s-grey3\/shadow { - border-inline-start-color: rgb(204 204 204 / .15); -} - -.border-s-grey4 { - --tw-border-opacity: 1; - border-inline-start-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-s-grey4\/0 { - border-inline-start-color: rgb(238 238 238 / 0); -} - -.border-s-grey4\/10 { - border-inline-start-color: rgb(238 238 238 / 0.1); -} - -.border-s-grey4\/100 { - border-inline-start-color: rgb(238 238 238 / 1); -} - -.border-s-grey4\/20 { - border-inline-start-color: rgb(238 238 238 / 0.2); -} - -.border-s-grey4\/25 { - border-inline-start-color: rgb(238 238 238 / 0.25); -} - -.border-s-grey4\/30 { - border-inline-start-color: rgb(238 238 238 / 0.3); -} - -.border-s-grey4\/40 { - border-inline-start-color: rgb(238 238 238 / 0.4); -} - -.border-s-grey4\/5 { - border-inline-start-color: rgb(238 238 238 / 0.05); -} - -.border-s-grey4\/50 { - border-inline-start-color: rgb(238 238 238 / 0.5); -} - -.border-s-grey4\/60 { - border-inline-start-color: rgb(238 238 238 / 0.6); -} - -.border-s-grey4\/70 { - border-inline-start-color: rgb(238 238 238 / 0.7); -} - -.border-s-grey4\/75 { - border-inline-start-color: rgb(238 238 238 / 0.75); -} - -.border-s-grey4\/80 { - border-inline-start-color: rgb(238 238 238 / 0.8); -} - -.border-s-grey4\/90 { - border-inline-start-color: rgb(238 238 238 / 0.9); -} - -.border-s-grey4\/95 { - border-inline-start-color: rgb(238 238 238 / 0.95); -} - -.border-s-grey4\/shadow { - border-inline-start-color: rgb(238 238 238 / .15); -} - -.border-s-grey5 { - --tw-border-opacity: 1; - border-inline-start-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-s-grey5\/0 { - border-inline-start-color: rgb(246 246 246 / 0); -} - -.border-s-grey5\/10 { - border-inline-start-color: rgb(246 246 246 / 0.1); -} - -.border-s-grey5\/100 { - border-inline-start-color: rgb(246 246 246 / 1); -} - -.border-s-grey5\/20 { - border-inline-start-color: rgb(246 246 246 / 0.2); -} - -.border-s-grey5\/25 { - border-inline-start-color: rgb(246 246 246 / 0.25); -} - -.border-s-grey5\/30 { - border-inline-start-color: rgb(246 246 246 / 0.3); -} - -.border-s-grey5\/40 { - border-inline-start-color: rgb(246 246 246 / 0.4); -} - -.border-s-grey5\/5 { - border-inline-start-color: rgb(246 246 246 / 0.05); -} - -.border-s-grey5\/50 { - border-inline-start-color: rgb(246 246 246 / 0.5); -} - -.border-s-grey5\/60 { - border-inline-start-color: rgb(246 246 246 / 0.6); -} - -.border-s-grey5\/70 { - border-inline-start-color: rgb(246 246 246 / 0.7); -} - -.border-s-grey5\/75 { - border-inline-start-color: rgb(246 246 246 / 0.75); -} - -.border-s-grey5\/80 { - border-inline-start-color: rgb(246 246 246 / 0.8); -} - -.border-s-grey5\/90 { - border-inline-start-color: rgb(246 246 246 / 0.9); -} - -.border-s-grey5\/95 { - border-inline-start-color: rgb(246 246 246 / 0.95); -} - -.border-s-grey5\/shadow { - border-inline-start-color: rgb(246 246 246 / .15); -} - -.border-s-grey6 { - --tw-border-opacity: 1; - border-inline-start-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-s-grey6\/0 { - border-inline-start-color: rgb(250 250 250 / 0); -} - -.border-s-grey6\/10 { - border-inline-start-color: rgb(250 250 250 / 0.1); -} - -.border-s-grey6\/100 { - border-inline-start-color: rgb(250 250 250 / 1); -} - -.border-s-grey6\/20 { - border-inline-start-color: rgb(250 250 250 / 0.2); -} - -.border-s-grey6\/25 { - border-inline-start-color: rgb(250 250 250 / 0.25); -} - -.border-s-grey6\/30 { - border-inline-start-color: rgb(250 250 250 / 0.3); -} - -.border-s-grey6\/40 { - border-inline-start-color: rgb(250 250 250 / 0.4); -} - -.border-s-grey6\/5 { - border-inline-start-color: rgb(250 250 250 / 0.05); -} - -.border-s-grey6\/50 { - border-inline-start-color: rgb(250 250 250 / 0.5); -} - -.border-s-grey6\/60 { - border-inline-start-color: rgb(250 250 250 / 0.6); -} - -.border-s-grey6\/70 { - border-inline-start-color: rgb(250 250 250 / 0.7); -} - -.border-s-grey6\/75 { - border-inline-start-color: rgb(250 250 250 / 0.75); -} - -.border-s-grey6\/80 { - border-inline-start-color: rgb(250 250 250 / 0.8); -} - -.border-s-grey6\/90 { - border-inline-start-color: rgb(250 250 250 / 0.9); -} - -.border-s-grey6\/95 { - border-inline-start-color: rgb(250 250 250 / 0.95); -} - -.border-s-grey6\/shadow { - border-inline-start-color: rgb(250 250 250 / .15); -} - -.border-s-primary { - --tw-border-opacity: 1; - border-inline-start-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-s-primary\/0 { - border-inline-start-color: rgb(66 114 239 / 0); -} - -.border-s-primary\/10 { - border-inline-start-color: rgb(66 114 239 / 0.1); -} - -.border-s-primary\/100 { - border-inline-start-color: rgb(66 114 239 / 1); -} - -.border-s-primary\/20 { - border-inline-start-color: rgb(66 114 239 / 0.2); -} - -.border-s-primary\/25 { - border-inline-start-color: rgb(66 114 239 / 0.25); -} - -.border-s-primary\/30 { - border-inline-start-color: rgb(66 114 239 / 0.3); -} - -.border-s-primary\/40 { - border-inline-start-color: rgb(66 114 239 / 0.4); -} - -.border-s-primary\/5 { - border-inline-start-color: rgb(66 114 239 / 0.05); -} - -.border-s-primary\/50 { - border-inline-start-color: rgb(66 114 239 / 0.5); -} - -.border-s-primary\/60 { - border-inline-start-color: rgb(66 114 239 / 0.6); -} - -.border-s-primary\/70 { - border-inline-start-color: rgb(66 114 239 / 0.7); -} - -.border-s-primary\/75 { - border-inline-start-color: rgb(66 114 239 / 0.75); -} - -.border-s-primary\/80 { - border-inline-start-color: rgb(66 114 239 / 0.8); -} - -.border-s-primary\/90 { - border-inline-start-color: rgb(66 114 239 / 0.9); -} - -.border-s-primary\/95 { - border-inline-start-color: rgb(66 114 239 / 0.95); -} - -.border-s-primary\/shadow { - border-inline-start-color: rgb(66 114 239 / .15); -} - -.border-s-primarylight { - --tw-border-opacity: 1; - border-inline-start-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-s-primarylight\/0 { - border-inline-start-color: rgb(227 234 253 / 0); -} - -.border-s-primarylight\/10 { - border-inline-start-color: rgb(227 234 253 / 0.1); -} - -.border-s-primarylight\/100 { - border-inline-start-color: rgb(227 234 253 / 1); -} - -.border-s-primarylight\/20 { - border-inline-start-color: rgb(227 234 253 / 0.2); -} - -.border-s-primarylight\/25 { - border-inline-start-color: rgb(227 234 253 / 0.25); -} - -.border-s-primarylight\/30 { - border-inline-start-color: rgb(227 234 253 / 0.3); -} - -.border-s-primarylight\/40 { - border-inline-start-color: rgb(227 234 253 / 0.4); -} - -.border-s-primarylight\/5 { - border-inline-start-color: rgb(227 234 253 / 0.05); -} - -.border-s-primarylight\/50 { - border-inline-start-color: rgb(227 234 253 / 0.5); -} - -.border-s-primarylight\/60 { - border-inline-start-color: rgb(227 234 253 / 0.6); -} - -.border-s-primarylight\/70 { - border-inline-start-color: rgb(227 234 253 / 0.7); -} - -.border-s-primarylight\/75 { - border-inline-start-color: rgb(227 234 253 / 0.75); -} - -.border-s-primarylight\/80 { - border-inline-start-color: rgb(227 234 253 / 0.8); -} - -.border-s-primarylight\/90 { - border-inline-start-color: rgb(227 234 253 / 0.9); -} - -.border-s-primarylight\/95 { - border-inline-start-color: rgb(227 234 253 / 0.95); -} - -.border-s-primarylight\/shadow { - border-inline-start-color: rgb(227 234 253 / .15); -} - -.border-s-secondary { - --tw-border-opacity: 1; - border-inline-start-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-s-secondary\/0 { - border-inline-start-color: rgb(255 94 94 / 0); -} - -.border-s-secondary\/10 { - border-inline-start-color: rgb(255 94 94 / 0.1); -} - -.border-s-secondary\/100 { - border-inline-start-color: rgb(255 94 94 / 1); -} - -.border-s-secondary\/20 { - border-inline-start-color: rgb(255 94 94 / 0.2); -} - -.border-s-secondary\/25 { - border-inline-start-color: rgb(255 94 94 / 0.25); -} - -.border-s-secondary\/30 { - border-inline-start-color: rgb(255 94 94 / 0.3); -} - -.border-s-secondary\/40 { - border-inline-start-color: rgb(255 94 94 / 0.4); -} - -.border-s-secondary\/5 { - border-inline-start-color: rgb(255 94 94 / 0.05); -} - -.border-s-secondary\/50 { - border-inline-start-color: rgb(255 94 94 / 0.5); -} - -.border-s-secondary\/60 { - border-inline-start-color: rgb(255 94 94 / 0.6); -} - -.border-s-secondary\/70 { - border-inline-start-color: rgb(255 94 94 / 0.7); -} - -.border-s-secondary\/75 { - border-inline-start-color: rgb(255 94 94 / 0.75); -} - -.border-s-secondary\/80 { - border-inline-start-color: rgb(255 94 94 / 0.8); -} - -.border-s-secondary\/90 { - border-inline-start-color: rgb(255 94 94 / 0.9); -} - -.border-s-secondary\/95 { - border-inline-start-color: rgb(255 94 94 / 0.95); -} - -.border-s-secondary\/shadow { - border-inline-start-color: rgb(255 94 94 / .15); -} - -.border-s-success { - --tw-border-opacity: 1; - border-inline-start-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-s-success\/0 { - border-inline-start-color: rgb(111 202 55 / 0); -} - -.border-s-success\/10 { - border-inline-start-color: rgb(111 202 55 / 0.1); -} - -.border-s-success\/100 { - border-inline-start-color: rgb(111 202 55 / 1); -} - -.border-s-success\/20 { - border-inline-start-color: rgb(111 202 55 / 0.2); -} - -.border-s-success\/25 { - border-inline-start-color: rgb(111 202 55 / 0.25); -} - -.border-s-success\/30 { - border-inline-start-color: rgb(111 202 55 / 0.3); -} - -.border-s-success\/40 { - border-inline-start-color: rgb(111 202 55 / 0.4); -} - -.border-s-success\/5 { - border-inline-start-color: rgb(111 202 55 / 0.05); -} - -.border-s-success\/50 { - border-inline-start-color: rgb(111 202 55 / 0.5); -} - -.border-s-success\/60 { - border-inline-start-color: rgb(111 202 55 / 0.6); -} - -.border-s-success\/70 { - border-inline-start-color: rgb(111 202 55 / 0.7); -} - -.border-s-success\/75 { - border-inline-start-color: rgb(111 202 55 / 0.75); -} - -.border-s-success\/80 { - border-inline-start-color: rgb(111 202 55 / 0.8); -} - -.border-s-success\/90 { - border-inline-start-color: rgb(111 202 55 / 0.9); -} - -.border-s-success\/95 { - border-inline-start-color: rgb(111 202 55 / 0.95); -} - -.border-s-success\/shadow { - border-inline-start-color: rgb(111 202 55 / .15); -} - -.border-s-successlight { - --tw-border-opacity: 1; - border-inline-start-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-s-successlight\/0 { - border-inline-start-color: rgb(235 255 223 / 0); -} - -.border-s-successlight\/10 { - border-inline-start-color: rgb(235 255 223 / 0.1); -} - -.border-s-successlight\/100 { - border-inline-start-color: rgb(235 255 223 / 1); -} - -.border-s-successlight\/20 { - border-inline-start-color: rgb(235 255 223 / 0.2); -} - -.border-s-successlight\/25 { - border-inline-start-color: rgb(235 255 223 / 0.25); -} - -.border-s-successlight\/30 { - border-inline-start-color: rgb(235 255 223 / 0.3); -} - -.border-s-successlight\/40 { - border-inline-start-color: rgb(235 255 223 / 0.4); -} - -.border-s-successlight\/5 { - border-inline-start-color: rgb(235 255 223 / 0.05); -} - -.border-s-successlight\/50 { - border-inline-start-color: rgb(235 255 223 / 0.5); -} - -.border-s-successlight\/60 { - border-inline-start-color: rgb(235 255 223 / 0.6); -} - -.border-s-successlight\/70 { - border-inline-start-color: rgb(235 255 223 / 0.7); -} - -.border-s-successlight\/75 { - border-inline-start-color: rgb(235 255 223 / 0.75); -} - -.border-s-successlight\/80 { - border-inline-start-color: rgb(235 255 223 / 0.8); -} - -.border-s-successlight\/90 { - border-inline-start-color: rgb(235 255 223 / 0.9); -} - -.border-s-successlight\/95 { - border-inline-start-color: rgb(235 255 223 / 0.95); -} - -.border-s-successlight\/shadow { - border-inline-start-color: rgb(235 255 223 / .15); -} - -.border-s-surfconext { - --tw-border-opacity: 1; - border-inline-start-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-s-surfconext\/0 { - border-inline-start-color: rgb(77 178 207 / 0); -} - -.border-s-surfconext\/10 { - border-inline-start-color: rgb(77 178 207 / 0.1); -} - -.border-s-surfconext\/100 { - border-inline-start-color: rgb(77 178 207 / 1); -} - -.border-s-surfconext\/20 { - border-inline-start-color: rgb(77 178 207 / 0.2); -} - -.border-s-surfconext\/25 { - border-inline-start-color: rgb(77 178 207 / 0.25); -} - -.border-s-surfconext\/30 { - border-inline-start-color: rgb(77 178 207 / 0.3); -} - -.border-s-surfconext\/40 { - border-inline-start-color: rgb(77 178 207 / 0.4); -} - -.border-s-surfconext\/5 { - border-inline-start-color: rgb(77 178 207 / 0.05); -} - -.border-s-surfconext\/50 { - border-inline-start-color: rgb(77 178 207 / 0.5); -} - -.border-s-surfconext\/60 { - border-inline-start-color: rgb(77 178 207 / 0.6); -} - -.border-s-surfconext\/70 { - border-inline-start-color: rgb(77 178 207 / 0.7); -} - -.border-s-surfconext\/75 { - border-inline-start-color: rgb(77 178 207 / 0.75); -} - -.border-s-surfconext\/80 { - border-inline-start-color: rgb(77 178 207 / 0.8); -} - -.border-s-surfconext\/90 { - border-inline-start-color: rgb(77 178 207 / 0.9); -} - -.border-s-surfconext\/95 { - border-inline-start-color: rgb(77 178 207 / 0.95); -} - -.border-s-surfconext\/shadow { - border-inline-start-color: rgb(77 178 207 / .15); -} - -.border-s-tertiary { - --tw-border-opacity: 1; - border-inline-start-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-s-tertiary\/0 { - border-inline-start-color: rgb(255 207 96 / 0); -} - -.border-s-tertiary\/10 { - border-inline-start-color: rgb(255 207 96 / 0.1); -} - -.border-s-tertiary\/100 { - border-inline-start-color: rgb(255 207 96 / 1); -} - -.border-s-tertiary\/20 { - border-inline-start-color: rgb(255 207 96 / 0.2); -} - -.border-s-tertiary\/25 { - border-inline-start-color: rgb(255 207 96 / 0.25); -} - -.border-s-tertiary\/30 { - border-inline-start-color: rgb(255 207 96 / 0.3); -} - -.border-s-tertiary\/40 { - border-inline-start-color: rgb(255 207 96 / 0.4); -} - -.border-s-tertiary\/5 { - border-inline-start-color: rgb(255 207 96 / 0.05); -} - -.border-s-tertiary\/50 { - border-inline-start-color: rgb(255 207 96 / 0.5); -} - -.border-s-tertiary\/60 { - border-inline-start-color: rgb(255 207 96 / 0.6); -} - -.border-s-tertiary\/70 { - border-inline-start-color: rgb(255 207 96 / 0.7); -} - -.border-s-tertiary\/75 { - border-inline-start-color: rgb(255 207 96 / 0.75); -} - -.border-s-tertiary\/80 { - border-inline-start-color: rgb(255 207 96 / 0.8); -} - -.border-s-tertiary\/90 { - border-inline-start-color: rgb(255 207 96 / 0.9); -} - -.border-s-tertiary\/95 { - border-inline-start-color: rgb(255 207 96 / 0.95); -} - -.border-s-tertiary\/shadow { - border-inline-start-color: rgb(255 207 96 / .15); -} - -.border-s-warning { - --tw-border-opacity: 1; - border-inline-start-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-s-warning\/0 { - border-inline-start-color: rgb(242 141 21 / 0); -} - -.border-s-warning\/10 { - border-inline-start-color: rgb(242 141 21 / 0.1); -} - -.border-s-warning\/100 { - border-inline-start-color: rgb(242 141 21 / 1); -} - -.border-s-warning\/20 { - border-inline-start-color: rgb(242 141 21 / 0.2); -} - -.border-s-warning\/25 { - border-inline-start-color: rgb(242 141 21 / 0.25); -} - -.border-s-warning\/30 { - border-inline-start-color: rgb(242 141 21 / 0.3); -} - -.border-s-warning\/40 { - border-inline-start-color: rgb(242 141 21 / 0.4); -} - -.border-s-warning\/5 { - border-inline-start-color: rgb(242 141 21 / 0.05); -} - -.border-s-warning\/50 { - border-inline-start-color: rgb(242 141 21 / 0.5); -} - -.border-s-warning\/60 { - border-inline-start-color: rgb(242 141 21 / 0.6); -} - -.border-s-warning\/70 { - border-inline-start-color: rgb(242 141 21 / 0.7); -} - -.border-s-warning\/75 { - border-inline-start-color: rgb(242 141 21 / 0.75); -} - -.border-s-warning\/80 { - border-inline-start-color: rgb(242 141 21 / 0.8); -} - -.border-s-warning\/90 { - border-inline-start-color: rgb(242 141 21 / 0.9); -} - -.border-s-warning\/95 { - border-inline-start-color: rgb(242 141 21 / 0.95); -} - -.border-s-warning\/shadow { - border-inline-start-color: rgb(242 141 21 / .15); -} - -.border-s-warninglight { - --tw-border-opacity: 1; - border-inline-start-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-s-warninglight\/0 { - border-inline-start-color: rgb(255 239 220 / 0); -} - -.border-s-warninglight\/10 { - border-inline-start-color: rgb(255 239 220 / 0.1); -} - -.border-s-warninglight\/100 { - border-inline-start-color: rgb(255 239 220 / 1); -} - -.border-s-warninglight\/20 { - border-inline-start-color: rgb(255 239 220 / 0.2); -} - -.border-s-warninglight\/25 { - border-inline-start-color: rgb(255 239 220 / 0.25); -} - -.border-s-warninglight\/30 { - border-inline-start-color: rgb(255 239 220 / 0.3); -} - -.border-s-warninglight\/40 { - border-inline-start-color: rgb(255 239 220 / 0.4); -} - -.border-s-warninglight\/5 { - border-inline-start-color: rgb(255 239 220 / 0.05); -} - -.border-s-warninglight\/50 { - border-inline-start-color: rgb(255 239 220 / 0.5); -} - -.border-s-warninglight\/60 { - border-inline-start-color: rgb(255 239 220 / 0.6); -} - -.border-s-warninglight\/70 { - border-inline-start-color: rgb(255 239 220 / 0.7); -} - -.border-s-warninglight\/75 { - border-inline-start-color: rgb(255 239 220 / 0.75); -} - -.border-s-warninglight\/80 { - border-inline-start-color: rgb(255 239 220 / 0.8); -} - -.border-s-warninglight\/90 { - border-inline-start-color: rgb(255 239 220 / 0.9); -} - -.border-s-warninglight\/95 { - border-inline-start-color: rgb(255 239 220 / 0.95); -} - -.border-s-warninglight\/shadow { - border-inline-start-color: rgb(255 239 220 / .15); -} - -.border-s-white { - --tw-border-opacity: 1; - border-inline-start-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-s-white\/0 { - border-inline-start-color: rgb(255 255 255 / 0); -} - -.border-s-white\/10 { - border-inline-start-color: rgb(255 255 255 / 0.1); -} - -.border-s-white\/100 { - border-inline-start-color: rgb(255 255 255 / 1); -} - -.border-s-white\/20 { - border-inline-start-color: rgb(255 255 255 / 0.2); -} - -.border-s-white\/25 { - border-inline-start-color: rgb(255 255 255 / 0.25); -} - -.border-s-white\/30 { - border-inline-start-color: rgb(255 255 255 / 0.3); -} - -.border-s-white\/40 { - border-inline-start-color: rgb(255 255 255 / 0.4); -} - -.border-s-white\/5 { - border-inline-start-color: rgb(255 255 255 / 0.05); -} - -.border-s-white\/50 { - border-inline-start-color: rgb(255 255 255 / 0.5); -} - -.border-s-white\/60 { - border-inline-start-color: rgb(255 255 255 / 0.6); -} - -.border-s-white\/70 { - border-inline-start-color: rgb(255 255 255 / 0.7); -} - -.border-s-white\/75 { - border-inline-start-color: rgb(255 255 255 / 0.75); -} - -.border-s-white\/80 { - border-inline-start-color: rgb(255 255 255 / 0.8); -} - -.border-s-white\/90 { - border-inline-start-color: rgb(255 255 255 / 0.9); -} - -.border-s-white\/95 { - border-inline-start-color: rgb(255 255 255 / 0.95); -} - -.border-s-white\/shadow { - border-inline-start-color: rgb(255 255 255 / .15); -} - -.border-t-apple { - --tw-border-opacity: 1; - border-top-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-t-apple\/0 { - border-top-color: rgb(0 0 0 / 0); -} - -.border-t-apple\/10 { - border-top-color: rgb(0 0 0 / 0.1); -} - -.border-t-apple\/100 { - border-top-color: rgb(0 0 0 / 1); -} - -.border-t-apple\/20 { - border-top-color: rgb(0 0 0 / 0.2); -} - -.border-t-apple\/25 { - border-top-color: rgb(0 0 0 / 0.25); -} - -.border-t-apple\/30 { - border-top-color: rgb(0 0 0 / 0.3); -} - -.border-t-apple\/40 { - border-top-color: rgb(0 0 0 / 0.4); -} - -.border-t-apple\/5 { - border-top-color: rgb(0 0 0 / 0.05); -} - -.border-t-apple\/50 { - border-top-color: rgb(0 0 0 / 0.5); -} - -.border-t-apple\/60 { - border-top-color: rgb(0 0 0 / 0.6); -} - -.border-t-apple\/70 { - border-top-color: rgb(0 0 0 / 0.7); -} - -.border-t-apple\/75 { - border-top-color: rgb(0 0 0 / 0.75); -} - -.border-t-apple\/80 { - border-top-color: rgb(0 0 0 / 0.8); -} - -.border-t-apple\/90 { - border-top-color: rgb(0 0 0 / 0.9); -} - -.border-t-apple\/95 { - border-top-color: rgb(0 0 0 / 0.95); -} - -.border-t-apple\/shadow { - border-top-color: rgb(0 0 0 / .15); -} - -.border-t-black { - --tw-border-opacity: 1; - border-top-color: rgb(0 0 0 / var(--tw-border-opacity)); -} - -.border-t-black\/0 { - border-top-color: rgb(0 0 0 / 0); -} - -.border-t-black\/10 { - border-top-color: rgb(0 0 0 / 0.1); -} - -.border-t-black\/100 { - border-top-color: rgb(0 0 0 / 1); -} - -.border-t-black\/20 { - border-top-color: rgb(0 0 0 / 0.2); -} - -.border-t-black\/25 { - border-top-color: rgb(0 0 0 / 0.25); -} - -.border-t-black\/30 { - border-top-color: rgb(0 0 0 / 0.3); -} - -.border-t-black\/40 { - border-top-color: rgb(0 0 0 / 0.4); -} - -.border-t-black\/5 { - border-top-color: rgb(0 0 0 / 0.05); -} - -.border-t-black\/50 { - border-top-color: rgb(0 0 0 / 0.5); -} - -.border-t-black\/60 { - border-top-color: rgb(0 0 0 / 0.6); -} - -.border-t-black\/70 { - border-top-color: rgb(0 0 0 / 0.7); -} - -.border-t-black\/75 { - border-top-color: rgb(0 0 0 / 0.75); -} - -.border-t-black\/80 { - border-top-color: rgb(0 0 0 / 0.8); -} - -.border-t-black\/90 { - border-top-color: rgb(0 0 0 / 0.9); -} - -.border-t-black\/95 { - border-top-color: rgb(0 0 0 / 0.95); -} - -.border-t-black\/shadow { - border-top-color: rgb(0 0 0 / .15); -} - -.border-t-delete { - --tw-border-opacity: 1; - border-top-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-t-delete\/0 { - border-top-color: rgb(219 30 30 / 0); -} - -.border-t-delete\/10 { - border-top-color: rgb(219 30 30 / 0.1); -} - -.border-t-delete\/100 { - border-top-color: rgb(219 30 30 / 1); -} - -.border-t-delete\/20 { - border-top-color: rgb(219 30 30 / 0.2); -} - -.border-t-delete\/25 { - border-top-color: rgb(219 30 30 / 0.25); -} - -.border-t-delete\/30 { - border-top-color: rgb(219 30 30 / 0.3); -} - -.border-t-delete\/40 { - border-top-color: rgb(219 30 30 / 0.4); -} - -.border-t-delete\/5 { - border-top-color: rgb(219 30 30 / 0.05); -} - -.border-t-delete\/50 { - border-top-color: rgb(219 30 30 / 0.5); -} - -.border-t-delete\/60 { - border-top-color: rgb(219 30 30 / 0.6); -} - -.border-t-delete\/70 { - border-top-color: rgb(219 30 30 / 0.7); -} - -.border-t-delete\/75 { - border-top-color: rgb(219 30 30 / 0.75); -} - -.border-t-delete\/80 { - border-top-color: rgb(219 30 30 / 0.8); -} - -.border-t-delete\/90 { - border-top-color: rgb(219 30 30 / 0.9); -} - -.border-t-delete\/95 { - border-top-color: rgb(219 30 30 / 0.95); -} - -.border-t-delete\/shadow { - border-top-color: rgb(219 30 30 / .15); -} - -.border-t-deletelight { - --tw-border-opacity: 1; - border-top-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-t-deletelight\/0 { - border-top-color: rgb(255 236 236 / 0); -} - -.border-t-deletelight\/10 { - border-top-color: rgb(255 236 236 / 0.1); -} - -.border-t-deletelight\/100 { - border-top-color: rgb(255 236 236 / 1); -} - -.border-t-deletelight\/20 { - border-top-color: rgb(255 236 236 / 0.2); -} - -.border-t-deletelight\/25 { - border-top-color: rgb(255 236 236 / 0.25); -} - -.border-t-deletelight\/30 { - border-top-color: rgb(255 236 236 / 0.3); -} - -.border-t-deletelight\/40 { - border-top-color: rgb(255 236 236 / 0.4); -} - -.border-t-deletelight\/5 { - border-top-color: rgb(255 236 236 / 0.05); -} - -.border-t-deletelight\/50 { - border-top-color: rgb(255 236 236 / 0.5); -} - -.border-t-deletelight\/60 { - border-top-color: rgb(255 236 236 / 0.6); -} - -.border-t-deletelight\/70 { - border-top-color: rgb(255 236 236 / 0.7); -} - -.border-t-deletelight\/75 { - border-top-color: rgb(255 236 236 / 0.75); -} - -.border-t-deletelight\/80 { - border-top-color: rgb(255 236 236 / 0.8); -} - -.border-t-deletelight\/90 { - border-top-color: rgb(255 236 236 / 0.9); -} - -.border-t-deletelight\/95 { - border-top-color: rgb(255 236 236 / 0.95); -} - -.border-t-deletelight\/shadow { - border-top-color: rgb(255 236 236 / .15); -} - -.border-t-error { - --tw-border-opacity: 1; - border-top-color: rgb(219 30 30 / var(--tw-border-opacity)); -} - -.border-t-error\/0 { - border-top-color: rgb(219 30 30 / 0); -} - -.border-t-error\/10 { - border-top-color: rgb(219 30 30 / 0.1); -} - -.border-t-error\/100 { - border-top-color: rgb(219 30 30 / 1); -} - -.border-t-error\/20 { - border-top-color: rgb(219 30 30 / 0.2); -} - -.border-t-error\/25 { - border-top-color: rgb(219 30 30 / 0.25); -} - -.border-t-error\/30 { - border-top-color: rgb(219 30 30 / 0.3); -} - -.border-t-error\/40 { - border-top-color: rgb(219 30 30 / 0.4); -} - -.border-t-error\/5 { - border-top-color: rgb(219 30 30 / 0.05); -} - -.border-t-error\/50 { - border-top-color: rgb(219 30 30 / 0.5); -} - -.border-t-error\/60 { - border-top-color: rgb(219 30 30 / 0.6); -} - -.border-t-error\/70 { - border-top-color: rgb(219 30 30 / 0.7); -} - -.border-t-error\/75 { - border-top-color: rgb(219 30 30 / 0.75); -} - -.border-t-error\/80 { - border-top-color: rgb(219 30 30 / 0.8); -} - -.border-t-error\/90 { - border-top-color: rgb(219 30 30 / 0.9); -} - -.border-t-error\/95 { - border-top-color: rgb(219 30 30 / 0.95); -} - -.border-t-error\/shadow { - border-top-color: rgb(219 30 30 / .15); -} - -.border-t-errorlight { - --tw-border-opacity: 1; - border-top-color: rgb(255 236 236 / var(--tw-border-opacity)); -} - -.border-t-errorlight\/0 { - border-top-color: rgb(255 236 236 / 0); -} - -.border-t-errorlight\/10 { - border-top-color: rgb(255 236 236 / 0.1); -} - -.border-t-errorlight\/100 { - border-top-color: rgb(255 236 236 / 1); -} - -.border-t-errorlight\/20 { - border-top-color: rgb(255 236 236 / 0.2); -} - -.border-t-errorlight\/25 { - border-top-color: rgb(255 236 236 / 0.25); -} - -.border-t-errorlight\/30 { - border-top-color: rgb(255 236 236 / 0.3); -} - -.border-t-errorlight\/40 { - border-top-color: rgb(255 236 236 / 0.4); -} - -.border-t-errorlight\/5 { - border-top-color: rgb(255 236 236 / 0.05); -} - -.border-t-errorlight\/50 { - border-top-color: rgb(255 236 236 / 0.5); -} - -.border-t-errorlight\/60 { - border-top-color: rgb(255 236 236 / 0.6); -} - -.border-t-errorlight\/70 { - border-top-color: rgb(255 236 236 / 0.7); -} - -.border-t-errorlight\/75 { - border-top-color: rgb(255 236 236 / 0.75); -} - -.border-t-errorlight\/80 { - border-top-color: rgb(255 236 236 / 0.8); -} - -.border-t-errorlight\/90 { - border-top-color: rgb(255 236 236 / 0.9); -} - -.border-t-errorlight\/95 { - border-top-color: rgb(255 236 236 / 0.95); -} - -.border-t-errorlight\/shadow { - border-top-color: rgb(255 236 236 / .15); -} - -.border-t-google { - --tw-border-opacity: 1; - border-top-color: rgb(234 67 53 / var(--tw-border-opacity)); -} - -.border-t-google\/0 { - border-top-color: rgb(234 67 53 / 0); -} - -.border-t-google\/10 { - border-top-color: rgb(234 67 53 / 0.1); -} - -.border-t-google\/100 { - border-top-color: rgb(234 67 53 / 1); -} - -.border-t-google\/20 { - border-top-color: rgb(234 67 53 / 0.2); -} - -.border-t-google\/25 { - border-top-color: rgb(234 67 53 / 0.25); -} - -.border-t-google\/30 { - border-top-color: rgb(234 67 53 / 0.3); -} - -.border-t-google\/40 { - border-top-color: rgb(234 67 53 / 0.4); -} - -.border-t-google\/5 { - border-top-color: rgb(234 67 53 / 0.05); -} - -.border-t-google\/50 { - border-top-color: rgb(234 67 53 / 0.5); -} - -.border-t-google\/60 { - border-top-color: rgb(234 67 53 / 0.6); -} - -.border-t-google\/70 { - border-top-color: rgb(234 67 53 / 0.7); -} - -.border-t-google\/75 { - border-top-color: rgb(234 67 53 / 0.75); -} - -.border-t-google\/80 { - border-top-color: rgb(234 67 53 / 0.8); -} - -.border-t-google\/90 { - border-top-color: rgb(234 67 53 / 0.9); -} - -.border-t-google\/95 { - border-top-color: rgb(234 67 53 / 0.95); -} - -.border-t-google\/shadow { - border-top-color: rgb(234 67 53 / .15); -} - -.border-t-grey1 { - --tw-border-opacity: 1; - border-top-color: rgb(34 34 34 / var(--tw-border-opacity)); -} - -.border-t-grey1\/0 { - border-top-color: rgb(34 34 34 / 0); -} - -.border-t-grey1\/10 { - border-top-color: rgb(34 34 34 / 0.1); -} - -.border-t-grey1\/100 { - border-top-color: rgb(34 34 34 / 1); -} - -.border-t-grey1\/20 { - border-top-color: rgb(34 34 34 / 0.2); -} - -.border-t-grey1\/25 { - border-top-color: rgb(34 34 34 / 0.25); -} - -.border-t-grey1\/30 { - border-top-color: rgb(34 34 34 / 0.3); -} - -.border-t-grey1\/40 { - border-top-color: rgb(34 34 34 / 0.4); -} - -.border-t-grey1\/5 { - border-top-color: rgb(34 34 34 / 0.05); -} - -.border-t-grey1\/50 { - border-top-color: rgb(34 34 34 / 0.5); -} - -.border-t-grey1\/60 { - border-top-color: rgb(34 34 34 / 0.6); -} - -.border-t-grey1\/70 { - border-top-color: rgb(34 34 34 / 0.7); -} - -.border-t-grey1\/75 { - border-top-color: rgb(34 34 34 / 0.75); -} - -.border-t-grey1\/80 { - border-top-color: rgb(34 34 34 / 0.8); -} - -.border-t-grey1\/90 { - border-top-color: rgb(34 34 34 / 0.9); -} - -.border-t-grey1\/95 { - border-top-color: rgb(34 34 34 / 0.95); -} - -.border-t-grey1\/shadow { - border-top-color: rgb(34 34 34 / .15); -} - -.border-t-grey2 { - --tw-border-opacity: 1; - border-top-color: rgb(153 153 153 / var(--tw-border-opacity)); -} - -.border-t-grey2\/0 { - border-top-color: rgb(153 153 153 / 0); -} - -.border-t-grey2\/10 { - border-top-color: rgb(153 153 153 / 0.1); -} - -.border-t-grey2\/100 { - border-top-color: rgb(153 153 153 / 1); -} - -.border-t-grey2\/20 { - border-top-color: rgb(153 153 153 / 0.2); -} - -.border-t-grey2\/25 { - border-top-color: rgb(153 153 153 / 0.25); -} - -.border-t-grey2\/30 { - border-top-color: rgb(153 153 153 / 0.3); -} - -.border-t-grey2\/40 { - border-top-color: rgb(153 153 153 / 0.4); -} - -.border-t-grey2\/5 { - border-top-color: rgb(153 153 153 / 0.05); -} - -.border-t-grey2\/50 { - border-top-color: rgb(153 153 153 / 0.5); -} - -.border-t-grey2\/60 { - border-top-color: rgb(153 153 153 / 0.6); -} - -.border-t-grey2\/70 { - border-top-color: rgb(153 153 153 / 0.7); -} - -.border-t-grey2\/75 { - border-top-color: rgb(153 153 153 / 0.75); -} - -.border-t-grey2\/80 { - border-top-color: rgb(153 153 153 / 0.8); -} - -.border-t-grey2\/90 { - border-top-color: rgb(153 153 153 / 0.9); -} - -.border-t-grey2\/95 { - border-top-color: rgb(153 153 153 / 0.95); -} - -.border-t-grey2\/shadow { - border-top-color: rgb(153 153 153 / .15); -} - -.border-t-grey3 { - --tw-border-opacity: 1; - border-top-color: rgb(204 204 204 / var(--tw-border-opacity)); -} - -.border-t-grey3\/0 { - border-top-color: rgb(204 204 204 / 0); -} - -.border-t-grey3\/10 { - border-top-color: rgb(204 204 204 / 0.1); -} - -.border-t-grey3\/100 { - border-top-color: rgb(204 204 204 / 1); -} - -.border-t-grey3\/20 { - border-top-color: rgb(204 204 204 / 0.2); -} - -.border-t-grey3\/25 { - border-top-color: rgb(204 204 204 / 0.25); -} - -.border-t-grey3\/30 { - border-top-color: rgb(204 204 204 / 0.3); -} - -.border-t-grey3\/40 { - border-top-color: rgb(204 204 204 / 0.4); -} - -.border-t-grey3\/5 { - border-top-color: rgb(204 204 204 / 0.05); -} - -.border-t-grey3\/50 { - border-top-color: rgb(204 204 204 / 0.5); -} - -.border-t-grey3\/60 { - border-top-color: rgb(204 204 204 / 0.6); -} - -.border-t-grey3\/70 { - border-top-color: rgb(204 204 204 / 0.7); -} - -.border-t-grey3\/75 { - border-top-color: rgb(204 204 204 / 0.75); -} - -.border-t-grey3\/80 { - border-top-color: rgb(204 204 204 / 0.8); -} - -.border-t-grey3\/90 { - border-top-color: rgb(204 204 204 / 0.9); -} - -.border-t-grey3\/95 { - border-top-color: rgb(204 204 204 / 0.95); -} - -.border-t-grey3\/shadow { - border-top-color: rgb(204 204 204 / .15); -} - -.border-t-grey4 { - --tw-border-opacity: 1; - border-top-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.border-t-grey4\/0 { - border-top-color: rgb(238 238 238 / 0); -} - -.border-t-grey4\/10 { - border-top-color: rgb(238 238 238 / 0.1); -} - -.border-t-grey4\/100 { - border-top-color: rgb(238 238 238 / 1); -} - -.border-t-grey4\/20 { - border-top-color: rgb(238 238 238 / 0.2); -} - -.border-t-grey4\/25 { - border-top-color: rgb(238 238 238 / 0.25); -} - -.border-t-grey4\/30 { - border-top-color: rgb(238 238 238 / 0.3); -} - -.border-t-grey4\/40 { - border-top-color: rgb(238 238 238 / 0.4); -} - -.border-t-grey4\/5 { - border-top-color: rgb(238 238 238 / 0.05); -} - -.border-t-grey4\/50 { - border-top-color: rgb(238 238 238 / 0.5); -} - -.border-t-grey4\/60 { - border-top-color: rgb(238 238 238 / 0.6); -} - -.border-t-grey4\/70 { - border-top-color: rgb(238 238 238 / 0.7); -} - -.border-t-grey4\/75 { - border-top-color: rgb(238 238 238 / 0.75); -} - -.border-t-grey4\/80 { - border-top-color: rgb(238 238 238 / 0.8); -} - -.border-t-grey4\/90 { - border-top-color: rgb(238 238 238 / 0.9); -} - -.border-t-grey4\/95 { - border-top-color: rgb(238 238 238 / 0.95); -} - -.border-t-grey4\/shadow { - border-top-color: rgb(238 238 238 / .15); -} - -.border-t-grey5 { - --tw-border-opacity: 1; - border-top-color: rgb(246 246 246 / var(--tw-border-opacity)); -} - -.border-t-grey5\/0 { - border-top-color: rgb(246 246 246 / 0); -} - -.border-t-grey5\/10 { - border-top-color: rgb(246 246 246 / 0.1); -} - -.border-t-grey5\/100 { - border-top-color: rgb(246 246 246 / 1); -} - -.border-t-grey5\/20 { - border-top-color: rgb(246 246 246 / 0.2); -} - -.border-t-grey5\/25 { - border-top-color: rgb(246 246 246 / 0.25); -} - -.border-t-grey5\/30 { - border-top-color: rgb(246 246 246 / 0.3); -} - -.border-t-grey5\/40 { - border-top-color: rgb(246 246 246 / 0.4); -} - -.border-t-grey5\/5 { - border-top-color: rgb(246 246 246 / 0.05); -} - -.border-t-grey5\/50 { - border-top-color: rgb(246 246 246 / 0.5); -} - -.border-t-grey5\/60 { - border-top-color: rgb(246 246 246 / 0.6); -} - -.border-t-grey5\/70 { - border-top-color: rgb(246 246 246 / 0.7); -} - -.border-t-grey5\/75 { - border-top-color: rgb(246 246 246 / 0.75); -} - -.border-t-grey5\/80 { - border-top-color: rgb(246 246 246 / 0.8); -} - -.border-t-grey5\/90 { - border-top-color: rgb(246 246 246 / 0.9); -} - -.border-t-grey5\/95 { - border-top-color: rgb(246 246 246 / 0.95); -} - -.border-t-grey5\/shadow { - border-top-color: rgb(246 246 246 / .15); -} - -.border-t-grey6 { - --tw-border-opacity: 1; - border-top-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.border-t-grey6\/0 { - border-top-color: rgb(250 250 250 / 0); -} - -.border-t-grey6\/10 { - border-top-color: rgb(250 250 250 / 0.1); -} - -.border-t-grey6\/100 { - border-top-color: rgb(250 250 250 / 1); -} - -.border-t-grey6\/20 { - border-top-color: rgb(250 250 250 / 0.2); -} - -.border-t-grey6\/25 { - border-top-color: rgb(250 250 250 / 0.25); -} - -.border-t-grey6\/30 { - border-top-color: rgb(250 250 250 / 0.3); -} - -.border-t-grey6\/40 { - border-top-color: rgb(250 250 250 / 0.4); -} - -.border-t-grey6\/5 { - border-top-color: rgb(250 250 250 / 0.05); -} - -.border-t-grey6\/50 { - border-top-color: rgb(250 250 250 / 0.5); -} - -.border-t-grey6\/60 { - border-top-color: rgb(250 250 250 / 0.6); -} - -.border-t-grey6\/70 { - border-top-color: rgb(250 250 250 / 0.7); -} - -.border-t-grey6\/75 { - border-top-color: rgb(250 250 250 / 0.75); -} - -.border-t-grey6\/80 { - border-top-color: rgb(250 250 250 / 0.8); -} - -.border-t-grey6\/90 { - border-top-color: rgb(250 250 250 / 0.9); -} - -.border-t-grey6\/95 { - border-top-color: rgb(250 250 250 / 0.95); -} - -.border-t-grey6\/shadow { - border-top-color: rgb(250 250 250 / .15); -} - -.border-t-primary { - --tw-border-opacity: 1; - border-top-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.border-t-primary\/0 { - border-top-color: rgb(66 114 239 / 0); -} - -.border-t-primary\/10 { - border-top-color: rgb(66 114 239 / 0.1); -} - -.border-t-primary\/100 { - border-top-color: rgb(66 114 239 / 1); -} - -.border-t-primary\/20 { - border-top-color: rgb(66 114 239 / 0.2); -} - -.border-t-primary\/25 { - border-top-color: rgb(66 114 239 / 0.25); -} - -.border-t-primary\/30 { - border-top-color: rgb(66 114 239 / 0.3); -} - -.border-t-primary\/40 { - border-top-color: rgb(66 114 239 / 0.4); -} - -.border-t-primary\/5 { - border-top-color: rgb(66 114 239 / 0.05); -} - -.border-t-primary\/50 { - border-top-color: rgb(66 114 239 / 0.5); -} - -.border-t-primary\/60 { - border-top-color: rgb(66 114 239 / 0.6); -} - -.border-t-primary\/70 { - border-top-color: rgb(66 114 239 / 0.7); -} - -.border-t-primary\/75 { - border-top-color: rgb(66 114 239 / 0.75); -} - -.border-t-primary\/80 { - border-top-color: rgb(66 114 239 / 0.8); -} - -.border-t-primary\/90 { - border-top-color: rgb(66 114 239 / 0.9); -} - -.border-t-primary\/95 { - border-top-color: rgb(66 114 239 / 0.95); -} - -.border-t-primary\/shadow { - border-top-color: rgb(66 114 239 / .15); -} - -.border-t-primarylight { - --tw-border-opacity: 1; - border-top-color: rgb(227 234 253 / var(--tw-border-opacity)); -} - -.border-t-primarylight\/0 { - border-top-color: rgb(227 234 253 / 0); -} - -.border-t-primarylight\/10 { - border-top-color: rgb(227 234 253 / 0.1); -} - -.border-t-primarylight\/100 { - border-top-color: rgb(227 234 253 / 1); -} - -.border-t-primarylight\/20 { - border-top-color: rgb(227 234 253 / 0.2); -} - -.border-t-primarylight\/25 { - border-top-color: rgb(227 234 253 / 0.25); -} - -.border-t-primarylight\/30 { - border-top-color: rgb(227 234 253 / 0.3); -} - -.border-t-primarylight\/40 { - border-top-color: rgb(227 234 253 / 0.4); -} - -.border-t-primarylight\/5 { - border-top-color: rgb(227 234 253 / 0.05); -} - -.border-t-primarylight\/50 { - border-top-color: rgb(227 234 253 / 0.5); -} - -.border-t-primarylight\/60 { - border-top-color: rgb(227 234 253 / 0.6); -} - -.border-t-primarylight\/70 { - border-top-color: rgb(227 234 253 / 0.7); -} - -.border-t-primarylight\/75 { - border-top-color: rgb(227 234 253 / 0.75); -} - -.border-t-primarylight\/80 { - border-top-color: rgb(227 234 253 / 0.8); -} - -.border-t-primarylight\/90 { - border-top-color: rgb(227 234 253 / 0.9); -} - -.border-t-primarylight\/95 { - border-top-color: rgb(227 234 253 / 0.95); -} - -.border-t-primarylight\/shadow { - border-top-color: rgb(227 234 253 / .15); -} - -.border-t-secondary { - --tw-border-opacity: 1; - border-top-color: rgb(255 94 94 / var(--tw-border-opacity)); -} - -.border-t-secondary\/0 { - border-top-color: rgb(255 94 94 / 0); -} - -.border-t-secondary\/10 { - border-top-color: rgb(255 94 94 / 0.1); -} - -.border-t-secondary\/100 { - border-top-color: rgb(255 94 94 / 1); -} - -.border-t-secondary\/20 { - border-top-color: rgb(255 94 94 / 0.2); -} - -.border-t-secondary\/25 { - border-top-color: rgb(255 94 94 / 0.25); -} - -.border-t-secondary\/30 { - border-top-color: rgb(255 94 94 / 0.3); -} - -.border-t-secondary\/40 { - border-top-color: rgb(255 94 94 / 0.4); -} - -.border-t-secondary\/5 { - border-top-color: rgb(255 94 94 / 0.05); -} - -.border-t-secondary\/50 { - border-top-color: rgb(255 94 94 / 0.5); -} - -.border-t-secondary\/60 { - border-top-color: rgb(255 94 94 / 0.6); -} - -.border-t-secondary\/70 { - border-top-color: rgb(255 94 94 / 0.7); -} - -.border-t-secondary\/75 { - border-top-color: rgb(255 94 94 / 0.75); -} - -.border-t-secondary\/80 { - border-top-color: rgb(255 94 94 / 0.8); -} - -.border-t-secondary\/90 { - border-top-color: rgb(255 94 94 / 0.9); -} - -.border-t-secondary\/95 { - border-top-color: rgb(255 94 94 / 0.95); -} - -.border-t-secondary\/shadow { - border-top-color: rgb(255 94 94 / .15); -} - -.border-t-success { - --tw-border-opacity: 1; - border-top-color: rgb(111 202 55 / var(--tw-border-opacity)); -} - -.border-t-success\/0 { - border-top-color: rgb(111 202 55 / 0); -} - -.border-t-success\/10 { - border-top-color: rgb(111 202 55 / 0.1); -} - -.border-t-success\/100 { - border-top-color: rgb(111 202 55 / 1); -} - -.border-t-success\/20 { - border-top-color: rgb(111 202 55 / 0.2); -} - -.border-t-success\/25 { - border-top-color: rgb(111 202 55 / 0.25); -} - -.border-t-success\/30 { - border-top-color: rgb(111 202 55 / 0.3); -} - -.border-t-success\/40 { - border-top-color: rgb(111 202 55 / 0.4); -} - -.border-t-success\/5 { - border-top-color: rgb(111 202 55 / 0.05); -} - -.border-t-success\/50 { - border-top-color: rgb(111 202 55 / 0.5); -} - -.border-t-success\/60 { - border-top-color: rgb(111 202 55 / 0.6); -} - -.border-t-success\/70 { - border-top-color: rgb(111 202 55 / 0.7); -} - -.border-t-success\/75 { - border-top-color: rgb(111 202 55 / 0.75); -} - -.border-t-success\/80 { - border-top-color: rgb(111 202 55 / 0.8); -} - -.border-t-success\/90 { - border-top-color: rgb(111 202 55 / 0.9); -} - -.border-t-success\/95 { - border-top-color: rgb(111 202 55 / 0.95); -} - -.border-t-success\/shadow { - border-top-color: rgb(111 202 55 / .15); -} - -.border-t-successlight { - --tw-border-opacity: 1; - border-top-color: rgb(235 255 223 / var(--tw-border-opacity)); -} - -.border-t-successlight\/0 { - border-top-color: rgb(235 255 223 / 0); -} - -.border-t-successlight\/10 { - border-top-color: rgb(235 255 223 / 0.1); -} - -.border-t-successlight\/100 { - border-top-color: rgb(235 255 223 / 1); -} - -.border-t-successlight\/20 { - border-top-color: rgb(235 255 223 / 0.2); -} - -.border-t-successlight\/25 { - border-top-color: rgb(235 255 223 / 0.25); -} - -.border-t-successlight\/30 { - border-top-color: rgb(235 255 223 / 0.3); -} - -.border-t-successlight\/40 { - border-top-color: rgb(235 255 223 / 0.4); -} - -.border-t-successlight\/5 { - border-top-color: rgb(235 255 223 / 0.05); -} - -.border-t-successlight\/50 { - border-top-color: rgb(235 255 223 / 0.5); -} - -.border-t-successlight\/60 { - border-top-color: rgb(235 255 223 / 0.6); -} - -.border-t-successlight\/70 { - border-top-color: rgb(235 255 223 / 0.7); -} - -.border-t-successlight\/75 { - border-top-color: rgb(235 255 223 / 0.75); -} - -.border-t-successlight\/80 { - border-top-color: rgb(235 255 223 / 0.8); -} - -.border-t-successlight\/90 { - border-top-color: rgb(235 255 223 / 0.9); -} - -.border-t-successlight\/95 { - border-top-color: rgb(235 255 223 / 0.95); -} - -.border-t-successlight\/shadow { - border-top-color: rgb(235 255 223 / .15); -} - -.border-t-surfconext { - --tw-border-opacity: 1; - border-top-color: rgb(77 178 207 / var(--tw-border-opacity)); -} - -.border-t-surfconext\/0 { - border-top-color: rgb(77 178 207 / 0); -} - -.border-t-surfconext\/10 { - border-top-color: rgb(77 178 207 / 0.1); -} - -.border-t-surfconext\/100 { - border-top-color: rgb(77 178 207 / 1); -} - -.border-t-surfconext\/20 { - border-top-color: rgb(77 178 207 / 0.2); -} - -.border-t-surfconext\/25 { - border-top-color: rgb(77 178 207 / 0.25); -} - -.border-t-surfconext\/30 { - border-top-color: rgb(77 178 207 / 0.3); -} - -.border-t-surfconext\/40 { - border-top-color: rgb(77 178 207 / 0.4); -} - -.border-t-surfconext\/5 { - border-top-color: rgb(77 178 207 / 0.05); -} - -.border-t-surfconext\/50 { - border-top-color: rgb(77 178 207 / 0.5); -} - -.border-t-surfconext\/60 { - border-top-color: rgb(77 178 207 / 0.6); -} - -.border-t-surfconext\/70 { - border-top-color: rgb(77 178 207 / 0.7); -} - -.border-t-surfconext\/75 { - border-top-color: rgb(77 178 207 / 0.75); -} - -.border-t-surfconext\/80 { - border-top-color: rgb(77 178 207 / 0.8); -} - -.border-t-surfconext\/90 { - border-top-color: rgb(77 178 207 / 0.9); -} - -.border-t-surfconext\/95 { - border-top-color: rgb(77 178 207 / 0.95); -} - -.border-t-surfconext\/shadow { - border-top-color: rgb(77 178 207 / .15); -} - -.border-t-tertiary { - --tw-border-opacity: 1; - border-top-color: rgb(255 207 96 / var(--tw-border-opacity)); -} - -.border-t-tertiary\/0 { - border-top-color: rgb(255 207 96 / 0); -} - -.border-t-tertiary\/10 { - border-top-color: rgb(255 207 96 / 0.1); -} - -.border-t-tertiary\/100 { - border-top-color: rgb(255 207 96 / 1); -} - -.border-t-tertiary\/20 { - border-top-color: rgb(255 207 96 / 0.2); -} - -.border-t-tertiary\/25 { - border-top-color: rgb(255 207 96 / 0.25); -} - -.border-t-tertiary\/30 { - border-top-color: rgb(255 207 96 / 0.3); -} - -.border-t-tertiary\/40 { - border-top-color: rgb(255 207 96 / 0.4); -} - -.border-t-tertiary\/5 { - border-top-color: rgb(255 207 96 / 0.05); -} - -.border-t-tertiary\/50 { - border-top-color: rgb(255 207 96 / 0.5); -} - -.border-t-tertiary\/60 { - border-top-color: rgb(255 207 96 / 0.6); -} - -.border-t-tertiary\/70 { - border-top-color: rgb(255 207 96 / 0.7); -} - -.border-t-tertiary\/75 { - border-top-color: rgb(255 207 96 / 0.75); -} - -.border-t-tertiary\/80 { - border-top-color: rgb(255 207 96 / 0.8); -} - -.border-t-tertiary\/90 { - border-top-color: rgb(255 207 96 / 0.9); -} - -.border-t-tertiary\/95 { - border-top-color: rgb(255 207 96 / 0.95); -} - -.border-t-tertiary\/shadow { - border-top-color: rgb(255 207 96 / .15); -} - -.border-t-warning { - --tw-border-opacity: 1; - border-top-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.border-t-warning\/0 { - border-top-color: rgb(242 141 21 / 0); -} - -.border-t-warning\/10 { - border-top-color: rgb(242 141 21 / 0.1); -} - -.border-t-warning\/100 { - border-top-color: rgb(242 141 21 / 1); -} - -.border-t-warning\/20 { - border-top-color: rgb(242 141 21 / 0.2); -} - -.border-t-warning\/25 { - border-top-color: rgb(242 141 21 / 0.25); -} - -.border-t-warning\/30 { - border-top-color: rgb(242 141 21 / 0.3); -} - -.border-t-warning\/40 { - border-top-color: rgb(242 141 21 / 0.4); -} - -.border-t-warning\/5 { - border-top-color: rgb(242 141 21 / 0.05); -} - -.border-t-warning\/50 { - border-top-color: rgb(242 141 21 / 0.5); -} - -.border-t-warning\/60 { - border-top-color: rgb(242 141 21 / 0.6); -} - -.border-t-warning\/70 { - border-top-color: rgb(242 141 21 / 0.7); -} - -.border-t-warning\/75 { - border-top-color: rgb(242 141 21 / 0.75); -} - -.border-t-warning\/80 { - border-top-color: rgb(242 141 21 / 0.8); -} - -.border-t-warning\/90 { - border-top-color: rgb(242 141 21 / 0.9); -} - -.border-t-warning\/95 { - border-top-color: rgb(242 141 21 / 0.95); -} - -.border-t-warning\/shadow { - border-top-color: rgb(242 141 21 / .15); -} - -.border-t-warninglight { - --tw-border-opacity: 1; - border-top-color: rgb(255 239 220 / var(--tw-border-opacity)); -} - -.border-t-warninglight\/0 { - border-top-color: rgb(255 239 220 / 0); -} - -.border-t-warninglight\/10 { - border-top-color: rgb(255 239 220 / 0.1); -} - -.border-t-warninglight\/100 { - border-top-color: rgb(255 239 220 / 1); -} - -.border-t-warninglight\/20 { - border-top-color: rgb(255 239 220 / 0.2); -} - -.border-t-warninglight\/25 { - border-top-color: rgb(255 239 220 / 0.25); -} - -.border-t-warninglight\/30 { - border-top-color: rgb(255 239 220 / 0.3); -} - -.border-t-warninglight\/40 { - border-top-color: rgb(255 239 220 / 0.4); -} - -.border-t-warninglight\/5 { - border-top-color: rgb(255 239 220 / 0.05); -} - -.border-t-warninglight\/50 { - border-top-color: rgb(255 239 220 / 0.5); -} - -.border-t-warninglight\/60 { - border-top-color: rgb(255 239 220 / 0.6); -} - -.border-t-warninglight\/70 { - border-top-color: rgb(255 239 220 / 0.7); -} - -.border-t-warninglight\/75 { - border-top-color: rgb(255 239 220 / 0.75); -} - -.border-t-warninglight\/80 { - border-top-color: rgb(255 239 220 / 0.8); -} - -.border-t-warninglight\/90 { - border-top-color: rgb(255 239 220 / 0.9); -} - -.border-t-warninglight\/95 { - border-top-color: rgb(255 239 220 / 0.95); -} - -.border-t-warninglight\/shadow { - border-top-color: rgb(255 239 220 / .15); -} - -.border-t-white { - --tw-border-opacity: 1; - border-top-color: rgb(255 255 255 / var(--tw-border-opacity)); -} - -.border-t-white\/0 { - border-top-color: rgb(255 255 255 / 0); -} - -.border-t-white\/10 { - border-top-color: rgb(255 255 255 / 0.1); -} - -.border-t-white\/100 { - border-top-color: rgb(255 255 255 / 1); -} - -.border-t-white\/20 { - border-top-color: rgb(255 255 255 / 0.2); -} - -.border-t-white\/25 { - border-top-color: rgb(255 255 255 / 0.25); -} - -.border-t-white\/30 { - border-top-color: rgb(255 255 255 / 0.3); -} - -.border-t-white\/40 { - border-top-color: rgb(255 255 255 / 0.4); -} - -.border-t-white\/5 { - border-top-color: rgb(255 255 255 / 0.05); -} - -.border-t-white\/50 { - border-top-color: rgb(255 255 255 / 0.5); -} - -.border-t-white\/60 { - border-top-color: rgb(255 255 255 / 0.6); -} - -.border-t-white\/70 { - border-top-color: rgb(255 255 255 / 0.7); -} - -.border-t-white\/75 { - border-top-color: rgb(255 255 255 / 0.75); -} - -.border-t-white\/80 { - border-top-color: rgb(255 255 255 / 0.8); -} - -.border-t-white\/90 { - border-top-color: rgb(255 255 255 / 0.9); -} - -.border-t-white\/95 { - border-top-color: rgb(255 255 255 / 0.95); -} - -.border-t-white\/shadow { - border-top-color: rgb(255 255 255 / .15); -} - -.border-opacity-0 { - --tw-border-opacity: 0; -} - -.border-opacity-10 { - --tw-border-opacity: 0.1; -} - -.border-opacity-100 { - --tw-border-opacity: 1; -} - -.border-opacity-20 { - --tw-border-opacity: 0.2; -} - -.border-opacity-25 { - --tw-border-opacity: 0.25; -} - -.border-opacity-30 { - --tw-border-opacity: 0.3; -} - -.border-opacity-40 { - --tw-border-opacity: 0.4; -} - -.border-opacity-5 { - --tw-border-opacity: 0.05; -} - -.border-opacity-50 { - --tw-border-opacity: 0.5; -} - -.border-opacity-60 { - --tw-border-opacity: 0.6; -} - -.border-opacity-70 { - --tw-border-opacity: 0.7; -} - -.border-opacity-75 { - --tw-border-opacity: 0.75; -} - -.border-opacity-80 { - --tw-border-opacity: 0.8; -} - -.border-opacity-90 { - --tw-border-opacity: 0.9; -} - -.border-opacity-95 { - --tw-border-opacity: 0.95; -} - -.border-opacity-shadow { - --tw-border-opacity: .15; -} - -.bg-apple { - --tw-bg-opacity: 1; - background-color: rgb(0 0 0 / var(--tw-bg-opacity)); -} - -.bg-black { - --tw-bg-opacity: 1; - background-color: rgb(0 0 0 / var(--tw-bg-opacity)); -} - -.bg-delete { - --tw-bg-opacity: 1; - background-color: rgb(219 30 30 / var(--tw-bg-opacity)); -} - -.bg-deletelight { - --tw-bg-opacity: 1; - background-color: rgb(255 236 236 / var(--tw-bg-opacity)); -} - -.bg-google { - --tw-bg-opacity: 1; - background-color: rgb(234 67 53 / var(--tw-bg-opacity)); -} - -.bg-grey1 { - --tw-bg-opacity: 1; - background-color: rgb(34 34 34 / var(--tw-bg-opacity)); -} - -.bg-grey3 { - --tw-bg-opacity: 1; - background-color: rgb(204 204 204 / var(--tw-bg-opacity)); -} - -.bg-grey4 { - --tw-bg-opacity: 1; - background-color: rgb(238 238 238 / var(--tw-bg-opacity)); -} - -.bg-grey5 { - --tw-bg-opacity: 1; - background-color: rgb(246 246 246 / var(--tw-bg-opacity)); -} - -.bg-grey6 { - --tw-bg-opacity: 1; - background-color: rgb(250 250 250 / var(--tw-bg-opacity)); -} - -.bg-primary { - --tw-bg-opacity: 1; - background-color: rgb(66 114 239 / var(--tw-bg-opacity)); -} - -.bg-secondary { - --tw-bg-opacity: 1; - background-color: rgb(255 94 94 / var(--tw-bg-opacity)); -} - -.bg-success { - --tw-bg-opacity: 1; - background-color: rgb(111 202 55 / var(--tw-bg-opacity)); -} - -.bg-successlight { - --tw-bg-opacity: 1; - background-color: rgb(235 255 223 / var(--tw-bg-opacity)); -} - -.bg-tertiary { - --tw-bg-opacity: 1; - background-color: rgb(255 207 96 / var(--tw-bg-opacity)); -} - -.bg-warning { - --tw-bg-opacity: 1; - background-color: rgb(242 141 21 / var(--tw-bg-opacity)); -} - -.bg-warninglight { - --tw-bg-opacity: 1; - background-color: rgb(255 239 220 / var(--tw-bg-opacity)); -} - -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - -.bg-opacity-0 { - --tw-bg-opacity: 0; -} - -.bg-opacity-100 { - --tw-bg-opacity: 1; -} - -.bg-opacity-20 { - --tw-bg-opacity: 0.2; -} - -.bg-opacity-30 { - --tw-bg-opacity: 0.3; -} - -.bg-opacity-50 { - --tw-bg-opacity: 0.5; -} - -.bg-gradient-to-b { - background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); -} - -.bg-gradient-to-r { - background-image: linear-gradient(to right, var(--tw-gradient-stops)); -} - -.bg-square-border-striped { - background-image: url('/images/square_border_striped.png'); -} - -.bg-wysiwyg-attach { - background-image: url('/images/wysiwyg/attach.svg'); -} - -.bg-wysiwyg-bold { - background-image: url('/images/wysiwyg/bold.svg'); -} - -.bg-wysiwyg-bullet { - background-image: url('/images/wysiwyg/bullet.svg'); -} - -.bg-wysiwyg-bullet-dark { - background-image: url('/images/wysiwyg/bullet-secondary.svg'); -} - -.bg-wysiwyg-code { - background-image: url('/images/wysiwyg/code.svg'); -} - -.bg-wysiwyg-heading { - background-image: url('/images/wysiwyg/heading.svg'); -} - -.bg-wysiwyg-history-redo { - background-image: url('/images/wysiwyg/history_redo.svg'); -} - -.bg-wysiwyg-history-undo { - background-image: url('/images/wysiwyg/history_undo.svg'); -} - -.bg-wysiwyg-italic { - background-image: url('/images/wysiwyg/italic.svg'); -} - -.bg-wysiwyg-link { - background-image: url('/images/wysiwyg/link.svg'); -} - -.bg-wysiwyg-list-bullet { - background-image: url('/images/wysiwyg/list_bullet.svg'); -} - -.bg-wysiwyg-list-number { - background-image: url('/images/wysiwyg/list_number.svg'); -} - -.bg-wysiwyg-nesting-level-decrease { - background-image: url('/images/wysiwyg/nesting_level_decrease.svg'); -} - -.bg-wysiwyg-nesting-level-increase { - background-image: url('/images/wysiwyg/nesting_level_increase.svg'); -} - -.bg-wysiwyg-quote { - background-image: url('/images/wysiwyg/quote.svg'); -} - -.bg-wysiwyg-strike { - background-image: url('/images/wysiwyg/strike.svg'); -} - -.from-black { - --tw-gradient-from: #000000 var(--tw-gradient-from-position); - --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - -.from-white { - --tw-gradient-from: #FFFFFF var(--tw-gradient-from-position); - --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position); - --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); -} - -.to-black { - --tw-gradient-to: #000000 var(--tw-gradient-to-position); -} - -.object-cover { - -o-object-fit: cover; - object-fit: cover; -} - -.object-fill { - -o-object-fit: fill; - object-fit: fill; -} - -.object-none { - -o-object-fit: none; - object-fit: none; -} - -.object-scale-down { - -o-object-fit: scale-down; - object-fit: scale-down; -} - -.p-0 { - padding: 0px; -} - -.p-12 { - padding: 3rem; -} - -.p-14 { - padding: 3.5rem; -} - -.p-2 { - padding: 0.5rem; -} - -.p-3 { - padding: 0.75rem; -} - -.p-4 { - padding: 1rem; -} - -.p-5 { - padding: 1.25rem; -} - -.p-6 { - padding: 1.5rem; -} - -.p-8 { - padding: 2rem; -} - -.px-2 { - padding-left: 0.5rem; - padding-right: 0.5rem; -} - -.px-3 { - padding-left: 0.75rem; - padding-right: 0.75rem; -} - -.px-4 { - padding-left: 1rem; - padding-right: 1rem; -} - -.px-5 { - padding-left: 1.25rem; - padding-right: 1.25rem; -} - -.px-6 { - padding-left: 1.5rem; - padding-right: 1.5rem; -} - -.px-6px { - padding-left: 6px; - padding-right: 6px; -} - -.px-8 { - padding-left: 2rem; - padding-right: 2rem; -} - -.py-2 { - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.py-2px { - padding-top: 2px; - padding-bottom: 2px; -} - -.py-3 { - padding-top: 0.75rem; - padding-bottom: 0.75rem; -} - -.py-3px { - padding-top: 3px; - padding-bottom: 3px; -} - -.py-4 { - padding-top: 1rem; - padding-bottom: 1rem; -} - -.py-5 { - padding-top: 1.25rem; - padding-bottom: 1.25rem; -} - -.py-6 { - padding-top: 1.5rem; - padding-bottom: 1.5rem; -} - -.pb-0 { - padding-bottom: 0px; -} - -.pb-1 { - padding-bottom: 0.25rem; -} - -.pb-10 { - padding-bottom: 2.5rem; -} - -.pb-13px { - padding-bottom: 13px; -} - -.pb-15px { - padding-bottom: 15px; -} - -.pb-16 { - padding-bottom: 4rem; -} - -.pb-1px { - padding-bottom: 1px; -} - -.pb-2 { - padding-bottom: 0.5rem; -} - -.pb-22px { - padding-bottom: 22px; -} - -.pb-2px { - padding-bottom: 2px; -} - -.pb-4 { - padding-bottom: 1rem; -} - -.pb-6 { - padding-bottom: 1.5rem; -} - -.pb-8 { - padding-bottom: 2rem; -} - -.pb-desktop-menu-bottom-padding { - padding-bottom: 54px; -} - -.pb-sidepadding { - padding-bottom: 64px; -} - -.pl-0 { - padding-left: 0px; -} - -.pl-10 { - padding-left: 2.5rem; -} - -.pl-11 { - padding-left: 2.75rem; -} - -.pl-12 { - padding-left: 3rem; -} - -.pl-22px { - padding-left: 22px; -} - -.pl-3 { - padding-left: 0.75rem; -} - -.pl-4 { - padding-left: 1rem; -} - -.pl-6 { - padding-left: 1.5rem; -} - -.pl-8 { - padding-left: 2rem; -} - -.pl-sidepadding { - padding-left: 64px; -} - -.pr-11 { - padding-right: 2.75rem; -} - -.pr-2 { - padding-right: 0.5rem; -} - -.pr-22px { - padding-right: 22px; -} - -.pr-3 { - padding-right: 0.75rem; -} - -.pr-4 { - padding-right: 1rem; -} - -.pr-6 { - padding-right: 1.5rem; -} - -.pr-8 { - padding-right: 2rem; -} - -.pt-0 { - padding-top: 0px; -} - -.pt-1 { - padding-top: 0.25rem; -} - -.pt-10 { - padding-top: 2.5rem; -} - -.pt-13px { - padding-top: 13px; -} - -.pt-15px { - padding-top: 15px; -} - -.pt-16 { - padding-top: 4rem; -} - -.pt-1px { - padding-top: 1px; -} - -.pt-2 { - padding-top: 0.5rem; -} - -.pt-2px { - padding-top: 2px; -} - -.pt-4 { - padding-top: 1rem; -} - -.pt-6 { - padding-top: 1.5rem; -} - -.pt-8 { - padding-top: 2rem; -} - -.pt-\[72px\] { - padding-top: 72px; -} - -.pt-sidepadding { - padding-top: 64px; -} - -.text-left { - text-align: left; -} - -.text-center { - text-align: center; -} - -.text-right { - text-align: right; -} - -.font-body { - font-family: Finador-Light, sans-serif; -} - -.font-button { - font-family: Finador-Bold, sans-serif; -} - -.font-caption { - font-family: Finador-Medium, sans-serif; -} - -.font-footnote { - font-family: Finador-Medium, sans-serif; -} - -.font-hint { - font-family: Finador-LightOblique, sans-serif; -} - -.font-intro { - font-family: Finador-Medium, sans-serif; -} - -.font-label { - font-family: Finador-Bold, sans-serif; -} - -.font-link { - font-family: Finador-Medium, sans-serif; -} - -.font-sans { - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; -} - -.font-subhead { - font-family: Finador-Medium, sans-serif; -} - -.font-tablehead { - font-family: Finador-Bold, sans-serif; -} - -.font-tablerow { - font-family: Finador-Regular, sans-serif; -} - -.font-title0 { - font-family: Finador-Black, sans-serif; -} - -.font-title1 { - font-family: Finador-Black, sans-serif; -} - -.font-title2 { - font-family: Finador-Black, sans-serif; -} - -.font-title3 { - font-family: Finador-Black, sans-serif; -} - -.font-title4 { - font-family: Finador-Black, sans-serif; -} - -.font-title5 { - font-family: Finador-Bold, sans-serif; -} - -.font-title6 { - font-family: Finador-Bold, sans-serif; -} - -.font-title7 { - font-family: Finador-Bold, sans-serif; -} - -.text-\[0\.8125rem\] { - font-size: 0.8125rem; -} - -.text-bodylarge { - font-size: 24px; - line-height: 36px; -} - -.text-bodymedium { - font-size: 20px; - line-height: 30px; -} - -.text-bodysmall { - font-size: 16px; - line-height: 24px; -} - -.text-button { - font-size: 18px; - line-height: 18px; -} - -.text-caption { - font-size: 14px; - line-height: 18px; -} - -.text-captionsmall { - font-size: 12px; - line-height: 14px; -} - -.text-footnote { - font-size: 16px; - line-height: 30px; -} - -.text-hint { - font-size: 20px; - line-height: 24px; -} - -.text-intro { - font-size: 20px; - line-height: 30px; -} - -.text-label { - font-size: 16px; - line-height: 16px; -} - -.text-lg { - font-size: 1.125rem; - line-height: 1.75rem; -} - -.text-link { - font-size: 16px; - line-height: 24px; -} - -.text-sm { - font-size: 0.875rem; - line-height: 1.25rem; -} - -.text-subhead { - font-size: 20px; - line-height: 20px; -} - -.text-tablehead { - font-size: 14px; - line-height: 16px; -} - -.text-tablerow { - font-size: 14px; - line-height: 16px; -} - -.text-title0 { - font-size: 64px; - line-height: 68px; -} - -.text-title1 { - font-size: 50px; - line-height: 55px; -} - -.text-title2 { - font-size: 40px; - line-height: 44px; -} - -.text-title3 { - font-size: 32px; - line-height: 38px; -} - -.text-title4 { - font-size: 28px; - line-height: 32px; -} - -.text-title5 { - font-size: 24px; - line-height: 26px; -} - -.text-title6 { - font-size: 20px; - line-height: 22px; -} - -.text-title7 { - font-size: 16px; - line-height: 20px; -} - -.font-medium { - font-weight: 500; -} - -.font-normal { - font-weight: 400; -} - -.font-semibold { - font-weight: 600; -} - -.uppercase { - text-transform: uppercase; -} - -.lowercase { - text-transform: lowercase; -} - -.capitalize { - text-transform: capitalize; -} - -.italic { - font-style: italic; -} - -.ordinal { - --tw-ordinal: ordinal; - font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction); -} - -.leading-5 { - line-height: 1.25rem; -} - -.leading-6 { - line-height: 1.5rem; -} - -.leading-8 { - line-height: 2rem; -} - -.leading-none { - line-height: 1; -} - -.leading-snug { - line-height: 1.375; -} - -.tracking-wider { - letter-spacing: 0.05em; -} - -.text-delete { - --tw-text-opacity: 1; - color: rgb(219 30 30 / var(--tw-text-opacity)); -} - -.text-error { - --tw-text-opacity: 1; - color: rgb(219 30 30 / var(--tw-text-opacity)); -} - -.text-grey1 { - --tw-text-opacity: 1; - color: rgb(34 34 34 / var(--tw-text-opacity)); -} - -.text-grey2 { - --tw-text-opacity: 1; - color: rgb(153 153 153 / var(--tw-text-opacity)); -} - -.text-grey3 { - --tw-text-opacity: 1; - color: rgb(204 204 204 / var(--tw-text-opacity)); -} - -.text-grey4 { - --tw-text-opacity: 1; - color: rgb(238 238 238 / var(--tw-text-opacity)); -} - -.text-grey6 { - --tw-text-opacity: 1; - color: rgb(250 250 250 / var(--tw-text-opacity)); -} - -.text-primary { - --tw-text-opacity: 1; - color: rgb(66 114 239 / var(--tw-text-opacity)); -} - -.text-success { - --tw-text-opacity: 1; - color: rgb(111 202 55 / var(--tw-text-opacity)); -} - -.text-tertiary { - --tw-text-opacity: 1; - color: rgb(255 207 96 / var(--tw-text-opacity)); -} - -.text-warning { - --tw-text-opacity: 1; - color: rgb(242 141 21 / var(--tw-text-opacity)); -} - -.text-white { - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.underline { - text-decoration-line: underline; -} - -.opacity-0 { - opacity: 0; -} - -.opacity-100 { - opacity: 1; -} - -.opacity-20 { - opacity: 0.2; -} - -.opacity-30 { - opacity: 0.3; -} - -.opacity-40 { - opacity: 0.4; -} - -.opacity-5 { - opacity: 0.05; -} - -.opacity-shadow { - opacity: .15; -} - -.shadow { - --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.shadow-2xl { - --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); - --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.shadow-floating { - --tw-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.10);; - --tw-shadow-colored: 0px 5px 20px 0px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.shadow-lg { - --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.shadow-md { - --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.shadow-sm { - --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.outline-none { - outline: 2px solid transparent; - outline-offset: 2px; -} - -.outline { - outline-style: solid; -} - -.outline-2 { - outline-width: 2px; -} - -.outline-4 { - outline-width: 4px; -} - -.outline-offset-4 { - outline-offset: 4px; -} - -.outline-grey3 { - outline-color: #CCCCCC; -} - -.outline-grey5 { - outline-color: #F6F6F6; -} - -.outline-primary { - outline-color: #4272EF; -} - -.ring { - --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); - --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color); - box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); -} - -.ring-1 { - --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); - --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); - box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); -} - -.blur { - --tw-blur: blur(8px); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.drop-shadow-2xl { - --tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.drop-shadow-lg { - --tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1)); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.grayscale { - --tw-grayscale: grayscale(100%); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.invert { - --tw-invert: invert(100%); - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.filter { - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -.transition { - transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter; - transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; - transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} - -.transition-all { - transition-property: all; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} - -.transition-opacity { - transition-property: opacity; - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - transition-duration: 150ms; -} - -.duration-1000 { - transition-duration: 1000ms; -} - -.duration-200 { - transition-duration: 200ms; -} - -.duration-300 { - transition-duration: 300ms; -} - -.duration-500 { - transition-duration: 500ms; -} - -.ease-in { - transition-timing-function: cubic-bezier(0.4, 0, 1, 1); -} - -.ease-in-out { - transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); -} - -.ease-out { - transition-timing-function: cubic-bezier(0, 0, 0.2, 1); -} - -.h-viewport { - height: calc(var(--vh, 1vh) * 100); -} - -.scrollbar-hidden { - -ms-overflow-style: none; - scrollbar-width: none; -} - -.scrollbar-hidden::-webkit-scrollbar { - display: none; -} - -.text-shadow-md { - text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); -} - -[x-cloak] { - display: none !important; -} - -.max-lines-1 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; -} - -.max-lines-2 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; -} - -.max-lines-3 { - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; -} - -@font-face { - font-family: "Finador-Thin"; - - src: url("../fonts/Finador-Thin.woff2") format("woff2"), - url("../fonts/Finador-Thin.woff") format("woff"); -} - -@font-face { - font-family: "Finador-ThinOblique"; - - src: url("../fonts/Finador-ThinOblique.woff2") format("woff2"), - url("../fonts/Finador-ThinOblique.woff") format("woff"); -} - -@font-face { - font-family: "Finador-ExtraLight"; - - src: url("../fonts/Finador-ExtraLight.woff2") format("woff2"), - url("../fonts/Finador-ExtraLight.woff") format("woff"); -} - -@font-face { - font-family: "Finador-ExtraLightOblique"; - - src: url("../fonts/Finador-ExtraLightOblique.woff2") format("woff2"), - url("../fonts/Finador-ExtraLightOblique.woff") format("woff"); -} - -@font-face { - font-family: "Finador-Light"; - - src: url("../fonts/Finador-Light.woff2") format("woff2"), - url("../fonts/Finador-Light.woff") format("woff"); -} - -@font-face { - font-family: "Finador-LightOblique"; - - src: url("../fonts/Finador-LightOblique.woff2") format("woff2"), - url("../fonts/Finador-LightOblique.woff") format("woff"); -} - -@font-face { - font-family: "Finador-Regular"; - - src: url("../fonts/Finador-Regular.woff2") format("woff2"), - url("../fonts/Finador-Regular.woff") format("woff"); -} - -@font-face { - font-family: "Finador-RegularOblique"; - - src: url("../fonts/Finador-RegularOblique.woff2") format("woff2"), - url("../fonts/Finador-RegularOblique.woff") format("woff"); -} - -@font-face { - font-family: "Finador-Medium"; - - src: url("../fonts/Finador-Medium.woff2") format("woff2"), - url("../fonts/Finador-Medium.woff") format("woff"); -} - -@font-face { - font-family: "Finador-MediumOblique"; - - src: url("../fonts/Finador-MediumOblique.woff2") format("woff2"), - z url("../fonts/Finador-MediumOblique.woff") format("woff"); -} - -@font-face { - font-family: "Finador-Bold"; - - src: url("../fonts/Finador-Bold.woff2") format("woff2"), - url("../fonts/Finador-Bold.woff") format("woff"); -} - -@font-face { - font-family: "Finador-BoldOblique"; - - src: url("../fonts/Finador-BoldOblique.woff2") format("woff2"), - url("../fonts/Finador-BoldOblique.woff") format("woff"); -} - -@font-face { - font-family: "Finador-Black"; - - src: url("../fonts/Finador-Black.woff2") format("woff2"), - url("../fonts/Finador-Black.woff") format("woff"); -} - -@font-face { - font-family: "Finador-BlackOblique"; - - src: url("../fonts/Finador-BlackOblique.woff2") format("woff2"), - url("../fonts/Finador-BlackOblique.woff") format("woff"); -} - -.checked\:bg-primary:checked { - --tw-bg-opacity: 1; - background-color: rgb(66 114 239 / var(--tw-bg-opacity)); -} - -.checked\:outline-primary:checked { - outline-color: #4272EF; -} - -.hover\:cursor-pointer:hover { - cursor: pointer; -} - -.hover\:border-grey4:hover { - --tw-border-opacity: 1; - border-color: rgb(238 238 238 / var(--tw-border-opacity)); -} - -.hover\:border-grey6:hover { - --tw-border-opacity: 1; - border-color: rgb(250 250 250 / var(--tw-border-opacity)); -} - -.hover\:bg-grey4:hover { - --tw-bg-opacity: 1; - background-color: rgb(238 238 238 / var(--tw-bg-opacity)); -} - -.hover\:bg-grey5:hover { - --tw-bg-opacity: 1; - background-color: rgb(246 246 246 / var(--tw-bg-opacity)); -} - -.hover\:bg-grey6:hover { - --tw-bg-opacity: 1; - background-color: rgb(250 250 250 / var(--tw-bg-opacity)); -} - -.hover\:bg-primary:hover { - --tw-bg-opacity: 1; - background-color: rgb(66 114 239 / var(--tw-bg-opacity)); -} - -.hover\:text-primary:hover { - --tw-text-opacity: 1; - color: rgb(66 114 239 / var(--tw-text-opacity)); -} - -.hover\:text-white:hover { - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.hover\:underline:hover { - text-decoration-line: underline; -} - -.hover\:opacity-40:hover { - opacity: 0.4; -} - -.hover\:opacity-80:hover { - opacity: 0.8; -} - -.hover\:outline-primary:hover { - outline-color: #4272EF; -} - -.focus\:border-primary:focus { - --tw-border-opacity: 1; - border-color: rgb(66 114 239 / var(--tw-border-opacity)); -} - -.focus\:border-warning:focus { - --tw-border-opacity: 1; - border-color: rgb(242 141 21 / var(--tw-border-opacity)); -} - -.focus\:outline-none:focus { - outline: 2px solid transparent; - outline-offset: 2px; -} - -.focus\:ring-0:focus { - --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); - --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color); - box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); -} - -.active\:pb-0:active { - padding-bottom: 0px; -} - -.active\:pb-14px:active { - padding-bottom: 14px; -} - -.active\:pb-1px:active { - padding-bottom: 1px; -} - -.active\:pb-3:active { - padding-bottom: 0.75rem; -} - -.active\:pb-3px:active { - padding-bottom: 3px; -} - -.active\:pt-14px:active { - padding-top: 14px; -} - -.active\:pt-1px:active { - padding-top: 1px; -} - -.active\:pt-2px:active { - padding-top: 2px; -} - -.active\:pt-3px:active { - padding-top: 3px; -} - -.active\:pt-4:active { - padding-top: 1rem; -} - -.active\:pt-5px:active { - padding-top: 5px; -} - -.active\:text-white\/80:active { - color: rgb(255 255 255 / 0.8); -} - -.active\:opacity-50:active { - opacity: 0.5; -} - -.active\:opacity-80:active { - opacity: 0.8; -} - -.active\:shadow-none:active { - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.active\:shadow-top2px:active { - --tw-shadow: inset 0 2px 0 0 rgba(0, 0, 0, 0.15;);; - --tw-shadow-colored: inset 0 2px 0 0 var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.active\:shadow-top4px:active { - --tw-shadow: inset 0 4px 0 0 rgba(0, 0, 0, 0.15);; - --tw-shadow-colored: inset 0 4px 0 0 var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.group:hover .group-hover\:opacity-70 { - opacity: 0.7; -} - -@media (min-width: 640px) { - .sm\:mb-0 { - margin-bottom: 0px; - } - - .sm\:mb-16 { - margin-bottom: 4rem; - } - - .sm\:mb-2 { - margin-bottom: 0.5rem; - } - - .sm\:mb-8 { - margin-bottom: 2rem; - } - - .sm\:mb-9 { - margin-bottom: 2.25rem; - } - - .sm\:ml-11 { - margin-left: 2.75rem; - } - - .sm\:ml-14 { - margin-left: 3.5rem; - } - - .sm\:ml-20 { - margin-left: 5rem; - } - - .sm\:ml-8 { - margin-left: 2rem; - } - - .sm\:mr-11 { - margin-right: 2.75rem; - } - - .sm\:mr-20 { - margin-right: 5rem; - } - - .sm\:mt-0 { - margin-top: 0px; - } - - .sm\:mt-8 { - margin-top: 2rem; - } - - .sm\:block { - display: block; - } - - .sm\:hidden { - display: none; - } - - .sm\:h-12 { - height: 3rem; - } - - .sm\:h-16 { - height: 4rem; - } - - .sm\:h-32 { - height: 8rem; - } - - .sm\:h-campaign-banner { - height: 224px; - } - - .sm\:h-footer-sm { - height: 64px; - } - - .sm\:h-header1-sm { - height: 170px; - } - - .sm\:h-header2-sm { - height: 100px; - } - - .sm\:h-image-preview-circle-sm { - height: 150px; - } - - .sm\:h-image-preview-sm { - height: 150px; - } - - .sm\:h-topbar-sm { - height: 96px; - } - - .sm\:w-16 { - width: 4rem; - } - - .sm\:w-96 { - width: 24rem; - } - - .sm\:w-form { - width: 400px; - } - - .sm\:w-full { - width: 100%; - } - - .sm\:w-illustration-sm { - width: 320px; - } - - .sm\:w-image-preview-circle-sm { - width: 150px; - } - - .sm\:w-image-preview-sm { - width: 200px; - } - - .sm\:max-w-3\/4 { - max-width: 75%; - } - - .sm\:max-w-form { - max-width: 400px; - } - - .sm\:max-w-popup-sm { - max-width: 520px; - } - - .sm\:max-w-sheet { - max-width: 760px; - } - - .sm\:translate-y-0 { - --tw-translate-y: 0px; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); - } - - .sm\:scale-100 { - --tw-scale-x: 1; - --tw-scale-y: 1; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); - } - - .sm\:scale-95 { - --tw-scale-x: .95; - --tw-scale-y: .95; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); - } - - .sm\:grid-cols-1 { - grid-template-columns: repeat(1, minmax(0, 1fr)); - } - - .sm\:grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .sm\:grid-cols-3 { - grid-template-columns: repeat(3, minmax(0, 1fr)); - } - - .sm\:flex-row { - flex-direction: row; - } - - .sm\:gap-10 { - gap: 2.5rem; - } - - .sm\:gap-3 { - gap: 0.75rem; - } - - .sm\:gap-8 { - gap: 2rem; - } - - .sm\:overflow-visible { - overflow: visible; - } - - .sm\:rounded-l-xl { - border-top-left-radius: 0.75rem; - border-bottom-left-radius: 0.75rem; - } - - .sm\:rounded-r-xl { - border-top-right-radius: 0.75rem; - border-bottom-right-radius: 0.75rem; - } - - .sm\:p-6 { - padding: 1.5rem; - } - - .sm\:p-8 { - padding: 2rem; - } - - .sm\:px-0 { - padding-left: 0px; - padding-right: 0px; - } - - .sm\:px-10 { - padding-left: 2.5rem; - padding-right: 2.5rem; - } - - .sm\:px-6 { - padding-left: 1.5rem; - padding-right: 1.5rem; - } - - .sm\:py-20 { - padding-top: 5rem; - padding-bottom: 5rem; - } - - .sm\:pt-\[48px\] { - padding-top: 48px; - } - - .sm\:font-title2 { - font-family: Finador-Black, sans-serif; - } - - .sm\:font-title3 { - font-family: Finador-Black, sans-serif; - } - - .sm\:font-title4 { - font-family: Finador-Black, sans-serif; - } - - .sm\:font-title5 { - font-family: Finador-Bold, sans-serif; - } - - .sm\:text-bodylarge { - font-size: 24px; - line-height: 36px; - } - - .sm\:text-bodymedium { - font-size: 20px; - line-height: 30px; - } - - .sm\:text-sm { - font-size: 0.875rem; - line-height: 1.25rem; - } - - .sm\:text-title2 { - font-size: 40px; - line-height: 44px; - } - - .sm\:text-title3 { - font-size: 32px; - line-height: 38px; - } - - .sm\:text-title4 { - font-size: 28px; - line-height: 32px; - } - - .sm\:text-title5 { - font-size: 24px; - line-height: 26px; - } - - .sm\:leading-6 { - line-height: 1.5rem; - } - - .sm\:focus\:block:focus { - display: block; - } -} - -@media (min-width: 768px) { - .md\:col-span-2 { - grid-column: span 2 / span 2; - } - - .md\:mb-6 { - margin-bottom: 1.5rem; - } - - .md\:mb-8 { - margin-bottom: 2rem; - } - - .md\:mt-1 { - margin-top: 0.25rem; - } - - .md\:block { - display: block; - } - - .md\:flex { - display: flex; - } - - .md\:hidden { - display: none; - } - - .md\:h-24 { - height: 6rem; - } - - .md\:w-24 { - width: 6rem; - } - - .md\:w-48 { - width: 12rem; - } - - .md\:w-sidepadding { - width: 64px; - } - - .md\:max-w-popup-md { - max-width: 730px; - } - - .md\:grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .md\:grid-cols-3 { - grid-template-columns: repeat(3, minmax(0, 1fr)); - } - - .md\:flex-row { - flex-direction: row; - } - - .md\:items-start { - align-items: flex-start; - } - - .md\:gap-3 { - gap: 0.75rem; - } - - .md\:gap-8 { - gap: 2rem; - } - - .md\:rounded-tr-md { - border-top-right-radius: 0.375rem; - } - - .md\:border-b { - border-bottom-width: 1px; - } - - .md\:border-l { - border-left-width: 1px; - } - - .md\:border-t { - border-top-width: 1px; - } - - .md\:p-6 { - padding: 1.5rem; - } - - .md\:pb-10 { - padding-bottom: 2.5rem; - } - - .md\:pl-20 { - padding-left: 5rem; - } - - .md\:pr-0 { - padding-right: 0px; - } - - .md\:pr-20 { - padding-right: 5rem; - } - - .md\:pr-\[129px\] { - padding-right: 129px; - } - - .md\:pt-10 { - padding-top: 2.5rem; - } - - .md\:pt-20 { - padding-top: 5rem; - } - - .md\:pt-8 { - padding-top: 2rem; - } - - .md\:font-title4 { - font-family: Finador-Black, sans-serif; - } - - .md\:font-title5 { - font-family: Finador-Bold, sans-serif; - } - - .md\:text-bodymedium { - font-size: 20px; - line-height: 30px; - } - - .md\:text-caption { - font-size: 14px; - line-height: 18px; - } - - .md\:text-title4 { - font-size: 28px; - line-height: 32px; - } - - .md\:text-title5 { - font-size: 24px; - line-height: 26px; - } -} - -@media (min-width: 1024px) { - .lg\:mx-14 { - margin-left: 3.5rem; - margin-right: 3.5rem; - } - - .lg\:mb-10 { - margin-bottom: 2.5rem; - } - - .lg\:mb-16 { - margin-bottom: 4rem; - } - - .lg\:mb-6 { - margin-bottom: 1.5rem; - } - - .lg\:mb-8 { - margin-bottom: 2rem; - } - - .lg\:mb-9 { - margin-bottom: 2.25rem; - } - - .lg\:ml-12 { - margin-left: 3rem; - } - - .lg\:ml-14 { - margin-left: 3.5rem; - } - - .lg\:ml-16 { - margin-left: 4rem; - } - - .lg\:ml-20 { - margin-left: 5rem; - } - - .lg\:mt-12 { - margin-top: 3rem; - } - - .lg\:mt-16 { - margin-top: 4rem; - } - - .lg\:mt-24 { - margin-top: 6rem; - } - - .lg\:mt-8 { - margin-top: 2rem; - } - - .lg\:block { - display: block; - } - - .lg\:hidden { - display: none; - } - - .lg\:h-32 { - height: 8rem; - } - - .lg\:h-44 { - height: 11rem; - } - - .lg\:h-84px { - height: 84px; - } - - .lg\:h-footer-lg { - height: 96px; - } - - .lg\:h-header1-lg { - height: 370px; - } - - .lg\:h-header2-lg { - height: 183px; - } - - .lg\:h-topbar-sm { - height: 96px; - } - - .lg\:w-32 { - width: 8rem; - } - - .lg\:w-56 { - width: 14rem; - } - - .lg\:w-84px { - width: 84px; - } - - .lg\:w-illustration-lg { - width: 696px; - } - - .lg\:max-w-popup-lg { - max-width: 1228px; - } - - .lg\:grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .lg\:grid-cols-4 { - grid-template-columns: repeat(4, minmax(0, 1fr)); - } - - .lg\:gap-16 { - gap: 4rem; - } - - .lg\:p-6 { - padding: 1.5rem; - } - - .lg\:p-8 { - padding: 2rem; - } - - .lg\:px-8 { - padding-left: 2rem; - padding-right: 2rem; - } - - .lg\:py-8 { - padding-top: 2rem; - padding-bottom: 2rem; - } - - .lg\:pb-10 { - padding-bottom: 2.5rem; - } - - .lg\:pb-30px { - padding-bottom: 30px; - } - - .lg\:pb-8 { - padding-bottom: 2rem; - } - - .lg\:pl-10 { - padding-left: 2.5rem; - } - - .lg\:pl-30px { - padding-left: 30px; - } - - .lg\:pl-8 { - padding-left: 2rem; - } - - .lg\:pl-sidepadding { - padding-left: 64px; - } - - .lg\:pr-10 { - padding-right: 2.5rem; - } - - .lg\:pr-30px { - padding-right: 30px; - } - - .lg\:pr-8 { - padding-right: 2rem; - } - - .lg\:pt-1 { - padding-top: 0.25rem; - } - - .lg\:pt-10 { - padding-top: 2.5rem; - } - - .lg\:pt-14 { - padding-top: 3.5rem; - } - - .lg\:pt-8 { - padding-top: 2rem; - } - - .lg\:font-title0 { - font-family: Finador-Black, sans-serif; - } - - .lg\:font-title1 { - font-family: Finador-Black, sans-serif; - } - - .lg\:font-title2 { - font-family: Finador-Black, sans-serif; - } - - .lg\:font-title3 { - font-family: Finador-Black, sans-serif; - } - - .lg\:font-title4 { - font-family: Finador-Black, sans-serif; - } - - .lg\:text-bodymedium { - font-size: 20px; - line-height: 30px; - } - - .lg\:text-introdesktop { - font-size: 24px; - line-height: 36px; - } - - .lg\:text-subhead { - font-size: 20px; - line-height: 20px; - } - - .lg\:text-title0 { - font-size: 64px; - line-height: 68px; - } - - .lg\:text-title1 { - font-size: 50px; - line-height: 55px; - } - - .lg\:text-title2 { - font-size: 40px; - line-height: 44px; - } - - .lg\:text-title3 { - font-size: 32px; - line-height: 38px; - } - - .lg\:text-title4 { - font-size: 28px; - line-height: 32px; - } -} - -@media (min-width: 1280px) { - .xl\:max-w-form { - max-width: 400px; - } - - .xl\:grid-cols-3 { - grid-template-columns: repeat(3, minmax(0, 1fr)); - } - - .xl\:grid-cols-5 { - grid-template-columns: repeat(5, minmax(0, 1fr)); - } - - .xl\:flex-row { - flex-direction: row; - } - - .xl\:gap-14 { - gap: 3.5rem; - } -} diff --git a/core/priv/static/assets/app.js b/core/priv/static/assets/app.js deleted file mode 100644 index 964b6e255..000000000 --- a/core/priv/static/assets/app.js +++ /dev/null @@ -1,38046 +0,0 @@ -(() => { - var __create = Object.create; - var __defProp = Object.defineProperty; - var __defProps = Object.defineProperties; - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; - var __getOwnPropDescs = Object.getOwnPropertyDescriptors; - var __getOwnPropNames = Object.getOwnPropertyNames; - var __getOwnPropSymbols = Object.getOwnPropertySymbols; - var __getProtoOf = Object.getPrototypeOf; - var __hasOwnProp = Object.prototype.hasOwnProperty; - var __propIsEnum = Object.prototype.propertyIsEnumerable; - var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; - var __spreadValues = (a2, b2) => { - for (var prop in b2 || (b2 = {})) - if (__hasOwnProp.call(b2, prop)) - __defNormalProp(a2, prop, b2[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b2)) { - if (__propIsEnum.call(b2, prop)) - __defNormalProp(a2, prop, b2[prop]); - } - return a2; - }; - var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2)); - var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, { - get: (a2, b2) => (typeof require !== "undefined" ? require : a2)[b2] - }) : x2)(function(x2) { - if (typeof require !== "undefined") - return require.apply(this, arguments); - throw new Error('Dynamic require of "' + x2 + '" is not supported'); - }); - var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; - }; - var __commonJS = (cb, mod) => function __require2() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; - }; - var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; - }; - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod - )); - var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; - var __accessCheck = (obj, member, msg) => { - if (!member.has(obj)) - throw TypeError("Cannot " + msg); - }; - var __privateGet = (obj, member, getter) => { - __accessCheck(obj, member, "read from private field"); - return getter ? getter.call(obj) : member.get(obj); - }; - var __privateAdd = (obj, member, value) => { - if (member.has(obj)) - throw TypeError("Cannot add the same private member more than once"); - member instanceof WeakSet ? member.add(obj) : member.set(obj, value); - }; - var __privateSet = (obj, member, value, setter) => { - __accessCheck(obj, member, "write to private field"); - setter ? setter.call(obj, value) : member.set(obj, value); - return value; - }; - var __privateWrapper = (obj, member, setter, getter) => ({ - set _(value) { - __privateSet(obj, member, value, setter); - }, - get _() { - return __privateGet(obj, member, getter); - } - }); - var __privateMethod = (obj, member, method) => { - __accessCheck(obj, member, "access private method"); - return method; - }; - - // node_modules/lodash/lodash.js - var require_lodash = __commonJS({ - "node_modules/lodash/lodash.js"(exports2, module2) { - (function() { - var undefined2; - var VERSION = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - var wrapFlags = [ - ["ary", WRAP_ARY_FLAG], - ["bind", WRAP_BIND_FLAG], - ["bindKey", WRAP_BIND_KEY_FLAG], - ["curry", WRAP_CURRY_FLAG], - ["curryRight", WRAP_CURRY_RIGHT_FLAG], - ["flip", WRAP_FLIP_FLAG], - ["partial", WRAP_PARTIAL_FLAG], - ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], - ["rearg", WRAP_REARG_FLAG] - ]; - var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]"; - var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - var rsApos = "['\u2019]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", - rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", - rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, - rsUpper + "+" + rsOptContrUpper, - rsOrdUpper, - rsOrdLower, - rsDigits, - rsEmoji - ].join("|"), "g"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - var contextProps = [ - "Array", - "Buffer", - "DataView", - "Date", - "Error", - "Float32Array", - "Float64Array", - "Function", - "Int8Array", - "Int16Array", - "Int32Array", - "Map", - "Math", - "Object", - "Promise", - "RegExp", - "Set", - "String", - "Symbol", - "TypeError", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "WeakMap", - "_", - "clearTimeout", - "isFinite", - "parseInt", - "setTimeout" - ]; - var templateCounter = -1; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - var deburredLetters = { - // Latin-1 Supplement block. - "\xC0": "A", - "\xC1": "A", - "\xC2": "A", - "\xC3": "A", - "\xC4": "A", - "\xC5": "A", - "\xE0": "a", - "\xE1": "a", - "\xE2": "a", - "\xE3": "a", - "\xE4": "a", - "\xE5": "a", - "\xC7": "C", - "\xE7": "c", - "\xD0": "D", - "\xF0": "d", - "\xC8": "E", - "\xC9": "E", - "\xCA": "E", - "\xCB": "E", - "\xE8": "e", - "\xE9": "e", - "\xEA": "e", - "\xEB": "e", - "\xCC": "I", - "\xCD": "I", - "\xCE": "I", - "\xCF": "I", - "\xEC": "i", - "\xED": "i", - "\xEE": "i", - "\xEF": "i", - "\xD1": "N", - "\xF1": "n", - "\xD2": "O", - "\xD3": "O", - "\xD4": "O", - "\xD5": "O", - "\xD6": "O", - "\xD8": "O", - "\xF2": "o", - "\xF3": "o", - "\xF4": "o", - "\xF5": "o", - "\xF6": "o", - "\xF8": "o", - "\xD9": "U", - "\xDA": "U", - "\xDB": "U", - "\xDC": "U", - "\xF9": "u", - "\xFA": "u", - "\xFB": "u", - "\xFC": "u", - "\xDD": "Y", - "\xFD": "y", - "\xFF": "y", - "\xC6": "Ae", - "\xE6": "ae", - "\xDE": "Th", - "\xFE": "th", - "\xDF": "ss", - // Latin Extended-A block. - "\u0100": "A", - "\u0102": "A", - "\u0104": "A", - "\u0101": "a", - "\u0103": "a", - "\u0105": "a", - "\u0106": "C", - "\u0108": "C", - "\u010A": "C", - "\u010C": "C", - "\u0107": "c", - "\u0109": "c", - "\u010B": "c", - "\u010D": "c", - "\u010E": "D", - "\u0110": "D", - "\u010F": "d", - "\u0111": "d", - "\u0112": "E", - "\u0114": "E", - "\u0116": "E", - "\u0118": "E", - "\u011A": "E", - "\u0113": "e", - "\u0115": "e", - "\u0117": "e", - "\u0119": "e", - "\u011B": "e", - "\u011C": "G", - "\u011E": "G", - "\u0120": "G", - "\u0122": "G", - "\u011D": "g", - "\u011F": "g", - "\u0121": "g", - "\u0123": "g", - "\u0124": "H", - "\u0126": "H", - "\u0125": "h", - "\u0127": "h", - "\u0128": "I", - "\u012A": "I", - "\u012C": "I", - "\u012E": "I", - "\u0130": "I", - "\u0129": "i", - "\u012B": "i", - "\u012D": "i", - "\u012F": "i", - "\u0131": "i", - "\u0134": "J", - "\u0135": "j", - "\u0136": "K", - "\u0137": "k", - "\u0138": "k", - "\u0139": "L", - "\u013B": "L", - "\u013D": "L", - "\u013F": "L", - "\u0141": "L", - "\u013A": "l", - "\u013C": "l", - "\u013E": "l", - "\u0140": "l", - "\u0142": "l", - "\u0143": "N", - "\u0145": "N", - "\u0147": "N", - "\u014A": "N", - "\u0144": "n", - "\u0146": "n", - "\u0148": "n", - "\u014B": "n", - "\u014C": "O", - "\u014E": "O", - "\u0150": "O", - "\u014D": "o", - "\u014F": "o", - "\u0151": "o", - "\u0154": "R", - "\u0156": "R", - "\u0158": "R", - "\u0155": "r", - "\u0157": "r", - "\u0159": "r", - "\u015A": "S", - "\u015C": "S", - "\u015E": "S", - "\u0160": "S", - "\u015B": "s", - "\u015D": "s", - "\u015F": "s", - "\u0161": "s", - "\u0162": "T", - "\u0164": "T", - "\u0166": "T", - "\u0163": "t", - "\u0165": "t", - "\u0167": "t", - "\u0168": "U", - "\u016A": "U", - "\u016C": "U", - "\u016E": "U", - "\u0170": "U", - "\u0172": "U", - "\u0169": "u", - "\u016B": "u", - "\u016D": "u", - "\u016F": "u", - "\u0171": "u", - "\u0173": "u", - "\u0174": "W", - "\u0175": "w", - "\u0176": "Y", - "\u0177": "y", - "\u0178": "Y", - "\u0179": "Z", - "\u017B": "Z", - "\u017D": "Z", - "\u017A": "z", - "\u017C": "z", - "\u017E": "z", - "\u0132": "IJ", - "\u0133": "ij", - "\u0152": "Oe", - "\u0153": "oe", - "\u0149": "'n", - "\u017F": "s" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = typeof exports2 == "object" && exports2 && !exports2.nodeType && exports2; - var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types = freeModule && freeModule.require && freeModule.require("util").types; - if (types) { - return types; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e2) { - } - }(); - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - function apply(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - case 1: - return func.call(thisArg, args[0]); - case 2: - return func.call(thisArg, args[0], args[1]); - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - } - function arrayAggregator(array, setter, iteratee, accumulator) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - var value = array[index]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - function arrayEach(array, iteratee) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; - } - function arrayEachRight(array, iteratee) { - var length = array == null ? 0 : array.length; - while (length--) { - if (iteratee(array[length], length, array) === false) { - break; - } - } - return array; - } - function arrayEvery(array, predicate) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (!predicate(array[index], index, array)) { - return false; - } - } - return true; - } - function arrayFilter(array, predicate) { - var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; - } - function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; - } - function arrayIncludesWith(array, value, comparator) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; - } - function arrayMap(array, iteratee) { - var index = -1, length = array == null ? 0 : array.length, result = Array(length); - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; - } - function arrayPush(array, values) { - var index = -1, length = values.length, offset = array.length; - while (++index < length) { - array[offset + index] = values[index]; - } - return array; - } - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index = -1, length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[++index]; - } - while (++index < length) { - accumulator = iteratee(accumulator, array[index], index, array); - } - return accumulator; - } - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[--length]; - } - while (length--) { - accumulator = iteratee(accumulator, array[length], length, array); - } - return accumulator; - } - function arraySome(array, predicate) { - var index = -1, length = array == null ? 0 : array.length; - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string) { - return string.split(""); - } - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection2) { - if (predicate(value, key, collection2)) { - result = key; - return false; - } - }); - return result; - } - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, index = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index-- : ++index < length) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index = fromIndex - 1, length = array.length; - while (++index < length) { - if (comparator(array[index], value)) { - return index; - } - } - return -1; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length = array == null ? 0 : array.length; - return length ? baseSum(array, iteratee) / length : NAN; - } - function baseProperty(key) { - return function(object) { - return object == null ? undefined2 : object[key]; - }; - } - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined2 : object[key]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length = array.length; - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index = -1, length = array.length; - while (++index < length) { - var current = iteratee(array[index]); - if (current !== undefined2) { - result = result === undefined2 ? current : result + current; - } - } - return result; - } - function baseTimes(n2, iteratee) { - var index = -1, result = Array(n2); - while (++index < n2) { - result[index] = iteratee(index); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - function baseTrim(string) { - return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - function cacheHas(cache, key) { - return cache.has(key); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index = -1, length = strSymbols.length; - while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index = strSymbols.length; - while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) { - } - return index; - } - function countHolders(array, placeholder) { - var length = array.length, result = 0; - while (length--) { - if (array[length] === placeholder) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue(object, key) { - return object == null ? undefined2 : object[key]; - } - function hasUnicode(string) { - return reHasUnicode.test(string); - } - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - function iteratorToArray(iterator) { - var data, result = []; - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - function mapToArray(map) { - var index = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; - } - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - function replaceHolders(array, placeholder) { - var index = -1, length = array.length, resIndex = 0, result = []; - while (++index < length) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; - } - function setToArray(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = value; - }); - return result; - } - function setToPairs(set) { - var index = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, length = array.length; - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index = fromIndex + 1; - while (index--) { - if (array[index] === value) { - return index; - } - } - return index; - } - function stringSize(string) { - return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); - } - function stringToArray(string) { - return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); - } - function trimmedEndIndex(string) { - var index = string.length; - while (index-- && reWhitespace.test(string.charAt(index))) { - } - return index; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context) { - context = context == null ? root : _5.defaults(root.Object(), context, _5.pick(root, contextProps)); - var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2( - "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" - ); - var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2; - var defineProperty = function() { - try { - var func = getNative(Object2, "defineProperty"); - func({}, "", {}); - return func; - } catch (e2) { - } - }(); - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView2 = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap2 = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap2 && new WeakMap2(); - var realNames = {}; - var dataViewCtorString = toSource(DataView2), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2; - function lodash(value) { - if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty.call(value, "__wrapped__")) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject2(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined2; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined2; - } - lodash.templateSettings = { - /** - * Used to detect `data` property values to be HTML-escaped. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - "escape": reEscape, - /** - * Used to detect code to be evaluated. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - "evaluate": reEvaluate, - /** - * Used to detect `data` property values to inject. - * - * @memberOf _.templateSettings - * @type {RegExp} - */ - "interpolate": reInterpolate, - /** - * Used to reference the data object in the template text. - * - * @memberOf _.templateSettings - * @type {string} - */ - "variable": "", - /** - * Used to import variables into the compiled template. - * - * @memberOf _.templateSettings - * @type {Object} - */ - "imports": { - /** - * A reference to the `lodash` function. - * - * @memberOf _.templateSettings.imports - * @type {Function} - */ - "_": lodash - } - }; - lodash.prototype = baseLodash.prototype; - lodash.prototype.constructor = lodash; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - function lazyValue() { - var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__); - if (!isArr || !isRight && arrLength == length && takeCount == length) { - return baseWrapperValue(array, this.__actions__); - } - var result2 = []; - outer: - while (length-- && resIndex < takeCount) { - index += dir; - var iterIndex = -1, value = array[index]; - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - function Hash(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key) { - var result2 = this.has(key) && delete this.__data__[key]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result2 = data[key]; - return result2 === HASH_UNDEFINED ? undefined2 : result2; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined2; - } - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key); - } - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - function ListCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - function listCacheDelete(key) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } - function listCacheGet(key) { - var data = this.__data__, index = assocIndexOf(data, key); - return index < 0 ? undefined2 : data[index][1]; - } - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - function listCacheSet(key, value) { - var data = this.__data__, index = assocIndexOf(data, key); - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - function MapCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key) { - var result2 = getMapData(this, key)["delete"](key); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - function mapCacheSet(key, value) { - var data = getMapData(this, key), size2 = data.size; - data.set(key, value); - this.size += data.size == size2 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values2) { - var index = -1, length = values2 == null ? 0 : values2.length; - this.__data__ = new MapCache(); - while (++index < length) { - this.add(values2[index]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key) { - var data = this.__data__, result2 = data["delete"](key); - this.size = data.size; - return result2; - } - function stackGet(key) { - return this.__data__.get(key); - } - function stackHas(key) { - return this.__data__.has(key); - } - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length; - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode. - (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. - isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. - isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties. - isIndex(key, length)))) { - result2.push(key); - } - } - return result2; - } - function arraySample(array) { - var length = array.length; - return length ? array[baseRandom(0, length - 1)] : undefined2; - } - function arraySampleSize(array, n2) { - return shuffleSelf(copyArray(array), baseClamp(n2, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key, value) { - if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty) { - defineProperty(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - function baseAt(object, paths) { - var index = -1, length = paths.length, result2 = Array2(length), skip = object == null; - while (++index < length) { - result2[index] = skip ? undefined2 : get(object, paths[index]); - } - return result2; - } - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined2) { - number = number <= upper ? number : upper; - } - if (lower !== undefined2) { - number = number >= lower ? number : lower; - } - } - return number; - } - function baseClone(value, bitmask, customizer, key, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result2 !== undefined2) { - return result2; - } - if (!isObject2(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag, isDeep); - } - } - stack || (stack = new Stack()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key2) { - result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined2 : keysFunc(value); - arrayEach(props || value, function(subValue, key2) { - if (props) { - key2 = subValue; - subValue = value[key2]; - } - assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length = props.length; - if (object == null) { - return !length; - } - object = Object2(object); - while (length--) { - var key = props[length], predicate = source[key], value = object[key]; - if (value === undefined2 && !(key in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func, wait, args) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func.apply(undefined2, args); - }, wait); - } - function baseDifference(array, values2, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length; - if (!length) { - return result2; - } - if (iteratee2) { - values2 = arrayMap(values2, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values2.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values2 = new SetCache(values2); - } - outer: - while (++index < length) { - var value = array[index], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values2[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values2, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index, collection2) { - result2 = !!predicate(value, index, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index = -1, length = array.length; - while (++index < length) { - var value = array[index], current = iteratee2(value); - if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) { - var computed = current, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start, end) { - var length = array.length; - start = toInteger(start); - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end === undefined2 || end > length ? length : toInteger(end); - if (end < 0) { - end += length; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index, collection2) { - if (predicate(value, index, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index = -1, length = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction(object[key]); - }); - } - function baseGet(object, path) { - path = castPath(path, object); - var index = 0, length = path.length; - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return index && index == length ? object : undefined2; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined2 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key) { - return object != null && hasOwnProperty.call(object, key); - } - function baseHasIn(object, key) { - return object != null && key in Object2(object); - } - function baseInRange(number, start, end) { - return number >= nativeMin(start, end) && number < nativeMax(start, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2; - } - array = arrays[0]; - var index = -1, seen = caches[0]; - outer: - while (++index < length && result2.length < maxLength) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key, object2) { - setter(accumulator, iteratee2(value), key, object2); - }); - return accumulator; - } - function baseInvoke(object, path, args) { - path = castPath(path, object); - object = parent(object, path); - var func = object == null ? object : object[toKey(last(path))]; - return func == null ? undefined2 : apply(func, object, args); - } - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike(value) && baseGetTag(value) == dateTag; - } - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, length = index, noCustomizer = !customizer; - if (object == null) { - return !length; - } - object = Object2(object); - while (index--) { - var data = matchData[index]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], objValue = object[key], srcValue = data[1]; - if (noCustomizer && data[2]) { - if (objValue === undefined2 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject2(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - if (typeof value == "function") { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == "object") { - return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - return property(value); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key in Object2(object)) { - if (hasOwnProperty.call(object, key) && key != "constructor") { - result2.push(key); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject2(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { - result2.push(key); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key, collection2) { - result2[++index] = iteratee2(value, key, collection2); - }); - return result2; - } - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - stack || (stack = new Stack()); - if (isObject2(srcValue)) { - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } else { - var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2; - if (newValue === undefined2) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { - var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); - if (stacked) { - assignMergeValue(object, key, stacked); - return; - } - var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2; - var isCommon = newValue === undefined2; - if (isCommon) { - var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray(objValue)) { - newValue = objValue; - } else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } else { - newValue = []; - } - } else if (isPlainObject(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } else if (!isObject2(objValue) || isFunction(objValue)) { - newValue = initCloneObject(srcValue); - } - } else { - isCommon = false; - } - } - if (isCommon) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key, newValue); - } - function baseNth(array, n2) { - var length = array.length; - if (!length) { - return; - } - n2 += n2 < 0 ? length : 0; - return isIndex(n2, length) ? array[n2] : undefined2; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity]; - } - var index = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return { "criteria": criteria, "index": ++index, "value": value }; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path) { - return hasIn(object, path); - }); - } - function basePickBy(object, paths, predicate) { - var index = -1, length = paths.length, result2 = {}; - while (++index < length) { - var path = paths[index], value = baseGet(object, path); - if (predicate(value, path)) { - baseSet(result2, castPath(path, object), value); - } - } - return result2; - } - function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - } - function basePullAll(array, values2, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array; - if (array === values2) { - values2 = copyArray(values2); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index < length) { - var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - function basePullAt(array, indexes) { - var length = array ? indexes.length : 0, lastIndex = length - 1; - while (length--) { - var index = indexes[length]; - if (length == lastIndex || index !== previous) { - var previous = index; - if (isIndex(index)) { - splice.call(array, index, 1); - } else { - baseUnset(array, index); - } - } - } - return array; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start, end, step, fromRight) { - var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length); - while (length--) { - result2[fromRight ? length : ++index] = start; - start += step; - } - return result2; - } - function baseRepeat(string, n2) { - var result2 = ""; - if (!string || n2 < 1 || n2 > MAX_SAFE_INTEGER) { - return result2; - } - do { - if (n2 % 2) { - result2 += string; - } - n2 = nativeFloor(n2 / 2); - if (n2) { - string += string; - } - } while (n2); - return result2; - } - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - function baseSample(collection) { - return arraySample(values(collection)); - } - function baseSampleSize(collection, n2) { - var array = values(collection); - return shuffleSelf(array, baseClamp(n2, 0, array.length)); - } - function baseSet(object, path, value, customizer) { - if (!isObject2(object)) { - return object; - } - path = castPath(path, object); - var index = -1, length = path.length, lastIndex = length - 1, nested = object; - while (nested != null && ++index < length) { - var key = toKey(path[index]), newValue = value; - if (key === "__proto__" || key === "constructor" || key === "prototype") { - return object; - } - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined2; - if (newValue === undefined2) { - newValue = isObject2(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {}; - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - var baseSetData = !metaMap ? identity : function(func, data) { - metaMap.set(func, data); - return func; - }; - var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values(collection)); - } - function baseSlice(array, start, end) { - var index = -1, length = array.length; - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result2 = Array2(length); - while (++index < length) { - result2[index] = array[index + start]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index, collection2) { - result2 = predicate(value, index, collection2); - return !result2; - }); - return !!result2; - } - function baseSortedIndex(array, value, retHighest) { - var low = 0, high = array == null ? low : array.length; - if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = low + high >>> 1, computed = array[mid]; - if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity, retHighest); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? computed <= value : computed < value; - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - function baseSortedUniq(array, iteratee2) { - var index = -1, length = array.length, resIndex = 0, result2 = []; - while (++index < length) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - if (!index || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index < length) { - var value = array[index], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path) { - path = castPath(path, object); - object = parent(object, path); - return object == null || delete object[toKey(last(path))]; - } - function baseUpdate(object, path, updater, customizer) { - return baseSet(object, path, updater(baseGet(object, path)), customizer); - } - function baseWhile(array, predicate, isDrop, fromRight) { - var length = array.length, index = fromRight ? length : -1; - while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) { - } - return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length = arrays.length; - if (length < 2) { - return length ? baseUniq(arrays[0]) : []; - } - var index = -1, result2 = Array2(length); - while (++index < length) { - var array = arrays[index], othIndex = -1; - while (++othIndex < length) { - if (othIndex != index) { - result2[index] = baseDifference(result2[index] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values2, assignFunc) { - var index = -1, length = props.length, valsLength = values2.length, result2 = {}; - while (++index < length) { - var value = index < valsLength ? values2[index] : undefined2; - assignFunc(result2, props[index], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity; - } - function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } - var castRest = baseRest; - function castSlice(array, start, end) { - var length = array.length; - end = end === undefined2 ? length : end; - return !start && end >= length ? array : baseSlice(array, start, end); - } - var clearTimeout2 = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); - if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { - return 1; - } - if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { - return -1; - } - } - return 0; - } - function compareMultiple(object, other, orders) { - var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; - while (++index < length) { - var result2 = compareAscending(objCriteria[index], othCriteria[index]); - if (result2) { - if (index >= ordersLength) { - return result2; - } - var order = orders[index]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args[argsIndex++]; - } - return result2; - } - function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result2[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index = -1, length = source.length; - array || (array = Array2(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; - } - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index = -1, length = props.length; - while (++index < length) { - var key = props[index]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2; - if (newValue === undefined2) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined2 : customizer; - length = 1; - } - object = Object2(object); - while (++index < length) { - var source = sources[index]; - if (source) { - assigner(object, source, index, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection); - while (fromRight ? index-- : ++index < length) { - if (iteratee2(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index = -1, iterable = Object2(object), props = keysFunc(object), length = props.length; - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee2(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - function createBind(func, bitmask, thisArg) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func; - return fn2.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2; - var chr = strSymbols ? strSymbols[0] : string.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - var args = arguments; - switch (args.length) { - case 0: - return new Ctor(); - case 1: - return new Ctor(args[0]); - case 2: - return new Ctor(args[0], args[1]); - case 3: - return new Ctor(args[0], args[1], args[2]); - case 4: - return new Ctor(args[0], args[1], args[2], args[3]); - case 5: - return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args); - return isObject2(result2) ? result2 : thisBinding; - }; - } - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(length), index = length, placeholder = getHolder(wrapper); - while (index--) { - args[index] = arguments[index]; - } - var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder); - length -= holders.length; - if (length < arity) { - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - undefined2, - args, - holders, - undefined2, - undefined2, - arity - length - ); - } - var fn2 = this && this !== root && this instanceof wrapper ? Ctor : func; - return apply(fn2, this, args); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { - return iteratee2(iterable[key], key, iterable); - }; - } - var index = findIndexFunc(collection, predicate, fromIndex); - return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2; - }; - } - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; - if (fromRight) { - funcs.reverse(); - } - while (index--) { - var func = funcs[index]; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func) == "wrapper") { - var wrapper = new LodashWrapper([], true); - } - } - index = wrapper ? index : length; - while (++index < length) { - func = funcs[index]; - var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2; - if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { - wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); - } else { - wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); - } - } - return function() { - var args = arguments, value = args[0]; - if (wrapper && args.length == 1 && isArray(value)) { - return wrapper.plant(value).value(); - } - var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value; - while (++index2 < length) { - result2 = funcs[index2].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) { - var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(length), index = length; - while (index--) { - args[index] = arguments[index]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length -= holdersCount; - if (isCurried && length < arity) { - var newHolders = replaceHolders(args, placeholder); - return createRecurry( - func, - bitmask, - createHybrid, - wrapper.placeholder, - thisArg, - args, - newHolders, - argPos, - ary2, - arity - length - ); - } - var thisBinding = isBind ? thisArg : this, fn2 = isBindKey ? thisBinding[func] : func; - length = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length > 1) { - args.reverse(); - } - if (isAry && ary2 < length) { - args.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn2 = Ctor || createCtor(fn2); - } - return fn2.apply(thisBinding, args); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result2; - if (value === undefined2 && other === undefined2) { - return defaultValue; - } - if (value !== undefined2) { - result2 = value; - } - if (other !== undefined2) { - if (result2 === undefined2) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply(iteratee2, thisArg, args); - }); - }); - }); - } - function createPadding(length, chars) { - chars = chars === undefined2 ? " " : baseToString(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length).join("") : result2.slice(0, length); - } - function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn2 = this && this !== root && this instanceof wrapper ? Ctor : func; - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn2, isBind ? thisArg : this, args); - } - return wrapper; - } - function createRange(fromRight) { - return function(start, end, step) { - if (step && typeof step != "number" && isIterateeCall(start, end, step)) { - end = step = undefined2; - } - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials; - bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; - bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { - bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); - } - var newData = [ - func, - bitmask, - thisArg, - newPartials, - newHolders, - newPartialsRight, - newHoldersRight, - argPos, - ary2, - arity - ]; - var result2 = wrapFunc.apply(undefined2, newData); - if (isLaziable(func)) { - setData(result2, newData); - } - result2.placeholder = placeholder; - return setWrapToString(result2, func, bitmask); - } - function createRound(methodName) { - var func = Math2[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && nativeIsFinite(number)) { - var pair = (toString(number) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision)); - pair = (toString(value) + "e").split("e"); - return +(pair[0] + "e" + (+pair[1] - precision)); - } - return func(number); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop2 : function(values2) { - return new Set2(values2); - }; - function createToPairs(keysFunc) { - return function(object) { - var tag = getTag(object); - if (tag == mapTag) { - return mapToArray(object); - } - if (tag == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined2; - } - ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0); - arity = arity === undefined2 ? arity : toInteger(arity); - length -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined2; - } - var data = isBindKey ? undefined2 : getData(func); - var newData = [ - func, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - arity - ]; - if (data) { - mergeData(newData, data); - } - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0); - if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { - bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == WRAP_BIND_FLAG) { - var result2 = createBind(func, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func, bitmask, arity); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined2, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { - if (isObject2(objValue) && isObject2(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject(value) ? undefined2 : value; - } - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2; - stack.set(array, other); - stack.set(other, array); - while (++index < arrLength) { - var arrValue = array[index], othValue = other[index]; - if (customizer) { - var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined2) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], othValue = other[key]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func) { - return setToString(overRest(func, undefined2, flatten), func + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop2 : function(func) { - return metaMap.get(func); - }; - function getFuncName(func) { - var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0; - while (length--) { - var data = array[length], otherFunc = data.func; - if (otherFunc == null || otherFunc == func) { - return data.name; - } - } - return result2; - } - function getHolder(func) { - var object = hasOwnProperty.call(lodash, "placeholder") ? lodash : func; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map2, key) { - var data = map2.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - function getMatchData(object) { - var result2 = keys(object), length = result2.length; - while (length--) { - var key = result2[length], value = object[key]; - result2[length] = [key, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined2; - } - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined2; - var unmasked = true; - } catch (e2) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag = baseGetTag; - if (DataView2 && getTag(new DataView2(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) { - getTag = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result2; - }; - } - function getView(start, end, transforms) { - var index = -1, length = transforms.length; - while (++index < length) { - var data = transforms[index], size2 = data.size; - switch (data.type) { - case "drop": - start += size2; - break; - case "dropRight": - end -= size2; - break; - case "take": - end = nativeMin(end, start + size2); - break; - case "takeRight": - start = nativeMax(start, end - size2); - break; - } - } - return { "start": start, "end": end }; - } - function getWrapDetails(source) { - var match = source.match(reWrapDetails); - return match ? match[1].split(reSplitDetails) : []; - } - function hasPath(object, path, hasFunc) { - path = castPath(path, object); - var index = -1, length = path.length, result2 = false; - while (++index < length) { - var key = toKey(path[index]); - if (!(result2 = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result2 || ++index != length) { - return result2; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); - } - function initCloneArray(array) { - var length = array.length, result2 = new array.constructor(length); - if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return new Ctor(); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return new Ctor(); - case symbolTag: - return cloneSymbol(object); - } - } - function insertWrapDetails(source, details) { - var length = details.length; - if (!length) { - return source; - } - var lastIndex = length - 1; - details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex]; - details = details.join(length > 2 ? ", " : " "); - return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); - } - function isFlattenable(value) { - return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); - } - function isIterateeCall(value, index, object) { - if (!isObject2(object)) { - return false; - } - var type = typeof index; - if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) { - return eq(object[index], value); - } - return false; - } - function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - function isLaziable(func) { - var funcName = getFuncName(func), other = lodash[funcName]; - if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func === other) { - return true; - } - var data = getData(other); - return !!data && func === data[0]; - } - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - var isMaskable = coreJsData ? isFunction : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject2(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object)); - }; - } - function memoizeCapped(func) { - var result2 = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - var cache = result2.cache; - return result2; - } - function mergeData(data, source) { - var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); - var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; - if (!(isCommon || isCombo)) { - return data; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - var value = source[3]; - if (value) { - var partials = data[3]; - data[3] = partials ? composeArgs(partials, value, source[4]) : value; - data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; - } - value = source[5]; - if (value) { - partials = data[5]; - data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; - } - value = source[7]; - if (value) { - data[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - if (data[9] == null) { - data[9] = source[9]; - } - data[0] = source[0]; - data[1] = newBitmask; - return data; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key in Object2(object)) { - result2.push(key); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func, start, transform2) { - start = nativeMax(start === undefined2 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length); - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array2(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform2(array); - return apply(func, this, otherArgs); - }; - } - function parent(object, path) { - return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - function reorder(array, indexes) { - var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); - while (length--) { - var index = indexes[length]; - array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined2; - } - return array; - } - function safeGet(object, key) { - if (key === "constructor" && typeof object[key] === "function") { - return; - } - if (key == "__proto__") { - return; - } - return object[key]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - function shortOut(func) { - var count = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined2, arguments); - }; - } - function shuffleSelf(array, size2) { - var index = -1, length = array.length, lastIndex = length - 1; - size2 = size2 === undefined2 ? length : size2; - while (++index < size2) { - var rand = baseRandom(index, lastIndex), value = array[rand]; - array[rand] = array[index]; - array[index] = value; - } - array.length = size2; - return array; - } - var stringToPath = memoizeCapped(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e2) { - } - try { - return func + ""; - } catch (e2) { - } - } - return ""; - } - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = "_." + pair[0]; - if (bitmask & pair[1] && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size2, guard) { - if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) { - size2 = 1; - } else { - size2 = nativeMax(toInteger(size2), 0); - } - var length = array == null ? 0 : array.length; - if (!length || size2 < 1) { - return []; - } - var index = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2)); - while (index < length) { - result2[resIndex++] = baseSlice(array, index, index += size2); - } - return result2; - } - function compact(array) { - var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index < length) { - var value = array[index]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat() { - var length = arguments.length; - if (!length) { - return []; - } - var args = Array2(length - 1), array = arguments[0], index = length; - while (index--) { - args[index - 1] = arguments[index]; - } - return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - var difference = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values2) { - var iteratee2 = last(values2); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values2) { - var comparator = last(values2); - if (isArrayLikeObject(comparator)) { - comparator = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : []; - }); - function drop(array, n2, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n2 = guard || n2 === undefined2 ? 1 : toInteger(n2); - return baseSlice(array, n2 < 0 ? 0 : n2, length); - } - function dropRight(array, n2, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n2 = guard || n2 === undefined2 ? 1 : toInteger(n2); - n2 = length - n2; - return baseSlice(array, 0, n2 < 0 ? 0 : n2); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - function fill(array, value, start, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (start && typeof start != "number" && isIterateeCall(array, value, start)) { - start = 0; - end = length; - } - return baseFill(array, value, start, end); - } - function findIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length + index, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index); - } - function findLastIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = length - 1; - if (fromIndex !== undefined2) { - index = toInteger(fromIndex); - index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index, true); - } - function flatten(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, INFINITY) : []; - } - function flattenDepth(array, depth) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index < length) { - var pair = pairs[index]; - result2[pair[0]] = pair[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined2; - } - function indexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = fromIndex == null ? 0 : toInteger(fromIndex); - if (index < 0) { - index = nativeMax(length + index, 0); - } - return baseIndexOf(array, value, index); - } - function initial(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined2; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined2; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : []; - }); - function join(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined2; - } - function lastIndexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index = length; - if (fromIndex !== undefined2) { - index = toInteger(fromIndex); - index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); - } - return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true); - } - function nth(array, n2) { - return array && array.length ? baseNth(array, toInteger(n2)) : undefined2; - } - var pull = baseRest(pullAll); - function pullAll(array, values2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2) : array; - } - function pullAllBy(array, values2, iteratee2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values2, comparator) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length) ? +index : index; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index = -1, indexes = [], length = array.length; - predicate = getIteratee(predicate, 3); - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result2.push(value); - indexes.push(index); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(array); - } - function slice(array, start, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (end && typeof end != "number" && isIterateeCall(array, start, end)) { - start = 0; - end = length; - } else { - start = start == null ? 0 : toInteger(start); - end = end === undefined2 ? length : toInteger(end); - } - return baseSlice(array, start, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - function sortedIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index = baseSortedIndex(array, value); - if (index < length && eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - function sortedLastIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index = baseSortedIndex(array, value, true) - 1; - if (eq(array[index], value)) { - return index; - } - } - return -1; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 1, length) : []; - } - function take(array, n2, guard) { - if (!(array && array.length)) { - return []; - } - n2 = guard || n2 === undefined2 ? 1 : toInteger(n2); - return baseSlice(array, 0, n2 < 0 ? 0 : n2); - } - function takeRight(array, n2, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n2 = guard || n2 === undefined2 ? 1 : toInteger(n2); - n2 = length - n2; - return baseSlice(array, n2 < 0 ? 0 : n2, length); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator); - }); - function uniq(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined2; - return array && array.length ? baseUniq(array, undefined2, comparator) : []; - } - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length = nativeMax(group.length, length); - return true; - } - }); - return baseTimes(length, function(index) { - return arrayMap(array, baseProperty(index)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply(iteratee2, undefined2, group); - }); - } - var without = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, values2) : []; - }); - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values2) { - return baseZipObject(props || [], values2 || [], assignValue); - } - function zipObjectDeep(props, values2) { - return baseZipObject(props || [], values2 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2; - return unzipWith(arrays, iteratee2); - }); - function chain(value) { - var result2 = lodash(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - var wrapperAt = flatRest(function(paths) { - var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { - return baseAt(object, paths); - }; - if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) { - return this.thru(interceptor); - } - value = value.slice(start, +start + (length ? 1 : 0)); - value.__actions__.push({ - "func": thru, - "args": [interceptor], - "thisArg": undefined2 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length && !array.length) { - array.push(undefined2); - } - return array; - }); - }); - function wrapperChain() { - return chain(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined2) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++]; - return { "done": done, "value": value }; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone3 = wrapperClone(parent2); - clone3.__index__ = 0; - clone3.__values__ = undefined2; - if (result2) { - previous.__wrapped__ = clone3; - } else { - result2 = clone3; - } - var previous = clone3; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - "func": thru, - "args": [reverse], - "thisArg": undefined2 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty.call(result2, key)) { - ++result2[key]; - } else { - baseAssignValue(result2, key, 1); - } - }); - function every(collection, predicate, guard) { - var func = isArray(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - function filter(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - var find = createFind(findIndex); - var findLast = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), INFINITY); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee2), depth); - } - function forEach(collection, iteratee2) { - var func = isArray(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func = isArray(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee2, 3)); - } - var groupBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty.call(result2, key)) { - result2[key].push(value); - } else { - baseAssignValue(result2, key, [value]); - } - }); - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values(collection); - fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0; - var length = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length + fromIndex, 0); - } - return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1; - } - var invokeMap = baseRest(function(collection, path, args) { - var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key) { - baseAssignValue(result2, key, value); - }); - function map(collection, iteratee2) { - var func = isArray(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined2 : orders; - if (!isArray(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition = createAggregator(function(result2, value, key) { - result2[key ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); - } - function sampleSize(collection, n2, guard) { - if (guard ? isIterateeCall(collection, n2, guard) : n2 === undefined2) { - n2 = 1; - } else { - n2 = toInteger(n2); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n2); - } - function shuffle(collection) { - var func = isArray(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - function some(collection, predicate, guard) { - var func = isArray(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length = iteratees.length; - if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n2, func) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n2 = toInteger(n2); - return function() { - if (--n2 < 1) { - return func.apply(this, arguments); - } - }; - } - function ary(func, n2, guard) { - n2 = guard ? undefined2 : n2; - n2 = func && n2 == null ? func.length : n2; - return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n2); - } - function before(n2, func) { - var result2; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n2 = toInteger(n2); - return function() { - if (--n2 > 0) { - result2 = func.apply(this, arguments); - } - if (n2 <= 1) { - func = undefined2; - } - return result2; - }; - } - var bind = baseRest(function(func, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); - }); - var bindKey = baseRest(function(object, key, partials) { - var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(key, bitmask, object, partials, holders); - }); - function curry(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce(func, wait, options) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject2(options)) { - leading = !!options.leading; - maxing = "maxWait" in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - function invokeFunc(time) { - var args = lastArgs, thisArg = lastThis; - lastArgs = lastThis = undefined2; - lastInvokeTime = time; - result2 = func.apply(thisArg, args); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; - return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined2; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined2; - return result2; - } - function cancel() { - if (timerId !== undefined2) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined2; - } - function flush() { - return timerId === undefined2 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined2) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined2) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - function flip(func) { - return createWrap(func, WRAP_FLIP_FLAG); - } - function memoize(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; - if (cache.has(key)) { - return cache.get(key); - } - var result2 = func.apply(this, args); - memoized.cache = cache.set(key, result2) || cache; - return result2; - }; - memoized.cache = new (memoize.Cache || MapCache)(); - return memoized; - } - memoize.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return function() { - var args = arguments; - switch (args.length) { - case 0: - return !predicate.call(this); - case 1: - return !predicate.call(this, args[0]); - case 2: - return !predicate.call(this, args[0], args[1]); - case 3: - return !predicate.call(this, args[0], args[1], args[2]); - } - return !predicate.apply(this, args); - }; - } - function once(func) { - return before(2, func); - } - var overArgs = castRest(function(func, transforms) { - transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - var funcsLength = transforms.length; - return baseRest(function(args) { - var index = -1, length = nativeMin(args.length, funcsLength); - while (++index < length) { - args[index] = transforms[index].call(this, args[index]); - } - return apply(func, this, args); - }); - }); - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders); - }); - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders); - }); - var rearg = flatRest(function(func, indexes) { - return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes); - }); - function rest(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start === undefined2 ? start : toInteger(start); - return baseRest(func, start); - } - function spread(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start == null ? 0 : nativeMax(toInteger(start), 0); - return baseRest(function(args) { - var array = args[start], otherArgs = castSlice(args, 0, start); - if (array) { - arrayPush(otherArgs, array); - } - return apply(func, this, otherArgs); - }); - } - function throttle(func, wait, options) { - var leading = true, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (isObject2(options)) { - leading = "leading" in options ? !!options.leading : leading; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - return debounce(func, wait, { - "leading": leading, - "maxWait": wait, - "trailing": trailing - }); - } - function unary(func) { - return ary(func, 1); - } - function wrap(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray(value) ? value : [value]; - } - function clone2(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt2 = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray = Array2.isArray; - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - function isBoolean(value) { - return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag; - } - var isBuffer = nativeIsBuffer || stubFalse; - var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); - } - function isEmpty2(value) { - if (value == null) { - return true; - } - if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty.call(value, key)) { - return false; - } - } - return true; - } - function isEqual(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - var result2 = customizer ? customizer(value, other) : undefined2; - return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2; - } - function isError(value) { - if (!isObjectLike(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject(value); - } - function isFinite(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction(value) { - if (!isObject2(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - function isInteger(value) { - return typeof value == "number" && value == toInteger(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function isObject2(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN2(value) { - return isNumber(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber(value) { - return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag; - } - function isPlainObject(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString(value) { - return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined(value) { - return value === undefined2; - } - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike(value) && baseGetTag(value) == weakSetTag; - } - var lt2 = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - function toArray(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString(value) ? stringToArray(value) : copyArray(value); - } - if (symIterator && value[symIterator]) { - return iteratorToArray(value[symIterator]()); - } - var tag = getTag(value), func = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values; - return func(value); - } - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign2 = value < 0 ? -1 : 1; - return sign2 * MAX_INTEGER; - } - return value === value ? value : 0; - } - function toInteger(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - function toNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject2(value)) { - var other = typeof value.valueOf == "function" ? value.valueOf() : value; - value = isObject2(other) ? other + "" : other; - } - if (typeof value != "string") { - return value === 0 ? value : +value; - } - value = baseTrim(value); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0; - } - function toString(value) { - return value == null ? "" : baseToString(value); - } - var assign = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at2 = flatRest(baseAt); - function create(prototype, properties) { - var result2 = baseCreate(prototype); - return properties == null ? result2 : baseAssign(result2, properties); - } - var defaults = baseRest(function(object, sources) { - object = Object2(object); - var index = -1; - var length = sources.length; - var guard = length > 2 ? sources[2] : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - length = 1; - } - while (++index < length) { - var source = sources[index]; - var props = keysIn(source); - var propsIndex = -1; - var propsLength = props.length; - while (++propsIndex < propsLength) { - var key = props[propsIndex]; - var value = object[key]; - if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) { - object[key] = source[key]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args) { - args.push(undefined2, customDefaultsMerge); - return apply(mergeWith, undefined2, args); - }); - function findKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get(object, path, defaultValue) { - var result2 = object == null ? undefined2 : baseGet(object, path); - return result2 === undefined2 ? defaultValue : result2; - } - function has(object, path) { - return object != null && hasPath(object, path, baseHas); - } - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - var invert = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key; - }, constant(identity)); - var invertBy = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty.call(result2, value)) { - result2[value].push(key); - } else { - result2[value] = [key]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, iteratee2(value, key, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, key, iteratee2(value, key, object2)); - }); - return result2; - } - var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path) { - path = castPath(path, object); - isDeep || (isDeep = path.length > 1); - return path; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length = paths.length; - while (length--) { - baseUnset(result2, paths[length]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop) { - return [prop]; - }); - predicate = getIteratee(predicate); - return basePickBy(object, props, function(value, path) { - return predicate(value, path[0]); - }); - } - function result(object, path, defaultValue) { - path = castPath(path, object); - var index = -1, length = path.length; - if (!length) { - length = 1; - object = undefined2; - } - while (++index < length) { - var value = object == null ? undefined2 : object[toKey(path[index])]; - if (value === undefined2) { - index = length; - value = defaultValue; - } - object = isFunction(value) ? value.call(object) : value; - } - return object; - } - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } - function setWith(object, path, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseSet(object, path, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); - iteratee2 = getIteratee(iteratee2, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor() : []; - } else if (isObject2(object)) { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object2) { - return iteratee2(accumulator, value, index, object2); - }); - return accumulator; - } - function unset(object, path) { - return object == null ? true : baseUnset(object, path); - } - function update(object, path, updater) { - return object == null ? object : baseUpdate(object, path, castFunction(updater)); - } - function updateWith(object, path, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); - } - function values(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp(number, lower, upper) { - if (upper === undefined2) { - upper = lower; - lower = undefined2; - } - if (upper !== undefined2) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined2) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - function inRange(number, start, end) { - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start, end); - } - function random(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined2; - } - if (floating === undefined2) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined2; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined2; - } - } - if (lower === undefined2 && upper === undefined2) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined2) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper); - } - return baseRandom(lower, upper); - } - var camelCase = createCompounder(function(result2, word, index) { - word = word.toLowerCase(); - return result2 + (index ? capitalize(word) : word); - }); - function capitalize(string) { - return upperFirst(toString(string).toLowerCase()); - } - function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith(string, target, position) { - string = toString(string); - target = baseToString(target); - var length = string.length; - position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length); - var end = position; - position -= target.length; - return position >= 0 && string.slice(position, end) == target; - } - function escape2(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - function escapeRegExp(string) { - string = toString(string); - return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string; - } - var kebabCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - function pad(string, length, chars) { - string = toString(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - if (!length || strLength >= length) { - return string; - } - var mid = (length - strLength) / 2; - return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars); - } - function padEnd(string, length, chars) { - string = toString(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - return length && strLength < length ? string + createPadding(length - strLength, chars) : string; - } - function padStart(string, length, chars) { - string = toString(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - return length && strLength < length ? createPadding(length - strLength, chars) + string : string; - } - function parseInt2(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0); - } - function repeat(string, n2, guard) { - if (guard ? isIterateeCall(string, n2, guard) : n2 === undefined2) { - n2 = 1; - } else { - n2 = toInteger(n2); - } - return baseRepeat(toString(string), n2); - } - function replace() { - var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : string.replace(args[1], args[2]); - } - var snakeCase = createCompounder(function(result2, word, index) { - return result2 + (index ? "_" : "") + word.toLowerCase(); - }); - function split(string, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) { - separator = limit = undefined2; - } - limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string = toString(string); - if (string && (typeof separator == "string" || separator != null && !isRegExp(separator))) { - separator = baseToString(separator); - if (!separator && hasUnicode(string)) { - return castSlice(stringToArray(string), 0, limit); - } - } - return string.split(separator, limit); - } - var startCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + upperFirst(word); - }); - function startsWith(string, target, position) { - string = toString(string); - position = position == null ? 0 : baseClamp(toInteger(position), 0, string.length); - target = baseToString(target); - return string.slice(position, position + target.length) == target; - } - function template(string, options, guard) { - var settings = lodash.templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = undefined2; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2( - (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", - "g" - ); - var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index = offset + match.length; - return match; - }); - source += "';\n"; - var variable = hasOwnProperty.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues); - }); - result2.source = source; - if (isError(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString(value).toLowerCase(); - } - function toUpper(value) { - return toString(value).toUpperCase(); - } - function trim(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return baseTrim(string); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars), start = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; - return castSlice(strSymbols, start, end).join(""); - } - function trimEnd(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return string.slice(0, trimmedEndIndex(string) + 1); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return string.replace(reTrimStart, ""); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), start = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start).join(""); - } - function truncate(string, options) { - var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject2(options)) { - var separator = "separator" in options ? options.separator : separator; - length = "length" in options ? toInteger(options.length) : length; - omission = "omission" in options ? baseToString(options.omission) : omission; - } - string = toString(string); - var strLength = string.length; - if (hasUnicode(string)) { - var strSymbols = stringToArray(string); - strLength = strSymbols.length; - } - if (length >= strLength) { - return string; - } - var end = length - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end); - if (separator === undefined2) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp(separator)) { - if (string.slice(end).search(separator)) { - var match, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match = separator.exec(substring)) { - var newEnd = match.index; - } - result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd); - } - } else if (string.indexOf(baseToString(separator), end) != end) { - var index = result2.lastIndexOf(separator); - if (index > -1) { - result2 = result2.slice(0, index); - } - } - return result2 + omission; - } - function unescape2(string) { - string = toString(string); - return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; - } - var upperCase = createCompounder(function(result2, word, index) { - return result2 + (index ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined2 : pattern; - if (pattern === undefined2) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; - } - var attempt = baseRest(function(func, args) { - try { - return apply(func, undefined2, args); - } catch (e2) { - return isError(e2) ? e2 : new Error2(e2); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key) { - key = toKey(key); - baseAssignValue(object, key, bind(object[key], object)); - }); - return object; - }); - function cond(pairs) { - var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length ? [] : arrayMap(pairs, function(pair) { - if (typeof pair[1] != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return [toIteratee(pair[0]), pair[1]]; - }); - return baseRest(function(args) { - var index = -1; - while (++index < length) { - var pair = pairs[index]; - if (apply(pair[0], this, args)) { - return apply(pair[1], this, args); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue) { - return value == null || value !== value ? defaultValue : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity(value) { - return value; - } - function iteratee(func) { - return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path, args) { - return function(object) { - return baseInvoke(object, path, args); - }; - }); - var methodOf = baseRest(function(object, args) { - return function(path) { - return baseInvoke(object, path, args); - }; - }); - function mixin(object, source, options) { - var props = keys(source), methodNames = baseFunctions(source, props); - if (options == null && !(isObject2(source) && (methodNames.length || !props.length))) { - options = source; - source = object; - object = this; - methodNames = baseFunctions(source, keys(source)); - } - var chain2 = !(isObject2(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object); - arrayEach(methodNames, function(methodName) { - var func = source[methodName]; - object[methodName] = func; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain2 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({ "func": func, "args": arguments, "thisArg": object }); - result2.__chain__ = chainAll; - return result2; - } - return func.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop2() { - } - function nthArg(n2) { - n2 = toInteger(n2); - return baseRest(function(args) { - return baseNth(args, n2); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - } - function propertyOf(object) { - return function(path) { - return object == null ? undefined2 : baseGet(object, path); - }; - } - var range2 = createRange(); - var rangeRight = createRange(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n2, iteratee2) { - n2 = toInteger(n2); - if (n2 < 1 || n2 > MAX_SAFE_INTEGER) { - return []; - } - var index = MAX_ARRAY_LENGTH, length = nativeMin(n2, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n2 -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length, iteratee2); - while (++index < n2) { - iteratee2(index); - } - return result2; - } - function toPath(value) { - if (isArray(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); - } - function uniqueId(prefix) { - var id = ++idCounter; - return toString(prefix) + id; - } - var add = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil = createRound("ceil"); - var divide = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor = createRound("floor"); - function max(array) { - return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2; - } - function mean(array) { - return baseMean(array, identity); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min(array) { - return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2; - } - var multiply = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round = createRound("round"); - var subtract = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum(array) { - return array && array.length ? baseSum(array, identity) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash.after = after; - lodash.ary = ary; - lodash.assign = assign; - lodash.assignIn = assignIn; - lodash.assignInWith = assignInWith; - lodash.assignWith = assignWith; - lodash.at = at2; - lodash.before = before; - lodash.bind = bind; - lodash.bindAll = bindAll; - lodash.bindKey = bindKey; - lodash.castArray = castArray; - lodash.chain = chain; - lodash.chunk = chunk; - lodash.compact = compact; - lodash.concat = concat; - lodash.cond = cond; - lodash.conforms = conforms; - lodash.constant = constant; - lodash.countBy = countBy; - lodash.create = create; - lodash.curry = curry; - lodash.curryRight = curryRight; - lodash.debounce = debounce; - lodash.defaults = defaults; - lodash.defaultsDeep = defaultsDeep; - lodash.defer = defer; - lodash.delay = delay; - lodash.difference = difference; - lodash.differenceBy = differenceBy; - lodash.differenceWith = differenceWith; - lodash.drop = drop; - lodash.dropRight = dropRight; - lodash.dropRightWhile = dropRightWhile; - lodash.dropWhile = dropWhile; - lodash.fill = fill; - lodash.filter = filter; - lodash.flatMap = flatMap; - lodash.flatMapDeep = flatMapDeep; - lodash.flatMapDepth = flatMapDepth; - lodash.flatten = flatten; - lodash.flattenDeep = flattenDeep; - lodash.flattenDepth = flattenDepth; - lodash.flip = flip; - lodash.flow = flow; - lodash.flowRight = flowRight; - lodash.fromPairs = fromPairs; - lodash.functions = functions; - lodash.functionsIn = functionsIn; - lodash.groupBy = groupBy; - lodash.initial = initial; - lodash.intersection = intersection; - lodash.intersectionBy = intersectionBy; - lodash.intersectionWith = intersectionWith; - lodash.invert = invert; - lodash.invertBy = invertBy; - lodash.invokeMap = invokeMap; - lodash.iteratee = iteratee; - lodash.keyBy = keyBy; - lodash.keys = keys; - lodash.keysIn = keysIn; - lodash.map = map; - lodash.mapKeys = mapKeys; - lodash.mapValues = mapValues; - lodash.matches = matches; - lodash.matchesProperty = matchesProperty; - lodash.memoize = memoize; - lodash.merge = merge; - lodash.mergeWith = mergeWith; - lodash.method = method; - lodash.methodOf = methodOf; - lodash.mixin = mixin; - lodash.negate = negate; - lodash.nthArg = nthArg; - lodash.omit = omit; - lodash.omitBy = omitBy; - lodash.once = once; - lodash.orderBy = orderBy; - lodash.over = over; - lodash.overArgs = overArgs; - lodash.overEvery = overEvery; - lodash.overSome = overSome; - lodash.partial = partial; - lodash.partialRight = partialRight; - lodash.partition = partition; - lodash.pick = pick; - lodash.pickBy = pickBy; - lodash.property = property; - lodash.propertyOf = propertyOf; - lodash.pull = pull; - lodash.pullAll = pullAll; - lodash.pullAllBy = pullAllBy; - lodash.pullAllWith = pullAllWith; - lodash.pullAt = pullAt; - lodash.range = range2; - lodash.rangeRight = rangeRight; - lodash.rearg = rearg; - lodash.reject = reject; - lodash.remove = remove; - lodash.rest = rest; - lodash.reverse = reverse; - lodash.sampleSize = sampleSize; - lodash.set = set; - lodash.setWith = setWith; - lodash.shuffle = shuffle; - lodash.slice = slice; - lodash.sortBy = sortBy; - lodash.sortedUniq = sortedUniq; - lodash.sortedUniqBy = sortedUniqBy; - lodash.split = split; - lodash.spread = spread; - lodash.tail = tail; - lodash.take = take; - lodash.takeRight = takeRight; - lodash.takeRightWhile = takeRightWhile; - lodash.takeWhile = takeWhile; - lodash.tap = tap; - lodash.throttle = throttle; - lodash.thru = thru; - lodash.toArray = toArray; - lodash.toPairs = toPairs; - lodash.toPairsIn = toPairsIn; - lodash.toPath = toPath; - lodash.toPlainObject = toPlainObject; - lodash.transform = transform; - lodash.unary = unary; - lodash.union = union; - lodash.unionBy = unionBy; - lodash.unionWith = unionWith; - lodash.uniq = uniq; - lodash.uniqBy = uniqBy; - lodash.uniqWith = uniqWith; - lodash.unset = unset; - lodash.unzip = unzip; - lodash.unzipWith = unzipWith; - lodash.update = update; - lodash.updateWith = updateWith; - lodash.values = values; - lodash.valuesIn = valuesIn; - lodash.without = without; - lodash.words = words; - lodash.wrap = wrap; - lodash.xor = xor; - lodash.xorBy = xorBy; - lodash.xorWith = xorWith; - lodash.zip = zip; - lodash.zipObject = zipObject; - lodash.zipObjectDeep = zipObjectDeep; - lodash.zipWith = zipWith; - lodash.entries = toPairs; - lodash.entriesIn = toPairsIn; - lodash.extend = assignIn; - lodash.extendWith = assignInWith; - mixin(lodash, lodash); - lodash.add = add; - lodash.attempt = attempt; - lodash.camelCase = camelCase; - lodash.capitalize = capitalize; - lodash.ceil = ceil; - lodash.clamp = clamp; - lodash.clone = clone2; - lodash.cloneDeep = cloneDeep; - lodash.cloneDeepWith = cloneDeepWith; - lodash.cloneWith = cloneWith; - lodash.conformsTo = conformsTo; - lodash.deburr = deburr; - lodash.defaultTo = defaultTo; - lodash.divide = divide; - lodash.endsWith = endsWith; - lodash.eq = eq; - lodash.escape = escape2; - lodash.escapeRegExp = escapeRegExp; - lodash.every = every; - lodash.find = find; - lodash.findIndex = findIndex; - lodash.findKey = findKey; - lodash.findLast = findLast; - lodash.findLastIndex = findLastIndex; - lodash.findLastKey = findLastKey; - lodash.floor = floor; - lodash.forEach = forEach; - lodash.forEachRight = forEachRight; - lodash.forIn = forIn; - lodash.forInRight = forInRight; - lodash.forOwn = forOwn; - lodash.forOwnRight = forOwnRight; - lodash.get = get; - lodash.gt = gt2; - lodash.gte = gte; - lodash.has = has; - lodash.hasIn = hasIn; - lodash.head = head; - lodash.identity = identity; - lodash.includes = includes; - lodash.indexOf = indexOf; - lodash.inRange = inRange; - lodash.invoke = invoke; - lodash.isArguments = isArguments; - lodash.isArray = isArray; - lodash.isArrayBuffer = isArrayBuffer; - lodash.isArrayLike = isArrayLike; - lodash.isArrayLikeObject = isArrayLikeObject; - lodash.isBoolean = isBoolean; - lodash.isBuffer = isBuffer; - lodash.isDate = isDate; - lodash.isElement = isElement; - lodash.isEmpty = isEmpty2; - lodash.isEqual = isEqual; - lodash.isEqualWith = isEqualWith; - lodash.isError = isError; - lodash.isFinite = isFinite; - lodash.isFunction = isFunction; - lodash.isInteger = isInteger; - lodash.isLength = isLength; - lodash.isMap = isMap; - lodash.isMatch = isMatch; - lodash.isMatchWith = isMatchWith; - lodash.isNaN = isNaN2; - lodash.isNative = isNative; - lodash.isNil = isNil; - lodash.isNull = isNull; - lodash.isNumber = isNumber; - lodash.isObject = isObject2; - lodash.isObjectLike = isObjectLike; - lodash.isPlainObject = isPlainObject; - lodash.isRegExp = isRegExp; - lodash.isSafeInteger = isSafeInteger; - lodash.isSet = isSet; - lodash.isString = isString; - lodash.isSymbol = isSymbol; - lodash.isTypedArray = isTypedArray; - lodash.isUndefined = isUndefined; - lodash.isWeakMap = isWeakMap; - lodash.isWeakSet = isWeakSet; - lodash.join = join; - lodash.kebabCase = kebabCase; - lodash.last = last; - lodash.lastIndexOf = lastIndexOf; - lodash.lowerCase = lowerCase; - lodash.lowerFirst = lowerFirst; - lodash.lt = lt2; - lodash.lte = lte; - lodash.max = max; - lodash.maxBy = maxBy; - lodash.mean = mean; - lodash.meanBy = meanBy; - lodash.min = min; - lodash.minBy = minBy; - lodash.stubArray = stubArray; - lodash.stubFalse = stubFalse; - lodash.stubObject = stubObject; - lodash.stubString = stubString; - lodash.stubTrue = stubTrue; - lodash.multiply = multiply; - lodash.nth = nth; - lodash.noConflict = noConflict; - lodash.noop = noop2; - lodash.now = now; - lodash.pad = pad; - lodash.padEnd = padEnd; - lodash.padStart = padStart; - lodash.parseInt = parseInt2; - lodash.random = random; - lodash.reduce = reduce; - lodash.reduceRight = reduceRight; - lodash.repeat = repeat; - lodash.replace = replace; - lodash.result = result; - lodash.round = round; - lodash.runInContext = runInContext2; - lodash.sample = sample; - lodash.size = size; - lodash.snakeCase = snakeCase; - lodash.some = some; - lodash.sortedIndex = sortedIndex; - lodash.sortedIndexBy = sortedIndexBy; - lodash.sortedIndexOf = sortedIndexOf; - lodash.sortedLastIndex = sortedLastIndex; - lodash.sortedLastIndexBy = sortedLastIndexBy; - lodash.sortedLastIndexOf = sortedLastIndexOf; - lodash.startCase = startCase; - lodash.startsWith = startsWith; - lodash.subtract = subtract; - lodash.sum = sum; - lodash.sumBy = sumBy; - lodash.template = template; - lodash.times = times; - lodash.toFinite = toFinite; - lodash.toInteger = toInteger; - lodash.toLength = toLength; - lodash.toLower = toLower; - lodash.toNumber = toNumber; - lodash.toSafeInteger = toSafeInteger; - lodash.toString = toString; - lodash.toUpper = toUpper; - lodash.trim = trim; - lodash.trimEnd = trimEnd; - lodash.trimStart = trimStart; - lodash.truncate = truncate; - lodash.unescape = unescape2; - lodash.uniqueId = uniqueId; - lodash.upperCase = upperCase; - lodash.upperFirst = upperFirst; - lodash.each = forEach; - lodash.eachRight = forEachRight; - lodash.first = head; - mixin(lodash, function() { - var source = {}; - baseForOwn(lodash, function(func, methodName) { - if (!hasOwnProperty.call(lodash.prototype, methodName)) { - source[methodName] = func; - } - }); - return source; - }(), { "chain": false }); - lodash.VERSION = VERSION; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash[methodName].placeholder = lodash; - }); - arrayEach(["drop", "take"], function(methodName, index) { - LazyWrapper.prototype[methodName] = function(n2) { - n2 = n2 === undefined2 ? 1 : nativeMax(toInteger(n2), 0); - var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n2, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n2, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n2) { - return this.reverse()[methodName](n2).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index) { - var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index) { - var takeName = "take" + (index ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index) { - var dropName = "drop" + (index ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { - if (typeof path == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path, args); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start, end) { - start = toInteger(start); - var result2 = this; - if (result2.__filtered__ && (start > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start < 0) { - result2 = result2.takeRight(-start); - } else if (start) { - result2 = result2.drop(start); - } - if (end !== undefined2) { - end = toInteger(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash.prototype[methodName] = function() { - var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash, arrayPush([value2], args)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func.apply(value, args); - result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 }); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func.apply(this, args); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash.prototype[methodName] = function() { - var args = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func.apply(isArray(value) ? value : [], args); - } - return this[chainName](function(value2) { - return func.apply(isArray(value2) ? value2 : [], args); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var lodashFunc = lodash[methodName]; - if (lodashFunc) { - var key = lodashFunc.name + ""; - if (!hasOwnProperty.call(realNames, key)) { - realNames[key] = []; - } - realNames[key].push({ "name": methodName, "func": lodashFunc }); - } - }); - realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined2 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash.prototype.at = wrapperAt; - lodash.prototype.chain = wrapperChain; - lodash.prototype.commit = wrapperCommit; - lodash.prototype.next = wrapperNext; - lodash.prototype.plant = wrapperPlant; - lodash.prototype.reverse = wrapperReverse; - lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; - lodash.prototype.first = lodash.prototype.head; - if (symIterator) { - lodash.prototype[symIterator] = wrapperToIterator; - } - return lodash; - }; - var _5 = runInContext(); - if (typeof define == "function" && typeof define.amd == "object" && define.amd) { - root._ = _5; - define(function() { - return _5; - }); - } else if (freeModule) { - (freeModule.exports = _5)._ = _5; - freeExports._ = _5; - } else { - root._ = _5; - } - }).call(exports2); - } - }); - - // (disabled):fs - var require_fs = __commonJS({ - "(disabled):fs"() { - } - }); - - // (disabled):node_modules/canvas/browser.js - var require_browser = __commonJS({ - "(disabled):node_modules/canvas/browser.js"() { - } - }); - - // (disabled):url - var require_url = __commonJS({ - "(disabled):url"() { - } - }); - - // (disabled):http - var require_http = __commonJS({ - "(disabled):http"() { - } - }); - - // (disabled):https - var require_https = __commonJS({ - "(disabled):https"() { - } - }); - - // (disabled):zlib - var require_zlib = __commonJS({ - "(disabled):zlib"() { - } - }); - - // node_modules/pdfjs-dist/build/pdf.js - var require_pdf = __commonJS({ - "node_modules/pdfjs-dist/build/pdf.js"(exports, module) { - (function webpackUniversalModuleDefinition(root, factory) { - if (typeof exports === "object" && typeof module === "object") - module.exports = root.pdfjsLib = factory(); - else if (typeof define === "function" && define.amd) - define("pdfjs-dist/build/pdf", [], () => { - return root.pdfjsLib = factory(); - }); - else if (typeof exports === "object") - exports["pdfjs-dist/build/pdf"] = root.pdfjsLib = factory(); - else - root["pdfjs-dist/build/pdf"] = root.pdfjsLib = factory(); - })(globalThis, () => { - return ( - /******/ - (() => { - "use strict"; - var __webpack_modules__ = [ - , - /* 1 */ - /***/ - (__unused_webpack_module2, exports2) => { - var _settled; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.VerbosityLevel = exports2.Util = exports2.UnknownErrorException = exports2.UnexpectedResponseException = exports2.TextRenderingMode = exports2.RenderingIntentFlag = exports2.PromiseCapability = exports2.PermissionFlag = exports2.PasswordResponses = exports2.PasswordException = exports2.PageActionEventType = exports2.OPS = exports2.MissingPDFException = exports2.MAX_IMAGE_SIZE_TO_CACHE = exports2.LINE_FACTOR = exports2.LINE_DESCENT_FACTOR = exports2.InvalidPDFException = exports2.ImageKind = exports2.IDENTITY_MATRIX = exports2.FormatError = exports2.FeatureTest = exports2.FONT_IDENTITY_MATRIX = exports2.DocumentActionEventType = exports2.CMapCompressionType = exports2.BaseException = exports2.BASELINE_FACTOR = exports2.AnnotationType = exports2.AnnotationReplyType = exports2.AnnotationPrefix = exports2.AnnotationMode = exports2.AnnotationFlag = exports2.AnnotationFieldFlag = exports2.AnnotationEditorType = exports2.AnnotationEditorPrefix = exports2.AnnotationEditorParamsType = exports2.AnnotationBorderStyleType = exports2.AnnotationActionEventType = exports2.AbortException = void 0; - exports2.assert = assert; - exports2.bytesToString = bytesToString; - exports2.createValidAbsoluteUrl = createValidAbsoluteUrl; - exports2.getModificationDate = getModificationDate; - exports2.getUuid = getUuid; - exports2.getVerbosityLevel = getVerbosityLevel; - exports2.info = info; - exports2.isArrayBuffer = isArrayBuffer; - exports2.isArrayEqual = isArrayEqual; - exports2.isNodeJS = void 0; - exports2.normalizeUnicode = normalizeUnicode; - exports2.objectFromMap = objectFromMap; - exports2.objectSize = objectSize; - exports2.setVerbosityLevel = setVerbosityLevel; - exports2.shadow = shadow; - exports2.string32 = string32; - exports2.stringToBytes = stringToBytes; - exports2.stringToPDFString = stringToPDFString; - exports2.stringToUTF8String = stringToUTF8String; - exports2.unreachable = unreachable; - exports2.utf8StringToString = utf8StringToString; - exports2.warn = warn; - const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions.nw && !(process.versions.electron && process.type && process.type !== "browser"); - exports2.isNodeJS = isNodeJS; - const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; - exports2.IDENTITY_MATRIX = IDENTITY_MATRIX; - const FONT_IDENTITY_MATRIX = [1e-3, 0, 0, 1e-3, 0, 0]; - exports2.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX; - const MAX_IMAGE_SIZE_TO_CACHE = 1e7; - exports2.MAX_IMAGE_SIZE_TO_CACHE = MAX_IMAGE_SIZE_TO_CACHE; - const LINE_FACTOR = 1.35; - exports2.LINE_FACTOR = LINE_FACTOR; - const LINE_DESCENT_FACTOR = 0.35; - exports2.LINE_DESCENT_FACTOR = LINE_DESCENT_FACTOR; - const BASELINE_FACTOR = LINE_DESCENT_FACTOR / LINE_FACTOR; - exports2.BASELINE_FACTOR = BASELINE_FACTOR; - const RenderingIntentFlag = { - ANY: 1, - DISPLAY: 2, - PRINT: 4, - SAVE: 8, - ANNOTATIONS_FORMS: 16, - ANNOTATIONS_STORAGE: 32, - ANNOTATIONS_DISABLE: 64, - OPLIST: 256 - }; - exports2.RenderingIntentFlag = RenderingIntentFlag; - const AnnotationMode = { - DISABLE: 0, - ENABLE: 1, - ENABLE_FORMS: 2, - ENABLE_STORAGE: 3 - }; - exports2.AnnotationMode = AnnotationMode; - const AnnotationEditorPrefix = "pdfjs_internal_editor_"; - exports2.AnnotationEditorPrefix = AnnotationEditorPrefix; - const AnnotationEditorType = { - DISABLE: -1, - NONE: 0, - FREETEXT: 3, - STAMP: 13, - INK: 15 - }; - exports2.AnnotationEditorType = AnnotationEditorType; - const AnnotationEditorParamsType = { - RESIZE: 1, - CREATE: 2, - FREETEXT_SIZE: 11, - FREETEXT_COLOR: 12, - FREETEXT_OPACITY: 13, - INK_COLOR: 21, - INK_THICKNESS: 22, - INK_OPACITY: 23 - }; - exports2.AnnotationEditorParamsType = AnnotationEditorParamsType; - const PermissionFlag = { - PRINT: 4, - MODIFY_CONTENTS: 8, - COPY: 16, - MODIFY_ANNOTATIONS: 32, - FILL_INTERACTIVE_FORMS: 256, - COPY_FOR_ACCESSIBILITY: 512, - ASSEMBLE: 1024, - PRINT_HIGH_QUALITY: 2048 - }; - exports2.PermissionFlag = PermissionFlag; - const TextRenderingMode = { - FILL: 0, - STROKE: 1, - FILL_STROKE: 2, - INVISIBLE: 3, - FILL_ADD_TO_PATH: 4, - STROKE_ADD_TO_PATH: 5, - FILL_STROKE_ADD_TO_PATH: 6, - ADD_TO_PATH: 7, - FILL_STROKE_MASK: 3, - ADD_TO_PATH_FLAG: 4 - }; - exports2.TextRenderingMode = TextRenderingMode; - const ImageKind = { - GRAYSCALE_1BPP: 1, - RGB_24BPP: 2, - RGBA_32BPP: 3 - }; - exports2.ImageKind = ImageKind; - const AnnotationType = { - TEXT: 1, - LINK: 2, - FREETEXT: 3, - LINE: 4, - SQUARE: 5, - CIRCLE: 6, - POLYGON: 7, - POLYLINE: 8, - HIGHLIGHT: 9, - UNDERLINE: 10, - SQUIGGLY: 11, - STRIKEOUT: 12, - STAMP: 13, - CARET: 14, - INK: 15, - POPUP: 16, - FILEATTACHMENT: 17, - SOUND: 18, - MOVIE: 19, - WIDGET: 20, - SCREEN: 21, - PRINTERMARK: 22, - TRAPNET: 23, - WATERMARK: 24, - THREED: 25, - REDACT: 26 - }; - exports2.AnnotationType = AnnotationType; - const AnnotationReplyType = { - GROUP: "Group", - REPLY: "R" - }; - exports2.AnnotationReplyType = AnnotationReplyType; - const AnnotationFlag = { - INVISIBLE: 1, - HIDDEN: 2, - PRINT: 4, - NOZOOM: 8, - NOROTATE: 16, - NOVIEW: 32, - READONLY: 64, - LOCKED: 128, - TOGGLENOVIEW: 256, - LOCKEDCONTENTS: 512 - }; - exports2.AnnotationFlag = AnnotationFlag; - const AnnotationFieldFlag = { - READONLY: 1, - REQUIRED: 2, - NOEXPORT: 4, - MULTILINE: 4096, - PASSWORD: 8192, - NOTOGGLETOOFF: 16384, - RADIO: 32768, - PUSHBUTTON: 65536, - COMBO: 131072, - EDIT: 262144, - SORT: 524288, - FILESELECT: 1048576, - MULTISELECT: 2097152, - DONOTSPELLCHECK: 4194304, - DONOTSCROLL: 8388608, - COMB: 16777216, - RICHTEXT: 33554432, - RADIOSINUNISON: 33554432, - COMMITONSELCHANGE: 67108864 - }; - exports2.AnnotationFieldFlag = AnnotationFieldFlag; - const AnnotationBorderStyleType = { - SOLID: 1, - DASHED: 2, - BEVELED: 3, - INSET: 4, - UNDERLINE: 5 - }; - exports2.AnnotationBorderStyleType = AnnotationBorderStyleType; - const AnnotationActionEventType = { - E: "Mouse Enter", - X: "Mouse Exit", - D: "Mouse Down", - U: "Mouse Up", - Fo: "Focus", - Bl: "Blur", - PO: "PageOpen", - PC: "PageClose", - PV: "PageVisible", - PI: "PageInvisible", - K: "Keystroke", - F: "Format", - V: "Validate", - C: "Calculate" - }; - exports2.AnnotationActionEventType = AnnotationActionEventType; - const DocumentActionEventType = { - WC: "WillClose", - WS: "WillSave", - DS: "DidSave", - WP: "WillPrint", - DP: "DidPrint" - }; - exports2.DocumentActionEventType = DocumentActionEventType; - const PageActionEventType = { - O: "PageOpen", - C: "PageClose" - }; - exports2.PageActionEventType = PageActionEventType; - const VerbosityLevel = { - ERRORS: 0, - WARNINGS: 1, - INFOS: 5 - }; - exports2.VerbosityLevel = VerbosityLevel; - const CMapCompressionType = { - NONE: 0, - BINARY: 1 - }; - exports2.CMapCompressionType = CMapCompressionType; - const OPS = { - dependency: 1, - setLineWidth: 2, - setLineCap: 3, - setLineJoin: 4, - setMiterLimit: 5, - setDash: 6, - setRenderingIntent: 7, - setFlatness: 8, - setGState: 9, - save: 10, - restore: 11, - transform: 12, - moveTo: 13, - lineTo: 14, - curveTo: 15, - curveTo2: 16, - curveTo3: 17, - closePath: 18, - rectangle: 19, - stroke: 20, - closeStroke: 21, - fill: 22, - eoFill: 23, - fillStroke: 24, - eoFillStroke: 25, - closeFillStroke: 26, - closeEOFillStroke: 27, - endPath: 28, - clip: 29, - eoClip: 30, - beginText: 31, - endText: 32, - setCharSpacing: 33, - setWordSpacing: 34, - setHScale: 35, - setLeading: 36, - setFont: 37, - setTextRenderingMode: 38, - setTextRise: 39, - moveText: 40, - setLeadingMoveText: 41, - setTextMatrix: 42, - nextLine: 43, - showText: 44, - showSpacedText: 45, - nextLineShowText: 46, - nextLineSetSpacingShowText: 47, - setCharWidth: 48, - setCharWidthAndBounds: 49, - setStrokeColorSpace: 50, - setFillColorSpace: 51, - setStrokeColor: 52, - setStrokeColorN: 53, - setFillColor: 54, - setFillColorN: 55, - setStrokeGray: 56, - setFillGray: 57, - setStrokeRGBColor: 58, - setFillRGBColor: 59, - setStrokeCMYKColor: 60, - setFillCMYKColor: 61, - shadingFill: 62, - beginInlineImage: 63, - beginImageData: 64, - endInlineImage: 65, - paintXObject: 66, - markPoint: 67, - markPointProps: 68, - beginMarkedContent: 69, - beginMarkedContentProps: 70, - endMarkedContent: 71, - beginCompat: 72, - endCompat: 73, - paintFormXObjectBegin: 74, - paintFormXObjectEnd: 75, - beginGroup: 76, - endGroup: 77, - beginAnnotation: 80, - endAnnotation: 81, - paintImageMaskXObject: 83, - paintImageMaskXObjectGroup: 84, - paintImageXObject: 85, - paintInlineImageXObject: 86, - paintInlineImageXObjectGroup: 87, - paintImageXObjectRepeat: 88, - paintImageMaskXObjectRepeat: 89, - paintSolidColorImageMask: 90, - constructPath: 91 - }; - exports2.OPS = OPS; - const PasswordResponses = { - NEED_PASSWORD: 1, - INCORRECT_PASSWORD: 2 - }; - exports2.PasswordResponses = PasswordResponses; - let verbosity = VerbosityLevel.WARNINGS; - function setVerbosityLevel(level) { - if (Number.isInteger(level)) { - verbosity = level; - } - } - function getVerbosityLevel() { - return verbosity; - } - function info(msg) { - if (verbosity >= VerbosityLevel.INFOS) { - console.log(`Info: ${msg}`); - } - } - function warn(msg) { - if (verbosity >= VerbosityLevel.WARNINGS) { - console.log(`Warning: ${msg}`); - } - } - function unreachable(msg) { - throw new Error(msg); - } - function assert(cond, msg) { - if (!cond) { - unreachable(msg); - } - } - function _isValidProtocol(url) { - switch (url == null ? void 0 : url.protocol) { - case "http:": - case "https:": - case "ftp:": - case "mailto:": - case "tel:": - return true; - default: - return false; - } - } - function createValidAbsoluteUrl(url, baseUrl = null, options = null) { - if (!url) { - return null; - } - try { - if (options && typeof url === "string") { - if (options.addDefaultProtocol && url.startsWith("www.")) { - const dots = url.match(/\./g); - if ((dots == null ? void 0 : dots.length) >= 2) { - url = `http://${url}`; - } - } - if (options.tryConvertEncoding) { - try { - url = stringToUTF8String(url); - } catch (e2) { - } - } - } - const absoluteUrl = baseUrl ? new URL(url, baseUrl) : new URL(url); - if (_isValidProtocol(absoluteUrl)) { - return absoluteUrl; - } - } catch (e2) { - } - return null; - } - function shadow(obj, prop, value, nonSerializable = false) { - Object.defineProperty(obj, prop, { - value, - enumerable: !nonSerializable, - configurable: true, - writable: false - }); - return value; - } - const BaseException = function BaseExceptionClosure() { - function BaseException2(message, name) { - if (this.constructor === BaseException2) { - unreachable("Cannot initialize BaseException."); - } - this.message = message; - this.name = name; - } - BaseException2.prototype = new Error(); - BaseException2.constructor = BaseException2; - return BaseException2; - }(); - exports2.BaseException = BaseException; - class PasswordException extends BaseException { - constructor(msg, code) { - super(msg, "PasswordException"); - this.code = code; - } - } - exports2.PasswordException = PasswordException; - class UnknownErrorException extends BaseException { - constructor(msg, details) { - super(msg, "UnknownErrorException"); - this.details = details; - } - } - exports2.UnknownErrorException = UnknownErrorException; - class InvalidPDFException extends BaseException { - constructor(msg) { - super(msg, "InvalidPDFException"); - } - } - exports2.InvalidPDFException = InvalidPDFException; - class MissingPDFException extends BaseException { - constructor(msg) { - super(msg, "MissingPDFException"); - } - } - exports2.MissingPDFException = MissingPDFException; - class UnexpectedResponseException extends BaseException { - constructor(msg, status) { - super(msg, "UnexpectedResponseException"); - this.status = status; - } - } - exports2.UnexpectedResponseException = UnexpectedResponseException; - class FormatError extends BaseException { - constructor(msg) { - super(msg, "FormatError"); - } - } - exports2.FormatError = FormatError; - class AbortException extends BaseException { - constructor(msg) { - super(msg, "AbortException"); - } - } - exports2.AbortException = AbortException; - function bytesToString(bytes) { - if (typeof bytes !== "object" || (bytes == null ? void 0 : bytes.length) === void 0) { - unreachable("Invalid argument for bytesToString"); - } - const length = bytes.length; - const MAX_ARGUMENT_COUNT = 8192; - if (length < MAX_ARGUMENT_COUNT) { - return String.fromCharCode.apply(null, bytes); - } - const strBuf = []; - for (let i2 = 0; i2 < length; i2 += MAX_ARGUMENT_COUNT) { - const chunkEnd = Math.min(i2 + MAX_ARGUMENT_COUNT, length); - const chunk = bytes.subarray(i2, chunkEnd); - strBuf.push(String.fromCharCode.apply(null, chunk)); - } - return strBuf.join(""); - } - function stringToBytes(str) { - if (typeof str !== "string") { - unreachable("Invalid argument for stringToBytes"); - } - const length = str.length; - const bytes = new Uint8Array(length); - for (let i2 = 0; i2 < length; ++i2) { - bytes[i2] = str.charCodeAt(i2) & 255; - } - return bytes; - } - function string32(value) { - return String.fromCharCode(value >> 24 & 255, value >> 16 & 255, value >> 8 & 255, value & 255); - } - function objectSize(obj) { - return Object.keys(obj).length; - } - function objectFromMap(map) { - const obj = /* @__PURE__ */ Object.create(null); - for (const [key, value] of map) { - obj[key] = value; - } - return obj; - } - function isLittleEndian() { - const buffer8 = new Uint8Array(4); - buffer8[0] = 1; - const view32 = new Uint32Array(buffer8.buffer, 0, 1); - return view32[0] === 1; - } - function isEvalSupported() { - try { - new Function(""); - return true; - } catch (e2) { - return false; - } - } - class FeatureTest { - static get isLittleEndian() { - return shadow(this, "isLittleEndian", isLittleEndian()); - } - static get isEvalSupported() { - return shadow(this, "isEvalSupported", isEvalSupported()); - } - static get isOffscreenCanvasSupported() { - return shadow(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas !== "undefined"); - } - static get platform() { - if (typeof navigator === "undefined") { - return shadow(this, "platform", { - isWin: false, - isMac: false - }); - } - return shadow(this, "platform", { - isWin: navigator.platform.includes("Win"), - isMac: navigator.platform.includes("Mac") - }); - } - static get isCSSRoundSupported() { - var _a, _b; - return shadow(this, "isCSSRoundSupported", (_b = (_a = globalThis.CSS) == null ? void 0 : _a.supports) == null ? void 0 : _b.call(_a, "width: round(1.5px, 1px)")); - } - } - exports2.FeatureTest = FeatureTest; - const hexNumbers = [...Array(256).keys()].map((n2) => n2.toString(16).padStart(2, "0")); - class Util { - static makeHexColor(r2, g2, b2) { - return `#${hexNumbers[r2]}${hexNumbers[g2]}${hexNumbers[b2]}`; - } - static scaleMinMax(transform, minMax) { - let temp; - if (transform[0]) { - if (transform[0] < 0) { - temp = minMax[0]; - minMax[0] = minMax[1]; - minMax[1] = temp; - } - minMax[0] *= transform[0]; - minMax[1] *= transform[0]; - if (transform[3] < 0) { - temp = minMax[2]; - minMax[2] = minMax[3]; - minMax[3] = temp; - } - minMax[2] *= transform[3]; - minMax[3] *= transform[3]; - } else { - temp = minMax[0]; - minMax[0] = minMax[2]; - minMax[2] = temp; - temp = minMax[1]; - minMax[1] = minMax[3]; - minMax[3] = temp; - if (transform[1] < 0) { - temp = minMax[2]; - minMax[2] = minMax[3]; - minMax[3] = temp; - } - minMax[2] *= transform[1]; - minMax[3] *= transform[1]; - if (transform[2] < 0) { - temp = minMax[0]; - minMax[0] = minMax[1]; - minMax[1] = temp; - } - minMax[0] *= transform[2]; - minMax[1] *= transform[2]; - } - minMax[0] += transform[4]; - minMax[1] += transform[4]; - minMax[2] += transform[5]; - minMax[3] += transform[5]; - } - static transform(m1, m2) { - return [m1[0] * m2[0] + m1[2] * m2[1], m1[1] * m2[0] + m1[3] * m2[1], m1[0] * m2[2] + m1[2] * m2[3], m1[1] * m2[2] + m1[3] * m2[3], m1[0] * m2[4] + m1[2] * m2[5] + m1[4], m1[1] * m2[4] + m1[3] * m2[5] + m1[5]]; - } - static applyTransform(p2, m2) { - const xt2 = p2[0] * m2[0] + p2[1] * m2[2] + m2[4]; - const yt2 = p2[0] * m2[1] + p2[1] * m2[3] + m2[5]; - return [xt2, yt2]; - } - static applyInverseTransform(p2, m2) { - const d2 = m2[0] * m2[3] - m2[1] * m2[2]; - const xt2 = (p2[0] * m2[3] - p2[1] * m2[2] + m2[2] * m2[5] - m2[4] * m2[3]) / d2; - const yt2 = (-p2[0] * m2[1] + p2[1] * m2[0] + m2[4] * m2[1] - m2[5] * m2[0]) / d2; - return [xt2, yt2]; - } - static getAxialAlignedBoundingBox(r2, m2) { - const p1 = this.applyTransform(r2, m2); - const p2 = this.applyTransform(r2.slice(2, 4), m2); - const p3 = this.applyTransform([r2[0], r2[3]], m2); - const p4 = this.applyTransform([r2[2], r2[1]], m2); - return [Math.min(p1[0], p2[0], p3[0], p4[0]), Math.min(p1[1], p2[1], p3[1], p4[1]), Math.max(p1[0], p2[0], p3[0], p4[0]), Math.max(p1[1], p2[1], p3[1], p4[1])]; - } - static inverseTransform(m2) { - const d2 = m2[0] * m2[3] - m2[1] * m2[2]; - return [m2[3] / d2, -m2[1] / d2, -m2[2] / d2, m2[0] / d2, (m2[2] * m2[5] - m2[4] * m2[3]) / d2, (m2[4] * m2[1] - m2[5] * m2[0]) / d2]; - } - static singularValueDecompose2dScale(m2) { - const transpose = [m2[0], m2[2], m2[1], m2[3]]; - const a2 = m2[0] * transpose[0] + m2[1] * transpose[2]; - const b2 = m2[0] * transpose[1] + m2[1] * transpose[3]; - const c2 = m2[2] * transpose[0] + m2[3] * transpose[2]; - const d2 = m2[2] * transpose[1] + m2[3] * transpose[3]; - const first = (a2 + d2) / 2; - const second = Math.sqrt((a2 + d2) ** 2 - 4 * (a2 * d2 - c2 * b2)) / 2; - const sx = first + second || 1; - const sy = first - second || 1; - return [Math.sqrt(sx), Math.sqrt(sy)]; - } - static normalizeRect(rect) { - const r2 = rect.slice(0); - if (rect[0] > rect[2]) { - r2[0] = rect[2]; - r2[2] = rect[0]; - } - if (rect[1] > rect[3]) { - r2[1] = rect[3]; - r2[3] = rect[1]; - } - return r2; - } - static intersect(rect1, rect2) { - const xLow = Math.max(Math.min(rect1[0], rect1[2]), Math.min(rect2[0], rect2[2])); - const xHigh = Math.min(Math.max(rect1[0], rect1[2]), Math.max(rect2[0], rect2[2])); - if (xLow > xHigh) { - return null; - } - const yLow = Math.max(Math.min(rect1[1], rect1[3]), Math.min(rect2[1], rect2[3])); - const yHigh = Math.min(Math.max(rect1[1], rect1[3]), Math.max(rect2[1], rect2[3])); - if (yLow > yHigh) { - return null; - } - return [xLow, yLow, xHigh, yHigh]; - } - static bezierBoundingBox(x0, y0, x1, y1, x2, y2, x3, y3) { - const tvalues = [], bounds = [[], []]; - let a2, b2, c2, t2, t1, t22, b2ac, sqrtb2ac; - for (let i2 = 0; i2 < 2; ++i2) { - if (i2 === 0) { - b2 = 6 * x0 - 12 * x1 + 6 * x2; - a2 = -3 * x0 + 9 * x1 - 9 * x2 + 3 * x3; - c2 = 3 * x1 - 3 * x0; - } else { - b2 = 6 * y0 - 12 * y1 + 6 * y2; - a2 = -3 * y0 + 9 * y1 - 9 * y2 + 3 * y3; - c2 = 3 * y1 - 3 * y0; - } - if (Math.abs(a2) < 1e-12) { - if (Math.abs(b2) < 1e-12) { - continue; - } - t2 = -c2 / b2; - if (0 < t2 && t2 < 1) { - tvalues.push(t2); - } - continue; - } - b2ac = b2 * b2 - 4 * c2 * a2; - sqrtb2ac = Math.sqrt(b2ac); - if (b2ac < 0) { - continue; - } - t1 = (-b2 + sqrtb2ac) / (2 * a2); - if (0 < t1 && t1 < 1) { - tvalues.push(t1); - } - t22 = (-b2 - sqrtb2ac) / (2 * a2); - if (0 < t22 && t22 < 1) { - tvalues.push(t22); - } - } - let j2 = tvalues.length, mt2; - const jlen = j2; - while (j2--) { - t2 = tvalues[j2]; - mt2 = 1 - t2; - bounds[0][j2] = mt2 * mt2 * mt2 * x0 + 3 * mt2 * mt2 * t2 * x1 + 3 * mt2 * t2 * t2 * x2 + t2 * t2 * t2 * x3; - bounds[1][j2] = mt2 * mt2 * mt2 * y0 + 3 * mt2 * mt2 * t2 * y1 + 3 * mt2 * t2 * t2 * y2 + t2 * t2 * t2 * y3; - } - bounds[0][jlen] = x0; - bounds[1][jlen] = y0; - bounds[0][jlen + 1] = x3; - bounds[1][jlen + 1] = y3; - bounds[0].length = bounds[1].length = jlen + 2; - return [Math.min(...bounds[0]), Math.min(...bounds[1]), Math.max(...bounds[0]), Math.max(...bounds[1])]; - } - } - exports2.Util = Util; - const PDFStringTranslateTable = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 728, 711, 710, 729, 733, 731, 730, 732, 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, 8226, 8224, 8225, 8230, 8212, 8211, 402, 8260, 8249, 8250, 8722, 8240, 8222, 8220, 8221, 8216, 8217, 8218, 8482, 64257, 64258, 321, 338, 352, 376, 381, 305, 322, 339, 353, 382, 0, 8364]; - function stringToPDFString(str) { - if (str[0] >= "\xEF") { - let encoding; - if (str[0] === "\xFE" && str[1] === "\xFF") { - encoding = "utf-16be"; - } else if (str[0] === "\xFF" && str[1] === "\xFE") { - encoding = "utf-16le"; - } else if (str[0] === "\xEF" && str[1] === "\xBB" && str[2] === "\xBF") { - encoding = "utf-8"; - } - if (encoding) { - try { - const decoder = new TextDecoder(encoding, { - fatal: true - }); - const buffer = stringToBytes(str); - return decoder.decode(buffer); - } catch (ex) { - warn(`stringToPDFString: "${ex}".`); - } - } - } - const strBuf = []; - for (let i2 = 0, ii2 = str.length; i2 < ii2; i2++) { - const code = PDFStringTranslateTable[str.charCodeAt(i2)]; - strBuf.push(code ? String.fromCharCode(code) : str.charAt(i2)); - } - return strBuf.join(""); - } - function stringToUTF8String(str) { - return decodeURIComponent(escape(str)); - } - function utf8StringToString(str) { - return unescape(encodeURIComponent(str)); - } - function isArrayBuffer(v2) { - return typeof v2 === "object" && (v2 == null ? void 0 : v2.byteLength) !== void 0; - } - function isArrayEqual(arr1, arr2) { - if (arr1.length !== arr2.length) { - return false; - } - for (let i2 = 0, ii2 = arr1.length; i2 < ii2; i2++) { - if (arr1[i2] !== arr2[i2]) { - return false; - } - } - return true; - } - function getModificationDate(date = /* @__PURE__ */ new Date()) { - 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")]; - return buffer.join(""); - } - class PromiseCapability { - constructor() { - __privateAdd(this, _settled, false); - this.promise = new Promise((resolve, reject) => { - this.resolve = (data) => { - __privateSet(this, _settled, true); - resolve(data); - }; - this.reject = (reason) => { - __privateSet(this, _settled, true); - reject(reason); - }; - }); - } - get settled() { - return __privateGet(this, _settled); - } - } - _settled = new WeakMap(); - exports2.PromiseCapability = PromiseCapability; - let NormalizeRegex = null; - let NormalizationMap = null; - function normalizeUnicode(str) { - if (!NormalizeRegex) { - NormalizeRegex = /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu; - NormalizationMap = /* @__PURE__ */ new Map([["\uFB05", "\u017Ft"]]); - } - return str.replaceAll(NormalizeRegex, (_5, p1, p2) => { - return p1 ? p1.normalize("NFKC") : NormalizationMap.get(p2); - }); - } - function getUuid() { - if (typeof crypto !== "undefined" && typeof (crypto == null ? void 0 : crypto.randomUUID) === "function") { - return crypto.randomUUID(); - } - const buf = new Uint8Array(32); - if (typeof crypto !== "undefined" && typeof (crypto == null ? void 0 : crypto.getRandomValues) === "function") { - crypto.getRandomValues(buf); - } else { - for (let i2 = 0; i2 < 32; i2++) { - buf[i2] = Math.floor(Math.random() * 255); - } - } - return bytesToString(buf); - } - const AnnotationPrefix = "pdfjs_internal_id_"; - exports2.AnnotationPrefix = AnnotationPrefix; - }, - /* 2 */ - /***/ - (__unused_webpack_module, exports, __w_pdfjs_require__) => { - var _docId, _delayedCleanupTimeout, _pendingCleanup, _tryCleanup, tryCleanup_fn, _abortDelayedCleanup, abortDelayedCleanup_fn, _listeners, _deferred, _a, _workerPorts, _methodPromises, _pageCache, _pagePromises, _passwordCapability, _cacheSimpleMethod, cacheSimpleMethod_fn, _objs, _ensureObj, ensureObj_fn, _internalRenderTask, _canvasInUse; - Object.defineProperty(exports, "__esModule", { - value: true - }); - exports.RenderTask = exports.PDFWorkerUtil = exports.PDFWorker = exports.PDFPageProxy = exports.PDFDocumentProxy = exports.PDFDocumentLoadingTask = exports.PDFDataRangeTransport = exports.LoopbackPort = exports.DefaultStandardFontDataFactory = exports.DefaultFilterFactory = exports.DefaultCanvasFactory = exports.DefaultCMapReaderFactory = void 0; - Object.defineProperty(exports, "SVGGraphics", { - enumerable: true, - get: function() { - return _displaySvg.SVGGraphics; - } - }); - exports.build = void 0; - exports.getDocument = getDocument; - exports.version = void 0; - var _util = __w_pdfjs_require__(1); - var _annotation_storage = __w_pdfjs_require__(3); - var _display_utils = __w_pdfjs_require__(6); - var _font_loader = __w_pdfjs_require__(9); - var _displayNode_utils = __w_pdfjs_require__(10); - var _canvas = __w_pdfjs_require__(11); - var _worker_options = __w_pdfjs_require__(14); - var _message_handler = __w_pdfjs_require__(15); - var _metadata = __w_pdfjs_require__(16); - var _optional_content_config = __w_pdfjs_require__(17); - var _transport_stream = __w_pdfjs_require__(18); - var _displayFetch_stream = __w_pdfjs_require__(19); - var _displayNetwork = __w_pdfjs_require__(22); - var _displayNode_stream = __w_pdfjs_require__(23); - var _displaySvg = __w_pdfjs_require__(24); - var _xfa_text = __w_pdfjs_require__(25); - const DEFAULT_RANGE_CHUNK_SIZE = 65536; - const RENDERING_CANCELLED_TIMEOUT = 100; - const DELAYED_CLEANUP_TIMEOUT = 5e3; - const DefaultCanvasFactory = _util.isNodeJS ? _displayNode_utils.NodeCanvasFactory : _display_utils.DOMCanvasFactory; - exports.DefaultCanvasFactory = DefaultCanvasFactory; - const DefaultCMapReaderFactory = _util.isNodeJS ? _displayNode_utils.NodeCMapReaderFactory : _display_utils.DOMCMapReaderFactory; - exports.DefaultCMapReaderFactory = DefaultCMapReaderFactory; - const DefaultFilterFactory = _util.isNodeJS ? _displayNode_utils.NodeFilterFactory : _display_utils.DOMFilterFactory; - exports.DefaultFilterFactory = DefaultFilterFactory; - const DefaultStandardFontDataFactory = _util.isNodeJS ? _displayNode_utils.NodeStandardFontDataFactory : _display_utils.DOMStandardFontDataFactory; - exports.DefaultStandardFontDataFactory = DefaultStandardFontDataFactory; - function getDocument(src) { - var _a2, _b; - if (typeof src === "string" || src instanceof URL) { - src = { - url: src - }; - } else if ((0, _util.isArrayBuffer)(src)) { - src = { - data: src - }; - } - if (typeof src !== "object") { - throw new Error("Invalid parameter in getDocument, need parameter object."); - } - if (!src.url && !src.data && !src.range) { - throw new Error("Invalid parameter object: need either .data, .range or .url"); - } - const task = new PDFDocumentLoadingTask(); - const { - docId - } = task; - const url = src.url ? getUrlProp(src.url) : null; - const data = src.data ? getDataProp(src.data) : null; - const httpHeaders = src.httpHeaders || null; - const withCredentials = src.withCredentials === true; - const password = (_a2 = src.password) != null ? _a2 : null; - const rangeTransport = src.range instanceof PDFDataRangeTransport ? src.range : null; - const rangeChunkSize = Number.isInteger(src.rangeChunkSize) && src.rangeChunkSize > 0 ? src.rangeChunkSize : DEFAULT_RANGE_CHUNK_SIZE; - let worker3 = src.worker instanceof PDFWorker ? src.worker : null; - const verbosity = src.verbosity; - const docBaseUrl = typeof src.docBaseUrl === "string" && !(0, _display_utils.isDataScheme)(src.docBaseUrl) ? src.docBaseUrl : null; - const cMapUrl = typeof src.cMapUrl === "string" ? src.cMapUrl : null; - const cMapPacked = src.cMapPacked !== false; - const CMapReaderFactory = src.CMapReaderFactory || DefaultCMapReaderFactory; - const standardFontDataUrl = typeof src.standardFontDataUrl === "string" ? src.standardFontDataUrl : null; - const StandardFontDataFactory = src.StandardFontDataFactory || DefaultStandardFontDataFactory; - const ignoreErrors = src.stopAtErrors !== true; - const maxImageSize = Number.isInteger(src.maxImageSize) && src.maxImageSize > -1 ? src.maxImageSize : -1; - const isEvalSupported = src.isEvalSupported !== false; - const isOffscreenCanvasSupported = typeof src.isOffscreenCanvasSupported === "boolean" ? src.isOffscreenCanvasSupported : !_util.isNodeJS; - const canvasMaxAreaInBytes = Number.isInteger(src.canvasMaxAreaInBytes) ? src.canvasMaxAreaInBytes : -1; - const disableFontFace = typeof src.disableFontFace === "boolean" ? src.disableFontFace : _util.isNodeJS; - const fontExtraProperties = src.fontExtraProperties === true; - const enableXfa = src.enableXfa === true; - const ownerDocument = src.ownerDocument || globalThis.document; - const disableRange = src.disableRange === true; - const disableStream = src.disableStream === true; - const disableAutoFetch = src.disableAutoFetch === true; - const pdfBug = src.pdfBug === true; - const length = rangeTransport ? rangeTransport.length : (_b = src.length) != null ? _b : NaN; - const useSystemFonts = typeof src.useSystemFonts === "boolean" ? src.useSystemFonts : !_util.isNodeJS && !disableFontFace; - const useWorkerFetch = typeof src.useWorkerFetch === "boolean" ? src.useWorkerFetch : CMapReaderFactory === _display_utils.DOMCMapReaderFactory && StandardFontDataFactory === _display_utils.DOMStandardFontDataFactory && cMapUrl && standardFontDataUrl && (0, _display_utils.isValidFetchUrl)(cMapUrl, document.baseURI) && (0, _display_utils.isValidFetchUrl)(standardFontDataUrl, document.baseURI); - const canvasFactory = src.canvasFactory || new DefaultCanvasFactory({ - ownerDocument - }); - const filterFactory = src.filterFactory || new DefaultFilterFactory({ - docId, - ownerDocument - }); - const styleElement = null; - (0, _util.setVerbosityLevel)(verbosity); - const transportFactory = { - canvasFactory, - filterFactory - }; - if (!useWorkerFetch) { - transportFactory.cMapReaderFactory = new CMapReaderFactory({ - baseUrl: cMapUrl, - isCompressed: cMapPacked - }); - transportFactory.standardFontDataFactory = new StandardFontDataFactory({ - baseUrl: standardFontDataUrl - }); - } - if (!worker3) { - const workerParams = { - verbosity, - port: _worker_options.GlobalWorkerOptions.workerPort - }; - worker3 = workerParams.port ? PDFWorker.fromPort(workerParams) : new PDFWorker(workerParams); - task._worker = worker3; - } - const fetchDocParams = { - docId, - apiVersion: "3.11.174", - data, - password, - disableAutoFetch, - rangeChunkSize, - length, - docBaseUrl, - enableXfa, - evaluatorOptions: { - maxImageSize, - disableFontFace, - ignoreErrors, - isEvalSupported, - isOffscreenCanvasSupported, - canvasMaxAreaInBytes, - fontExtraProperties, - useSystemFonts, - cMapUrl: useWorkerFetch ? cMapUrl : null, - standardFontDataUrl: useWorkerFetch ? standardFontDataUrl : null - } - }; - const transportParams = { - ignoreErrors, - isEvalSupported, - disableFontFace, - fontExtraProperties, - enableXfa, - ownerDocument, - disableAutoFetch, - pdfBug, - styleElement - }; - worker3.promise.then(function() { - if (task.destroyed) { - throw new Error("Loading aborted"); - } - const workerIdPromise = _fetchDocument(worker3, fetchDocParams); - const networkStreamPromise = new Promise(function(resolve) { - let networkStream; - if (rangeTransport) { - networkStream = new _transport_stream.PDFDataTransportStream({ - length, - initialData: rangeTransport.initialData, - progressiveDone: rangeTransport.progressiveDone, - contentDispositionFilename: rangeTransport.contentDispositionFilename, - disableRange, - disableStream - }, rangeTransport); - } else if (!data) { - const createPDFNetworkStream = (params) => { - if (_util.isNodeJS) { - return new _displayNode_stream.PDFNodeStream(params); - } - return (0, _display_utils.isValidFetchUrl)(params.url) ? new _displayFetch_stream.PDFFetchStream(params) : new _displayNetwork.PDFNetworkStream(params); - }; - networkStream = createPDFNetworkStream({ - url, - length, - httpHeaders, - withCredentials, - rangeChunkSize, - disableRange, - disableStream - }); - } - resolve(networkStream); - }); - return Promise.all([workerIdPromise, networkStreamPromise]).then(function([workerId, networkStream]) { - if (task.destroyed) { - throw new Error("Loading aborted"); - } - const messageHandler = new _message_handler.MessageHandler(docId, workerId, worker3.port); - const transport = new WorkerTransport(messageHandler, task, networkStream, transportParams, transportFactory); - task._transport = transport; - messageHandler.send("Ready", null); - }); - }).catch(task._capability.reject); - return task; - } - async function _fetchDocument(worker3, source) { - if (worker3.destroyed) { - throw new Error("Worker was destroyed"); - } - const workerId = await worker3.messageHandler.sendWithPromise("GetDocRequest", source, source.data ? [source.data.buffer] : null); - if (worker3.destroyed) { - throw new Error("Worker was destroyed"); - } - return workerId; - } - function getUrlProp(val) { - if (val instanceof URL) { - return val.href; - } - try { - return new URL(val, window.location).href; - } catch (e2) { - if (_util.isNodeJS && typeof val === "string") { - return val; - } - } - throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property."); - } - function getDataProp(val) { - if (_util.isNodeJS && typeof Buffer !== "undefined" && val instanceof Buffer) { - throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`."); - } - if (val instanceof Uint8Array && val.byteLength === val.buffer.byteLength) { - return val; - } - if (typeof val === "string") { - return (0, _util.stringToBytes)(val); - } - if (typeof val === "object" && !isNaN(val == null ? void 0 : val.length) || (0, _util.isArrayBuffer)(val)) { - return new Uint8Array(val); - } - throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property."); - } - const _PDFDocumentLoadingTask = class { - constructor() { - this._capability = new _util.PromiseCapability(); - this._transport = null; - this._worker = null; - this.docId = `d${__privateWrapper(_PDFDocumentLoadingTask, _docId)._++}`; - this.destroyed = false; - this.onPassword = null; - this.onProgress = null; - } - get promise() { - return this._capability.promise; - } - async destroy() { - var _a2, _b, _c; - this.destroyed = true; - try { - if ((_a2 = this._worker) == null ? void 0 : _a2.port) { - this._worker._pendingDestroy = true; - } - await ((_b = this._transport) == null ? void 0 : _b.destroy()); - } catch (ex) { - if ((_c = this._worker) == null ? void 0 : _c.port) { - delete this._worker._pendingDestroy; - } - throw ex; - } - this._transport = null; - if (this._worker) { - this._worker.destroy(); - this._worker = null; - } - } - }; - let PDFDocumentLoadingTask = _PDFDocumentLoadingTask; - _docId = new WeakMap(); - __privateAdd(PDFDocumentLoadingTask, _docId, 0); - exports.PDFDocumentLoadingTask = PDFDocumentLoadingTask; - class PDFDataRangeTransport { - constructor(length, initialData, progressiveDone = false, contentDispositionFilename = null) { - this.length = length; - this.initialData = initialData; - this.progressiveDone = progressiveDone; - this.contentDispositionFilename = contentDispositionFilename; - this._rangeListeners = []; - this._progressListeners = []; - this._progressiveReadListeners = []; - this._progressiveDoneListeners = []; - this._readyCapability = new _util.PromiseCapability(); - } - addRangeListener(listener) { - this._rangeListeners.push(listener); - } - addProgressListener(listener) { - this._progressListeners.push(listener); - } - addProgressiveReadListener(listener) { - this._progressiveReadListeners.push(listener); - } - addProgressiveDoneListener(listener) { - this._progressiveDoneListeners.push(listener); - } - onDataRange(begin, chunk) { - for (const listener of this._rangeListeners) { - listener(begin, chunk); - } - } - onDataProgress(loaded, total) { - this._readyCapability.promise.then(() => { - for (const listener of this._progressListeners) { - listener(loaded, total); - } - }); - } - onDataProgressiveRead(chunk) { - this._readyCapability.promise.then(() => { - for (const listener of this._progressiveReadListeners) { - listener(chunk); - } - }); - } - onDataProgressiveDone() { - this._readyCapability.promise.then(() => { - for (const listener of this._progressiveDoneListeners) { - listener(); - } - }); - } - transportReady() { - this._readyCapability.resolve(); - } - requestDataRange(begin, end) { - (0, _util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange"); - } - abort() { - } - } - exports.PDFDataRangeTransport = PDFDataRangeTransport; - class PDFDocumentProxy { - constructor(pdfInfo, transport) { - this._pdfInfo = pdfInfo; - this._transport = transport; - Object.defineProperty(this, "getJavaScript", { - value: () => { - (0, _display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."); - return this.getJSActions().then((js) => { - if (!js) { - return js; - } - const jsArr = []; - for (const name in js) { - jsArr.push(...js[name]); - } - return jsArr; - }); - } - }); - } - get annotationStorage() { - return this._transport.annotationStorage; - } - get filterFactory() { - return this._transport.filterFactory; - } - get numPages() { - return this._pdfInfo.numPages; - } - get fingerprints() { - return this._pdfInfo.fingerprints; - } - get isPureXfa() { - return (0, _util.shadow)(this, "isPureXfa", !!this._transport._htmlForXfa); - } - get allXfaHtml() { - return this._transport._htmlForXfa; - } - getPage(pageNumber) { - return this._transport.getPage(pageNumber); - } - getPageIndex(ref) { - return this._transport.getPageIndex(ref); - } - getDestinations() { - return this._transport.getDestinations(); - } - getDestination(id) { - return this._transport.getDestination(id); - } - getPageLabels() { - return this._transport.getPageLabels(); - } - getPageLayout() { - return this._transport.getPageLayout(); - } - getPageMode() { - return this._transport.getPageMode(); - } - getViewerPreferences() { - return this._transport.getViewerPreferences(); - } - getOpenAction() { - return this._transport.getOpenAction(); - } - getAttachments() { - return this._transport.getAttachments(); - } - getJSActions() { - return this._transport.getDocJSActions(); - } - getOutline() { - return this._transport.getOutline(); - } - getOptionalContentConfig() { - return this._transport.getOptionalContentConfig(); - } - getPermissions() { - return this._transport.getPermissions(); - } - getMetadata() { - return this._transport.getMetadata(); - } - getMarkInfo() { - return this._transport.getMarkInfo(); - } - getData() { - return this._transport.getData(); - } - saveDocument() { - return this._transport.saveDocument(); - } - getDownloadInfo() { - return this._transport.downloadInfoCapability.promise; - } - cleanup(keepLoadedFonts = false) { - return this._transport.startCleanup(keepLoadedFonts || this.isPureXfa); - } - destroy() { - return this.loadingTask.destroy(); - } - get loadingParams() { - return this._transport.loadingParams; - } - get loadingTask() { - return this._transport.loadingTask; - } - getFieldObjects() { - return this._transport.getFieldObjects(); - } - hasJSActions() { - return this._transport.hasJSActions(); - } - getCalculationOrderIds() { - return this._transport.getCalculationOrderIds(); - } - } - exports.PDFDocumentProxy = PDFDocumentProxy; - class PDFPageProxy { - constructor(pageIndex, pageInfo, transport, pdfBug = false) { - __privateAdd(this, _tryCleanup); - __privateAdd(this, _abortDelayedCleanup); - __privateAdd(this, _delayedCleanupTimeout, null); - __privateAdd(this, _pendingCleanup, false); - this._pageIndex = pageIndex; - this._pageInfo = pageInfo; - this._transport = transport; - this._stats = pdfBug ? new _display_utils.StatTimer() : null; - this._pdfBug = pdfBug; - this.commonObjs = transport.commonObjs; - this.objs = new PDFObjects(); - this._maybeCleanupAfterRender = false; - this._intentStates = /* @__PURE__ */ new Map(); - this.destroyed = false; - } - get pageNumber() { - return this._pageIndex + 1; - } - get rotate() { - return this._pageInfo.rotate; - } - get ref() { - return this._pageInfo.ref; - } - get userUnit() { - return this._pageInfo.userUnit; - } - get view() { - return this._pageInfo.view; - } - getViewport({ - scale, - rotation = this.rotate, - offsetX = 0, - offsetY = 0, - dontFlip = false - } = {}) { - return new _display_utils.PageViewport({ - viewBox: this.view, - scale, - rotation, - offsetX, - offsetY, - dontFlip - }); - } - getAnnotations({ - intent = "display" - } = {}) { - const intentArgs = this._transport.getRenderingIntent(intent); - return this._transport.getAnnotations(this._pageIndex, intentArgs.renderingIntent); - } - getJSActions() { - return this._transport.getPageJSActions(this._pageIndex); - } - get filterFactory() { - return this._transport.filterFactory; - } - get isPureXfa() { - return (0, _util.shadow)(this, "isPureXfa", !!this._transport._htmlForXfa); - } - async getXfa() { - var _a2; - return ((_a2 = this._transport._htmlForXfa) == null ? void 0 : _a2.children[this._pageIndex]) || null; - } - render({ - canvasContext, - viewport, - intent = "display", - annotationMode = _util.AnnotationMode.ENABLE, - transform = null, - background = null, - optionalContentConfigPromise = null, - annotationCanvasMap = null, - pageColors = null, - printAnnotationStorage = null - }) { - var _a2, _b; - (_a2 = this._stats) == null ? void 0 : _a2.time("Overall"); - const intentArgs = this._transport.getRenderingIntent(intent, annotationMode, printAnnotationStorage); - __privateSet(this, _pendingCleanup, false); - __privateMethod(this, _abortDelayedCleanup, abortDelayedCleanup_fn).call(this); - if (!optionalContentConfigPromise) { - optionalContentConfigPromise = this._transport.getOptionalContentConfig(); - } - let intentState = this._intentStates.get(intentArgs.cacheKey); - if (!intentState) { - intentState = /* @__PURE__ */ Object.create(null); - this._intentStates.set(intentArgs.cacheKey, intentState); - } - if (intentState.streamReaderCancelTimeout) { - clearTimeout(intentState.streamReaderCancelTimeout); - intentState.streamReaderCancelTimeout = null; - } - const intentPrint = !!(intentArgs.renderingIntent & _util.RenderingIntentFlag.PRINT); - if (!intentState.displayReadyCapability) { - intentState.displayReadyCapability = new _util.PromiseCapability(); - intentState.operatorList = { - fnArray: [], - argsArray: [], - lastChunk: false, - separateAnnots: null - }; - (_b = this._stats) == null ? void 0 : _b.time("Page Request"); - this._pumpOperatorList(intentArgs); - } - const complete = (error) => { - var _a3, _b2; - intentState.renderTasks.delete(internalRenderTask); - if (this._maybeCleanupAfterRender || intentPrint) { - __privateSet(this, _pendingCleanup, true); - } - __privateMethod(this, _tryCleanup, tryCleanup_fn).call(this, !intentPrint); - if (error) { - internalRenderTask.capability.reject(error); - this._abortOperatorList({ - intentState, - reason: error instanceof Error ? error : new Error(error) - }); - } else { - internalRenderTask.capability.resolve(); - } - (_a3 = this._stats) == null ? void 0 : _a3.timeEnd("Rendering"); - (_b2 = this._stats) == null ? void 0 : _b2.timeEnd("Overall"); - }; - const internalRenderTask = new InternalRenderTask({ - callback: complete, - params: { - canvasContext, - viewport, - transform, - background - }, - objs: this.objs, - commonObjs: this.commonObjs, - annotationCanvasMap, - operatorList: intentState.operatorList, - pageIndex: this._pageIndex, - canvasFactory: this._transport.canvasFactory, - filterFactory: this._transport.filterFactory, - useRequestAnimationFrame: !intentPrint, - pdfBug: this._pdfBug, - pageColors - }); - (intentState.renderTasks || (intentState.renderTasks = /* @__PURE__ */ new Set())).add(internalRenderTask); - const renderTask = internalRenderTask.task; - Promise.all([intentState.displayReadyCapability.promise, optionalContentConfigPromise]).then(([transparency, optionalContentConfig]) => { - var _a3; - if (this.destroyed) { - complete(); - return; - } - (_a3 = this._stats) == null ? void 0 : _a3.time("Rendering"); - internalRenderTask.initializeGraphics({ - transparency, - optionalContentConfig - }); - internalRenderTask.operatorListChanged(); - }).catch(complete); - return renderTask; - } - getOperatorList({ - intent = "display", - annotationMode = _util.AnnotationMode.ENABLE, - printAnnotationStorage = null - } = {}) { - var _a2; - function operatorListChanged() { - if (intentState.operatorList.lastChunk) { - intentState.opListReadCapability.resolve(intentState.operatorList); - intentState.renderTasks.delete(opListTask); - } - } - const intentArgs = this._transport.getRenderingIntent(intent, annotationMode, printAnnotationStorage, true); - let intentState = this._intentStates.get(intentArgs.cacheKey); - if (!intentState) { - intentState = /* @__PURE__ */ Object.create(null); - this._intentStates.set(intentArgs.cacheKey, intentState); - } - let opListTask; - if (!intentState.opListReadCapability) { - opListTask = /* @__PURE__ */ Object.create(null); - opListTask.operatorListChanged = operatorListChanged; - intentState.opListReadCapability = new _util.PromiseCapability(); - (intentState.renderTasks || (intentState.renderTasks = /* @__PURE__ */ new Set())).add(opListTask); - intentState.operatorList = { - fnArray: [], - argsArray: [], - lastChunk: false, - separateAnnots: null - }; - (_a2 = this._stats) == null ? void 0 : _a2.time("Page Request"); - this._pumpOperatorList(intentArgs); - } - return intentState.opListReadCapability.promise; - } - streamTextContent({ - includeMarkedContent = false, - disableNormalization = false - } = {}) { - const TEXT_CONTENT_CHUNK_SIZE = 100; - return this._transport.messageHandler.sendWithStream("GetTextContent", { - pageIndex: this._pageIndex, - includeMarkedContent: includeMarkedContent === true, - disableNormalization: disableNormalization === true - }, { - highWaterMark: TEXT_CONTENT_CHUNK_SIZE, - size(textContent) { - return textContent.items.length; - } - }); - } - getTextContent(params = {}) { - if (this._transport._htmlForXfa) { - return this.getXfa().then((xfa) => { - return _xfa_text.XfaText.textContent(xfa); - }); - } - const readableStream = this.streamTextContent(params); - return new Promise(function(resolve, reject) { - function pump() { - reader.read().then(function({ - value, - done - }) { - if (done) { - resolve(textContent); - return; - } - Object.assign(textContent.styles, value.styles); - textContent.items.push(...value.items); - pump(); - }, reject); - } - const reader = readableStream.getReader(); - const textContent = { - items: [], - styles: /* @__PURE__ */ Object.create(null) - }; - pump(); - }); - } - getStructTree() { - return this._transport.getStructTree(this._pageIndex); - } - _destroy() { - this.destroyed = true; - const waitOn = []; - for (const intentState of this._intentStates.values()) { - this._abortOperatorList({ - intentState, - reason: new Error("Page was destroyed."), - force: true - }); - if (intentState.opListReadCapability) { - continue; - } - for (const internalRenderTask of intentState.renderTasks) { - waitOn.push(internalRenderTask.completed); - internalRenderTask.cancel(); - } - } - this.objs.clear(); - __privateSet(this, _pendingCleanup, false); - __privateMethod(this, _abortDelayedCleanup, abortDelayedCleanup_fn).call(this); - return Promise.all(waitOn); - } - cleanup(resetStats = false) { - __privateSet(this, _pendingCleanup, true); - const success = __privateMethod(this, _tryCleanup, tryCleanup_fn).call(this, false); - if (resetStats && success) { - this._stats && (this._stats = new _display_utils.StatTimer()); - } - return success; - } - _startRenderPage(transparency, cacheKey) { - var _a2, _b; - const intentState = this._intentStates.get(cacheKey); - if (!intentState) { - return; - } - (_a2 = this._stats) == null ? void 0 : _a2.timeEnd("Page Request"); - (_b = intentState.displayReadyCapability) == null ? void 0 : _b.resolve(transparency); - } - _renderPageChunk(operatorListChunk, intentState) { - for (let i2 = 0, ii2 = operatorListChunk.length; i2 < ii2; i2++) { - intentState.operatorList.fnArray.push(operatorListChunk.fnArray[i2]); - intentState.operatorList.argsArray.push(operatorListChunk.argsArray[i2]); - } - intentState.operatorList.lastChunk = operatorListChunk.lastChunk; - intentState.operatorList.separateAnnots = operatorListChunk.separateAnnots; - for (const internalRenderTask of intentState.renderTasks) { - internalRenderTask.operatorListChanged(); - } - if (operatorListChunk.lastChunk) { - __privateMethod(this, _tryCleanup, tryCleanup_fn).call(this, true); - } - } - _pumpOperatorList({ - renderingIntent, - cacheKey, - annotationStorageSerializable - }) { - const { - map, - transfers - } = annotationStorageSerializable; - const readableStream = this._transport.messageHandler.sendWithStream("GetOperatorList", { - pageIndex: this._pageIndex, - intent: renderingIntent, - cacheKey, - annotationStorage: map - }, transfers); - const reader = readableStream.getReader(); - const intentState = this._intentStates.get(cacheKey); - intentState.streamReader = reader; - const pump = () => { - reader.read().then(({ - value, - done - }) => { - if (done) { - intentState.streamReader = null; - return; - } - if (this._transport.destroyed) { - return; - } - this._renderPageChunk(value, intentState); - pump(); - }, (reason) => { - intentState.streamReader = null; - if (this._transport.destroyed) { - return; - } - if (intentState.operatorList) { - intentState.operatorList.lastChunk = true; - for (const internalRenderTask of intentState.renderTasks) { - internalRenderTask.operatorListChanged(); - } - __privateMethod(this, _tryCleanup, tryCleanup_fn).call(this, true); - } - if (intentState.displayReadyCapability) { - intentState.displayReadyCapability.reject(reason); - } else if (intentState.opListReadCapability) { - intentState.opListReadCapability.reject(reason); - } else { - throw reason; - } - }); - }; - pump(); - } - _abortOperatorList({ - intentState, - reason, - force = false - }) { - if (!intentState.streamReader) { - return; - } - if (intentState.streamReaderCancelTimeout) { - clearTimeout(intentState.streamReaderCancelTimeout); - intentState.streamReaderCancelTimeout = null; - } - if (!force) { - if (intentState.renderTasks.size > 0) { - return; - } - if (reason instanceof _display_utils.RenderingCancelledException) { - let delay = RENDERING_CANCELLED_TIMEOUT; - if (reason.extraDelay > 0 && reason.extraDelay < 1e3) { - delay += reason.extraDelay; - } - intentState.streamReaderCancelTimeout = setTimeout(() => { - intentState.streamReaderCancelTimeout = null; - this._abortOperatorList({ - intentState, - reason, - force: true - }); - }, delay); - return; - } - } - intentState.streamReader.cancel(new _util.AbortException(reason.message)).catch(() => { - }); - intentState.streamReader = null; - if (this._transport.destroyed) { - return; - } - for (const [curCacheKey, curIntentState] of this._intentStates) { - if (curIntentState === intentState) { - this._intentStates.delete(curCacheKey); - break; - } - } - this.cleanup(); - } - get stats() { - return this._stats; - } - } - _delayedCleanupTimeout = new WeakMap(); - _pendingCleanup = new WeakMap(); - _tryCleanup = new WeakSet(); - tryCleanup_fn = function(delayed = false) { - __privateMethod(this, _abortDelayedCleanup, abortDelayedCleanup_fn).call(this); - if (!__privateGet(this, _pendingCleanup) || this.destroyed) { - return false; - } - if (delayed) { - __privateSet(this, _delayedCleanupTimeout, setTimeout(() => { - __privateSet(this, _delayedCleanupTimeout, null); - __privateMethod(this, _tryCleanup, tryCleanup_fn).call(this, false); - }, DELAYED_CLEANUP_TIMEOUT)); - return false; - } - for (const { - renderTasks, - operatorList - } of this._intentStates.values()) { - if (renderTasks.size > 0 || !operatorList.lastChunk) { - return false; - } - } - this._intentStates.clear(); - this.objs.clear(); - __privateSet(this, _pendingCleanup, false); - return true; - }; - _abortDelayedCleanup = new WeakSet(); - abortDelayedCleanup_fn = function() { - if (__privateGet(this, _delayedCleanupTimeout)) { - clearTimeout(__privateGet(this, _delayedCleanupTimeout)); - __privateSet(this, _delayedCleanupTimeout, null); - } - }; - exports.PDFPageProxy = PDFPageProxy; - class LoopbackPort { - constructor() { - __privateAdd(this, _listeners, /* @__PURE__ */ new Set()); - __privateAdd(this, _deferred, Promise.resolve()); - } - postMessage(obj, transfer) { - const event = { - data: structuredClone(obj, transfer ? { - transfer - } : null) - }; - __privateGet(this, _deferred).then(() => { - for (const listener of __privateGet(this, _listeners)) { - listener.call(this, event); - } - }); - } - addEventListener(name, listener) { - __privateGet(this, _listeners).add(listener); - } - removeEventListener(name, listener) { - __privateGet(this, _listeners).delete(listener); - } - terminate() { - __privateGet(this, _listeners).clear(); - } - } - _listeners = new WeakMap(); - _deferred = new WeakMap(); - exports.LoopbackPort = LoopbackPort; - const PDFWorkerUtil = { - isWorkerDisabled: false, - fallbackWorkerSrc: null, - fakeWorkerId: 0 - }; - exports.PDFWorkerUtil = PDFWorkerUtil; - { - if (_util.isNodeJS && typeof __require === "function") { - PDFWorkerUtil.isWorkerDisabled = true; - PDFWorkerUtil.fallbackWorkerSrc = "./pdf.worker.js"; - } else if (typeof document === "object") { - const pdfjsFilePath = (_a = document == null ? void 0 : document.currentScript) == null ? void 0 : _a.src; - if (pdfjsFilePath) { - PDFWorkerUtil.fallbackWorkerSrc = pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i, ".worker$1$2"); - } - } - PDFWorkerUtil.isSameOrigin = function(baseUrl, otherUrl) { - let base; - try { - base = new URL(baseUrl); - if (!base.origin || base.origin === "null") { - return false; - } - } catch (e2) { - return false; - } - const other = new URL(otherUrl, base); - return base.origin === other.origin; - }; - PDFWorkerUtil.createCDNWrapper = function(url) { - const wrapper = `importScripts("${url}");`; - return URL.createObjectURL(new Blob([wrapper])); - }; - } - const _PDFWorker = class { - constructor({ - name = null, - port = null, - verbosity = (0, _util.getVerbosityLevel)() - } = {}) { - var _a2; - this.name = name; - this.destroyed = false; - this.verbosity = verbosity; - this._readyCapability = new _util.PromiseCapability(); - this._port = null; - this._webWorker = null; - this._messageHandler = null; - if (port) { - if ((_a2 = __privateGet(_PDFWorker, _workerPorts)) == null ? void 0 : _a2.has(port)) { - throw new Error("Cannot use more than one PDFWorker per port."); - } - (__privateGet(_PDFWorker, _workerPorts) || __privateSet(_PDFWorker, _workerPorts, /* @__PURE__ */ new WeakMap())).set(port, this); - this._initializeFromPort(port); - return; - } - this._initialize(); - } - get promise() { - return this._readyCapability.promise; - } - get port() { - return this._port; - } - get messageHandler() { - return this._messageHandler; - } - _initializeFromPort(port) { - this._port = port; - this._messageHandler = new _message_handler.MessageHandler("main", "worker", port); - this._messageHandler.on("ready", function() { - }); - this._readyCapability.resolve(); - this._messageHandler.send("configure", { - verbosity: this.verbosity - }); - } - _initialize() { - if (!PDFWorkerUtil.isWorkerDisabled && !_PDFWorker._mainThreadWorkerMessageHandler) { - let { - workerSrc - } = _PDFWorker; - try { - if (!PDFWorkerUtil.isSameOrigin(window.location.href, workerSrc)) { - workerSrc = PDFWorkerUtil.createCDNWrapper(new URL(workerSrc, window.location).href); - } - const worker3 = new Worker(workerSrc); - const messageHandler = new _message_handler.MessageHandler("main", "worker", worker3); - const terminateEarly = () => { - worker3.removeEventListener("error", onWorkerError); - messageHandler.destroy(); - worker3.terminate(); - if (this.destroyed) { - this._readyCapability.reject(new Error("Worker was destroyed")); - } else { - this._setupFakeWorker(); - } - }; - const onWorkerError = () => { - if (!this._webWorker) { - terminateEarly(); - } - }; - worker3.addEventListener("error", onWorkerError); - messageHandler.on("test", (data) => { - worker3.removeEventListener("error", onWorkerError); - if (this.destroyed) { - terminateEarly(); - return; - } - if (data) { - this._messageHandler = messageHandler; - this._port = worker3; - this._webWorker = worker3; - this._readyCapability.resolve(); - messageHandler.send("configure", { - verbosity: this.verbosity - }); - } else { - this._setupFakeWorker(); - messageHandler.destroy(); - worker3.terminate(); - } - }); - messageHandler.on("ready", (data) => { - worker3.removeEventListener("error", onWorkerError); - if (this.destroyed) { - terminateEarly(); - return; - } - try { - sendTest(); - } catch (e2) { - this._setupFakeWorker(); - } - }); - const sendTest = () => { - const testObj = new Uint8Array(); - messageHandler.send("test", testObj, [testObj.buffer]); - }; - sendTest(); - return; - } catch (e2) { - (0, _util.info)("The worker has been disabled."); - } - } - this._setupFakeWorker(); - } - _setupFakeWorker() { - if (!PDFWorkerUtil.isWorkerDisabled) { - (0, _util.warn)("Setting up fake worker."); - PDFWorkerUtil.isWorkerDisabled = true; - } - _PDFWorker._setupFakeWorkerGlobal.then((WorkerMessageHandler) => { - if (this.destroyed) { - this._readyCapability.reject(new Error("Worker was destroyed")); - return; - } - const port = new LoopbackPort(); - this._port = port; - const id = `fake${PDFWorkerUtil.fakeWorkerId++}`; - const workerHandler = new _message_handler.MessageHandler(id + "_worker", id, port); - WorkerMessageHandler.setup(workerHandler, port); - const messageHandler = new _message_handler.MessageHandler(id, id + "_worker", port); - this._messageHandler = messageHandler; - this._readyCapability.resolve(); - messageHandler.send("configure", { - verbosity: this.verbosity - }); - }).catch((reason) => { - this._readyCapability.reject(new Error(`Setting up fake worker failed: "${reason.message}".`)); - }); - } - destroy() { - var _a2; - this.destroyed = true; - if (this._webWorker) { - this._webWorker.terminate(); - this._webWorker = null; - } - (_a2 = __privateGet(_PDFWorker, _workerPorts)) == null ? void 0 : _a2.delete(this._port); - this._port = null; - if (this._messageHandler) { - this._messageHandler.destroy(); - this._messageHandler = null; - } - } - static fromPort(params) { - var _a2; - if (!(params == null ? void 0 : params.port)) { - throw new Error("PDFWorker.fromPort - invalid method signature."); - } - const cachedPort = (_a2 = __privateGet(this, _workerPorts)) == null ? void 0 : _a2.get(params.port); - if (cachedPort) { - if (cachedPort._pendingDestroy) { - throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls."); - } - return cachedPort; - } - return new _PDFWorker(params); - } - static get workerSrc() { - if (_worker_options.GlobalWorkerOptions.workerSrc) { - return _worker_options.GlobalWorkerOptions.workerSrc; - } - if (PDFWorkerUtil.fallbackWorkerSrc !== null) { - if (!_util.isNodeJS) { - (0, _display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'); - } - return PDFWorkerUtil.fallbackWorkerSrc; - } - throw new Error('No "GlobalWorkerOptions.workerSrc" specified.'); - } - static get _mainThreadWorkerMessageHandler() { - var _a2; - try { - return ((_a2 = globalThis.pdfjsWorker) == null ? void 0 : _a2.WorkerMessageHandler) || null; - } catch (e2) { - return null; - } - } - static get _setupFakeWorkerGlobal() { - const loader = async () => { - const mainWorkerMessageHandler = this._mainThreadWorkerMessageHandler; - if (mainWorkerMessageHandler) { - return mainWorkerMessageHandler; - } - if (_util.isNodeJS && typeof __require === "function") { - const worker = eval("require")(this.workerSrc); - return worker.WorkerMessageHandler; - } - await (0, _display_utils.loadScript)(this.workerSrc); - return window.pdfjsWorker.WorkerMessageHandler; - }; - return (0, _util.shadow)(this, "_setupFakeWorkerGlobal", loader()); - } - }; - let PDFWorker = _PDFWorker; - _workerPorts = new WeakMap(); - __privateAdd(PDFWorker, _workerPorts, void 0); - exports.PDFWorker = PDFWorker; - class WorkerTransport { - constructor(messageHandler, loadingTask, networkStream, params, factory) { - __privateAdd(this, _cacheSimpleMethod); - __privateAdd(this, _methodPromises, /* @__PURE__ */ new Map()); - __privateAdd(this, _pageCache, /* @__PURE__ */ new Map()); - __privateAdd(this, _pagePromises, /* @__PURE__ */ new Map()); - __privateAdd(this, _passwordCapability, null); - this.messageHandler = messageHandler; - this.loadingTask = loadingTask; - this.commonObjs = new PDFObjects(); - this.fontLoader = new _font_loader.FontLoader({ - ownerDocument: params.ownerDocument, - styleElement: params.styleElement - }); - this._params = params; - this.canvasFactory = factory.canvasFactory; - this.filterFactory = factory.filterFactory; - this.cMapReaderFactory = factory.cMapReaderFactory; - this.standardFontDataFactory = factory.standardFontDataFactory; - this.destroyed = false; - this.destroyCapability = null; - this._networkStream = networkStream; - this._fullReader = null; - this._lastProgress = null; - this.downloadInfoCapability = new _util.PromiseCapability(); - this.setupMessageHandler(); - } - get annotationStorage() { - return (0, _util.shadow)(this, "annotationStorage", new _annotation_storage.AnnotationStorage()); - } - getRenderingIntent(intent, annotationMode = _util.AnnotationMode.ENABLE, printAnnotationStorage = null, isOpList = false) { - let renderingIntent = _util.RenderingIntentFlag.DISPLAY; - let annotationStorageSerializable = _annotation_storage.SerializableEmpty; - switch (intent) { - case "any": - renderingIntent = _util.RenderingIntentFlag.ANY; - break; - case "display": - break; - case "print": - renderingIntent = _util.RenderingIntentFlag.PRINT; - break; - default: - (0, _util.warn)(`getRenderingIntent - invalid intent: ${intent}`); - } - switch (annotationMode) { - case _util.AnnotationMode.DISABLE: - renderingIntent += _util.RenderingIntentFlag.ANNOTATIONS_DISABLE; - break; - case _util.AnnotationMode.ENABLE: - break; - case _util.AnnotationMode.ENABLE_FORMS: - renderingIntent += _util.RenderingIntentFlag.ANNOTATIONS_FORMS; - break; - case _util.AnnotationMode.ENABLE_STORAGE: - renderingIntent += _util.RenderingIntentFlag.ANNOTATIONS_STORAGE; - const annotationStorage = renderingIntent & _util.RenderingIntentFlag.PRINT && printAnnotationStorage instanceof _annotation_storage.PrintAnnotationStorage ? printAnnotationStorage : this.annotationStorage; - annotationStorageSerializable = annotationStorage.serializable; - break; - default: - (0, _util.warn)(`getRenderingIntent - invalid annotationMode: ${annotationMode}`); - } - if (isOpList) { - renderingIntent += _util.RenderingIntentFlag.OPLIST; - } - return { - renderingIntent, - cacheKey: `${renderingIntent}_${annotationStorageSerializable.hash}`, - annotationStorageSerializable - }; - } - destroy() { - var _a2; - if (this.destroyCapability) { - return this.destroyCapability.promise; - } - this.destroyed = true; - this.destroyCapability = new _util.PromiseCapability(); - (_a2 = __privateGet(this, _passwordCapability)) == null ? void 0 : _a2.reject(new Error("Worker was destroyed during onPassword callback")); - const waitOn = []; - for (const page of __privateGet(this, _pageCache).values()) { - waitOn.push(page._destroy()); - } - __privateGet(this, _pageCache).clear(); - __privateGet(this, _pagePromises).clear(); - if (this.hasOwnProperty("annotationStorage")) { - this.annotationStorage.resetModified(); - } - const terminated = this.messageHandler.sendWithPromise("Terminate", null); - waitOn.push(terminated); - Promise.all(waitOn).then(() => { - var _a3; - this.commonObjs.clear(); - this.fontLoader.clear(); - __privateGet(this, _methodPromises).clear(); - this.filterFactory.destroy(); - (_a3 = this._networkStream) == null ? void 0 : _a3.cancelAllRequests(new _util.AbortException("Worker was terminated.")); - if (this.messageHandler) { - this.messageHandler.destroy(); - this.messageHandler = null; - } - this.destroyCapability.resolve(); - }, this.destroyCapability.reject); - return this.destroyCapability.promise; - } - setupMessageHandler() { - const { - messageHandler, - loadingTask - } = this; - messageHandler.on("GetReader", (data, sink) => { - (0, _util.assert)(this._networkStream, "GetReader - no `IPDFStream` instance available."); - this._fullReader = this._networkStream.getFullReader(); - this._fullReader.onProgress = (evt) => { - this._lastProgress = { - loaded: evt.loaded, - total: evt.total - }; - }; - sink.onPull = () => { - this._fullReader.read().then(function({ - value, - done - }) { - if (done) { - sink.close(); - return; - } - (0, _util.assert)(value instanceof ArrayBuffer, "GetReader - expected an ArrayBuffer."); - sink.enqueue(new Uint8Array(value), 1, [value]); - }).catch((reason) => { - sink.error(reason); - }); - }; - sink.onCancel = (reason) => { - this._fullReader.cancel(reason); - sink.ready.catch((readyReason) => { - if (this.destroyed) { - return; - } - throw readyReason; - }); - }; - }); - messageHandler.on("ReaderHeadersReady", (data) => { - const headersCapability = new _util.PromiseCapability(); - const fullReader = this._fullReader; - fullReader.headersReady.then(() => { - var _a2; - if (!fullReader.isStreamingSupported || !fullReader.isRangeSupported) { - if (this._lastProgress) { - (_a2 = loadingTask.onProgress) == null ? void 0 : _a2.call(loadingTask, this._lastProgress); - } - fullReader.onProgress = (evt) => { - var _a3; - (_a3 = loadingTask.onProgress) == null ? void 0 : _a3.call(loadingTask, { - loaded: evt.loaded, - total: evt.total - }); - }; - } - headersCapability.resolve({ - isStreamingSupported: fullReader.isStreamingSupported, - isRangeSupported: fullReader.isRangeSupported, - contentLength: fullReader.contentLength - }); - }, headersCapability.reject); - return headersCapability.promise; - }); - messageHandler.on("GetRangeReader", (data, sink) => { - (0, _util.assert)(this._networkStream, "GetRangeReader - no `IPDFStream` instance available."); - const rangeReader = this._networkStream.getRangeReader(data.begin, data.end); - if (!rangeReader) { - sink.close(); - return; - } - sink.onPull = () => { - rangeReader.read().then(function({ - value, - done - }) { - if (done) { - sink.close(); - return; - } - (0, _util.assert)(value instanceof ArrayBuffer, "GetRangeReader - expected an ArrayBuffer."); - sink.enqueue(new Uint8Array(value), 1, [value]); - }).catch((reason) => { - sink.error(reason); - }); - }; - sink.onCancel = (reason) => { - rangeReader.cancel(reason); - sink.ready.catch((readyReason) => { - if (this.destroyed) { - return; - } - throw readyReason; - }); - }; - }); - messageHandler.on("GetDoc", ({ - pdfInfo - }) => { - this._numPages = pdfInfo.numPages; - this._htmlForXfa = pdfInfo.htmlForXfa; - delete pdfInfo.htmlForXfa; - loadingTask._capability.resolve(new PDFDocumentProxy(pdfInfo, this)); - }); - messageHandler.on("DocException", function(ex) { - let reason; - switch (ex.name) { - case "PasswordException": - reason = new _util.PasswordException(ex.message, ex.code); - break; - case "InvalidPDFException": - reason = new _util.InvalidPDFException(ex.message); - break; - case "MissingPDFException": - reason = new _util.MissingPDFException(ex.message); - break; - case "UnexpectedResponseException": - reason = new _util.UnexpectedResponseException(ex.message, ex.status); - break; - case "UnknownErrorException": - reason = new _util.UnknownErrorException(ex.message, ex.details); - break; - default: - (0, _util.unreachable)("DocException - expected a valid Error."); - } - loadingTask._capability.reject(reason); - }); - messageHandler.on("PasswordRequest", (exception) => { - __privateSet(this, _passwordCapability, new _util.PromiseCapability()); - if (loadingTask.onPassword) { - const updatePassword = (password) => { - if (password instanceof Error) { - __privateGet(this, _passwordCapability).reject(password); - } else { - __privateGet(this, _passwordCapability).resolve({ - password - }); - } - }; - try { - loadingTask.onPassword(updatePassword, exception.code); - } catch (ex) { - __privateGet(this, _passwordCapability).reject(ex); - } - } else { - __privateGet(this, _passwordCapability).reject(new _util.PasswordException(exception.message, exception.code)); - } - return __privateGet(this, _passwordCapability).promise; - }); - messageHandler.on("DataLoaded", (data) => { - var _a2; - (_a2 = loadingTask.onProgress) == null ? void 0 : _a2.call(loadingTask, { - loaded: data.length, - total: data.length - }); - this.downloadInfoCapability.resolve(data); - }); - messageHandler.on("StartRenderPage", (data) => { - if (this.destroyed) { - return; - } - const page = __privateGet(this, _pageCache).get(data.pageIndex); - page._startRenderPage(data.transparency, data.cacheKey); - }); - messageHandler.on("commonobj", ([id, type, exportedData]) => { - var _a2; - if (this.destroyed) { - return; - } - if (this.commonObjs.has(id)) { - return; - } - switch (type) { - case "Font": - const params = this._params; - if ("error" in exportedData) { - const exportedError = exportedData.error; - (0, _util.warn)(`Error during font loading: ${exportedError}`); - this.commonObjs.resolve(id, exportedError); - break; - } - const inspectFont = params.pdfBug && ((_a2 = globalThis.FontInspector) == null ? void 0 : _a2.enabled) ? (font2, url) => globalThis.FontInspector.fontAdded(font2, url) : null; - const font = new _font_loader.FontFaceObject(exportedData, { - isEvalSupported: params.isEvalSupported, - disableFontFace: params.disableFontFace, - ignoreErrors: params.ignoreErrors, - inspectFont - }); - this.fontLoader.bind(font).catch((reason) => { - return messageHandler.sendWithPromise("FontFallback", { - id - }); - }).finally(() => { - if (!params.fontExtraProperties && font.data) { - font.data = null; - } - this.commonObjs.resolve(id, font); - }); - break; - case "FontPath": - case "Image": - case "Pattern": - this.commonObjs.resolve(id, exportedData); - break; - default: - throw new Error(`Got unknown common object type ${type}`); - } - }); - messageHandler.on("obj", ([id, pageIndex, type, imageData]) => { - var _a2; - if (this.destroyed) { - return; - } - const pageProxy = __privateGet(this, _pageCache).get(pageIndex); - if (pageProxy.objs.has(id)) { - return; - } - switch (type) { - case "Image": - pageProxy.objs.resolve(id, imageData); - if (imageData) { - let length; - if (imageData.bitmap) { - const { - width, - height - } = imageData; - length = width * height * 4; - } else { - length = ((_a2 = imageData.data) == null ? void 0 : _a2.length) || 0; - } - if (length > _util.MAX_IMAGE_SIZE_TO_CACHE) { - pageProxy._maybeCleanupAfterRender = true; - } - } - break; - case "Pattern": - pageProxy.objs.resolve(id, imageData); - break; - default: - throw new Error(`Got unknown object type ${type}`); - } - }); - messageHandler.on("DocProgress", (data) => { - var _a2; - if (this.destroyed) { - return; - } - (_a2 = loadingTask.onProgress) == null ? void 0 : _a2.call(loadingTask, { - loaded: data.loaded, - total: data.total - }); - }); - messageHandler.on("FetchBuiltInCMap", (data) => { - if (this.destroyed) { - return Promise.reject(new Error("Worker was destroyed.")); - } - if (!this.cMapReaderFactory) { - return Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")); - } - return this.cMapReaderFactory.fetch(data); - }); - messageHandler.on("FetchStandardFontData", (data) => { - if (this.destroyed) { - return Promise.reject(new Error("Worker was destroyed.")); - } - if (!this.standardFontDataFactory) { - return Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")); - } - return this.standardFontDataFactory.fetch(data); - }); - } - getData() { - return this.messageHandler.sendWithPromise("GetData", null); - } - saveDocument() { - var _a2, _b; - if (this.annotationStorage.size <= 0) { - (0, _util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."); - } - const { - map, - transfers - } = this.annotationStorage.serializable; - return this.messageHandler.sendWithPromise("SaveDocument", { - isPureXfa: !!this._htmlForXfa, - numPages: this._numPages, - annotationStorage: map, - filename: (_b = (_a2 = this._fullReader) == null ? void 0 : _a2.filename) != null ? _b : null - }, transfers).finally(() => { - this.annotationStorage.resetModified(); - }); - } - getPage(pageNumber) { - if (!Number.isInteger(pageNumber) || pageNumber <= 0 || pageNumber > this._numPages) { - return Promise.reject(new Error("Invalid page request.")); - } - const pageIndex = pageNumber - 1, cachedPromise = __privateGet(this, _pagePromises).get(pageIndex); - if (cachedPromise) { - return cachedPromise; - } - const promise = this.messageHandler.sendWithPromise("GetPage", { - pageIndex - }).then((pageInfo) => { - if (this.destroyed) { - throw new Error("Transport destroyed"); - } - const page = new PDFPageProxy(pageIndex, pageInfo, this, this._params.pdfBug); - __privateGet(this, _pageCache).set(pageIndex, page); - return page; - }); - __privateGet(this, _pagePromises).set(pageIndex, promise); - return promise; - } - getPageIndex(ref) { - if (typeof ref !== "object" || ref === null || !Number.isInteger(ref.num) || ref.num < 0 || !Number.isInteger(ref.gen) || ref.gen < 0) { - return Promise.reject(new Error("Invalid pageIndex request.")); - } - return this.messageHandler.sendWithPromise("GetPageIndex", { - num: ref.num, - gen: ref.gen - }); - } - getAnnotations(pageIndex, intent) { - return this.messageHandler.sendWithPromise("GetAnnotations", { - pageIndex, - intent - }); - } - getFieldObjects() { - return __privateMethod(this, _cacheSimpleMethod, cacheSimpleMethod_fn).call(this, "GetFieldObjects"); - } - hasJSActions() { - return __privateMethod(this, _cacheSimpleMethod, cacheSimpleMethod_fn).call(this, "HasJSActions"); - } - getCalculationOrderIds() { - return this.messageHandler.sendWithPromise("GetCalculationOrderIds", null); - } - getDestinations() { - return this.messageHandler.sendWithPromise("GetDestinations", null); - } - getDestination(id) { - if (typeof id !== "string") { - return Promise.reject(new Error("Invalid destination request.")); - } - return this.messageHandler.sendWithPromise("GetDestination", { - id - }); - } - getPageLabels() { - return this.messageHandler.sendWithPromise("GetPageLabels", null); - } - getPageLayout() { - return this.messageHandler.sendWithPromise("GetPageLayout", null); - } - getPageMode() { - return this.messageHandler.sendWithPromise("GetPageMode", null); - } - getViewerPreferences() { - return this.messageHandler.sendWithPromise("GetViewerPreferences", null); - } - getOpenAction() { - return this.messageHandler.sendWithPromise("GetOpenAction", null); - } - getAttachments() { - return this.messageHandler.sendWithPromise("GetAttachments", null); - } - getDocJSActions() { - return __privateMethod(this, _cacheSimpleMethod, cacheSimpleMethod_fn).call(this, "GetDocJSActions"); - } - getPageJSActions(pageIndex) { - return this.messageHandler.sendWithPromise("GetPageJSActions", { - pageIndex - }); - } - getStructTree(pageIndex) { - return this.messageHandler.sendWithPromise("GetStructTree", { - pageIndex - }); - } - getOutline() { - return this.messageHandler.sendWithPromise("GetOutline", null); - } - getOptionalContentConfig() { - return this.messageHandler.sendWithPromise("GetOptionalContentConfig", null).then((results) => { - return new _optional_content_config.OptionalContentConfig(results); - }); - } - getPermissions() { - return this.messageHandler.sendWithPromise("GetPermissions", null); - } - getMetadata() { - const name = "GetMetadata", cachedPromise = __privateGet(this, _methodPromises).get(name); - if (cachedPromise) { - return cachedPromise; - } - const promise = this.messageHandler.sendWithPromise(name, null).then((results) => { - var _a2, _b, _c, _d; - return { - info: results[0], - metadata: results[1] ? new _metadata.Metadata(results[1]) : null, - contentDispositionFilename: (_b = (_a2 = this._fullReader) == null ? void 0 : _a2.filename) != null ? _b : null, - contentLength: (_d = (_c = this._fullReader) == null ? void 0 : _c.contentLength) != null ? _d : null - }; - }); - __privateGet(this, _methodPromises).set(name, promise); - return promise; - } - getMarkInfo() { - return this.messageHandler.sendWithPromise("GetMarkInfo", null); - } - async startCleanup(keepLoadedFonts = false) { - if (this.destroyed) { - return; - } - await this.messageHandler.sendWithPromise("Cleanup", null); - for (const page of __privateGet(this, _pageCache).values()) { - const cleanupSuccessful = page.cleanup(); - if (!cleanupSuccessful) { - throw new Error(`startCleanup: Page ${page.pageNumber} is currently rendering.`); - } - } - this.commonObjs.clear(); - if (!keepLoadedFonts) { - this.fontLoader.clear(); - } - __privateGet(this, _methodPromises).clear(); - this.filterFactory.destroy(true); - } - get loadingParams() { - const { - disableAutoFetch, - enableXfa - } = this._params; - return (0, _util.shadow)(this, "loadingParams", { - disableAutoFetch, - enableXfa - }); - } - } - _methodPromises = new WeakMap(); - _pageCache = new WeakMap(); - _pagePromises = new WeakMap(); - _passwordCapability = new WeakMap(); - _cacheSimpleMethod = new WeakSet(); - cacheSimpleMethod_fn = function(name, data = null) { - const cachedPromise = __privateGet(this, _methodPromises).get(name); - if (cachedPromise) { - return cachedPromise; - } - const promise = this.messageHandler.sendWithPromise(name, data); - __privateGet(this, _methodPromises).set(name, promise); - return promise; - }; - class PDFObjects { - constructor() { - __privateAdd(this, _ensureObj); - __privateAdd(this, _objs, /* @__PURE__ */ Object.create(null)); - } - get(objId, callback = null) { - if (callback) { - const obj2 = __privateMethod(this, _ensureObj, ensureObj_fn).call(this, objId); - obj2.capability.promise.then(() => callback(obj2.data)); - return null; - } - const obj = __privateGet(this, _objs)[objId]; - if (!(obj == null ? void 0 : obj.capability.settled)) { - throw new Error(`Requesting object that isn't resolved yet ${objId}.`); - } - return obj.data; - } - has(objId) { - const obj = __privateGet(this, _objs)[objId]; - return (obj == null ? void 0 : obj.capability.settled) || false; - } - resolve(objId, data = null) { - const obj = __privateMethod(this, _ensureObj, ensureObj_fn).call(this, objId); - obj.data = data; - obj.capability.resolve(); - } - clear() { - var _a2; - for (const objId in __privateGet(this, _objs)) { - const { - data - } = __privateGet(this, _objs)[objId]; - (_a2 = data == null ? void 0 : data.bitmap) == null ? void 0 : _a2.close(); - } - __privateSet(this, _objs, /* @__PURE__ */ Object.create(null)); - } - } - _objs = new WeakMap(); - _ensureObj = new WeakSet(); - ensureObj_fn = function(objId) { - var _a2; - return (_a2 = __privateGet(this, _objs))[objId] || (_a2[objId] = { - capability: new _util.PromiseCapability(), - data: null - }); - }; - class RenderTask { - constructor(internalRenderTask) { - __privateAdd(this, _internalRenderTask, null); - __privateSet(this, _internalRenderTask, internalRenderTask); - this.onContinue = null; - } - get promise() { - return __privateGet(this, _internalRenderTask).capability.promise; - } - cancel(extraDelay = 0) { - __privateGet(this, _internalRenderTask).cancel(null, extraDelay); - } - get separateAnnots() { - const { - separateAnnots - } = __privateGet(this, _internalRenderTask).operatorList; - if (!separateAnnots) { - return false; - } - const { - annotationCanvasMap - } = __privateGet(this, _internalRenderTask); - return separateAnnots.form || separateAnnots.canvas && (annotationCanvasMap == null ? void 0 : annotationCanvasMap.size) > 0; - } - } - _internalRenderTask = new WeakMap(); - exports.RenderTask = RenderTask; - const _InternalRenderTask = class { - constructor({ - callback, - params, - objs, - commonObjs, - annotationCanvasMap, - operatorList, - pageIndex, - canvasFactory, - filterFactory, - useRequestAnimationFrame = false, - pdfBug = false, - pageColors = null - }) { - this.callback = callback; - this.params = params; - this.objs = objs; - this.commonObjs = commonObjs; - this.annotationCanvasMap = annotationCanvasMap; - this.operatorListIdx = null; - this.operatorList = operatorList; - this._pageIndex = pageIndex; - this.canvasFactory = canvasFactory; - this.filterFactory = filterFactory; - this._pdfBug = pdfBug; - this.pageColors = pageColors; - this.running = false; - this.graphicsReadyCallback = null; - this.graphicsReady = false; - this._useRequestAnimationFrame = useRequestAnimationFrame === true && typeof window !== "undefined"; - this.cancelled = false; - this.capability = new _util.PromiseCapability(); - this.task = new RenderTask(this); - this._cancelBound = this.cancel.bind(this); - this._continueBound = this._continue.bind(this); - this._scheduleNextBound = this._scheduleNext.bind(this); - this._nextBound = this._next.bind(this); - this._canvas = params.canvasContext.canvas; - } - get completed() { - return this.capability.promise.catch(function() { - }); - } - initializeGraphics({ - transparency = false, - optionalContentConfig - }) { - var _a2, _b; - if (this.cancelled) { - return; - } - if (this._canvas) { - if (__privateGet(_InternalRenderTask, _canvasInUse).has(this._canvas)) { - throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed."); - } - __privateGet(_InternalRenderTask, _canvasInUse).add(this._canvas); - } - if (this._pdfBug && ((_a2 = globalThis.StepperManager) == null ? void 0 : _a2.enabled)) { - this.stepper = globalThis.StepperManager.create(this._pageIndex); - this.stepper.init(this.operatorList); - this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint(); - } - const { - canvasContext, - viewport, - transform, - background - } = this.params; - this.gfx = new _canvas.CanvasGraphics(canvasContext, this.commonObjs, this.objs, this.canvasFactory, this.filterFactory, { - optionalContentConfig - }, this.annotationCanvasMap, this.pageColors); - this.gfx.beginDrawing({ - transform, - viewport, - transparency, - background - }); - this.operatorListIdx = 0; - this.graphicsReady = true; - (_b = this.graphicsReadyCallback) == null ? void 0 : _b.call(this); - } - cancel(error = null, extraDelay = 0) { - var _a2; - this.running = false; - this.cancelled = true; - (_a2 = this.gfx) == null ? void 0 : _a2.endDrawing(); - __privateGet(_InternalRenderTask, _canvasInUse).delete(this._canvas); - this.callback(error || new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, extraDelay)); - } - operatorListChanged() { - var _a2; - if (!this.graphicsReady) { - this.graphicsReadyCallback || (this.graphicsReadyCallback = this._continueBound); - return; - } - (_a2 = this.stepper) == null ? void 0 : _a2.updateOperatorList(this.operatorList); - if (this.running) { - return; - } - this._continue(); - } - _continue() { - this.running = true; - if (this.cancelled) { - return; - } - if (this.task.onContinue) { - this.task.onContinue(this._scheduleNextBound); - } else { - this._scheduleNext(); - } - } - _scheduleNext() { - if (this._useRequestAnimationFrame) { - window.requestAnimationFrame(() => { - this._nextBound().catch(this._cancelBound); - }); - } else { - Promise.resolve().then(this._nextBound).catch(this._cancelBound); - } - } - async _next() { - if (this.cancelled) { - return; - } - this.operatorListIdx = this.gfx.executeOperatorList(this.operatorList, this.operatorListIdx, this._continueBound, this.stepper); - if (this.operatorListIdx === this.operatorList.argsArray.length) { - this.running = false; - if (this.operatorList.lastChunk) { - this.gfx.endDrawing(); - __privateGet(_InternalRenderTask, _canvasInUse).delete(this._canvas); - this.callback(); - } - } - } - }; - let InternalRenderTask = _InternalRenderTask; - _canvasInUse = new WeakMap(); - __privateAdd(InternalRenderTask, _canvasInUse, /* @__PURE__ */ new WeakSet()); - const version = "3.11.174"; - exports.version = version; - const build = "ce8716743"; - exports.build = build; - }, - /* 3 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _modified, _storage, _setModified, setModified_fn, _serializable; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.SerializableEmpty = exports2.PrintAnnotationStorage = exports2.AnnotationStorage = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _editor = __w_pdfjs_require__2(4); - var _murmurhash = __w_pdfjs_require__2(8); - const SerializableEmpty = Object.freeze({ - map: null, - hash: "", - transfers: void 0 - }); - exports2.SerializableEmpty = SerializableEmpty; - class AnnotationStorage { - constructor() { - __privateAdd(this, _setModified); - __privateAdd(this, _modified, false); - __privateAdd(this, _storage, /* @__PURE__ */ new Map()); - this.onSetModified = null; - this.onResetModified = null; - this.onAnnotationEditor = null; - } - getValue(key, defaultValue) { - const value = __privateGet(this, _storage).get(key); - if (value === void 0) { - return defaultValue; - } - return Object.assign(defaultValue, value); - } - getRawValue(key) { - return __privateGet(this, _storage).get(key); - } - remove(key) { - __privateGet(this, _storage).delete(key); - if (__privateGet(this, _storage).size === 0) { - this.resetModified(); - } - if (typeof this.onAnnotationEditor === "function") { - for (const value of __privateGet(this, _storage).values()) { - if (value instanceof _editor.AnnotationEditor) { - return; - } - } - this.onAnnotationEditor(null); - } - } - setValue(key, value) { - const obj = __privateGet(this, _storage).get(key); - let modified = false; - if (obj !== void 0) { - for (const [entry, val] of Object.entries(value)) { - if (obj[entry] !== val) { - modified = true; - obj[entry] = val; - } - } - } else { - modified = true; - __privateGet(this, _storage).set(key, value); - } - if (modified) { - __privateMethod(this, _setModified, setModified_fn).call(this); - } - if (value instanceof _editor.AnnotationEditor && typeof this.onAnnotationEditor === "function") { - this.onAnnotationEditor(value.constructor._type); - } - } - has(key) { - return __privateGet(this, _storage).has(key); - } - getAll() { - return __privateGet(this, _storage).size > 0 ? (0, _util2.objectFromMap)(__privateGet(this, _storage)) : null; - } - setAll(obj) { - for (const [key, val] of Object.entries(obj)) { - this.setValue(key, val); - } - } - get size() { - return __privateGet(this, _storage).size; - } - resetModified() { - if (__privateGet(this, _modified)) { - __privateSet(this, _modified, false); - if (typeof this.onResetModified === "function") { - this.onResetModified(); - } - } - } - get print() { - return new PrintAnnotationStorage(this); - } - get serializable() { - if (__privateGet(this, _storage).size === 0) { - return SerializableEmpty; - } - const map = /* @__PURE__ */ new Map(), hash = new _murmurhash.MurmurHash3_64(), transfers = []; - const context = /* @__PURE__ */ Object.create(null); - let hasBitmap = false; - for (const [key, val] of __privateGet(this, _storage)) { - const serialized = val instanceof _editor.AnnotationEditor ? val.serialize(false, context) : val; - if (serialized) { - map.set(key, serialized); - hash.update(`${key}:${JSON.stringify(serialized)}`); - hasBitmap || (hasBitmap = !!serialized.bitmap); - } - } - if (hasBitmap) { - for (const value of map.values()) { - if (value.bitmap) { - transfers.push(value.bitmap); - } - } - } - return map.size > 0 ? { - map, - hash: hash.hexdigest(), - transfers - } : SerializableEmpty; - } - } - _modified = new WeakMap(); - _storage = new WeakMap(); - _setModified = new WeakSet(); - setModified_fn = function() { - if (!__privateGet(this, _modified)) { - __privateSet(this, _modified, true); - if (typeof this.onSetModified === "function") { - this.onSetModified(); - } - } - }; - exports2.AnnotationStorage = AnnotationStorage; - class PrintAnnotationStorage extends AnnotationStorage { - constructor(parent) { - super(); - __privateAdd(this, _serializable, void 0); - const { - map, - hash, - transfers - } = parent.serializable; - const clone2 = structuredClone(map, transfers ? { - transfer: transfers - } : null); - __privateSet(this, _serializable, { - map: clone2, - hash, - transfers - }); - } - get print() { - (0, _util2.unreachable)("Should not call PrintAnnotationStorage.print"); - } - get serializable() { - return __privateGet(this, _serializable); - } - } - _serializable = new WeakMap(); - exports2.PrintAnnotationStorage = PrintAnnotationStorage; - }, - /* 4 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _altText, _altTextDecorative, _altTextButton, _altTextTooltip, _altTextTooltipTimeout, _keepAspectRatio, _resizersDiv, _boundFocusin, _boundFocusout, _hasBeenClicked, _isEditing, _isInEditMode, _isDraggable, _zIndex, _translate, translate_fn, _getBaseTranslation, getBaseTranslation_fn, _rotatePoint, rotatePoint_fn, _getRotationMatrix, getRotationMatrix_fn, _createResizers, createResizers_fn, _resizerPointerdown, resizerPointerdown_fn, _resizerPointermove, resizerPointermove_fn, _setAltTextButtonState, setAltTextButtonState_fn, _setUpDragSession, setUpDragSession_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.AnnotationEditor = void 0; - var _tools = __w_pdfjs_require__2(5); - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - const _AnnotationEditor = class { - constructor(parameters) { - __privateAdd(this, _translate); - __privateAdd(this, _getBaseTranslation); - __privateAdd(this, _getRotationMatrix); - __privateAdd(this, _createResizers); - __privateAdd(this, _resizerPointerdown); - __privateAdd(this, _resizerPointermove); - __privateAdd(this, _setAltTextButtonState); - __privateAdd(this, _setUpDragSession); - __privateAdd(this, _altText, ""); - __privateAdd(this, _altTextDecorative, false); - __privateAdd(this, _altTextButton, null); - __privateAdd(this, _altTextTooltip, null); - __privateAdd(this, _altTextTooltipTimeout, null); - __privateAdd(this, _keepAspectRatio, false); - __privateAdd(this, _resizersDiv, null); - __privateAdd(this, _boundFocusin, this.focusin.bind(this)); - __privateAdd(this, _boundFocusout, this.focusout.bind(this)); - __privateAdd(this, _hasBeenClicked, false); - __privateAdd(this, _isEditing, false); - __privateAdd(this, _isInEditMode, false); - __publicField(this, "_initialOptions", /* @__PURE__ */ Object.create(null)); - __publicField(this, "_uiManager", null); - __publicField(this, "_focusEventsAllowed", true); - __publicField(this, "_l10nPromise", null); - __privateAdd(this, _isDraggable, false); - __privateAdd(this, _zIndex, _AnnotationEditor._zIndex++); - if (this.constructor === _AnnotationEditor) { - (0, _util2.unreachable)("Cannot initialize AnnotationEditor."); - } - this.parent = parameters.parent; - this.id = parameters.id; - this.width = this.height = null; - this.pageIndex = parameters.parent.pageIndex; - this.name = parameters.name; - this.div = null; - this._uiManager = parameters.uiManager; - this.annotationElementId = null; - this._willKeepAspectRatio = false; - this._initialOptions.isCentered = parameters.isCentered; - this._structTreeParentId = null; - const { - rotation, - rawDims: { - pageWidth, - pageHeight, - pageX, - pageY - } - } = this.parent.viewport; - this.rotation = rotation; - this.pageRotation = (360 + rotation - this._uiManager.viewParameters.rotation) % 360; - this.pageDimensions = [pageWidth, pageHeight]; - this.pageTranslation = [pageX, pageY]; - const [width, height] = this.parentDimensions; - this.x = parameters.x / width; - this.y = parameters.y / height; - this.isAttachedToDOM = false; - this.deleted = false; - } - get editorType() { - return Object.getPrototypeOf(this).constructor._type; - } - static get _defaultLineColor() { - return (0, _util2.shadow)(this, "_defaultLineColor", this._colorManager.getHexCode("CanvasText")); - } - static deleteAnnotationElement(editor) { - const fakeEditor = new FakeEditor({ - id: editor.parent.getNextId(), - parent: editor.parent, - uiManager: editor._uiManager - }); - fakeEditor.annotationElementId = editor.annotationElementId; - fakeEditor.deleted = true; - fakeEditor._uiManager.addToAnnotationStorage(fakeEditor); - } - static initialize(l10n, options = null) { - _AnnotationEditor._l10nPromise || (_AnnotationEditor._l10nPromise = new Map(["editor_alt_text_button_label", "editor_alt_text_edit_button_label", "editor_alt_text_decorative_tooltip"].map((str) => [str, l10n.get(str)]))); - if (options == null ? void 0 : options.strings) { - for (const str of options.strings) { - _AnnotationEditor._l10nPromise.set(str, l10n.get(str)); - } - } - if (_AnnotationEditor._borderLineWidth !== -1) { - return; - } - const style = getComputedStyle(document.documentElement); - _AnnotationEditor._borderLineWidth = parseFloat(style.getPropertyValue("--outline-width")) || 0; - } - static updateDefaultParams(_type, _value) { - } - static get defaultPropertiesToUpdate() { - return []; - } - static isHandlingMimeForPasting(mime) { - return false; - } - static paste(item, parent) { - (0, _util2.unreachable)("Not implemented"); - } - get propertiesToUpdate() { - return []; - } - get _isDraggable() { - return __privateGet(this, _isDraggable); - } - set _isDraggable(value) { - var _a; - __privateSet(this, _isDraggable, value); - (_a = this.div) == null ? void 0 : _a.classList.toggle("draggable", value); - } - center() { - const [pageWidth, pageHeight] = this.pageDimensions; - switch (this.parentRotation) { - case 90: - this.x -= this.height * pageHeight / (pageWidth * 2); - this.y += this.width * pageWidth / (pageHeight * 2); - break; - case 180: - this.x += this.width / 2; - this.y += this.height / 2; - break; - case 270: - this.x += this.height * pageHeight / (pageWidth * 2); - this.y -= this.width * pageWidth / (pageHeight * 2); - break; - default: - this.x -= this.width / 2; - this.y -= this.height / 2; - break; - } - this.fixAndSetPosition(); - } - addCommands(params) { - this._uiManager.addCommands(params); - } - get currentLayer() { - return this._uiManager.currentLayer; - } - setInBackground() { - this.div.style.zIndex = 0; - } - setInForeground() { - this.div.style.zIndex = __privateGet(this, _zIndex); - } - setParent(parent) { - if (parent !== null) { - this.pageIndex = parent.pageIndex; - this.pageDimensions = parent.pageDimensions; - } - this.parent = parent; - } - focusin(event) { - if (!this._focusEventsAllowed) { - return; - } - if (!__privateGet(this, _hasBeenClicked)) { - this.parent.setSelected(this); - } else { - __privateSet(this, _hasBeenClicked, false); - } - } - focusout(event) { - var _a; - if (!this._focusEventsAllowed) { - return; - } - if (!this.isAttachedToDOM) { - return; - } - const target = event.relatedTarget; - if (target == null ? void 0 : target.closest(`#${this.id}`)) { - return; - } - event.preventDefault(); - if (!((_a = this.parent) == null ? void 0 : _a.isMultipleSelection)) { - this.commitOrRemove(); - } - } - commitOrRemove() { - if (this.isEmpty()) { - this.remove(); - } else { - this.commit(); - } - } - commit() { - this.addToAnnotationStorage(); - } - addToAnnotationStorage() { - this._uiManager.addToAnnotationStorage(this); - } - setAt(x2, y2, tx, ty) { - const [width, height] = this.parentDimensions; - [tx, ty] = this.screenToPageTranslation(tx, ty); - this.x = (x2 + tx) / width; - this.y = (y2 + ty) / height; - this.fixAndSetPosition(); - } - translate(x2, y2) { - __privateMethod(this, _translate, translate_fn).call(this, this.parentDimensions, x2, y2); - } - translateInPage(x2, y2) { - __privateMethod(this, _translate, translate_fn).call(this, this.pageDimensions, x2, y2); - this.div.scrollIntoView({ - block: "nearest" - }); - } - drag(tx, ty) { - const [parentWidth, parentHeight] = this.parentDimensions; - this.x += tx / parentWidth; - this.y += ty / parentHeight; - if (this.parent && (this.x < 0 || this.x > 1 || this.y < 0 || this.y > 1)) { - const { - x: x3, - y: y3 - } = this.div.getBoundingClientRect(); - if (this.parent.findNewParent(this, x3, y3)) { - this.x -= Math.floor(this.x); - this.y -= Math.floor(this.y); - } - } - let { - x: x2, - y: y2 - } = this; - const [bx, by] = __privateMethod(this, _getBaseTranslation, getBaseTranslation_fn).call(this); - x2 += bx; - y2 += by; - this.div.style.left = `${(100 * x2).toFixed(2)}%`; - this.div.style.top = `${(100 * y2).toFixed(2)}%`; - this.div.scrollIntoView({ - block: "nearest" - }); - } - fixAndSetPosition() { - const [pageWidth, pageHeight] = this.pageDimensions; - let { - x: x2, - y: y2, - width, - height - } = this; - width *= pageWidth; - height *= pageHeight; - x2 *= pageWidth; - y2 *= pageHeight; - switch (this.rotation) { - case 0: - x2 = Math.max(0, Math.min(pageWidth - width, x2)); - y2 = Math.max(0, Math.min(pageHeight - height, y2)); - break; - case 90: - x2 = Math.max(0, Math.min(pageWidth - height, x2)); - y2 = Math.min(pageHeight, Math.max(width, y2)); - break; - case 180: - x2 = Math.min(pageWidth, Math.max(width, x2)); - y2 = Math.min(pageHeight, Math.max(height, y2)); - break; - case 270: - x2 = Math.min(pageWidth, Math.max(height, x2)); - y2 = Math.max(0, Math.min(pageHeight - width, y2)); - break; - } - this.x = x2 /= pageWidth; - this.y = y2 /= pageHeight; - const [bx, by] = __privateMethod(this, _getBaseTranslation, getBaseTranslation_fn).call(this); - x2 += bx; - y2 += by; - const { - style - } = this.div; - style.left = `${(100 * x2).toFixed(2)}%`; - style.top = `${(100 * y2).toFixed(2)}%`; - this.moveInDOM(); - } - screenToPageTranslation(x2, y2) { - var _a; - return __privateMethod(_a = _AnnotationEditor, _rotatePoint, rotatePoint_fn).call(_a, x2, y2, this.parentRotation); - } - pageTranslationToScreen(x2, y2) { - var _a; - return __privateMethod(_a = _AnnotationEditor, _rotatePoint, rotatePoint_fn).call(_a, x2, y2, 360 - this.parentRotation); - } - get parentScale() { - return this._uiManager.viewParameters.realScale; - } - get parentRotation() { - return (this._uiManager.viewParameters.rotation + this.pageRotation) % 360; - } - get parentDimensions() { - const { - parentScale, - pageDimensions: [pageWidth, pageHeight] - } = this; - const scaledWidth = pageWidth * parentScale; - const scaledHeight = pageHeight * parentScale; - return _util2.FeatureTest.isCSSRoundSupported ? [Math.round(scaledWidth), Math.round(scaledHeight)] : [scaledWidth, scaledHeight]; - } - setDims(width, height) { - var _a; - const [parentWidth, parentHeight] = this.parentDimensions; - this.div.style.width = `${(100 * width / parentWidth).toFixed(2)}%`; - if (!__privateGet(this, _keepAspectRatio)) { - this.div.style.height = `${(100 * height / parentHeight).toFixed(2)}%`; - } - (_a = __privateGet(this, _altTextButton)) == null ? void 0 : _a.classList.toggle("small", width < _AnnotationEditor.SMALL_EDITOR_SIZE || height < _AnnotationEditor.SMALL_EDITOR_SIZE); - } - fixDims() { - const { - style - } = this.div; - const { - height, - width - } = style; - const widthPercent = width.endsWith("%"); - const heightPercent = !__privateGet(this, _keepAspectRatio) && height.endsWith("%"); - if (widthPercent && heightPercent) { - return; - } - const [parentWidth, parentHeight] = this.parentDimensions; - if (!widthPercent) { - style.width = `${(100 * parseFloat(width) / parentWidth).toFixed(2)}%`; - } - if (!__privateGet(this, _keepAspectRatio) && !heightPercent) { - style.height = `${(100 * parseFloat(height) / parentHeight).toFixed(2)}%`; - } - } - getInitialTranslation() { - return [0, 0]; - } - async addAltTextButton() { - if (__privateGet(this, _altTextButton)) { - return; - } - const altText = __privateSet(this, _altTextButton, document.createElement("button")); - altText.className = "altText"; - const msg = await _AnnotationEditor._l10nPromise.get("editor_alt_text_button_label"); - altText.textContent = msg; - altText.setAttribute("aria-label", msg); - altText.tabIndex = "0"; - altText.addEventListener("contextmenu", _display_utils2.noContextMenu); - altText.addEventListener("pointerdown", (event) => event.stopPropagation()); - altText.addEventListener("click", (event) => { - event.preventDefault(); - this._uiManager.editAltText(this); - }, { - capture: true - }); - altText.addEventListener("keydown", (event) => { - if (event.target === altText && event.key === "Enter") { - event.preventDefault(); - this._uiManager.editAltText(this); - } - }); - __privateMethod(this, _setAltTextButtonState, setAltTextButtonState_fn).call(this); - this.div.append(altText); - if (!_AnnotationEditor.SMALL_EDITOR_SIZE) { - const PERCENT = 40; - _AnnotationEditor.SMALL_EDITOR_SIZE = Math.min(128, Math.round(altText.getBoundingClientRect().width * (1 + PERCENT / 100))); - } - } - getClientDimensions() { - return this.div.getBoundingClientRect(); - } - get altTextData() { - return { - altText: __privateGet(this, _altText), - decorative: __privateGet(this, _altTextDecorative) - }; - } - set altTextData({ - altText, - decorative - }) { - if (__privateGet(this, _altText) === altText && __privateGet(this, _altTextDecorative) === decorative) { - return; - } - __privateSet(this, _altText, altText); - __privateSet(this, _altTextDecorative, decorative); - __privateMethod(this, _setAltTextButtonState, setAltTextButtonState_fn).call(this); - } - render() { - this.div = document.createElement("div"); - this.div.setAttribute("data-editor-rotation", (360 - this.rotation) % 360); - this.div.className = this.name; - this.div.setAttribute("id", this.id); - this.div.setAttribute("tabIndex", 0); - this.setInForeground(); - this.div.addEventListener("focusin", __privateGet(this, _boundFocusin)); - this.div.addEventListener("focusout", __privateGet(this, _boundFocusout)); - const [parentWidth, parentHeight] = this.parentDimensions; - if (this.parentRotation % 180 !== 0) { - this.div.style.maxWidth = `${(100 * parentHeight / parentWidth).toFixed(2)}%`; - this.div.style.maxHeight = `${(100 * parentWidth / parentHeight).toFixed(2)}%`; - } - const [tx, ty] = this.getInitialTranslation(); - this.translate(tx, ty); - (0, _tools.bindEvents)(this, this.div, ["pointerdown"]); - return this.div; - } - pointerdown(event) { - const { - isMac - } = _util2.FeatureTest.platform; - if (event.button !== 0 || event.ctrlKey && isMac) { - event.preventDefault(); - return; - } - __privateSet(this, _hasBeenClicked, true); - __privateMethod(this, _setUpDragSession, setUpDragSession_fn).call(this, event); - } - moveInDOM() { - var _a; - (_a = this.parent) == null ? void 0 : _a.moveEditorInDOM(this); - } - _setParentAndPosition(parent, x2, y2) { - parent.changeParent(this); - this.x = x2; - this.y = y2; - this.fixAndSetPosition(); - } - getRect(tx, ty) { - const scale = this.parentScale; - const [pageWidth, pageHeight] = this.pageDimensions; - const [pageX, pageY] = this.pageTranslation; - const shiftX = tx / scale; - const shiftY = ty / scale; - const x2 = this.x * pageWidth; - const y2 = this.y * pageHeight; - const width = this.width * pageWidth; - const height = this.height * pageHeight; - switch (this.rotation) { - case 0: - return [x2 + shiftX + pageX, pageHeight - y2 - shiftY - height + pageY, x2 + shiftX + width + pageX, pageHeight - y2 - shiftY + pageY]; - case 90: - return [x2 + shiftY + pageX, pageHeight - y2 + shiftX + pageY, x2 + shiftY + height + pageX, pageHeight - y2 + shiftX + width + pageY]; - case 180: - return [x2 - shiftX - width + pageX, pageHeight - y2 + shiftY + pageY, x2 - shiftX + pageX, pageHeight - y2 + shiftY + height + pageY]; - case 270: - return [x2 - shiftY - height + pageX, pageHeight - y2 - shiftX - width + pageY, x2 - shiftY + pageX, pageHeight - y2 - shiftX + pageY]; - default: - throw new Error("Invalid rotation"); - } - } - getRectInCurrentCoords(rect, pageHeight) { - const [x1, y1, x2, y2] = rect; - const width = x2 - x1; - const height = y2 - y1; - switch (this.rotation) { - case 0: - return [x1, pageHeight - y2, width, height]; - case 90: - return [x1, pageHeight - y1, height, width]; - case 180: - return [x2, pageHeight - y1, width, height]; - case 270: - return [x2, pageHeight - y2, height, width]; - default: - throw new Error("Invalid rotation"); - } - } - onceAdded() { - } - isEmpty() { - return false; - } - enableEditMode() { - __privateSet(this, _isInEditMode, true); - } - disableEditMode() { - __privateSet(this, _isInEditMode, false); - } - isInEditMode() { - return __privateGet(this, _isInEditMode); - } - shouldGetKeyboardEvents() { - return false; - } - needsToBeRebuilt() { - return this.div && !this.isAttachedToDOM; - } - rebuild() { - var _a, _b; - (_a = this.div) == null ? void 0 : _a.addEventListener("focusin", __privateGet(this, _boundFocusin)); - (_b = this.div) == null ? void 0 : _b.addEventListener("focusout", __privateGet(this, _boundFocusout)); - } - serialize(isForCopying = false, context = null) { - (0, _util2.unreachable)("An editor must be serializable"); - } - static deserialize(data, parent, uiManager) { - const editor = new this.prototype.constructor({ - parent, - id: parent.getNextId(), - uiManager - }); - editor.rotation = data.rotation; - const [pageWidth, pageHeight] = editor.pageDimensions; - const [x2, y2, width, height] = editor.getRectInCurrentCoords(data.rect, pageHeight); - editor.x = x2 / pageWidth; - editor.y = y2 / pageHeight; - editor.width = width / pageWidth; - editor.height = height / pageHeight; - return editor; - } - remove() { - var _a; - this.div.removeEventListener("focusin", __privateGet(this, _boundFocusin)); - this.div.removeEventListener("focusout", __privateGet(this, _boundFocusout)); - if (!this.isEmpty()) { - this.commit(); - } - if (this.parent) { - this.parent.remove(this); - } else { - this._uiManager.removeEditor(this); - } - (_a = __privateGet(this, _altTextButton)) == null ? void 0 : _a.remove(); - __privateSet(this, _altTextButton, null); - __privateSet(this, _altTextTooltip, null); - } - get isResizable() { - return false; - } - makeResizable() { - if (this.isResizable) { - __privateMethod(this, _createResizers, createResizers_fn).call(this); - __privateGet(this, _resizersDiv).classList.remove("hidden"); - } - } - select() { - var _a; - this.makeResizable(); - (_a = this.div) == null ? void 0 : _a.classList.add("selectedEditor"); - } - unselect() { - var _a, _b, _c; - (_a = __privateGet(this, _resizersDiv)) == null ? void 0 : _a.classList.add("hidden"); - (_b = this.div) == null ? void 0 : _b.classList.remove("selectedEditor"); - if ((_c = this.div) == null ? void 0 : _c.contains(document.activeElement)) { - this._uiManager.currentLayer.div.focus(); - } - } - updateParams(type, value) { - } - disableEditing() { - if (__privateGet(this, _altTextButton)) { - __privateGet(this, _altTextButton).hidden = true; - } - } - enableEditing() { - if (__privateGet(this, _altTextButton)) { - __privateGet(this, _altTextButton).hidden = false; - } - } - enterInEditMode() { - } - get contentDiv() { - return this.div; - } - get isEditing() { - return __privateGet(this, _isEditing); - } - set isEditing(value) { - __privateSet(this, _isEditing, value); - if (!this.parent) { - return; - } - if (value) { - this.parent.setSelected(this); - this.parent.setActiveEditor(this); - } else { - this.parent.setActiveEditor(null); - } - } - setAspectRatio(width, height) { - __privateSet(this, _keepAspectRatio, true); - const aspectRatio = width / height; - const { - style - } = this.div; - style.aspectRatio = aspectRatio; - style.height = "auto"; - } - static get MIN_SIZE() { - return 16; - } - }; - let AnnotationEditor = _AnnotationEditor; - _altText = new WeakMap(); - _altTextDecorative = new WeakMap(); - _altTextButton = new WeakMap(); - _altTextTooltip = new WeakMap(); - _altTextTooltipTimeout = new WeakMap(); - _keepAspectRatio = new WeakMap(); - _resizersDiv = new WeakMap(); - _boundFocusin = new WeakMap(); - _boundFocusout = new WeakMap(); - _hasBeenClicked = new WeakMap(); - _isEditing = new WeakMap(); - _isInEditMode = new WeakMap(); - _isDraggable = new WeakMap(); - _zIndex = new WeakMap(); - _translate = new WeakSet(); - translate_fn = function([width, height], x2, y2) { - [x2, y2] = this.screenToPageTranslation(x2, y2); - this.x += x2 / width; - this.y += y2 / height; - this.fixAndSetPosition(); - }; - _getBaseTranslation = new WeakSet(); - getBaseTranslation_fn = function() { - const [parentWidth, parentHeight] = this.parentDimensions; - const { - _borderLineWidth - } = _AnnotationEditor; - const x2 = _borderLineWidth / parentWidth; - const y2 = _borderLineWidth / parentHeight; - switch (this.rotation) { - case 90: - return [-x2, y2]; - case 180: - return [x2, y2]; - case 270: - return [x2, -y2]; - default: - return [-x2, -y2]; - } - }; - _rotatePoint = new WeakSet(); - rotatePoint_fn = function(x2, y2, angle) { - switch (angle) { - case 90: - return [y2, -x2]; - case 180: - return [-x2, -y2]; - case 270: - return [-y2, x2]; - default: - return [x2, y2]; - } - }; - _getRotationMatrix = new WeakSet(); - getRotationMatrix_fn = function(rotation) { - switch (rotation) { - case 90: { - const [pageWidth, pageHeight] = this.pageDimensions; - return [0, -pageWidth / pageHeight, pageHeight / pageWidth, 0]; - } - case 180: - return [-1, 0, 0, -1]; - case 270: { - const [pageWidth, pageHeight] = this.pageDimensions; - return [0, pageWidth / pageHeight, -pageHeight / pageWidth, 0]; - } - default: - return [1, 0, 0, 1]; - } - }; - _createResizers = new WeakSet(); - createResizers_fn = function() { - if (__privateGet(this, _resizersDiv)) { - return; - } - __privateSet(this, _resizersDiv, document.createElement("div")); - __privateGet(this, _resizersDiv).classList.add("resizers"); - const classes = ["topLeft", "topRight", "bottomRight", "bottomLeft"]; - if (!this._willKeepAspectRatio) { - classes.push("topMiddle", "middleRight", "bottomMiddle", "middleLeft"); - } - for (const name of classes) { - const div = document.createElement("div"); - __privateGet(this, _resizersDiv).append(div); - div.classList.add("resizer", name); - div.addEventListener("pointerdown", __privateMethod(this, _resizerPointerdown, resizerPointerdown_fn).bind(this, name)); - div.addEventListener("contextmenu", _display_utils2.noContextMenu); - } - this.div.prepend(__privateGet(this, _resizersDiv)); - }; - _resizerPointerdown = new WeakSet(); - resizerPointerdown_fn = function(name, event) { - event.preventDefault(); - const { - isMac - } = _util2.FeatureTest.platform; - if (event.button !== 0 || event.ctrlKey && isMac) { - return; - } - const boundResizerPointermove = __privateMethod(this, _resizerPointermove, resizerPointermove_fn).bind(this, name); - const savedDraggable = this._isDraggable; - this._isDraggable = false; - const pointerMoveOptions = { - passive: true, - capture: true - }; - window.addEventListener("pointermove", boundResizerPointermove, pointerMoveOptions); - const savedX = this.x; - const savedY = this.y; - const savedWidth = this.width; - const savedHeight = this.height; - const savedParentCursor = this.parent.div.style.cursor; - const savedCursor = this.div.style.cursor; - this.div.style.cursor = this.parent.div.style.cursor = window.getComputedStyle(event.target).cursor; - const pointerUpCallback = () => { - this._isDraggable = savedDraggable; - window.removeEventListener("pointerup", pointerUpCallback); - window.removeEventListener("blur", pointerUpCallback); - window.removeEventListener("pointermove", boundResizerPointermove, pointerMoveOptions); - this.parent.div.style.cursor = savedParentCursor; - this.div.style.cursor = savedCursor; - const newX = this.x; - const newY = this.y; - const newWidth = this.width; - const newHeight = this.height; - if (newX === savedX && newY === savedY && newWidth === savedWidth && newHeight === savedHeight) { - return; - } - this.addCommands({ - cmd: () => { - this.width = newWidth; - this.height = newHeight; - this.x = newX; - this.y = newY; - const [parentWidth, parentHeight] = this.parentDimensions; - this.setDims(parentWidth * newWidth, parentHeight * newHeight); - this.fixAndSetPosition(); - }, - undo: () => { - this.width = savedWidth; - this.height = savedHeight; - this.x = savedX; - this.y = savedY; - const [parentWidth, parentHeight] = this.parentDimensions; - this.setDims(parentWidth * savedWidth, parentHeight * savedHeight); - this.fixAndSetPosition(); - }, - mustExec: true - }); - }; - window.addEventListener("pointerup", pointerUpCallback); - window.addEventListener("blur", pointerUpCallback); - }; - _resizerPointermove = new WeakSet(); - resizerPointermove_fn = function(name, event) { - const [parentWidth, parentHeight] = this.parentDimensions; - const savedX = this.x; - const savedY = this.y; - const savedWidth = this.width; - const savedHeight = this.height; - const minWidth = _AnnotationEditor.MIN_SIZE / parentWidth; - const minHeight = _AnnotationEditor.MIN_SIZE / parentHeight; - const round = (x2) => Math.round(x2 * 1e4) / 1e4; - const rotationMatrix = __privateMethod(this, _getRotationMatrix, getRotationMatrix_fn).call(this, this.rotation); - const transf = (x2, y2) => [rotationMatrix[0] * x2 + rotationMatrix[2] * y2, rotationMatrix[1] * x2 + rotationMatrix[3] * y2]; - const invRotationMatrix = __privateMethod(this, _getRotationMatrix, getRotationMatrix_fn).call(this, 360 - this.rotation); - const invTransf = (x2, y2) => [invRotationMatrix[0] * x2 + invRotationMatrix[2] * y2, invRotationMatrix[1] * x2 + invRotationMatrix[3] * y2]; - let getPoint; - let getOpposite; - let isDiagonal = false; - let isHorizontal = false; - switch (name) { - case "topLeft": - isDiagonal = true; - getPoint = (w2, h2) => [0, 0]; - getOpposite = (w2, h2) => [w2, h2]; - break; - case "topMiddle": - getPoint = (w2, h2) => [w2 / 2, 0]; - getOpposite = (w2, h2) => [w2 / 2, h2]; - break; - case "topRight": - isDiagonal = true; - getPoint = (w2, h2) => [w2, 0]; - getOpposite = (w2, h2) => [0, h2]; - break; - case "middleRight": - isHorizontal = true; - getPoint = (w2, h2) => [w2, h2 / 2]; - getOpposite = (w2, h2) => [0, h2 / 2]; - break; - case "bottomRight": - isDiagonal = true; - getPoint = (w2, h2) => [w2, h2]; - getOpposite = (w2, h2) => [0, 0]; - break; - case "bottomMiddle": - getPoint = (w2, h2) => [w2 / 2, h2]; - getOpposite = (w2, h2) => [w2 / 2, 0]; - break; - case "bottomLeft": - isDiagonal = true; - getPoint = (w2, h2) => [0, h2]; - getOpposite = (w2, h2) => [w2, 0]; - break; - case "middleLeft": - isHorizontal = true; - getPoint = (w2, h2) => [0, h2 / 2]; - getOpposite = (w2, h2) => [w2, h2 / 2]; - break; - } - const point = getPoint(savedWidth, savedHeight); - const oppositePoint = getOpposite(savedWidth, savedHeight); - let transfOppositePoint = transf(...oppositePoint); - const oppositeX = round(savedX + transfOppositePoint[0]); - const oppositeY = round(savedY + transfOppositePoint[1]); - let ratioX = 1; - let ratioY = 1; - let [deltaX, deltaY] = this.screenToPageTranslation(event.movementX, event.movementY); - [deltaX, deltaY] = invTransf(deltaX / parentWidth, deltaY / parentHeight); - if (isDiagonal) { - const oldDiag = Math.hypot(savedWidth, savedHeight); - ratioX = ratioY = Math.max(Math.min(Math.hypot(oppositePoint[0] - point[0] - deltaX, oppositePoint[1] - point[1] - deltaY) / oldDiag, 1 / savedWidth, 1 / savedHeight), minWidth / savedWidth, minHeight / savedHeight); - } else if (isHorizontal) { - ratioX = Math.max(minWidth, Math.min(1, Math.abs(oppositePoint[0] - point[0] - deltaX))) / savedWidth; - } else { - ratioY = Math.max(minHeight, Math.min(1, Math.abs(oppositePoint[1] - point[1] - deltaY))) / savedHeight; - } - const newWidth = round(savedWidth * ratioX); - const newHeight = round(savedHeight * ratioY); - transfOppositePoint = transf(...getOpposite(newWidth, newHeight)); - const newX = oppositeX - transfOppositePoint[0]; - const newY = oppositeY - transfOppositePoint[1]; - this.width = newWidth; - this.height = newHeight; - this.x = newX; - this.y = newY; - this.setDims(parentWidth * newWidth, parentHeight * newHeight); - this.fixAndSetPosition(); - }; - _setAltTextButtonState = new WeakSet(); - setAltTextButtonState_fn = async function() { - var _a; - const button = __privateGet(this, _altTextButton); - if (!button) { - return; - } - if (!__privateGet(this, _altText) && !__privateGet(this, _altTextDecorative)) { - button.classList.remove("done"); - (_a = __privateGet(this, _altTextTooltip)) == null ? void 0 : _a.remove(); - return; - } - _AnnotationEditor._l10nPromise.get("editor_alt_text_edit_button_label").then((msg) => { - button.setAttribute("aria-label", msg); - }); - let tooltip = __privateGet(this, _altTextTooltip); - if (!tooltip) { - __privateSet(this, _altTextTooltip, tooltip = document.createElement("span")); - tooltip.className = "tooltip"; - tooltip.setAttribute("role", "tooltip"); - const id = tooltip.id = `alt-text-tooltip-${this.id}`; - button.setAttribute("aria-describedby", id); - const DELAY_TO_SHOW_TOOLTIP = 100; - button.addEventListener("mouseenter", () => { - __privateSet(this, _altTextTooltipTimeout, setTimeout(() => { - __privateSet(this, _altTextTooltipTimeout, null); - __privateGet(this, _altTextTooltip).classList.add("show"); - this._uiManager._eventBus.dispatch("reporttelemetry", { - source: this, - details: { - type: "editing", - subtype: this.editorType, - data: { - action: "alt_text_tooltip" - } - } - }); - }, DELAY_TO_SHOW_TOOLTIP)); - }); - button.addEventListener("mouseleave", () => { - var _a2; - clearTimeout(__privateGet(this, _altTextTooltipTimeout)); - __privateSet(this, _altTextTooltipTimeout, null); - (_a2 = __privateGet(this, _altTextTooltip)) == null ? void 0 : _a2.classList.remove("show"); - }); - } - button.classList.add("done"); - tooltip.innerText = __privateGet(this, _altTextDecorative) ? await _AnnotationEditor._l10nPromise.get("editor_alt_text_decorative_tooltip") : __privateGet(this, _altText); - if (!tooltip.parentNode) { - button.append(tooltip); - } - }; - _setUpDragSession = new WeakSet(); - setUpDragSession_fn = function(event) { - if (!this._isDraggable) { - return; - } - const isSelected = this._uiManager.isSelected(this); - this._uiManager.setUpDragSession(); - let pointerMoveOptions, pointerMoveCallback; - if (isSelected) { - pointerMoveOptions = { - passive: true, - capture: true - }; - pointerMoveCallback = (e2) => { - const [tx, ty] = this.screenToPageTranslation(e2.movementX, e2.movementY); - this._uiManager.dragSelectedEditors(tx, ty); - }; - window.addEventListener("pointermove", pointerMoveCallback, pointerMoveOptions); - } - const pointerUpCallback = () => { - window.removeEventListener("pointerup", pointerUpCallback); - window.removeEventListener("blur", pointerUpCallback); - if (isSelected) { - window.removeEventListener("pointermove", pointerMoveCallback, pointerMoveOptions); - } - __privateSet(this, _hasBeenClicked, false); - if (!this._uiManager.endDragSession()) { - const { - isMac - } = _util2.FeatureTest.platform; - if (event.ctrlKey && !isMac || event.shiftKey || event.metaKey && isMac) { - this.parent.toggleSelected(this); - } else { - this.parent.setSelected(this); - } - } - }; - window.addEventListener("pointerup", pointerUpCallback); - window.addEventListener("blur", pointerUpCallback); - }; - __privateAdd(AnnotationEditor, _rotatePoint); - __publicField(AnnotationEditor, "_borderLineWidth", -1); - __publicField(AnnotationEditor, "_colorManager", new _tools.ColorManager()); - __publicField(AnnotationEditor, "_zIndex", 1); - __publicField(AnnotationEditor, "SMALL_EDITOR_SIZE", 0); - exports2.AnnotationEditor = AnnotationEditor; - class FakeEditor extends AnnotationEditor { - constructor(params) { - super(params); - this.annotationElementId = params.annotationElementId; - this.deleted = true; - } - serialize() { - return { - id: this.annotationElementId, - deleted: true, - pageIndex: this.pageIndex - }; - } - } - }, - /* 5 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _id, _baseId, _id2, _cache, _get, get_fn, _commands, _locked, _maxSize, _position, _serialize, serialize_fn, _activeEditor, _allEditors, _allLayers, _altTextManager, _annotationStorage, _commandManager, _currentPageIndex, _deletedAnnotationsElementIds, _draggingEditors, _editorTypes, _editorsToRescale, _filterFactory, _idManager, _isEnabled, _isWaiting, _lastActiveElement, _mode, _selectedEditors, _pageColors, _boundBlur, _boundFocus, _boundCopy, _boundCut, _boundPaste, _boundKeydown, _boundOnEditingAction, _boundOnPageChanging, _boundOnScaleChanging, _boundOnRotationChanging, _previousStates, _translation, _translationTimeoutId, _container, _viewer, _addFocusManager, addFocusManager_fn, _removeFocusManager, removeFocusManager_fn, _addKeyboardManager, addKeyboardManager_fn, _removeKeyboardManager, removeKeyboardManager_fn, _addCopyPasteListeners, addCopyPasteListeners_fn, _removeCopyPasteListeners, removeCopyPasteListeners_fn, _dispatchUpdateStates, dispatchUpdateStates_fn, _dispatchUpdateUI, dispatchUpdateUI_fn, _enableAll, enableAll_fn, _disableAll, disableAll_fn, _addEditorToLayer, addEditorToLayer_fn, _isEmpty, isEmpty_fn, _selectEditors, selectEditors_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.KeyboardManager = exports2.CommandManager = exports2.ColorManager = exports2.AnnotationEditorUIManager = void 0; - exports2.bindEvents = bindEvents; - exports2.opacityToHex = opacityToHex; - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - function bindEvents(obj, element, names) { - for (const name of names) { - element.addEventListener(name, obj[name].bind(obj)); - } - } - function opacityToHex(opacity) { - return Math.round(Math.min(255, Math.max(1, 255 * opacity))).toString(16).padStart(2, "0"); - } - class IdManager { - constructor() { - __privateAdd(this, _id, 0); - } - getId() { - return `${_util2.AnnotationEditorPrefix}${__privateWrapper(this, _id)._++}`; - } - } - _id = new WeakMap(); - const _ImageManager = class { - constructor() { - __privateAdd(this, _get); - __privateAdd(this, _baseId, (0, _util2.getUuid)()); - __privateAdd(this, _id2, 0); - __privateAdd(this, _cache, null); - } - static get _isSVGFittingCanvas() { - const svg = `data:image/svg+xml;charset=UTF-8,`; - const canvas = new OffscreenCanvas(1, 3); - const ctx = canvas.getContext("2d"); - const image = new Image(); - image.src = svg; - const promise = image.decode().then(() => { - ctx.drawImage(image, 0, 0, 1, 1, 0, 0, 1, 3); - return new Uint32Array(ctx.getImageData(0, 0, 1, 1).data.buffer)[0] === 0; - }); - return (0, _util2.shadow)(this, "_isSVGFittingCanvas", promise); - } - async getFromFile(file) { - const { - lastModified, - name, - size, - type - } = file; - return __privateMethod(this, _get, get_fn).call(this, `${lastModified}_${name}_${size}_${type}`, file); - } - async getFromUrl(url) { - return __privateMethod(this, _get, get_fn).call(this, url, url); - } - async getFromId(id) { - __privateGet(this, _cache) || __privateSet(this, _cache, /* @__PURE__ */ new Map()); - const data = __privateGet(this, _cache).get(id); - if (!data) { - return null; - } - if (data.bitmap) { - data.refCounter += 1; - return data; - } - if (data.file) { - return this.getFromFile(data.file); - } - return this.getFromUrl(data.url); - } - getSvgUrl(id) { - const data = __privateGet(this, _cache).get(id); - if (!(data == null ? void 0 : data.isSvg)) { - return null; - } - return data.svgUrl; - } - deleteId(id) { - __privateGet(this, _cache) || __privateSet(this, _cache, /* @__PURE__ */ new Map()); - const data = __privateGet(this, _cache).get(id); - if (!data) { - return; - } - data.refCounter -= 1; - if (data.refCounter !== 0) { - return; - } - data.bitmap = null; - } - isValidId(id) { - return id.startsWith(`image_${__privateGet(this, _baseId)}_`); - } - }; - let ImageManager = _ImageManager; - _baseId = new WeakMap(); - _id2 = new WeakMap(); - _cache = new WeakMap(); - _get = new WeakSet(); - get_fn = async function(key, rawData) { - __privateGet(this, _cache) || __privateSet(this, _cache, /* @__PURE__ */ new Map()); - let data = __privateGet(this, _cache).get(key); - if (data === null) { - return null; - } - if (data == null ? void 0 : data.bitmap) { - data.refCounter += 1; - return data; - } - try { - data || (data = { - bitmap: null, - id: `image_${__privateGet(this, _baseId)}_${__privateWrapper(this, _id2)._++}`, - refCounter: 0, - isSvg: false - }); - let image; - if (typeof rawData === "string") { - data.url = rawData; - const response = await fetch(rawData); - if (!response.ok) { - throw new Error(response.statusText); - } - image = await response.blob(); - } else { - image = data.file = rawData; - } - if (image.type === "image/svg+xml") { - const mustRemoveAspectRatioPromise = _ImageManager._isSVGFittingCanvas; - const fileReader = new FileReader(); - const imageElement = new Image(); - const imagePromise = new Promise((resolve, reject) => { - imageElement.onload = () => { - data.bitmap = imageElement; - data.isSvg = true; - resolve(); - }; - fileReader.onload = async () => { - const url = data.svgUrl = fileReader.result; - imageElement.src = await mustRemoveAspectRatioPromise ? `${url}#svgView(preserveAspectRatio(none))` : url; - }; - imageElement.onerror = fileReader.onerror = reject; - }); - fileReader.readAsDataURL(image); - await imagePromise; - } else { - data.bitmap = await createImageBitmap(image); - } - data.refCounter = 1; - } catch (e2) { - console.error(e2); - data = null; - } - __privateGet(this, _cache).set(key, data); - if (data) { - __privateGet(this, _cache).set(data.id, data); - } - return data; - }; - class CommandManager { - constructor(maxSize = 128) { - __privateAdd(this, _commands, []); - __privateAdd(this, _locked, false); - __privateAdd(this, _maxSize, void 0); - __privateAdd(this, _position, -1); - __privateSet(this, _maxSize, maxSize); - } - add({ - cmd, - undo, - mustExec, - type = NaN, - overwriteIfSameType = false, - keepUndo = false - }) { - if (mustExec) { - cmd(); - } - if (__privateGet(this, _locked)) { - return; - } - const save = { - cmd, - undo, - type - }; - if (__privateGet(this, _position) === -1) { - if (__privateGet(this, _commands).length > 0) { - __privateGet(this, _commands).length = 0; - } - __privateSet(this, _position, 0); - __privateGet(this, _commands).push(save); - return; - } - if (overwriteIfSameType && __privateGet(this, _commands)[__privateGet(this, _position)].type === type) { - if (keepUndo) { - save.undo = __privateGet(this, _commands)[__privateGet(this, _position)].undo; - } - __privateGet(this, _commands)[__privateGet(this, _position)] = save; - return; - } - const next = __privateGet(this, _position) + 1; - if (next === __privateGet(this, _maxSize)) { - __privateGet(this, _commands).splice(0, 1); - } else { - __privateSet(this, _position, next); - if (next < __privateGet(this, _commands).length) { - __privateGet(this, _commands).splice(next); - } - } - __privateGet(this, _commands).push(save); - } - undo() { - if (__privateGet(this, _position) === -1) { - return; - } - __privateSet(this, _locked, true); - __privateGet(this, _commands)[__privateGet(this, _position)].undo(); - __privateSet(this, _locked, false); - __privateSet(this, _position, __privateGet(this, _position) - 1); - } - redo() { - if (__privateGet(this, _position) < __privateGet(this, _commands).length - 1) { - __privateSet(this, _position, __privateGet(this, _position) + 1); - __privateSet(this, _locked, true); - __privateGet(this, _commands)[__privateGet(this, _position)].cmd(); - __privateSet(this, _locked, false); - } - } - hasSomethingToUndo() { - return __privateGet(this, _position) !== -1; - } - hasSomethingToRedo() { - return __privateGet(this, _position) < __privateGet(this, _commands).length - 1; - } - destroy() { - __privateSet(this, _commands, null); - } - } - _commands = new WeakMap(); - _locked = new WeakMap(); - _maxSize = new WeakMap(); - _position = new WeakMap(); - exports2.CommandManager = CommandManager; - class KeyboardManager { - constructor(callbacks) { - __privateAdd(this, _serialize); - this.buffer = []; - this.callbacks = /* @__PURE__ */ new Map(); - this.allKeys = /* @__PURE__ */ new Set(); - const { - isMac - } = _util2.FeatureTest.platform; - for (const [keys, callback, options = {}] of callbacks) { - for (const key of keys) { - const isMacKey = key.startsWith("mac+"); - if (isMac && isMacKey) { - this.callbacks.set(key.slice(4), { - callback, - options - }); - this.allKeys.add(key.split("+").at(-1)); - } else if (!isMac && !isMacKey) { - this.callbacks.set(key, { - callback, - options - }); - this.allKeys.add(key.split("+").at(-1)); - } - } - } - } - exec(self2, event) { - if (!this.allKeys.has(event.key)) { - return; - } - const info = this.callbacks.get(__privateMethod(this, _serialize, serialize_fn).call(this, event)); - if (!info) { - return; - } - const { - callback, - options: { - bubbles = false, - args = [], - checker = null - } - } = info; - if (checker && !checker(self2, event)) { - return; - } - callback.bind(self2, ...args)(); - if (!bubbles) { - event.stopPropagation(); - event.preventDefault(); - } - } - } - _serialize = new WeakSet(); - serialize_fn = function(event) { - if (event.altKey) { - this.buffer.push("alt"); - } - if (event.ctrlKey) { - this.buffer.push("ctrl"); - } - if (event.metaKey) { - this.buffer.push("meta"); - } - if (event.shiftKey) { - this.buffer.push("shift"); - } - this.buffer.push(event.key); - const str = this.buffer.join("+"); - this.buffer.length = 0; - return str; - }; - exports2.KeyboardManager = KeyboardManager; - const _ColorManager = class { - get _colors() { - const colors = /* @__PURE__ */ new Map([["CanvasText", null], ["Canvas", null]]); - (0, _display_utils2.getColorValues)(colors); - return (0, _util2.shadow)(this, "_colors", colors); - } - convert(color) { - const rgb = (0, _display_utils2.getRGB)(color); - if (!window.matchMedia("(forced-colors: active)").matches) { - return rgb; - } - for (const [name, RGB] of this._colors) { - if (RGB.every((x2, i2) => x2 === rgb[i2])) { - return _ColorManager._colorsMapping.get(name); - } - } - return rgb; - } - getHexCode(name) { - const rgb = this._colors.get(name); - if (!rgb) { - return name; - } - return _util2.Util.makeHexColor(...rgb); - } - }; - let ColorManager = _ColorManager; - __publicField(ColorManager, "_colorsMapping", /* @__PURE__ */ new Map([["CanvasText", [0, 0, 0]], ["Canvas", [255, 255, 255]]])); - exports2.ColorManager = ColorManager; - const _AnnotationEditorUIManager = class { - constructor(container, viewer, altTextManager, eventBus, pdfDocument, pageColors) { - __privateAdd(this, _addFocusManager); - __privateAdd(this, _removeFocusManager); - __privateAdd(this, _addKeyboardManager); - __privateAdd(this, _removeKeyboardManager); - __privateAdd(this, _addCopyPasteListeners); - __privateAdd(this, _removeCopyPasteListeners); - __privateAdd(this, _dispatchUpdateStates); - __privateAdd(this, _dispatchUpdateUI); - __privateAdd(this, _enableAll); - __privateAdd(this, _disableAll); - __privateAdd(this, _addEditorToLayer); - __privateAdd(this, _isEmpty); - __privateAdd(this, _selectEditors); - __privateAdd(this, _activeEditor, null); - __privateAdd(this, _allEditors, /* @__PURE__ */ new Map()); - __privateAdd(this, _allLayers, /* @__PURE__ */ new Map()); - __privateAdd(this, _altTextManager, null); - __privateAdd(this, _annotationStorage, null); - __privateAdd(this, _commandManager, new CommandManager()); - __privateAdd(this, _currentPageIndex, 0); - __privateAdd(this, _deletedAnnotationsElementIds, /* @__PURE__ */ new Set()); - __privateAdd(this, _draggingEditors, null); - __privateAdd(this, _editorTypes, null); - __privateAdd(this, _editorsToRescale, /* @__PURE__ */ new Set()); - __privateAdd(this, _filterFactory, null); - __privateAdd(this, _idManager, new IdManager()); - __privateAdd(this, _isEnabled, false); - __privateAdd(this, _isWaiting, false); - __privateAdd(this, _lastActiveElement, null); - __privateAdd(this, _mode, _util2.AnnotationEditorType.NONE); - __privateAdd(this, _selectedEditors, /* @__PURE__ */ new Set()); - __privateAdd(this, _pageColors, null); - __privateAdd(this, _boundBlur, this.blur.bind(this)); - __privateAdd(this, _boundFocus, this.focus.bind(this)); - __privateAdd(this, _boundCopy, this.copy.bind(this)); - __privateAdd(this, _boundCut, this.cut.bind(this)); - __privateAdd(this, _boundPaste, this.paste.bind(this)); - __privateAdd(this, _boundKeydown, this.keydown.bind(this)); - __privateAdd(this, _boundOnEditingAction, this.onEditingAction.bind(this)); - __privateAdd(this, _boundOnPageChanging, this.onPageChanging.bind(this)); - __privateAdd(this, _boundOnScaleChanging, this.onScaleChanging.bind(this)); - __privateAdd(this, _boundOnRotationChanging, this.onRotationChanging.bind(this)); - __privateAdd(this, _previousStates, { - isEditing: false, - isEmpty: true, - hasSomethingToUndo: false, - hasSomethingToRedo: false, - hasSelectedEditor: false - }); - __privateAdd(this, _translation, [0, 0]); - __privateAdd(this, _translationTimeoutId, null); - __privateAdd(this, _container, null); - __privateAdd(this, _viewer, null); - __privateSet(this, _container, container); - __privateSet(this, _viewer, viewer); - __privateSet(this, _altTextManager, altTextManager); - this._eventBus = eventBus; - this._eventBus._on("editingaction", __privateGet(this, _boundOnEditingAction)); - this._eventBus._on("pagechanging", __privateGet(this, _boundOnPageChanging)); - this._eventBus._on("scalechanging", __privateGet(this, _boundOnScaleChanging)); - this._eventBus._on("rotationchanging", __privateGet(this, _boundOnRotationChanging)); - __privateSet(this, _annotationStorage, pdfDocument.annotationStorage); - __privateSet(this, _filterFactory, pdfDocument.filterFactory); - __privateSet(this, _pageColors, pageColors); - this.viewParameters = { - realScale: _display_utils2.PixelsPerInch.PDF_TO_CSS_UNITS, - rotation: 0 - }; - } - static get _keyboardManager() { - const proto = _AnnotationEditorUIManager.prototype; - const arrowChecker = (self2) => { - const { - activeElement - } = document; - return activeElement && __privateGet(self2, _container).contains(activeElement) && self2.hasSomethingToControl(); - }; - const small = this.TRANSLATE_SMALL; - const big = this.TRANSLATE_BIG; - return (0, _util2.shadow)(this, "_keyboardManager", new KeyboardManager([[["ctrl+a", "mac+meta+a"], proto.selectAll], [["ctrl+z", "mac+meta+z"], proto.undo], [["ctrl+y", "ctrl+shift+z", "mac+meta+shift+z", "ctrl+shift+Z", "mac+meta+shift+Z"], proto.redo], [["Backspace", "alt+Backspace", "ctrl+Backspace", "shift+Backspace", "mac+Backspace", "mac+alt+Backspace", "mac+ctrl+Backspace", "Delete", "ctrl+Delete", "shift+Delete", "mac+Delete"], proto.delete], [["Escape", "mac+Escape"], proto.unselectAll], [["ArrowLeft", "mac+ArrowLeft"], proto.translateSelectedEditors, { - args: [-small, 0], - checker: arrowChecker - }], [["ctrl+ArrowLeft", "mac+shift+ArrowLeft"], proto.translateSelectedEditors, { - args: [-big, 0], - checker: arrowChecker - }], [["ArrowRight", "mac+ArrowRight"], proto.translateSelectedEditors, { - args: [small, 0], - checker: arrowChecker - }], [["ctrl+ArrowRight", "mac+shift+ArrowRight"], proto.translateSelectedEditors, { - args: [big, 0], - checker: arrowChecker - }], [["ArrowUp", "mac+ArrowUp"], proto.translateSelectedEditors, { - args: [0, -small], - checker: arrowChecker - }], [["ctrl+ArrowUp", "mac+shift+ArrowUp"], proto.translateSelectedEditors, { - args: [0, -big], - checker: arrowChecker - }], [["ArrowDown", "mac+ArrowDown"], proto.translateSelectedEditors, { - args: [0, small], - checker: arrowChecker - }], [["ctrl+ArrowDown", "mac+shift+ArrowDown"], proto.translateSelectedEditors, { - args: [0, big], - checker: arrowChecker - }]])); - } - destroy() { - __privateMethod(this, _removeKeyboardManager, removeKeyboardManager_fn).call(this); - __privateMethod(this, _removeFocusManager, removeFocusManager_fn).call(this); - this._eventBus._off("editingaction", __privateGet(this, _boundOnEditingAction)); - this._eventBus._off("pagechanging", __privateGet(this, _boundOnPageChanging)); - this._eventBus._off("scalechanging", __privateGet(this, _boundOnScaleChanging)); - this._eventBus._off("rotationchanging", __privateGet(this, _boundOnRotationChanging)); - for (const layer of __privateGet(this, _allLayers).values()) { - layer.destroy(); - } - __privateGet(this, _allLayers).clear(); - __privateGet(this, _allEditors).clear(); - __privateGet(this, _editorsToRescale).clear(); - __privateSet(this, _activeEditor, null); - __privateGet(this, _selectedEditors).clear(); - __privateGet(this, _commandManager).destroy(); - __privateGet(this, _altTextManager).destroy(); - } - get hcmFilter() { - return (0, _util2.shadow)(this, "hcmFilter", __privateGet(this, _pageColors) ? __privateGet(this, _filterFactory).addHCMFilter(__privateGet(this, _pageColors).foreground, __privateGet(this, _pageColors).background) : "none"); - } - get direction() { - return (0, _util2.shadow)(this, "direction", getComputedStyle(__privateGet(this, _container)).direction); - } - editAltText(editor) { - var _a; - (_a = __privateGet(this, _altTextManager)) == null ? void 0 : _a.editAltText(this, editor); - } - onPageChanging({ - pageNumber - }) { - __privateSet(this, _currentPageIndex, pageNumber - 1); - } - focusMainContainer() { - __privateGet(this, _container).focus(); - } - findParent(x2, y2) { - for (const layer of __privateGet(this, _allLayers).values()) { - const { - x: layerX, - y: layerY, - width, - height - } = layer.div.getBoundingClientRect(); - if (x2 >= layerX && x2 <= layerX + width && y2 >= layerY && y2 <= layerY + height) { - return layer; - } - } - return null; - } - disableUserSelect(value = false) { - __privateGet(this, _viewer).classList.toggle("noUserSelect", value); - } - addShouldRescale(editor) { - __privateGet(this, _editorsToRescale).add(editor); - } - removeShouldRescale(editor) { - __privateGet(this, _editorsToRescale).delete(editor); - } - onScaleChanging({ - scale - }) { - this.commitOrRemove(); - this.viewParameters.realScale = scale * _display_utils2.PixelsPerInch.PDF_TO_CSS_UNITS; - for (const editor of __privateGet(this, _editorsToRescale)) { - editor.onScaleChanging(); - } - } - onRotationChanging({ - pagesRotation - }) { - this.commitOrRemove(); - this.viewParameters.rotation = pagesRotation; - } - addToAnnotationStorage(editor) { - if (!editor.isEmpty() && __privateGet(this, _annotationStorage) && !__privateGet(this, _annotationStorage).has(editor.id)) { - __privateGet(this, _annotationStorage).setValue(editor.id, editor); - } - } - blur() { - if (!this.hasSelection) { - return; - } - const { - activeElement - } = document; - for (const editor of __privateGet(this, _selectedEditors)) { - if (editor.div.contains(activeElement)) { - __privateSet(this, _lastActiveElement, [editor, activeElement]); - editor._focusEventsAllowed = false; - break; - } - } - } - focus() { - if (!__privateGet(this, _lastActiveElement)) { - return; - } - const [lastEditor, lastActiveElement] = __privateGet(this, _lastActiveElement); - __privateSet(this, _lastActiveElement, null); - lastActiveElement.addEventListener("focusin", () => { - lastEditor._focusEventsAllowed = true; - }, { - once: true - }); - lastActiveElement.focus(); - } - addEditListeners() { - __privateMethod(this, _addKeyboardManager, addKeyboardManager_fn).call(this); - __privateMethod(this, _addCopyPasteListeners, addCopyPasteListeners_fn).call(this); - } - removeEditListeners() { - __privateMethod(this, _removeKeyboardManager, removeKeyboardManager_fn).call(this); - __privateMethod(this, _removeCopyPasteListeners, removeCopyPasteListeners_fn).call(this); - } - copy(event) { - var _a; - event.preventDefault(); - (_a = __privateGet(this, _activeEditor)) == null ? void 0 : _a.commitOrRemove(); - if (!this.hasSelection) { - return; - } - const editors = []; - for (const editor of __privateGet(this, _selectedEditors)) { - const serialized = editor.serialize(true); - if (serialized) { - editors.push(serialized); - } - } - if (editors.length === 0) { - return; - } - event.clipboardData.setData("application/pdfjs", JSON.stringify(editors)); - } - cut(event) { - this.copy(event); - this.delete(); - } - paste(event) { - event.preventDefault(); - const { - clipboardData - } = event; - for (const item of clipboardData.items) { - for (const editorType of __privateGet(this, _editorTypes)) { - if (editorType.isHandlingMimeForPasting(item.type)) { - editorType.paste(item, this.currentLayer); - return; - } - } - } - let data = clipboardData.getData("application/pdfjs"); - if (!data) { - return; - } - try { - data = JSON.parse(data); - } catch (ex) { - (0, _util2.warn)(`paste: "${ex.message}".`); - return; - } - if (!Array.isArray(data)) { - return; - } - this.unselectAll(); - const layer = this.currentLayer; - try { - const newEditors = []; - for (const editor of data) { - const deserializedEditor = layer.deserialize(editor); - if (!deserializedEditor) { - return; - } - newEditors.push(deserializedEditor); - } - const cmd = () => { - for (const editor of newEditors) { - __privateMethod(this, _addEditorToLayer, addEditorToLayer_fn).call(this, editor); - } - __privateMethod(this, _selectEditors, selectEditors_fn).call(this, newEditors); - }; - const undo = () => { - for (const editor of newEditors) { - editor.remove(); - } - }; - this.addCommands({ - cmd, - undo, - mustExec: true - }); - } catch (ex) { - (0, _util2.warn)(`paste: "${ex.message}".`); - } - } - keydown(event) { - var _a; - if (!((_a = this.getActive()) == null ? void 0 : _a.shouldGetKeyboardEvents())) { - _AnnotationEditorUIManager._keyboardManager.exec(this, event); - } - } - onEditingAction(details) { - if (["undo", "redo", "delete", "selectAll"].includes(details.name)) { - this[details.name](); - } - } - setEditingState(isEditing) { - if (isEditing) { - __privateMethod(this, _addFocusManager, addFocusManager_fn).call(this); - __privateMethod(this, _addKeyboardManager, addKeyboardManager_fn).call(this); - __privateMethod(this, _addCopyPasteListeners, addCopyPasteListeners_fn).call(this); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - isEditing: __privateGet(this, _mode) !== _util2.AnnotationEditorType.NONE, - isEmpty: __privateMethod(this, _isEmpty, isEmpty_fn).call(this), - hasSomethingToUndo: __privateGet(this, _commandManager).hasSomethingToUndo(), - hasSomethingToRedo: __privateGet(this, _commandManager).hasSomethingToRedo(), - hasSelectedEditor: false - }); - } else { - __privateMethod(this, _removeFocusManager, removeFocusManager_fn).call(this); - __privateMethod(this, _removeKeyboardManager, removeKeyboardManager_fn).call(this); - __privateMethod(this, _removeCopyPasteListeners, removeCopyPasteListeners_fn).call(this); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - isEditing: false - }); - this.disableUserSelect(false); - } - } - registerEditorTypes(types) { - if (__privateGet(this, _editorTypes)) { - return; - } - __privateSet(this, _editorTypes, types); - for (const editorType of __privateGet(this, _editorTypes)) { - __privateMethod(this, _dispatchUpdateUI, dispatchUpdateUI_fn).call(this, editorType.defaultPropertiesToUpdate); - } - } - getId() { - return __privateGet(this, _idManager).getId(); - } - get currentLayer() { - return __privateGet(this, _allLayers).get(__privateGet(this, _currentPageIndex)); - } - getLayer(pageIndex) { - return __privateGet(this, _allLayers).get(pageIndex); - } - get currentPageIndex() { - return __privateGet(this, _currentPageIndex); - } - addLayer(layer) { - __privateGet(this, _allLayers).set(layer.pageIndex, layer); - if (__privateGet(this, _isEnabled)) { - layer.enable(); - } else { - layer.disable(); - } - } - removeLayer(layer) { - __privateGet(this, _allLayers).delete(layer.pageIndex); - } - updateMode(mode, editId = null) { - if (__privateGet(this, _mode) === mode) { - return; - } - __privateSet(this, _mode, mode); - if (mode === _util2.AnnotationEditorType.NONE) { - this.setEditingState(false); - __privateMethod(this, _disableAll, disableAll_fn).call(this); - return; - } - this.setEditingState(true); - __privateMethod(this, _enableAll, enableAll_fn).call(this); - this.unselectAll(); - for (const layer of __privateGet(this, _allLayers).values()) { - layer.updateMode(mode); - } - if (!editId) { - return; - } - for (const editor of __privateGet(this, _allEditors).values()) { - if (editor.annotationElementId === editId) { - this.setSelected(editor); - editor.enterInEditMode(); - break; - } - } - } - updateToolbar(mode) { - if (mode === __privateGet(this, _mode)) { - return; - } - this._eventBus.dispatch("switchannotationeditormode", { - source: this, - mode - }); - } - updateParams(type, value) { - if (!__privateGet(this, _editorTypes)) { - return; - } - if (type === _util2.AnnotationEditorParamsType.CREATE) { - this.currentLayer.addNewEditor(type); - return; - } - for (const editor of __privateGet(this, _selectedEditors)) { - editor.updateParams(type, value); - } - for (const editorType of __privateGet(this, _editorTypes)) { - editorType.updateDefaultParams(type, value); - } - } - enableWaiting(mustWait = false) { - if (__privateGet(this, _isWaiting) === mustWait) { - return; - } - __privateSet(this, _isWaiting, mustWait); - for (const layer of __privateGet(this, _allLayers).values()) { - if (mustWait) { - layer.disableClick(); - } else { - layer.enableClick(); - } - layer.div.classList.toggle("waiting", mustWait); - } - } - getEditors(pageIndex) { - const editors = []; - for (const editor of __privateGet(this, _allEditors).values()) { - if (editor.pageIndex === pageIndex) { - editors.push(editor); - } - } - return editors; - } - getEditor(id) { - return __privateGet(this, _allEditors).get(id); - } - addEditor(editor) { - __privateGet(this, _allEditors).set(editor.id, editor); - } - removeEditor(editor) { - var _a; - __privateGet(this, _allEditors).delete(editor.id); - this.unselect(editor); - if (!editor.annotationElementId || !__privateGet(this, _deletedAnnotationsElementIds).has(editor.annotationElementId)) { - (_a = __privateGet(this, _annotationStorage)) == null ? void 0 : _a.remove(editor.id); - } - } - addDeletedAnnotationElement(editor) { - __privateGet(this, _deletedAnnotationsElementIds).add(editor.annotationElementId); - editor.deleted = true; - } - isDeletedAnnotationElement(annotationElementId) { - return __privateGet(this, _deletedAnnotationsElementIds).has(annotationElementId); - } - removeDeletedAnnotationElement(editor) { - __privateGet(this, _deletedAnnotationsElementIds).delete(editor.annotationElementId); - editor.deleted = false; - } - setActiveEditor(editor) { - if (__privateGet(this, _activeEditor) === editor) { - return; - } - __privateSet(this, _activeEditor, editor); - if (editor) { - __privateMethod(this, _dispatchUpdateUI, dispatchUpdateUI_fn).call(this, editor.propertiesToUpdate); - } - } - toggleSelected(editor) { - if (__privateGet(this, _selectedEditors).has(editor)) { - __privateGet(this, _selectedEditors).delete(editor); - editor.unselect(); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSelectedEditor: this.hasSelection - }); - return; - } - __privateGet(this, _selectedEditors).add(editor); - editor.select(); - __privateMethod(this, _dispatchUpdateUI, dispatchUpdateUI_fn).call(this, editor.propertiesToUpdate); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSelectedEditor: true - }); - } - setSelected(editor) { - for (const ed of __privateGet(this, _selectedEditors)) { - if (ed !== editor) { - ed.unselect(); - } - } - __privateGet(this, _selectedEditors).clear(); - __privateGet(this, _selectedEditors).add(editor); - editor.select(); - __privateMethod(this, _dispatchUpdateUI, dispatchUpdateUI_fn).call(this, editor.propertiesToUpdate); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSelectedEditor: true - }); - } - isSelected(editor) { - return __privateGet(this, _selectedEditors).has(editor); - } - unselect(editor) { - editor.unselect(); - __privateGet(this, _selectedEditors).delete(editor); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSelectedEditor: this.hasSelection - }); - } - get hasSelection() { - return __privateGet(this, _selectedEditors).size !== 0; - } - undo() { - __privateGet(this, _commandManager).undo(); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSomethingToUndo: __privateGet(this, _commandManager).hasSomethingToUndo(), - hasSomethingToRedo: true, - isEmpty: __privateMethod(this, _isEmpty, isEmpty_fn).call(this) - }); - } - redo() { - __privateGet(this, _commandManager).redo(); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSomethingToUndo: true, - hasSomethingToRedo: __privateGet(this, _commandManager).hasSomethingToRedo(), - isEmpty: __privateMethod(this, _isEmpty, isEmpty_fn).call(this) - }); - } - addCommands(params) { - __privateGet(this, _commandManager).add(params); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSomethingToUndo: true, - hasSomethingToRedo: false, - isEmpty: __privateMethod(this, _isEmpty, isEmpty_fn).call(this) - }); - } - delete() { - this.commitOrRemove(); - if (!this.hasSelection) { - return; - } - const editors = [...__privateGet(this, _selectedEditors)]; - const cmd = () => { - for (const editor of editors) { - editor.remove(); - } - }; - const undo = () => { - for (const editor of editors) { - __privateMethod(this, _addEditorToLayer, addEditorToLayer_fn).call(this, editor); - } - }; - this.addCommands({ - cmd, - undo, - mustExec: true - }); - } - commitOrRemove() { - var _a; - (_a = __privateGet(this, _activeEditor)) == null ? void 0 : _a.commitOrRemove(); - } - hasSomethingToControl() { - return __privateGet(this, _activeEditor) || this.hasSelection; - } - selectAll() { - for (const editor of __privateGet(this, _selectedEditors)) { - editor.commit(); - } - __privateMethod(this, _selectEditors, selectEditors_fn).call(this, __privateGet(this, _allEditors).values()); - } - unselectAll() { - if (__privateGet(this, _activeEditor)) { - __privateGet(this, _activeEditor).commitOrRemove(); - return; - } - if (!this.hasSelection) { - return; - } - for (const editor of __privateGet(this, _selectedEditors)) { - editor.unselect(); - } - __privateGet(this, _selectedEditors).clear(); - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSelectedEditor: false - }); - } - translateSelectedEditors(x2, y2, noCommit = false) { - if (!noCommit) { - this.commitOrRemove(); - } - if (!this.hasSelection) { - return; - } - __privateGet(this, _translation)[0] += x2; - __privateGet(this, _translation)[1] += y2; - const [totalX, totalY] = __privateGet(this, _translation); - const editors = [...__privateGet(this, _selectedEditors)]; - const TIME_TO_WAIT = 1e3; - if (__privateGet(this, _translationTimeoutId)) { - clearTimeout(__privateGet(this, _translationTimeoutId)); - } - __privateSet(this, _translationTimeoutId, setTimeout(() => { - __privateSet(this, _translationTimeoutId, null); - __privateGet(this, _translation)[0] = __privateGet(this, _translation)[1] = 0; - this.addCommands({ - cmd: () => { - for (const editor of editors) { - if (__privateGet(this, _allEditors).has(editor.id)) { - editor.translateInPage(totalX, totalY); - } - } - }, - undo: () => { - for (const editor of editors) { - if (__privateGet(this, _allEditors).has(editor.id)) { - editor.translateInPage(-totalX, -totalY); - } - } - }, - mustExec: false - }); - }, TIME_TO_WAIT)); - for (const editor of editors) { - editor.translateInPage(x2, y2); - } - } - setUpDragSession() { - if (!this.hasSelection) { - return; - } - this.disableUserSelect(true); - __privateSet(this, _draggingEditors, /* @__PURE__ */ new Map()); - for (const editor of __privateGet(this, _selectedEditors)) { - __privateGet(this, _draggingEditors).set(editor, { - savedX: editor.x, - savedY: editor.y, - savedPageIndex: editor.pageIndex, - newX: 0, - newY: 0, - newPageIndex: -1 - }); - } - } - endDragSession() { - if (!__privateGet(this, _draggingEditors)) { - return false; - } - this.disableUserSelect(false); - const map = __privateGet(this, _draggingEditors); - __privateSet(this, _draggingEditors, null); - let mustBeAddedInUndoStack = false; - for (const [{ - x: x2, - y: y2, - pageIndex - }, value] of map) { - value.newX = x2; - value.newY = y2; - value.newPageIndex = pageIndex; - mustBeAddedInUndoStack || (mustBeAddedInUndoStack = x2 !== value.savedX || y2 !== value.savedY || pageIndex !== value.savedPageIndex); - } - if (!mustBeAddedInUndoStack) { - return false; - } - const move = (editor, x2, y2, pageIndex) => { - if (__privateGet(this, _allEditors).has(editor.id)) { - const parent = __privateGet(this, _allLayers).get(pageIndex); - if (parent) { - editor._setParentAndPosition(parent, x2, y2); - } else { - editor.pageIndex = pageIndex; - editor.x = x2; - editor.y = y2; - } - } - }; - this.addCommands({ - cmd: () => { - for (const [editor, { - newX, - newY, - newPageIndex - }] of map) { - move(editor, newX, newY, newPageIndex); - } - }, - undo: () => { - for (const [editor, { - savedX, - savedY, - savedPageIndex - }] of map) { - move(editor, savedX, savedY, savedPageIndex); - } - }, - mustExec: true - }); - return true; - } - dragSelectedEditors(tx, ty) { - if (!__privateGet(this, _draggingEditors)) { - return; - } - for (const editor of __privateGet(this, _draggingEditors).keys()) { - editor.drag(tx, ty); - } - } - rebuild(editor) { - if (editor.parent === null) { - const parent = this.getLayer(editor.pageIndex); - if (parent) { - parent.changeParent(editor); - parent.addOrRebuild(editor); - } else { - this.addEditor(editor); - this.addToAnnotationStorage(editor); - editor.rebuild(); - } - } else { - editor.parent.addOrRebuild(editor); - } - } - isActive(editor) { - return __privateGet(this, _activeEditor) === editor; - } - getActive() { - return __privateGet(this, _activeEditor); - } - getMode() { - return __privateGet(this, _mode); - } - get imageManager() { - return (0, _util2.shadow)(this, "imageManager", new ImageManager()); - } - }; - let AnnotationEditorUIManager = _AnnotationEditorUIManager; - _activeEditor = new WeakMap(); - _allEditors = new WeakMap(); - _allLayers = new WeakMap(); - _altTextManager = new WeakMap(); - _annotationStorage = new WeakMap(); - _commandManager = new WeakMap(); - _currentPageIndex = new WeakMap(); - _deletedAnnotationsElementIds = new WeakMap(); - _draggingEditors = new WeakMap(); - _editorTypes = new WeakMap(); - _editorsToRescale = new WeakMap(); - _filterFactory = new WeakMap(); - _idManager = new WeakMap(); - _isEnabled = new WeakMap(); - _isWaiting = new WeakMap(); - _lastActiveElement = new WeakMap(); - _mode = new WeakMap(); - _selectedEditors = new WeakMap(); - _pageColors = new WeakMap(); - _boundBlur = new WeakMap(); - _boundFocus = new WeakMap(); - _boundCopy = new WeakMap(); - _boundCut = new WeakMap(); - _boundPaste = new WeakMap(); - _boundKeydown = new WeakMap(); - _boundOnEditingAction = new WeakMap(); - _boundOnPageChanging = new WeakMap(); - _boundOnScaleChanging = new WeakMap(); - _boundOnRotationChanging = new WeakMap(); - _previousStates = new WeakMap(); - _translation = new WeakMap(); - _translationTimeoutId = new WeakMap(); - _container = new WeakMap(); - _viewer = new WeakMap(); - _addFocusManager = new WeakSet(); - addFocusManager_fn = function() { - window.addEventListener("focus", __privateGet(this, _boundFocus)); - window.addEventListener("blur", __privateGet(this, _boundBlur)); - }; - _removeFocusManager = new WeakSet(); - removeFocusManager_fn = function() { - window.removeEventListener("focus", __privateGet(this, _boundFocus)); - window.removeEventListener("blur", __privateGet(this, _boundBlur)); - }; - _addKeyboardManager = new WeakSet(); - addKeyboardManager_fn = function() { - window.addEventListener("keydown", __privateGet(this, _boundKeydown), { - capture: true - }); - }; - _removeKeyboardManager = new WeakSet(); - removeKeyboardManager_fn = function() { - window.removeEventListener("keydown", __privateGet(this, _boundKeydown), { - capture: true - }); - }; - _addCopyPasteListeners = new WeakSet(); - addCopyPasteListeners_fn = function() { - document.addEventListener("copy", __privateGet(this, _boundCopy)); - document.addEventListener("cut", __privateGet(this, _boundCut)); - document.addEventListener("paste", __privateGet(this, _boundPaste)); - }; - _removeCopyPasteListeners = new WeakSet(); - removeCopyPasteListeners_fn = function() { - document.removeEventListener("copy", __privateGet(this, _boundCopy)); - document.removeEventListener("cut", __privateGet(this, _boundCut)); - document.removeEventListener("paste", __privateGet(this, _boundPaste)); - }; - _dispatchUpdateStates = new WeakSet(); - dispatchUpdateStates_fn = function(details) { - const hasChanged = Object.entries(details).some(([key, value]) => __privateGet(this, _previousStates)[key] !== value); - if (hasChanged) { - this._eventBus.dispatch("annotationeditorstateschanged", { - source: this, - details: Object.assign(__privateGet(this, _previousStates), details) - }); - } - }; - _dispatchUpdateUI = new WeakSet(); - dispatchUpdateUI_fn = function(details) { - this._eventBus.dispatch("annotationeditorparamschanged", { - source: this, - details - }); - }; - _enableAll = new WeakSet(); - enableAll_fn = function() { - if (!__privateGet(this, _isEnabled)) { - __privateSet(this, _isEnabled, true); - for (const layer of __privateGet(this, _allLayers).values()) { - layer.enable(); - } - } - }; - _disableAll = new WeakSet(); - disableAll_fn = function() { - this.unselectAll(); - if (__privateGet(this, _isEnabled)) { - __privateSet(this, _isEnabled, false); - for (const layer of __privateGet(this, _allLayers).values()) { - layer.disable(); - } - } - }; - _addEditorToLayer = new WeakSet(); - addEditorToLayer_fn = function(editor) { - const layer = __privateGet(this, _allLayers).get(editor.pageIndex); - if (layer) { - layer.addOrRebuild(editor); - } else { - this.addEditor(editor); - } - }; - _isEmpty = new WeakSet(); - isEmpty_fn = function() { - if (__privateGet(this, _allEditors).size === 0) { - return true; - } - if (__privateGet(this, _allEditors).size === 1) { - for (const editor of __privateGet(this, _allEditors).values()) { - return editor.isEmpty(); - } - } - return false; - }; - _selectEditors = new WeakSet(); - selectEditors_fn = function(editors) { - __privateGet(this, _selectedEditors).clear(); - for (const editor of editors) { - if (editor.isEmpty()) { - continue; - } - __privateGet(this, _selectedEditors).add(editor); - editor.select(); - } - __privateMethod(this, _dispatchUpdateStates, dispatchUpdateStates_fn).call(this, { - hasSelectedEditor: true - }); - }; - __publicField(AnnotationEditorUIManager, "TRANSLATE_SMALL", 1); - __publicField(AnnotationEditorUIManager, "TRANSLATE_BIG", 10); - exports2.AnnotationEditorUIManager = AnnotationEditorUIManager; - }, - /* 6 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var __cache, __defs, _docId, _document, _hcmFilter, _hcmKey, _hcmUrl, _hcmHighlightFilter, _hcmHighlightKey, _hcmHighlightUrl, _id, _cache, cache_get, _defs, defs_get, _addGrayConversion, addGrayConversion_fn, _createFilter, createFilter_fn, _appendFeFunc, appendFeFunc_fn, _addTransferMapConversion, addTransferMapConversion_fn, _getRGB, getRGB_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.StatTimer = exports2.RenderingCancelledException = exports2.PixelsPerInch = exports2.PageViewport = exports2.PDFDateString = exports2.DOMStandardFontDataFactory = exports2.DOMSVGFactory = exports2.DOMFilterFactory = exports2.DOMCanvasFactory = exports2.DOMCMapReaderFactory = void 0; - exports2.deprecated = deprecated; - exports2.getColorValues = getColorValues; - exports2.getCurrentTransform = getCurrentTransform; - exports2.getCurrentTransformInverse = getCurrentTransformInverse; - exports2.getFilenameFromUrl = getFilenameFromUrl; - exports2.getPdfFilenameFromUrl = getPdfFilenameFromUrl; - exports2.getRGB = getRGB; - exports2.getXfaPageViewport = getXfaPageViewport; - exports2.isDataScheme = isDataScheme; - exports2.isPdfFile = isPdfFile; - exports2.isValidFetchUrl = isValidFetchUrl; - exports2.loadScript = loadScript; - exports2.noContextMenu = noContextMenu; - exports2.setLayerDimensions = setLayerDimensions; - var _base_factory = __w_pdfjs_require__2(7); - var _util2 = __w_pdfjs_require__2(1); - const SVG_NS = "http://www.w3.org/2000/svg"; - const _PixelsPerInch = class { - }; - let PixelsPerInch = _PixelsPerInch; - __publicField(PixelsPerInch, "CSS", 96); - __publicField(PixelsPerInch, "PDF", 72); - __publicField(PixelsPerInch, "PDF_TO_CSS_UNITS", _PixelsPerInch.CSS / _PixelsPerInch.PDF); - exports2.PixelsPerInch = PixelsPerInch; - class DOMFilterFactory extends _base_factory.BaseFilterFactory { - constructor({ - docId, - ownerDocument = globalThis.document - } = {}) { - super(); - __privateAdd(this, _cache); - __privateAdd(this, _defs); - __privateAdd(this, _addGrayConversion); - __privateAdd(this, _createFilter); - __privateAdd(this, _appendFeFunc); - __privateAdd(this, _addTransferMapConversion); - __privateAdd(this, _getRGB); - __privateAdd(this, __cache, void 0); - __privateAdd(this, __defs, void 0); - __privateAdd(this, _docId, void 0); - __privateAdd(this, _document, void 0); - __privateAdd(this, _hcmFilter, void 0); - __privateAdd(this, _hcmKey, void 0); - __privateAdd(this, _hcmUrl, void 0); - __privateAdd(this, _hcmHighlightFilter, void 0); - __privateAdd(this, _hcmHighlightKey, void 0); - __privateAdd(this, _hcmHighlightUrl, void 0); - __privateAdd(this, _id, 0); - __privateSet(this, _docId, docId); - __privateSet(this, _document, ownerDocument); - } - addFilter(maps) { - if (!maps) { - return "none"; - } - let value = __privateGet(this, _cache, cache_get).get(maps); - if (value) { - return value; - } - let tableR, tableG, tableB, key; - if (maps.length === 1) { - const mapR = maps[0]; - const buffer = new Array(256); - for (let i2 = 0; i2 < 256; i2++) { - buffer[i2] = mapR[i2] / 255; - } - key = tableR = tableG = tableB = buffer.join(","); - } else { - const [mapR, mapG, mapB] = maps; - const bufferR = new Array(256); - const bufferG = new Array(256); - const bufferB = new Array(256); - for (let i2 = 0; i2 < 256; i2++) { - bufferR[i2] = mapR[i2] / 255; - bufferG[i2] = mapG[i2] / 255; - bufferB[i2] = mapB[i2] / 255; - } - tableR = bufferR.join(","); - tableG = bufferG.join(","); - tableB = bufferB.join(","); - key = `${tableR}${tableG}${tableB}`; - } - value = __privateGet(this, _cache, cache_get).get(key); - if (value) { - __privateGet(this, _cache, cache_get).set(maps, value); - return value; - } - const id = `g_${__privateGet(this, _docId)}_transfer_map_${__privateWrapper(this, _id)._++}`; - const url = `url(#${id})`; - __privateGet(this, _cache, cache_get).set(maps, url); - __privateGet(this, _cache, cache_get).set(key, url); - const filter = __privateMethod(this, _createFilter, createFilter_fn).call(this, id); - __privateMethod(this, _addTransferMapConversion, addTransferMapConversion_fn).call(this, tableR, tableG, tableB, filter); - return url; - } - addHCMFilter(fgColor, bgColor) { - var _a; - const key = `${fgColor}-${bgColor}`; - if (__privateGet(this, _hcmKey) === key) { - return __privateGet(this, _hcmUrl); - } - __privateSet(this, _hcmKey, key); - __privateSet(this, _hcmUrl, "none"); - (_a = __privateGet(this, _hcmFilter)) == null ? void 0 : _a.remove(); - if (!fgColor || !bgColor) { - return __privateGet(this, _hcmUrl); - } - const fgRGB = __privateMethod(this, _getRGB, getRGB_fn).call(this, fgColor); - fgColor = _util2.Util.makeHexColor(...fgRGB); - const bgRGB = __privateMethod(this, _getRGB, getRGB_fn).call(this, bgColor); - bgColor = _util2.Util.makeHexColor(...bgRGB); - __privateGet(this, _defs, defs_get).style.color = ""; - if (fgColor === "#000000" && bgColor === "#ffffff" || fgColor === bgColor) { - return __privateGet(this, _hcmUrl); - } - const map = new Array(256); - for (let i2 = 0; i2 <= 255; i2++) { - const x2 = i2 / 255; - map[i2] = x2 <= 0.03928 ? x2 / 12.92 : ((x2 + 0.055) / 1.055) ** 2.4; - } - const table = map.join(","); - const id = `g_${__privateGet(this, _docId)}_hcm_filter`; - const filter = __privateSet(this, _hcmHighlightFilter, __privateMethod(this, _createFilter, createFilter_fn).call(this, id)); - __privateMethod(this, _addTransferMapConversion, addTransferMapConversion_fn).call(this, table, table, table, filter); - __privateMethod(this, _addGrayConversion, addGrayConversion_fn).call(this, filter); - const getSteps = (c2, n2) => { - const start = fgRGB[c2] / 255; - const end = bgRGB[c2] / 255; - const arr = new Array(n2 + 1); - for (let i2 = 0; i2 <= n2; i2++) { - arr[i2] = start + i2 / n2 * (end - start); - } - return arr.join(","); - }; - __privateMethod(this, _addTransferMapConversion, addTransferMapConversion_fn).call(this, getSteps(0, 5), getSteps(1, 5), getSteps(2, 5), filter); - __privateSet(this, _hcmUrl, `url(#${id})`); - return __privateGet(this, _hcmUrl); - } - addHighlightHCMFilter(fgColor, bgColor, newFgColor, newBgColor) { - var _a; - const key = `${fgColor}-${bgColor}-${newFgColor}-${newBgColor}`; - if (__privateGet(this, _hcmHighlightKey) === key) { - return __privateGet(this, _hcmHighlightUrl); - } - __privateSet(this, _hcmHighlightKey, key); - __privateSet(this, _hcmHighlightUrl, "none"); - (_a = __privateGet(this, _hcmHighlightFilter)) == null ? void 0 : _a.remove(); - if (!fgColor || !bgColor) { - return __privateGet(this, _hcmHighlightUrl); - } - const [fgRGB, bgRGB] = [fgColor, bgColor].map(__privateMethod(this, _getRGB, getRGB_fn).bind(this)); - let fgGray = Math.round(0.2126 * fgRGB[0] + 0.7152 * fgRGB[1] + 0.0722 * fgRGB[2]); - let bgGray = Math.round(0.2126 * bgRGB[0] + 0.7152 * bgRGB[1] + 0.0722 * bgRGB[2]); - let [newFgRGB, newBgRGB] = [newFgColor, newBgColor].map(__privateMethod(this, _getRGB, getRGB_fn).bind(this)); - if (bgGray < fgGray) { - [fgGray, bgGray, newFgRGB, newBgRGB] = [bgGray, fgGray, newBgRGB, newFgRGB]; - } - __privateGet(this, _defs, defs_get).style.color = ""; - const getSteps = (fg, bg, n2) => { - const arr = new Array(256); - const step = (bgGray - fgGray) / n2; - const newStart = fg / 255; - const newStep = (bg - fg) / (255 * n2); - let prev = 0; - for (let i2 = 0; i2 <= n2; i2++) { - const k2 = Math.round(fgGray + i2 * step); - const value = newStart + i2 * newStep; - for (let j2 = prev; j2 <= k2; j2++) { - arr[j2] = value; - } - prev = k2 + 1; - } - for (let i2 = prev; i2 < 256; i2++) { - arr[i2] = arr[prev - 1]; - } - return arr.join(","); - }; - const id = `g_${__privateGet(this, _docId)}_hcm_highlight_filter`; - const filter = __privateSet(this, _hcmHighlightFilter, __privateMethod(this, _createFilter, createFilter_fn).call(this, id)); - __privateMethod(this, _addGrayConversion, addGrayConversion_fn).call(this, filter); - __privateMethod(this, _addTransferMapConversion, addTransferMapConversion_fn).call(this, getSteps(newFgRGB[0], newBgRGB[0], 5), getSteps(newFgRGB[1], newBgRGB[1], 5), getSteps(newFgRGB[2], newBgRGB[2], 5), filter); - __privateSet(this, _hcmHighlightUrl, `url(#${id})`); - return __privateGet(this, _hcmHighlightUrl); - } - destroy(keepHCM = false) { - if (keepHCM && (__privateGet(this, _hcmUrl) || __privateGet(this, _hcmHighlightUrl))) { - return; - } - if (__privateGet(this, __defs)) { - __privateGet(this, __defs).parentNode.parentNode.remove(); - __privateSet(this, __defs, null); - } - if (__privateGet(this, __cache)) { - __privateGet(this, __cache).clear(); - __privateSet(this, __cache, null); - } - __privateSet(this, _id, 0); - } - } - __cache = new WeakMap(); - __defs = new WeakMap(); - _docId = new WeakMap(); - _document = new WeakMap(); - _hcmFilter = new WeakMap(); - _hcmKey = new WeakMap(); - _hcmUrl = new WeakMap(); - _hcmHighlightFilter = new WeakMap(); - _hcmHighlightKey = new WeakMap(); - _hcmHighlightUrl = new WeakMap(); - _id = new WeakMap(); - _cache = new WeakSet(); - cache_get = function() { - return __privateGet(this, __cache) || __privateSet(this, __cache, /* @__PURE__ */ new Map()); - }; - _defs = new WeakSet(); - defs_get = function() { - if (!__privateGet(this, __defs)) { - const div = __privateGet(this, _document).createElement("div"); - const { - style - } = div; - style.visibility = "hidden"; - style.contain = "strict"; - style.width = style.height = 0; - style.position = "absolute"; - style.top = style.left = 0; - style.zIndex = -1; - const svg = __privateGet(this, _document).createElementNS(SVG_NS, "svg"); - svg.setAttribute("width", 0); - svg.setAttribute("height", 0); - __privateSet(this, __defs, __privateGet(this, _document).createElementNS(SVG_NS, "defs")); - div.append(svg); - svg.append(__privateGet(this, __defs)); - __privateGet(this, _document).body.append(div); - } - return __privateGet(this, __defs); - }; - _addGrayConversion = new WeakSet(); - addGrayConversion_fn = function(filter) { - const feColorMatrix = __privateGet(this, _document).createElementNS(SVG_NS, "feColorMatrix"); - feColorMatrix.setAttribute("type", "matrix"); - feColorMatrix.setAttribute("values", "0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"); - filter.append(feColorMatrix); - }; - _createFilter = new WeakSet(); - createFilter_fn = function(id) { - const filter = __privateGet(this, _document).createElementNS(SVG_NS, "filter"); - filter.setAttribute("color-interpolation-filters", "sRGB"); - filter.setAttribute("id", id); - __privateGet(this, _defs, defs_get).append(filter); - return filter; - }; - _appendFeFunc = new WeakSet(); - appendFeFunc_fn = function(feComponentTransfer, func, table) { - const feFunc = __privateGet(this, _document).createElementNS(SVG_NS, func); - feFunc.setAttribute("type", "discrete"); - feFunc.setAttribute("tableValues", table); - feComponentTransfer.append(feFunc); - }; - _addTransferMapConversion = new WeakSet(); - addTransferMapConversion_fn = function(rTable, gTable, bTable, filter) { - const feComponentTransfer = __privateGet(this, _document).createElementNS(SVG_NS, "feComponentTransfer"); - filter.append(feComponentTransfer); - __privateMethod(this, _appendFeFunc, appendFeFunc_fn).call(this, feComponentTransfer, "feFuncR", rTable); - __privateMethod(this, _appendFeFunc, appendFeFunc_fn).call(this, feComponentTransfer, "feFuncG", gTable); - __privateMethod(this, _appendFeFunc, appendFeFunc_fn).call(this, feComponentTransfer, "feFuncB", bTable); - }; - _getRGB = new WeakSet(); - getRGB_fn = function(color) { - __privateGet(this, _defs, defs_get).style.color = color; - return getRGB(getComputedStyle(__privateGet(this, _defs, defs_get)).getPropertyValue("color")); - }; - exports2.DOMFilterFactory = DOMFilterFactory; - class DOMCanvasFactory extends _base_factory.BaseCanvasFactory { - constructor({ - ownerDocument = globalThis.document - } = {}) { - super(); - this._document = ownerDocument; - } - _createCanvas(width, height) { - const canvas = this._document.createElement("canvas"); - canvas.width = width; - canvas.height = height; - return canvas; - } - } - exports2.DOMCanvasFactory = DOMCanvasFactory; - async function fetchData(url, asTypedArray = false) { - if (isValidFetchUrl(url, document.baseURI)) { - const response = await fetch(url); - if (!response.ok) { - throw new Error(response.statusText); - } - return asTypedArray ? new Uint8Array(await response.arrayBuffer()) : (0, _util2.stringToBytes)(await response.text()); - } - return new Promise((resolve, reject) => { - const request = new XMLHttpRequest(); - request.open("GET", url, true); - if (asTypedArray) { - request.responseType = "arraybuffer"; - } - request.onreadystatechange = () => { - if (request.readyState !== XMLHttpRequest.DONE) { - return; - } - if (request.status === 200 || request.status === 0) { - let data; - if (asTypedArray && request.response) { - data = new Uint8Array(request.response); - } else if (!asTypedArray && request.responseText) { - data = (0, _util2.stringToBytes)(request.responseText); - } - if (data) { - resolve(data); - return; - } - } - reject(new Error(request.statusText)); - }; - request.send(null); - }); - } - class DOMCMapReaderFactory extends _base_factory.BaseCMapReaderFactory { - _fetchData(url, compressionType) { - return fetchData(url, this.isCompressed).then((data) => { - return { - cMapData: data, - compressionType - }; - }); - } - } - exports2.DOMCMapReaderFactory = DOMCMapReaderFactory; - class DOMStandardFontDataFactory extends _base_factory.BaseStandardFontDataFactory { - _fetchData(url) { - return fetchData(url, true); - } - } - exports2.DOMStandardFontDataFactory = DOMStandardFontDataFactory; - class DOMSVGFactory extends _base_factory.BaseSVGFactory { - _createSVG(type) { - return document.createElementNS(SVG_NS, type); - } - } - exports2.DOMSVGFactory = DOMSVGFactory; - class PageViewport { - constructor({ - viewBox, - scale, - rotation, - offsetX = 0, - offsetY = 0, - dontFlip = false - }) { - this.viewBox = viewBox; - this.scale = scale; - this.rotation = rotation; - this.offsetX = offsetX; - this.offsetY = offsetY; - const centerX = (viewBox[2] + viewBox[0]) / 2; - const centerY = (viewBox[3] + viewBox[1]) / 2; - let rotateA, rotateB, rotateC, rotateD; - rotation %= 360; - if (rotation < 0) { - rotation += 360; - } - switch (rotation) { - case 180: - rotateA = -1; - rotateB = 0; - rotateC = 0; - rotateD = 1; - break; - case 90: - rotateA = 0; - rotateB = 1; - rotateC = 1; - rotateD = 0; - break; - case 270: - rotateA = 0; - rotateB = -1; - rotateC = -1; - rotateD = 0; - break; - case 0: - rotateA = 1; - rotateB = 0; - rotateC = 0; - rotateD = -1; - break; - default: - throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees."); - } - if (dontFlip) { - rotateC = -rotateC; - rotateD = -rotateD; - } - let offsetCanvasX, offsetCanvasY; - let width, height; - if (rotateA === 0) { - offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX; - offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY; - width = (viewBox[3] - viewBox[1]) * scale; - height = (viewBox[2] - viewBox[0]) * scale; - } else { - offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX; - offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY; - width = (viewBox[2] - viewBox[0]) * scale; - height = (viewBox[3] - viewBox[1]) * scale; - } - this.transform = [rotateA * scale, rotateB * scale, rotateC * scale, rotateD * scale, offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY, offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY]; - this.width = width; - this.height = height; - } - get rawDims() { - const { - viewBox - } = this; - return (0, _util2.shadow)(this, "rawDims", { - pageWidth: viewBox[2] - viewBox[0], - pageHeight: viewBox[3] - viewBox[1], - pageX: viewBox[0], - pageY: viewBox[1] - }); - } - clone({ - scale = this.scale, - rotation = this.rotation, - offsetX = this.offsetX, - offsetY = this.offsetY, - dontFlip = false - } = {}) { - return new PageViewport({ - viewBox: this.viewBox.slice(), - scale, - rotation, - offsetX, - offsetY, - dontFlip - }); - } - convertToViewportPoint(x2, y2) { - return _util2.Util.applyTransform([x2, y2], this.transform); - } - convertToViewportRectangle(rect) { - const topLeft = _util2.Util.applyTransform([rect[0], rect[1]], this.transform); - const bottomRight = _util2.Util.applyTransform([rect[2], rect[3]], this.transform); - return [topLeft[0], topLeft[1], bottomRight[0], bottomRight[1]]; - } - convertToPdfPoint(x2, y2) { - return _util2.Util.applyInverseTransform([x2, y2], this.transform); - } - } - exports2.PageViewport = PageViewport; - class RenderingCancelledException extends _util2.BaseException { - constructor(msg, extraDelay = 0) { - super(msg, "RenderingCancelledException"); - this.extraDelay = extraDelay; - } - } - exports2.RenderingCancelledException = RenderingCancelledException; - function isDataScheme(url) { - const ii2 = url.length; - let i2 = 0; - while (i2 < ii2 && url[i2].trim() === "") { - i2++; - } - return url.substring(i2, i2 + 5).toLowerCase() === "data:"; - } - function isPdfFile(filename) { - return typeof filename === "string" && /\.pdf$/i.test(filename); - } - function getFilenameFromUrl(url, onlyStripPath = false) { - if (!onlyStripPath) { - [url] = url.split(/[#?]/, 1); - } - return url.substring(url.lastIndexOf("/") + 1); - } - function getPdfFilenameFromUrl(url, defaultFilename = "document.pdf") { - if (typeof url !== "string") { - return defaultFilename; - } - if (isDataScheme(url)) { - (0, _util2.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'); - return defaultFilename; - } - const reURI = /^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/; - const reFilename = /[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i; - const splitURI = reURI.exec(url); - let suggestedFilename = reFilename.exec(splitURI[1]) || reFilename.exec(splitURI[2]) || reFilename.exec(splitURI[3]); - if (suggestedFilename) { - suggestedFilename = suggestedFilename[0]; - if (suggestedFilename.includes("%")) { - try { - suggestedFilename = reFilename.exec(decodeURIComponent(suggestedFilename))[0]; - } catch (e2) { - } - } - } - return suggestedFilename || defaultFilename; - } - class StatTimer { - constructor() { - __publicField(this, "started", /* @__PURE__ */ Object.create(null)); - __publicField(this, "times", []); - } - time(name) { - if (name in this.started) { - (0, _util2.warn)(`Timer is already running for ${name}`); - } - this.started[name] = Date.now(); - } - timeEnd(name) { - if (!(name in this.started)) { - (0, _util2.warn)(`Timer has not been started for ${name}`); - } - this.times.push({ - name, - start: this.started[name], - end: Date.now() - }); - delete this.started[name]; - } - toString() { - const outBuf = []; - let longest = 0; - for (const { - name - } of this.times) { - longest = Math.max(name.length, longest); - } - for (const { - name, - start, - end - } of this.times) { - outBuf.push(`${name.padEnd(longest)} ${end - start}ms -`); - } - return outBuf.join(""); - } - } - exports2.StatTimer = StatTimer; - function isValidFetchUrl(url, baseUrl) { - try { - const { - protocol - } = baseUrl ? new URL(url, baseUrl) : new URL(url); - return protocol === "http:" || protocol === "https:"; - } catch (e2) { - return false; - } - } - function noContextMenu(e2) { - e2.preventDefault(); - } - function loadScript(src, removeScriptElement = false) { - return new Promise((resolve, reject) => { - const script = document.createElement("script"); - script.src = src; - script.onload = function(evt) { - if (removeScriptElement) { - script.remove(); - } - resolve(evt); - }; - script.onerror = function() { - reject(new Error(`Cannot load script at: ${script.src}`)); - }; - (document.head || document.documentElement).append(script); - }); - } - function deprecated(details) { - console.log("Deprecated API usage: " + details); - } - let pdfDateStringRegex; - class PDFDateString { - static toDateObject(input) { - if (!input || typeof input !== "string") { - return null; - } - pdfDateStringRegex || (pdfDateStringRegex = new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?")); - const matches = pdfDateStringRegex.exec(input); - if (!matches) { - return null; - } - const year = parseInt(matches[1], 10); - let month = parseInt(matches[2], 10); - month = month >= 1 && month <= 12 ? month - 1 : 0; - let day = parseInt(matches[3], 10); - day = day >= 1 && day <= 31 ? day : 1; - let hour = parseInt(matches[4], 10); - hour = hour >= 0 && hour <= 23 ? hour : 0; - let minute = parseInt(matches[5], 10); - minute = minute >= 0 && minute <= 59 ? minute : 0; - let second = parseInt(matches[6], 10); - second = second >= 0 && second <= 59 ? second : 0; - const universalTimeRelation = matches[7] || "Z"; - let offsetHour = parseInt(matches[8], 10); - offsetHour = offsetHour >= 0 && offsetHour <= 23 ? offsetHour : 0; - let offsetMinute = parseInt(matches[9], 10) || 0; - offsetMinute = offsetMinute >= 0 && offsetMinute <= 59 ? offsetMinute : 0; - if (universalTimeRelation === "-") { - hour += offsetHour; - minute += offsetMinute; - } else if (universalTimeRelation === "+") { - hour -= offsetHour; - minute -= offsetMinute; - } - return new Date(Date.UTC(year, month, day, hour, minute, second)); - } - } - exports2.PDFDateString = PDFDateString; - function getXfaPageViewport(xfaPage, { - scale = 1, - rotation = 0 - }) { - const { - width, - height - } = xfaPage.attributes.style; - const viewBox = [0, 0, parseInt(width), parseInt(height)]; - return new PageViewport({ - viewBox, - scale, - rotation - }); - } - function getRGB(color) { - if (color.startsWith("#")) { - const colorRGB = parseInt(color.slice(1), 16); - return [(colorRGB & 16711680) >> 16, (colorRGB & 65280) >> 8, colorRGB & 255]; - } - if (color.startsWith("rgb(")) { - return color.slice(4, -1).split(",").map((x2) => parseInt(x2)); - } - if (color.startsWith("rgba(")) { - return color.slice(5, -1).split(",").map((x2) => parseInt(x2)).slice(0, 3); - } - (0, _util2.warn)(`Not a valid color format: "${color}"`); - return [0, 0, 0]; - } - function getColorValues(colors) { - const span = document.createElement("span"); - span.style.visibility = "hidden"; - document.body.append(span); - for (const name of colors.keys()) { - span.style.color = name; - const computedColor = window.getComputedStyle(span).color; - colors.set(name, getRGB(computedColor)); - } - span.remove(); - } - function getCurrentTransform(ctx) { - const { - a: a2, - b: b2, - c: c2, - d: d2, - e: e2, - f: f2 - } = ctx.getTransform(); - return [a2, b2, c2, d2, e2, f2]; - } - function getCurrentTransformInverse(ctx) { - const { - a: a2, - b: b2, - c: c2, - d: d2, - e: e2, - f: f2 - } = ctx.getTransform().invertSelf(); - return [a2, b2, c2, d2, e2, f2]; - } - function setLayerDimensions(div, viewport, mustFlip = false, mustRotate = true) { - if (viewport instanceof PageViewport) { - const { - pageWidth, - pageHeight - } = viewport.rawDims; - const { - style - } = div; - const useRound = _util2.FeatureTest.isCSSRoundSupported; - const w2 = `var(--scale-factor) * ${pageWidth}px`, h2 = `var(--scale-factor) * ${pageHeight}px`; - const widthStr = useRound ? `round(${w2}, 1px)` : `calc(${w2})`, heightStr = useRound ? `round(${h2}, 1px)` : `calc(${h2})`; - if (!mustFlip || viewport.rotation % 180 === 0) { - style.width = widthStr; - style.height = heightStr; - } else { - style.width = heightStr; - style.height = widthStr; - } - } - if (mustRotate) { - div.setAttribute("data-main-rotation", viewport.rotation); - } - } - }, - /* 7 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.BaseStandardFontDataFactory = exports2.BaseSVGFactory = exports2.BaseFilterFactory = exports2.BaseCanvasFactory = exports2.BaseCMapReaderFactory = void 0; - var _util2 = __w_pdfjs_require__2(1); - class BaseFilterFactory { - constructor() { - if (this.constructor === BaseFilterFactory) { - (0, _util2.unreachable)("Cannot initialize BaseFilterFactory."); - } - } - addFilter(maps) { - return "none"; - } - addHCMFilter(fgColor, bgColor) { - return "none"; - } - addHighlightHCMFilter(fgColor, bgColor, newFgColor, newBgColor) { - return "none"; - } - destroy(keepHCM = false) { - } - } - exports2.BaseFilterFactory = BaseFilterFactory; - class BaseCanvasFactory { - constructor() { - if (this.constructor === BaseCanvasFactory) { - (0, _util2.unreachable)("Cannot initialize BaseCanvasFactory."); - } - } - create(width, height) { - if (width <= 0 || height <= 0) { - throw new Error("Invalid canvas size"); - } - const canvas = this._createCanvas(width, height); - return { - canvas, - context: canvas.getContext("2d") - }; - } - reset(canvasAndContext, width, height) { - if (!canvasAndContext.canvas) { - throw new Error("Canvas is not specified"); - } - if (width <= 0 || height <= 0) { - throw new Error("Invalid canvas size"); - } - canvasAndContext.canvas.width = width; - canvasAndContext.canvas.height = height; - } - destroy(canvasAndContext) { - if (!canvasAndContext.canvas) { - throw new Error("Canvas is not specified"); - } - canvasAndContext.canvas.width = 0; - canvasAndContext.canvas.height = 0; - canvasAndContext.canvas = null; - canvasAndContext.context = null; - } - _createCanvas(width, height) { - (0, _util2.unreachable)("Abstract method `_createCanvas` called."); - } - } - exports2.BaseCanvasFactory = BaseCanvasFactory; - class BaseCMapReaderFactory { - constructor({ - baseUrl = null, - isCompressed = true - }) { - if (this.constructor === BaseCMapReaderFactory) { - (0, _util2.unreachable)("Cannot initialize BaseCMapReaderFactory."); - } - this.baseUrl = baseUrl; - this.isCompressed = isCompressed; - } - async fetch({ - name - }) { - if (!this.baseUrl) { - throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.'); - } - if (!name) { - throw new Error("CMap name must be specified."); - } - const url = this.baseUrl + name + (this.isCompressed ? ".bcmap" : ""); - const compressionType = this.isCompressed ? _util2.CMapCompressionType.BINARY : _util2.CMapCompressionType.NONE; - return this._fetchData(url, compressionType).catch((reason) => { - throw new Error(`Unable to load ${this.isCompressed ? "binary " : ""}CMap at: ${url}`); - }); - } - _fetchData(url, compressionType) { - (0, _util2.unreachable)("Abstract method `_fetchData` called."); - } - } - exports2.BaseCMapReaderFactory = BaseCMapReaderFactory; - class BaseStandardFontDataFactory { - constructor({ - baseUrl = null - }) { - if (this.constructor === BaseStandardFontDataFactory) { - (0, _util2.unreachable)("Cannot initialize BaseStandardFontDataFactory."); - } - this.baseUrl = baseUrl; - } - async fetch({ - filename - }) { - if (!this.baseUrl) { - throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.'); - } - if (!filename) { - throw new Error("Font filename must be specified."); - } - const url = `${this.baseUrl}${filename}`; - return this._fetchData(url).catch((reason) => { - throw new Error(`Unable to load font data at: ${url}`); - }); - } - _fetchData(url) { - (0, _util2.unreachable)("Abstract method `_fetchData` called."); - } - } - exports2.BaseStandardFontDataFactory = BaseStandardFontDataFactory; - class BaseSVGFactory { - constructor() { - if (this.constructor === BaseSVGFactory) { - (0, _util2.unreachable)("Cannot initialize BaseSVGFactory."); - } - } - create(width, height, skipDimensions = false) { - if (width <= 0 || height <= 0) { - throw new Error("Invalid SVG dimensions"); - } - const svg = this._createSVG("svg:svg"); - svg.setAttribute("version", "1.1"); - if (!skipDimensions) { - svg.setAttribute("width", `${width}px`); - svg.setAttribute("height", `${height}px`); - } - svg.setAttribute("preserveAspectRatio", "none"); - svg.setAttribute("viewBox", `0 0 ${width} ${height}`); - return svg; - } - createElement(type) { - if (typeof type !== "string") { - throw new Error("Invalid SVG element type"); - } - return this._createSVG(type); - } - _createSVG(type) { - (0, _util2.unreachable)("Abstract method `_createSVG` called."); - } - } - exports2.BaseSVGFactory = BaseSVGFactory; - }, - /* 8 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.MurmurHash3_64 = void 0; - var _util2 = __w_pdfjs_require__2(1); - const SEED = 3285377520; - const MASK_HIGH = 4294901760; - const MASK_LOW = 65535; - class MurmurHash3_64 { - constructor(seed) { - this.h1 = seed ? seed & 4294967295 : SEED; - this.h2 = seed ? seed & 4294967295 : SEED; - } - update(input) { - let data, length; - if (typeof input === "string") { - data = new Uint8Array(input.length * 2); - length = 0; - for (let i2 = 0, ii2 = input.length; i2 < ii2; i2++) { - const code = input.charCodeAt(i2); - if (code <= 255) { - data[length++] = code; - } else { - data[length++] = code >>> 8; - data[length++] = code & 255; - } - } - } else if ((0, _util2.isArrayBuffer)(input)) { - data = input.slice(); - length = data.byteLength; - } else { - throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array."); - } - const blockCounts = length >> 2; - const tailLength = length - blockCounts * 4; - const dataUint32 = new Uint32Array(data.buffer, 0, blockCounts); - let k1 = 0, k2 = 0; - let h1 = this.h1, h2 = this.h2; - const C1 = 3432918353, C2 = 461845907; - const C1_LOW = C1 & MASK_LOW, C2_LOW = C2 & MASK_LOW; - for (let i2 = 0; i2 < blockCounts; i2++) { - if (i2 & 1) { - k1 = dataUint32[i2]; - k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; - k1 = k1 << 15 | k1 >>> 17; - k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; - h1 ^= k1; - h1 = h1 << 13 | h1 >>> 19; - h1 = h1 * 5 + 3864292196; - } else { - k2 = dataUint32[i2]; - k2 = k2 * C1 & MASK_HIGH | k2 * C1_LOW & MASK_LOW; - k2 = k2 << 15 | k2 >>> 17; - k2 = k2 * C2 & MASK_HIGH | k2 * C2_LOW & MASK_LOW; - h2 ^= k2; - h2 = h2 << 13 | h2 >>> 19; - h2 = h2 * 5 + 3864292196; - } - } - k1 = 0; - switch (tailLength) { - case 3: - k1 ^= data[blockCounts * 4 + 2] << 16; - case 2: - k1 ^= data[blockCounts * 4 + 1] << 8; - case 1: - k1 ^= data[blockCounts * 4]; - k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; - k1 = k1 << 15 | k1 >>> 17; - k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; - if (blockCounts & 1) { - h1 ^= k1; - } else { - h2 ^= k1; - } - } - this.h1 = h1; - this.h2 = h2; - } - hexdigest() { - let h1 = this.h1, h2 = this.h2; - h1 ^= h2 >>> 1; - h1 = h1 * 3981806797 & MASK_HIGH | h1 * 36045 & MASK_LOW; - h2 = h2 * 4283543511 & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 2950163797 & MASK_HIGH) >>> 16; - h1 ^= h2 >>> 1; - h1 = h1 * 444984403 & MASK_HIGH | h1 * 60499 & MASK_LOW; - h2 = h2 * 3301882366 & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 3120437893 & MASK_HIGH) >>> 16; - h1 ^= h2 >>> 1; - return (h1 >>> 0).toString(16).padStart(8, "0") + (h2 >>> 0).toString(16).padStart(8, "0"); - } - } - exports2.MurmurHash3_64 = MurmurHash3_64; - }, - /* 9 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _systemFonts; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.FontLoader = exports2.FontFaceObject = void 0; - var _util2 = __w_pdfjs_require__2(1); - class FontLoader { - constructor({ - ownerDocument = globalThis.document, - styleElement = null - }) { - __privateAdd(this, _systemFonts, /* @__PURE__ */ new Set()); - this._document = ownerDocument; - this.nativeFontFaces = /* @__PURE__ */ new Set(); - this.styleElement = null; - this.loadingRequests = []; - this.loadTestFontId = 0; - } - addNativeFontFace(nativeFontFace) { - this.nativeFontFaces.add(nativeFontFace); - this._document.fonts.add(nativeFontFace); - } - removeNativeFontFace(nativeFontFace) { - this.nativeFontFaces.delete(nativeFontFace); - this._document.fonts.delete(nativeFontFace); - } - insertRule(rule) { - if (!this.styleElement) { - this.styleElement = this._document.createElement("style"); - this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement); - } - const styleSheet = this.styleElement.sheet; - styleSheet.insertRule(rule, styleSheet.cssRules.length); - } - clear() { - for (const nativeFontFace of this.nativeFontFaces) { - this._document.fonts.delete(nativeFontFace); - } - this.nativeFontFaces.clear(); - __privateGet(this, _systemFonts).clear(); - if (this.styleElement) { - this.styleElement.remove(); - this.styleElement = null; - } - } - async loadSystemFont(info) { - if (!info || __privateGet(this, _systemFonts).has(info.loadedName)) { - return; - } - (0, _util2.assert)(!this.disableFontFace, "loadSystemFont shouldn't be called when `disableFontFace` is set."); - if (this.isFontLoadingAPISupported) { - const { - loadedName, - src, - style - } = info; - const fontFace = new FontFace(loadedName, src, style); - this.addNativeFontFace(fontFace); - try { - await fontFace.load(); - __privateGet(this, _systemFonts).add(loadedName); - } catch (e2) { - (0, _util2.warn)(`Cannot load system font: ${info.baseFontName}, installing it could help to improve PDF rendering.`); - this.removeNativeFontFace(fontFace); - } - return; - } - (0, _util2.unreachable)("Not implemented: loadSystemFont without the Font Loading API."); - } - async bind(font) { - if (font.attached || font.missingFile && !font.systemFontInfo) { - return; - } - font.attached = true; - if (font.systemFontInfo) { - await this.loadSystemFont(font.systemFontInfo); - return; - } - if (this.isFontLoadingAPISupported) { - const nativeFontFace = font.createNativeFontFace(); - if (nativeFontFace) { - this.addNativeFontFace(nativeFontFace); - try { - await nativeFontFace.loaded; - } catch (ex) { - (0, _util2.warn)(`Failed to load font '${nativeFontFace.family}': '${ex}'.`); - font.disableFontFace = true; - throw ex; - } - } - return; - } - const rule = font.createFontFaceRule(); - if (rule) { - this.insertRule(rule); - if (this.isSyncFontLoadingSupported) { - return; - } - await new Promise((resolve) => { - const request = this._queueLoadingCallback(resolve); - this._prepareFontLoadEvent(font, request); - }); - } - } - get isFontLoadingAPISupported() { - var _a; - const hasFonts = !!((_a = this._document) == null ? void 0 : _a.fonts); - return (0, _util2.shadow)(this, "isFontLoadingAPISupported", hasFonts); - } - get isSyncFontLoadingSupported() { - let supported = false; - if (_util2.isNodeJS) { - supported = true; - } else if (typeof navigator !== "undefined" && /Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent)) { - supported = true; - } - return (0, _util2.shadow)(this, "isSyncFontLoadingSupported", supported); - } - _queueLoadingCallback(callback) { - function completeRequest() { - (0, _util2.assert)(!request.done, "completeRequest() cannot be called twice."); - request.done = true; - while (loadingRequests.length > 0 && loadingRequests[0].done) { - const otherRequest = loadingRequests.shift(); - setTimeout(otherRequest.callback, 0); - } - } - const { - loadingRequests - } = this; - const request = { - done: false, - complete: completeRequest, - callback - }; - loadingRequests.push(request); - return request; - } - get _loadTestFont() { - const testFont = atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="); - return (0, _util2.shadow)(this, "_loadTestFont", testFont); - } - _prepareFontLoadEvent(font, request) { - function int32(data2, offset) { - return data2.charCodeAt(offset) << 24 | data2.charCodeAt(offset + 1) << 16 | data2.charCodeAt(offset + 2) << 8 | data2.charCodeAt(offset + 3) & 255; - } - function spliceString(s2, offset, remove, insert) { - const chunk1 = s2.substring(0, offset); - const chunk2 = s2.substring(offset + remove); - return chunk1 + insert + chunk2; - } - let i2, ii2; - const canvas = this._document.createElement("canvas"); - canvas.width = 1; - canvas.height = 1; - const ctx = canvas.getContext("2d"); - let called = 0; - function isFontReady(name, callback) { - if (++called > 30) { - (0, _util2.warn)("Load test font never loaded."); - callback(); - return; - } - ctx.font = "30px " + name; - ctx.fillText(".", 0, 20); - const imageData = ctx.getImageData(0, 0, 1, 1); - if (imageData.data[3] > 0) { - callback(); - return; - } - setTimeout(isFontReady.bind(null, name, callback)); - } - const loadTestFontId = `lt${Date.now()}${this.loadTestFontId++}`; - let data = this._loadTestFont; - const COMMENT_OFFSET = 976; - data = spliceString(data, COMMENT_OFFSET, loadTestFontId.length, loadTestFontId); - const CFF_CHECKSUM_OFFSET = 16; - const XXXX_VALUE = 1482184792; - let checksum = int32(data, CFF_CHECKSUM_OFFSET); - for (i2 = 0, ii2 = loadTestFontId.length - 3; i2 < ii2; i2 += 4) { - checksum = checksum - XXXX_VALUE + int32(loadTestFontId, i2) | 0; - } - if (i2 < loadTestFontId.length) { - checksum = checksum - XXXX_VALUE + int32(loadTestFontId + "XXX", i2) | 0; - } - data = spliceString(data, CFF_CHECKSUM_OFFSET, 4, (0, _util2.string32)(checksum)); - const url = `url(data:font/opentype;base64,${btoa(data)});`; - const rule = `@font-face {font-family:"${loadTestFontId}";src:${url}}`; - this.insertRule(rule); - const div = this._document.createElement("div"); - div.style.visibility = "hidden"; - div.style.width = div.style.height = "10px"; - div.style.position = "absolute"; - div.style.top = div.style.left = "0px"; - for (const name of [font.loadedName, loadTestFontId]) { - const span = this._document.createElement("span"); - span.textContent = "Hi"; - span.style.fontFamily = name; - div.append(span); - } - this._document.body.append(div); - isFontReady(loadTestFontId, () => { - div.remove(); - request.complete(); - }); - } - } - _systemFonts = new WeakMap(); - exports2.FontLoader = FontLoader; - class FontFaceObject { - constructor(translatedData, { - isEvalSupported = true, - disableFontFace = false, - ignoreErrors = false, - inspectFont = null - }) { - this.compiledGlyphs = /* @__PURE__ */ Object.create(null); - for (const i2 in translatedData) { - this[i2] = translatedData[i2]; - } - this.isEvalSupported = isEvalSupported !== false; - this.disableFontFace = disableFontFace === true; - this.ignoreErrors = ignoreErrors === true; - this._inspectFont = inspectFont; - } - createNativeFontFace() { - var _a; - if (!this.data || this.disableFontFace) { - return null; - } - let nativeFontFace; - if (!this.cssFontInfo) { - nativeFontFace = new FontFace(this.loadedName, this.data, {}); - } else { - const css = { - weight: this.cssFontInfo.fontWeight - }; - if (this.cssFontInfo.italicAngle) { - css.style = `oblique ${this.cssFontInfo.italicAngle}deg`; - } - nativeFontFace = new FontFace(this.cssFontInfo.fontFamily, this.data, css); - } - (_a = this._inspectFont) == null ? void 0 : _a.call(this, this); - return nativeFontFace; - } - createFontFaceRule() { - var _a; - if (!this.data || this.disableFontFace) { - return null; - } - const data = (0, _util2.bytesToString)(this.data); - const url = `url(data:${this.mimetype};base64,${btoa(data)});`; - let rule; - if (!this.cssFontInfo) { - rule = `@font-face {font-family:"${this.loadedName}";src:${url}}`; - } else { - let css = `font-weight: ${this.cssFontInfo.fontWeight};`; - if (this.cssFontInfo.italicAngle) { - css += `font-style: oblique ${this.cssFontInfo.italicAngle}deg;`; - } - rule = `@font-face {font-family:"${this.cssFontInfo.fontFamily}";${css}src:${url}}`; - } - (_a = this._inspectFont) == null ? void 0 : _a.call(this, this, url); - return rule; - } - getPathGenerator(objs, character) { - if (this.compiledGlyphs[character] !== void 0) { - return this.compiledGlyphs[character]; - } - let cmds; - try { - cmds = objs.get(this.loadedName + "_path_" + character); - } catch (ex) { - if (!this.ignoreErrors) { - throw ex; - } - (0, _util2.warn)(`getPathGenerator - ignoring character: "${ex}".`); - return this.compiledGlyphs[character] = function(c2, size) { - }; - } - if (this.isEvalSupported && _util2.FeatureTest.isEvalSupported) { - const jsBuf = []; - for (const current of cmds) { - const args = current.args !== void 0 ? current.args.join(",") : ""; - jsBuf.push("c.", current.cmd, "(", args, ");\n"); - } - return this.compiledGlyphs[character] = new Function("c", "size", jsBuf.join("")); - } - return this.compiledGlyphs[character] = function(c2, size) { - for (const current of cmds) { - if (current.cmd === "scale") { - current.args = [size, -size]; - } - c2[current.cmd].apply(c2, current.args); - } - }; - } - } - exports2.FontFaceObject = FontFaceObject; - }, - /* 10 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.NodeStandardFontDataFactory = exports2.NodeFilterFactory = exports2.NodeCanvasFactory = exports2.NodeCMapReaderFactory = void 0; - var _base_factory = __w_pdfjs_require__2(7); - var _util2 = __w_pdfjs_require__2(1); - ; - ; - const fetchData = function(url) { - return new Promise((resolve, reject) => { - const fs = require_fs(); - fs.readFile(url, (error, data) => { - if (error || !data) { - reject(new Error(error)); - return; - } - resolve(new Uint8Array(data)); - }); - }); - }; - class NodeFilterFactory extends _base_factory.BaseFilterFactory { - } - exports2.NodeFilterFactory = NodeFilterFactory; - class NodeCanvasFactory extends _base_factory.BaseCanvasFactory { - _createCanvas(width, height) { - const Canvas = require_browser(); - return Canvas.createCanvas(width, height); - } - } - exports2.NodeCanvasFactory = NodeCanvasFactory; - class NodeCMapReaderFactory extends _base_factory.BaseCMapReaderFactory { - _fetchData(url, compressionType) { - return fetchData(url).then((data) => { - return { - cMapData: data, - compressionType - }; - }); - } - } - exports2.NodeCMapReaderFactory = NodeCMapReaderFactory; - class NodeStandardFontDataFactory extends _base_factory.BaseStandardFontDataFactory { - _fetchData(url) { - return fetchData(url); - } - } - exports2.NodeStandardFontDataFactory = NodeStandardFontDataFactory; - }, - /* 11 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _restoreInitialState, restoreInitialState_fn, _drawFilter, drawFilter_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.CanvasGraphics = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - var _pattern_helper = __w_pdfjs_require__2(12); - var _image_utils = __w_pdfjs_require__2(13); - const MIN_FONT_SIZE = 16; - const MAX_FONT_SIZE = 100; - const MAX_GROUP_SIZE = 4096; - const EXECUTION_TIME = 15; - const EXECUTION_STEPS = 10; - const MAX_SIZE_TO_COMPILE = 1e3; - const FULL_CHUNK_HEIGHT = 16; - function mirrorContextOperations(ctx, destCtx) { - if (ctx._removeMirroring) { - throw new Error("Context is already forwarding operations."); - } - ctx.__originalSave = ctx.save; - ctx.__originalRestore = ctx.restore; - ctx.__originalRotate = ctx.rotate; - ctx.__originalScale = ctx.scale; - ctx.__originalTranslate = ctx.translate; - ctx.__originalTransform = ctx.transform; - ctx.__originalSetTransform = ctx.setTransform; - ctx.__originalResetTransform = ctx.resetTransform; - ctx.__originalClip = ctx.clip; - ctx.__originalMoveTo = ctx.moveTo; - ctx.__originalLineTo = ctx.lineTo; - ctx.__originalBezierCurveTo = ctx.bezierCurveTo; - ctx.__originalRect = ctx.rect; - ctx.__originalClosePath = ctx.closePath; - ctx.__originalBeginPath = ctx.beginPath; - ctx._removeMirroring = () => { - ctx.save = ctx.__originalSave; - ctx.restore = ctx.__originalRestore; - ctx.rotate = ctx.__originalRotate; - ctx.scale = ctx.__originalScale; - ctx.translate = ctx.__originalTranslate; - ctx.transform = ctx.__originalTransform; - ctx.setTransform = ctx.__originalSetTransform; - ctx.resetTransform = ctx.__originalResetTransform; - ctx.clip = ctx.__originalClip; - ctx.moveTo = ctx.__originalMoveTo; - ctx.lineTo = ctx.__originalLineTo; - ctx.bezierCurveTo = ctx.__originalBezierCurveTo; - ctx.rect = ctx.__originalRect; - ctx.closePath = ctx.__originalClosePath; - ctx.beginPath = ctx.__originalBeginPath; - delete ctx._removeMirroring; - }; - ctx.save = function ctxSave() { - destCtx.save(); - this.__originalSave(); - }; - ctx.restore = function ctxRestore() { - destCtx.restore(); - this.__originalRestore(); - }; - ctx.translate = function ctxTranslate(x2, y2) { - destCtx.translate(x2, y2); - this.__originalTranslate(x2, y2); - }; - ctx.scale = function ctxScale(x2, y2) { - destCtx.scale(x2, y2); - this.__originalScale(x2, y2); - }; - ctx.transform = function ctxTransform(a2, b2, c2, d2, e2, f2) { - destCtx.transform(a2, b2, c2, d2, e2, f2); - this.__originalTransform(a2, b2, c2, d2, e2, f2); - }; - ctx.setTransform = function ctxSetTransform(a2, b2, c2, d2, e2, f2) { - destCtx.setTransform(a2, b2, c2, d2, e2, f2); - this.__originalSetTransform(a2, b2, c2, d2, e2, f2); - }; - ctx.resetTransform = function ctxResetTransform() { - destCtx.resetTransform(); - this.__originalResetTransform(); - }; - ctx.rotate = function ctxRotate(angle) { - destCtx.rotate(angle); - this.__originalRotate(angle); - }; - ctx.clip = function ctxRotate(rule) { - destCtx.clip(rule); - this.__originalClip(rule); - }; - ctx.moveTo = function(x2, y2) { - destCtx.moveTo(x2, y2); - this.__originalMoveTo(x2, y2); - }; - ctx.lineTo = function(x2, y2) { - destCtx.lineTo(x2, y2); - this.__originalLineTo(x2, y2); - }; - ctx.bezierCurveTo = function(cp1x, cp1y, cp2x, cp2y, x2, y2) { - destCtx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x2, y2); - this.__originalBezierCurveTo(cp1x, cp1y, cp2x, cp2y, x2, y2); - }; - ctx.rect = function(x2, y2, width, height) { - destCtx.rect(x2, y2, width, height); - this.__originalRect(x2, y2, width, height); - }; - ctx.closePath = function() { - destCtx.closePath(); - this.__originalClosePath(); - }; - ctx.beginPath = function() { - destCtx.beginPath(); - this.__originalBeginPath(); - }; - } - class CachedCanvases { - constructor(canvasFactory) { - this.canvasFactory = canvasFactory; - this.cache = /* @__PURE__ */ Object.create(null); - } - getCanvas(id, width, height) { - let canvasEntry; - if (this.cache[id] !== void 0) { - canvasEntry = this.cache[id]; - this.canvasFactory.reset(canvasEntry, width, height); - } else { - canvasEntry = this.canvasFactory.create(width, height); - this.cache[id] = canvasEntry; - } - return canvasEntry; - } - delete(id) { - delete this.cache[id]; - } - clear() { - for (const id in this.cache) { - const canvasEntry = this.cache[id]; - this.canvasFactory.destroy(canvasEntry); - delete this.cache[id]; - } - } - } - function drawImageAtIntegerCoords(ctx, srcImg, srcX, srcY, srcW, srcH, destX, destY, destW, destH) { - const [a2, b2, c2, d2, tx, ty] = (0, _display_utils2.getCurrentTransform)(ctx); - if (b2 === 0 && c2 === 0) { - const tlX = destX * a2 + tx; - const rTlX = Math.round(tlX); - const tlY = destY * d2 + ty; - const rTlY = Math.round(tlY); - const brX = (destX + destW) * a2 + tx; - const rWidth = Math.abs(Math.round(brX) - rTlX) || 1; - const brY = (destY + destH) * d2 + ty; - const rHeight = Math.abs(Math.round(brY) - rTlY) || 1; - ctx.setTransform(Math.sign(a2), 0, 0, Math.sign(d2), rTlX, rTlY); - ctx.drawImage(srcImg, srcX, srcY, srcW, srcH, 0, 0, rWidth, rHeight); - ctx.setTransform(a2, b2, c2, d2, tx, ty); - return [rWidth, rHeight]; - } - if (a2 === 0 && d2 === 0) { - const tlX = destY * c2 + tx; - const rTlX = Math.round(tlX); - const tlY = destX * b2 + ty; - const rTlY = Math.round(tlY); - const brX = (destY + destH) * c2 + tx; - const rWidth = Math.abs(Math.round(brX) - rTlX) || 1; - const brY = (destX + destW) * b2 + ty; - const rHeight = Math.abs(Math.round(brY) - rTlY) || 1; - ctx.setTransform(0, Math.sign(b2), Math.sign(c2), 0, rTlX, rTlY); - ctx.drawImage(srcImg, srcX, srcY, srcW, srcH, 0, 0, rHeight, rWidth); - ctx.setTransform(a2, b2, c2, d2, tx, ty); - return [rHeight, rWidth]; - } - ctx.drawImage(srcImg, srcX, srcY, srcW, srcH, destX, destY, destW, destH); - const scaleX = Math.hypot(a2, b2); - const scaleY = Math.hypot(c2, d2); - return [scaleX * destW, scaleY * destH]; - } - function compileType3Glyph(imgData) { - const { - width, - height - } = imgData; - if (width > MAX_SIZE_TO_COMPILE || height > MAX_SIZE_TO_COMPILE) { - return null; - } - const POINT_TO_PROCESS_LIMIT = 1e3; - const POINT_TYPES = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]); - const width1 = width + 1; - let points = new Uint8Array(width1 * (height + 1)); - let i2, j2, j0; - const lineSize = width + 7 & ~7; - let data = new Uint8Array(lineSize * height), pos = 0; - for (const elem of imgData.data) { - let mask = 128; - while (mask > 0) { - data[pos++] = elem & mask ? 0 : 255; - mask >>= 1; - } - } - let count = 0; - pos = 0; - if (data[pos] !== 0) { - points[0] = 1; - ++count; - } - for (j2 = 1; j2 < width; j2++) { - if (data[pos] !== data[pos + 1]) { - points[j2] = data[pos] ? 2 : 1; - ++count; - } - pos++; - } - if (data[pos] !== 0) { - points[j2] = 2; - ++count; - } - for (i2 = 1; i2 < height; i2++) { - pos = i2 * lineSize; - j0 = i2 * width1; - if (data[pos - lineSize] !== data[pos]) { - points[j0] = data[pos] ? 1 : 8; - ++count; - } - let sum = (data[pos] ? 4 : 0) + (data[pos - lineSize] ? 8 : 0); - for (j2 = 1; j2 < width; j2++) { - sum = (sum >> 2) + (data[pos + 1] ? 4 : 0) + (data[pos - lineSize + 1] ? 8 : 0); - if (POINT_TYPES[sum]) { - points[j0 + j2] = POINT_TYPES[sum]; - ++count; - } - pos++; - } - if (data[pos - lineSize] !== data[pos]) { - points[j0 + j2] = data[pos] ? 2 : 4; - ++count; - } - if (count > POINT_TO_PROCESS_LIMIT) { - return null; - } - } - pos = lineSize * (height - 1); - j0 = i2 * width1; - if (data[pos] !== 0) { - points[j0] = 8; - ++count; - } - for (j2 = 1; j2 < width; j2++) { - if (data[pos] !== data[pos + 1]) { - points[j0 + j2] = data[pos] ? 4 : 8; - ++count; - } - pos++; - } - if (data[pos] !== 0) { - points[j0 + j2] = 4; - ++count; - } - if (count > POINT_TO_PROCESS_LIMIT) { - return null; - } - const steps = new Int32Array([0, width1, -1, 0, -width1, 0, 0, 0, 1]); - const path = new Path2D(); - for (i2 = 0; count && i2 <= height; i2++) { - let p2 = i2 * width1; - const end = p2 + width; - while (p2 < end && !points[p2]) { - p2++; - } - if (p2 === end) { - continue; - } - path.moveTo(p2 % width1, i2); - const p0 = p2; - let type = points[p2]; - do { - const step = steps[type]; - do { - p2 += step; - } while (!points[p2]); - const pp = points[p2]; - if (pp !== 5 && pp !== 10) { - type = pp; - points[p2] = 0; - } else { - type = pp & 51 * type >> 4; - points[p2] &= type >> 2 | type << 2; - } - path.lineTo(p2 % width1, p2 / width1 | 0); - if (!points[p2]) { - --count; - } - } while (p0 !== p2); - --i2; - } - data = null; - points = null; - const drawOutline = function(c2) { - c2.save(); - c2.scale(1 / width, -1 / height); - c2.translate(0, -height); - c2.fill(path); - c2.beginPath(); - c2.restore(); - }; - return drawOutline; - } - class CanvasExtraState { - constructor(width, height) { - this.alphaIsShape = false; - this.fontSize = 0; - this.fontSizeScale = 1; - this.textMatrix = _util2.IDENTITY_MATRIX; - this.textMatrixScale = 1; - this.fontMatrix = _util2.FONT_IDENTITY_MATRIX; - this.leading = 0; - this.x = 0; - this.y = 0; - this.lineX = 0; - this.lineY = 0; - this.charSpacing = 0; - this.wordSpacing = 0; - this.textHScale = 1; - this.textRenderingMode = _util2.TextRenderingMode.FILL; - this.textRise = 0; - this.fillColor = "#000000"; - this.strokeColor = "#000000"; - this.patternFill = false; - this.fillAlpha = 1; - this.strokeAlpha = 1; - this.lineWidth = 1; - this.activeSMask = null; - this.transferMaps = "none"; - this.startNewPathAndClipBox([0, 0, width, height]); - } - clone() { - const clone2 = Object.create(this); - clone2.clipBox = this.clipBox.slice(); - return clone2; - } - setCurrentPoint(x2, y2) { - this.x = x2; - this.y = y2; - } - updatePathMinMax(transform, x2, y2) { - [x2, y2] = _util2.Util.applyTransform([x2, y2], transform); - this.minX = Math.min(this.minX, x2); - this.minY = Math.min(this.minY, y2); - this.maxX = Math.max(this.maxX, x2); - this.maxY = Math.max(this.maxY, y2); - } - updateRectMinMax(transform, rect) { - const p1 = _util2.Util.applyTransform(rect, transform); - const p2 = _util2.Util.applyTransform(rect.slice(2), transform); - this.minX = Math.min(this.minX, p1[0], p2[0]); - this.minY = Math.min(this.minY, p1[1], p2[1]); - this.maxX = Math.max(this.maxX, p1[0], p2[0]); - this.maxY = Math.max(this.maxY, p1[1], p2[1]); - } - updateScalingPathMinMax(transform, minMax) { - _util2.Util.scaleMinMax(transform, minMax); - this.minX = Math.min(this.minX, minMax[0]); - this.maxX = Math.max(this.maxX, minMax[1]); - this.minY = Math.min(this.minY, minMax[2]); - this.maxY = Math.max(this.maxY, minMax[3]); - } - updateCurvePathMinMax(transform, x0, y0, x1, y1, x2, y2, x3, y3, minMax) { - const box = _util2.Util.bezierBoundingBox(x0, y0, x1, y1, x2, y2, x3, y3); - if (minMax) { - minMax[0] = Math.min(minMax[0], box[0], box[2]); - minMax[1] = Math.max(minMax[1], box[0], box[2]); - minMax[2] = Math.min(minMax[2], box[1], box[3]); - minMax[3] = Math.max(minMax[3], box[1], box[3]); - return; - } - this.updateRectMinMax(transform, box); - } - getPathBoundingBox(pathType = _pattern_helper.PathType.FILL, transform = null) { - const box = [this.minX, this.minY, this.maxX, this.maxY]; - if (pathType === _pattern_helper.PathType.STROKE) { - if (!transform) { - (0, _util2.unreachable)("Stroke bounding box must include transform."); - } - const scale = _util2.Util.singularValueDecompose2dScale(transform); - const xStrokePad = scale[0] * this.lineWidth / 2; - const yStrokePad = scale[1] * this.lineWidth / 2; - box[0] -= xStrokePad; - box[1] -= yStrokePad; - box[2] += xStrokePad; - box[3] += yStrokePad; - } - return box; - } - updateClipFromPath() { - const intersect = _util2.Util.intersect(this.clipBox, this.getPathBoundingBox()); - this.startNewPathAndClipBox(intersect || [0, 0, 0, 0]); - } - isEmptyClip() { - return this.minX === Infinity; - } - startNewPathAndClipBox(box) { - this.clipBox = box; - this.minX = Infinity; - this.minY = Infinity; - this.maxX = 0; - this.maxY = 0; - } - getClippedPathBoundingBox(pathType = _pattern_helper.PathType.FILL, transform = null) { - return _util2.Util.intersect(this.clipBox, this.getPathBoundingBox(pathType, transform)); - } - } - function putBinaryImageData(ctx, imgData) { - if (typeof ImageData !== "undefined" && imgData instanceof ImageData) { - ctx.putImageData(imgData, 0, 0); - return; - } - const height = imgData.height, width = imgData.width; - const partialChunkHeight = height % FULL_CHUNK_HEIGHT; - const fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT; - const totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1; - const chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT); - let srcPos = 0, destPos; - const src = imgData.data; - const dest = chunkImgData.data; - let i2, j2, thisChunkHeight, elemsInThisChunk; - if (imgData.kind === _util2.ImageKind.GRAYSCALE_1BPP) { - const srcLength = src.byteLength; - const dest32 = new Uint32Array(dest.buffer, 0, dest.byteLength >> 2); - const dest32DataLength = dest32.length; - const fullSrcDiff = width + 7 >> 3; - const white = 4294967295; - const black = _util2.FeatureTest.isLittleEndian ? 4278190080 : 255; - for (i2 = 0; i2 < totalChunks; i2++) { - thisChunkHeight = i2 < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight; - destPos = 0; - for (j2 = 0; j2 < thisChunkHeight; j2++) { - const srcDiff = srcLength - srcPos; - let k2 = 0; - const kEnd = srcDiff > fullSrcDiff ? width : srcDiff * 8 - 7; - const kEndUnrolled = kEnd & ~7; - let mask = 0; - let srcByte = 0; - for (; k2 < kEndUnrolled; k2 += 8) { - srcByte = src[srcPos++]; - dest32[destPos++] = srcByte & 128 ? white : black; - dest32[destPos++] = srcByte & 64 ? white : black; - dest32[destPos++] = srcByte & 32 ? white : black; - dest32[destPos++] = srcByte & 16 ? white : black; - dest32[destPos++] = srcByte & 8 ? white : black; - dest32[destPos++] = srcByte & 4 ? white : black; - dest32[destPos++] = srcByte & 2 ? white : black; - dest32[destPos++] = srcByte & 1 ? white : black; - } - for (; k2 < kEnd; k2++) { - if (mask === 0) { - srcByte = src[srcPos++]; - mask = 128; - } - dest32[destPos++] = srcByte & mask ? white : black; - mask >>= 1; - } - } - while (destPos < dest32DataLength) { - dest32[destPos++] = 0; - } - ctx.putImageData(chunkImgData, 0, i2 * FULL_CHUNK_HEIGHT); - } - } else if (imgData.kind === _util2.ImageKind.RGBA_32BPP) { - j2 = 0; - elemsInThisChunk = width * FULL_CHUNK_HEIGHT * 4; - for (i2 = 0; i2 < fullChunks; i2++) { - dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk)); - srcPos += elemsInThisChunk; - ctx.putImageData(chunkImgData, 0, j2); - j2 += FULL_CHUNK_HEIGHT; - } - if (i2 < totalChunks) { - elemsInThisChunk = width * partialChunkHeight * 4; - dest.set(src.subarray(srcPos, srcPos + elemsInThisChunk)); - ctx.putImageData(chunkImgData, 0, j2); - } - } else if (imgData.kind === _util2.ImageKind.RGB_24BPP) { - thisChunkHeight = FULL_CHUNK_HEIGHT; - elemsInThisChunk = width * thisChunkHeight; - for (i2 = 0; i2 < totalChunks; i2++) { - if (i2 >= fullChunks) { - thisChunkHeight = partialChunkHeight; - elemsInThisChunk = width * thisChunkHeight; - } - destPos = 0; - for (j2 = elemsInThisChunk; j2--; ) { - dest[destPos++] = src[srcPos++]; - dest[destPos++] = src[srcPos++]; - dest[destPos++] = src[srcPos++]; - dest[destPos++] = 255; - } - ctx.putImageData(chunkImgData, 0, i2 * FULL_CHUNK_HEIGHT); - } - } else { - throw new Error(`bad image kind: ${imgData.kind}`); - } - } - function putBinaryImageMask(ctx, imgData) { - if (imgData.bitmap) { - ctx.drawImage(imgData.bitmap, 0, 0); - return; - } - const height = imgData.height, width = imgData.width; - const partialChunkHeight = height % FULL_CHUNK_HEIGHT; - const fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT; - const totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1; - const chunkImgData = ctx.createImageData(width, FULL_CHUNK_HEIGHT); - let srcPos = 0; - const src = imgData.data; - const dest = chunkImgData.data; - for (let i2 = 0; i2 < totalChunks; i2++) { - const thisChunkHeight = i2 < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight; - ({ - srcPos - } = (0, _image_utils.convertBlackAndWhiteToRGBA)({ - src, - srcPos, - dest, - width, - height: thisChunkHeight, - nonBlackColor: 0 - })); - ctx.putImageData(chunkImgData, 0, i2 * FULL_CHUNK_HEIGHT); - } - } - function copyCtxState(sourceCtx, destCtx) { - const properties = ["strokeStyle", "fillStyle", "fillRule", "globalAlpha", "lineWidth", "lineCap", "lineJoin", "miterLimit", "globalCompositeOperation", "font", "filter"]; - for (const property of properties) { - if (sourceCtx[property] !== void 0) { - destCtx[property] = sourceCtx[property]; - } - } - if (sourceCtx.setLineDash !== void 0) { - destCtx.setLineDash(sourceCtx.getLineDash()); - destCtx.lineDashOffset = sourceCtx.lineDashOffset; - } - } - function resetCtxToDefault(ctx) { - ctx.strokeStyle = ctx.fillStyle = "#000000"; - ctx.fillRule = "nonzero"; - ctx.globalAlpha = 1; - ctx.lineWidth = 1; - ctx.lineCap = "butt"; - ctx.lineJoin = "miter"; - ctx.miterLimit = 10; - ctx.globalCompositeOperation = "source-over"; - ctx.font = "10px sans-serif"; - if (ctx.setLineDash !== void 0) { - ctx.setLineDash([]); - ctx.lineDashOffset = 0; - } - if (!_util2.isNodeJS) { - const { - filter - } = ctx; - if (filter !== "none" && filter !== "") { - ctx.filter = "none"; - } - } - } - function composeSMaskBackdrop(bytes, r0, g0, b0) { - const length = bytes.length; - for (let i2 = 3; i2 < length; i2 += 4) { - const alpha = bytes[i2]; - if (alpha === 0) { - bytes[i2 - 3] = r0; - bytes[i2 - 2] = g0; - bytes[i2 - 1] = b0; - } else if (alpha < 255) { - const alpha_ = 255 - alpha; - bytes[i2 - 3] = bytes[i2 - 3] * alpha + r0 * alpha_ >> 8; - bytes[i2 - 2] = bytes[i2 - 2] * alpha + g0 * alpha_ >> 8; - bytes[i2 - 1] = bytes[i2 - 1] * alpha + b0 * alpha_ >> 8; - } - } - } - function composeSMaskAlpha(maskData, layerData, transferMap) { - const length = maskData.length; - const scale = 1 / 255; - for (let i2 = 3; i2 < length; i2 += 4) { - const alpha = transferMap ? transferMap[maskData[i2]] : maskData[i2]; - layerData[i2] = layerData[i2] * alpha * scale | 0; - } - } - function composeSMaskLuminosity(maskData, layerData, transferMap) { - const length = maskData.length; - for (let i2 = 3; i2 < length; i2 += 4) { - const y2 = maskData[i2 - 3] * 77 + maskData[i2 - 2] * 152 + maskData[i2 - 1] * 28; - layerData[i2] = transferMap ? layerData[i2] * transferMap[y2 >> 8] >> 8 : layerData[i2] * y2 >> 16; - } - } - function genericComposeSMask(maskCtx, layerCtx, width, height, subtype, backdrop, transferMap, layerOffsetX, layerOffsetY, maskOffsetX, maskOffsetY) { - const hasBackdrop = !!backdrop; - const r0 = hasBackdrop ? backdrop[0] : 0; - const g0 = hasBackdrop ? backdrop[1] : 0; - const b0 = hasBackdrop ? backdrop[2] : 0; - const composeFn = subtype === "Luminosity" ? composeSMaskLuminosity : composeSMaskAlpha; - const PIXELS_TO_PROCESS = 1048576; - const chunkSize = Math.min(height, Math.ceil(PIXELS_TO_PROCESS / width)); - for (let row = 0; row < height; row += chunkSize) { - const chunkHeight = Math.min(chunkSize, height - row); - const maskData = maskCtx.getImageData(layerOffsetX - maskOffsetX, row + (layerOffsetY - maskOffsetY), width, chunkHeight); - const layerData = layerCtx.getImageData(layerOffsetX, row + layerOffsetY, width, chunkHeight); - if (hasBackdrop) { - composeSMaskBackdrop(maskData.data, r0, g0, b0); - } - composeFn(maskData.data, layerData.data, transferMap); - layerCtx.putImageData(layerData, layerOffsetX, row + layerOffsetY); - } - } - function composeSMask(ctx, smask, layerCtx, layerBox) { - const layerOffsetX = layerBox[0]; - const layerOffsetY = layerBox[1]; - const layerWidth = layerBox[2] - layerOffsetX; - const layerHeight = layerBox[3] - layerOffsetY; - if (layerWidth === 0 || layerHeight === 0) { - return; - } - genericComposeSMask(smask.context, layerCtx, layerWidth, layerHeight, smask.subtype, smask.backdrop, smask.transferMap, layerOffsetX, layerOffsetY, smask.offsetX, smask.offsetY); - ctx.save(); - ctx.globalAlpha = 1; - ctx.globalCompositeOperation = "source-over"; - ctx.setTransform(1, 0, 0, 1, 0, 0); - ctx.drawImage(layerCtx.canvas, 0, 0); - ctx.restore(); - } - function getImageSmoothingEnabled(transform, interpolate) { - const scale = _util2.Util.singularValueDecompose2dScale(transform); - scale[0] = Math.fround(scale[0]); - scale[1] = Math.fround(scale[1]); - const actualScale = Math.fround((globalThis.devicePixelRatio || 1) * _display_utils2.PixelsPerInch.PDF_TO_CSS_UNITS); - if (interpolate !== void 0) { - return interpolate; - } else if (scale[0] <= actualScale || scale[1] <= actualScale) { - return true; - } - return false; - } - const LINE_CAP_STYLES = ["butt", "round", "square"]; - const LINE_JOIN_STYLES = ["miter", "round", "bevel"]; - const NORMAL_CLIP = {}; - const EO_CLIP = {}; - const _CanvasGraphics = class { - constructor(canvasCtx, commonObjs, objs, canvasFactory, filterFactory, { - optionalContentConfig, - markedContentStack = null - }, annotationCanvasMap, pageColors) { - __privateAdd(this, _restoreInitialState); - __privateAdd(this, _drawFilter); - this.ctx = canvasCtx; - this.current = new CanvasExtraState(this.ctx.canvas.width, this.ctx.canvas.height); - this.stateStack = []; - this.pendingClip = null; - this.pendingEOFill = false; - this.res = null; - this.xobjs = null; - this.commonObjs = commonObjs; - this.objs = objs; - this.canvasFactory = canvasFactory; - this.filterFactory = filterFactory; - this.groupStack = []; - this.processingType3 = null; - this.baseTransform = null; - this.baseTransformStack = []; - this.groupLevel = 0; - this.smaskStack = []; - this.smaskCounter = 0; - this.tempSMask = null; - this.suspendedCtx = null; - this.contentVisible = true; - this.markedContentStack = markedContentStack || []; - this.optionalContentConfig = optionalContentConfig; - this.cachedCanvases = new CachedCanvases(this.canvasFactory); - this.cachedPatterns = /* @__PURE__ */ new Map(); - this.annotationCanvasMap = annotationCanvasMap; - this.viewportScale = 1; - this.outputScaleX = 1; - this.outputScaleY = 1; - this.pageColors = pageColors; - this._cachedScaleForStroking = [-1, 0]; - this._cachedGetSinglePixelWidth = null; - this._cachedBitmapsMap = /* @__PURE__ */ new Map(); - } - getObject(data, fallback = null) { - if (typeof data === "string") { - return data.startsWith("g_") ? this.commonObjs.get(data) : this.objs.get(data); - } - return fallback; - } - beginDrawing({ - transform, - viewport, - transparency = false, - background = null - }) { - const width = this.ctx.canvas.width; - const height = this.ctx.canvas.height; - const savedFillStyle = this.ctx.fillStyle; - this.ctx.fillStyle = background || "#ffffff"; - this.ctx.fillRect(0, 0, width, height); - this.ctx.fillStyle = savedFillStyle; - if (transparency) { - const transparentCanvas = this.cachedCanvases.getCanvas("transparent", width, height); - this.compositeCtx = this.ctx; - this.transparentCanvas = transparentCanvas.canvas; - this.ctx = transparentCanvas.context; - this.ctx.save(); - this.ctx.transform(...(0, _display_utils2.getCurrentTransform)(this.compositeCtx)); - } - this.ctx.save(); - resetCtxToDefault(this.ctx); - if (transform) { - this.ctx.transform(...transform); - this.outputScaleX = transform[0]; - this.outputScaleY = transform[0]; - } - this.ctx.transform(...viewport.transform); - this.viewportScale = viewport.scale; - this.baseTransform = (0, _display_utils2.getCurrentTransform)(this.ctx); - } - executeOperatorList(operatorList, executionStartIdx, continueCallback, stepper) { - const argsArray = operatorList.argsArray; - const fnArray = operatorList.fnArray; - let i2 = executionStartIdx || 0; - const argsArrayLen = argsArray.length; - if (argsArrayLen === i2) { - return i2; - } - const chunkOperations = argsArrayLen - i2 > EXECUTION_STEPS && typeof continueCallback === "function"; - const endTime = chunkOperations ? Date.now() + EXECUTION_TIME : 0; - let steps = 0; - const commonObjs = this.commonObjs; - const objs = this.objs; - let fnId; - while (true) { - if (stepper !== void 0 && i2 === stepper.nextBreakPoint) { - stepper.breakIt(i2, continueCallback); - return i2; - } - fnId = fnArray[i2]; - if (fnId !== _util2.OPS.dependency) { - this[fnId].apply(this, argsArray[i2]); - } else { - for (const depObjId of argsArray[i2]) { - const objsPool = depObjId.startsWith("g_") ? commonObjs : objs; - if (!objsPool.has(depObjId)) { - objsPool.get(depObjId, continueCallback); - return i2; - } - } - } - i2++; - if (i2 === argsArrayLen) { - return i2; - } - if (chunkOperations && ++steps > EXECUTION_STEPS) { - if (Date.now() > endTime) { - continueCallback(); - return i2; - } - steps = 0; - } - } - } - endDrawing() { - __privateMethod(this, _restoreInitialState, restoreInitialState_fn).call(this); - this.cachedCanvases.clear(); - this.cachedPatterns.clear(); - for (const cache of this._cachedBitmapsMap.values()) { - for (const canvas of cache.values()) { - if (typeof HTMLCanvasElement !== "undefined" && canvas instanceof HTMLCanvasElement) { - canvas.width = canvas.height = 0; - } - } - cache.clear(); - } - this._cachedBitmapsMap.clear(); - __privateMethod(this, _drawFilter, drawFilter_fn).call(this); - } - _scaleImage(img, inverseTransform) { - const width = img.width; - const height = img.height; - let widthScale = Math.max(Math.hypot(inverseTransform[0], inverseTransform[1]), 1); - let heightScale = Math.max(Math.hypot(inverseTransform[2], inverseTransform[3]), 1); - let paintWidth = width, paintHeight = height; - let tmpCanvasId = "prescale1"; - let tmpCanvas, tmpCtx; - while (widthScale > 2 && paintWidth > 1 || heightScale > 2 && paintHeight > 1) { - let newWidth = paintWidth, newHeight = paintHeight; - if (widthScale > 2 && paintWidth > 1) { - newWidth = paintWidth >= 16384 ? Math.floor(paintWidth / 2) - 1 || 1 : Math.ceil(paintWidth / 2); - widthScale /= paintWidth / newWidth; - } - if (heightScale > 2 && paintHeight > 1) { - newHeight = paintHeight >= 16384 ? Math.floor(paintHeight / 2) - 1 || 1 : Math.ceil(paintHeight) / 2; - heightScale /= paintHeight / newHeight; - } - tmpCanvas = this.cachedCanvases.getCanvas(tmpCanvasId, newWidth, newHeight); - tmpCtx = tmpCanvas.context; - tmpCtx.clearRect(0, 0, newWidth, newHeight); - tmpCtx.drawImage(img, 0, 0, paintWidth, paintHeight, 0, 0, newWidth, newHeight); - img = tmpCanvas.canvas; - paintWidth = newWidth; - paintHeight = newHeight; - tmpCanvasId = tmpCanvasId === "prescale1" ? "prescale2" : "prescale1"; - } - return { - img, - paintWidth, - paintHeight - }; - } - _createMaskCanvas(img) { - const ctx = this.ctx; - const { - width, - height - } = img; - const fillColor = this.current.fillColor; - const isPatternFill = this.current.patternFill; - const currentTransform = (0, _display_utils2.getCurrentTransform)(ctx); - let cache, cacheKey, scaled, maskCanvas; - if ((img.bitmap || img.data) && img.count > 1) { - const mainKey = img.bitmap || img.data.buffer; - cacheKey = JSON.stringify(isPatternFill ? currentTransform : [currentTransform.slice(0, 4), fillColor]); - cache = this._cachedBitmapsMap.get(mainKey); - if (!cache) { - cache = /* @__PURE__ */ new Map(); - this._cachedBitmapsMap.set(mainKey, cache); - } - const cachedImage = cache.get(cacheKey); - if (cachedImage && !isPatternFill) { - const offsetX2 = Math.round(Math.min(currentTransform[0], currentTransform[2]) + currentTransform[4]); - const offsetY2 = Math.round(Math.min(currentTransform[1], currentTransform[3]) + currentTransform[5]); - return { - canvas: cachedImage, - offsetX: offsetX2, - offsetY: offsetY2 - }; - } - scaled = cachedImage; - } - if (!scaled) { - maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); - putBinaryImageMask(maskCanvas.context, img); - } - let maskToCanvas = _util2.Util.transform(currentTransform, [1 / width, 0, 0, -1 / height, 0, 0]); - maskToCanvas = _util2.Util.transform(maskToCanvas, [1, 0, 0, 1, 0, -height]); - const cord1 = _util2.Util.applyTransform([0, 0], maskToCanvas); - const cord2 = _util2.Util.applyTransform([width, height], maskToCanvas); - const rect = _util2.Util.normalizeRect([cord1[0], cord1[1], cord2[0], cord2[1]]); - const drawnWidth = Math.round(rect[2] - rect[0]) || 1; - const drawnHeight = Math.round(rect[3] - rect[1]) || 1; - const fillCanvas = this.cachedCanvases.getCanvas("fillCanvas", drawnWidth, drawnHeight); - const fillCtx = fillCanvas.context; - const offsetX = Math.min(cord1[0], cord2[0]); - const offsetY = Math.min(cord1[1], cord2[1]); - fillCtx.translate(-offsetX, -offsetY); - fillCtx.transform(...maskToCanvas); - if (!scaled) { - scaled = this._scaleImage(maskCanvas.canvas, (0, _display_utils2.getCurrentTransformInverse)(fillCtx)); - scaled = scaled.img; - if (cache && isPatternFill) { - cache.set(cacheKey, scaled); - } - } - fillCtx.imageSmoothingEnabled = getImageSmoothingEnabled((0, _display_utils2.getCurrentTransform)(fillCtx), img.interpolate); - drawImageAtIntegerCoords(fillCtx, scaled, 0, 0, scaled.width, scaled.height, 0, 0, width, height); - fillCtx.globalCompositeOperation = "source-in"; - const inverse = _util2.Util.transform((0, _display_utils2.getCurrentTransformInverse)(fillCtx), [1, 0, 0, 1, -offsetX, -offsetY]); - fillCtx.fillStyle = isPatternFill ? fillColor.getPattern(ctx, this, inverse, _pattern_helper.PathType.FILL) : fillColor; - fillCtx.fillRect(0, 0, width, height); - if (cache && !isPatternFill) { - this.cachedCanvases.delete("fillCanvas"); - cache.set(cacheKey, fillCanvas.canvas); - } - return { - canvas: fillCanvas.canvas, - offsetX: Math.round(offsetX), - offsetY: Math.round(offsetY) - }; - } - setLineWidth(width) { - if (width !== this.current.lineWidth) { - this._cachedScaleForStroking[0] = -1; - } - this.current.lineWidth = width; - this.ctx.lineWidth = width; - } - setLineCap(style) { - this.ctx.lineCap = LINE_CAP_STYLES[style]; - } - setLineJoin(style) { - this.ctx.lineJoin = LINE_JOIN_STYLES[style]; - } - setMiterLimit(limit) { - this.ctx.miterLimit = limit; - } - setDash(dashArray, dashPhase) { - const ctx = this.ctx; - if (ctx.setLineDash !== void 0) { - ctx.setLineDash(dashArray); - ctx.lineDashOffset = dashPhase; - } - } - setRenderingIntent(intent) { - } - setFlatness(flatness) { - } - setGState(states) { - for (const [key, value] of states) { - switch (key) { - case "LW": - this.setLineWidth(value); - break; - case "LC": - this.setLineCap(value); - break; - case "LJ": - this.setLineJoin(value); - break; - case "ML": - this.setMiterLimit(value); - break; - case "D": - this.setDash(value[0], value[1]); - break; - case "RI": - this.setRenderingIntent(value); - break; - case "FL": - this.setFlatness(value); - break; - case "Font": - this.setFont(value[0], value[1]); - break; - case "CA": - this.current.strokeAlpha = value; - break; - case "ca": - this.current.fillAlpha = value; - this.ctx.globalAlpha = value; - break; - case "BM": - this.ctx.globalCompositeOperation = value; - break; - case "SMask": - this.current.activeSMask = value ? this.tempSMask : null; - this.tempSMask = null; - this.checkSMaskState(); - break; - case "TR": - this.ctx.filter = this.current.transferMaps = this.filterFactory.addFilter(value); - break; - } - } - } - get inSMaskMode() { - return !!this.suspendedCtx; - } - checkSMaskState() { - const inSMaskMode = this.inSMaskMode; - if (this.current.activeSMask && !inSMaskMode) { - this.beginSMaskMode(); - } else if (!this.current.activeSMask && inSMaskMode) { - this.endSMaskMode(); - } - } - beginSMaskMode() { - if (this.inSMaskMode) { - throw new Error("beginSMaskMode called while already in smask mode"); - } - const drawnWidth = this.ctx.canvas.width; - const drawnHeight = this.ctx.canvas.height; - const cacheId = "smaskGroupAt" + this.groupLevel; - const scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight); - this.suspendedCtx = this.ctx; - this.ctx = scratchCanvas.context; - const ctx = this.ctx; - ctx.setTransform(...(0, _display_utils2.getCurrentTransform)(this.suspendedCtx)); - copyCtxState(this.suspendedCtx, ctx); - mirrorContextOperations(ctx, this.suspendedCtx); - this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]); - } - endSMaskMode() { - if (!this.inSMaskMode) { - throw new Error("endSMaskMode called while not in smask mode"); - } - this.ctx._removeMirroring(); - copyCtxState(this.ctx, this.suspendedCtx); - this.ctx = this.suspendedCtx; - this.suspendedCtx = null; - } - compose(dirtyBox) { - if (!this.current.activeSMask) { - return; - } - if (!dirtyBox) { - dirtyBox = [0, 0, this.ctx.canvas.width, this.ctx.canvas.height]; - } else { - dirtyBox[0] = Math.floor(dirtyBox[0]); - dirtyBox[1] = Math.floor(dirtyBox[1]); - dirtyBox[2] = Math.ceil(dirtyBox[2]); - dirtyBox[3] = Math.ceil(dirtyBox[3]); - } - const smask = this.current.activeSMask; - const suspendedCtx = this.suspendedCtx; - composeSMask(suspendedCtx, smask, this.ctx, dirtyBox); - this.ctx.save(); - this.ctx.setTransform(1, 0, 0, 1, 0, 0); - this.ctx.clearRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height); - this.ctx.restore(); - } - save() { - if (this.inSMaskMode) { - copyCtxState(this.ctx, this.suspendedCtx); - this.suspendedCtx.save(); - } else { - this.ctx.save(); - } - const old = this.current; - this.stateStack.push(old); - this.current = old.clone(); - } - restore() { - if (this.stateStack.length === 0 && this.inSMaskMode) { - this.endSMaskMode(); - } - if (this.stateStack.length !== 0) { - this.current = this.stateStack.pop(); - if (this.inSMaskMode) { - this.suspendedCtx.restore(); - copyCtxState(this.suspendedCtx, this.ctx); - } else { - this.ctx.restore(); - } - this.checkSMaskState(); - this.pendingClip = null; - this._cachedScaleForStroking[0] = -1; - this._cachedGetSinglePixelWidth = null; - } - } - transform(a2, b2, c2, d2, e2, f2) { - this.ctx.transform(a2, b2, c2, d2, e2, f2); - this._cachedScaleForStroking[0] = -1; - this._cachedGetSinglePixelWidth = null; - } - constructPath(ops, args, minMax) { - const ctx = this.ctx; - const current = this.current; - let x2 = current.x, y2 = current.y; - let startX, startY; - const currentTransform = (0, _display_utils2.getCurrentTransform)(ctx); - const isScalingMatrix = currentTransform[0] === 0 && currentTransform[3] === 0 || currentTransform[1] === 0 && currentTransform[2] === 0; - const minMaxForBezier = isScalingMatrix ? minMax.slice(0) : null; - for (let i2 = 0, j2 = 0, ii2 = ops.length; i2 < ii2; i2++) { - switch (ops[i2] | 0) { - case _util2.OPS.rectangle: - x2 = args[j2++]; - y2 = args[j2++]; - const width = args[j2++]; - const height = args[j2++]; - const xw = x2 + width; - const yh = y2 + height; - ctx.moveTo(x2, y2); - if (width === 0 || height === 0) { - ctx.lineTo(xw, yh); - } else { - ctx.lineTo(xw, y2); - ctx.lineTo(xw, yh); - ctx.lineTo(x2, yh); - } - if (!isScalingMatrix) { - current.updateRectMinMax(currentTransform, [x2, y2, xw, yh]); - } - ctx.closePath(); - break; - case _util2.OPS.moveTo: - x2 = args[j2++]; - y2 = args[j2++]; - ctx.moveTo(x2, y2); - if (!isScalingMatrix) { - current.updatePathMinMax(currentTransform, x2, y2); - } - break; - case _util2.OPS.lineTo: - x2 = args[j2++]; - y2 = args[j2++]; - ctx.lineTo(x2, y2); - if (!isScalingMatrix) { - current.updatePathMinMax(currentTransform, x2, y2); - } - break; - case _util2.OPS.curveTo: - startX = x2; - startY = y2; - x2 = args[j2 + 4]; - y2 = args[j2 + 5]; - ctx.bezierCurveTo(args[j2], args[j2 + 1], args[j2 + 2], args[j2 + 3], x2, y2); - current.updateCurvePathMinMax(currentTransform, startX, startY, args[j2], args[j2 + 1], args[j2 + 2], args[j2 + 3], x2, y2, minMaxForBezier); - j2 += 6; - break; - case _util2.OPS.curveTo2: - startX = x2; - startY = y2; - ctx.bezierCurveTo(x2, y2, args[j2], args[j2 + 1], args[j2 + 2], args[j2 + 3]); - current.updateCurvePathMinMax(currentTransform, startX, startY, x2, y2, args[j2], args[j2 + 1], args[j2 + 2], args[j2 + 3], minMaxForBezier); - x2 = args[j2 + 2]; - y2 = args[j2 + 3]; - j2 += 4; - break; - case _util2.OPS.curveTo3: - startX = x2; - startY = y2; - x2 = args[j2 + 2]; - y2 = args[j2 + 3]; - ctx.bezierCurveTo(args[j2], args[j2 + 1], x2, y2, x2, y2); - current.updateCurvePathMinMax(currentTransform, startX, startY, args[j2], args[j2 + 1], x2, y2, x2, y2, minMaxForBezier); - j2 += 4; - break; - case _util2.OPS.closePath: - ctx.closePath(); - break; - } - } - if (isScalingMatrix) { - current.updateScalingPathMinMax(currentTransform, minMaxForBezier); - } - current.setCurrentPoint(x2, y2); - } - closePath() { - this.ctx.closePath(); - } - stroke(consumePath = true) { - const ctx = this.ctx; - const strokeColor = this.current.strokeColor; - ctx.globalAlpha = this.current.strokeAlpha; - if (this.contentVisible) { - if (typeof strokeColor === "object" && (strokeColor == null ? void 0 : strokeColor.getPattern)) { - ctx.save(); - ctx.strokeStyle = strokeColor.getPattern(ctx, this, (0, _display_utils2.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.STROKE); - this.rescaleAndStroke(false); - ctx.restore(); - } else { - this.rescaleAndStroke(true); - } - } - if (consumePath) { - this.consumePath(this.current.getClippedPathBoundingBox()); - } - ctx.globalAlpha = this.current.fillAlpha; - } - closeStroke() { - this.closePath(); - this.stroke(); - } - fill(consumePath = true) { - const ctx = this.ctx; - const fillColor = this.current.fillColor; - const isPatternFill = this.current.patternFill; - let needRestore = false; - if (isPatternFill) { - ctx.save(); - ctx.fillStyle = fillColor.getPattern(ctx, this, (0, _display_utils2.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.FILL); - needRestore = true; - } - const intersect = this.current.getClippedPathBoundingBox(); - if (this.contentVisible && intersect !== null) { - if (this.pendingEOFill) { - ctx.fill("evenodd"); - this.pendingEOFill = false; - } else { - ctx.fill(); - } - } - if (needRestore) { - ctx.restore(); - } - if (consumePath) { - this.consumePath(intersect); - } - } - eoFill() { - this.pendingEOFill = true; - this.fill(); - } - fillStroke() { - this.fill(false); - this.stroke(false); - this.consumePath(); - } - eoFillStroke() { - this.pendingEOFill = true; - this.fillStroke(); - } - closeFillStroke() { - this.closePath(); - this.fillStroke(); - } - closeEOFillStroke() { - this.pendingEOFill = true; - this.closePath(); - this.fillStroke(); - } - endPath() { - this.consumePath(); - } - clip() { - this.pendingClip = NORMAL_CLIP; - } - eoClip() { - this.pendingClip = EO_CLIP; - } - beginText() { - this.current.textMatrix = _util2.IDENTITY_MATRIX; - this.current.textMatrixScale = 1; - this.current.x = this.current.lineX = 0; - this.current.y = this.current.lineY = 0; - } - endText() { - const paths = this.pendingTextPaths; - const ctx = this.ctx; - if (paths === void 0) { - ctx.beginPath(); - return; - } - ctx.save(); - ctx.beginPath(); - for (const path of paths) { - ctx.setTransform(...path.transform); - ctx.translate(path.x, path.y); - path.addToPath(ctx, path.fontSize); - } - ctx.restore(); - ctx.clip(); - ctx.beginPath(); - delete this.pendingTextPaths; - } - setCharSpacing(spacing) { - this.current.charSpacing = spacing; - } - setWordSpacing(spacing) { - this.current.wordSpacing = spacing; - } - setHScale(scale) { - this.current.textHScale = scale / 100; - } - setLeading(leading) { - this.current.leading = -leading; - } - setFont(fontRefName, size) { - var _a; - const fontObj = this.commonObjs.get(fontRefName); - const current = this.current; - if (!fontObj) { - throw new Error(`Can't find font for ${fontRefName}`); - } - current.fontMatrix = fontObj.fontMatrix || _util2.FONT_IDENTITY_MATRIX; - if (current.fontMatrix[0] === 0 || current.fontMatrix[3] === 0) { - (0, _util2.warn)("Invalid font matrix for font " + fontRefName); - } - if (size < 0) { - size = -size; - current.fontDirection = -1; - } else { - current.fontDirection = 1; - } - this.current.font = fontObj; - this.current.fontSize = size; - if (fontObj.isType3Font) { - return; - } - const name = fontObj.loadedName || "sans-serif"; - const typeface = ((_a = fontObj.systemFontInfo) == null ? void 0 : _a.css) || `"${name}", ${fontObj.fallbackName}`; - let bold = "normal"; - if (fontObj.black) { - bold = "900"; - } else if (fontObj.bold) { - bold = "bold"; - } - const italic = fontObj.italic ? "italic" : "normal"; - let browserFontSize = size; - if (size < MIN_FONT_SIZE) { - browserFontSize = MIN_FONT_SIZE; - } else if (size > MAX_FONT_SIZE) { - browserFontSize = MAX_FONT_SIZE; - } - this.current.fontSizeScale = size / browserFontSize; - this.ctx.font = `${italic} ${bold} ${browserFontSize}px ${typeface}`; - } - setTextRenderingMode(mode) { - this.current.textRenderingMode = mode; - } - setTextRise(rise) { - this.current.textRise = rise; - } - moveText(x2, y2) { - this.current.x = this.current.lineX += x2; - this.current.y = this.current.lineY += y2; - } - setLeadingMoveText(x2, y2) { - this.setLeading(-y2); - this.moveText(x2, y2); - } - setTextMatrix(a2, b2, c2, d2, e2, f2) { - this.current.textMatrix = [a2, b2, c2, d2, e2, f2]; - this.current.textMatrixScale = Math.hypot(a2, b2); - this.current.x = this.current.lineX = 0; - this.current.y = this.current.lineY = 0; - } - nextLine() { - this.moveText(0, this.current.leading); - } - paintChar(character, x2, y2, patternTransform) { - const ctx = this.ctx; - const current = this.current; - const font = current.font; - const textRenderingMode = current.textRenderingMode; - const fontSize = current.fontSize / current.fontSizeScale; - const fillStrokeMode = textRenderingMode & _util2.TextRenderingMode.FILL_STROKE_MASK; - const isAddToPathSet = !!(textRenderingMode & _util2.TextRenderingMode.ADD_TO_PATH_FLAG); - const patternFill = current.patternFill && !font.missingFile; - let addToPath; - if (font.disableFontFace || isAddToPathSet || patternFill) { - addToPath = font.getPathGenerator(this.commonObjs, character); - } - if (font.disableFontFace || patternFill) { - ctx.save(); - ctx.translate(x2, y2); - ctx.beginPath(); - addToPath(ctx, fontSize); - if (patternTransform) { - ctx.setTransform(...patternTransform); - } - if (fillStrokeMode === _util2.TextRenderingMode.FILL || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - ctx.fill(); - } - if (fillStrokeMode === _util2.TextRenderingMode.STROKE || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - ctx.stroke(); - } - ctx.restore(); - } else { - if (fillStrokeMode === _util2.TextRenderingMode.FILL || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - ctx.fillText(character, x2, y2); - } - if (fillStrokeMode === _util2.TextRenderingMode.STROKE || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - ctx.strokeText(character, x2, y2); - } - } - if (isAddToPathSet) { - const paths = this.pendingTextPaths || (this.pendingTextPaths = []); - paths.push({ - transform: (0, _display_utils2.getCurrentTransform)(ctx), - x: x2, - y: y2, - fontSize, - addToPath - }); - } - } - get isFontSubpixelAAEnabled() { - const { - context: ctx - } = this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled", 10, 10); - ctx.scale(1.5, 1); - ctx.fillText("I", 0, 10); - const data = ctx.getImageData(0, 0, 10, 10).data; - let enabled = false; - for (let i2 = 3; i2 < data.length; i2 += 4) { - if (data[i2] > 0 && data[i2] < 255) { - enabled = true; - break; - } - } - return (0, _util2.shadow)(this, "isFontSubpixelAAEnabled", enabled); - } - showText(glyphs) { - const current = this.current; - const font = current.font; - if (font.isType3Font) { - return this.showType3Text(glyphs); - } - const fontSize = current.fontSize; - if (fontSize === 0) { - return void 0; - } - const ctx = this.ctx; - const fontSizeScale = current.fontSizeScale; - const charSpacing = current.charSpacing; - const wordSpacing = current.wordSpacing; - const fontDirection = current.fontDirection; - const textHScale = current.textHScale * fontDirection; - const glyphsLength = glyphs.length; - const vertical = font.vertical; - const spacingDir = vertical ? 1 : -1; - const defaultVMetrics = font.defaultVMetrics; - const widthAdvanceScale = fontSize * current.fontMatrix[0]; - const simpleFillText = current.textRenderingMode === _util2.TextRenderingMode.FILL && !font.disableFontFace && !current.patternFill; - ctx.save(); - ctx.transform(...current.textMatrix); - ctx.translate(current.x, current.y + current.textRise); - if (fontDirection > 0) { - ctx.scale(textHScale, -1); - } else { - ctx.scale(textHScale, 1); - } - let patternTransform; - if (current.patternFill) { - ctx.save(); - const pattern = current.fillColor.getPattern(ctx, this, (0, _display_utils2.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.FILL); - patternTransform = (0, _display_utils2.getCurrentTransform)(ctx); - ctx.restore(); - ctx.fillStyle = pattern; - } - let lineWidth = current.lineWidth; - const scale = current.textMatrixScale; - if (scale === 0 || lineWidth === 0) { - const fillStrokeMode = current.textRenderingMode & _util2.TextRenderingMode.FILL_STROKE_MASK; - if (fillStrokeMode === _util2.TextRenderingMode.STROKE || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - lineWidth = this.getSinglePixelWidth(); - } - } else { - lineWidth /= scale; - } - if (fontSizeScale !== 1) { - ctx.scale(fontSizeScale, fontSizeScale); - lineWidth /= fontSizeScale; - } - ctx.lineWidth = lineWidth; - if (font.isInvalidPDFjsFont) { - const chars = []; - let width = 0; - for (const glyph of glyphs) { - chars.push(glyph.unicode); - width += glyph.width; - } - ctx.fillText(chars.join(""), 0, 0); - current.x += width * widthAdvanceScale * textHScale; - ctx.restore(); - this.compose(); - return void 0; - } - let x2 = 0, i2; - for (i2 = 0; i2 < glyphsLength; ++i2) { - const glyph = glyphs[i2]; - if (typeof glyph === "number") { - x2 += spacingDir * glyph * fontSize / 1e3; - continue; - } - let restoreNeeded = false; - const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing; - const character = glyph.fontChar; - const accent = glyph.accent; - let scaledX, scaledY; - let width = glyph.width; - if (vertical) { - const vmetric = glyph.vmetric || defaultVMetrics; - const vx = -(glyph.vmetric ? vmetric[1] : width * 0.5) * widthAdvanceScale; - const vy = vmetric[2] * widthAdvanceScale; - width = vmetric ? -vmetric[0] : width; - scaledX = vx / fontSizeScale; - scaledY = (x2 + vy) / fontSizeScale; - } else { - scaledX = x2 / fontSizeScale; - scaledY = 0; - } - if (font.remeasure && width > 0) { - const measuredWidth = ctx.measureText(character).width * 1e3 / fontSize * fontSizeScale; - if (width < measuredWidth && this.isFontSubpixelAAEnabled) { - const characterScaleX = width / measuredWidth; - restoreNeeded = true; - ctx.save(); - ctx.scale(characterScaleX, 1); - scaledX /= characterScaleX; - } else if (width !== measuredWidth) { - scaledX += (width - measuredWidth) / 2e3 * fontSize / fontSizeScale; - } - } - if (this.contentVisible && (glyph.isInFont || font.missingFile)) { - if (simpleFillText && !accent) { - ctx.fillText(character, scaledX, scaledY); - } else { - this.paintChar(character, scaledX, scaledY, patternTransform); - if (accent) { - const scaledAccentX = scaledX + fontSize * accent.offset.x / fontSizeScale; - const scaledAccentY = scaledY - fontSize * accent.offset.y / fontSizeScale; - this.paintChar(accent.fontChar, scaledAccentX, scaledAccentY, patternTransform); - } - } - } - const charWidth = vertical ? width * widthAdvanceScale - spacing * fontDirection : width * widthAdvanceScale + spacing * fontDirection; - x2 += charWidth; - if (restoreNeeded) { - ctx.restore(); - } - } - if (vertical) { - current.y -= x2; - } else { - current.x += x2 * textHScale; - } - ctx.restore(); - this.compose(); - return void 0; - } - showType3Text(glyphs) { - const ctx = this.ctx; - const current = this.current; - const font = current.font; - const fontSize = current.fontSize; - const fontDirection = current.fontDirection; - const spacingDir = font.vertical ? 1 : -1; - const charSpacing = current.charSpacing; - const wordSpacing = current.wordSpacing; - const textHScale = current.textHScale * fontDirection; - const fontMatrix = current.fontMatrix || _util2.FONT_IDENTITY_MATRIX; - const glyphsLength = glyphs.length; - const isTextInvisible = current.textRenderingMode === _util2.TextRenderingMode.INVISIBLE; - let i2, glyph, width, spacingLength; - if (isTextInvisible || fontSize === 0) { - return; - } - this._cachedScaleForStroking[0] = -1; - this._cachedGetSinglePixelWidth = null; - ctx.save(); - ctx.transform(...current.textMatrix); - ctx.translate(current.x, current.y); - ctx.scale(textHScale, fontDirection); - for (i2 = 0; i2 < glyphsLength; ++i2) { - glyph = glyphs[i2]; - if (typeof glyph === "number") { - spacingLength = spacingDir * glyph * fontSize / 1e3; - this.ctx.translate(spacingLength, 0); - current.x += spacingLength * textHScale; - continue; - } - const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing; - const operatorList = font.charProcOperatorList[glyph.operatorListId]; - if (!operatorList) { - (0, _util2.warn)(`Type3 character "${glyph.operatorListId}" is not available.`); - continue; - } - if (this.contentVisible) { - this.processingType3 = glyph; - this.save(); - ctx.scale(fontSize, fontSize); - ctx.transform(...fontMatrix); - this.executeOperatorList(operatorList); - this.restore(); - } - const transformed = _util2.Util.applyTransform([glyph.width, 0], fontMatrix); - width = transformed[0] * fontSize + spacing; - ctx.translate(width, 0); - current.x += width * textHScale; - } - ctx.restore(); - this.processingType3 = null; - } - setCharWidth(xWidth, yWidth) { - } - setCharWidthAndBounds(xWidth, yWidth, llx, lly, urx, ury) { - this.ctx.rect(llx, lly, urx - llx, ury - lly); - this.ctx.clip(); - this.endPath(); - } - getColorN_Pattern(IR) { - let pattern; - if (IR[0] === "TilingPattern") { - const color = IR[1]; - const baseTransform = this.baseTransform || (0, _display_utils2.getCurrentTransform)(this.ctx); - const canvasGraphicsFactory = { - createCanvasGraphics: (ctx) => { - return new _CanvasGraphics(ctx, this.commonObjs, this.objs, this.canvasFactory, this.filterFactory, { - optionalContentConfig: this.optionalContentConfig, - markedContentStack: this.markedContentStack - }); - } - }; - pattern = new _pattern_helper.TilingPattern(IR, color, this.ctx, canvasGraphicsFactory, baseTransform); - } else { - pattern = this._getPattern(IR[1], IR[2]); - } - return pattern; - } - setStrokeColorN() { - this.current.strokeColor = this.getColorN_Pattern(arguments); - } - setFillColorN() { - this.current.fillColor = this.getColorN_Pattern(arguments); - this.current.patternFill = true; - } - setStrokeRGBColor(r2, g2, b2) { - const color = _util2.Util.makeHexColor(r2, g2, b2); - this.ctx.strokeStyle = color; - this.current.strokeColor = color; - } - setFillRGBColor(r2, g2, b2) { - const color = _util2.Util.makeHexColor(r2, g2, b2); - this.ctx.fillStyle = color; - this.current.fillColor = color; - this.current.patternFill = false; - } - _getPattern(objId, matrix = null) { - let pattern; - if (this.cachedPatterns.has(objId)) { - pattern = this.cachedPatterns.get(objId); - } else { - pattern = (0, _pattern_helper.getShadingPattern)(this.getObject(objId)); - this.cachedPatterns.set(objId, pattern); - } - if (matrix) { - pattern.matrix = matrix; - } - return pattern; - } - shadingFill(objId) { - if (!this.contentVisible) { - return; - } - const ctx = this.ctx; - this.save(); - const pattern = this._getPattern(objId); - ctx.fillStyle = pattern.getPattern(ctx, this, (0, _display_utils2.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.SHADING); - const inv = (0, _display_utils2.getCurrentTransformInverse)(ctx); - if (inv) { - const { - width, - height - } = ctx.canvas; - const [x0, y0, x1, y1] = _util2.Util.getAxialAlignedBoundingBox([0, 0, width, height], inv); - this.ctx.fillRect(x0, y0, x1 - x0, y1 - y0); - } else { - this.ctx.fillRect(-1e10, -1e10, 2e10, 2e10); - } - this.compose(this.current.getClippedPathBoundingBox()); - this.restore(); - } - beginInlineImage() { - (0, _util2.unreachable)("Should not call beginInlineImage"); - } - beginImageData() { - (0, _util2.unreachable)("Should not call beginImageData"); - } - paintFormXObjectBegin(matrix, bbox) { - if (!this.contentVisible) { - return; - } - this.save(); - this.baseTransformStack.push(this.baseTransform); - if (Array.isArray(matrix) && matrix.length === 6) { - this.transform(...matrix); - } - this.baseTransform = (0, _display_utils2.getCurrentTransform)(this.ctx); - if (bbox) { - const width = bbox[2] - bbox[0]; - const height = bbox[3] - bbox[1]; - this.ctx.rect(bbox[0], bbox[1], width, height); - this.current.updateRectMinMax((0, _display_utils2.getCurrentTransform)(this.ctx), bbox); - this.clip(); - this.endPath(); - } - } - paintFormXObjectEnd() { - if (!this.contentVisible) { - return; - } - this.restore(); - this.baseTransform = this.baseTransformStack.pop(); - } - beginGroup(group) { - if (!this.contentVisible) { - return; - } - this.save(); - if (this.inSMaskMode) { - this.endSMaskMode(); - this.current.activeSMask = null; - } - const currentCtx = this.ctx; - if (!group.isolated) { - (0, _util2.info)("TODO: Support non-isolated groups."); - } - if (group.knockout) { - (0, _util2.warn)("Knockout groups not supported."); - } - const currentTransform = (0, _display_utils2.getCurrentTransform)(currentCtx); - if (group.matrix) { - currentCtx.transform(...group.matrix); - } - if (!group.bbox) { - throw new Error("Bounding box is required."); - } - let bounds = _util2.Util.getAxialAlignedBoundingBox(group.bbox, (0, _display_utils2.getCurrentTransform)(currentCtx)); - const canvasBounds = [0, 0, currentCtx.canvas.width, currentCtx.canvas.height]; - bounds = _util2.Util.intersect(bounds, canvasBounds) || [0, 0, 0, 0]; - const offsetX = Math.floor(bounds[0]); - const offsetY = Math.floor(bounds[1]); - let drawnWidth = Math.max(Math.ceil(bounds[2]) - offsetX, 1); - let drawnHeight = Math.max(Math.ceil(bounds[3]) - offsetY, 1); - let scaleX = 1, scaleY = 1; - if (drawnWidth > MAX_GROUP_SIZE) { - scaleX = drawnWidth / MAX_GROUP_SIZE; - drawnWidth = MAX_GROUP_SIZE; - } - if (drawnHeight > MAX_GROUP_SIZE) { - scaleY = drawnHeight / MAX_GROUP_SIZE; - drawnHeight = MAX_GROUP_SIZE; - } - this.current.startNewPathAndClipBox([0, 0, drawnWidth, drawnHeight]); - let cacheId = "groupAt" + this.groupLevel; - if (group.smask) { - cacheId += "_smask_" + this.smaskCounter++ % 2; - } - const scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight); - const groupCtx = scratchCanvas.context; - groupCtx.scale(1 / scaleX, 1 / scaleY); - groupCtx.translate(-offsetX, -offsetY); - groupCtx.transform(...currentTransform); - if (group.smask) { - this.smaskStack.push({ - canvas: scratchCanvas.canvas, - context: groupCtx, - offsetX, - offsetY, - scaleX, - scaleY, - subtype: group.smask.subtype, - backdrop: group.smask.backdrop, - transferMap: group.smask.transferMap || null, - startTransformInverse: null - }); - } else { - currentCtx.setTransform(1, 0, 0, 1, 0, 0); - currentCtx.translate(offsetX, offsetY); - currentCtx.scale(scaleX, scaleY); - currentCtx.save(); - } - copyCtxState(currentCtx, groupCtx); - this.ctx = groupCtx; - this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]); - this.groupStack.push(currentCtx); - this.groupLevel++; - } - endGroup(group) { - if (!this.contentVisible) { - return; - } - this.groupLevel--; - const groupCtx = this.ctx; - const ctx = this.groupStack.pop(); - this.ctx = ctx; - this.ctx.imageSmoothingEnabled = false; - if (group.smask) { - this.tempSMask = this.smaskStack.pop(); - this.restore(); - } else { - this.ctx.restore(); - const currentMtx = (0, _display_utils2.getCurrentTransform)(this.ctx); - this.restore(); - this.ctx.save(); - this.ctx.setTransform(...currentMtx); - const dirtyBox = _util2.Util.getAxialAlignedBoundingBox([0, 0, groupCtx.canvas.width, groupCtx.canvas.height], currentMtx); - this.ctx.drawImage(groupCtx.canvas, 0, 0); - this.ctx.restore(); - this.compose(dirtyBox); - } - } - beginAnnotation(id, rect, transform, matrix, hasOwnCanvas) { - __privateMethod(this, _restoreInitialState, restoreInitialState_fn).call(this); - resetCtxToDefault(this.ctx); - this.ctx.save(); - this.save(); - if (this.baseTransform) { - this.ctx.setTransform(...this.baseTransform); - } - if (Array.isArray(rect) && rect.length === 4) { - const width = rect[2] - rect[0]; - const height = rect[3] - rect[1]; - if (hasOwnCanvas && this.annotationCanvasMap) { - transform = transform.slice(); - transform[4] -= rect[0]; - transform[5] -= rect[1]; - rect = rect.slice(); - rect[0] = rect[1] = 0; - rect[2] = width; - rect[3] = height; - const [scaleX, scaleY] = _util2.Util.singularValueDecompose2dScale((0, _display_utils2.getCurrentTransform)(this.ctx)); - const { - viewportScale - } = this; - const canvasWidth = Math.ceil(width * this.outputScaleX * viewportScale); - const canvasHeight = Math.ceil(height * this.outputScaleY * viewportScale); - this.annotationCanvas = this.canvasFactory.create(canvasWidth, canvasHeight); - const { - canvas, - context - } = this.annotationCanvas; - this.annotationCanvasMap.set(id, canvas); - this.annotationCanvas.savedCtx = this.ctx; - this.ctx = context; - this.ctx.save(); - this.ctx.setTransform(scaleX, 0, 0, -scaleY, 0, height * scaleY); - resetCtxToDefault(this.ctx); - } else { - resetCtxToDefault(this.ctx); - this.ctx.rect(rect[0], rect[1], width, height); - this.ctx.clip(); - this.endPath(); - } - } - this.current = new CanvasExtraState(this.ctx.canvas.width, this.ctx.canvas.height); - this.transform(...transform); - this.transform(...matrix); - } - endAnnotation() { - if (this.annotationCanvas) { - this.ctx.restore(); - __privateMethod(this, _drawFilter, drawFilter_fn).call(this); - this.ctx = this.annotationCanvas.savedCtx; - delete this.annotationCanvas.savedCtx; - delete this.annotationCanvas; - } - } - paintImageMaskXObject(img) { - if (!this.contentVisible) { - return; - } - const count = img.count; - img = this.getObject(img.data, img); - img.count = count; - const ctx = this.ctx; - const glyph = this.processingType3; - if (glyph) { - if (glyph.compiled === void 0) { - glyph.compiled = compileType3Glyph(img); - } - if (glyph.compiled) { - glyph.compiled(ctx); - return; - } - } - const mask = this._createMaskCanvas(img); - const maskCanvas = mask.canvas; - ctx.save(); - ctx.setTransform(1, 0, 0, 1, 0, 0); - ctx.drawImage(maskCanvas, mask.offsetX, mask.offsetY); - ctx.restore(); - this.compose(); - } - paintImageMaskXObjectRepeat(img, scaleX, skewX = 0, skewY = 0, scaleY, positions) { - if (!this.contentVisible) { - return; - } - img = this.getObject(img.data, img); - const ctx = this.ctx; - ctx.save(); - const currentTransform = (0, _display_utils2.getCurrentTransform)(ctx); - ctx.transform(scaleX, skewX, skewY, scaleY, 0, 0); - const mask = this._createMaskCanvas(img); - ctx.setTransform(1, 0, 0, 1, mask.offsetX - currentTransform[4], mask.offsetY - currentTransform[5]); - for (let i2 = 0, ii2 = positions.length; i2 < ii2; i2 += 2) { - const trans = _util2.Util.transform(currentTransform, [scaleX, skewX, skewY, scaleY, positions[i2], positions[i2 + 1]]); - const [x2, y2] = _util2.Util.applyTransform([0, 0], trans); - ctx.drawImage(mask.canvas, x2, y2); - } - ctx.restore(); - this.compose(); - } - paintImageMaskXObjectGroup(images) { - if (!this.contentVisible) { - return; - } - const ctx = this.ctx; - const fillColor = this.current.fillColor; - const isPatternFill = this.current.patternFill; - for (const image of images) { - const { - data, - width, - height, - transform - } = image; - const maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); - const maskCtx = maskCanvas.context; - maskCtx.save(); - const img = this.getObject(data, image); - putBinaryImageMask(maskCtx, img); - maskCtx.globalCompositeOperation = "source-in"; - maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this, (0, _display_utils2.getCurrentTransformInverse)(ctx), _pattern_helper.PathType.FILL) : fillColor; - maskCtx.fillRect(0, 0, width, height); - maskCtx.restore(); - ctx.save(); - ctx.transform(...transform); - ctx.scale(1, -1); - drawImageAtIntegerCoords(ctx, maskCanvas.canvas, 0, 0, width, height, 0, -1, 1, 1); - ctx.restore(); - } - this.compose(); - } - paintImageXObject(objId) { - if (!this.contentVisible) { - return; - } - const imgData = this.getObject(objId); - if (!imgData) { - (0, _util2.warn)("Dependent image isn't ready yet"); - return; - } - this.paintInlineImageXObject(imgData); - } - paintImageXObjectRepeat(objId, scaleX, scaleY, positions) { - if (!this.contentVisible) { - return; - } - const imgData = this.getObject(objId); - if (!imgData) { - (0, _util2.warn)("Dependent image isn't ready yet"); - return; - } - const width = imgData.width; - const height = imgData.height; - const map = []; - for (let i2 = 0, ii2 = positions.length; i2 < ii2; i2 += 2) { - map.push({ - transform: [scaleX, 0, 0, scaleY, positions[i2], positions[i2 + 1]], - x: 0, - y: 0, - w: width, - h: height - }); - } - this.paintInlineImageXObjectGroup(imgData, map); - } - applyTransferMapsToCanvas(ctx) { - if (this.current.transferMaps !== "none") { - ctx.filter = this.current.transferMaps; - ctx.drawImage(ctx.canvas, 0, 0); - ctx.filter = "none"; - } - return ctx.canvas; - } - applyTransferMapsToBitmap(imgData) { - if (this.current.transferMaps === "none") { - return imgData.bitmap; - } - const { - bitmap, - width, - height - } = imgData; - const tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", width, height); - const tmpCtx = tmpCanvas.context; - tmpCtx.filter = this.current.transferMaps; - tmpCtx.drawImage(bitmap, 0, 0); - tmpCtx.filter = "none"; - return tmpCanvas.canvas; - } - paintInlineImageXObject(imgData) { - if (!this.contentVisible) { - return; - } - const width = imgData.width; - const height = imgData.height; - const ctx = this.ctx; - this.save(); - if (!_util2.isNodeJS) { - const { - filter - } = ctx; - if (filter !== "none" && filter !== "") { - ctx.filter = "none"; - } - } - ctx.scale(1 / width, -1 / height); - let imgToPaint; - if (imgData.bitmap) { - imgToPaint = this.applyTransferMapsToBitmap(imgData); - } else if (typeof HTMLElement === "function" && imgData instanceof HTMLElement || !imgData.data) { - imgToPaint = imgData; - } else { - const tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", width, height); - const tmpCtx = tmpCanvas.context; - putBinaryImageData(tmpCtx, imgData); - imgToPaint = this.applyTransferMapsToCanvas(tmpCtx); - } - const scaled = this._scaleImage(imgToPaint, (0, _display_utils2.getCurrentTransformInverse)(ctx)); - ctx.imageSmoothingEnabled = getImageSmoothingEnabled((0, _display_utils2.getCurrentTransform)(ctx), imgData.interpolate); - drawImageAtIntegerCoords(ctx, scaled.img, 0, 0, scaled.paintWidth, scaled.paintHeight, 0, -height, width, height); - this.compose(); - this.restore(); - } - paintInlineImageXObjectGroup(imgData, map) { - if (!this.contentVisible) { - return; - } - const ctx = this.ctx; - let imgToPaint; - if (imgData.bitmap) { - imgToPaint = imgData.bitmap; - } else { - const w2 = imgData.width; - const h2 = imgData.height; - const tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", w2, h2); - const tmpCtx = tmpCanvas.context; - putBinaryImageData(tmpCtx, imgData); - imgToPaint = this.applyTransferMapsToCanvas(tmpCtx); - } - for (const entry of map) { - ctx.save(); - ctx.transform(...entry.transform); - ctx.scale(1, -1); - drawImageAtIntegerCoords(ctx, imgToPaint, entry.x, entry.y, entry.w, entry.h, 0, -1, 1, 1); - ctx.restore(); - } - this.compose(); - } - paintSolidColorImageMask() { - if (!this.contentVisible) { - return; - } - this.ctx.fillRect(0, 0, 1, 1); - this.compose(); - } - markPoint(tag) { - } - markPointProps(tag, properties) { - } - beginMarkedContent(tag) { - this.markedContentStack.push({ - visible: true - }); - } - beginMarkedContentProps(tag, properties) { - if (tag === "OC") { - this.markedContentStack.push({ - visible: this.optionalContentConfig.isVisible(properties) - }); - } else { - this.markedContentStack.push({ - visible: true - }); - } - this.contentVisible = this.isContentVisible(); - } - endMarkedContent() { - this.markedContentStack.pop(); - this.contentVisible = this.isContentVisible(); - } - beginCompat() { - } - endCompat() { - } - consumePath(clipBox) { - const isEmpty2 = this.current.isEmptyClip(); - if (this.pendingClip) { - this.current.updateClipFromPath(); - } - if (!this.pendingClip) { - this.compose(clipBox); - } - const ctx = this.ctx; - if (this.pendingClip) { - if (!isEmpty2) { - if (this.pendingClip === EO_CLIP) { - ctx.clip("evenodd"); - } else { - ctx.clip(); - } - } - this.pendingClip = null; - } - this.current.startNewPathAndClipBox(this.current.clipBox); - ctx.beginPath(); - } - getSinglePixelWidth() { - if (!this._cachedGetSinglePixelWidth) { - const m2 = (0, _display_utils2.getCurrentTransform)(this.ctx); - if (m2[1] === 0 && m2[2] === 0) { - this._cachedGetSinglePixelWidth = 1 / Math.min(Math.abs(m2[0]), Math.abs(m2[3])); - } else { - const absDet = Math.abs(m2[0] * m2[3] - m2[2] * m2[1]); - const normX = Math.hypot(m2[0], m2[2]); - const normY = Math.hypot(m2[1], m2[3]); - this._cachedGetSinglePixelWidth = Math.max(normX, normY) / absDet; - } - } - return this._cachedGetSinglePixelWidth; - } - getScaleForStroking() { - if (this._cachedScaleForStroking[0] === -1) { - const { - lineWidth - } = this.current; - const { - a: a2, - b: b2, - c: c2, - d: d2 - } = this.ctx.getTransform(); - let scaleX, scaleY; - if (b2 === 0 && c2 === 0) { - const normX = Math.abs(a2); - const normY = Math.abs(d2); - if (normX === normY) { - if (lineWidth === 0) { - scaleX = scaleY = 1 / normX; - } else { - const scaledLineWidth = normX * lineWidth; - scaleX = scaleY = scaledLineWidth < 1 ? 1 / scaledLineWidth : 1; - } - } else if (lineWidth === 0) { - scaleX = 1 / normX; - scaleY = 1 / normY; - } else { - const scaledXLineWidth = normX * lineWidth; - const scaledYLineWidth = normY * lineWidth; - scaleX = scaledXLineWidth < 1 ? 1 / scaledXLineWidth : 1; - scaleY = scaledYLineWidth < 1 ? 1 / scaledYLineWidth : 1; - } - } else { - const absDet = Math.abs(a2 * d2 - b2 * c2); - const normX = Math.hypot(a2, b2); - const normY = Math.hypot(c2, d2); - if (lineWidth === 0) { - scaleX = normY / absDet; - scaleY = normX / absDet; - } else { - const baseArea = lineWidth * absDet; - scaleX = normY > baseArea ? normY / baseArea : 1; - scaleY = normX > baseArea ? normX / baseArea : 1; - } - } - this._cachedScaleForStroking[0] = scaleX; - this._cachedScaleForStroking[1] = scaleY; - } - return this._cachedScaleForStroking; - } - rescaleAndStroke(saveRestore) { - const { - ctx - } = this; - const { - lineWidth - } = this.current; - const [scaleX, scaleY] = this.getScaleForStroking(); - ctx.lineWidth = lineWidth || 1; - if (scaleX === 1 && scaleY === 1) { - ctx.stroke(); - return; - } - const dashes = ctx.getLineDash(); - if (saveRestore) { - ctx.save(); - } - ctx.scale(scaleX, scaleY); - if (dashes.length > 0) { - const scale = Math.max(scaleX, scaleY); - ctx.setLineDash(dashes.map((x2) => x2 / scale)); - ctx.lineDashOffset /= scale; - } - ctx.stroke(); - if (saveRestore) { - ctx.restore(); - } - } - isContentVisible() { - for (let i2 = this.markedContentStack.length - 1; i2 >= 0; i2--) { - if (!this.markedContentStack[i2].visible) { - return false; - } - } - return true; - } - }; - let CanvasGraphics = _CanvasGraphics; - _restoreInitialState = new WeakSet(); - restoreInitialState_fn = function() { - while (this.stateStack.length || this.inSMaskMode) { - this.restore(); - } - this.ctx.restore(); - if (this.transparentCanvas) { - this.ctx = this.compositeCtx; - this.ctx.save(); - this.ctx.setTransform(1, 0, 0, 1, 0, 0); - this.ctx.drawImage(this.transparentCanvas, 0, 0); - this.ctx.restore(); - this.transparentCanvas = null; - } - }; - _drawFilter = new WeakSet(); - drawFilter_fn = function() { - if (this.pageColors) { - const hcmFilterId = this.filterFactory.addHCMFilter(this.pageColors.foreground, this.pageColors.background); - if (hcmFilterId !== "none") { - const savedFilter = this.ctx.filter; - this.ctx.filter = hcmFilterId; - this.ctx.drawImage(this.ctx.canvas, 0, 0); - this.ctx.filter = savedFilter; - } - } - }; - exports2.CanvasGraphics = CanvasGraphics; - for (const op in _util2.OPS) { - if (CanvasGraphics.prototype[op] !== void 0) { - CanvasGraphics.prototype[_util2.OPS[op]] = CanvasGraphics.prototype[op]; - } - } - }, - /* 12 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.TilingPattern = exports2.PathType = void 0; - exports2.getShadingPattern = getShadingPattern; - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - const PathType = { - FILL: "Fill", - STROKE: "Stroke", - SHADING: "Shading" - }; - exports2.PathType = PathType; - function applyBoundingBox(ctx, bbox) { - if (!bbox) { - return; - } - const width = bbox[2] - bbox[0]; - const height = bbox[3] - bbox[1]; - const region = new Path2D(); - region.rect(bbox[0], bbox[1], width, height); - ctx.clip(region); - } - class BaseShadingPattern { - constructor() { - if (this.constructor === BaseShadingPattern) { - (0, _util2.unreachable)("Cannot initialize BaseShadingPattern."); - } - } - getPattern() { - (0, _util2.unreachable)("Abstract method `getPattern` called."); - } - } - class RadialAxialShadingPattern extends BaseShadingPattern { - constructor(IR) { - super(); - this._type = IR[1]; - this._bbox = IR[2]; - this._colorStops = IR[3]; - this._p0 = IR[4]; - this._p1 = IR[5]; - this._r0 = IR[6]; - this._r1 = IR[7]; - this.matrix = null; - } - _createGradient(ctx) { - let grad; - if (this._type === "axial") { - grad = ctx.createLinearGradient(this._p0[0], this._p0[1], this._p1[0], this._p1[1]); - } else if (this._type === "radial") { - grad = ctx.createRadialGradient(this._p0[0], this._p0[1], this._r0, this._p1[0], this._p1[1], this._r1); - } - for (const colorStop of this._colorStops) { - grad.addColorStop(colorStop[0], colorStop[1]); - } - return grad; - } - getPattern(ctx, owner, inverse, pathType) { - let pattern; - if (pathType === PathType.STROKE || pathType === PathType.FILL) { - const ownerBBox = owner.current.getClippedPathBoundingBox(pathType, (0, _display_utils2.getCurrentTransform)(ctx)) || [0, 0, 0, 0]; - const width = Math.ceil(ownerBBox[2] - ownerBBox[0]) || 1; - const height = Math.ceil(ownerBBox[3] - ownerBBox[1]) || 1; - const tmpCanvas = owner.cachedCanvases.getCanvas("pattern", width, height, true); - const tmpCtx = tmpCanvas.context; - tmpCtx.clearRect(0, 0, tmpCtx.canvas.width, tmpCtx.canvas.height); - tmpCtx.beginPath(); - tmpCtx.rect(0, 0, tmpCtx.canvas.width, tmpCtx.canvas.height); - tmpCtx.translate(-ownerBBox[0], -ownerBBox[1]); - inverse = _util2.Util.transform(inverse, [1, 0, 0, 1, ownerBBox[0], ownerBBox[1]]); - tmpCtx.transform(...owner.baseTransform); - if (this.matrix) { - tmpCtx.transform(...this.matrix); - } - applyBoundingBox(tmpCtx, this._bbox); - tmpCtx.fillStyle = this._createGradient(tmpCtx); - tmpCtx.fill(); - pattern = ctx.createPattern(tmpCanvas.canvas, "no-repeat"); - const domMatrix = new DOMMatrix(inverse); - pattern.setTransform(domMatrix); - } else { - applyBoundingBox(ctx, this._bbox); - pattern = this._createGradient(ctx); - } - return pattern; - } - } - function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) { - const coords = context.coords, colors = context.colors; - const bytes = data.data, rowSize = data.width * 4; - let tmp; - if (coords[p1 + 1] > coords[p2 + 1]) { - tmp = p1; - p1 = p2; - p2 = tmp; - tmp = c1; - c1 = c2; - c2 = tmp; - } - if (coords[p2 + 1] > coords[p3 + 1]) { - tmp = p2; - p2 = p3; - p3 = tmp; - tmp = c2; - c2 = c3; - c3 = tmp; - } - if (coords[p1 + 1] > coords[p2 + 1]) { - tmp = p1; - p1 = p2; - p2 = tmp; - tmp = c1; - c1 = c2; - c2 = tmp; - } - const x1 = (coords[p1] + context.offsetX) * context.scaleX; - const y1 = (coords[p1 + 1] + context.offsetY) * context.scaleY; - const x2 = (coords[p2] + context.offsetX) * context.scaleX; - const y2 = (coords[p2 + 1] + context.offsetY) * context.scaleY; - const x3 = (coords[p3] + context.offsetX) * context.scaleX; - const y3 = (coords[p3 + 1] + context.offsetY) * context.scaleY; - if (y1 >= y3) { - return; - } - const c1r = colors[c1], c1g = colors[c1 + 1], c1b = colors[c1 + 2]; - const c2r = colors[c2], c2g = colors[c2 + 1], c2b = colors[c2 + 2]; - const c3r = colors[c3], c3g = colors[c3 + 1], c3b = colors[c3 + 2]; - const minY = Math.round(y1), maxY = Math.round(y3); - let xa, car, cag, cab; - let xb, cbr, cbg, cbb; - for (let y4 = minY; y4 <= maxY; y4++) { - if (y4 < y2) { - const k3 = y4 < y1 ? 0 : (y1 - y4) / (y1 - y2); - xa = x1 - (x1 - x2) * k3; - car = c1r - (c1r - c2r) * k3; - cag = c1g - (c1g - c2g) * k3; - cab = c1b - (c1b - c2b) * k3; - } else { - let k3; - if (y4 > y3) { - k3 = 1; - } else if (y2 === y3) { - k3 = 0; - } else { - k3 = (y2 - y4) / (y2 - y3); - } - xa = x2 - (x2 - x3) * k3; - car = c2r - (c2r - c3r) * k3; - cag = c2g - (c2g - c3g) * k3; - cab = c2b - (c2b - c3b) * k3; - } - let k2; - if (y4 < y1) { - k2 = 0; - } else if (y4 > y3) { - k2 = 1; - } else { - k2 = (y1 - y4) / (y1 - y3); - } - xb = x1 - (x1 - x3) * k2; - cbr = c1r - (c1r - c3r) * k2; - cbg = c1g - (c1g - c3g) * k2; - cbb = c1b - (c1b - c3b) * k2; - const x1_ = Math.round(Math.min(xa, xb)); - const x2_ = Math.round(Math.max(xa, xb)); - let j2 = rowSize * y4 + x1_ * 4; - for (let x4 = x1_; x4 <= x2_; x4++) { - k2 = (xa - x4) / (xa - xb); - if (k2 < 0) { - k2 = 0; - } else if (k2 > 1) { - k2 = 1; - } - bytes[j2++] = car - (car - cbr) * k2 | 0; - bytes[j2++] = cag - (cag - cbg) * k2 | 0; - bytes[j2++] = cab - (cab - cbb) * k2 | 0; - bytes[j2++] = 255; - } - } - } - function drawFigure(data, figure, context) { - const ps = figure.coords; - const cs = figure.colors; - let i2, ii2; - switch (figure.type) { - case "lattice": - const verticesPerRow = figure.verticesPerRow; - const rows = Math.floor(ps.length / verticesPerRow) - 1; - const cols = verticesPerRow - 1; - for (i2 = 0; i2 < rows; i2++) { - let q2 = i2 * verticesPerRow; - for (let j2 = 0; j2 < cols; j2++, q2++) { - drawTriangle(data, context, ps[q2], ps[q2 + 1], ps[q2 + verticesPerRow], cs[q2], cs[q2 + 1], cs[q2 + verticesPerRow]); - drawTriangle(data, context, ps[q2 + verticesPerRow + 1], ps[q2 + 1], ps[q2 + verticesPerRow], cs[q2 + verticesPerRow + 1], cs[q2 + 1], cs[q2 + verticesPerRow]); - } - } - break; - case "triangles": - for (i2 = 0, ii2 = ps.length; i2 < ii2; i2 += 3) { - drawTriangle(data, context, ps[i2], ps[i2 + 1], ps[i2 + 2], cs[i2], cs[i2 + 1], cs[i2 + 2]); - } - break; - default: - throw new Error("illegal figure"); - } - } - class MeshShadingPattern extends BaseShadingPattern { - constructor(IR) { - super(); - this._coords = IR[2]; - this._colors = IR[3]; - this._figures = IR[4]; - this._bounds = IR[5]; - this._bbox = IR[7]; - this._background = IR[8]; - this.matrix = null; - } - _createMeshCanvas(combinedScale, backgroundColor, cachedCanvases) { - const EXPECTED_SCALE = 1.1; - const MAX_PATTERN_SIZE = 3e3; - const BORDER_SIZE = 2; - const offsetX = Math.floor(this._bounds[0]); - const offsetY = Math.floor(this._bounds[1]); - const boundsWidth = Math.ceil(this._bounds[2]) - offsetX; - const boundsHeight = Math.ceil(this._bounds[3]) - offsetY; - const width = Math.min(Math.ceil(Math.abs(boundsWidth * combinedScale[0] * EXPECTED_SCALE)), MAX_PATTERN_SIZE); - const height = Math.min(Math.ceil(Math.abs(boundsHeight * combinedScale[1] * EXPECTED_SCALE)), MAX_PATTERN_SIZE); - const scaleX = boundsWidth / width; - const scaleY = boundsHeight / height; - const context = { - coords: this._coords, - colors: this._colors, - offsetX: -offsetX, - offsetY: -offsetY, - scaleX: 1 / scaleX, - scaleY: 1 / scaleY - }; - const paddedWidth = width + BORDER_SIZE * 2; - const paddedHeight = height + BORDER_SIZE * 2; - const tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false); - const tmpCtx = tmpCanvas.context; - const data = tmpCtx.createImageData(width, height); - if (backgroundColor) { - const bytes = data.data; - for (let i2 = 0, ii2 = bytes.length; i2 < ii2; i2 += 4) { - bytes[i2] = backgroundColor[0]; - bytes[i2 + 1] = backgroundColor[1]; - bytes[i2 + 2] = backgroundColor[2]; - bytes[i2 + 3] = 255; - } - } - for (const figure of this._figures) { - drawFigure(data, figure, context); - } - tmpCtx.putImageData(data, BORDER_SIZE, BORDER_SIZE); - const canvas = tmpCanvas.canvas; - return { - canvas, - offsetX: offsetX - BORDER_SIZE * scaleX, - offsetY: offsetY - BORDER_SIZE * scaleY, - scaleX, - scaleY - }; - } - getPattern(ctx, owner, inverse, pathType) { - applyBoundingBox(ctx, this._bbox); - let scale; - if (pathType === PathType.SHADING) { - scale = _util2.Util.singularValueDecompose2dScale((0, _display_utils2.getCurrentTransform)(ctx)); - } else { - scale = _util2.Util.singularValueDecompose2dScale(owner.baseTransform); - if (this.matrix) { - const matrixScale = _util2.Util.singularValueDecompose2dScale(this.matrix); - scale = [scale[0] * matrixScale[0], scale[1] * matrixScale[1]]; - } - } - const temporaryPatternCanvas = this._createMeshCanvas(scale, pathType === PathType.SHADING ? null : this._background, owner.cachedCanvases); - if (pathType !== PathType.SHADING) { - ctx.setTransform(...owner.baseTransform); - if (this.matrix) { - ctx.transform(...this.matrix); - } - } - ctx.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY); - ctx.scale(temporaryPatternCanvas.scaleX, temporaryPatternCanvas.scaleY); - return ctx.createPattern(temporaryPatternCanvas.canvas, "no-repeat"); - } - } - class DummyShadingPattern extends BaseShadingPattern { - getPattern() { - return "hotpink"; - } - } - function getShadingPattern(IR) { - switch (IR[0]) { - case "RadialAxial": - return new RadialAxialShadingPattern(IR); - case "Mesh": - return new MeshShadingPattern(IR); - case "Dummy": - return new DummyShadingPattern(); - } - throw new Error(`Unknown IR type: ${IR[0]}`); - } - const PaintType = { - COLORED: 1, - UNCOLORED: 2 - }; - const _TilingPattern = class { - constructor(IR, color, ctx, canvasGraphicsFactory, baseTransform) { - this.operatorList = IR[2]; - this.matrix = IR[3] || [1, 0, 0, 1, 0, 0]; - this.bbox = IR[4]; - this.xstep = IR[5]; - this.ystep = IR[6]; - this.paintType = IR[7]; - this.tilingType = IR[8]; - this.color = color; - this.ctx = ctx; - this.canvasGraphicsFactory = canvasGraphicsFactory; - this.baseTransform = baseTransform; - } - createPatternCanvas(owner) { - const operatorList = this.operatorList; - const bbox = this.bbox; - const xstep = this.xstep; - const ystep = this.ystep; - const paintType = this.paintType; - const tilingType = this.tilingType; - const color = this.color; - const canvasGraphicsFactory = this.canvasGraphicsFactory; - (0, _util2.info)("TilingType: " + tilingType); - const x0 = bbox[0], y0 = bbox[1], x1 = bbox[2], y1 = bbox[3]; - const matrixScale = _util2.Util.singularValueDecompose2dScale(this.matrix); - const curMatrixScale = _util2.Util.singularValueDecompose2dScale(this.baseTransform); - const combinedScale = [matrixScale[0] * curMatrixScale[0], matrixScale[1] * curMatrixScale[1]]; - const dimx = this.getSizeAndScale(xstep, this.ctx.canvas.width, combinedScale[0]); - const dimy = this.getSizeAndScale(ystep, this.ctx.canvas.height, combinedScale[1]); - const tmpCanvas = owner.cachedCanvases.getCanvas("pattern", dimx.size, dimy.size, true); - const tmpCtx = tmpCanvas.context; - const graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); - graphics.groupLevel = owner.groupLevel; - this.setFillAndStrokeStyleToContext(graphics, paintType, color); - let adjustedX0 = x0; - let adjustedY0 = y0; - let adjustedX1 = x1; - let adjustedY1 = y1; - if (x0 < 0) { - adjustedX0 = 0; - adjustedX1 += Math.abs(x0); - } - if (y0 < 0) { - adjustedY0 = 0; - adjustedY1 += Math.abs(y0); - } - tmpCtx.translate(-(dimx.scale * adjustedX0), -(dimy.scale * adjustedY0)); - graphics.transform(dimx.scale, 0, 0, dimy.scale, 0, 0); - tmpCtx.save(); - this.clipBbox(graphics, adjustedX0, adjustedY0, adjustedX1, adjustedY1); - graphics.baseTransform = (0, _display_utils2.getCurrentTransform)(graphics.ctx); - graphics.executeOperatorList(operatorList); - graphics.endDrawing(); - return { - canvas: tmpCanvas.canvas, - scaleX: dimx.scale, - scaleY: dimy.scale, - offsetX: adjustedX0, - offsetY: adjustedY0 - }; - } - getSizeAndScale(step, realOutputSize, scale) { - step = Math.abs(step); - const maxSize = Math.max(_TilingPattern.MAX_PATTERN_SIZE, realOutputSize); - let size = Math.ceil(step * scale); - if (size >= maxSize) { - size = maxSize; - } else { - scale = size / step; - } - return { - scale, - size - }; - } - clipBbox(graphics, x0, y0, x1, y1) { - const bboxWidth = x1 - x0; - const bboxHeight = y1 - y0; - graphics.ctx.rect(x0, y0, bboxWidth, bboxHeight); - graphics.current.updateRectMinMax((0, _display_utils2.getCurrentTransform)(graphics.ctx), [x0, y0, x1, y1]); - graphics.clip(); - graphics.endPath(); - } - setFillAndStrokeStyleToContext(graphics, paintType, color) { - const context = graphics.ctx, current = graphics.current; - switch (paintType) { - case PaintType.COLORED: - const ctx = this.ctx; - context.fillStyle = ctx.fillStyle; - context.strokeStyle = ctx.strokeStyle; - current.fillColor = ctx.fillStyle; - current.strokeColor = ctx.strokeStyle; - break; - case PaintType.UNCOLORED: - const cssColor = _util2.Util.makeHexColor(color[0], color[1], color[2]); - context.fillStyle = cssColor; - context.strokeStyle = cssColor; - current.fillColor = cssColor; - current.strokeColor = cssColor; - break; - default: - throw new _util2.FormatError(`Unsupported paint type: ${paintType}`); - } - } - getPattern(ctx, owner, inverse, pathType) { - let matrix = inverse; - if (pathType !== PathType.SHADING) { - matrix = _util2.Util.transform(matrix, owner.baseTransform); - if (this.matrix) { - matrix = _util2.Util.transform(matrix, this.matrix); - } - } - const temporaryPatternCanvas = this.createPatternCanvas(owner); - let domMatrix = new DOMMatrix(matrix); - domMatrix = domMatrix.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY); - domMatrix = domMatrix.scale(1 / temporaryPatternCanvas.scaleX, 1 / temporaryPatternCanvas.scaleY); - const pattern = ctx.createPattern(temporaryPatternCanvas.canvas, "repeat"); - pattern.setTransform(domMatrix); - return pattern; - } - }; - let TilingPattern = _TilingPattern; - __publicField(TilingPattern, "MAX_PATTERN_SIZE", 3e3); - exports2.TilingPattern = TilingPattern; - }, - /* 13 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.convertBlackAndWhiteToRGBA = convertBlackAndWhiteToRGBA; - exports2.convertToRGBA = convertToRGBA; - exports2.grayToRGBA = grayToRGBA; - var _util2 = __w_pdfjs_require__2(1); - function convertToRGBA(params) { - switch (params.kind) { - case _util2.ImageKind.GRAYSCALE_1BPP: - return convertBlackAndWhiteToRGBA(params); - case _util2.ImageKind.RGB_24BPP: - return convertRGBToRGBA(params); - } - return null; - } - function convertBlackAndWhiteToRGBA({ - src, - srcPos = 0, - dest, - width, - height, - nonBlackColor = 4294967295, - inverseDecode = false - }) { - const black = _util2.FeatureTest.isLittleEndian ? 4278190080 : 255; - const [zeroMapping, oneMapping] = inverseDecode ? [nonBlackColor, black] : [black, nonBlackColor]; - const widthInSource = width >> 3; - const widthRemainder = width & 7; - const srcLength = src.length; - dest = new Uint32Array(dest.buffer); - let destPos = 0; - for (let i2 = 0; i2 < height; i2++) { - for (const max = srcPos + widthInSource; srcPos < max; srcPos++) { - const elem2 = srcPos < srcLength ? src[srcPos] : 255; - dest[destPos++] = elem2 & 128 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 64 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 32 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 16 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 8 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 4 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 2 ? oneMapping : zeroMapping; - dest[destPos++] = elem2 & 1 ? oneMapping : zeroMapping; - } - if (widthRemainder === 0) { - continue; - } - const elem = srcPos < srcLength ? src[srcPos++] : 255; - for (let j2 = 0; j2 < widthRemainder; j2++) { - dest[destPos++] = elem & 1 << 7 - j2 ? oneMapping : zeroMapping; - } - } - return { - srcPos, - destPos - }; - } - function convertRGBToRGBA({ - src, - srcPos = 0, - dest, - destPos = 0, - width, - height - }) { - let i2 = 0; - const len32 = src.length >> 2; - const src32 = new Uint32Array(src.buffer, srcPos, len32); - if (_util2.FeatureTest.isLittleEndian) { - for (; i2 < len32 - 2; i2 += 3, destPos += 4) { - const s1 = src32[i2]; - const s2 = src32[i2 + 1]; - const s3 = src32[i2 + 2]; - dest[destPos] = s1 | 4278190080; - dest[destPos + 1] = s1 >>> 24 | s2 << 8 | 4278190080; - dest[destPos + 2] = s2 >>> 16 | s3 << 16 | 4278190080; - dest[destPos + 3] = s3 >>> 8 | 4278190080; - } - for (let j2 = i2 * 4, jj = src.length; j2 < jj; j2 += 3) { - dest[destPos++] = src[j2] | src[j2 + 1] << 8 | src[j2 + 2] << 16 | 4278190080; - } - } else { - for (; i2 < len32 - 2; i2 += 3, destPos += 4) { - const s1 = src32[i2]; - const s2 = src32[i2 + 1]; - const s3 = src32[i2 + 2]; - dest[destPos] = s1 | 255; - dest[destPos + 1] = s1 << 24 | s2 >>> 8 | 255; - dest[destPos + 2] = s2 << 16 | s3 >>> 16 | 255; - dest[destPos + 3] = s3 << 8 | 255; - } - for (let j2 = i2 * 4, jj = src.length; j2 < jj; j2 += 3) { - dest[destPos++] = src[j2] << 24 | src[j2 + 1] << 16 | src[j2 + 2] << 8 | 255; - } - } - return { - srcPos, - destPos - }; - } - function grayToRGBA(src, dest) { - if (_util2.FeatureTest.isLittleEndian) { - for (let i2 = 0, ii2 = src.length; i2 < ii2; i2++) { - dest[i2] = src[i2] * 65793 | 4278190080; - } - } else { - for (let i2 = 0, ii2 = src.length; i2 < ii2; i2++) { - dest[i2] = src[i2] * 16843008 | 255; - } - } - } - }, - /* 14 */ - /***/ - (__unused_webpack_module2, exports2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.GlobalWorkerOptions = void 0; - const GlobalWorkerOptions = /* @__PURE__ */ Object.create(null); - exports2.GlobalWorkerOptions = GlobalWorkerOptions; - GlobalWorkerOptions.workerPort = null; - GlobalWorkerOptions.workerSrc = ""; - }, - /* 15 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _createStreamSink, createStreamSink_fn, _processStreamMessage, processStreamMessage_fn, _deleteStreamController, deleteStreamController_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.MessageHandler = void 0; - var _util2 = __w_pdfjs_require__2(1); - const CallbackKind = { - UNKNOWN: 0, - DATA: 1, - ERROR: 2 - }; - const StreamKind = { - UNKNOWN: 0, - CANCEL: 1, - CANCEL_COMPLETE: 2, - CLOSE: 3, - ENQUEUE: 4, - ERROR: 5, - PULL: 6, - PULL_COMPLETE: 7, - START_COMPLETE: 8 - }; - function wrapReason(reason) { - if (!(reason instanceof Error || typeof reason === "object" && reason !== null)) { - (0, _util2.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'); - } - switch (reason.name) { - case "AbortException": - return new _util2.AbortException(reason.message); - case "MissingPDFException": - return new _util2.MissingPDFException(reason.message); - case "PasswordException": - return new _util2.PasswordException(reason.message, reason.code); - case "UnexpectedResponseException": - return new _util2.UnexpectedResponseException(reason.message, reason.status); - case "UnknownErrorException": - return new _util2.UnknownErrorException(reason.message, reason.details); - default: - return new _util2.UnknownErrorException(reason.message, reason.toString()); - } - } - class MessageHandler { - constructor(sourceName, targetName, comObj) { - __privateAdd(this, _createStreamSink); - __privateAdd(this, _processStreamMessage); - __privateAdd(this, _deleteStreamController); - this.sourceName = sourceName; - this.targetName = targetName; - this.comObj = comObj; - this.callbackId = 1; - this.streamId = 1; - this.streamSinks = /* @__PURE__ */ Object.create(null); - this.streamControllers = /* @__PURE__ */ Object.create(null); - this.callbackCapabilities = /* @__PURE__ */ Object.create(null); - this.actionHandler = /* @__PURE__ */ Object.create(null); - this._onComObjOnMessage = (event) => { - const data = event.data; - if (data.targetName !== this.sourceName) { - return; - } - if (data.stream) { - __privateMethod(this, _processStreamMessage, processStreamMessage_fn).call(this, data); - return; - } - if (data.callback) { - const callbackId = data.callbackId; - const capability = this.callbackCapabilities[callbackId]; - if (!capability) { - throw new Error(`Cannot resolve callback ${callbackId}`); - } - delete this.callbackCapabilities[callbackId]; - if (data.callback === CallbackKind.DATA) { - capability.resolve(data.data); - } else if (data.callback === CallbackKind.ERROR) { - capability.reject(wrapReason(data.reason)); - } else { - throw new Error("Unexpected callback case"); - } - return; - } - const action = this.actionHandler[data.action]; - if (!action) { - throw new Error(`Unknown action from worker: ${data.action}`); - } - if (data.callbackId) { - const cbSourceName = this.sourceName; - const cbTargetName = data.sourceName; - new Promise(function(resolve) { - resolve(action(data.data)); - }).then(function(result) { - comObj.postMessage({ - sourceName: cbSourceName, - targetName: cbTargetName, - callback: CallbackKind.DATA, - callbackId: data.callbackId, - data: result - }); - }, function(reason) { - comObj.postMessage({ - sourceName: cbSourceName, - targetName: cbTargetName, - callback: CallbackKind.ERROR, - callbackId: data.callbackId, - reason: wrapReason(reason) - }); - }); - return; - } - if (data.streamId) { - __privateMethod(this, _createStreamSink, createStreamSink_fn).call(this, data); - return; - } - action(data.data); - }; - comObj.addEventListener("message", this._onComObjOnMessage); - } - on(actionName, handler) { - const ah = this.actionHandler; - if (ah[actionName]) { - throw new Error(`There is already an actionName called "${actionName}"`); - } - ah[actionName] = handler; - } - send(actionName, data, transfers) { - this.comObj.postMessage({ - sourceName: this.sourceName, - targetName: this.targetName, - action: actionName, - data - }, transfers); - } - sendWithPromise(actionName, data, transfers) { - const callbackId = this.callbackId++; - const capability = new _util2.PromiseCapability(); - this.callbackCapabilities[callbackId] = capability; - try { - this.comObj.postMessage({ - sourceName: this.sourceName, - targetName: this.targetName, - action: actionName, - callbackId, - data - }, transfers); - } catch (ex) { - capability.reject(ex); - } - return capability.promise; - } - sendWithStream(actionName, data, queueingStrategy, transfers) { - const streamId = this.streamId++, sourceName = this.sourceName, targetName = this.targetName, comObj = this.comObj; - return new ReadableStream({ - start: (controller) => { - const startCapability = new _util2.PromiseCapability(); - this.streamControllers[streamId] = { - controller, - startCall: startCapability, - pullCall: null, - cancelCall: null, - isClosed: false - }; - comObj.postMessage({ - sourceName, - targetName, - action: actionName, - streamId, - data, - desiredSize: controller.desiredSize - }, transfers); - return startCapability.promise; - }, - pull: (controller) => { - const pullCapability = new _util2.PromiseCapability(); - this.streamControllers[streamId].pullCall = pullCapability; - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.PULL, - streamId, - desiredSize: controller.desiredSize - }); - return pullCapability.promise; - }, - cancel: (reason) => { - (0, _util2.assert)(reason instanceof Error, "cancel must have a valid reason"); - const cancelCapability = new _util2.PromiseCapability(); - this.streamControllers[streamId].cancelCall = cancelCapability; - this.streamControllers[streamId].isClosed = true; - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.CANCEL, - streamId, - reason: wrapReason(reason) - }); - return cancelCapability.promise; - } - }, queueingStrategy); - } - destroy() { - this.comObj.removeEventListener("message", this._onComObjOnMessage); - } - } - _createStreamSink = new WeakSet(); - createStreamSink_fn = function(data) { - const streamId = data.streamId, sourceName = this.sourceName, targetName = data.sourceName, comObj = this.comObj; - const self2 = this, action = this.actionHandler[data.action]; - const streamSink = { - enqueue(chunk, size = 1, transfers) { - if (this.isCancelled) { - return; - } - const lastDesiredSize = this.desiredSize; - this.desiredSize -= size; - if (lastDesiredSize > 0 && this.desiredSize <= 0) { - this.sinkCapability = new _util2.PromiseCapability(); - this.ready = this.sinkCapability.promise; - } - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.ENQUEUE, - streamId, - chunk - }, transfers); - }, - close() { - if (this.isCancelled) { - return; - } - this.isCancelled = true; - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.CLOSE, - streamId - }); - delete self2.streamSinks[streamId]; - }, - error(reason) { - (0, _util2.assert)(reason instanceof Error, "error must have a valid reason"); - if (this.isCancelled) { - return; - } - this.isCancelled = true; - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.ERROR, - streamId, - reason: wrapReason(reason) - }); - }, - sinkCapability: new _util2.PromiseCapability(), - onPull: null, - onCancel: null, - isCancelled: false, - desiredSize: data.desiredSize, - ready: null - }; - streamSink.sinkCapability.resolve(); - streamSink.ready = streamSink.sinkCapability.promise; - this.streamSinks[streamId] = streamSink; - new Promise(function(resolve) { - resolve(action(data.data, streamSink)); - }).then(function() { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.START_COMPLETE, - streamId, - success: true - }); - }, function(reason) { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.START_COMPLETE, - streamId, - reason: wrapReason(reason) - }); - }); - }; - _processStreamMessage = new WeakSet(); - processStreamMessage_fn = function(data) { - const streamId = data.streamId, sourceName = this.sourceName, targetName = data.sourceName, comObj = this.comObj; - const streamController = this.streamControllers[streamId], streamSink = this.streamSinks[streamId]; - switch (data.stream) { - case StreamKind.START_COMPLETE: - if (data.success) { - streamController.startCall.resolve(); - } else { - streamController.startCall.reject(wrapReason(data.reason)); - } - break; - case StreamKind.PULL_COMPLETE: - if (data.success) { - streamController.pullCall.resolve(); - } else { - streamController.pullCall.reject(wrapReason(data.reason)); - } - break; - case StreamKind.PULL: - if (!streamSink) { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.PULL_COMPLETE, - streamId, - success: true - }); - break; - } - if (streamSink.desiredSize <= 0 && data.desiredSize > 0) { - streamSink.sinkCapability.resolve(); - } - streamSink.desiredSize = data.desiredSize; - new Promise(function(resolve) { - var _a; - resolve((_a = streamSink.onPull) == null ? void 0 : _a.call(streamSink)); - }).then(function() { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.PULL_COMPLETE, - streamId, - success: true - }); - }, function(reason) { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.PULL_COMPLETE, - streamId, - reason: wrapReason(reason) - }); - }); - break; - case StreamKind.ENQUEUE: - (0, _util2.assert)(streamController, "enqueue should have stream controller"); - if (streamController.isClosed) { - break; - } - streamController.controller.enqueue(data.chunk); - break; - case StreamKind.CLOSE: - (0, _util2.assert)(streamController, "close should have stream controller"); - if (streamController.isClosed) { - break; - } - streamController.isClosed = true; - streamController.controller.close(); - __privateMethod(this, _deleteStreamController, deleteStreamController_fn).call(this, streamController, streamId); - break; - case StreamKind.ERROR: - (0, _util2.assert)(streamController, "error should have stream controller"); - streamController.controller.error(wrapReason(data.reason)); - __privateMethod(this, _deleteStreamController, deleteStreamController_fn).call(this, streamController, streamId); - break; - case StreamKind.CANCEL_COMPLETE: - if (data.success) { - streamController.cancelCall.resolve(); - } else { - streamController.cancelCall.reject(wrapReason(data.reason)); - } - __privateMethod(this, _deleteStreamController, deleteStreamController_fn).call(this, streamController, streamId); - break; - case StreamKind.CANCEL: - if (!streamSink) { - break; - } - new Promise(function(resolve) { - var _a; - resolve((_a = streamSink.onCancel) == null ? void 0 : _a.call(streamSink, wrapReason(data.reason))); - }).then(function() { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.CANCEL_COMPLETE, - streamId, - success: true - }); - }, function(reason) { - comObj.postMessage({ - sourceName, - targetName, - stream: StreamKind.CANCEL_COMPLETE, - streamId, - reason: wrapReason(reason) - }); - }); - streamSink.sinkCapability.reject(wrapReason(data.reason)); - streamSink.isCancelled = true; - delete this.streamSinks[streamId]; - break; - default: - throw new Error("Unexpected stream case"); - } - }; - _deleteStreamController = new WeakSet(); - deleteStreamController_fn = async function(streamController, streamId) { - var _a, _b, _c; - await Promise.allSettled([(_a = streamController.startCall) == null ? void 0 : _a.promise, (_b = streamController.pullCall) == null ? void 0 : _b.promise, (_c = streamController.cancelCall) == null ? void 0 : _c.promise]); - delete this.streamControllers[streamId]; - }; - exports2.MessageHandler = MessageHandler; - }, - /* 16 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _metadataMap, _data; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.Metadata = void 0; - var _util2 = __w_pdfjs_require__2(1); - class Metadata { - constructor({ - parsedData, - rawData - }) { - __privateAdd(this, _metadataMap, void 0); - __privateAdd(this, _data, void 0); - __privateSet(this, _metadataMap, parsedData); - __privateSet(this, _data, rawData); - } - getRaw() { - return __privateGet(this, _data); - } - get(name) { - var _a; - return (_a = __privateGet(this, _metadataMap).get(name)) != null ? _a : null; - } - getAll() { - return (0, _util2.objectFromMap)(__privateGet(this, _metadataMap)); - } - has(name) { - return __privateGet(this, _metadataMap).has(name); - } - } - _metadataMap = new WeakMap(); - _data = new WeakMap(); - exports2.Metadata = Metadata; - }, - /* 17 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _visible, _cachedGetHash, _groups, _initialHash, _order, _evaluateVisibilityExpression, evaluateVisibilityExpression_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.OptionalContentConfig = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _murmurhash = __w_pdfjs_require__2(8); - const INTERNAL = Symbol("INTERNAL"); - class OptionalContentGroup { - constructor(name, intent) { - __privateAdd(this, _visible, true); - this.name = name; - this.intent = intent; - } - get visible() { - return __privateGet(this, _visible); - } - _setVisible(internal, visible) { - if (internal !== INTERNAL) { - (0, _util2.unreachable)("Internal method `_setVisible` called."); - } - __privateSet(this, _visible, visible); - } - } - _visible = new WeakMap(); - class OptionalContentConfig { - constructor(data) { - __privateAdd(this, _evaluateVisibilityExpression); - __privateAdd(this, _cachedGetHash, null); - __privateAdd(this, _groups, /* @__PURE__ */ new Map()); - __privateAdd(this, _initialHash, null); - __privateAdd(this, _order, null); - this.name = null; - this.creator = null; - if (data === null) { - return; - } - this.name = data.name; - this.creator = data.creator; - __privateSet(this, _order, data.order); - for (const group of data.groups) { - __privateGet(this, _groups).set(group.id, new OptionalContentGroup(group.name, group.intent)); - } - if (data.baseState === "OFF") { - for (const group of __privateGet(this, _groups).values()) { - group._setVisible(INTERNAL, false); - } - } - for (const on2 of data.on) { - __privateGet(this, _groups).get(on2)._setVisible(INTERNAL, true); - } - for (const off of data.off) { - __privateGet(this, _groups).get(off)._setVisible(INTERNAL, false); - } - __privateSet(this, _initialHash, this.getHash()); - } - isVisible(group) { - if (__privateGet(this, _groups).size === 0) { - return true; - } - if (!group) { - (0, _util2.warn)("Optional content group not defined."); - return true; - } - if (group.type === "OCG") { - if (!__privateGet(this, _groups).has(group.id)) { - (0, _util2.warn)(`Optional content group not found: ${group.id}`); - return true; - } - return __privateGet(this, _groups).get(group.id).visible; - } else if (group.type === "OCMD") { - if (group.expression) { - return __privateMethod(this, _evaluateVisibilityExpression, evaluateVisibilityExpression_fn).call(this, group.expression); - } - if (!group.policy || group.policy === "AnyOn") { - for (const id of group.ids) { - if (!__privateGet(this, _groups).has(id)) { - (0, _util2.warn)(`Optional content group not found: ${id}`); - return true; - } - if (__privateGet(this, _groups).get(id).visible) { - return true; - } - } - return false; - } else if (group.policy === "AllOn") { - for (const id of group.ids) { - if (!__privateGet(this, _groups).has(id)) { - (0, _util2.warn)(`Optional content group not found: ${id}`); - return true; - } - if (!__privateGet(this, _groups).get(id).visible) { - return false; - } - } - return true; - } else if (group.policy === "AnyOff") { - for (const id of group.ids) { - if (!__privateGet(this, _groups).has(id)) { - (0, _util2.warn)(`Optional content group not found: ${id}`); - return true; - } - if (!__privateGet(this, _groups).get(id).visible) { - return true; - } - } - return false; - } else if (group.policy === "AllOff") { - for (const id of group.ids) { - if (!__privateGet(this, _groups).has(id)) { - (0, _util2.warn)(`Optional content group not found: ${id}`); - return true; - } - if (__privateGet(this, _groups).get(id).visible) { - return false; - } - } - return true; - } - (0, _util2.warn)(`Unknown optional content policy ${group.policy}.`); - return true; - } - (0, _util2.warn)(`Unknown group type ${group.type}.`); - return true; - } - setVisibility(id, visible = true) { - if (!__privateGet(this, _groups).has(id)) { - (0, _util2.warn)(`Optional content group not found: ${id}`); - return; - } - __privateGet(this, _groups).get(id)._setVisible(INTERNAL, !!visible); - __privateSet(this, _cachedGetHash, null); - } - get hasInitialVisibility() { - return __privateGet(this, _initialHash) === null || this.getHash() === __privateGet(this, _initialHash); - } - getOrder() { - if (!__privateGet(this, _groups).size) { - return null; - } - if (__privateGet(this, _order)) { - return __privateGet(this, _order).slice(); - } - return [...__privateGet(this, _groups).keys()]; - } - getGroups() { - return __privateGet(this, _groups).size > 0 ? (0, _util2.objectFromMap)(__privateGet(this, _groups)) : null; - } - getGroup(id) { - return __privateGet(this, _groups).get(id) || null; - } - getHash() { - if (__privateGet(this, _cachedGetHash) !== null) { - return __privateGet(this, _cachedGetHash); - } - const hash = new _murmurhash.MurmurHash3_64(); - for (const [id, group] of __privateGet(this, _groups)) { - hash.update(`${id}:${group.visible}`); - } - return __privateSet(this, _cachedGetHash, hash.hexdigest()); - } - } - _cachedGetHash = new WeakMap(); - _groups = new WeakMap(); - _initialHash = new WeakMap(); - _order = new WeakMap(); - _evaluateVisibilityExpression = new WeakSet(); - evaluateVisibilityExpression_fn = function(array) { - const length = array.length; - if (length < 2) { - return true; - } - const operator = array[0]; - for (let i2 = 1; i2 < length; i2++) { - const element = array[i2]; - let state; - if (Array.isArray(element)) { - state = __privateMethod(this, _evaluateVisibilityExpression, evaluateVisibilityExpression_fn).call(this, element); - } else if (__privateGet(this, _groups).has(element)) { - state = __privateGet(this, _groups).get(element).visible; - } else { - (0, _util2.warn)(`Optional content group not found: ${element}`); - return true; - } - switch (operator) { - case "And": - if (!state) { - return false; - } - break; - case "Or": - if (state) { - return true; - } - break; - case "Not": - return !state; - default: - return true; - } - } - return operator === "And"; - }; - exports2.OptionalContentConfig = OptionalContentConfig; - }, - /* 18 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.PDFDataTransportStream = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - class PDFDataTransportStream { - constructor({ - length, - initialData, - progressiveDone = false, - contentDispositionFilename = null, - disableRange = false, - disableStream = false - }, pdfDataRangeTransport) { - (0, _util2.assert)(pdfDataRangeTransport, 'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'); - this._queuedChunks = []; - this._progressiveDone = progressiveDone; - this._contentDispositionFilename = contentDispositionFilename; - if ((initialData == null ? void 0 : initialData.length) > 0) { - const buffer = initialData instanceof Uint8Array && initialData.byteLength === initialData.buffer.byteLength ? initialData.buffer : new Uint8Array(initialData).buffer; - this._queuedChunks.push(buffer); - } - this._pdfDataRangeTransport = pdfDataRangeTransport; - this._isStreamingSupported = !disableStream; - this._isRangeSupported = !disableRange; - this._contentLength = length; - this._fullRequestReader = null; - this._rangeReaders = []; - this._pdfDataRangeTransport.addRangeListener((begin, chunk) => { - this._onReceiveData({ - begin, - chunk - }); - }); - this._pdfDataRangeTransport.addProgressListener((loaded, total) => { - this._onProgress({ - loaded, - total - }); - }); - this._pdfDataRangeTransport.addProgressiveReadListener((chunk) => { - this._onReceiveData({ - chunk - }); - }); - this._pdfDataRangeTransport.addProgressiveDoneListener(() => { - this._onProgressiveDone(); - }); - this._pdfDataRangeTransport.transportReady(); - } - _onReceiveData({ - begin, - chunk - }) { - const buffer = chunk instanceof Uint8Array && chunk.byteLength === chunk.buffer.byteLength ? chunk.buffer : new Uint8Array(chunk).buffer; - if (begin === void 0) { - if (this._fullRequestReader) { - this._fullRequestReader._enqueue(buffer); - } else { - this._queuedChunks.push(buffer); - } - } else { - const found = this._rangeReaders.some(function(rangeReader) { - if (rangeReader._begin !== begin) { - return false; - } - rangeReader._enqueue(buffer); - return true; - }); - (0, _util2.assert)(found, "_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found."); - } - } - get _progressiveDataLength() { - var _a, _b; - return (_b = (_a = this._fullRequestReader) == null ? void 0 : _a._loaded) != null ? _b : 0; - } - _onProgress(evt) { - var _a, _b, _c, _d; - if (evt.total === void 0) { - (_b = (_a = this._rangeReaders[0]) == null ? void 0 : _a.onProgress) == null ? void 0 : _b.call(_a, { - loaded: evt.loaded - }); - } else { - (_d = (_c = this._fullRequestReader) == null ? void 0 : _c.onProgress) == null ? void 0 : _d.call(_c, { - loaded: evt.loaded, - total: evt.total - }); - } - } - _onProgressiveDone() { - var _a; - (_a = this._fullRequestReader) == null ? void 0 : _a.progressiveDone(); - this._progressiveDone = true; - } - _removeRangeReader(reader) { - const i2 = this._rangeReaders.indexOf(reader); - if (i2 >= 0) { - this._rangeReaders.splice(i2, 1); - } - } - getFullReader() { - (0, _util2.assert)(!this._fullRequestReader, "PDFDataTransportStream.getFullReader can only be called once."); - const queuedChunks = this._queuedChunks; - this._queuedChunks = null; - return new PDFDataTransportStreamReader(this, queuedChunks, this._progressiveDone, this._contentDispositionFilename); - } - getRangeReader(begin, end) { - if (end <= this._progressiveDataLength) { - return null; - } - const reader = new PDFDataTransportStreamRangeReader(this, begin, end); - this._pdfDataRangeTransport.requestDataRange(begin, end); - this._rangeReaders.push(reader); - return reader; - } - cancelAllRequests(reason) { - var _a; - (_a = this._fullRequestReader) == null ? void 0 : _a.cancel(reason); - for (const reader of this._rangeReaders.slice(0)) { - reader.cancel(reason); - } - this._pdfDataRangeTransport.abort(); - } - } - exports2.PDFDataTransportStream = PDFDataTransportStream; - class PDFDataTransportStreamReader { - constructor(stream, queuedChunks, progressiveDone = false, contentDispositionFilename = null) { - this._stream = stream; - this._done = progressiveDone || false; - this._filename = (0, _display_utils2.isPdfFile)(contentDispositionFilename) ? contentDispositionFilename : null; - this._queuedChunks = queuedChunks || []; - this._loaded = 0; - for (const chunk of this._queuedChunks) { - this._loaded += chunk.byteLength; - } - this._requests = []; - this._headersReady = Promise.resolve(); - stream._fullRequestReader = this; - this.onProgress = null; - } - _enqueue(chunk) { - if (this._done) { - return; - } - if (this._requests.length > 0) { - const requestCapability = this._requests.shift(); - requestCapability.resolve({ - value: chunk, - done: false - }); - } else { - this._queuedChunks.push(chunk); - } - this._loaded += chunk.byteLength; - } - get headersReady() { - return this._headersReady; - } - get filename() { - return this._filename; - } - get isRangeSupported() { - return this._stream._isRangeSupported; - } - get isStreamingSupported() { - return this._stream._isStreamingSupported; - } - get contentLength() { - return this._stream._contentLength; - } - async read() { - if (this._queuedChunks.length > 0) { - const chunk = this._queuedChunks.shift(); - return { - value: chunk, - done: false - }; - } - if (this._done) { - return { - value: void 0, - done: true - }; - } - const requestCapability = new _util2.PromiseCapability(); - this._requests.push(requestCapability); - return requestCapability.promise; - } - cancel(reason) { - this._done = true; - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - } - progressiveDone() { - if (this._done) { - return; - } - this._done = true; - } - } - class PDFDataTransportStreamRangeReader { - constructor(stream, begin, end) { - this._stream = stream; - this._begin = begin; - this._end = end; - this._queuedChunk = null; - this._requests = []; - this._done = false; - this.onProgress = null; - } - _enqueue(chunk) { - if (this._done) { - return; - } - if (this._requests.length === 0) { - this._queuedChunk = chunk; - } else { - const requestsCapability = this._requests.shift(); - requestsCapability.resolve({ - value: chunk, - done: false - }); - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - } - this._done = true; - this._stream._removeRangeReader(this); - } - get isStreamingSupported() { - return false; - } - async read() { - if (this._queuedChunk) { - const chunk = this._queuedChunk; - this._queuedChunk = null; - return { - value: chunk, - done: false - }; - } - if (this._done) { - return { - value: void 0, - done: true - }; - } - const requestCapability = new _util2.PromiseCapability(); - this._requests.push(requestCapability); - return requestCapability.promise; - } - cancel(reason) { - this._done = true; - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - this._stream._removeRangeReader(this); - } - } - }, - /* 19 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.PDFFetchStream = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _network_utils = __w_pdfjs_require__2(20); - ; - function createFetchOptions(headers, withCredentials, abortController) { - return { - method: "GET", - headers, - signal: abortController.signal, - mode: "cors", - credentials: withCredentials ? "include" : "same-origin", - redirect: "follow" - }; - } - function createHeaders(httpHeaders) { - const headers = new Headers(); - for (const property in httpHeaders) { - const value = httpHeaders[property]; - if (value === void 0) { - continue; - } - headers.append(property, value); - } - return headers; - } - function getArrayBuffer(val) { - if (val instanceof Uint8Array) { - return val.buffer; - } - if (val instanceof ArrayBuffer) { - return val; - } - (0, _util2.warn)(`getArrayBuffer - unexpected data format: ${val}`); - return new Uint8Array(val).buffer; - } - class PDFFetchStream { - constructor(source) { - this.source = source; - this.isHttp = /^https?:/i.test(source.url); - this.httpHeaders = this.isHttp && source.httpHeaders || {}; - this._fullRequestReader = null; - this._rangeRequestReaders = []; - } - get _progressiveDataLength() { - var _a, _b; - return (_b = (_a = this._fullRequestReader) == null ? void 0 : _a._loaded) != null ? _b : 0; - } - getFullReader() { - (0, _util2.assert)(!this._fullRequestReader, "PDFFetchStream.getFullReader can only be called once."); - this._fullRequestReader = new PDFFetchStreamReader(this); - return this._fullRequestReader; - } - getRangeReader(begin, end) { - if (end <= this._progressiveDataLength) { - return null; - } - const reader = new PDFFetchStreamRangeReader(this, begin, end); - this._rangeRequestReaders.push(reader); - return reader; - } - cancelAllRequests(reason) { - var _a; - (_a = this._fullRequestReader) == null ? void 0 : _a.cancel(reason); - for (const reader of this._rangeRequestReaders.slice(0)) { - reader.cancel(reason); - } - } - } - exports2.PDFFetchStream = PDFFetchStream; - class PDFFetchStreamReader { - constructor(stream) { - this._stream = stream; - this._reader = null; - this._loaded = 0; - this._filename = null; - const source = stream.source; - this._withCredentials = source.withCredentials || false; - this._contentLength = source.length; - this._headersCapability = new _util2.PromiseCapability(); - this._disableRange = source.disableRange || false; - this._rangeChunkSize = source.rangeChunkSize; - if (!this._rangeChunkSize && !this._disableRange) { - this._disableRange = true; - } - this._abortController = new AbortController(); - this._isStreamingSupported = !source.disableStream; - this._isRangeSupported = !source.disableRange; - this._headers = createHeaders(this._stream.httpHeaders); - const url = source.url; - fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then((response) => { - if (!(0, _network_utils.validateResponseStatus)(response.status)) { - throw (0, _network_utils.createResponseStatusError)(response.status, url); - } - this._reader = response.body.getReader(); - this._headersCapability.resolve(); - const getResponseHeader = (name) => { - return response.headers.get(name); - }; - const { - allowRangeRequests, - suggestedLength - } = (0, _network_utils.validateRangeRequestCapabilities)({ - getResponseHeader, - isHttp: this._stream.isHttp, - rangeChunkSize: this._rangeChunkSize, - disableRange: this._disableRange - }); - this._isRangeSupported = allowRangeRequests; - this._contentLength = suggestedLength || this._contentLength; - this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader); - if (!this._isStreamingSupported && this._isRangeSupported) { - this.cancel(new _util2.AbortException("Streaming is disabled.")); - } - }).catch(this._headersCapability.reject); - this.onProgress = null; - } - get headersReady() { - return this._headersCapability.promise; - } - get filename() { - return this._filename; - } - get contentLength() { - return this._contentLength; - } - get isRangeSupported() { - return this._isRangeSupported; - } - get isStreamingSupported() { - return this._isStreamingSupported; - } - async read() { - var _a; - await this._headersCapability.promise; - const { - value, - done - } = await this._reader.read(); - if (done) { - return { - value, - done - }; - } - this._loaded += value.byteLength; - (_a = this.onProgress) == null ? void 0 : _a.call(this, { - loaded: this._loaded, - total: this._contentLength - }); - return { - value: getArrayBuffer(value), - done: false - }; - } - cancel(reason) { - var _a; - (_a = this._reader) == null ? void 0 : _a.cancel(reason); - this._abortController.abort(); - } - } - class PDFFetchStreamRangeReader { - constructor(stream, begin, end) { - this._stream = stream; - this._reader = null; - this._loaded = 0; - const source = stream.source; - this._withCredentials = source.withCredentials || false; - this._readCapability = new _util2.PromiseCapability(); - this._isStreamingSupported = !source.disableStream; - this._abortController = new AbortController(); - this._headers = createHeaders(this._stream.httpHeaders); - this._headers.append("Range", `bytes=${begin}-${end - 1}`); - const url = source.url; - fetch(url, createFetchOptions(this._headers, this._withCredentials, this._abortController)).then((response) => { - if (!(0, _network_utils.validateResponseStatus)(response.status)) { - throw (0, _network_utils.createResponseStatusError)(response.status, url); - } - this._readCapability.resolve(); - this._reader = response.body.getReader(); - }).catch(this._readCapability.reject); - this.onProgress = null; - } - get isStreamingSupported() { - return this._isStreamingSupported; - } - async read() { - var _a; - await this._readCapability.promise; - const { - value, - done - } = await this._reader.read(); - if (done) { - return { - value, - done - }; - } - this._loaded += value.byteLength; - (_a = this.onProgress) == null ? void 0 : _a.call(this, { - loaded: this._loaded - }); - return { - value: getArrayBuffer(value), - done: false - }; - } - cancel(reason) { - var _a; - (_a = this._reader) == null ? void 0 : _a.cancel(reason); - this._abortController.abort(); - } - } - }, - /* 20 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.createResponseStatusError = createResponseStatusError; - exports2.extractFilenameFromHeader = extractFilenameFromHeader; - exports2.validateRangeRequestCapabilities = validateRangeRequestCapabilities; - exports2.validateResponseStatus = validateResponseStatus; - var _util2 = __w_pdfjs_require__2(1); - var _content_disposition = __w_pdfjs_require__2(21); - var _display_utils2 = __w_pdfjs_require__2(6); - function validateRangeRequestCapabilities({ - getResponseHeader, - isHttp, - rangeChunkSize, - disableRange - }) { - const returnValues = { - allowRangeRequests: false, - suggestedLength: void 0 - }; - const length = parseInt(getResponseHeader("Content-Length"), 10); - if (!Number.isInteger(length)) { - return returnValues; - } - returnValues.suggestedLength = length; - if (length <= 2 * rangeChunkSize) { - return returnValues; - } - if (disableRange || !isHttp) { - return returnValues; - } - if (getResponseHeader("Accept-Ranges") !== "bytes") { - return returnValues; - } - const contentEncoding = getResponseHeader("Content-Encoding") || "identity"; - if (contentEncoding !== "identity") { - return returnValues; - } - returnValues.allowRangeRequests = true; - return returnValues; - } - function extractFilenameFromHeader(getResponseHeader) { - const contentDisposition = getResponseHeader("Content-Disposition"); - if (contentDisposition) { - let filename = (0, _content_disposition.getFilenameFromContentDispositionHeader)(contentDisposition); - if (filename.includes("%")) { - try { - filename = decodeURIComponent(filename); - } catch (e2) { - } - } - if ((0, _display_utils2.isPdfFile)(filename)) { - return filename; - } - } - return null; - } - function createResponseStatusError(status, url) { - if (status === 404 || status === 0 && url.startsWith("file:")) { - return new _util2.MissingPDFException('Missing PDF "' + url + '".'); - } - return new _util2.UnexpectedResponseException(`Unexpected server response (${status}) while retrieving PDF "${url}".`, status); - } - function validateResponseStatus(status) { - return status === 200 || status === 206; - } - }, - /* 21 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.getFilenameFromContentDispositionHeader = getFilenameFromContentDispositionHeader; - var _util2 = __w_pdfjs_require__2(1); - function getFilenameFromContentDispositionHeader(contentDisposition) { - let needsEncodingFixup = true; - let tmp = toParamRegExp("filename\\*", "i").exec(contentDisposition); - if (tmp) { - tmp = tmp[1]; - let filename = rfc2616unquote(tmp); - filename = unescape(filename); - filename = rfc5987decode(filename); - filename = rfc2047decode(filename); - return fixupEncoding(filename); - } - tmp = rfc2231getparam(contentDisposition); - if (tmp) { - const filename = rfc2047decode(tmp); - return fixupEncoding(filename); - } - tmp = toParamRegExp("filename", "i").exec(contentDisposition); - if (tmp) { - tmp = tmp[1]; - let filename = rfc2616unquote(tmp); - filename = rfc2047decode(filename); - return fixupEncoding(filename); - } - function toParamRegExp(attributePattern, flags) { - return new RegExp("(?:^|;)\\s*" + attributePattern + '\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)', flags); - } - function textdecode(encoding, value) { - if (encoding) { - if (!/^[\x00-\xFF]+$/.test(value)) { - return value; - } - try { - const decoder = new TextDecoder(encoding, { - fatal: true - }); - const buffer = (0, _util2.stringToBytes)(value); - value = decoder.decode(buffer); - needsEncodingFixup = false; - } catch (e2) { - } - } - return value; - } - function fixupEncoding(value) { - if (needsEncodingFixup && /[\x80-\xff]/.test(value)) { - value = textdecode("utf-8", value); - if (needsEncodingFixup) { - value = textdecode("iso-8859-1", value); - } - } - return value; - } - function rfc2231getparam(contentDispositionStr) { - const matches = []; - let match; - const iter = toParamRegExp("filename\\*((?!0\\d)\\d+)(\\*?)", "ig"); - while ((match = iter.exec(contentDispositionStr)) !== null) { - let [, n2, quot, part] = match; - n2 = parseInt(n2, 10); - if (n2 in matches) { - if (n2 === 0) { - break; - } - continue; - } - matches[n2] = [quot, part]; - } - const parts = []; - for (let n2 = 0; n2 < matches.length; ++n2) { - if (!(n2 in matches)) { - break; - } - let [quot, part] = matches[n2]; - part = rfc2616unquote(part); - if (quot) { - part = unescape(part); - if (n2 === 0) { - part = rfc5987decode(part); - } - } - parts.push(part); - } - return parts.join(""); - } - function rfc2616unquote(value) { - if (value.startsWith('"')) { - const parts = value.slice(1).split('\\"'); - for (let i2 = 0; i2 < parts.length; ++i2) { - const quotindex = parts[i2].indexOf('"'); - if (quotindex !== -1) { - parts[i2] = parts[i2].slice(0, quotindex); - parts.length = i2 + 1; - } - parts[i2] = parts[i2].replaceAll(/\\(.)/g, "$1"); - } - value = parts.join('"'); - } - return value; - } - function rfc5987decode(extvalue) { - const encodingend = extvalue.indexOf("'"); - if (encodingend === -1) { - return extvalue; - } - const encoding = extvalue.slice(0, encodingend); - const langvalue = extvalue.slice(encodingend + 1); - const value = langvalue.replace(/^[^']*'/, ""); - return textdecode(encoding, value); - } - function rfc2047decode(value) { - if (!value.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(value)) { - return value; - } - return value.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function(matches, charset, encoding, text) { - if (encoding === "q" || encoding === "Q") { - text = text.replaceAll("_", " "); - text = text.replaceAll(/=([0-9a-fA-F]{2})/g, function(match, hex) { - return String.fromCharCode(parseInt(hex, 16)); - }); - return textdecode(charset, text); - } - try { - text = atob(text); - } catch (e2) { - } - return textdecode(charset, text); - }); - } - return ""; - } - }, - /* 22 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.PDFNetworkStream = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _network_utils = __w_pdfjs_require__2(20); - ; - const OK_RESPONSE = 200; - const PARTIAL_CONTENT_RESPONSE = 206; - function getArrayBuffer(xhr) { - const data = xhr.response; - if (typeof data !== "string") { - return data; - } - return (0, _util2.stringToBytes)(data).buffer; - } - class NetworkManager { - constructor(url, args = {}) { - this.url = url; - this.isHttp = /^https?:/i.test(url); - this.httpHeaders = this.isHttp && args.httpHeaders || /* @__PURE__ */ Object.create(null); - this.withCredentials = args.withCredentials || false; - this.currXhrId = 0; - this.pendingRequests = /* @__PURE__ */ Object.create(null); - } - requestRange(begin, end, listeners) { - const args = { - begin, - end - }; - for (const prop in listeners) { - args[prop] = listeners[prop]; - } - return this.request(args); - } - requestFull(listeners) { - return this.request(listeners); - } - request(args) { - const xhr = new XMLHttpRequest(); - const xhrId = this.currXhrId++; - const pendingRequest = this.pendingRequests[xhrId] = { - xhr - }; - xhr.open("GET", this.url); - xhr.withCredentials = this.withCredentials; - for (const property in this.httpHeaders) { - const value = this.httpHeaders[property]; - if (value === void 0) { - continue; - } - xhr.setRequestHeader(property, value); - } - if (this.isHttp && "begin" in args && "end" in args) { - xhr.setRequestHeader("Range", `bytes=${args.begin}-${args.end - 1}`); - pendingRequest.expectedStatus = PARTIAL_CONTENT_RESPONSE; - } else { - pendingRequest.expectedStatus = OK_RESPONSE; - } - xhr.responseType = "arraybuffer"; - if (args.onError) { - xhr.onerror = function(evt) { - args.onError(xhr.status); - }; - } - xhr.onreadystatechange = this.onStateChange.bind(this, xhrId); - xhr.onprogress = this.onProgress.bind(this, xhrId); - pendingRequest.onHeadersReceived = args.onHeadersReceived; - pendingRequest.onDone = args.onDone; - pendingRequest.onError = args.onError; - pendingRequest.onProgress = args.onProgress; - xhr.send(null); - return xhrId; - } - onProgress(xhrId, evt) { - var _a; - const pendingRequest = this.pendingRequests[xhrId]; - if (!pendingRequest) { - return; - } - (_a = pendingRequest.onProgress) == null ? void 0 : _a.call(pendingRequest, evt); - } - onStateChange(xhrId, evt) { - var _a, _b, _c; - const pendingRequest = this.pendingRequests[xhrId]; - if (!pendingRequest) { - return; - } - const xhr = pendingRequest.xhr; - if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) { - pendingRequest.onHeadersReceived(); - delete pendingRequest.onHeadersReceived; - } - if (xhr.readyState !== 4) { - return; - } - if (!(xhrId in this.pendingRequests)) { - return; - } - delete this.pendingRequests[xhrId]; - if (xhr.status === 0 && this.isHttp) { - (_a = pendingRequest.onError) == null ? void 0 : _a.call(pendingRequest, xhr.status); - return; - } - const xhrStatus = xhr.status || OK_RESPONSE; - const ok_response_on_range_request = xhrStatus === OK_RESPONSE && pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE; - if (!ok_response_on_range_request && xhrStatus !== pendingRequest.expectedStatus) { - (_b = pendingRequest.onError) == null ? void 0 : _b.call(pendingRequest, xhr.status); - return; - } - const chunk = getArrayBuffer(xhr); - if (xhrStatus === PARTIAL_CONTENT_RESPONSE) { - const rangeHeader = xhr.getResponseHeader("Content-Range"); - const matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader); - pendingRequest.onDone({ - begin: parseInt(matches[1], 10), - chunk - }); - } else if (chunk) { - pendingRequest.onDone({ - begin: 0, - chunk - }); - } else { - (_c = pendingRequest.onError) == null ? void 0 : _c.call(pendingRequest, xhr.status); - } - } - getRequestXhr(xhrId) { - return this.pendingRequests[xhrId].xhr; - } - isPendingRequest(xhrId) { - return xhrId in this.pendingRequests; - } - abortRequest(xhrId) { - const xhr = this.pendingRequests[xhrId].xhr; - delete this.pendingRequests[xhrId]; - xhr.abort(); - } - } - class PDFNetworkStream { - constructor(source) { - this._source = source; - this._manager = new NetworkManager(source.url, { - httpHeaders: source.httpHeaders, - withCredentials: source.withCredentials - }); - this._rangeChunkSize = source.rangeChunkSize; - this._fullRequestReader = null; - this._rangeRequestReaders = []; - } - _onRangeRequestReaderClosed(reader) { - const i2 = this._rangeRequestReaders.indexOf(reader); - if (i2 >= 0) { - this._rangeRequestReaders.splice(i2, 1); - } - } - getFullReader() { - (0, _util2.assert)(!this._fullRequestReader, "PDFNetworkStream.getFullReader can only be called once."); - this._fullRequestReader = new PDFNetworkStreamFullRequestReader(this._manager, this._source); - return this._fullRequestReader; - } - getRangeReader(begin, end) { - const reader = new PDFNetworkStreamRangeRequestReader(this._manager, begin, end); - reader.onClosed = this._onRangeRequestReaderClosed.bind(this); - this._rangeRequestReaders.push(reader); - return reader; - } - cancelAllRequests(reason) { - var _a; - (_a = this._fullRequestReader) == null ? void 0 : _a.cancel(reason); - for (const reader of this._rangeRequestReaders.slice(0)) { - reader.cancel(reason); - } - } - } - exports2.PDFNetworkStream = PDFNetworkStream; - class PDFNetworkStreamFullRequestReader { - constructor(manager, source) { - this._manager = manager; - const args = { - onHeadersReceived: this._onHeadersReceived.bind(this), - onDone: this._onDone.bind(this), - onError: this._onError.bind(this), - onProgress: this._onProgress.bind(this) - }; - this._url = source.url; - this._fullRequestId = manager.requestFull(args); - this._headersReceivedCapability = new _util2.PromiseCapability(); - this._disableRange = source.disableRange || false; - this._contentLength = source.length; - this._rangeChunkSize = source.rangeChunkSize; - if (!this._rangeChunkSize && !this._disableRange) { - this._disableRange = true; - } - this._isStreamingSupported = false; - this._isRangeSupported = false; - this._cachedChunks = []; - this._requests = []; - this._done = false; - this._storedError = void 0; - this._filename = null; - this.onProgress = null; - } - _onHeadersReceived() { - const fullRequestXhrId = this._fullRequestId; - const fullRequestXhr = this._manager.getRequestXhr(fullRequestXhrId); - const getResponseHeader = (name) => { - return fullRequestXhr.getResponseHeader(name); - }; - const { - allowRangeRequests, - suggestedLength - } = (0, _network_utils.validateRangeRequestCapabilities)({ - getResponseHeader, - isHttp: this._manager.isHttp, - rangeChunkSize: this._rangeChunkSize, - disableRange: this._disableRange - }); - if (allowRangeRequests) { - this._isRangeSupported = true; - } - this._contentLength = suggestedLength || this._contentLength; - this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader); - if (this._isRangeSupported) { - this._manager.abortRequest(fullRequestXhrId); - } - this._headersReceivedCapability.resolve(); - } - _onDone(data) { - if (data) { - if (this._requests.length > 0) { - const requestCapability = this._requests.shift(); - requestCapability.resolve({ - value: data.chunk, - done: false - }); - } else { - this._cachedChunks.push(data.chunk); - } - } - this._done = true; - if (this._cachedChunks.length > 0) { - return; - } - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - } - _onError(status) { - this._storedError = (0, _network_utils.createResponseStatusError)(status, this._url); - this._headersReceivedCapability.reject(this._storedError); - for (const requestCapability of this._requests) { - requestCapability.reject(this._storedError); - } - this._requests.length = 0; - this._cachedChunks.length = 0; - } - _onProgress(evt) { - var _a; - (_a = this.onProgress) == null ? void 0 : _a.call(this, { - loaded: evt.loaded, - total: evt.lengthComputable ? evt.total : this._contentLength - }); - } - get filename() { - return this._filename; - } - get isRangeSupported() { - return this._isRangeSupported; - } - get isStreamingSupported() { - return this._isStreamingSupported; - } - get contentLength() { - return this._contentLength; - } - get headersReady() { - return this._headersReceivedCapability.promise; - } - async read() { - if (this._storedError) { - throw this._storedError; - } - if (this._cachedChunks.length > 0) { - const chunk = this._cachedChunks.shift(); - return { - value: chunk, - done: false - }; - } - if (this._done) { - return { - value: void 0, - done: true - }; - } - const requestCapability = new _util2.PromiseCapability(); - this._requests.push(requestCapability); - return requestCapability.promise; - } - cancel(reason) { - this._done = true; - this._headersReceivedCapability.reject(reason); - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - if (this._manager.isPendingRequest(this._fullRequestId)) { - this._manager.abortRequest(this._fullRequestId); - } - this._fullRequestReader = null; - } - } - class PDFNetworkStreamRangeRequestReader { - constructor(manager, begin, end) { - this._manager = manager; - const args = { - onDone: this._onDone.bind(this), - onError: this._onError.bind(this), - onProgress: this._onProgress.bind(this) - }; - this._url = manager.url; - this._requestId = manager.requestRange(begin, end, args); - this._requests = []; - this._queuedChunk = null; - this._done = false; - this._storedError = void 0; - this.onProgress = null; - this.onClosed = null; - } - _close() { - var _a; - (_a = this.onClosed) == null ? void 0 : _a.call(this, this); - } - _onDone(data) { - const chunk = data.chunk; - if (this._requests.length > 0) { - const requestCapability = this._requests.shift(); - requestCapability.resolve({ - value: chunk, - done: false - }); - } else { - this._queuedChunk = chunk; - } - this._done = true; - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - this._close(); - } - _onError(status) { - this._storedError = (0, _network_utils.createResponseStatusError)(status, this._url); - for (const requestCapability of this._requests) { - requestCapability.reject(this._storedError); - } - this._requests.length = 0; - this._queuedChunk = null; - } - _onProgress(evt) { - var _a; - if (!this.isStreamingSupported) { - (_a = this.onProgress) == null ? void 0 : _a.call(this, { - loaded: evt.loaded - }); - } - } - get isStreamingSupported() { - return false; - } - async read() { - if (this._storedError) { - throw this._storedError; - } - if (this._queuedChunk !== null) { - const chunk = this._queuedChunk; - this._queuedChunk = null; - return { - value: chunk, - done: false - }; - } - if (this._done) { - return { - value: void 0, - done: true - }; - } - const requestCapability = new _util2.PromiseCapability(); - this._requests.push(requestCapability); - return requestCapability.promise; - } - cancel(reason) { - this._done = true; - for (const requestCapability of this._requests) { - requestCapability.resolve({ - value: void 0, - done: true - }); - } - this._requests.length = 0; - if (this._manager.isPendingRequest(this._requestId)) { - this._manager.abortRequest(this._requestId); - } - this._close(); - } - } - }, - /* 23 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.PDFNodeStream = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _network_utils = __w_pdfjs_require__2(20); - ; - const fileUriRegex = /^file:\/\/\/[a-zA-Z]:\//; - function parseUrl(sourceUrl) { - const url = require_url(); - const parsedUrl = url.parse(sourceUrl); - if (parsedUrl.protocol === "file:" || parsedUrl.host) { - return parsedUrl; - } - if (/^[a-z]:[/\\]/i.test(sourceUrl)) { - return url.parse(`file:///${sourceUrl}`); - } - if (!parsedUrl.host) { - parsedUrl.protocol = "file:"; - } - return parsedUrl; - } - class PDFNodeStream { - constructor(source) { - this.source = source; - this.url = parseUrl(source.url); - this.isHttp = this.url.protocol === "http:" || this.url.protocol === "https:"; - this.isFsUrl = this.url.protocol === "file:"; - this.httpHeaders = this.isHttp && source.httpHeaders || {}; - this._fullRequestReader = null; - this._rangeRequestReaders = []; - } - get _progressiveDataLength() { - var _a, _b; - return (_b = (_a = this._fullRequestReader) == null ? void 0 : _a._loaded) != null ? _b : 0; - } - getFullReader() { - (0, _util2.assert)(!this._fullRequestReader, "PDFNodeStream.getFullReader can only be called once."); - this._fullRequestReader = this.isFsUrl ? new PDFNodeStreamFsFullReader(this) : new PDFNodeStreamFullReader(this); - return this._fullRequestReader; - } - getRangeReader(start, end) { - if (end <= this._progressiveDataLength) { - return null; - } - const rangeReader = this.isFsUrl ? new PDFNodeStreamFsRangeReader(this, start, end) : new PDFNodeStreamRangeReader(this, start, end); - this._rangeRequestReaders.push(rangeReader); - return rangeReader; - } - cancelAllRequests(reason) { - var _a; - (_a = this._fullRequestReader) == null ? void 0 : _a.cancel(reason); - for (const reader of this._rangeRequestReaders.slice(0)) { - reader.cancel(reason); - } - } - } - exports2.PDFNodeStream = PDFNodeStream; - class BaseFullReader { - constructor(stream) { - this._url = stream.url; - this._done = false; - this._storedError = null; - this.onProgress = null; - const source = stream.source; - this._contentLength = source.length; - this._loaded = 0; - this._filename = null; - this._disableRange = source.disableRange || false; - this._rangeChunkSize = source.rangeChunkSize; - if (!this._rangeChunkSize && !this._disableRange) { - this._disableRange = true; - } - this._isStreamingSupported = !source.disableStream; - this._isRangeSupported = !source.disableRange; - this._readableStream = null; - this._readCapability = new _util2.PromiseCapability(); - this._headersCapability = new _util2.PromiseCapability(); - } - get headersReady() { - return this._headersCapability.promise; - } - get filename() { - return this._filename; - } - get contentLength() { - return this._contentLength; - } - get isRangeSupported() { - return this._isRangeSupported; - } - get isStreamingSupported() { - return this._isStreamingSupported; - } - async read() { - var _a; - await this._readCapability.promise; - if (this._done) { - return { - value: void 0, - done: true - }; - } - if (this._storedError) { - throw this._storedError; - } - const chunk = this._readableStream.read(); - if (chunk === null) { - this._readCapability = new _util2.PromiseCapability(); - return this.read(); - } - this._loaded += chunk.length; - (_a = this.onProgress) == null ? void 0 : _a.call(this, { - loaded: this._loaded, - total: this._contentLength - }); - const buffer = new Uint8Array(chunk).buffer; - return { - value: buffer, - done: false - }; - } - cancel(reason) { - if (!this._readableStream) { - this._error(reason); - return; - } - this._readableStream.destroy(reason); - } - _error(reason) { - this._storedError = reason; - this._readCapability.resolve(); - } - _setReadableStream(readableStream) { - this._readableStream = readableStream; - readableStream.on("readable", () => { - this._readCapability.resolve(); - }); - readableStream.on("end", () => { - readableStream.destroy(); - this._done = true; - this._readCapability.resolve(); - }); - readableStream.on("error", (reason) => { - this._error(reason); - }); - if (!this._isStreamingSupported && this._isRangeSupported) { - this._error(new _util2.AbortException("streaming is disabled")); - } - if (this._storedError) { - this._readableStream.destroy(this._storedError); - } - } - } - class BaseRangeReader { - constructor(stream) { - this._url = stream.url; - this._done = false; - this._storedError = null; - this.onProgress = null; - this._loaded = 0; - this._readableStream = null; - this._readCapability = new _util2.PromiseCapability(); - const source = stream.source; - this._isStreamingSupported = !source.disableStream; - } - get isStreamingSupported() { - return this._isStreamingSupported; - } - async read() { - var _a; - await this._readCapability.promise; - if (this._done) { - return { - value: void 0, - done: true - }; - } - if (this._storedError) { - throw this._storedError; - } - const chunk = this._readableStream.read(); - if (chunk === null) { - this._readCapability = new _util2.PromiseCapability(); - return this.read(); - } - this._loaded += chunk.length; - (_a = this.onProgress) == null ? void 0 : _a.call(this, { - loaded: this._loaded - }); - const buffer = new Uint8Array(chunk).buffer; - return { - value: buffer, - done: false - }; - } - cancel(reason) { - if (!this._readableStream) { - this._error(reason); - return; - } - this._readableStream.destroy(reason); - } - _error(reason) { - this._storedError = reason; - this._readCapability.resolve(); - } - _setReadableStream(readableStream) { - this._readableStream = readableStream; - readableStream.on("readable", () => { - this._readCapability.resolve(); - }); - readableStream.on("end", () => { - readableStream.destroy(); - this._done = true; - this._readCapability.resolve(); - }); - readableStream.on("error", (reason) => { - this._error(reason); - }); - if (this._storedError) { - this._readableStream.destroy(this._storedError); - } - } - } - function createRequestOptions(parsedUrl, headers) { - return { - protocol: parsedUrl.protocol, - auth: parsedUrl.auth, - host: parsedUrl.hostname, - port: parsedUrl.port, - path: parsedUrl.path, - method: "GET", - headers - }; - } - class PDFNodeStreamFullReader extends BaseFullReader { - constructor(stream) { - super(stream); - const handleResponse = (response) => { - if (response.statusCode === 404) { - const error = new _util2.MissingPDFException(`Missing PDF "${this._url}".`); - this._storedError = error; - this._headersCapability.reject(error); - return; - } - this._headersCapability.resolve(); - this._setReadableStream(response); - const getResponseHeader = (name) => { - return this._readableStream.headers[name.toLowerCase()]; - }; - const { - allowRangeRequests, - suggestedLength - } = (0, _network_utils.validateRangeRequestCapabilities)({ - getResponseHeader, - isHttp: stream.isHttp, - rangeChunkSize: this._rangeChunkSize, - disableRange: this._disableRange - }); - this._isRangeSupported = allowRangeRequests; - this._contentLength = suggestedLength || this._contentLength; - this._filename = (0, _network_utils.extractFilenameFromHeader)(getResponseHeader); - }; - this._request = null; - if (this._url.protocol === "http:") { - const http = require_http(); - this._request = http.request(createRequestOptions(this._url, stream.httpHeaders), handleResponse); - } else { - const https = require_https(); - this._request = https.request(createRequestOptions(this._url, stream.httpHeaders), handleResponse); - } - this._request.on("error", (reason) => { - this._storedError = reason; - this._headersCapability.reject(reason); - }); - this._request.end(); - } - } - class PDFNodeStreamRangeReader extends BaseRangeReader { - constructor(stream, start, end) { - super(stream); - this._httpHeaders = {}; - for (const property in stream.httpHeaders) { - const value = stream.httpHeaders[property]; - if (value === void 0) { - continue; - } - this._httpHeaders[property] = value; - } - this._httpHeaders.Range = `bytes=${start}-${end - 1}`; - const handleResponse = (response) => { - if (response.statusCode === 404) { - const error = new _util2.MissingPDFException(`Missing PDF "${this._url}".`); - this._storedError = error; - return; - } - this._setReadableStream(response); - }; - this._request = null; - if (this._url.protocol === "http:") { - const http = require_http(); - this._request = http.request(createRequestOptions(this._url, this._httpHeaders), handleResponse); - } else { - const https = require_https(); - this._request = https.request(createRequestOptions(this._url, this._httpHeaders), handleResponse); - } - this._request.on("error", (reason) => { - this._storedError = reason; - }); - this._request.end(); - } - } - class PDFNodeStreamFsFullReader extends BaseFullReader { - constructor(stream) { - super(stream); - let path = decodeURIComponent(this._url.path); - if (fileUriRegex.test(this._url.href)) { - path = path.replace(/^\//, ""); - } - const fs = require_fs(); - fs.lstat(path, (error, stat) => { - if (error) { - if (error.code === "ENOENT") { - error = new _util2.MissingPDFException(`Missing PDF "${path}".`); - } - this._storedError = error; - this._headersCapability.reject(error); - return; - } - this._contentLength = stat.size; - this._setReadableStream(fs.createReadStream(path)); - this._headersCapability.resolve(); - }); - } - } - class PDFNodeStreamFsRangeReader extends BaseRangeReader { - constructor(stream, start, end) { - super(stream); - let path = decodeURIComponent(this._url.path); - if (fileUriRegex.test(this._url.href)) { - path = path.replace(/^\//, ""); - } - const fs = require_fs(); - this._setReadableStream(fs.createReadStream(path, { - start, - end: end - 1 - })); - } - } - }, - /* 24 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.SVGGraphics = void 0; - var _display_utils2 = __w_pdfjs_require__2(6); - var _util2 = __w_pdfjs_require__2(1); - ; - const SVG_DEFAULTS = { - fontStyle: "normal", - fontWeight: "normal", - fillColor: "#000000" - }; - const XML_NS = "http://www.w3.org/XML/1998/namespace"; - const XLINK_NS = "http://www.w3.org/1999/xlink"; - const LINE_CAP_STYLES = ["butt", "round", "square"]; - const LINE_JOIN_STYLES = ["miter", "round", "bevel"]; - const createObjectURL = function(data, contentType = "", forceDataSchema = false) { - if (URL.createObjectURL && typeof Blob !== "undefined" && !forceDataSchema) { - return URL.createObjectURL(new Blob([data], { - type: contentType - })); - } - const digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - let buffer = `data:${contentType};base64,`; - for (let i2 = 0, ii2 = data.length; i2 < ii2; i2 += 3) { - const b1 = data[i2] & 255; - const b2 = data[i2 + 1] & 255; - const b3 = data[i2 + 2] & 255; - const d1 = b1 >> 2, d2 = (b1 & 3) << 4 | b2 >> 4; - const d3 = i2 + 1 < ii2 ? (b2 & 15) << 2 | b3 >> 6 : 64; - const d4 = i2 + 2 < ii2 ? b3 & 63 : 64; - buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4]; - } - return buffer; - }; - const convertImgDataToPng = function() { - const PNG_HEADER = new Uint8Array([137, 80, 78, 71, 13, 10, 26, 10]); - const CHUNK_WRAPPER_SIZE = 12; - const crcTable = new Int32Array(256); - for (let i2 = 0; i2 < 256; i2++) { - let c2 = i2; - for (let h2 = 0; h2 < 8; h2++) { - c2 = c2 & 1 ? 3988292384 ^ c2 >> 1 & 2147483647 : c2 >> 1 & 2147483647; - } - crcTable[i2] = c2; - } - function crc32(data, start, end) { - let crc = -1; - for (let i2 = start; i2 < end; i2++) { - const a2 = (crc ^ data[i2]) & 255; - const b2 = crcTable[a2]; - crc = crc >>> 8 ^ b2; - } - return crc ^ -1; - } - function writePngChunk(type, body, data, offset) { - let p2 = offset; - const len = body.length; - data[p2] = len >> 24 & 255; - data[p2 + 1] = len >> 16 & 255; - data[p2 + 2] = len >> 8 & 255; - data[p2 + 3] = len & 255; - p2 += 4; - data[p2] = type.charCodeAt(0) & 255; - data[p2 + 1] = type.charCodeAt(1) & 255; - data[p2 + 2] = type.charCodeAt(2) & 255; - data[p2 + 3] = type.charCodeAt(3) & 255; - p2 += 4; - data.set(body, p2); - p2 += body.length; - const crc = crc32(data, offset + 4, p2); - data[p2] = crc >> 24 & 255; - data[p2 + 1] = crc >> 16 & 255; - data[p2 + 2] = crc >> 8 & 255; - data[p2 + 3] = crc & 255; - } - function adler32(data, start, end) { - let a2 = 1; - let b2 = 0; - for (let i2 = start; i2 < end; ++i2) { - a2 = (a2 + (data[i2] & 255)) % 65521; - b2 = (b2 + a2) % 65521; - } - return b2 << 16 | a2; - } - function deflateSync(literals) { - if (!_util2.isNodeJS) { - return deflateSyncUncompressed(literals); - } - try { - const input = parseInt(process.versions.node) >= 8 ? literals : Buffer.from(literals); - const output = require_zlib().deflateSync(input, { - level: 9 - }); - return output instanceof Uint8Array ? output : new Uint8Array(output); - } catch (e2) { - (0, _util2.warn)("Not compressing PNG because zlib.deflateSync is unavailable: " + e2); - } - return deflateSyncUncompressed(literals); - } - function deflateSyncUncompressed(literals) { - let len = literals.length; - const maxBlockLength = 65535; - const deflateBlocks = Math.ceil(len / maxBlockLength); - const idat = new Uint8Array(2 + len + deflateBlocks * 5 + 4); - let pi2 = 0; - idat[pi2++] = 120; - idat[pi2++] = 156; - let pos = 0; - while (len > maxBlockLength) { - idat[pi2++] = 0; - idat[pi2++] = 255; - idat[pi2++] = 255; - idat[pi2++] = 0; - idat[pi2++] = 0; - idat.set(literals.subarray(pos, pos + maxBlockLength), pi2); - pi2 += maxBlockLength; - pos += maxBlockLength; - len -= maxBlockLength; - } - idat[pi2++] = 1; - idat[pi2++] = len & 255; - idat[pi2++] = len >> 8 & 255; - idat[pi2++] = ~len & 65535 & 255; - idat[pi2++] = (~len & 65535) >> 8 & 255; - idat.set(literals.subarray(pos), pi2); - pi2 += literals.length - pos; - const adler = adler32(literals, 0, literals.length); - idat[pi2++] = adler >> 24 & 255; - idat[pi2++] = adler >> 16 & 255; - idat[pi2++] = adler >> 8 & 255; - idat[pi2++] = adler & 255; - return idat; - } - function encode(imgData, kind, forceDataSchema, isMask) { - const width = imgData.width; - const height = imgData.height; - let bitDepth, colorType, lineSize; - const bytes = imgData.data; - switch (kind) { - case _util2.ImageKind.GRAYSCALE_1BPP: - colorType = 0; - bitDepth = 1; - lineSize = width + 7 >> 3; - break; - case _util2.ImageKind.RGB_24BPP: - colorType = 2; - bitDepth = 8; - lineSize = width * 3; - break; - case _util2.ImageKind.RGBA_32BPP: - colorType = 6; - bitDepth = 8; - lineSize = width * 4; - break; - default: - throw new Error("invalid format"); - } - const literals = new Uint8Array((1 + lineSize) * height); - let offsetLiterals = 0, offsetBytes = 0; - for (let y2 = 0; y2 < height; ++y2) { - literals[offsetLiterals++] = 0; - literals.set(bytes.subarray(offsetBytes, offsetBytes + lineSize), offsetLiterals); - offsetBytes += lineSize; - offsetLiterals += lineSize; - } - if (kind === _util2.ImageKind.GRAYSCALE_1BPP && isMask) { - offsetLiterals = 0; - for (let y2 = 0; y2 < height; y2++) { - offsetLiterals++; - for (let i2 = 0; i2 < lineSize; i2++) { - literals[offsetLiterals++] ^= 255; - } - } - } - const ihdr = new Uint8Array([width >> 24 & 255, width >> 16 & 255, width >> 8 & 255, width & 255, height >> 24 & 255, height >> 16 & 255, height >> 8 & 255, height & 255, bitDepth, colorType, 0, 0, 0]); - const idat = deflateSync(literals); - const pngLength = PNG_HEADER.length + CHUNK_WRAPPER_SIZE * 3 + ihdr.length + idat.length; - const data = new Uint8Array(pngLength); - let offset = 0; - data.set(PNG_HEADER, offset); - offset += PNG_HEADER.length; - writePngChunk("IHDR", ihdr, data, offset); - offset += CHUNK_WRAPPER_SIZE + ihdr.length; - writePngChunk("IDATA", idat, data, offset); - offset += CHUNK_WRAPPER_SIZE + idat.length; - writePngChunk("IEND", new Uint8Array(0), data, offset); - return createObjectURL(data, "image/png", forceDataSchema); - } - return function convertImgDataToPng2(imgData, forceDataSchema, isMask) { - const kind = imgData.kind === void 0 ? _util2.ImageKind.GRAYSCALE_1BPP : imgData.kind; - return encode(imgData, kind, forceDataSchema, isMask); - }; - }(); - class SVGExtraState { - constructor() { - this.fontSizeScale = 1; - this.fontWeight = SVG_DEFAULTS.fontWeight; - this.fontSize = 0; - this.textMatrix = _util2.IDENTITY_MATRIX; - this.fontMatrix = _util2.FONT_IDENTITY_MATRIX; - this.leading = 0; - this.textRenderingMode = _util2.TextRenderingMode.FILL; - this.textMatrixScale = 1; - this.x = 0; - this.y = 0; - this.lineX = 0; - this.lineY = 0; - this.charSpacing = 0; - this.wordSpacing = 0; - this.textHScale = 1; - this.textRise = 0; - this.fillColor = SVG_DEFAULTS.fillColor; - this.strokeColor = "#000000"; - this.fillAlpha = 1; - this.strokeAlpha = 1; - this.lineWidth = 1; - this.lineJoin = ""; - this.lineCap = ""; - this.miterLimit = 0; - this.dashArray = []; - this.dashPhase = 0; - this.dependencies = []; - this.activeClipUrl = null; - this.clipGroup = null; - this.maskId = ""; - } - clone() { - return Object.create(this); - } - setCurrentPoint(x2, y2) { - this.x = x2; - this.y = y2; - } - } - function opListToTree(opList) { - let opTree = []; - const tmp = []; - for (const opListElement of opList) { - if (opListElement.fn === "save") { - opTree.push({ - fnId: 92, - fn: "group", - items: [] - }); - tmp.push(opTree); - opTree = opTree.at(-1).items; - continue; - } - if (opListElement.fn === "restore") { - opTree = tmp.pop(); - } else { - opTree.push(opListElement); - } - } - return opTree; - } - function pf(value) { - if (Number.isInteger(value)) { - return value.toString(); - } - const s2 = value.toFixed(10); - let i2 = s2.length - 1; - if (s2[i2] !== "0") { - return s2; - } - do { - i2--; - } while (s2[i2] === "0"); - return s2.substring(0, s2[i2] === "." ? i2 : i2 + 1); - } - function pm(m2) { - if (m2[4] === 0 && m2[5] === 0) { - if (m2[1] === 0 && m2[2] === 0) { - if (m2[0] === 1 && m2[3] === 1) { - return ""; - } - return `scale(${pf(m2[0])} ${pf(m2[3])})`; - } - if (m2[0] === m2[3] && m2[1] === -m2[2]) { - const a2 = Math.acos(m2[0]) * 180 / Math.PI; - return `rotate(${pf(a2)})`; - } - } else if (m2[0] === 1 && m2[1] === 0 && m2[2] === 0 && m2[3] === 1) { - return `translate(${pf(m2[4])} ${pf(m2[5])})`; - } - return `matrix(${pf(m2[0])} ${pf(m2[1])} ${pf(m2[2])} ${pf(m2[3])} ${pf(m2[4])} ${pf(m2[5])})`; - } - let clipCount = 0; - let maskCount = 0; - let shadingCount = 0; - class SVGGraphics { - constructor(commonObjs, objs, forceDataSchema = false) { - (0, _display_utils2.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."); - this.svgFactory = new _display_utils2.DOMSVGFactory(); - this.current = new SVGExtraState(); - this.transformMatrix = _util2.IDENTITY_MATRIX; - this.transformStack = []; - this.extraStack = []; - this.commonObjs = commonObjs; - this.objs = objs; - this.pendingClip = null; - this.pendingEOFill = false; - this.embedFonts = false; - this.embeddedFonts = /* @__PURE__ */ Object.create(null); - this.cssStyle = null; - this.forceDataSchema = !!forceDataSchema; - this._operatorIdMapping = []; - for (const op in _util2.OPS) { - this._operatorIdMapping[_util2.OPS[op]] = op; - } - } - getObject(data, fallback = null) { - if (typeof data === "string") { - return data.startsWith("g_") ? this.commonObjs.get(data) : this.objs.get(data); - } - return fallback; - } - save() { - this.transformStack.push(this.transformMatrix); - const old = this.current; - this.extraStack.push(old); - this.current = old.clone(); - } - restore() { - this.transformMatrix = this.transformStack.pop(); - this.current = this.extraStack.pop(); - this.pendingClip = null; - this.tgrp = null; - } - group(items) { - this.save(); - this.executeOpTree(items); - this.restore(); - } - loadDependencies(operatorList) { - const fnArray = operatorList.fnArray; - const argsArray = operatorList.argsArray; - for (let i2 = 0, ii2 = fnArray.length; i2 < ii2; i2++) { - if (fnArray[i2] !== _util2.OPS.dependency) { - continue; - } - for (const obj of argsArray[i2]) { - const objsPool = obj.startsWith("g_") ? this.commonObjs : this.objs; - const promise = new Promise((resolve) => { - objsPool.get(obj, resolve); - }); - this.current.dependencies.push(promise); - } - } - return Promise.all(this.current.dependencies); - } - transform(a2, b2, c2, d2, e2, f2) { - const transformMatrix = [a2, b2, c2, d2, e2, f2]; - this.transformMatrix = _util2.Util.transform(this.transformMatrix, transformMatrix); - this.tgrp = null; - } - getSVG(operatorList, viewport) { - this.viewport = viewport; - const svgElement = this._initialize(viewport); - return this.loadDependencies(operatorList).then(() => { - this.transformMatrix = _util2.IDENTITY_MATRIX; - this.executeOpTree(this.convertOpList(operatorList)); - return svgElement; - }); - } - convertOpList(operatorList) { - const operatorIdMapping = this._operatorIdMapping; - const argsArray = operatorList.argsArray; - const fnArray = operatorList.fnArray; - const opList = []; - for (let i2 = 0, ii2 = fnArray.length; i2 < ii2; i2++) { - const fnId = fnArray[i2]; - opList.push({ - fnId, - fn: operatorIdMapping[fnId], - args: argsArray[i2] - }); - } - return opListToTree(opList); - } - executeOpTree(opTree) { - for (const opTreeElement of opTree) { - const fn2 = opTreeElement.fn; - const fnId = opTreeElement.fnId; - const args = opTreeElement.args; - switch (fnId | 0) { - case _util2.OPS.beginText: - this.beginText(); - break; - case _util2.OPS.dependency: - break; - case _util2.OPS.setLeading: - this.setLeading(args); - break; - case _util2.OPS.setLeadingMoveText: - this.setLeadingMoveText(args[0], args[1]); - break; - case _util2.OPS.setFont: - this.setFont(args); - break; - case _util2.OPS.showText: - this.showText(args[0]); - break; - case _util2.OPS.showSpacedText: - this.showText(args[0]); - break; - case _util2.OPS.endText: - this.endText(); - break; - case _util2.OPS.moveText: - this.moveText(args[0], args[1]); - break; - case _util2.OPS.setCharSpacing: - this.setCharSpacing(args[0]); - break; - case _util2.OPS.setWordSpacing: - this.setWordSpacing(args[0]); - break; - case _util2.OPS.setHScale: - this.setHScale(args[0]); - break; - case _util2.OPS.setTextMatrix: - this.setTextMatrix(args[0], args[1], args[2], args[3], args[4], args[5]); - break; - case _util2.OPS.setTextRise: - this.setTextRise(args[0]); - break; - case _util2.OPS.setTextRenderingMode: - this.setTextRenderingMode(args[0]); - break; - case _util2.OPS.setLineWidth: - this.setLineWidth(args[0]); - break; - case _util2.OPS.setLineJoin: - this.setLineJoin(args[0]); - break; - case _util2.OPS.setLineCap: - this.setLineCap(args[0]); - break; - case _util2.OPS.setMiterLimit: - this.setMiterLimit(args[0]); - break; - case _util2.OPS.setFillRGBColor: - this.setFillRGBColor(args[0], args[1], args[2]); - break; - case _util2.OPS.setStrokeRGBColor: - this.setStrokeRGBColor(args[0], args[1], args[2]); - break; - case _util2.OPS.setStrokeColorN: - this.setStrokeColorN(args); - break; - case _util2.OPS.setFillColorN: - this.setFillColorN(args); - break; - case _util2.OPS.shadingFill: - this.shadingFill(args[0]); - break; - case _util2.OPS.setDash: - this.setDash(args[0], args[1]); - break; - case _util2.OPS.setRenderingIntent: - this.setRenderingIntent(args[0]); - break; - case _util2.OPS.setFlatness: - this.setFlatness(args[0]); - break; - case _util2.OPS.setGState: - this.setGState(args[0]); - break; - case _util2.OPS.fill: - this.fill(); - break; - case _util2.OPS.eoFill: - this.eoFill(); - break; - case _util2.OPS.stroke: - this.stroke(); - break; - case _util2.OPS.fillStroke: - this.fillStroke(); - break; - case _util2.OPS.eoFillStroke: - this.eoFillStroke(); - break; - case _util2.OPS.clip: - this.clip("nonzero"); - break; - case _util2.OPS.eoClip: - this.clip("evenodd"); - break; - case _util2.OPS.paintSolidColorImageMask: - this.paintSolidColorImageMask(); - break; - case _util2.OPS.paintImageXObject: - this.paintImageXObject(args[0]); - break; - case _util2.OPS.paintInlineImageXObject: - this.paintInlineImageXObject(args[0]); - break; - case _util2.OPS.paintImageMaskXObject: - this.paintImageMaskXObject(args[0]); - break; - case _util2.OPS.paintFormXObjectBegin: - this.paintFormXObjectBegin(args[0], args[1]); - break; - case _util2.OPS.paintFormXObjectEnd: - this.paintFormXObjectEnd(); - break; - case _util2.OPS.closePath: - this.closePath(); - break; - case _util2.OPS.closeStroke: - this.closeStroke(); - break; - case _util2.OPS.closeFillStroke: - this.closeFillStroke(); - break; - case _util2.OPS.closeEOFillStroke: - this.closeEOFillStroke(); - break; - case _util2.OPS.nextLine: - this.nextLine(); - break; - case _util2.OPS.transform: - this.transform(args[0], args[1], args[2], args[3], args[4], args[5]); - break; - case _util2.OPS.constructPath: - this.constructPath(args[0], args[1]); - break; - case _util2.OPS.endPath: - this.endPath(); - break; - case 92: - this.group(opTreeElement.items); - break; - default: - (0, _util2.warn)(`Unimplemented operator ${fn2}`); - break; - } - } - } - setWordSpacing(wordSpacing) { - this.current.wordSpacing = wordSpacing; - } - setCharSpacing(charSpacing) { - this.current.charSpacing = charSpacing; - } - nextLine() { - this.moveText(0, this.current.leading); - } - setTextMatrix(a2, b2, c2, d2, e2, f2) { - const current = this.current; - current.textMatrix = current.lineMatrix = [a2, b2, c2, d2, e2, f2]; - current.textMatrixScale = Math.hypot(a2, b2); - current.x = current.lineX = 0; - current.y = current.lineY = 0; - current.xcoords = []; - current.ycoords = []; - current.tspan = this.svgFactory.createElement("svg:tspan"); - current.tspan.setAttributeNS(null, "font-family", current.fontFamily); - current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`); - current.tspan.setAttributeNS(null, "y", pf(-current.y)); - current.txtElement = this.svgFactory.createElement("svg:text"); - current.txtElement.append(current.tspan); - } - beginText() { - const current = this.current; - current.x = current.lineX = 0; - current.y = current.lineY = 0; - current.textMatrix = _util2.IDENTITY_MATRIX; - current.lineMatrix = _util2.IDENTITY_MATRIX; - current.textMatrixScale = 1; - current.tspan = this.svgFactory.createElement("svg:tspan"); - current.txtElement = this.svgFactory.createElement("svg:text"); - current.txtgrp = this.svgFactory.createElement("svg:g"); - current.xcoords = []; - current.ycoords = []; - } - moveText(x2, y2) { - const current = this.current; - current.x = current.lineX += x2; - current.y = current.lineY += y2; - current.xcoords = []; - current.ycoords = []; - current.tspan = this.svgFactory.createElement("svg:tspan"); - current.tspan.setAttributeNS(null, "font-family", current.fontFamily); - current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`); - current.tspan.setAttributeNS(null, "y", pf(-current.y)); - } - showText(glyphs) { - const current = this.current; - const font = current.font; - const fontSize = current.fontSize; - if (fontSize === 0) { - return; - } - const fontSizeScale = current.fontSizeScale; - const charSpacing = current.charSpacing; - const wordSpacing = current.wordSpacing; - const fontDirection = current.fontDirection; - const textHScale = current.textHScale * fontDirection; - const vertical = font.vertical; - const spacingDir = vertical ? 1 : -1; - const defaultVMetrics = font.defaultVMetrics; - const widthAdvanceScale = fontSize * current.fontMatrix[0]; - let x2 = 0; - for (const glyph of glyphs) { - if (glyph === null) { - x2 += fontDirection * wordSpacing; - continue; - } else if (typeof glyph === "number") { - x2 += spacingDir * glyph * fontSize / 1e3; - continue; - } - const spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing; - const character = glyph.fontChar; - let scaledX, scaledY; - let width = glyph.width; - if (vertical) { - let vx; - const vmetric = glyph.vmetric || defaultVMetrics; - vx = glyph.vmetric ? vmetric[1] : width * 0.5; - vx = -vx * widthAdvanceScale; - const vy = vmetric[2] * widthAdvanceScale; - width = vmetric ? -vmetric[0] : width; - scaledX = vx / fontSizeScale; - scaledY = (x2 + vy) / fontSizeScale; - } else { - scaledX = x2 / fontSizeScale; - scaledY = 0; - } - if (glyph.isInFont || font.missingFile) { - current.xcoords.push(current.x + scaledX); - if (vertical) { - current.ycoords.push(-current.y + scaledY); - } - current.tspan.textContent += character; - } else { - } - const charWidth = vertical ? width * widthAdvanceScale - spacing * fontDirection : width * widthAdvanceScale + spacing * fontDirection; - x2 += charWidth; - } - current.tspan.setAttributeNS(null, "x", current.xcoords.map(pf).join(" ")); - if (vertical) { - current.tspan.setAttributeNS(null, "y", current.ycoords.map(pf).join(" ")); - } else { - current.tspan.setAttributeNS(null, "y", pf(-current.y)); - } - if (vertical) { - current.y -= x2; - } else { - current.x += x2 * textHScale; - } - current.tspan.setAttributeNS(null, "font-family", current.fontFamily); - current.tspan.setAttributeNS(null, "font-size", `${pf(current.fontSize)}px`); - if (current.fontStyle !== SVG_DEFAULTS.fontStyle) { - current.tspan.setAttributeNS(null, "font-style", current.fontStyle); - } - if (current.fontWeight !== SVG_DEFAULTS.fontWeight) { - current.tspan.setAttributeNS(null, "font-weight", current.fontWeight); - } - const fillStrokeMode = current.textRenderingMode & _util2.TextRenderingMode.FILL_STROKE_MASK; - if (fillStrokeMode === _util2.TextRenderingMode.FILL || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - if (current.fillColor !== SVG_DEFAULTS.fillColor) { - current.tspan.setAttributeNS(null, "fill", current.fillColor); - } - if (current.fillAlpha < 1) { - current.tspan.setAttributeNS(null, "fill-opacity", current.fillAlpha); - } - } else if (current.textRenderingMode === _util2.TextRenderingMode.ADD_TO_PATH) { - current.tspan.setAttributeNS(null, "fill", "transparent"); - } else { - current.tspan.setAttributeNS(null, "fill", "none"); - } - if (fillStrokeMode === _util2.TextRenderingMode.STROKE || fillStrokeMode === _util2.TextRenderingMode.FILL_STROKE) { - const lineWidthScale = 1 / (current.textMatrixScale || 1); - this._setStrokeAttributes(current.tspan, lineWidthScale); - } - let textMatrix = current.textMatrix; - if (current.textRise !== 0) { - textMatrix = textMatrix.slice(); - textMatrix[5] += current.textRise; - } - current.txtElement.setAttributeNS(null, "transform", `${pm(textMatrix)} scale(${pf(textHScale)}, -1)`); - current.txtElement.setAttributeNS(XML_NS, "xml:space", "preserve"); - current.txtElement.append(current.tspan); - current.txtgrp.append(current.txtElement); - this._ensureTransformGroup().append(current.txtElement); - } - setLeadingMoveText(x2, y2) { - this.setLeading(-y2); - this.moveText(x2, y2); - } - addFontStyle(fontObj) { - if (!fontObj.data) { - throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.'); - } - if (!this.cssStyle) { - this.cssStyle = this.svgFactory.createElement("svg:style"); - this.cssStyle.setAttributeNS(null, "type", "text/css"); - this.defs.append(this.cssStyle); - } - const url = createObjectURL(fontObj.data, fontObj.mimetype, this.forceDataSchema); - this.cssStyle.textContent += `@font-face { font-family: "${fontObj.loadedName}"; src: url(${url}); } -`; - } - setFont(details) { - const current = this.current; - const fontObj = this.commonObjs.get(details[0]); - let size = details[1]; - current.font = fontObj; - if (this.embedFonts && !fontObj.missingFile && !this.embeddedFonts[fontObj.loadedName]) { - this.addFontStyle(fontObj); - this.embeddedFonts[fontObj.loadedName] = fontObj; - } - current.fontMatrix = fontObj.fontMatrix || _util2.FONT_IDENTITY_MATRIX; - let bold = "normal"; - if (fontObj.black) { - bold = "900"; - } else if (fontObj.bold) { - bold = "bold"; - } - const italic = fontObj.italic ? "italic" : "normal"; - if (size < 0) { - size = -size; - current.fontDirection = -1; - } else { - current.fontDirection = 1; - } - current.fontSize = size; - current.fontFamily = fontObj.loadedName; - current.fontWeight = bold; - current.fontStyle = italic; - current.tspan = this.svgFactory.createElement("svg:tspan"); - current.tspan.setAttributeNS(null, "y", pf(-current.y)); - current.xcoords = []; - current.ycoords = []; - } - endText() { - var _a; - const current = this.current; - if (current.textRenderingMode & _util2.TextRenderingMode.ADD_TO_PATH_FLAG && ((_a = current.txtElement) == null ? void 0 : _a.hasChildNodes())) { - current.element = current.txtElement; - this.clip("nonzero"); - this.endPath(); - } - } - setLineWidth(width) { - if (width > 0) { - this.current.lineWidth = width; - } - } - setLineCap(style) { - this.current.lineCap = LINE_CAP_STYLES[style]; - } - setLineJoin(style) { - this.current.lineJoin = LINE_JOIN_STYLES[style]; - } - setMiterLimit(limit) { - this.current.miterLimit = limit; - } - setStrokeAlpha(strokeAlpha) { - this.current.strokeAlpha = strokeAlpha; - } - setStrokeRGBColor(r2, g2, b2) { - this.current.strokeColor = _util2.Util.makeHexColor(r2, g2, b2); - } - setFillAlpha(fillAlpha) { - this.current.fillAlpha = fillAlpha; - } - setFillRGBColor(r2, g2, b2) { - this.current.fillColor = _util2.Util.makeHexColor(r2, g2, b2); - this.current.tspan = this.svgFactory.createElement("svg:tspan"); - this.current.xcoords = []; - this.current.ycoords = []; - } - setStrokeColorN(args) { - this.current.strokeColor = this._makeColorN_Pattern(args); - } - setFillColorN(args) { - this.current.fillColor = this._makeColorN_Pattern(args); - } - shadingFill(args) { - const { - width, - height - } = this.viewport; - const inv = _util2.Util.inverseTransform(this.transformMatrix); - const [x0, y0, x1, y1] = _util2.Util.getAxialAlignedBoundingBox([0, 0, width, height], inv); - const rect = this.svgFactory.createElement("svg:rect"); - rect.setAttributeNS(null, "x", x0); - rect.setAttributeNS(null, "y", y0); - rect.setAttributeNS(null, "width", x1 - x0); - rect.setAttributeNS(null, "height", y1 - y0); - rect.setAttributeNS(null, "fill", this._makeShadingPattern(args)); - if (this.current.fillAlpha < 1) { - rect.setAttributeNS(null, "fill-opacity", this.current.fillAlpha); - } - this._ensureTransformGroup().append(rect); - } - _makeColorN_Pattern(args) { - if (args[0] === "TilingPattern") { - return this._makeTilingPattern(args); - } - return this._makeShadingPattern(args); - } - _makeTilingPattern(args) { - const color = args[1]; - const operatorList = args[2]; - const matrix = args[3] || _util2.IDENTITY_MATRIX; - const [x0, y0, x1, y1] = args[4]; - const xstep = args[5]; - const ystep = args[6]; - const paintType = args[7]; - const tilingId = `shading${shadingCount++}`; - const [tx0, ty0, tx1, ty1] = _util2.Util.normalizeRect([..._util2.Util.applyTransform([x0, y0], matrix), ..._util2.Util.applyTransform([x1, y1], matrix)]); - const [xscale, yscale] = _util2.Util.singularValueDecompose2dScale(matrix); - const txstep = xstep * xscale; - const tystep = ystep * yscale; - const tiling = this.svgFactory.createElement("svg:pattern"); - tiling.setAttributeNS(null, "id", tilingId); - tiling.setAttributeNS(null, "patternUnits", "userSpaceOnUse"); - tiling.setAttributeNS(null, "width", txstep); - tiling.setAttributeNS(null, "height", tystep); - tiling.setAttributeNS(null, "x", `${tx0}`); - tiling.setAttributeNS(null, "y", `${ty0}`); - const svg = this.svg; - const transformMatrix = this.transformMatrix; - const fillColor = this.current.fillColor; - const strokeColor = this.current.strokeColor; - const bbox = this.svgFactory.create(tx1 - tx0, ty1 - ty0); - this.svg = bbox; - this.transformMatrix = matrix; - if (paintType === 2) { - const cssColor = _util2.Util.makeHexColor(...color); - this.current.fillColor = cssColor; - this.current.strokeColor = cssColor; - } - this.executeOpTree(this.convertOpList(operatorList)); - this.svg = svg; - this.transformMatrix = transformMatrix; - this.current.fillColor = fillColor; - this.current.strokeColor = strokeColor; - tiling.append(bbox.childNodes[0]); - this.defs.append(tiling); - return `url(#${tilingId})`; - } - _makeShadingPattern(args) { - if (typeof args === "string") { - args = this.objs.get(args); - } - switch (args[0]) { - case "RadialAxial": - const shadingId = `shading${shadingCount++}`; - const colorStops = args[3]; - let gradient; - switch (args[1]) { - case "axial": - const point0 = args[4]; - const point1 = args[5]; - gradient = this.svgFactory.createElement("svg:linearGradient"); - gradient.setAttributeNS(null, "id", shadingId); - gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"); - gradient.setAttributeNS(null, "x1", point0[0]); - gradient.setAttributeNS(null, "y1", point0[1]); - gradient.setAttributeNS(null, "x2", point1[0]); - gradient.setAttributeNS(null, "y2", point1[1]); - break; - case "radial": - const focalPoint = args[4]; - const circlePoint = args[5]; - const focalRadius = args[6]; - const circleRadius = args[7]; - gradient = this.svgFactory.createElement("svg:radialGradient"); - gradient.setAttributeNS(null, "id", shadingId); - gradient.setAttributeNS(null, "gradientUnits", "userSpaceOnUse"); - gradient.setAttributeNS(null, "cx", circlePoint[0]); - gradient.setAttributeNS(null, "cy", circlePoint[1]); - gradient.setAttributeNS(null, "r", circleRadius); - gradient.setAttributeNS(null, "fx", focalPoint[0]); - gradient.setAttributeNS(null, "fy", focalPoint[1]); - gradient.setAttributeNS(null, "fr", focalRadius); - break; - default: - throw new Error(`Unknown RadialAxial type: ${args[1]}`); - } - for (const colorStop of colorStops) { - const stop = this.svgFactory.createElement("svg:stop"); - stop.setAttributeNS(null, "offset", colorStop[0]); - stop.setAttributeNS(null, "stop-color", colorStop[1]); - gradient.append(stop); - } - this.defs.append(gradient); - return `url(#${shadingId})`; - case "Mesh": - (0, _util2.warn)("Unimplemented pattern Mesh"); - return null; - case "Dummy": - return "hotpink"; - default: - throw new Error(`Unknown IR type: ${args[0]}`); - } - } - setDash(dashArray, dashPhase) { - this.current.dashArray = dashArray; - this.current.dashPhase = dashPhase; - } - constructPath(ops, args) { - const current = this.current; - let x2 = current.x, y2 = current.y; - let d2 = []; - let j2 = 0; - for (const op of ops) { - switch (op | 0) { - case _util2.OPS.rectangle: - x2 = args[j2++]; - y2 = args[j2++]; - const width = args[j2++]; - const height = args[j2++]; - const xw = x2 + width; - const yh = y2 + height; - d2.push("M", pf(x2), pf(y2), "L", pf(xw), pf(y2), "L", pf(xw), pf(yh), "L", pf(x2), pf(yh), "Z"); - break; - case _util2.OPS.moveTo: - x2 = args[j2++]; - y2 = args[j2++]; - d2.push("M", pf(x2), pf(y2)); - break; - case _util2.OPS.lineTo: - x2 = args[j2++]; - y2 = args[j2++]; - d2.push("L", pf(x2), pf(y2)); - break; - case _util2.OPS.curveTo: - x2 = args[j2 + 4]; - y2 = args[j2 + 5]; - d2.push("C", pf(args[j2]), pf(args[j2 + 1]), pf(args[j2 + 2]), pf(args[j2 + 3]), pf(x2), pf(y2)); - j2 += 6; - break; - case _util2.OPS.curveTo2: - d2.push("C", pf(x2), pf(y2), pf(args[j2]), pf(args[j2 + 1]), pf(args[j2 + 2]), pf(args[j2 + 3])); - x2 = args[j2 + 2]; - y2 = args[j2 + 3]; - j2 += 4; - break; - case _util2.OPS.curveTo3: - x2 = args[j2 + 2]; - y2 = args[j2 + 3]; - d2.push("C", pf(args[j2]), pf(args[j2 + 1]), pf(x2), pf(y2), pf(x2), pf(y2)); - j2 += 4; - break; - case _util2.OPS.closePath: - d2.push("Z"); - break; - } - } - d2 = d2.join(" "); - if (current.path && ops.length > 0 && ops[0] !== _util2.OPS.rectangle && ops[0] !== _util2.OPS.moveTo) { - d2 = current.path.getAttributeNS(null, "d") + d2; - } else { - current.path = this.svgFactory.createElement("svg:path"); - this._ensureTransformGroup().append(current.path); - } - current.path.setAttributeNS(null, "d", d2); - current.path.setAttributeNS(null, "fill", "none"); - current.element = current.path; - current.setCurrentPoint(x2, y2); - } - endPath() { - const current = this.current; - current.path = null; - if (!this.pendingClip) { - return; - } - if (!current.element) { - this.pendingClip = null; - return; - } - const clipId = `clippath${clipCount++}`; - const clipPath = this.svgFactory.createElement("svg:clipPath"); - clipPath.setAttributeNS(null, "id", clipId); - clipPath.setAttributeNS(null, "transform", pm(this.transformMatrix)); - const clipElement = current.element.cloneNode(true); - if (this.pendingClip === "evenodd") { - clipElement.setAttributeNS(null, "clip-rule", "evenodd"); - } else { - clipElement.setAttributeNS(null, "clip-rule", "nonzero"); - } - this.pendingClip = null; - clipPath.append(clipElement); - this.defs.append(clipPath); - if (current.activeClipUrl) { - current.clipGroup = null; - for (const prev of this.extraStack) { - prev.clipGroup = null; - } - clipPath.setAttributeNS(null, "clip-path", current.activeClipUrl); - } - current.activeClipUrl = `url(#${clipId})`; - this.tgrp = null; - } - clip(type) { - this.pendingClip = type; - } - closePath() { - const current = this.current; - if (current.path) { - const d2 = `${current.path.getAttributeNS(null, "d")}Z`; - current.path.setAttributeNS(null, "d", d2); - } - } - setLeading(leading) { - this.current.leading = -leading; - } - setTextRise(textRise) { - this.current.textRise = textRise; - } - setTextRenderingMode(textRenderingMode) { - this.current.textRenderingMode = textRenderingMode; - } - setHScale(scale) { - this.current.textHScale = scale / 100; - } - setRenderingIntent(intent) { - } - setFlatness(flatness) { - } - setGState(states) { - for (const [key, value] of states) { - switch (key) { - case "LW": - this.setLineWidth(value); - break; - case "LC": - this.setLineCap(value); - break; - case "LJ": - this.setLineJoin(value); - break; - case "ML": - this.setMiterLimit(value); - break; - case "D": - this.setDash(value[0], value[1]); - break; - case "RI": - this.setRenderingIntent(value); - break; - case "FL": - this.setFlatness(value); - break; - case "Font": - this.setFont(value); - break; - case "CA": - this.setStrokeAlpha(value); - break; - case "ca": - this.setFillAlpha(value); - break; - default: - (0, _util2.warn)(`Unimplemented graphic state operator ${key}`); - break; - } - } - } - fill() { - const current = this.current; - if (current.element) { - current.element.setAttributeNS(null, "fill", current.fillColor); - current.element.setAttributeNS(null, "fill-opacity", current.fillAlpha); - this.endPath(); - } - } - stroke() { - const current = this.current; - if (current.element) { - this._setStrokeAttributes(current.element); - current.element.setAttributeNS(null, "fill", "none"); - this.endPath(); - } - } - _setStrokeAttributes(element, lineWidthScale = 1) { - const current = this.current; - let dashArray = current.dashArray; - if (lineWidthScale !== 1 && dashArray.length > 0) { - dashArray = dashArray.map(function(value) { - return lineWidthScale * value; - }); - } - element.setAttributeNS(null, "stroke", current.strokeColor); - element.setAttributeNS(null, "stroke-opacity", current.strokeAlpha); - element.setAttributeNS(null, "stroke-miterlimit", pf(current.miterLimit)); - element.setAttributeNS(null, "stroke-linecap", current.lineCap); - element.setAttributeNS(null, "stroke-linejoin", current.lineJoin); - element.setAttributeNS(null, "stroke-width", pf(lineWidthScale * current.lineWidth) + "px"); - element.setAttributeNS(null, "stroke-dasharray", dashArray.map(pf).join(" ")); - element.setAttributeNS(null, "stroke-dashoffset", pf(lineWidthScale * current.dashPhase) + "px"); - } - eoFill() { - var _a; - (_a = this.current.element) == null ? void 0 : _a.setAttributeNS(null, "fill-rule", "evenodd"); - this.fill(); - } - fillStroke() { - this.stroke(); - this.fill(); - } - eoFillStroke() { - var _a; - (_a = this.current.element) == null ? void 0 : _a.setAttributeNS(null, "fill-rule", "evenodd"); - this.fillStroke(); - } - closeStroke() { - this.closePath(); - this.stroke(); - } - closeFillStroke() { - this.closePath(); - this.fillStroke(); - } - closeEOFillStroke() { - this.closePath(); - this.eoFillStroke(); - } - paintSolidColorImageMask() { - const rect = this.svgFactory.createElement("svg:rect"); - rect.setAttributeNS(null, "x", "0"); - rect.setAttributeNS(null, "y", "0"); - rect.setAttributeNS(null, "width", "1px"); - rect.setAttributeNS(null, "height", "1px"); - rect.setAttributeNS(null, "fill", this.current.fillColor); - this._ensureTransformGroup().append(rect); - } - paintImageXObject(objId) { - const imgData = this.getObject(objId); - if (!imgData) { - (0, _util2.warn)(`Dependent image with object ID ${objId} is not ready yet`); - return; - } - this.paintInlineImageXObject(imgData); - } - paintInlineImageXObject(imgData, mask) { - const width = imgData.width; - const height = imgData.height; - const imgSrc = convertImgDataToPng(imgData, this.forceDataSchema, !!mask); - const cliprect = this.svgFactory.createElement("svg:rect"); - cliprect.setAttributeNS(null, "x", "0"); - cliprect.setAttributeNS(null, "y", "0"); - cliprect.setAttributeNS(null, "width", pf(width)); - cliprect.setAttributeNS(null, "height", pf(height)); - this.current.element = cliprect; - this.clip("nonzero"); - const imgEl = this.svgFactory.createElement("svg:image"); - imgEl.setAttributeNS(XLINK_NS, "xlink:href", imgSrc); - imgEl.setAttributeNS(null, "x", "0"); - imgEl.setAttributeNS(null, "y", pf(-height)); - imgEl.setAttributeNS(null, "width", pf(width) + "px"); - imgEl.setAttributeNS(null, "height", pf(height) + "px"); - imgEl.setAttributeNS(null, "transform", `scale(${pf(1 / width)} ${pf(-1 / height)})`); - if (mask) { - mask.append(imgEl); - } else { - this._ensureTransformGroup().append(imgEl); - } - } - paintImageMaskXObject(img) { - const imgData = this.getObject(img.data, img); - if (imgData.bitmap) { - (0, _util2.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled."); - return; - } - const current = this.current; - const width = imgData.width; - const height = imgData.height; - const fillColor = current.fillColor; - current.maskId = `mask${maskCount++}`; - const mask = this.svgFactory.createElement("svg:mask"); - mask.setAttributeNS(null, "id", current.maskId); - const rect = this.svgFactory.createElement("svg:rect"); - rect.setAttributeNS(null, "x", "0"); - rect.setAttributeNS(null, "y", "0"); - rect.setAttributeNS(null, "width", pf(width)); - rect.setAttributeNS(null, "height", pf(height)); - rect.setAttributeNS(null, "fill", fillColor); - rect.setAttributeNS(null, "mask", `url(#${current.maskId})`); - this.defs.append(mask); - this._ensureTransformGroup().append(rect); - this.paintInlineImageXObject(imgData, mask); - } - paintFormXObjectBegin(matrix, bbox) { - if (Array.isArray(matrix) && matrix.length === 6) { - this.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); - } - if (bbox) { - const width = bbox[2] - bbox[0]; - const height = bbox[3] - bbox[1]; - const cliprect = this.svgFactory.createElement("svg:rect"); - cliprect.setAttributeNS(null, "x", bbox[0]); - cliprect.setAttributeNS(null, "y", bbox[1]); - cliprect.setAttributeNS(null, "width", pf(width)); - cliprect.setAttributeNS(null, "height", pf(height)); - this.current.element = cliprect; - this.clip("nonzero"); - this.endPath(); - } - } - paintFormXObjectEnd() { - } - _initialize(viewport) { - const svg = this.svgFactory.create(viewport.width, viewport.height); - const definitions = this.svgFactory.createElement("svg:defs"); - svg.append(definitions); - this.defs = definitions; - const rootGroup = this.svgFactory.createElement("svg:g"); - rootGroup.setAttributeNS(null, "transform", pm(viewport.transform)); - svg.append(rootGroup); - this.svg = rootGroup; - return svg; - } - _ensureClipGroup() { - if (!this.current.clipGroup) { - const clipGroup = this.svgFactory.createElement("svg:g"); - clipGroup.setAttributeNS(null, "clip-path", this.current.activeClipUrl); - this.svg.append(clipGroup); - this.current.clipGroup = clipGroup; - } - return this.current.clipGroup; - } - _ensureTransformGroup() { - if (!this.tgrp) { - this.tgrp = this.svgFactory.createElement("svg:g"); - this.tgrp.setAttributeNS(null, "transform", pm(this.transformMatrix)); - if (this.current.activeClipUrl) { - this._ensureClipGroup().append(this.tgrp); - } else { - this.svg.append(this.tgrp); - } - } - return this.tgrp; - } - } - exports2.SVGGraphics = SVGGraphics; - }, - /* 25 */ - /***/ - (__unused_webpack_module2, exports2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.XfaText = void 0; - class XfaText { - static textContent(xfa) { - const items = []; - const output = { - items, - styles: /* @__PURE__ */ Object.create(null) - }; - function walk(node) { - var _a; - if (!node) { - return; - } - let str = null; - const name = node.name; - if (name === "#text") { - str = node.value; - } else if (!XfaText.shouldBuildText(name)) { - return; - } else if ((_a = node == null ? void 0 : node.attributes) == null ? void 0 : _a.textContent) { - str = node.attributes.textContent; - } else if (node.value) { - str = node.value; - } - if (str !== null) { - items.push({ - str - }); - } - if (!node.children) { - return; - } - for (const child of node.children) { - walk(child); - } - } - walk(xfa); - return output; - } - static shouldBuildText(name) { - return !(name === "textarea" || name === "input" || name === "option" || name === "select"); - } - } - exports2.XfaText = XfaText; - }, - /* 26 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.TextLayerRenderTask = void 0; - exports2.renderTextLayer = renderTextLayer; - exports2.updateTextLayer = updateTextLayer; - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - const MAX_TEXT_DIVS_TO_RENDER = 1e5; - const DEFAULT_FONT_SIZE = 30; - const DEFAULT_FONT_ASCENT = 0.8; - const ascentCache = /* @__PURE__ */ new Map(); - function getCtx(size, isOffscreenCanvasSupported) { - let ctx; - if (isOffscreenCanvasSupported && _util2.FeatureTest.isOffscreenCanvasSupported) { - ctx = new OffscreenCanvas(size, size).getContext("2d", { - alpha: false - }); - } else { - const canvas = document.createElement("canvas"); - canvas.width = canvas.height = size; - ctx = canvas.getContext("2d", { - alpha: false - }); - } - return ctx; - } - function getAscent(fontFamily, isOffscreenCanvasSupported) { - const cachedAscent = ascentCache.get(fontFamily); - if (cachedAscent) { - return cachedAscent; - } - const ctx = getCtx(DEFAULT_FONT_SIZE, isOffscreenCanvasSupported); - ctx.font = `${DEFAULT_FONT_SIZE}px ${fontFamily}`; - const metrics = ctx.measureText(""); - let ascent = metrics.fontBoundingBoxAscent; - let descent = Math.abs(metrics.fontBoundingBoxDescent); - if (ascent) { - const ratio = ascent / (ascent + descent); - ascentCache.set(fontFamily, ratio); - ctx.canvas.width = ctx.canvas.height = 0; - return ratio; - } - ctx.strokeStyle = "red"; - ctx.clearRect(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE); - ctx.strokeText("g", 0, 0); - let pixels = ctx.getImageData(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE).data; - descent = 0; - for (let i2 = pixels.length - 1 - 3; i2 >= 0; i2 -= 4) { - if (pixels[i2] > 0) { - descent = Math.ceil(i2 / 4 / DEFAULT_FONT_SIZE); - break; - } - } - ctx.clearRect(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE); - ctx.strokeText("A", 0, DEFAULT_FONT_SIZE); - pixels = ctx.getImageData(0, 0, DEFAULT_FONT_SIZE, DEFAULT_FONT_SIZE).data; - ascent = 0; - for (let i2 = 0, ii2 = pixels.length; i2 < ii2; i2 += 4) { - if (pixels[i2] > 0) { - ascent = DEFAULT_FONT_SIZE - Math.floor(i2 / 4 / DEFAULT_FONT_SIZE); - break; - } - } - ctx.canvas.width = ctx.canvas.height = 0; - if (ascent) { - const ratio = ascent / (ascent + descent); - ascentCache.set(fontFamily, ratio); - return ratio; - } - ascentCache.set(fontFamily, DEFAULT_FONT_ASCENT); - return DEFAULT_FONT_ASCENT; - } - function appendText(task, geom, styles) { - const textDiv = document.createElement("span"); - const textDivProperties = { - angle: 0, - canvasWidth: 0, - hasText: geom.str !== "", - hasEOL: geom.hasEOL, - fontSize: 0 - }; - task._textDivs.push(textDiv); - const tx = _util2.Util.transform(task._transform, geom.transform); - let angle = Math.atan2(tx[1], tx[0]); - const style = styles[geom.fontName]; - if (style.vertical) { - angle += Math.PI / 2; - } - const fontHeight = Math.hypot(tx[2], tx[3]); - const fontAscent = fontHeight * getAscent(style.fontFamily, task._isOffscreenCanvasSupported); - let left, top; - if (angle === 0) { - left = tx[4]; - top = tx[5] - fontAscent; - } else { - left = tx[4] + fontAscent * Math.sin(angle); - top = tx[5] - fontAscent * Math.cos(angle); - } - const scaleFactorStr = "calc(var(--scale-factor)*"; - const divStyle = textDiv.style; - if (task._container === task._rootContainer) { - divStyle.left = `${(100 * left / task._pageWidth).toFixed(2)}%`; - divStyle.top = `${(100 * top / task._pageHeight).toFixed(2)}%`; - } else { - divStyle.left = `${scaleFactorStr}${left.toFixed(2)}px)`; - divStyle.top = `${scaleFactorStr}${top.toFixed(2)}px)`; - } - divStyle.fontSize = `${scaleFactorStr}${fontHeight.toFixed(2)}px)`; - divStyle.fontFamily = style.fontFamily; - textDivProperties.fontSize = fontHeight; - textDiv.setAttribute("role", "presentation"); - textDiv.textContent = geom.str; - textDiv.dir = geom.dir; - if (task._fontInspectorEnabled) { - textDiv.dataset.fontName = geom.fontName; - } - if (angle !== 0) { - textDivProperties.angle = angle * (180 / Math.PI); - } - let shouldScaleText = false; - if (geom.str.length > 1) { - shouldScaleText = true; - } else if (geom.str !== " " && geom.transform[0] !== geom.transform[3]) { - const absScaleX = Math.abs(geom.transform[0]), absScaleY = Math.abs(geom.transform[3]); - if (absScaleX !== absScaleY && Math.max(absScaleX, absScaleY) / Math.min(absScaleX, absScaleY) > 1.5) { - shouldScaleText = true; - } - } - if (shouldScaleText) { - textDivProperties.canvasWidth = style.vertical ? geom.height : geom.width; - } - task._textDivProperties.set(textDiv, textDivProperties); - if (task._isReadableStream) { - task._layoutText(textDiv); - } - } - function layout(params) { - const { - div, - scale, - properties, - ctx, - prevFontSize, - prevFontFamily - } = params; - const { - style - } = div; - let transform = ""; - if (properties.canvasWidth !== 0 && properties.hasText) { - const { - fontFamily - } = style; - const { - canvasWidth, - fontSize - } = properties; - if (prevFontSize !== fontSize || prevFontFamily !== fontFamily) { - ctx.font = `${fontSize * scale}px ${fontFamily}`; - params.prevFontSize = fontSize; - params.prevFontFamily = fontFamily; - } - const { - width - } = ctx.measureText(div.textContent); - if (width > 0) { - transform = `scaleX(${canvasWidth * scale / width})`; - } - } - if (properties.angle !== 0) { - transform = `rotate(${properties.angle}deg) ${transform}`; - } - if (transform.length > 0) { - style.transform = transform; - } - } - function render(task) { - if (task._canceled) { - return; - } - const textDivs = task._textDivs; - const capability = task._capability; - const textDivsLength = textDivs.length; - if (textDivsLength > MAX_TEXT_DIVS_TO_RENDER) { - capability.resolve(); - return; - } - if (!task._isReadableStream) { - for (const textDiv of textDivs) { - task._layoutText(textDiv); - } - } - capability.resolve(); - } - class TextLayerRenderTask { - constructor({ - textContentSource, - container, - viewport, - textDivs, - textDivProperties, - textContentItemsStr, - isOffscreenCanvasSupported - }) { - var _a; - this._textContentSource = textContentSource; - this._isReadableStream = textContentSource instanceof ReadableStream; - this._container = this._rootContainer = container; - this._textDivs = textDivs || []; - this._textContentItemsStr = textContentItemsStr || []; - this._isOffscreenCanvasSupported = isOffscreenCanvasSupported; - this._fontInspectorEnabled = !!((_a = globalThis.FontInspector) == null ? void 0 : _a.enabled); - this._reader = null; - this._textDivProperties = textDivProperties || /* @__PURE__ */ new WeakMap(); - this._canceled = false; - this._capability = new _util2.PromiseCapability(); - this._layoutTextParams = { - prevFontSize: null, - prevFontFamily: null, - div: null, - scale: viewport.scale * (globalThis.devicePixelRatio || 1), - properties: null, - ctx: getCtx(0, isOffscreenCanvasSupported) - }; - const { - pageWidth, - pageHeight, - pageX, - pageY - } = viewport.rawDims; - this._transform = [1, 0, 0, -1, -pageX, pageY + pageHeight]; - this._pageWidth = pageWidth; - this._pageHeight = pageHeight; - (0, _display_utils2.setLayerDimensions)(container, viewport); - this._capability.promise.finally(() => { - this._layoutTextParams = null; - }).catch(() => { - }); - } - get promise() { - return this._capability.promise; - } - cancel() { - this._canceled = true; - if (this._reader) { - this._reader.cancel(new _util2.AbortException("TextLayer task cancelled.")).catch(() => { - }); - this._reader = null; - } - this._capability.reject(new _util2.AbortException("TextLayer task cancelled.")); - } - _processItems(items, styleCache) { - for (const item of items) { - if (item.str === void 0) { - if (item.type === "beginMarkedContentProps" || item.type === "beginMarkedContent") { - const parent = this._container; - this._container = document.createElement("span"); - this._container.classList.add("markedContent"); - if (item.id !== null) { - this._container.setAttribute("id", `${item.id}`); - } - parent.append(this._container); - } else if (item.type === "endMarkedContent") { - this._container = this._container.parentNode; - } - continue; - } - this._textContentItemsStr.push(item.str); - appendText(this, item, styleCache); - } - } - _layoutText(textDiv) { - const textDivProperties = this._layoutTextParams.properties = this._textDivProperties.get(textDiv); - this._layoutTextParams.div = textDiv; - layout(this._layoutTextParams); - if (textDivProperties.hasText) { - this._container.append(textDiv); - } - if (textDivProperties.hasEOL) { - const br = document.createElement("br"); - br.setAttribute("role", "presentation"); - this._container.append(br); - } - } - _render() { - const capability = new _util2.PromiseCapability(); - let styleCache = /* @__PURE__ */ Object.create(null); - if (this._isReadableStream) { - const pump = () => { - this._reader.read().then(({ - value, - done - }) => { - if (done) { - capability.resolve(); - return; - } - Object.assign(styleCache, value.styles); - this._processItems(value.items, styleCache); - pump(); - }, capability.reject); - }; - this._reader = this._textContentSource.getReader(); - pump(); - } else if (this._textContentSource) { - const { - items, - styles - } = this._textContentSource; - this._processItems(items, styles); - capability.resolve(); - } else { - throw new Error('No "textContentSource" parameter specified.'); - } - capability.promise.then(() => { - styleCache = null; - render(this); - }, this._capability.reject); - } - } - exports2.TextLayerRenderTask = TextLayerRenderTask; - function renderTextLayer(params) { - if (!params.textContentSource && (params.textContent || params.textContentStream)) { - (0, _display_utils2.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."); - params.textContentSource = params.textContent || params.textContentStream; - } - const { - container, - viewport - } = params; - const style = getComputedStyle(container); - const visibility = style.getPropertyValue("visibility"); - const scaleFactor = parseFloat(style.getPropertyValue("--scale-factor")); - if (visibility === "visible" && (!scaleFactor || Math.abs(scaleFactor - viewport.scale) > 1e-5)) { - console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM."); - } - const task = new TextLayerRenderTask(params); - task._render(); - return task; - } - function updateTextLayer({ - container, - viewport, - textDivs, - textDivProperties, - isOffscreenCanvasSupported, - mustRotate = true, - mustRescale = true - }) { - if (mustRotate) { - (0, _display_utils2.setLayerDimensions)(container, { - rotation: viewport.rotation - }); - } - if (mustRescale) { - const ctx = getCtx(0, isOffscreenCanvasSupported); - const scale = viewport.scale * (globalThis.devicePixelRatio || 1); - const params = { - prevFontSize: null, - prevFontFamily: null, - div: null, - scale, - properties: null, - ctx - }; - for (const div of textDivs) { - params.properties = textDivProperties.get(div); - params.div = div; - layout(params); - } - } - } - }, - /* 27 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _accessibilityManager, _allowClick, _annotationLayer, _boundPointerup, _boundPointerdown, _editors, _hadPointerDown, _isCleaningUp, _isDisabling, _uiManager, _createNewEditor, createNewEditor_fn, _createAndAddNewEditor, createAndAddNewEditor_fn, _getCenterPoint, getCenterPoint_fn, _cleanup, cleanup_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.AnnotationEditorLayer = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _editor = __w_pdfjs_require__2(4); - var _freetext = __w_pdfjs_require__2(28); - var _ink = __w_pdfjs_require__2(33); - var _display_utils2 = __w_pdfjs_require__2(6); - var _stamp = __w_pdfjs_require__2(34); - const _AnnotationEditorLayer = class { - constructor({ - uiManager, - pageIndex, - div, - accessibilityManager, - annotationLayer, - viewport, - l10n - }) { - __privateAdd(this, _createNewEditor); - __privateAdd(this, _createAndAddNewEditor); - __privateAdd(this, _getCenterPoint); - __privateAdd(this, _cleanup); - __privateAdd(this, _accessibilityManager, void 0); - __privateAdd(this, _allowClick, false); - __privateAdd(this, _annotationLayer, null); - __privateAdd(this, _boundPointerup, this.pointerup.bind(this)); - __privateAdd(this, _boundPointerdown, this.pointerdown.bind(this)); - __privateAdd(this, _editors, /* @__PURE__ */ new Map()); - __privateAdd(this, _hadPointerDown, false); - __privateAdd(this, _isCleaningUp, false); - __privateAdd(this, _isDisabling, false); - __privateAdd(this, _uiManager, void 0); - const editorTypes = [_freetext.FreeTextEditor, _ink.InkEditor, _stamp.StampEditor]; - if (!_AnnotationEditorLayer._initialized) { - _AnnotationEditorLayer._initialized = true; - for (const editorType of editorTypes) { - editorType.initialize(l10n); - } - } - uiManager.registerEditorTypes(editorTypes); - __privateSet(this, _uiManager, uiManager); - this.pageIndex = pageIndex; - this.div = div; - __privateSet(this, _accessibilityManager, accessibilityManager); - __privateSet(this, _annotationLayer, annotationLayer); - this.viewport = viewport; - __privateGet(this, _uiManager).addLayer(this); - } - get isEmpty() { - return __privateGet(this, _editors).size === 0; - } - updateToolbar(mode) { - __privateGet(this, _uiManager).updateToolbar(mode); - } - updateMode(mode = __privateGet(this, _uiManager).getMode()) { - __privateMethod(this, _cleanup, cleanup_fn).call(this); - if (mode === _util2.AnnotationEditorType.INK) { - this.addInkEditorIfNeeded(false); - this.disableClick(); - } else { - this.enableClick(); - } - if (mode !== _util2.AnnotationEditorType.NONE) { - this.div.classList.toggle("freeTextEditing", mode === _util2.AnnotationEditorType.FREETEXT); - this.div.classList.toggle("inkEditing", mode === _util2.AnnotationEditorType.INK); - this.div.classList.toggle("stampEditing", mode === _util2.AnnotationEditorType.STAMP); - this.div.hidden = false; - } - } - addInkEditorIfNeeded(isCommitting) { - if (!isCommitting && __privateGet(this, _uiManager).getMode() !== _util2.AnnotationEditorType.INK) { - return; - } - if (!isCommitting) { - for (const editor2 of __privateGet(this, _editors).values()) { - if (editor2.isEmpty()) { - editor2.setInBackground(); - return; - } - } - } - const editor = __privateMethod(this, _createAndAddNewEditor, createAndAddNewEditor_fn).call(this, { - offsetX: 0, - offsetY: 0 - }, false); - editor.setInBackground(); - } - setEditingState(isEditing) { - __privateGet(this, _uiManager).setEditingState(isEditing); - } - addCommands(params) { - __privateGet(this, _uiManager).addCommands(params); - } - enable() { - this.div.style.pointerEvents = "auto"; - const annotationElementIds = /* @__PURE__ */ new Set(); - for (const editor of __privateGet(this, _editors).values()) { - editor.enableEditing(); - if (editor.annotationElementId) { - annotationElementIds.add(editor.annotationElementId); - } - } - if (!__privateGet(this, _annotationLayer)) { - return; - } - const editables = __privateGet(this, _annotationLayer).getEditableAnnotations(); - for (const editable of editables) { - editable.hide(); - if (__privateGet(this, _uiManager).isDeletedAnnotationElement(editable.data.id)) { - continue; - } - if (annotationElementIds.has(editable.data.id)) { - continue; - } - const editor = this.deserialize(editable); - if (!editor) { - continue; - } - this.addOrRebuild(editor); - editor.enableEditing(); - } - } - disable() { - var _a; - __privateSet(this, _isDisabling, true); - this.div.style.pointerEvents = "none"; - const hiddenAnnotationIds = /* @__PURE__ */ new Set(); - for (const editor of __privateGet(this, _editors).values()) { - editor.disableEditing(); - if (!editor.annotationElementId || editor.serialize() !== null) { - hiddenAnnotationIds.add(editor.annotationElementId); - continue; - } - (_a = this.getEditableAnnotation(editor.annotationElementId)) == null ? void 0 : _a.show(); - editor.remove(); - } - if (__privateGet(this, _annotationLayer)) { - const editables = __privateGet(this, _annotationLayer).getEditableAnnotations(); - for (const editable of editables) { - const { - id - } = editable.data; - if (hiddenAnnotationIds.has(id) || __privateGet(this, _uiManager).isDeletedAnnotationElement(id)) { - continue; - } - editable.show(); - } - } - __privateMethod(this, _cleanup, cleanup_fn).call(this); - if (this.isEmpty) { - this.div.hidden = true; - } - __privateSet(this, _isDisabling, false); - } - getEditableAnnotation(id) { - var _a; - return ((_a = __privateGet(this, _annotationLayer)) == null ? void 0 : _a.getEditableAnnotation(id)) || null; - } - setActiveEditor(editor) { - const currentActive = __privateGet(this, _uiManager).getActive(); - if (currentActive === editor) { - return; - } - __privateGet(this, _uiManager).setActiveEditor(editor); - } - enableClick() { - this.div.addEventListener("pointerdown", __privateGet(this, _boundPointerdown)); - this.div.addEventListener("pointerup", __privateGet(this, _boundPointerup)); - } - disableClick() { - this.div.removeEventListener("pointerdown", __privateGet(this, _boundPointerdown)); - this.div.removeEventListener("pointerup", __privateGet(this, _boundPointerup)); - } - attach(editor) { - __privateGet(this, _editors).set(editor.id, editor); - const { - annotationElementId - } = editor; - if (annotationElementId && __privateGet(this, _uiManager).isDeletedAnnotationElement(annotationElementId)) { - __privateGet(this, _uiManager).removeDeletedAnnotationElement(editor); - } - } - detach(editor) { - var _a; - __privateGet(this, _editors).delete(editor.id); - (_a = __privateGet(this, _accessibilityManager)) == null ? void 0 : _a.removePointerInTextLayer(editor.contentDiv); - if (!__privateGet(this, _isDisabling) && editor.annotationElementId) { - __privateGet(this, _uiManager).addDeletedAnnotationElement(editor); - } - } - remove(editor) { - this.detach(editor); - __privateGet(this, _uiManager).removeEditor(editor); - if (editor.div.contains(document.activeElement)) { - setTimeout(() => { - __privateGet(this, _uiManager).focusMainContainer(); - }, 0); - } - editor.div.remove(); - editor.isAttachedToDOM = false; - if (!__privateGet(this, _isCleaningUp)) { - this.addInkEditorIfNeeded(false); - } - } - changeParent(editor) { - var _a; - if (editor.parent === this) { - return; - } - if (editor.annotationElementId) { - __privateGet(this, _uiManager).addDeletedAnnotationElement(editor.annotationElementId); - _editor.AnnotationEditor.deleteAnnotationElement(editor); - editor.annotationElementId = null; - } - this.attach(editor); - (_a = editor.parent) == null ? void 0 : _a.detach(editor); - editor.setParent(this); - if (editor.div && editor.isAttachedToDOM) { - editor.div.remove(); - this.div.append(editor.div); - } - } - add(editor) { - this.changeParent(editor); - __privateGet(this, _uiManager).addEditor(editor); - this.attach(editor); - if (!editor.isAttachedToDOM) { - const div = editor.render(); - this.div.append(div); - editor.isAttachedToDOM = true; - } - editor.fixAndSetPosition(); - editor.onceAdded(); - __privateGet(this, _uiManager).addToAnnotationStorage(editor); - } - moveEditorInDOM(editor) { - var _a; - if (!editor.isAttachedToDOM) { - return; - } - const { - activeElement - } = document; - if (editor.div.contains(activeElement)) { - editor._focusEventsAllowed = false; - setTimeout(() => { - if (!editor.div.contains(document.activeElement)) { - editor.div.addEventListener("focusin", () => { - editor._focusEventsAllowed = true; - }, { - once: true - }); - activeElement.focus(); - } else { - editor._focusEventsAllowed = true; - } - }, 0); - } - editor._structTreeParentId = (_a = __privateGet(this, _accessibilityManager)) == null ? void 0 : _a.moveElementInDOM(this.div, editor.div, editor.contentDiv, true); - } - addOrRebuild(editor) { - if (editor.needsToBeRebuilt()) { - editor.rebuild(); - } else { - this.add(editor); - } - } - addUndoableEditor(editor) { - const cmd = () => editor._uiManager.rebuild(editor); - const undo = () => { - editor.remove(); - }; - this.addCommands({ - cmd, - undo, - mustExec: false - }); - } - getNextId() { - return __privateGet(this, _uiManager).getId(); - } - pasteEditor(mode, params) { - __privateGet(this, _uiManager).updateToolbar(mode); - __privateGet(this, _uiManager).updateMode(mode); - const { - offsetX, - offsetY - } = __privateMethod(this, _getCenterPoint, getCenterPoint_fn).call(this); - const id = this.getNextId(); - const editor = __privateMethod(this, _createNewEditor, createNewEditor_fn).call(this, __spreadValues({ - parent: this, - id, - x: offsetX, - y: offsetY, - uiManager: __privateGet(this, _uiManager), - isCentered: true - }, params)); - if (editor) { - this.add(editor); - } - } - deserialize(data) { - var _a; - switch ((_a = data.annotationType) != null ? _a : data.annotationEditorType) { - case _util2.AnnotationEditorType.FREETEXT: - return _freetext.FreeTextEditor.deserialize(data, this, __privateGet(this, _uiManager)); - case _util2.AnnotationEditorType.INK: - return _ink.InkEditor.deserialize(data, this, __privateGet(this, _uiManager)); - case _util2.AnnotationEditorType.STAMP: - return _stamp.StampEditor.deserialize(data, this, __privateGet(this, _uiManager)); - } - return null; - } - addNewEditor() { - __privateMethod(this, _createAndAddNewEditor, createAndAddNewEditor_fn).call(this, __privateMethod(this, _getCenterPoint, getCenterPoint_fn).call(this), true); - } - setSelected(editor) { - __privateGet(this, _uiManager).setSelected(editor); - } - toggleSelected(editor) { - __privateGet(this, _uiManager).toggleSelected(editor); - } - isSelected(editor) { - return __privateGet(this, _uiManager).isSelected(editor); - } - unselect(editor) { - __privateGet(this, _uiManager).unselect(editor); - } - pointerup(event) { - const { - isMac - } = _util2.FeatureTest.platform; - if (event.button !== 0 || event.ctrlKey && isMac) { - return; - } - if (event.target !== this.div) { - return; - } - if (!__privateGet(this, _hadPointerDown)) { - return; - } - __privateSet(this, _hadPointerDown, false); - if (!__privateGet(this, _allowClick)) { - __privateSet(this, _allowClick, true); - return; - } - if (__privateGet(this, _uiManager).getMode() === _util2.AnnotationEditorType.STAMP) { - __privateGet(this, _uiManager).unselectAll(); - return; - } - __privateMethod(this, _createAndAddNewEditor, createAndAddNewEditor_fn).call(this, event, false); - } - pointerdown(event) { - if (__privateGet(this, _hadPointerDown)) { - __privateSet(this, _hadPointerDown, false); - return; - } - const { - isMac - } = _util2.FeatureTest.platform; - if (event.button !== 0 || event.ctrlKey && isMac) { - return; - } - if (event.target !== this.div) { - return; - } - __privateSet(this, _hadPointerDown, true); - const editor = __privateGet(this, _uiManager).getActive(); - __privateSet(this, _allowClick, !editor || editor.isEmpty()); - } - findNewParent(editor, x2, y2) { - const layer = __privateGet(this, _uiManager).findParent(x2, y2); - if (layer === null || layer === this) { - return false; - } - layer.changeParent(editor); - return true; - } - destroy() { - var _a, _b; - if (((_a = __privateGet(this, _uiManager).getActive()) == null ? void 0 : _a.parent) === this) { - __privateGet(this, _uiManager).commitOrRemove(); - __privateGet(this, _uiManager).setActiveEditor(null); - } - for (const editor of __privateGet(this, _editors).values()) { - (_b = __privateGet(this, _accessibilityManager)) == null ? void 0 : _b.removePointerInTextLayer(editor.contentDiv); - editor.setParent(null); - editor.isAttachedToDOM = false; - editor.div.remove(); - } - this.div = null; - __privateGet(this, _editors).clear(); - __privateGet(this, _uiManager).removeLayer(this); - } - render({ - viewport - }) { - this.viewport = viewport; - (0, _display_utils2.setLayerDimensions)(this.div, viewport); - for (const editor of __privateGet(this, _uiManager).getEditors(this.pageIndex)) { - this.add(editor); - } - this.updateMode(); - } - update({ - viewport - }) { - __privateGet(this, _uiManager).commitOrRemove(); - this.viewport = viewport; - (0, _display_utils2.setLayerDimensions)(this.div, { - rotation: viewport.rotation - }); - this.updateMode(); - } - get pageDimensions() { - const { - pageWidth, - pageHeight - } = this.viewport.rawDims; - return [pageWidth, pageHeight]; - } - }; - let AnnotationEditorLayer = _AnnotationEditorLayer; - _accessibilityManager = new WeakMap(); - _allowClick = new WeakMap(); - _annotationLayer = new WeakMap(); - _boundPointerup = new WeakMap(); - _boundPointerdown = new WeakMap(); - _editors = new WeakMap(); - _hadPointerDown = new WeakMap(); - _isCleaningUp = new WeakMap(); - _isDisabling = new WeakMap(); - _uiManager = new WeakMap(); - _createNewEditor = new WeakSet(); - createNewEditor_fn = function(params) { - switch (__privateGet(this, _uiManager).getMode()) { - case _util2.AnnotationEditorType.FREETEXT: - return new _freetext.FreeTextEditor(params); - case _util2.AnnotationEditorType.INK: - return new _ink.InkEditor(params); - case _util2.AnnotationEditorType.STAMP: - return new _stamp.StampEditor(params); - } - return null; - }; - _createAndAddNewEditor = new WeakSet(); - createAndAddNewEditor_fn = function(event, isCentered) { - const id = this.getNextId(); - const editor = __privateMethod(this, _createNewEditor, createNewEditor_fn).call(this, { - parent: this, - id, - x: event.offsetX, - y: event.offsetY, - uiManager: __privateGet(this, _uiManager), - isCentered - }); - if (editor) { - this.add(editor); - } - return editor; - }; - _getCenterPoint = new WeakSet(); - getCenterPoint_fn = function() { - const { - x: x2, - y: y2, - width, - height - } = this.div.getBoundingClientRect(); - const tlX = Math.max(0, x2); - const tlY = Math.max(0, y2); - const brX = Math.min(window.innerWidth, x2 + width); - const brY = Math.min(window.innerHeight, y2 + height); - const centerX = (tlX + brX) / 2 - x2; - const centerY = (tlY + brY) / 2 - y2; - const [offsetX, offsetY] = this.viewport.rotation % 180 === 0 ? [centerX, centerY] : [centerY, centerX]; - return { - offsetX, - offsetY - }; - }; - _cleanup = new WeakSet(); - cleanup_fn = function() { - __privateSet(this, _isCleaningUp, true); - for (const editor of __privateGet(this, _editors).values()) { - if (editor.isEmpty()) { - editor.remove(); - } - } - __privateSet(this, _isCleaningUp, false); - }; - __publicField(AnnotationEditorLayer, "_initialized", false); - exports2.AnnotationEditorLayer = AnnotationEditorLayer; - }, - /* 28 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _boundEditorDivBlur, _boundEditorDivFocus, _boundEditorDivInput, _boundEditorDivKeydown, _color, _content, _editorDivId, _fontSize, _initialData, _updateFontSize, updateFontSize_fn, _updateColor, updateColor_fn, _extractText, extractText_fn, _setEditorDimensions, setEditorDimensions_fn, _setContent, setContent_fn, _hasElementChanged, hasElementChanged_fn, _cheatInitialRect, cheatInitialRect_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.FreeTextEditor = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _tools = __w_pdfjs_require__2(5); - var _editor = __w_pdfjs_require__2(4); - var _annotation_layer = __w_pdfjs_require__2(29); - const _FreeTextEditor = class extends _editor.AnnotationEditor { - constructor(params) { - super(__spreadProps(__spreadValues({}, params), { - name: "freeTextEditor" - })); - __privateAdd(this, _updateFontSize); - __privateAdd(this, _updateColor); - __privateAdd(this, _extractText); - __privateAdd(this, _setEditorDimensions); - __privateAdd(this, _setContent); - __privateAdd(this, _hasElementChanged); - __privateAdd(this, _cheatInitialRect); - __privateAdd(this, _boundEditorDivBlur, this.editorDivBlur.bind(this)); - __privateAdd(this, _boundEditorDivFocus, this.editorDivFocus.bind(this)); - __privateAdd(this, _boundEditorDivInput, this.editorDivInput.bind(this)); - __privateAdd(this, _boundEditorDivKeydown, this.editorDivKeydown.bind(this)); - __privateAdd(this, _color, void 0); - __privateAdd(this, _content, ""); - __privateAdd(this, _editorDivId, `${this.id}-editor`); - __privateAdd(this, _fontSize, void 0); - __privateAdd(this, _initialData, null); - __privateSet(this, _color, params.color || _FreeTextEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor); - __privateSet(this, _fontSize, params.fontSize || _FreeTextEditor._defaultFontSize); - } - static get _keyboardManager() { - const proto = _FreeTextEditor.prototype; - const arrowChecker = (self2) => self2.isEmpty(); - const small = _tools.AnnotationEditorUIManager.TRANSLATE_SMALL; - const big = _tools.AnnotationEditorUIManager.TRANSLATE_BIG; - return (0, _util2.shadow)(this, "_keyboardManager", new _tools.KeyboardManager([[["ctrl+s", "mac+meta+s", "ctrl+p", "mac+meta+p"], proto.commitOrRemove, { - bubbles: true - }], [["ctrl+Enter", "mac+meta+Enter", "Escape", "mac+Escape"], proto.commitOrRemove], [["ArrowLeft", "mac+ArrowLeft"], proto._translateEmpty, { - args: [-small, 0], - checker: arrowChecker - }], [["ctrl+ArrowLeft", "mac+shift+ArrowLeft"], proto._translateEmpty, { - args: [-big, 0], - checker: arrowChecker - }], [["ArrowRight", "mac+ArrowRight"], proto._translateEmpty, { - args: [small, 0], - checker: arrowChecker - }], [["ctrl+ArrowRight", "mac+shift+ArrowRight"], proto._translateEmpty, { - args: [big, 0], - checker: arrowChecker - }], [["ArrowUp", "mac+ArrowUp"], proto._translateEmpty, { - args: [0, -small], - checker: arrowChecker - }], [["ctrl+ArrowUp", "mac+shift+ArrowUp"], proto._translateEmpty, { - args: [0, -big], - checker: arrowChecker - }], [["ArrowDown", "mac+ArrowDown"], proto._translateEmpty, { - args: [0, small], - checker: arrowChecker - }], [["ctrl+ArrowDown", "mac+shift+ArrowDown"], proto._translateEmpty, { - args: [0, big], - checker: arrowChecker - }]])); - } - static initialize(l10n) { - _editor.AnnotationEditor.initialize(l10n, { - strings: ["free_text2_default_content", "editor_free_text2_aria_label"] - }); - const style = getComputedStyle(document.documentElement); - this._internalPadding = parseFloat(style.getPropertyValue("--freetext-padding")); - } - static updateDefaultParams(type, value) { - switch (type) { - case _util2.AnnotationEditorParamsType.FREETEXT_SIZE: - _FreeTextEditor._defaultFontSize = value; - break; - case _util2.AnnotationEditorParamsType.FREETEXT_COLOR: - _FreeTextEditor._defaultColor = value; - break; - } - } - updateParams(type, value) { - switch (type) { - case _util2.AnnotationEditorParamsType.FREETEXT_SIZE: - __privateMethod(this, _updateFontSize, updateFontSize_fn).call(this, value); - break; - case _util2.AnnotationEditorParamsType.FREETEXT_COLOR: - __privateMethod(this, _updateColor, updateColor_fn).call(this, value); - break; - } - } - static get defaultPropertiesToUpdate() { - return [[_util2.AnnotationEditorParamsType.FREETEXT_SIZE, _FreeTextEditor._defaultFontSize], [_util2.AnnotationEditorParamsType.FREETEXT_COLOR, _FreeTextEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor]]; - } - get propertiesToUpdate() { - return [[_util2.AnnotationEditorParamsType.FREETEXT_SIZE, __privateGet(this, _fontSize)], [_util2.AnnotationEditorParamsType.FREETEXT_COLOR, __privateGet(this, _color)]]; - } - _translateEmpty(x2, y2) { - this._uiManager.translateSelectedEditors(x2, y2, true); - } - getInitialTranslation() { - const scale = this.parentScale; - return [-_FreeTextEditor._internalPadding * scale, -(_FreeTextEditor._internalPadding + __privateGet(this, _fontSize)) * scale]; - } - rebuild() { - if (!this.parent) { - return; - } - super.rebuild(); - if (this.div === null) { - return; - } - if (!this.isAttachedToDOM) { - this.parent.add(this); - } - } - enableEditMode() { - if (this.isInEditMode()) { - return; - } - this.parent.setEditingState(false); - this.parent.updateToolbar(_util2.AnnotationEditorType.FREETEXT); - super.enableEditMode(); - this.overlayDiv.classList.remove("enabled"); - this.editorDiv.contentEditable = true; - this._isDraggable = false; - this.div.removeAttribute("aria-activedescendant"); - this.editorDiv.addEventListener("keydown", __privateGet(this, _boundEditorDivKeydown)); - this.editorDiv.addEventListener("focus", __privateGet(this, _boundEditorDivFocus)); - this.editorDiv.addEventListener("blur", __privateGet(this, _boundEditorDivBlur)); - this.editorDiv.addEventListener("input", __privateGet(this, _boundEditorDivInput)); - } - disableEditMode() { - if (!this.isInEditMode()) { - return; - } - this.parent.setEditingState(true); - super.disableEditMode(); - this.overlayDiv.classList.add("enabled"); - this.editorDiv.contentEditable = false; - this.div.setAttribute("aria-activedescendant", __privateGet(this, _editorDivId)); - this._isDraggable = true; - this.editorDiv.removeEventListener("keydown", __privateGet(this, _boundEditorDivKeydown)); - this.editorDiv.removeEventListener("focus", __privateGet(this, _boundEditorDivFocus)); - this.editorDiv.removeEventListener("blur", __privateGet(this, _boundEditorDivBlur)); - this.editorDiv.removeEventListener("input", __privateGet(this, _boundEditorDivInput)); - this.div.focus({ - preventScroll: true - }); - this.isEditing = false; - this.parent.div.classList.add("freeTextEditing"); - } - focusin(event) { - if (!this._focusEventsAllowed) { - return; - } - super.focusin(event); - if (event.target !== this.editorDiv) { - this.editorDiv.focus(); - } - } - onceAdded() { - var _a; - if (this.width) { - __privateMethod(this, _cheatInitialRect, cheatInitialRect_fn).call(this); - return; - } - this.enableEditMode(); - this.editorDiv.focus(); - if ((_a = this._initialOptions) == null ? void 0 : _a.isCentered) { - this.center(); - } - this._initialOptions = null; - } - isEmpty() { - return !this.editorDiv || this.editorDiv.innerText.trim() === ""; - } - remove() { - this.isEditing = false; - if (this.parent) { - this.parent.setEditingState(true); - this.parent.div.classList.add("freeTextEditing"); - } - super.remove(); - } - commit() { - if (!this.isInEditMode()) { - return; - } - super.commit(); - this.disableEditMode(); - const savedText = __privateGet(this, _content); - const newText = __privateSet(this, _content, __privateMethod(this, _extractText, extractText_fn).call(this).trimEnd()); - if (savedText === newText) { - return; - } - const setText = (text) => { - __privateSet(this, _content, text); - if (!text) { - this.remove(); - return; - } - __privateMethod(this, _setContent, setContent_fn).call(this); - this._uiManager.rebuild(this); - __privateMethod(this, _setEditorDimensions, setEditorDimensions_fn).call(this); - }; - this.addCommands({ - cmd: () => { - setText(newText); - }, - undo: () => { - setText(savedText); - }, - mustExec: false - }); - __privateMethod(this, _setEditorDimensions, setEditorDimensions_fn).call(this); - } - shouldGetKeyboardEvents() { - return this.isInEditMode(); - } - enterInEditMode() { - this.enableEditMode(); - this.editorDiv.focus(); - } - dblclick(event) { - this.enterInEditMode(); - } - keydown(event) { - if (event.target === this.div && event.key === "Enter") { - this.enterInEditMode(); - event.preventDefault(); - } - } - editorDivKeydown(event) { - _FreeTextEditor._keyboardManager.exec(this, event); - } - editorDivFocus(event) { - this.isEditing = true; - } - editorDivBlur(event) { - this.isEditing = false; - } - editorDivInput(event) { - this.parent.div.classList.toggle("freeTextEditing", this.isEmpty()); - } - disableEditing() { - this.editorDiv.setAttribute("role", "comment"); - this.editorDiv.removeAttribute("aria-multiline"); - } - enableEditing() { - this.editorDiv.setAttribute("role", "textbox"); - this.editorDiv.setAttribute("aria-multiline", true); - } - render() { - if (this.div) { - return this.div; - } - let baseX, baseY; - if (this.width) { - baseX = this.x; - baseY = this.y; - } - super.render(); - this.editorDiv = document.createElement("div"); - this.editorDiv.className = "internal"; - this.editorDiv.setAttribute("id", __privateGet(this, _editorDivId)); - this.enableEditing(); - _editor.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((msg) => { - var _a; - return (_a = this.editorDiv) == null ? void 0 : _a.setAttribute("aria-label", msg); - }); - _editor.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((msg) => { - var _a; - return (_a = this.editorDiv) == null ? void 0 : _a.setAttribute("default-content", msg); - }); - this.editorDiv.contentEditable = true; - const { - style - } = this.editorDiv; - style.fontSize = `calc(${__privateGet(this, _fontSize)}px * var(--scale-factor))`; - style.color = __privateGet(this, _color); - this.div.append(this.editorDiv); - this.overlayDiv = document.createElement("div"); - this.overlayDiv.classList.add("overlay", "enabled"); - this.div.append(this.overlayDiv); - (0, _tools.bindEvents)(this, this.div, ["dblclick", "keydown"]); - if (this.width) { - const [parentWidth, parentHeight] = this.parentDimensions; - if (this.annotationElementId) { - const { - position - } = __privateGet(this, _initialData); - let [tx, ty] = this.getInitialTranslation(); - [tx, ty] = this.pageTranslationToScreen(tx, ty); - const [pageWidth, pageHeight] = this.pageDimensions; - const [pageX, pageY] = this.pageTranslation; - let posX, posY; - switch (this.rotation) { - case 0: - posX = baseX + (position[0] - pageX) / pageWidth; - posY = baseY + this.height - (position[1] - pageY) / pageHeight; - break; - case 90: - posX = baseX + (position[0] - pageX) / pageWidth; - posY = baseY - (position[1] - pageY) / pageHeight; - [tx, ty] = [ty, -tx]; - break; - case 180: - posX = baseX - this.width + (position[0] - pageX) / pageWidth; - posY = baseY - (position[1] - pageY) / pageHeight; - [tx, ty] = [-tx, -ty]; - break; - case 270: - posX = baseX + (position[0] - pageX - this.height * pageHeight) / pageWidth; - posY = baseY + (position[1] - pageY - this.width * pageWidth) / pageHeight; - [tx, ty] = [-ty, tx]; - break; - } - this.setAt(posX * parentWidth, posY * parentHeight, tx, ty); - } else { - this.setAt(baseX * parentWidth, baseY * parentHeight, this.width * parentWidth, this.height * parentHeight); - } - __privateMethod(this, _setContent, setContent_fn).call(this); - this._isDraggable = true; - this.editorDiv.contentEditable = false; - } else { - this._isDraggable = false; - this.editorDiv.contentEditable = true; - } - return this.div; - } - get contentDiv() { - return this.editorDiv; - } - static deserialize(data, parent, uiManager) { - let initialData = null; - if (data instanceof _annotation_layer.FreeTextAnnotationElement) { - const { - data: { - defaultAppearanceData: { - fontSize, - fontColor - }, - rect, - rotation, - id - }, - textContent, - textPosition, - parent: { - page: { - pageNumber - } - } - } = data; - if (!textContent || textContent.length === 0) { - return null; - } - initialData = data = { - annotationType: _util2.AnnotationEditorType.FREETEXT, - color: Array.from(fontColor), - fontSize, - value: textContent.join("\n"), - position: textPosition, - pageIndex: pageNumber - 1, - rect, - rotation, - id, - deleted: false - }; - } - const editor = super.deserialize(data, parent, uiManager); - __privateSet(editor, _fontSize, data.fontSize); - __privateSet(editor, _color, _util2.Util.makeHexColor(...data.color)); - __privateSet(editor, _content, data.value); - editor.annotationElementId = data.id || null; - __privateSet(editor, _initialData, initialData); - return editor; - } - serialize(isForCopying = false) { - if (this.isEmpty()) { - return null; - } - if (this.deleted) { - return { - pageIndex: this.pageIndex, - id: this.annotationElementId, - deleted: true - }; - } - const padding = _FreeTextEditor._internalPadding * this.parentScale; - const rect = this.getRect(padding, padding); - const color = _editor.AnnotationEditor._colorManager.convert(this.isAttachedToDOM ? getComputedStyle(this.editorDiv).color : __privateGet(this, _color)); - const serialized = { - annotationType: _util2.AnnotationEditorType.FREETEXT, - color, - fontSize: __privateGet(this, _fontSize), - value: __privateGet(this, _content), - pageIndex: this.pageIndex, - rect, - rotation: this.rotation, - structTreeParentId: this._structTreeParentId - }; - if (isForCopying) { - return serialized; - } - if (this.annotationElementId && !__privateMethod(this, _hasElementChanged, hasElementChanged_fn).call(this, serialized)) { - return null; - } - serialized.id = this.annotationElementId; - return serialized; - } - }; - let FreeTextEditor = _FreeTextEditor; - _boundEditorDivBlur = new WeakMap(); - _boundEditorDivFocus = new WeakMap(); - _boundEditorDivInput = new WeakMap(); - _boundEditorDivKeydown = new WeakMap(); - _color = new WeakMap(); - _content = new WeakMap(); - _editorDivId = new WeakMap(); - _fontSize = new WeakMap(); - _initialData = new WeakMap(); - _updateFontSize = new WeakSet(); - updateFontSize_fn = function(fontSize) { - const setFontsize = (size) => { - this.editorDiv.style.fontSize = `calc(${size}px * var(--scale-factor))`; - this.translate(0, -(size - __privateGet(this, _fontSize)) * this.parentScale); - __privateSet(this, _fontSize, size); - __privateMethod(this, _setEditorDimensions, setEditorDimensions_fn).call(this); - }; - const savedFontsize = __privateGet(this, _fontSize); - this.addCommands({ - cmd: () => { - setFontsize(fontSize); - }, - undo: () => { - setFontsize(savedFontsize); - }, - mustExec: true, - type: _util2.AnnotationEditorParamsType.FREETEXT_SIZE, - overwriteIfSameType: true, - keepUndo: true - }); - }; - _updateColor = new WeakSet(); - updateColor_fn = function(color) { - const savedColor = __privateGet(this, _color); - this.addCommands({ - cmd: () => { - __privateSet(this, _color, this.editorDiv.style.color = color); - }, - undo: () => { - __privateSet(this, _color, this.editorDiv.style.color = savedColor); - }, - mustExec: true, - type: _util2.AnnotationEditorParamsType.FREETEXT_COLOR, - overwriteIfSameType: true, - keepUndo: true - }); - }; - _extractText = new WeakSet(); - extractText_fn = function() { - const divs = this.editorDiv.getElementsByTagName("div"); - if (divs.length === 0) { - return this.editorDiv.innerText; - } - const buffer = []; - for (const div of divs) { - buffer.push(div.innerText.replace(/\r\n?|\n/, "")); - } - return buffer.join("\n"); - }; - _setEditorDimensions = new WeakSet(); - setEditorDimensions_fn = function() { - const [parentWidth, parentHeight] = this.parentDimensions; - let rect; - if (this.isAttachedToDOM) { - rect = this.div.getBoundingClientRect(); - } else { - const { - currentLayer, - div - } = this; - const savedDisplay = div.style.display; - div.style.display = "hidden"; - currentLayer.div.append(this.div); - rect = div.getBoundingClientRect(); - div.remove(); - div.style.display = savedDisplay; - } - if (this.rotation % 180 === this.parentRotation % 180) { - this.width = rect.width / parentWidth; - this.height = rect.height / parentHeight; - } else { - this.width = rect.height / parentWidth; - this.height = rect.width / parentHeight; - } - this.fixAndSetPosition(); - }; - _setContent = new WeakSet(); - setContent_fn = function() { - this.editorDiv.replaceChildren(); - if (!__privateGet(this, _content)) { - return; - } - for (const line of __privateGet(this, _content).split("\n")) { - const div = document.createElement("div"); - div.append(line ? document.createTextNode(line) : document.createElement("br")); - this.editorDiv.append(div); - } - }; - _hasElementChanged = new WeakSet(); - hasElementChanged_fn = function(serialized) { - const { - value, - fontSize, - color, - rect, - pageIndex - } = __privateGet(this, _initialData); - return serialized.value !== value || serialized.fontSize !== fontSize || serialized.rect.some((x2, i2) => Math.abs(x2 - rect[i2]) >= 1) || serialized.color.some((c2, i2) => c2 !== color[i2]) || serialized.pageIndex !== pageIndex; - }; - _cheatInitialRect = new WeakSet(); - cheatInitialRect_fn = function(delayed = false) { - if (!this.annotationElementId) { - return; - } - __privateMethod(this, _setEditorDimensions, setEditorDimensions_fn).call(this); - if (!delayed && (this.width === 0 || this.height === 0)) { - setTimeout(() => __privateMethod(this, _cheatInitialRect, cheatInitialRect_fn).call(this, true), 0); - return; - } - const padding = _FreeTextEditor._internalPadding * this.parentScale; - __privateGet(this, _initialData).rect = this.getRect(padding, padding); - }; - __publicField(FreeTextEditor, "_freeTextDefaultContent", ""); - __publicField(FreeTextEditor, "_internalPadding", 0); - __publicField(FreeTextEditor, "_defaultColor", null); - __publicField(FreeTextEditor, "_defaultFontSize", 10); - __publicField(FreeTextEditor, "_type", "freetext"); - exports2.FreeTextEditor = FreeTextEditor; - }, - /* 29 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _hasBorder, _setInternalLink, setInternalLink_fn, _bindSetOCGState, bindSetOCGState_fn, _dateTimePromise, _boundKeyDown, _boundHide, _boundShow, _boundToggle, _color, _container, _contentsObj, _elements, _parent, _parentRect, _pinned, _popup, _rect, _richText, _titleObj, _wasVisible, _keyDown, keyDown_fn, _toggle, toggle_fn, _show, show_fn, _hide, hide_fn, _line, _square, _circle, _polyline, _polylines, _trigger, _download, download_fn, _accessibilityManager, _annotationCanvasMap, _editableAnnotations, _appendElement, appendElement_fn, _setAnnotationCanvasMap, setAnnotationCanvasMap_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.StampAnnotationElement = exports2.InkAnnotationElement = exports2.FreeTextAnnotationElement = exports2.AnnotationLayer = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _display_utils2 = __w_pdfjs_require__2(6); - var _annotation_storage2 = __w_pdfjs_require__2(3); - var _scripting_utils = __w_pdfjs_require__2(30); - var _displayL10n_utils = __w_pdfjs_require__2(31); - var _xfa_layer = __w_pdfjs_require__2(32); - const DEFAULT_TAB_INDEX = 1e3; - const DEFAULT_FONT_SIZE = 9; - const GetElementsByNameSet = /* @__PURE__ */ new WeakSet(); - function getRectDims(rect) { - return { - width: rect[2] - rect[0], - height: rect[3] - rect[1] - }; - } - class AnnotationElementFactory { - static create(parameters) { - const subtype = parameters.data.annotationType; - switch (subtype) { - case _util2.AnnotationType.LINK: - return new LinkAnnotationElement(parameters); - case _util2.AnnotationType.TEXT: - return new TextAnnotationElement(parameters); - case _util2.AnnotationType.WIDGET: - const fieldType = parameters.data.fieldType; - switch (fieldType) { - case "Tx": - return new TextWidgetAnnotationElement(parameters); - case "Btn": - if (parameters.data.radioButton) { - return new RadioButtonWidgetAnnotationElement(parameters); - } else if (parameters.data.checkBox) { - return new CheckboxWidgetAnnotationElement(parameters); - } - return new PushButtonWidgetAnnotationElement(parameters); - case "Ch": - return new ChoiceWidgetAnnotationElement(parameters); - case "Sig": - return new SignatureWidgetAnnotationElement(parameters); - } - return new WidgetAnnotationElement(parameters); - case _util2.AnnotationType.POPUP: - return new PopupAnnotationElement(parameters); - case _util2.AnnotationType.FREETEXT: - return new FreeTextAnnotationElement(parameters); - case _util2.AnnotationType.LINE: - return new LineAnnotationElement(parameters); - case _util2.AnnotationType.SQUARE: - return new SquareAnnotationElement(parameters); - case _util2.AnnotationType.CIRCLE: - return new CircleAnnotationElement(parameters); - case _util2.AnnotationType.POLYLINE: - return new PolylineAnnotationElement(parameters); - case _util2.AnnotationType.CARET: - return new CaretAnnotationElement(parameters); - case _util2.AnnotationType.INK: - return new InkAnnotationElement(parameters); - case _util2.AnnotationType.POLYGON: - return new PolygonAnnotationElement(parameters); - case _util2.AnnotationType.HIGHLIGHT: - return new HighlightAnnotationElement(parameters); - case _util2.AnnotationType.UNDERLINE: - return new UnderlineAnnotationElement(parameters); - case _util2.AnnotationType.SQUIGGLY: - return new SquigglyAnnotationElement(parameters); - case _util2.AnnotationType.STRIKEOUT: - return new StrikeOutAnnotationElement(parameters); - case _util2.AnnotationType.STAMP: - return new StampAnnotationElement(parameters); - case _util2.AnnotationType.FILEATTACHMENT: - return new FileAttachmentAnnotationElement(parameters); - default: - return new AnnotationElement(parameters); - } - } - } - const _AnnotationElement = class { - constructor(parameters, { - isRenderable = false, - ignoreBorder = false, - createQuadrilaterals = false - } = {}) { - __privateAdd(this, _hasBorder, false); - this.isRenderable = isRenderable; - this.data = parameters.data; - this.layer = parameters.layer; - this.linkService = parameters.linkService; - this.downloadManager = parameters.downloadManager; - this.imageResourcesPath = parameters.imageResourcesPath; - this.renderForms = parameters.renderForms; - this.svgFactory = parameters.svgFactory; - this.annotationStorage = parameters.annotationStorage; - this.enableScripting = parameters.enableScripting; - this.hasJSActions = parameters.hasJSActions; - this._fieldObjects = parameters.fieldObjects; - this.parent = parameters.parent; - if (isRenderable) { - this.container = this._createContainer(ignoreBorder); - } - if (createQuadrilaterals) { - this._createQuadrilaterals(); - } - } - static _hasPopupData({ - titleObj, - contentsObj, - richText - }) { - return !!((titleObj == null ? void 0 : titleObj.str) || (contentsObj == null ? void 0 : contentsObj.str) || (richText == null ? void 0 : richText.str)); - } - get hasPopupData() { - return _AnnotationElement._hasPopupData(this.data); - } - _createContainer(ignoreBorder) { - const { - data, - parent: { - page, - viewport - } - } = this; - const container = document.createElement("section"); - container.setAttribute("data-annotation-id", data.id); - if (!(this instanceof WidgetAnnotationElement)) { - container.tabIndex = DEFAULT_TAB_INDEX; - } - container.style.zIndex = this.parent.zIndex++; - if (this.data.popupRef) { - container.setAttribute("aria-haspopup", "dialog"); - } - if (data.noRotate) { - container.classList.add("norotate"); - } - const { - pageWidth, - pageHeight, - pageX, - pageY - } = viewport.rawDims; - if (!data.rect || this instanceof PopupAnnotationElement) { - const { - rotation: rotation2 - } = data; - if (!data.hasOwnCanvas && rotation2 !== 0) { - this.setRotation(rotation2, container); - } - return container; - } - const { - width, - height - } = getRectDims(data.rect); - const rect = _util2.Util.normalizeRect([data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], page.view[3] - data.rect[3] + page.view[1]]); - if (!ignoreBorder && data.borderStyle.width > 0) { - container.style.borderWidth = `${data.borderStyle.width}px`; - const horizontalRadius = data.borderStyle.horizontalCornerRadius; - const verticalRadius = data.borderStyle.verticalCornerRadius; - if (horizontalRadius > 0 || verticalRadius > 0) { - const radius = `calc(${horizontalRadius}px * var(--scale-factor)) / calc(${verticalRadius}px * var(--scale-factor))`; - container.style.borderRadius = radius; - } else if (this instanceof RadioButtonWidgetAnnotationElement) { - const radius = `calc(${width}px * var(--scale-factor)) / calc(${height}px * var(--scale-factor))`; - container.style.borderRadius = radius; - } - switch (data.borderStyle.style) { - case _util2.AnnotationBorderStyleType.SOLID: - container.style.borderStyle = "solid"; - break; - case _util2.AnnotationBorderStyleType.DASHED: - container.style.borderStyle = "dashed"; - break; - case _util2.AnnotationBorderStyleType.BEVELED: - (0, _util2.warn)("Unimplemented border style: beveled"); - break; - case _util2.AnnotationBorderStyleType.INSET: - (0, _util2.warn)("Unimplemented border style: inset"); - break; - case _util2.AnnotationBorderStyleType.UNDERLINE: - container.style.borderBottomStyle = "solid"; - break; - default: - break; - } - const borderColor = data.borderColor || null; - if (borderColor) { - __privateSet(this, _hasBorder, true); - container.style.borderColor = _util2.Util.makeHexColor(borderColor[0] | 0, borderColor[1] | 0, borderColor[2] | 0); - } else { - container.style.borderWidth = 0; - } - } - container.style.left = `${100 * (rect[0] - pageX) / pageWidth}%`; - container.style.top = `${100 * (rect[1] - pageY) / pageHeight}%`; - const { - rotation - } = data; - if (data.hasOwnCanvas || rotation === 0) { - container.style.width = `${100 * width / pageWidth}%`; - container.style.height = `${100 * height / pageHeight}%`; - } else { - this.setRotation(rotation, container); - } - return container; - } - setRotation(angle, container = this.container) { - if (!this.data.rect) { - return; - } - const { - pageWidth, - pageHeight - } = this.parent.viewport.rawDims; - const { - width, - height - } = getRectDims(this.data.rect); - let elementWidth, elementHeight; - if (angle % 180 === 0) { - elementWidth = 100 * width / pageWidth; - elementHeight = 100 * height / pageHeight; - } else { - elementWidth = 100 * height / pageWidth; - elementHeight = 100 * width / pageHeight; - } - container.style.width = `${elementWidth}%`; - container.style.height = `${elementHeight}%`; - container.setAttribute("data-main-rotation", (360 - angle) % 360); - } - get _commonActions() { - const setColor = (jsName, styleName, event) => { - const color = event.detail[jsName]; - const colorType = color[0]; - const colorArray = color.slice(1); - event.target.style[styleName] = _scripting_utils.ColorConverters[`${colorType}_HTML`](colorArray); - this.annotationStorage.setValue(this.data.id, { - [styleName]: _scripting_utils.ColorConverters[`${colorType}_rgb`](colorArray) - }); - }; - return (0, _util2.shadow)(this, "_commonActions", { - display: (event) => { - const { - display - } = event.detail; - const hidden = display % 2 === 1; - this.container.style.visibility = hidden ? "hidden" : "visible"; - this.annotationStorage.setValue(this.data.id, { - noView: hidden, - noPrint: display === 1 || display === 2 - }); - }, - print: (event) => { - this.annotationStorage.setValue(this.data.id, { - noPrint: !event.detail.print - }); - }, - hidden: (event) => { - const { - hidden - } = event.detail; - this.container.style.visibility = hidden ? "hidden" : "visible"; - this.annotationStorage.setValue(this.data.id, { - noPrint: hidden, - noView: hidden - }); - }, - focus: (event) => { - setTimeout(() => event.target.focus({ - preventScroll: false - }), 0); - }, - userName: (event) => { - event.target.title = event.detail.userName; - }, - readonly: (event) => { - event.target.disabled = event.detail.readonly; - }, - required: (event) => { - this._setRequired(event.target, event.detail.required); - }, - bgColor: (event) => { - setColor("bgColor", "backgroundColor", event); - }, - fillColor: (event) => { - setColor("fillColor", "backgroundColor", event); - }, - fgColor: (event) => { - setColor("fgColor", "color", event); - }, - textColor: (event) => { - setColor("textColor", "color", event); - }, - borderColor: (event) => { - setColor("borderColor", "borderColor", event); - }, - strokeColor: (event) => { - setColor("strokeColor", "borderColor", event); - }, - rotation: (event) => { - const angle = event.detail.rotation; - this.setRotation(angle); - this.annotationStorage.setValue(this.data.id, { - rotation: angle - }); - } - }); - } - _dispatchEventFromSandbox(actions, jsEvent) { - const commonActions = this._commonActions; - for (const name of Object.keys(jsEvent.detail)) { - const action = actions[name] || commonActions[name]; - action == null ? void 0 : action(jsEvent); - } - } - _setDefaultPropertiesFromJS(element) { - if (!this.enableScripting) { - return; - } - const storedData = this.annotationStorage.getRawValue(this.data.id); - if (!storedData) { - return; - } - const commonActions = this._commonActions; - for (const [actionName, detail] of Object.entries(storedData)) { - const action = commonActions[actionName]; - if (action) { - const eventProxy = { - detail: { - [actionName]: detail - }, - target: element - }; - action(eventProxy); - delete storedData[actionName]; - } - } - } - _createQuadrilaterals() { - if (!this.container) { - return; - } - const { - quadPoints - } = this.data; - if (!quadPoints) { - return; - } - const [rectBlX, rectBlY, rectTrX, rectTrY] = this.data.rect; - if (quadPoints.length === 1) { - const [, { - x: trX, - y: trY - }, { - x: blX, - y: blY - }] = quadPoints[0]; - if (rectTrX === trX && rectTrY === trY && rectBlX === blX && rectBlY === blY) { - return; - } - } - const { - style - } = this.container; - let svgBuffer; - if (__privateGet(this, _hasBorder)) { - const { - borderColor, - borderWidth - } = style; - style.borderWidth = 0; - svgBuffer = ["url('data:image/svg+xml;utf8,", ``, ``]; - this.container.classList.add("hasBorder"); - } - const width = rectTrX - rectBlX; - const height = rectTrY - rectBlY; - const { - svgFactory - } = this; - const svg = svgFactory.createElement("svg"); - svg.classList.add("quadrilateralsContainer"); - svg.setAttribute("width", 0); - svg.setAttribute("height", 0); - const defs = svgFactory.createElement("defs"); - svg.append(defs); - const clipPath = svgFactory.createElement("clipPath"); - const id = `clippath_${this.data.id}`; - clipPath.setAttribute("id", id); - clipPath.setAttribute("clipPathUnits", "objectBoundingBox"); - defs.append(clipPath); - for (const [, { - x: trX, - y: trY - }, { - x: blX, - y: blY - }] of quadPoints) { - const rect = svgFactory.createElement("rect"); - const x2 = (blX - rectBlX) / width; - const y2 = (rectTrY - trY) / height; - const rectWidth = (trX - blX) / width; - const rectHeight = (trY - blY) / height; - rect.setAttribute("x", x2); - rect.setAttribute("y", y2); - rect.setAttribute("width", rectWidth); - rect.setAttribute("height", rectHeight); - clipPath.append(rect); - svgBuffer == null ? void 0 : svgBuffer.push(``); - } - if (__privateGet(this, _hasBorder)) { - svgBuffer.push(`')`); - style.backgroundImage = svgBuffer.join(""); - } - this.container.append(svg); - this.container.style.clipPath = `url(#${id})`; - } - _createPopup() { - const { - container, - data - } = this; - container.setAttribute("aria-haspopup", "dialog"); - const popup = new PopupAnnotationElement({ - data: { - color: data.color, - titleObj: data.titleObj, - modificationDate: data.modificationDate, - contentsObj: data.contentsObj, - richText: data.richText, - parentRect: data.rect, - borderStyle: 0, - id: `popup_${data.id}`, - rotation: data.rotation - }, - parent: this.parent, - elements: [this] - }); - this.parent.div.append(popup.render()); - } - render() { - (0, _util2.unreachable)("Abstract method `AnnotationElement.render` called"); - } - _getElementsByName(name, skipId = null) { - const fields = []; - if (this._fieldObjects) { - const fieldObj = this._fieldObjects[name]; - if (fieldObj) { - for (const { - page, - id, - exportValues - } of fieldObj) { - if (page === -1) { - continue; - } - if (id === skipId) { - continue; - } - const exportValue = typeof exportValues === "string" ? exportValues : null; - const domElement = document.querySelector(`[data-element-id="${id}"]`); - if (domElement && !GetElementsByNameSet.has(domElement)) { - (0, _util2.warn)(`_getElementsByName - element not allowed: ${id}`); - continue; - } - fields.push({ - id, - exportValue, - domElement - }); - } - } - return fields; - } - for (const domElement of document.getElementsByName(name)) { - const { - exportValue - } = domElement; - const id = domElement.getAttribute("data-element-id"); - if (id === skipId) { - continue; - } - if (!GetElementsByNameSet.has(domElement)) { - continue; - } - fields.push({ - id, - exportValue, - domElement - }); - } - return fields; - } - show() { - var _a; - if (this.container) { - this.container.hidden = false; - } - (_a = this.popup) == null ? void 0 : _a.maybeShow(); - } - hide() { - var _a; - if (this.container) { - this.container.hidden = true; - } - (_a = this.popup) == null ? void 0 : _a.forceHide(); - } - getElementsToTriggerPopup() { - return this.container; - } - addHighlightArea() { - const triggers = this.getElementsToTriggerPopup(); - if (Array.isArray(triggers)) { - for (const element of triggers) { - element.classList.add("highlightArea"); - } - } else { - triggers.classList.add("highlightArea"); - } - } - _editOnDoubleClick() { - const { - annotationEditorType: mode, - data: { - id: editId - } - } = this; - this.container.addEventListener("dblclick", () => { - var _a; - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("switchannotationeditormode", { - source: this, - mode, - editId - }); - }); - } - }; - let AnnotationElement = _AnnotationElement; - _hasBorder = new WeakMap(); - class LinkAnnotationElement extends AnnotationElement { - constructor(parameters, options = null) { - super(parameters, { - isRenderable: true, - ignoreBorder: !!(options == null ? void 0 : options.ignoreBorder), - createQuadrilaterals: true - }); - __privateAdd(this, _setInternalLink); - __privateAdd(this, _bindSetOCGState); - this.isTooltipOnly = parameters.data.isTooltipOnly; - } - render() { - const { - data, - linkService - } = this; - const link = document.createElement("a"); - link.setAttribute("data-element-id", data.id); - let isBound = false; - if (data.url) { - linkService.addLinkAttributes(link, data.url, data.newWindow); - isBound = true; - } else if (data.action) { - this._bindNamedAction(link, data.action); - isBound = true; - } else if (data.attachment) { - this._bindAttachment(link, data.attachment); - isBound = true; - } else if (data.setOCGState) { - __privateMethod(this, _bindSetOCGState, bindSetOCGState_fn).call(this, link, data.setOCGState); - isBound = true; - } else if (data.dest) { - this._bindLink(link, data.dest); - isBound = true; - } else { - if (data.actions && (data.actions.Action || data.actions["Mouse Up"] || data.actions["Mouse Down"]) && this.enableScripting && this.hasJSActions) { - this._bindJSAction(link, data); - isBound = true; - } - if (data.resetForm) { - this._bindResetFormAction(link, data.resetForm); - isBound = true; - } else if (this.isTooltipOnly && !isBound) { - this._bindLink(link, ""); - isBound = true; - } - } - this.container.classList.add("linkAnnotation"); - if (isBound) { - this.container.append(link); - } - return this.container; - } - _bindLink(link, destination) { - link.href = this.linkService.getDestinationHash(destination); - link.onclick = () => { - if (destination) { - this.linkService.goToDestination(destination); - } - return false; - }; - if (destination || destination === "") { - __privateMethod(this, _setInternalLink, setInternalLink_fn).call(this); - } - } - _bindNamedAction(link, action) { - link.href = this.linkService.getAnchorUrl(""); - link.onclick = () => { - this.linkService.executeNamedAction(action); - return false; - }; - __privateMethod(this, _setInternalLink, setInternalLink_fn).call(this); - } - _bindAttachment(link, attachment) { - link.href = this.linkService.getAnchorUrl(""); - link.onclick = () => { - var _a; - (_a = this.downloadManager) == null ? void 0 : _a.openOrDownloadData(this.container, attachment.content, attachment.filename); - return false; - }; - __privateMethod(this, _setInternalLink, setInternalLink_fn).call(this); - } - _bindJSAction(link, data) { - link.href = this.linkService.getAnchorUrl(""); - const map = /* @__PURE__ */ new Map([["Action", "onclick"], ["Mouse Up", "onmouseup"], ["Mouse Down", "onmousedown"]]); - for (const name of Object.keys(data.actions)) { - const jsName = map.get(name); - if (!jsName) { - continue; - } - link[jsName] = () => { - var _a; - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id: data.id, - name - } - }); - return false; - }; - } - if (!link.onclick) { - link.onclick = () => false; - } - __privateMethod(this, _setInternalLink, setInternalLink_fn).call(this); - } - _bindResetFormAction(link, resetForm) { - const otherClickAction = link.onclick; - if (!otherClickAction) { - link.href = this.linkService.getAnchorUrl(""); - } - __privateMethod(this, _setInternalLink, setInternalLink_fn).call(this); - if (!this._fieldObjects) { - (0, _util2.warn)(`_bindResetFormAction - "resetForm" action not supported, ensure that the \`fieldObjects\` parameter is provided.`); - if (!otherClickAction) { - link.onclick = () => false; - } - return; - } - link.onclick = () => { - var _a; - otherClickAction == null ? void 0 : otherClickAction(); - const { - fields: resetFormFields, - refs: resetFormRefs, - include - } = resetForm; - const allFields = []; - if (resetFormFields.length !== 0 || resetFormRefs.length !== 0) { - const fieldIds = new Set(resetFormRefs); - for (const fieldName of resetFormFields) { - const fields = this._fieldObjects[fieldName] || []; - for (const { - id - } of fields) { - fieldIds.add(id); - } - } - for (const fields of Object.values(this._fieldObjects)) { - for (const field of fields) { - if (fieldIds.has(field.id) === include) { - allFields.push(field); - } - } - } - } else { - for (const fields of Object.values(this._fieldObjects)) { - allFields.push(...fields); - } - } - const storage = this.annotationStorage; - const allIds = []; - for (const field of allFields) { - const { - id - } = field; - allIds.push(id); - switch (field.type) { - case "text": { - const value = field.defaultValue || ""; - storage.setValue(id, { - value - }); - break; - } - case "checkbox": - case "radiobutton": { - const value = field.defaultValue === field.exportValues; - storage.setValue(id, { - value - }); - break; - } - case "combobox": - case "listbox": { - const value = field.defaultValue || ""; - storage.setValue(id, { - value - }); - break; - } - default: - continue; - } - const domElement = document.querySelector(`[data-element-id="${id}"]`); - if (!domElement) { - continue; - } else if (!GetElementsByNameSet.has(domElement)) { - (0, _util2.warn)(`_bindResetFormAction - element not allowed: ${id}`); - continue; - } - domElement.dispatchEvent(new Event("resetform")); - } - if (this.enableScripting) { - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id: "app", - ids: allIds, - name: "ResetForm" - } - }); - } - return false; - }; - } - } - _setInternalLink = new WeakSet(); - setInternalLink_fn = function() { - this.container.setAttribute("data-internal-link", ""); - }; - _bindSetOCGState = new WeakSet(); - bindSetOCGState_fn = function(link, action) { - link.href = this.linkService.getAnchorUrl(""); - link.onclick = () => { - this.linkService.executeSetOCGState(action); - return false; - }; - __privateMethod(this, _setInternalLink, setInternalLink_fn).call(this); - }; - class TextAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true - }); - } - render() { - this.container.classList.add("textAnnotation"); - const image = document.createElement("img"); - image.src = this.imageResourcesPath + "annotation-" + this.data.name.toLowerCase() + ".svg"; - image.alt = "[{{type}} Annotation]"; - image.dataset.l10nId = "text_annotation_type"; - image.dataset.l10nArgs = JSON.stringify({ - type: this.data.name - }); - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - this.container.append(image); - return this.container; - } - } - class WidgetAnnotationElement extends AnnotationElement { - render() { - if (this.data.alternativeText) { - this.container.title = this.data.alternativeText; - } - return this.container; - } - showElementAndHideCanvas(element) { - var _a; - if (this.data.hasOwnCanvas) { - if (((_a = element.previousSibling) == null ? void 0 : _a.nodeName) === "CANVAS") { - element.previousSibling.hidden = true; - } - element.hidden = false; - } - } - _getKeyModifier(event) { - const { - isWin, - isMac - } = _util2.FeatureTest.platform; - return isWin && event.ctrlKey || isMac && event.metaKey; - } - _setEventListener(element, elementData, baseName, eventName, valueGetter) { - if (baseName.includes("mouse")) { - element.addEventListener(baseName, (event) => { - var _a; - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id: this.data.id, - name: eventName, - value: valueGetter(event), - shift: event.shiftKey, - modifier: this._getKeyModifier(event) - } - }); - }); - } else { - element.addEventListener(baseName, (event) => { - var _a; - if (baseName === "blur") { - if (!elementData.focused || !event.relatedTarget) { - return; - } - elementData.focused = false; - } else if (baseName === "focus") { - if (elementData.focused) { - return; - } - elementData.focused = true; - } - if (!valueGetter) { - return; - } - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id: this.data.id, - name: eventName, - value: valueGetter(event) - } - }); - }); - } - } - _setEventListeners(element, elementData, names, getter) { - var _a, _b, _c; - for (const [baseName, eventName] of names) { - if (eventName === "Action" || ((_a = this.data.actions) == null ? void 0 : _a[eventName])) { - if (eventName === "Focus" || eventName === "Blur") { - elementData || (elementData = { - focused: false - }); - } - this._setEventListener(element, elementData, baseName, eventName, getter); - if (eventName === "Focus" && !((_b = this.data.actions) == null ? void 0 : _b.Blur)) { - this._setEventListener(element, elementData, "blur", "Blur", null); - } else if (eventName === "Blur" && !((_c = this.data.actions) == null ? void 0 : _c.Focus)) { - this._setEventListener(element, elementData, "focus", "Focus", null); - } - } - } - } - _setBackgroundColor(element) { - const color = this.data.backgroundColor || null; - element.style.backgroundColor = color === null ? "transparent" : _util2.Util.makeHexColor(color[0], color[1], color[2]); - } - _setTextStyle(element) { - const TEXT_ALIGNMENT = ["left", "center", "right"]; - const { - fontColor - } = this.data.defaultAppearanceData; - const fontSize = this.data.defaultAppearanceData.fontSize || DEFAULT_FONT_SIZE; - const style = element.style; - let computedFontSize; - const BORDER_SIZE = 2; - const roundToOneDecimal = (x2) => Math.round(10 * x2) / 10; - if (this.data.multiLine) { - const height = Math.abs(this.data.rect[3] - this.data.rect[1] - BORDER_SIZE); - const numberOfLines = Math.round(height / (_util2.LINE_FACTOR * fontSize)) || 1; - const lineHeight = height / numberOfLines; - computedFontSize = Math.min(fontSize, roundToOneDecimal(lineHeight / _util2.LINE_FACTOR)); - } else { - const height = Math.abs(this.data.rect[3] - this.data.rect[1] - BORDER_SIZE); - computedFontSize = Math.min(fontSize, roundToOneDecimal(height / _util2.LINE_FACTOR)); - } - style.fontSize = `calc(${computedFontSize}px * var(--scale-factor))`; - style.color = _util2.Util.makeHexColor(fontColor[0], fontColor[1], fontColor[2]); - if (this.data.textAlignment !== null) { - style.textAlign = TEXT_ALIGNMENT[this.data.textAlignment]; - } - } - _setRequired(element, isRequired) { - if (isRequired) { - element.setAttribute("required", true); - } else { - element.removeAttribute("required"); - } - element.setAttribute("aria-required", isRequired); - } - } - class TextWidgetAnnotationElement extends WidgetAnnotationElement { - constructor(parameters) { - const isRenderable = parameters.renderForms || !parameters.data.hasAppearance && !!parameters.data.fieldValue; - super(parameters, { - isRenderable - }); - } - setPropertyOnSiblings(base, key, value, keyInStorage) { - const storage = this.annotationStorage; - for (const element of this._getElementsByName(base.name, base.id)) { - if (element.domElement) { - element.domElement[key] = value; - } - storage.setValue(element.id, { - [keyInStorage]: value - }); - } - } - render() { - var _a, _b; - const storage = this.annotationStorage; - const id = this.data.id; - this.container.classList.add("textWidgetAnnotation"); - let element = null; - if (this.renderForms) { - const storedData = storage.getValue(id, { - value: this.data.fieldValue - }); - let textContent = storedData.value || ""; - const maxLen = storage.getValue(id, { - charLimit: this.data.maxLen - }).charLimit; - if (maxLen && textContent.length > maxLen) { - textContent = textContent.slice(0, maxLen); - } - let fieldFormattedValues = storedData.formattedValue || ((_a = this.data.textContent) == null ? void 0 : _a.join("\n")) || null; - if (fieldFormattedValues && this.data.comb) { - fieldFormattedValues = fieldFormattedValues.replaceAll(/\s+/g, ""); - } - const elementData = { - userValue: textContent, - formattedValue: fieldFormattedValues, - lastCommittedValue: null, - commitKey: 1, - focused: false - }; - if (this.data.multiLine) { - element = document.createElement("textarea"); - element.textContent = fieldFormattedValues != null ? fieldFormattedValues : textContent; - if (this.data.doNotScroll) { - element.style.overflowY = "hidden"; - } - } else { - element = document.createElement("input"); - element.type = "text"; - element.setAttribute("value", fieldFormattedValues != null ? fieldFormattedValues : textContent); - if (this.data.doNotScroll) { - element.style.overflowX = "hidden"; - } - } - if (this.data.hasOwnCanvas) { - element.hidden = true; - } - GetElementsByNameSet.add(element); - element.setAttribute("data-element-id", id); - element.disabled = this.data.readOnly; - element.name = this.data.fieldName; - element.tabIndex = DEFAULT_TAB_INDEX; - this._setRequired(element, this.data.required); - if (maxLen) { - element.maxLength = maxLen; - } - element.addEventListener("input", (event) => { - storage.setValue(id, { - value: event.target.value - }); - this.setPropertyOnSiblings(element, "value", event.target.value, "value"); - elementData.formattedValue = null; - }); - element.addEventListener("resetform", (event) => { - var _a2; - const defaultValue = (_a2 = this.data.defaultFieldValue) != null ? _a2 : ""; - element.value = elementData.userValue = defaultValue; - elementData.formattedValue = null; - }); - let blurListener = (event) => { - const { - formattedValue - } = elementData; - if (formattedValue !== null && formattedValue !== void 0) { - event.target.value = formattedValue; - } - event.target.scrollLeft = 0; - }; - if (this.enableScripting && this.hasJSActions) { - element.addEventListener("focus", (event) => { - if (elementData.focused) { - return; - } - const { - target - } = event; - if (elementData.userValue) { - target.value = elementData.userValue; - } - elementData.lastCommittedValue = target.value; - elementData.commitKey = 1; - elementData.focused = true; - }); - element.addEventListener("updatefromsandbox", (jsEvent) => { - this.showElementAndHideCanvas(jsEvent.target); - const actions = { - value(event) { - var _a2; - elementData.userValue = (_a2 = event.detail.value) != null ? _a2 : ""; - storage.setValue(id, { - value: elementData.userValue.toString() - }); - event.target.value = elementData.userValue; - }, - formattedValue(event) { - const { - formattedValue - } = event.detail; - elementData.formattedValue = formattedValue; - if (formattedValue !== null && formattedValue !== void 0 && event.target !== document.activeElement) { - event.target.value = formattedValue; - } - storage.setValue(id, { - formattedValue - }); - }, - selRange(event) { - event.target.setSelectionRange(...event.detail.selRange); - }, - charLimit: (event) => { - var _a2; - const { - charLimit - } = event.detail; - const { - target - } = event; - if (charLimit === 0) { - target.removeAttribute("maxLength"); - return; - } - target.setAttribute("maxLength", charLimit); - let value = elementData.userValue; - if (!value || value.length <= charLimit) { - return; - } - value = value.slice(0, charLimit); - target.value = elementData.userValue = value; - storage.setValue(id, { - value - }); - (_a2 = this.linkService.eventBus) == null ? void 0 : _a2.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id, - name: "Keystroke", - value, - willCommit: true, - commitKey: 1, - selStart: target.selectionStart, - selEnd: target.selectionEnd - } - }); - } - }; - this._dispatchEventFromSandbox(actions, jsEvent); - }); - element.addEventListener("keydown", (event) => { - var _a2; - elementData.commitKey = 1; - let commitKey = -1; - if (event.key === "Escape") { - commitKey = 0; - } else if (event.key === "Enter" && !this.data.multiLine) { - commitKey = 2; - } else if (event.key === "Tab") { - elementData.commitKey = 3; - } - if (commitKey === -1) { - return; - } - const { - value - } = event.target; - if (elementData.lastCommittedValue === value) { - return; - } - elementData.lastCommittedValue = value; - elementData.userValue = value; - (_a2 = this.linkService.eventBus) == null ? void 0 : _a2.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id, - name: "Keystroke", - value, - willCommit: true, - commitKey, - selStart: event.target.selectionStart, - selEnd: event.target.selectionEnd - } - }); - }); - const _blurListener = blurListener; - blurListener = null; - element.addEventListener("blur", (event) => { - var _a2; - if (!elementData.focused || !event.relatedTarget) { - return; - } - elementData.focused = false; - const { - value - } = event.target; - elementData.userValue = value; - if (elementData.lastCommittedValue !== value) { - (_a2 = this.linkService.eventBus) == null ? void 0 : _a2.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id, - name: "Keystroke", - value, - willCommit: true, - commitKey: elementData.commitKey, - selStart: event.target.selectionStart, - selEnd: event.target.selectionEnd - } - }); - } - _blurListener(event); - }); - if ((_b = this.data.actions) == null ? void 0 : _b.Keystroke) { - element.addEventListener("beforeinput", (event) => { - var _a2; - elementData.lastCommittedValue = null; - const { - data, - target - } = event; - const { - value, - selectionStart, - selectionEnd - } = target; - let selStart = selectionStart, selEnd = selectionEnd; - switch (event.inputType) { - case "deleteWordBackward": { - const match = value.substring(0, selectionStart).match(/\w*[^\w]*$/); - if (match) { - selStart -= match[0].length; - } - break; - } - case "deleteWordForward": { - const match = value.substring(selectionStart).match(/^[^\w]*\w*/); - if (match) { - selEnd += match[0].length; - } - break; - } - case "deleteContentBackward": - if (selectionStart === selectionEnd) { - selStart -= 1; - } - break; - case "deleteContentForward": - if (selectionStart === selectionEnd) { - selEnd += 1; - } - break; - } - event.preventDefault(); - (_a2 = this.linkService.eventBus) == null ? void 0 : _a2.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id, - name: "Keystroke", - value, - change: data || "", - willCommit: false, - selStart, - selEnd - } - }); - }); - } - this._setEventListeners(element, elementData, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], (event) => event.target.value); - } - if (blurListener) { - element.addEventListener("blur", blurListener); - } - if (this.data.comb) { - const fieldWidth = this.data.rect[2] - this.data.rect[0]; - const combWidth = fieldWidth / maxLen; - element.classList.add("comb"); - element.style.letterSpacing = `calc(${combWidth}px * var(--scale-factor) - 1ch)`; - } - } else { - element = document.createElement("div"); - element.textContent = this.data.fieldValue; - element.style.verticalAlign = "middle"; - element.style.display = "table-cell"; - } - this._setTextStyle(element); - this._setBackgroundColor(element); - this._setDefaultPropertiesFromJS(element); - this.container.append(element); - return this.container; - } - } - class SignatureWidgetAnnotationElement extends WidgetAnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: !!parameters.data.hasOwnCanvas - }); - } - } - class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: parameters.renderForms - }); - } - render() { - const storage = this.annotationStorage; - const data = this.data; - const id = data.id; - let value = storage.getValue(id, { - value: data.exportValue === data.fieldValue - }).value; - if (typeof value === "string") { - value = value !== "Off"; - storage.setValue(id, { - value - }); - } - this.container.classList.add("buttonWidgetAnnotation", "checkBox"); - const element = document.createElement("input"); - GetElementsByNameSet.add(element); - element.setAttribute("data-element-id", id); - element.disabled = data.readOnly; - this._setRequired(element, this.data.required); - element.type = "checkbox"; - element.name = data.fieldName; - if (value) { - element.setAttribute("checked", true); - } - element.setAttribute("exportValue", data.exportValue); - element.tabIndex = DEFAULT_TAB_INDEX; - element.addEventListener("change", (event) => { - const { - name, - checked - } = event.target; - for (const checkbox of this._getElementsByName(name, id)) { - const curChecked = checked && checkbox.exportValue === data.exportValue; - if (checkbox.domElement) { - checkbox.domElement.checked = curChecked; - } - storage.setValue(checkbox.id, { - value: curChecked - }); - } - storage.setValue(id, { - value: checked - }); - }); - element.addEventListener("resetform", (event) => { - const defaultValue = data.defaultFieldValue || "Off"; - event.target.checked = defaultValue === data.exportValue; - }); - if (this.enableScripting && this.hasJSActions) { - element.addEventListener("updatefromsandbox", (jsEvent) => { - const actions = { - value(event) { - event.target.checked = event.detail.value !== "Off"; - storage.setValue(id, { - value: event.target.checked - }); - } - }; - this._dispatchEventFromSandbox(actions, jsEvent); - }); - this._setEventListeners(element, null, [["change", "Validate"], ["change", "Action"], ["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], (event) => event.target.checked); - } - this._setBackgroundColor(element); - this._setDefaultPropertiesFromJS(element); - this.container.append(element); - return this.container; - } - } - class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: parameters.renderForms - }); - } - render() { - this.container.classList.add("buttonWidgetAnnotation", "radioButton"); - const storage = this.annotationStorage; - const data = this.data; - const id = data.id; - let value = storage.getValue(id, { - value: data.fieldValue === data.buttonValue - }).value; - if (typeof value === "string") { - value = value !== data.buttonValue; - storage.setValue(id, { - value - }); - } - const element = document.createElement("input"); - GetElementsByNameSet.add(element); - element.setAttribute("data-element-id", id); - element.disabled = data.readOnly; - this._setRequired(element, this.data.required); - element.type = "radio"; - element.name = data.fieldName; - if (value) { - element.setAttribute("checked", true); - } - element.tabIndex = DEFAULT_TAB_INDEX; - element.addEventListener("change", (event) => { - const { - name, - checked - } = event.target; - for (const radio of this._getElementsByName(name, id)) { - storage.setValue(radio.id, { - value: false - }); - } - storage.setValue(id, { - value: checked - }); - }); - element.addEventListener("resetform", (event) => { - const defaultValue = data.defaultFieldValue; - event.target.checked = defaultValue !== null && defaultValue !== void 0 && defaultValue === data.buttonValue; - }); - if (this.enableScripting && this.hasJSActions) { - const pdfButtonValue = data.buttonValue; - element.addEventListener("updatefromsandbox", (jsEvent) => { - const actions = { - value: (event) => { - const checked = pdfButtonValue === event.detail.value; - for (const radio of this._getElementsByName(event.target.name)) { - const curChecked = checked && radio.id === id; - if (radio.domElement) { - radio.domElement.checked = curChecked; - } - storage.setValue(radio.id, { - value: curChecked - }); - } - } - }; - this._dispatchEventFromSandbox(actions, jsEvent); - }); - this._setEventListeners(element, null, [["change", "Validate"], ["change", "Action"], ["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], (event) => event.target.checked); - } - this._setBackgroundColor(element); - this._setDefaultPropertiesFromJS(element); - this.container.append(element); - return this.container; - } - } - class PushButtonWidgetAnnotationElement extends LinkAnnotationElement { - constructor(parameters) { - super(parameters, { - ignoreBorder: parameters.data.hasAppearance - }); - } - render() { - const container = super.render(); - container.classList.add("buttonWidgetAnnotation", "pushButton"); - if (this.data.alternativeText) { - container.title = this.data.alternativeText; - } - const linkElement = container.lastChild; - if (this.enableScripting && this.hasJSActions && linkElement) { - this._setDefaultPropertiesFromJS(linkElement); - linkElement.addEventListener("updatefromsandbox", (jsEvent) => { - this._dispatchEventFromSandbox({}, jsEvent); - }); - } - return container; - } - } - class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: parameters.renderForms - }); - } - render() { - this.container.classList.add("choiceWidgetAnnotation"); - const storage = this.annotationStorage; - const id = this.data.id; - const storedData = storage.getValue(id, { - value: this.data.fieldValue - }); - const selectElement = document.createElement("select"); - GetElementsByNameSet.add(selectElement); - selectElement.setAttribute("data-element-id", id); - selectElement.disabled = this.data.readOnly; - this._setRequired(selectElement, this.data.required); - selectElement.name = this.data.fieldName; - selectElement.tabIndex = DEFAULT_TAB_INDEX; - let addAnEmptyEntry = this.data.combo && this.data.options.length > 0; - if (!this.data.combo) { - selectElement.size = this.data.options.length; - if (this.data.multiSelect) { - selectElement.multiple = true; - } - } - selectElement.addEventListener("resetform", (event) => { - const defaultValue = this.data.defaultFieldValue; - for (const option of selectElement.options) { - option.selected = option.value === defaultValue; - } - }); - for (const option of this.data.options) { - const optionElement = document.createElement("option"); - optionElement.textContent = option.displayValue; - optionElement.value = option.exportValue; - if (storedData.value.includes(option.exportValue)) { - optionElement.setAttribute("selected", true); - addAnEmptyEntry = false; - } - selectElement.append(optionElement); - } - let removeEmptyEntry = null; - if (addAnEmptyEntry) { - const noneOptionElement = document.createElement("option"); - noneOptionElement.value = " "; - noneOptionElement.setAttribute("hidden", true); - noneOptionElement.setAttribute("selected", true); - selectElement.prepend(noneOptionElement); - removeEmptyEntry = () => { - noneOptionElement.remove(); - selectElement.removeEventListener("input", removeEmptyEntry); - removeEmptyEntry = null; - }; - selectElement.addEventListener("input", removeEmptyEntry); - } - const getValue = (isExport) => { - const name = isExport ? "value" : "textContent"; - const { - options, - multiple - } = selectElement; - if (!multiple) { - return options.selectedIndex === -1 ? null : options[options.selectedIndex][name]; - } - return Array.prototype.filter.call(options, (option) => option.selected).map((option) => option[name]); - }; - let selectedValues = getValue(false); - const getItems = (event) => { - const options = event.target.options; - return Array.prototype.map.call(options, (option) => { - return { - displayValue: option.textContent, - exportValue: option.value - }; - }); - }; - if (this.enableScripting && this.hasJSActions) { - selectElement.addEventListener("updatefromsandbox", (jsEvent) => { - const actions = { - value(event) { - removeEmptyEntry == null ? void 0 : removeEmptyEntry(); - const value = event.detail.value; - const values = new Set(Array.isArray(value) ? value : [value]); - for (const option of selectElement.options) { - option.selected = values.has(option.value); - } - storage.setValue(id, { - value: getValue(true) - }); - selectedValues = getValue(false); - }, - multipleSelection(event) { - selectElement.multiple = true; - }, - remove(event) { - const options = selectElement.options; - const index = event.detail.remove; - options[index].selected = false; - selectElement.remove(index); - if (options.length > 0) { - const i2 = Array.prototype.findIndex.call(options, (option) => option.selected); - if (i2 === -1) { - options[0].selected = true; - } - } - storage.setValue(id, { - value: getValue(true), - items: getItems(event) - }); - selectedValues = getValue(false); - }, - clear(event) { - while (selectElement.length !== 0) { - selectElement.remove(0); - } - storage.setValue(id, { - value: null, - items: [] - }); - selectedValues = getValue(false); - }, - insert(event) { - const { - index, - displayValue, - exportValue - } = event.detail.insert; - const selectChild = selectElement.children[index]; - const optionElement = document.createElement("option"); - optionElement.textContent = displayValue; - optionElement.value = exportValue; - if (selectChild) { - selectChild.before(optionElement); - } else { - selectElement.append(optionElement); - } - storage.setValue(id, { - value: getValue(true), - items: getItems(event) - }); - selectedValues = getValue(false); - }, - items(event) { - const { - items - } = event.detail; - while (selectElement.length !== 0) { - selectElement.remove(0); - } - for (const item of items) { - const { - displayValue, - exportValue - } = item; - const optionElement = document.createElement("option"); - optionElement.textContent = displayValue; - optionElement.value = exportValue; - selectElement.append(optionElement); - } - if (selectElement.options.length > 0) { - selectElement.options[0].selected = true; - } - storage.setValue(id, { - value: getValue(true), - items: getItems(event) - }); - selectedValues = getValue(false); - }, - indices(event) { - const indices = new Set(event.detail.indices); - for (const option of event.target.options) { - option.selected = indices.has(option.index); - } - storage.setValue(id, { - value: getValue(true) - }); - selectedValues = getValue(false); - }, - editable(event) { - event.target.disabled = !event.detail.editable; - } - }; - this._dispatchEventFromSandbox(actions, jsEvent); - }); - selectElement.addEventListener("input", (event) => { - var _a; - const exportValue = getValue(true); - storage.setValue(id, { - value: exportValue - }); - event.preventDefault(); - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("dispatcheventinsandbox", { - source: this, - detail: { - id, - name: "Keystroke", - value: selectedValues, - changeEx: exportValue, - willCommit: false, - commitKey: 1, - keyDown: false - } - }); - }); - this._setEventListeners(selectElement, null, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"], ["input", "Action"], ["input", "Validate"]], (event) => event.target.value); - } else { - selectElement.addEventListener("input", function(event) { - storage.setValue(id, { - value: getValue(true) - }); - }); - } - if (this.data.combo) { - this._setTextStyle(selectElement); - } else { - } - this._setBackgroundColor(selectElement); - this._setDefaultPropertiesFromJS(selectElement); - this.container.append(selectElement); - return this.container; - } - } - class PopupAnnotationElement extends AnnotationElement { - constructor(parameters) { - const { - data, - elements - } = parameters; - super(parameters, { - isRenderable: AnnotationElement._hasPopupData(data) - }); - this.elements = elements; - } - render() { - this.container.classList.add("popupAnnotation"); - const popup = new PopupElement({ - container: this.container, - color: this.data.color, - titleObj: this.data.titleObj, - modificationDate: this.data.modificationDate, - contentsObj: this.data.contentsObj, - richText: this.data.richText, - rect: this.data.rect, - parentRect: this.data.parentRect || null, - parent: this.parent, - elements: this.elements, - open: this.data.open - }); - const elementIds = []; - for (const element of this.elements) { - element.popup = popup; - elementIds.push(element.data.id); - element.addHighlightArea(); - } - this.container.setAttribute("aria-controls", elementIds.map((id) => `${_util2.AnnotationPrefix}${id}`).join(",")); - return this.container; - } - } - class PopupElement { - constructor({ - container, - color, - elements, - titleObj, - modificationDate, - contentsObj, - richText, - parent, - rect, - parentRect, - open - }) { - __privateAdd(this, _keyDown); - __privateAdd(this, _toggle); - __privateAdd(this, _show); - __privateAdd(this, _hide); - __privateAdd(this, _dateTimePromise, null); - __privateAdd(this, _boundKeyDown, __privateMethod(this, _keyDown, keyDown_fn).bind(this)); - __privateAdd(this, _boundHide, __privateMethod(this, _hide, hide_fn).bind(this)); - __privateAdd(this, _boundShow, __privateMethod(this, _show, show_fn).bind(this)); - __privateAdd(this, _boundToggle, __privateMethod(this, _toggle, toggle_fn).bind(this)); - __privateAdd(this, _color, null); - __privateAdd(this, _container, null); - __privateAdd(this, _contentsObj, null); - __privateAdd(this, _elements, null); - __privateAdd(this, _parent, null); - __privateAdd(this, _parentRect, null); - __privateAdd(this, _pinned, false); - __privateAdd(this, _popup, null); - __privateAdd(this, _rect, null); - __privateAdd(this, _richText, null); - __privateAdd(this, _titleObj, null); - __privateAdd(this, _wasVisible, false); - var _a; - __privateSet(this, _container, container); - __privateSet(this, _titleObj, titleObj); - __privateSet(this, _contentsObj, contentsObj); - __privateSet(this, _richText, richText); - __privateSet(this, _parent, parent); - __privateSet(this, _color, color); - __privateSet(this, _rect, rect); - __privateSet(this, _parentRect, parentRect); - __privateSet(this, _elements, elements); - const dateObject = _display_utils2.PDFDateString.toDateObject(modificationDate); - if (dateObject) { - __privateSet(this, _dateTimePromise, parent.l10n.get("annotation_date_string", { - date: dateObject.toLocaleDateString(), - time: dateObject.toLocaleTimeString() - })); - } - this.trigger = elements.flatMap((e2) => e2.getElementsToTriggerPopup()); - for (const element of this.trigger) { - element.addEventListener("click", __privateGet(this, _boundToggle)); - element.addEventListener("mouseenter", __privateGet(this, _boundShow)); - element.addEventListener("mouseleave", __privateGet(this, _boundHide)); - element.classList.add("popupTriggerArea"); - } - for (const element of elements) { - (_a = element.container) == null ? void 0 : _a.addEventListener("keydown", __privateGet(this, _boundKeyDown)); - } - __privateGet(this, _container).hidden = true; - if (open) { - __privateMethod(this, _toggle, toggle_fn).call(this); - } - } - render() { - if (__privateGet(this, _popup)) { - return; - } - const { - page: { - view - }, - viewport: { - rawDims: { - pageWidth, - pageHeight, - pageX, - pageY - } - } - } = __privateGet(this, _parent); - const popup = __privateSet(this, _popup, document.createElement("div")); - popup.className = "popup"; - if (__privateGet(this, _color)) { - const baseColor = popup.style.outlineColor = _util2.Util.makeHexColor(...__privateGet(this, _color)); - if (CSS.supports("background-color", "color-mix(in srgb, red 30%, white)")) { - popup.style.backgroundColor = `color-mix(in srgb, ${baseColor} 30%, white)`; - } else { - const BACKGROUND_ENLIGHT = 0.7; - popup.style.backgroundColor = _util2.Util.makeHexColor(...__privateGet(this, _color).map((c2) => Math.floor(BACKGROUND_ENLIGHT * (255 - c2) + c2))); - } - } - const header = document.createElement("span"); - header.className = "header"; - const title = document.createElement("h1"); - header.append(title); - ({ - dir: title.dir, - str: title.textContent - } = __privateGet(this, _titleObj)); - popup.append(header); - if (__privateGet(this, _dateTimePromise)) { - const modificationDate = document.createElement("span"); - modificationDate.classList.add("popupDate"); - __privateGet(this, _dateTimePromise).then((localized) => { - modificationDate.textContent = localized; - }); - header.append(modificationDate); - } - const contentsObj = __privateGet(this, _contentsObj); - const richText = __privateGet(this, _richText); - if ((richText == null ? void 0 : richText.str) && (!(contentsObj == null ? void 0 : contentsObj.str) || contentsObj.str === richText.str)) { - _xfa_layer.XfaLayer.render({ - xfaHtml: richText.html, - intent: "richText", - div: popup - }); - popup.lastChild.classList.add("richText", "popupContent"); - } else { - const contents = this._formatContents(contentsObj); - popup.append(contents); - } - let useParentRect = !!__privateGet(this, _parentRect); - let rect = useParentRect ? __privateGet(this, _parentRect) : __privateGet(this, _rect); - for (const element of __privateGet(this, _elements)) { - if (!rect || _util2.Util.intersect(element.data.rect, rect) !== null) { - rect = element.data.rect; - useParentRect = true; - break; - } - } - const normalizedRect = _util2.Util.normalizeRect([rect[0], view[3] - rect[1] + view[1], rect[2], view[3] - rect[3] + view[1]]); - const HORIZONTAL_SPACE_AFTER_ANNOTATION = 5; - const parentWidth = useParentRect ? rect[2] - rect[0] + HORIZONTAL_SPACE_AFTER_ANNOTATION : 0; - const popupLeft = normalizedRect[0] + parentWidth; - const popupTop = normalizedRect[1]; - const { - style - } = __privateGet(this, _container); - style.left = `${100 * (popupLeft - pageX) / pageWidth}%`; - style.top = `${100 * (popupTop - pageY) / pageHeight}%`; - __privateGet(this, _container).append(popup); - } - _formatContents({ - str, - dir - }) { - const p2 = document.createElement("p"); - p2.classList.add("popupContent"); - p2.dir = dir; - const lines = str.split(/(?:\r\n?|\n)/); - for (let i2 = 0, ii2 = lines.length; i2 < ii2; ++i2) { - const line = lines[i2]; - p2.append(document.createTextNode(line)); - if (i2 < ii2 - 1) { - p2.append(document.createElement("br")); - } - } - return p2; - } - forceHide() { - __privateSet(this, _wasVisible, this.isVisible); - if (!__privateGet(this, _wasVisible)) { - return; - } - __privateGet(this, _container).hidden = true; - } - maybeShow() { - if (!__privateGet(this, _wasVisible)) { - return; - } - __privateSet(this, _wasVisible, false); - __privateGet(this, _container).hidden = false; - } - get isVisible() { - return __privateGet(this, _container).hidden === false; - } - } - _dateTimePromise = new WeakMap(); - _boundKeyDown = new WeakMap(); - _boundHide = new WeakMap(); - _boundShow = new WeakMap(); - _boundToggle = new WeakMap(); - _color = new WeakMap(); - _container = new WeakMap(); - _contentsObj = new WeakMap(); - _elements = new WeakMap(); - _parent = new WeakMap(); - _parentRect = new WeakMap(); - _pinned = new WeakMap(); - _popup = new WeakMap(); - _rect = new WeakMap(); - _richText = new WeakMap(); - _titleObj = new WeakMap(); - _wasVisible = new WeakMap(); - _keyDown = new WeakSet(); - keyDown_fn = function(event) { - if (event.altKey || event.shiftKey || event.ctrlKey || event.metaKey) { - return; - } - if (event.key === "Enter" || event.key === "Escape" && __privateGet(this, _pinned)) { - __privateMethod(this, _toggle, toggle_fn).call(this); - } - }; - _toggle = new WeakSet(); - toggle_fn = function() { - __privateSet(this, _pinned, !__privateGet(this, _pinned)); - if (__privateGet(this, _pinned)) { - __privateMethod(this, _show, show_fn).call(this); - __privateGet(this, _container).addEventListener("click", __privateGet(this, _boundToggle)); - __privateGet(this, _container).addEventListener("keydown", __privateGet(this, _boundKeyDown)); - } else { - __privateMethod(this, _hide, hide_fn).call(this); - __privateGet(this, _container).removeEventListener("click", __privateGet(this, _boundToggle)); - __privateGet(this, _container).removeEventListener("keydown", __privateGet(this, _boundKeyDown)); - } - }; - _show = new WeakSet(); - show_fn = function() { - if (!__privateGet(this, _popup)) { - this.render(); - } - if (!this.isVisible) { - __privateGet(this, _container).hidden = false; - __privateGet(this, _container).style.zIndex = parseInt(__privateGet(this, _container).style.zIndex) + 1e3; - } else if (__privateGet(this, _pinned)) { - __privateGet(this, _container).classList.add("focused"); - } - }; - _hide = new WeakSet(); - hide_fn = function() { - __privateGet(this, _container).classList.remove("focused"); - if (__privateGet(this, _pinned) || !this.isVisible) { - return; - } - __privateGet(this, _container).hidden = true; - __privateGet(this, _container).style.zIndex = parseInt(__privateGet(this, _container).style.zIndex) - 1e3; - }; - class FreeTextAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - this.textContent = parameters.data.textContent; - this.textPosition = parameters.data.textPosition; - this.annotationEditorType = _util2.AnnotationEditorType.FREETEXT; - } - render() { - this.container.classList.add("freeTextAnnotation"); - if (this.textContent) { - const content = document.createElement("div"); - content.classList.add("annotationTextContent"); - content.setAttribute("role", "comment"); - for (const line of this.textContent) { - const lineSpan = document.createElement("span"); - lineSpan.textContent = line; - content.append(lineSpan); - } - this.container.append(content); - } - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - this._editOnDoubleClick(); - return this.container; - } - } - exports2.FreeTextAnnotationElement = FreeTextAnnotationElement; - class LineAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - __privateAdd(this, _line, null); - } - render() { - this.container.classList.add("lineAnnotation"); - const data = this.data; - const { - width, - height - } = getRectDims(data.rect); - const svg = this.svgFactory.create(width, height, true); - const line = __privateSet(this, _line, this.svgFactory.createElement("svg:line")); - line.setAttribute("x1", data.rect[2] - data.lineCoordinates[0]); - line.setAttribute("y1", data.rect[3] - data.lineCoordinates[1]); - line.setAttribute("x2", data.rect[2] - data.lineCoordinates[2]); - line.setAttribute("y2", data.rect[3] - data.lineCoordinates[3]); - line.setAttribute("stroke-width", data.borderStyle.width || 1); - line.setAttribute("stroke", "transparent"); - line.setAttribute("fill", "transparent"); - svg.append(line); - this.container.append(svg); - if (!data.popupRef && this.hasPopupData) { - this._createPopup(); - } - return this.container; - } - getElementsToTriggerPopup() { - return __privateGet(this, _line); - } - addHighlightArea() { - this.container.classList.add("highlightArea"); - } - } - _line = new WeakMap(); - class SquareAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - __privateAdd(this, _square, null); - } - render() { - this.container.classList.add("squareAnnotation"); - const data = this.data; - const { - width, - height - } = getRectDims(data.rect); - const svg = this.svgFactory.create(width, height, true); - const borderWidth = data.borderStyle.width; - const square = __privateSet(this, _square, this.svgFactory.createElement("svg:rect")); - square.setAttribute("x", borderWidth / 2); - square.setAttribute("y", borderWidth / 2); - square.setAttribute("width", width - borderWidth); - square.setAttribute("height", height - borderWidth); - square.setAttribute("stroke-width", borderWidth || 1); - square.setAttribute("stroke", "transparent"); - square.setAttribute("fill", "transparent"); - svg.append(square); - this.container.append(svg); - if (!data.popupRef && this.hasPopupData) { - this._createPopup(); - } - return this.container; - } - getElementsToTriggerPopup() { - return __privateGet(this, _square); - } - addHighlightArea() { - this.container.classList.add("highlightArea"); - } - } - _square = new WeakMap(); - class CircleAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - __privateAdd(this, _circle, null); - } - render() { - this.container.classList.add("circleAnnotation"); - const data = this.data; - const { - width, - height - } = getRectDims(data.rect); - const svg = this.svgFactory.create(width, height, true); - const borderWidth = data.borderStyle.width; - const circle = __privateSet(this, _circle, this.svgFactory.createElement("svg:ellipse")); - circle.setAttribute("cx", width / 2); - circle.setAttribute("cy", height / 2); - circle.setAttribute("rx", width / 2 - borderWidth / 2); - circle.setAttribute("ry", height / 2 - borderWidth / 2); - circle.setAttribute("stroke-width", borderWidth || 1); - circle.setAttribute("stroke", "transparent"); - circle.setAttribute("fill", "transparent"); - svg.append(circle); - this.container.append(svg); - if (!data.popupRef && this.hasPopupData) { - this._createPopup(); - } - return this.container; - } - getElementsToTriggerPopup() { - return __privateGet(this, _circle); - } - addHighlightArea() { - this.container.classList.add("highlightArea"); - } - } - _circle = new WeakMap(); - class PolylineAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - __privateAdd(this, _polyline, null); - this.containerClassName = "polylineAnnotation"; - this.svgElementName = "svg:polyline"; - } - render() { - this.container.classList.add(this.containerClassName); - const data = this.data; - const { - width, - height - } = getRectDims(data.rect); - const svg = this.svgFactory.create(width, height, true); - let points = []; - for (const coordinate of data.vertices) { - const x2 = coordinate.x - data.rect[0]; - const y2 = data.rect[3] - coordinate.y; - points.push(x2 + "," + y2); - } - points = points.join(" "); - const polyline = __privateSet(this, _polyline, this.svgFactory.createElement(this.svgElementName)); - polyline.setAttribute("points", points); - polyline.setAttribute("stroke-width", data.borderStyle.width || 1); - polyline.setAttribute("stroke", "transparent"); - polyline.setAttribute("fill", "transparent"); - svg.append(polyline); - this.container.append(svg); - if (!data.popupRef && this.hasPopupData) { - this._createPopup(); - } - return this.container; - } - getElementsToTriggerPopup() { - return __privateGet(this, _polyline); - } - addHighlightArea() { - this.container.classList.add("highlightArea"); - } - } - _polyline = new WeakMap(); - class PolygonAnnotationElement extends PolylineAnnotationElement { - constructor(parameters) { - super(parameters); - this.containerClassName = "polygonAnnotation"; - this.svgElementName = "svg:polygon"; - } - } - class CaretAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - } - render() { - this.container.classList.add("caretAnnotation"); - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - return this.container; - } - } - class InkAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - __privateAdd(this, _polylines, []); - this.containerClassName = "inkAnnotation"; - this.svgElementName = "svg:polyline"; - this.annotationEditorType = _util2.AnnotationEditorType.INK; - } - render() { - this.container.classList.add(this.containerClassName); - const data = this.data; - const { - width, - height - } = getRectDims(data.rect); - const svg = this.svgFactory.create(width, height, true); - for (const inkList of data.inkLists) { - let points = []; - for (const coordinate of inkList) { - const x2 = coordinate.x - data.rect[0]; - const y2 = data.rect[3] - coordinate.y; - points.push(`${x2},${y2}`); - } - points = points.join(" "); - const polyline = this.svgFactory.createElement(this.svgElementName); - __privateGet(this, _polylines).push(polyline); - polyline.setAttribute("points", points); - polyline.setAttribute("stroke-width", data.borderStyle.width || 1); - polyline.setAttribute("stroke", "transparent"); - polyline.setAttribute("fill", "transparent"); - if (!data.popupRef && this.hasPopupData) { - this._createPopup(); - } - svg.append(polyline); - } - this.container.append(svg); - return this.container; - } - getElementsToTriggerPopup() { - return __privateGet(this, _polylines); - } - addHighlightArea() { - this.container.classList.add("highlightArea"); - } - } - _polylines = new WeakMap(); - exports2.InkAnnotationElement = InkAnnotationElement; - class HighlightAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true, - createQuadrilaterals: true - }); - } - render() { - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - this.container.classList.add("highlightAnnotation"); - return this.container; - } - } - class UnderlineAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true, - createQuadrilaterals: true - }); - } - render() { - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - this.container.classList.add("underlineAnnotation"); - return this.container; - } - } - class SquigglyAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true, - createQuadrilaterals: true - }); - } - render() { - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - this.container.classList.add("squigglyAnnotation"); - return this.container; - } - } - class StrikeOutAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true, - createQuadrilaterals: true - }); - } - render() { - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - this.container.classList.add("strikeoutAnnotation"); - return this.container; - } - } - class StampAnnotationElement extends AnnotationElement { - constructor(parameters) { - super(parameters, { - isRenderable: true, - ignoreBorder: true - }); - } - render() { - this.container.classList.add("stampAnnotation"); - if (!this.data.popupRef && this.hasPopupData) { - this._createPopup(); - } - return this.container; - } - } - exports2.StampAnnotationElement = StampAnnotationElement; - class FileAttachmentAnnotationElement extends AnnotationElement { - constructor(parameters) { - var _a; - super(parameters, { - isRenderable: true - }); - __privateAdd(this, _download); - __privateAdd(this, _trigger, null); - const { - filename, - content - } = this.data.file; - this.filename = (0, _display_utils2.getFilenameFromUrl)(filename, true); - this.content = content; - (_a = this.linkService.eventBus) == null ? void 0 : _a.dispatch("fileattachmentannotation", { - source: this, - filename, - content - }); - } - render() { - this.container.classList.add("fileAttachmentAnnotation"); - const { - container, - data - } = this; - let trigger; - if (data.hasAppearance || data.fillAlpha === 0) { - trigger = document.createElement("div"); - } else { - trigger = document.createElement("img"); - trigger.src = `${this.imageResourcesPath}annotation-${/paperclip/i.test(data.name) ? "paperclip" : "pushpin"}.svg`; - if (data.fillAlpha && data.fillAlpha < 1) { - trigger.style = `filter: opacity(${Math.round(data.fillAlpha * 100)}%);`; - } - } - trigger.addEventListener("dblclick", __privateMethod(this, _download, download_fn).bind(this)); - __privateSet(this, _trigger, trigger); - const { - isMac - } = _util2.FeatureTest.platform; - container.addEventListener("keydown", (evt) => { - if (evt.key === "Enter" && (isMac ? evt.metaKey : evt.ctrlKey)) { - __privateMethod(this, _download, download_fn).call(this); - } - }); - if (!data.popupRef && this.hasPopupData) { - this._createPopup(); - } else { - trigger.classList.add("popupTriggerArea"); - } - container.append(trigger); - return container; - } - getElementsToTriggerPopup() { - return __privateGet(this, _trigger); - } - addHighlightArea() { - this.container.classList.add("highlightArea"); - } - } - _trigger = new WeakMap(); - _download = new WeakSet(); - download_fn = function() { - var _a; - (_a = this.downloadManager) == null ? void 0 : _a.openOrDownloadData(this.container, this.content, this.filename); - }; - class AnnotationLayer { - constructor({ - div, - accessibilityManager, - annotationCanvasMap, - l10n, - page, - viewport - }) { - __privateAdd(this, _appendElement); - __privateAdd(this, _setAnnotationCanvasMap); - __privateAdd(this, _accessibilityManager, null); - __privateAdd(this, _annotationCanvasMap, null); - __privateAdd(this, _editableAnnotations, /* @__PURE__ */ new Map()); - this.div = div; - __privateSet(this, _accessibilityManager, accessibilityManager); - __privateSet(this, _annotationCanvasMap, annotationCanvasMap); - this.l10n = l10n; - this.page = page; - this.viewport = viewport; - this.zIndex = 0; - this.l10n || (this.l10n = _displayL10n_utils.NullL10n); - } - async render(params) { - const { - annotations - } = params; - const layer = this.div; - (0, _display_utils2.setLayerDimensions)(layer, this.viewport); - const popupToElements = /* @__PURE__ */ new Map(); - const elementParams = { - data: null, - layer, - linkService: params.linkService, - downloadManager: params.downloadManager, - imageResourcesPath: params.imageResourcesPath || "", - renderForms: params.renderForms !== false, - svgFactory: new _display_utils2.DOMSVGFactory(), - annotationStorage: params.annotationStorage || new _annotation_storage2.AnnotationStorage(), - enableScripting: params.enableScripting === true, - hasJSActions: params.hasJSActions, - fieldObjects: params.fieldObjects, - parent: this, - elements: null - }; - for (const data of annotations) { - if (data.noHTML) { - continue; - } - const isPopupAnnotation = data.annotationType === _util2.AnnotationType.POPUP; - if (!isPopupAnnotation) { - const { - width, - height - } = getRectDims(data.rect); - if (width <= 0 || height <= 0) { - continue; - } - } else { - const elements = popupToElements.get(data.id); - if (!elements) { - continue; - } - elementParams.elements = elements; - } - elementParams.data = data; - const element = AnnotationElementFactory.create(elementParams); - if (!element.isRenderable) { - continue; - } - if (!isPopupAnnotation && data.popupRef) { - const elements = popupToElements.get(data.popupRef); - if (!elements) { - popupToElements.set(data.popupRef, [element]); - } else { - elements.push(element); - } - } - if (element.annotationEditorType > 0) { - __privateGet(this, _editableAnnotations).set(element.data.id, element); - } - const rendered = element.render(); - if (data.hidden) { - rendered.style.visibility = "hidden"; - } - __privateMethod(this, _appendElement, appendElement_fn).call(this, rendered, data.id); - } - __privateMethod(this, _setAnnotationCanvasMap, setAnnotationCanvasMap_fn).call(this); - await this.l10n.translate(layer); - } - update({ - viewport - }) { - const layer = this.div; - this.viewport = viewport; - (0, _display_utils2.setLayerDimensions)(layer, { - rotation: viewport.rotation - }); - __privateMethod(this, _setAnnotationCanvasMap, setAnnotationCanvasMap_fn).call(this); - layer.hidden = false; - } - getEditableAnnotations() { - return Array.from(__privateGet(this, _editableAnnotations).values()); - } - getEditableAnnotation(id) { - return __privateGet(this, _editableAnnotations).get(id); - } - } - _accessibilityManager = new WeakMap(); - _annotationCanvasMap = new WeakMap(); - _editableAnnotations = new WeakMap(); - _appendElement = new WeakSet(); - appendElement_fn = function(element, id) { - var _a; - const contentElement = element.firstChild || element; - contentElement.id = `${_util2.AnnotationPrefix}${id}`; - this.div.append(element); - (_a = __privateGet(this, _accessibilityManager)) == null ? void 0 : _a.moveElementInDOM(this.div, element, contentElement, false); - }; - _setAnnotationCanvasMap = new WeakSet(); - setAnnotationCanvasMap_fn = function() { - if (!__privateGet(this, _annotationCanvasMap)) { - return; - } - const layer = this.div; - for (const [id, canvas] of __privateGet(this, _annotationCanvasMap)) { - const element = layer.querySelector(`[data-annotation-id="${id}"]`); - if (!element) { - continue; - } - const { - firstChild - } = element; - if (!firstChild) { - element.append(canvas); - } else if (firstChild.nodeName === "CANVAS") { - firstChild.replaceWith(canvas); - } else { - firstChild.before(canvas); - } - } - __privateGet(this, _annotationCanvasMap).clear(); - }; - exports2.AnnotationLayer = AnnotationLayer; - }, - /* 30 */ - /***/ - (__unused_webpack_module2, exports2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.ColorConverters = void 0; - function makeColorComp(n2) { - return Math.floor(Math.max(0, Math.min(1, n2)) * 255).toString(16).padStart(2, "0"); - } - function scaleAndClamp(x2) { - return Math.max(0, Math.min(255, 255 * x2)); - } - class ColorConverters { - static CMYK_G([c2, y2, m2, k2]) { - return ["G", 1 - Math.min(1, 0.3 * c2 + 0.59 * m2 + 0.11 * y2 + k2)]; - } - static G_CMYK([g2]) { - return ["CMYK", 0, 0, 0, 1 - g2]; - } - static G_RGB([g2]) { - return ["RGB", g2, g2, g2]; - } - static G_rgb([g2]) { - g2 = scaleAndClamp(g2); - return [g2, g2, g2]; - } - static G_HTML([g2]) { - const G2 = makeColorComp(g2); - return `#${G2}${G2}${G2}`; - } - static RGB_G([r2, g2, b2]) { - return ["G", 0.3 * r2 + 0.59 * g2 + 0.11 * b2]; - } - static RGB_rgb(color) { - return color.map(scaleAndClamp); - } - static RGB_HTML(color) { - return `#${color.map(makeColorComp).join("")}`; - } - static T_HTML() { - return "#00000000"; - } - static T_rgb() { - return [null]; - } - static CMYK_RGB([c2, y2, m2, k2]) { - return ["RGB", 1 - Math.min(1, c2 + k2), 1 - Math.min(1, m2 + k2), 1 - Math.min(1, y2 + k2)]; - } - static CMYK_rgb([c2, y2, m2, k2]) { - return [scaleAndClamp(1 - Math.min(1, c2 + k2)), scaleAndClamp(1 - Math.min(1, m2 + k2)), scaleAndClamp(1 - Math.min(1, y2 + k2))]; - } - static CMYK_HTML(components) { - const rgb = this.CMYK_RGB(components).slice(1); - return this.RGB_HTML(rgb); - } - static RGB_CMYK([r2, g2, b2]) { - const c2 = 1 - r2; - const m2 = 1 - g2; - const y2 = 1 - b2; - const k2 = Math.min(c2, m2, y2); - return ["CMYK", c2, m2, y2, k2]; - } - } - exports2.ColorConverters = ColorConverters; - }, - /* 31 */ - /***/ - (__unused_webpack_module2, exports2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.NullL10n = void 0; - exports2.getL10nFallback = getL10nFallback; - const DEFAULT_L10N_STRINGS = { - of_pages: "of {{pagesCount}}", - page_of_pages: "({{pageNumber}} of {{pagesCount}})", - document_properties_kb: "{{size_kb}} KB ({{size_b}} bytes)", - document_properties_mb: "{{size_mb}} MB ({{size_b}} bytes)", - document_properties_date_string: "{{date}}, {{time}}", - document_properties_page_size_unit_inches: "in", - document_properties_page_size_unit_millimeters: "mm", - document_properties_page_size_orientation_portrait: "portrait", - document_properties_page_size_orientation_landscape: "landscape", - document_properties_page_size_name_a3: "A3", - document_properties_page_size_name_a4: "A4", - document_properties_page_size_name_letter: "Letter", - document_properties_page_size_name_legal: "Legal", - document_properties_page_size_dimension_string: "{{width}} \xD7 {{height}} {{unit}} ({{orientation}})", - document_properties_page_size_dimension_name_string: "{{width}} \xD7 {{height}} {{unit}} ({{name}}, {{orientation}})", - document_properties_linearized_yes: "Yes", - document_properties_linearized_no: "No", - additional_layers: "Additional Layers", - page_landmark: "Page {{page}}", - thumb_page_title: "Page {{page}}", - thumb_page_canvas: "Thumbnail of Page {{page}}", - find_reached_top: "Reached top of document, continued from bottom", - find_reached_bottom: "Reached end of document, continued from top", - "find_match_count[one]": "{{current}} of {{total}} match", - "find_match_count[other]": "{{current}} of {{total}} matches", - "find_match_count_limit[one]": "More than {{limit}} match", - "find_match_count_limit[other]": "More than {{limit}} matches", - find_not_found: "Phrase not found", - page_scale_width: "Page Width", - page_scale_fit: "Page Fit", - page_scale_auto: "Automatic Zoom", - page_scale_actual: "Actual Size", - page_scale_percent: "{{scale}}%", - loading_error: "An error occurred while loading the PDF.", - invalid_file_error: "Invalid or corrupted PDF file.", - missing_file_error: "Missing PDF file.", - unexpected_response_error: "Unexpected server response.", - rendering_error: "An error occurred while rendering the page.", - annotation_date_string: "{{date}}, {{time}}", - printing_not_supported: "Warning: Printing is not fully supported by this browser.", - printing_not_ready: "Warning: The PDF is not fully loaded for printing.", - web_fonts_disabled: "Web fonts are disabled: unable to use embedded PDF fonts.", - free_text2_default_content: "Start typing\u2026", - editor_free_text2_aria_label: "Text Editor", - editor_ink2_aria_label: "Draw Editor", - editor_ink_canvas_aria_label: "User-created image", - editor_alt_text_button_label: "Alt text", - editor_alt_text_edit_button_label: "Edit alt text", - editor_alt_text_decorative_tooltip: "Marked as decorative" - }; - { - DEFAULT_L10N_STRINGS.print_progress_percent = "{{progress}}%"; - } - function getL10nFallback(key, args) { - switch (key) { - case "find_match_count": - key = `find_match_count[${args.total === 1 ? "one" : "other"}]`; - break; - case "find_match_count_limit": - key = `find_match_count_limit[${args.limit === 1 ? "one" : "other"}]`; - break; - } - return DEFAULT_L10N_STRINGS[key] || ""; - } - function formatL10nValue(text, args) { - if (!args) { - return text; - } - return text.replaceAll(/\{\{\s*(\w+)\s*\}\}/g, (all, name) => { - return name in args ? args[name] : "{{" + name + "}}"; - }); - } - const NullL10n = { - async getLanguage() { - return "en-us"; - }, - async getDirection() { - return "ltr"; - }, - async get(key, args = null, fallback = getL10nFallback(key, args)) { - return formatL10nValue(fallback, args); - }, - async translate(element) { - } - }; - exports2.NullL10n = NullL10n; - }, - /* 32 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.XfaLayer = void 0; - var _xfa_text2 = __w_pdfjs_require__2(25); - class XfaLayer { - static setupStorage(html, id, element, storage, intent) { - const storedData = storage.getValue(id, { - value: null - }); - switch (element.name) { - case "textarea": - if (storedData.value !== null) { - html.textContent = storedData.value; - } - if (intent === "print") { - break; - } - html.addEventListener("input", (event) => { - storage.setValue(id, { - value: event.target.value - }); - }); - break; - case "input": - if (element.attributes.type === "radio" || element.attributes.type === "checkbox") { - if (storedData.value === element.attributes.xfaOn) { - html.setAttribute("checked", true); - } else if (storedData.value === element.attributes.xfaOff) { - html.removeAttribute("checked"); - } - if (intent === "print") { - break; - } - html.addEventListener("change", (event) => { - storage.setValue(id, { - value: event.target.checked ? event.target.getAttribute("xfaOn") : event.target.getAttribute("xfaOff") - }); - }); - } else { - if (storedData.value !== null) { - html.setAttribute("value", storedData.value); - } - if (intent === "print") { - break; - } - html.addEventListener("input", (event) => { - storage.setValue(id, { - value: event.target.value - }); - }); - } - break; - case "select": - if (storedData.value !== null) { - html.setAttribute("value", storedData.value); - for (const option of element.children) { - if (option.attributes.value === storedData.value) { - option.attributes.selected = true; - } else if (option.attributes.hasOwnProperty("selected")) { - delete option.attributes.selected; - } - } - } - html.addEventListener("input", (event) => { - const options = event.target.options; - const value = options.selectedIndex === -1 ? "" : options[options.selectedIndex].value; - storage.setValue(id, { - value - }); - }); - break; - } - } - static setAttributes({ - html, - element, - storage = null, - intent, - linkService - }) { - const { - attributes - } = element; - const isHTMLAnchorElement = html instanceof HTMLAnchorElement; - if (attributes.type === "radio") { - attributes.name = `${attributes.name}-${intent}`; - } - for (const [key, value] of Object.entries(attributes)) { - if (value === null || value === void 0) { - continue; - } - switch (key) { - case "class": - if (value.length) { - html.setAttribute(key, value.join(" ")); - } - break; - case "dataId": - break; - case "id": - html.setAttribute("data-element-id", value); - break; - case "style": - Object.assign(html.style, value); - break; - case "textContent": - html.textContent = value; - break; - default: - if (!isHTMLAnchorElement || key !== "href" && key !== "newWindow") { - html.setAttribute(key, value); - } - } - } - if (isHTMLAnchorElement) { - linkService.addLinkAttributes(html, attributes.href, attributes.newWindow); - } - if (storage && attributes.dataId) { - this.setupStorage(html, attributes.dataId, element, storage); - } - } - static render(parameters) { - var _a; - const storage = parameters.annotationStorage; - const linkService = parameters.linkService; - const root = parameters.xfaHtml; - const intent = parameters.intent || "display"; - const rootHtml = document.createElement(root.name); - if (root.attributes) { - this.setAttributes({ - html: rootHtml, - element: root, - intent, - linkService - }); - } - const stack = [[root, -1, rootHtml]]; - const rootDiv = parameters.div; - rootDiv.append(rootHtml); - if (parameters.viewport) { - const transform = `matrix(${parameters.viewport.transform.join(",")})`; - rootDiv.style.transform = transform; - } - if (intent !== "richText") { - rootDiv.setAttribute("class", "xfaLayer xfaFont"); - } - const textDivs = []; - while (stack.length > 0) { - const [parent, i2, html] = stack.at(-1); - if (i2 + 1 === parent.children.length) { - stack.pop(); - continue; - } - const child = parent.children[++stack.at(-1)[1]]; - if (child === null) { - continue; - } - const { - name - } = child; - if (name === "#text") { - const node = document.createTextNode(child.value); - textDivs.push(node); - html.append(node); - continue; - } - const childHtml = ((_a = child == null ? void 0 : child.attributes) == null ? void 0 : _a.xmlns) ? document.createElementNS(child.attributes.xmlns, name) : document.createElement(name); - html.append(childHtml); - if (child.attributes) { - this.setAttributes({ - html: childHtml, - element: child, - storage, - intent, - linkService - }); - } - if (child.children && child.children.length > 0) { - stack.push([child, -1, childHtml]); - } else if (child.value) { - const node = document.createTextNode(child.value); - if (_xfa_text2.XfaText.shouldBuildText(name)) { - textDivs.push(node); - } - childHtml.append(node); - } - } - for (const el of rootDiv.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea")) { - el.setAttribute("readOnly", true); - } - return { - textDivs - }; - } - static update(parameters) { - const transform = `matrix(${parameters.viewport.transform.join(",")})`; - parameters.div.style.transform = transform; - parameters.div.hidden = false; - } - } - exports2.XfaLayer = XfaLayer; - }, - /* 33 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _baseHeight, _baseWidth, _boundCanvasPointermove, _boundCanvasPointerleave, _boundCanvasPointerup, _boundCanvasPointerdown, _currentPath2D, _disableEditing, _hasSomethingToDraw, _isCanvasInitialized, _observer, _realWidth, _realHeight, _requestFrameCallback, _updateThickness, updateThickness_fn, _updateColor, updateColor_fn, _updateOpacity, updateOpacity_fn, _getInitialBBox, getInitialBBox_fn, _setStroke, setStroke_fn, _startDrawing, startDrawing_fn, _draw, draw_fn, _endPath, endPath_fn, _stopDrawing, stopDrawing_fn, _drawPoints, drawPoints_fn, _makeBezierCurve, makeBezierCurve_fn, _generateBezierPoints, generateBezierPoints_fn, _redraw, redraw_fn, _endDrawing, endDrawing_fn, _createCanvas, createCanvas_fn, _createObserver, createObserver_fn, _setCanvasDims, setCanvasDims_fn, _setScaleFactor, setScaleFactor_fn, _updateTransform, updateTransform_fn, _buildPath2D, buildPath2D_fn, _toPDFCoordinates, toPDFCoordinates_fn, _fromPDFCoordinates, fromPDFCoordinates_fn, _serializePaths, serializePaths_fn, _getBbox, getBbox_fn, _getPadding, getPadding_fn, _fitToContent, fitToContent_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.InkEditor = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _editor = __w_pdfjs_require__2(4); - var _annotation_layer = __w_pdfjs_require__2(29); - var _display_utils2 = __w_pdfjs_require__2(6); - var _tools = __w_pdfjs_require__2(5); - const _InkEditor = class extends _editor.AnnotationEditor { - constructor(params) { - super(__spreadProps(__spreadValues({}, params), { - name: "inkEditor" - })); - __privateAdd(this, _updateThickness); - __privateAdd(this, _updateColor); - __privateAdd(this, _updateOpacity); - __privateAdd(this, _getInitialBBox); - __privateAdd(this, _setStroke); - __privateAdd(this, _startDrawing); - __privateAdd(this, _draw); - __privateAdd(this, _endPath); - __privateAdd(this, _stopDrawing); - __privateAdd(this, _drawPoints); - __privateAdd(this, _makeBezierCurve); - __privateAdd(this, _generateBezierPoints); - __privateAdd(this, _redraw); - __privateAdd(this, _endDrawing); - __privateAdd(this, _createCanvas); - __privateAdd(this, _createObserver); - __privateAdd(this, _setCanvasDims); - __privateAdd(this, _setScaleFactor); - __privateAdd(this, _updateTransform); - __privateAdd(this, _serializePaths); - __privateAdd(this, _getBbox); - __privateAdd(this, _getPadding); - __privateAdd(this, _fitToContent); - __privateAdd(this, _baseHeight, 0); - __privateAdd(this, _baseWidth, 0); - __privateAdd(this, _boundCanvasPointermove, this.canvasPointermove.bind(this)); - __privateAdd(this, _boundCanvasPointerleave, this.canvasPointerleave.bind(this)); - __privateAdd(this, _boundCanvasPointerup, this.canvasPointerup.bind(this)); - __privateAdd(this, _boundCanvasPointerdown, this.canvasPointerdown.bind(this)); - __privateAdd(this, _currentPath2D, new Path2D()); - __privateAdd(this, _disableEditing, false); - __privateAdd(this, _hasSomethingToDraw, false); - __privateAdd(this, _isCanvasInitialized, false); - __privateAdd(this, _observer, null); - __privateAdd(this, _realWidth, 0); - __privateAdd(this, _realHeight, 0); - __privateAdd(this, _requestFrameCallback, null); - this.color = params.color || null; - this.thickness = params.thickness || null; - this.opacity = params.opacity || null; - this.paths = []; - this.bezierPath2D = []; - this.allRawPaths = []; - this.currentPath = []; - this.scaleFactor = 1; - this.translationX = this.translationY = 0; - this.x = 0; - this.y = 0; - this._willKeepAspectRatio = true; - } - static initialize(l10n) { - _editor.AnnotationEditor.initialize(l10n, { - strings: ["editor_ink_canvas_aria_label", "editor_ink2_aria_label"] - }); - } - static updateDefaultParams(type, value) { - switch (type) { - case _util2.AnnotationEditorParamsType.INK_THICKNESS: - _InkEditor._defaultThickness = value; - break; - case _util2.AnnotationEditorParamsType.INK_COLOR: - _InkEditor._defaultColor = value; - break; - case _util2.AnnotationEditorParamsType.INK_OPACITY: - _InkEditor._defaultOpacity = value / 100; - break; - } - } - updateParams(type, value) { - switch (type) { - case _util2.AnnotationEditorParamsType.INK_THICKNESS: - __privateMethod(this, _updateThickness, updateThickness_fn).call(this, value); - break; - case _util2.AnnotationEditorParamsType.INK_COLOR: - __privateMethod(this, _updateColor, updateColor_fn).call(this, value); - break; - case _util2.AnnotationEditorParamsType.INK_OPACITY: - __privateMethod(this, _updateOpacity, updateOpacity_fn).call(this, value); - break; - } - } - static get defaultPropertiesToUpdate() { - return [[_util2.AnnotationEditorParamsType.INK_THICKNESS, _InkEditor._defaultThickness], [_util2.AnnotationEditorParamsType.INK_COLOR, _InkEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor], [_util2.AnnotationEditorParamsType.INK_OPACITY, Math.round(_InkEditor._defaultOpacity * 100)]]; - } - get propertiesToUpdate() { - var _a; - return [[_util2.AnnotationEditorParamsType.INK_THICKNESS, this.thickness || _InkEditor._defaultThickness], [_util2.AnnotationEditorParamsType.INK_COLOR, this.color || _InkEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor], [_util2.AnnotationEditorParamsType.INK_OPACITY, Math.round(100 * ((_a = this.opacity) != null ? _a : _InkEditor._defaultOpacity))]]; - } - rebuild() { - if (!this.parent) { - return; - } - super.rebuild(); - if (this.div === null) { - return; - } - if (!this.canvas) { - __privateMethod(this, _createCanvas, createCanvas_fn).call(this); - __privateMethod(this, _createObserver, createObserver_fn).call(this); - } - if (!this.isAttachedToDOM) { - this.parent.add(this); - __privateMethod(this, _setCanvasDims, setCanvasDims_fn).call(this); - } - __privateMethod(this, _fitToContent, fitToContent_fn).call(this); - } - remove() { - if (this.canvas === null) { - return; - } - if (!this.isEmpty()) { - this.commit(); - } - this.canvas.width = this.canvas.height = 0; - this.canvas.remove(); - this.canvas = null; - __privateGet(this, _observer).disconnect(); - __privateSet(this, _observer, null); - super.remove(); - } - setParent(parent) { - if (!this.parent && parent) { - this._uiManager.removeShouldRescale(this); - } else if (this.parent && parent === null) { - this._uiManager.addShouldRescale(this); - } - super.setParent(parent); - } - onScaleChanging() { - const [parentWidth, parentHeight] = this.parentDimensions; - const width = this.width * parentWidth; - const height = this.height * parentHeight; - this.setDimensions(width, height); - } - enableEditMode() { - if (__privateGet(this, _disableEditing) || this.canvas === null) { - return; - } - super.enableEditMode(); - this._isDraggable = false; - this.canvas.addEventListener("pointerdown", __privateGet(this, _boundCanvasPointerdown)); - } - disableEditMode() { - if (!this.isInEditMode() || this.canvas === null) { - return; - } - super.disableEditMode(); - this._isDraggable = !this.isEmpty(); - this.div.classList.remove("editing"); - this.canvas.removeEventListener("pointerdown", __privateGet(this, _boundCanvasPointerdown)); - } - onceAdded() { - this._isDraggable = !this.isEmpty(); - } - isEmpty() { - return this.paths.length === 0 || this.paths.length === 1 && this.paths[0].length === 0; - } - commit() { - if (__privateGet(this, _disableEditing)) { - return; - } - super.commit(); - this.isEditing = false; - this.disableEditMode(); - this.setInForeground(); - __privateSet(this, _disableEditing, true); - this.div.classList.add("disabled"); - __privateMethod(this, _fitToContent, fitToContent_fn).call(this, true); - this.makeResizable(); - this.parent.addInkEditorIfNeeded(true); - this.moveInDOM(); - this.div.focus({ - preventScroll: true - }); - } - focusin(event) { - if (!this._focusEventsAllowed) { - return; - } - super.focusin(event); - this.enableEditMode(); - } - canvasPointerdown(event) { - if (event.button !== 0 || !this.isInEditMode() || __privateGet(this, _disableEditing)) { - return; - } - this.setInForeground(); - event.preventDefault(); - if (event.type !== "mouse") { - this.div.focus(); - } - __privateMethod(this, _startDrawing, startDrawing_fn).call(this, event.offsetX, event.offsetY); - } - canvasPointermove(event) { - event.preventDefault(); - __privateMethod(this, _draw, draw_fn).call(this, event.offsetX, event.offsetY); - } - canvasPointerup(event) { - event.preventDefault(); - __privateMethod(this, _endDrawing, endDrawing_fn).call(this, event); - } - canvasPointerleave(event) { - __privateMethod(this, _endDrawing, endDrawing_fn).call(this, event); - } - get isResizable() { - return !this.isEmpty() && __privateGet(this, _disableEditing); - } - render() { - if (this.div) { - return this.div; - } - let baseX, baseY; - if (this.width) { - baseX = this.x; - baseY = this.y; - } - super.render(); - _editor.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((msg) => { - var _a; - return (_a = this.div) == null ? void 0 : _a.setAttribute("aria-label", msg); - }); - const [x2, y2, w2, h2] = __privateMethod(this, _getInitialBBox, getInitialBBox_fn).call(this); - this.setAt(x2, y2, 0, 0); - this.setDims(w2, h2); - __privateMethod(this, _createCanvas, createCanvas_fn).call(this); - if (this.width) { - const [parentWidth, parentHeight] = this.parentDimensions; - this.setAspectRatio(this.width * parentWidth, this.height * parentHeight); - this.setAt(baseX * parentWidth, baseY * parentHeight, this.width * parentWidth, this.height * parentHeight); - __privateSet(this, _isCanvasInitialized, true); - __privateMethod(this, _setCanvasDims, setCanvasDims_fn).call(this); - this.setDims(this.width * parentWidth, this.height * parentHeight); - __privateMethod(this, _redraw, redraw_fn).call(this); - this.div.classList.add("disabled"); - } else { - this.div.classList.add("editing"); - this.enableEditMode(); - } - __privateMethod(this, _createObserver, createObserver_fn).call(this); - return this.div; - } - setDimensions(width, height) { - const roundedWidth = Math.round(width); - const roundedHeight = Math.round(height); - if (__privateGet(this, _realWidth) === roundedWidth && __privateGet(this, _realHeight) === roundedHeight) { - return; - } - __privateSet(this, _realWidth, roundedWidth); - __privateSet(this, _realHeight, roundedHeight); - this.canvas.style.visibility = "hidden"; - const [parentWidth, parentHeight] = this.parentDimensions; - this.width = width / parentWidth; - this.height = height / parentHeight; - this.fixAndSetPosition(); - if (__privateGet(this, _disableEditing)) { - __privateMethod(this, _setScaleFactor, setScaleFactor_fn).call(this, width, height); - } - __privateMethod(this, _setCanvasDims, setCanvasDims_fn).call(this); - __privateMethod(this, _redraw, redraw_fn).call(this); - this.canvas.style.visibility = "visible"; - this.fixDims(); - } - static deserialize(data, parent, uiManager) { - var _a, _b, _c; - if (data instanceof _annotation_layer.InkAnnotationElement) { - return null; - } - const editor = super.deserialize(data, parent, uiManager); - editor.thickness = data.thickness; - editor.color = _util2.Util.makeHexColor(...data.color); - editor.opacity = data.opacity; - const [pageWidth, pageHeight] = editor.pageDimensions; - const width = editor.width * pageWidth; - const height = editor.height * pageHeight; - const scaleFactor = editor.parentScale; - const padding = data.thickness / 2; - __privateSet(editor, _disableEditing, true); - __privateSet(editor, _realWidth, Math.round(width)); - __privateSet(editor, _realHeight, Math.round(height)); - const { - paths, - rect, - rotation - } = data; - for (let { - bezier - } of paths) { - bezier = __privateMethod(_a = _InkEditor, _fromPDFCoordinates, fromPDFCoordinates_fn).call(_a, bezier, rect, rotation); - const path = []; - editor.paths.push(path); - let p0 = scaleFactor * (bezier[0] - padding); - let p1 = scaleFactor * (bezier[1] - padding); - for (let i2 = 2, ii2 = bezier.length; i2 < ii2; i2 += 6) { - const p10 = scaleFactor * (bezier[i2] - padding); - const p11 = scaleFactor * (bezier[i2 + 1] - padding); - const p20 = scaleFactor * (bezier[i2 + 2] - padding); - const p21 = scaleFactor * (bezier[i2 + 3] - padding); - const p30 = scaleFactor * (bezier[i2 + 4] - padding); - const p31 = scaleFactor * (bezier[i2 + 5] - padding); - path.push([[p0, p1], [p10, p11], [p20, p21], [p30, p31]]); - p0 = p30; - p1 = p31; - } - const path2D = __privateMethod(this, _buildPath2D, buildPath2D_fn).call(this, path); - editor.bezierPath2D.push(path2D); - } - const bbox = __privateMethod(_b = editor, _getBbox, getBbox_fn).call(_b); - __privateSet(editor, _baseWidth, Math.max(_editor.AnnotationEditor.MIN_SIZE, bbox[2] - bbox[0])); - __privateSet(editor, _baseHeight, Math.max(_editor.AnnotationEditor.MIN_SIZE, bbox[3] - bbox[1])); - __privateMethod(_c = editor, _setScaleFactor, setScaleFactor_fn).call(_c, width, height); - return editor; - } - serialize() { - if (this.isEmpty()) { - return null; - } - const rect = this.getRect(0, 0); - const color = _editor.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle); - return { - annotationType: _util2.AnnotationEditorType.INK, - color, - thickness: this.thickness, - opacity: this.opacity, - paths: __privateMethod(this, _serializePaths, serializePaths_fn).call(this, this.scaleFactor / this.parentScale, this.translationX, this.translationY, rect), - pageIndex: this.pageIndex, - rect, - rotation: this.rotation, - structTreeParentId: this._structTreeParentId - }; - } - }; - let InkEditor = _InkEditor; - _baseHeight = new WeakMap(); - _baseWidth = new WeakMap(); - _boundCanvasPointermove = new WeakMap(); - _boundCanvasPointerleave = new WeakMap(); - _boundCanvasPointerup = new WeakMap(); - _boundCanvasPointerdown = new WeakMap(); - _currentPath2D = new WeakMap(); - _disableEditing = new WeakMap(); - _hasSomethingToDraw = new WeakMap(); - _isCanvasInitialized = new WeakMap(); - _observer = new WeakMap(); - _realWidth = new WeakMap(); - _realHeight = new WeakMap(); - _requestFrameCallback = new WeakMap(); - _updateThickness = new WeakSet(); - updateThickness_fn = function(thickness) { - const savedThickness = this.thickness; - this.addCommands({ - cmd: () => { - this.thickness = thickness; - __privateMethod(this, _fitToContent, fitToContent_fn).call(this); - }, - undo: () => { - this.thickness = savedThickness; - __privateMethod(this, _fitToContent, fitToContent_fn).call(this); - }, - mustExec: true, - type: _util2.AnnotationEditorParamsType.INK_THICKNESS, - overwriteIfSameType: true, - keepUndo: true - }); - }; - _updateColor = new WeakSet(); - updateColor_fn = function(color) { - const savedColor = this.color; - this.addCommands({ - cmd: () => { - this.color = color; - __privateMethod(this, _redraw, redraw_fn).call(this); - }, - undo: () => { - this.color = savedColor; - __privateMethod(this, _redraw, redraw_fn).call(this); - }, - mustExec: true, - type: _util2.AnnotationEditorParamsType.INK_COLOR, - overwriteIfSameType: true, - keepUndo: true - }); - }; - _updateOpacity = new WeakSet(); - updateOpacity_fn = function(opacity) { - opacity /= 100; - const savedOpacity = this.opacity; - this.addCommands({ - cmd: () => { - this.opacity = opacity; - __privateMethod(this, _redraw, redraw_fn).call(this); - }, - undo: () => { - this.opacity = savedOpacity; - __privateMethod(this, _redraw, redraw_fn).call(this); - }, - mustExec: true, - type: _util2.AnnotationEditorParamsType.INK_OPACITY, - overwriteIfSameType: true, - keepUndo: true - }); - }; - _getInitialBBox = new WeakSet(); - getInitialBBox_fn = function() { - const { - parentRotation, - parentDimensions: [width, height] - } = this; - switch (parentRotation) { - case 90: - return [0, height, height, width]; - case 180: - return [width, height, width, height]; - case 270: - return [width, 0, height, width]; - default: - return [0, 0, width, height]; - } - }; - _setStroke = new WeakSet(); - setStroke_fn = function() { - const { - ctx, - color, - opacity, - thickness, - parentScale, - scaleFactor - } = this; - ctx.lineWidth = thickness * parentScale / scaleFactor; - ctx.lineCap = "round"; - ctx.lineJoin = "round"; - ctx.miterLimit = 10; - ctx.strokeStyle = `${color}${(0, _tools.opacityToHex)(opacity)}`; - }; - _startDrawing = new WeakSet(); - startDrawing_fn = function(x2, y2) { - var _a; - this.canvas.addEventListener("contextmenu", _display_utils2.noContextMenu); - this.canvas.addEventListener("pointerleave", __privateGet(this, _boundCanvasPointerleave)); - this.canvas.addEventListener("pointermove", __privateGet(this, _boundCanvasPointermove)); - this.canvas.addEventListener("pointerup", __privateGet(this, _boundCanvasPointerup)); - this.canvas.removeEventListener("pointerdown", __privateGet(this, _boundCanvasPointerdown)); - this.isEditing = true; - if (!__privateGet(this, _isCanvasInitialized)) { - __privateSet(this, _isCanvasInitialized, true); - __privateMethod(this, _setCanvasDims, setCanvasDims_fn).call(this); - this.thickness || (this.thickness = _InkEditor._defaultThickness); - this.color || (this.color = _InkEditor._defaultColor || _editor.AnnotationEditor._defaultLineColor); - (_a = this.opacity) != null ? _a : this.opacity = _InkEditor._defaultOpacity; - } - this.currentPath.push([x2, y2]); - __privateSet(this, _hasSomethingToDraw, false); - __privateMethod(this, _setStroke, setStroke_fn).call(this); - __privateSet(this, _requestFrameCallback, () => { - __privateMethod(this, _drawPoints, drawPoints_fn).call(this); - if (__privateGet(this, _requestFrameCallback)) { - window.requestAnimationFrame(__privateGet(this, _requestFrameCallback)); - } - }); - window.requestAnimationFrame(__privateGet(this, _requestFrameCallback)); - }; - _draw = new WeakSet(); - draw_fn = function(x2, y2) { - const [lastX, lastY] = this.currentPath.at(-1); - if (this.currentPath.length > 1 && x2 === lastX && y2 === lastY) { - return; - } - const currentPath = this.currentPath; - let path2D = __privateGet(this, _currentPath2D); - currentPath.push([x2, y2]); - __privateSet(this, _hasSomethingToDraw, true); - if (currentPath.length <= 2) { - path2D.moveTo(...currentPath[0]); - path2D.lineTo(x2, y2); - return; - } - if (currentPath.length === 3) { - __privateSet(this, _currentPath2D, path2D = new Path2D()); - path2D.moveTo(...currentPath[0]); - } - __privateMethod(this, _makeBezierCurve, makeBezierCurve_fn).call(this, path2D, ...currentPath.at(-3), ...currentPath.at(-2), x2, y2); - }; - _endPath = new WeakSet(); - endPath_fn = function() { - if (this.currentPath.length === 0) { - return; - } - const lastPoint = this.currentPath.at(-1); - __privateGet(this, _currentPath2D).lineTo(...lastPoint); - }; - _stopDrawing = new WeakSet(); - stopDrawing_fn = function(x2, y2) { - __privateSet(this, _requestFrameCallback, null); - x2 = Math.min(Math.max(x2, 0), this.canvas.width); - y2 = Math.min(Math.max(y2, 0), this.canvas.height); - __privateMethod(this, _draw, draw_fn).call(this, x2, y2); - __privateMethod(this, _endPath, endPath_fn).call(this); - let bezier; - if (this.currentPath.length !== 1) { - bezier = __privateMethod(this, _generateBezierPoints, generateBezierPoints_fn).call(this); - } else { - const xy = [x2, y2]; - bezier = [[xy, xy.slice(), xy.slice(), xy]]; - } - const path2D = __privateGet(this, _currentPath2D); - const currentPath = this.currentPath; - this.currentPath = []; - __privateSet(this, _currentPath2D, new Path2D()); - const cmd = () => { - this.allRawPaths.push(currentPath); - this.paths.push(bezier); - this.bezierPath2D.push(path2D); - this.rebuild(); - }; - const undo = () => { - this.allRawPaths.pop(); - this.paths.pop(); - this.bezierPath2D.pop(); - if (this.paths.length === 0) { - this.remove(); - } else { - if (!this.canvas) { - __privateMethod(this, _createCanvas, createCanvas_fn).call(this); - __privateMethod(this, _createObserver, createObserver_fn).call(this); - } - __privateMethod(this, _fitToContent, fitToContent_fn).call(this); - } - }; - this.addCommands({ - cmd, - undo, - mustExec: true - }); - }; - _drawPoints = new WeakSet(); - drawPoints_fn = function() { - if (!__privateGet(this, _hasSomethingToDraw)) { - return; - } - __privateSet(this, _hasSomethingToDraw, false); - const thickness = Math.ceil(this.thickness * this.parentScale); - const lastPoints = this.currentPath.slice(-3); - const x2 = lastPoints.map((xy) => xy[0]); - const y2 = lastPoints.map((xy) => xy[1]); - const xMin = Math.min(...x2) - thickness; - const xMax = Math.max(...x2) + thickness; - const yMin = Math.min(...y2) - thickness; - const yMax = Math.max(...y2) + thickness; - const { - ctx - } = this; - ctx.save(); - ctx.clearRect(0, 0, this.canvas.width, this.canvas.height); - for (const path of this.bezierPath2D) { - ctx.stroke(path); - } - ctx.stroke(__privateGet(this, _currentPath2D)); - ctx.restore(); - }; - _makeBezierCurve = new WeakSet(); - makeBezierCurve_fn = function(path2D, x0, y0, x1, y1, x2, y2) { - const prevX = (x0 + x1) / 2; - const prevY = (y0 + y1) / 2; - const x3 = (x1 + x2) / 2; - const y3 = (y1 + y2) / 2; - path2D.bezierCurveTo(prevX + 2 * (x1 - prevX) / 3, prevY + 2 * (y1 - prevY) / 3, x3 + 2 * (x1 - x3) / 3, y3 + 2 * (y1 - y3) / 3, x3, y3); - }; - _generateBezierPoints = new WeakSet(); - generateBezierPoints_fn = function() { - const path = this.currentPath; - if (path.length <= 2) { - return [[path[0], path[0], path.at(-1), path.at(-1)]]; - } - const bezierPoints = []; - let i2; - let [x0, y0] = path[0]; - for (i2 = 1; i2 < path.length - 2; i2++) { - const [x12, y12] = path[i2]; - const [x22, y22] = path[i2 + 1]; - const x3 = (x12 + x22) / 2; - const y3 = (y12 + y22) / 2; - const control12 = [x0 + 2 * (x12 - x0) / 3, y0 + 2 * (y12 - y0) / 3]; - const control22 = [x3 + 2 * (x12 - x3) / 3, y3 + 2 * (y12 - y3) / 3]; - bezierPoints.push([[x0, y0], control12, control22, [x3, y3]]); - [x0, y0] = [x3, y3]; - } - const [x1, y1] = path[i2]; - const [x2, y2] = path[i2 + 1]; - const control1 = [x0 + 2 * (x1 - x0) / 3, y0 + 2 * (y1 - y0) / 3]; - const control2 = [x2 + 2 * (x1 - x2) / 3, y2 + 2 * (y1 - y2) / 3]; - bezierPoints.push([[x0, y0], control1, control2, [x2, y2]]); - return bezierPoints; - }; - _redraw = new WeakSet(); - redraw_fn = function() { - if (this.isEmpty()) { - __privateMethod(this, _updateTransform, updateTransform_fn).call(this); - return; - } - __privateMethod(this, _setStroke, setStroke_fn).call(this); - const { - canvas, - ctx - } = this; - ctx.setTransform(1, 0, 0, 1, 0, 0); - ctx.clearRect(0, 0, canvas.width, canvas.height); - __privateMethod(this, _updateTransform, updateTransform_fn).call(this); - for (const path of this.bezierPath2D) { - ctx.stroke(path); - } - }; - _endDrawing = new WeakSet(); - endDrawing_fn = function(event) { - this.canvas.removeEventListener("pointerleave", __privateGet(this, _boundCanvasPointerleave)); - this.canvas.removeEventListener("pointermove", __privateGet(this, _boundCanvasPointermove)); - this.canvas.removeEventListener("pointerup", __privateGet(this, _boundCanvasPointerup)); - this.canvas.addEventListener("pointerdown", __privateGet(this, _boundCanvasPointerdown)); - setTimeout(() => { - this.canvas.removeEventListener("contextmenu", _display_utils2.noContextMenu); - }, 10); - __privateMethod(this, _stopDrawing, stopDrawing_fn).call(this, event.offsetX, event.offsetY); - this.addToAnnotationStorage(); - this.setInBackground(); - }; - _createCanvas = new WeakSet(); - createCanvas_fn = function() { - this.canvas = document.createElement("canvas"); - this.canvas.width = this.canvas.height = 0; - this.canvas.className = "inkEditorCanvas"; - _editor.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((msg) => { - var _a; - return (_a = this.canvas) == null ? void 0 : _a.setAttribute("aria-label", msg); - }); - this.div.append(this.canvas); - this.ctx = this.canvas.getContext("2d"); - }; - _createObserver = new WeakSet(); - createObserver_fn = function() { - __privateSet(this, _observer, new ResizeObserver((entries) => { - const rect = entries[0].contentRect; - if (rect.width && rect.height) { - this.setDimensions(rect.width, rect.height); - } - })); - __privateGet(this, _observer).observe(this.div); - }; - _setCanvasDims = new WeakSet(); - setCanvasDims_fn = function() { - if (!__privateGet(this, _isCanvasInitialized)) { - return; - } - const [parentWidth, parentHeight] = this.parentDimensions; - this.canvas.width = Math.ceil(this.width * parentWidth); - this.canvas.height = Math.ceil(this.height * parentHeight); - __privateMethod(this, _updateTransform, updateTransform_fn).call(this); - }; - _setScaleFactor = new WeakSet(); - setScaleFactor_fn = function(width, height) { - const padding = __privateMethod(this, _getPadding, getPadding_fn).call(this); - const scaleFactorW = (width - padding) / __privateGet(this, _baseWidth); - const scaleFactorH = (height - padding) / __privateGet(this, _baseHeight); - this.scaleFactor = Math.min(scaleFactorW, scaleFactorH); - }; - _updateTransform = new WeakSet(); - updateTransform_fn = function() { - const padding = __privateMethod(this, _getPadding, getPadding_fn).call(this) / 2; - this.ctx.setTransform(this.scaleFactor, 0, 0, this.scaleFactor, this.translationX * this.scaleFactor + padding, this.translationY * this.scaleFactor + padding); - }; - _buildPath2D = new WeakSet(); - buildPath2D_fn = function(bezier) { - const path2D = new Path2D(); - for (let i2 = 0, ii2 = bezier.length; i2 < ii2; i2++) { - const [first, control1, control2, second] = bezier[i2]; - if (i2 === 0) { - path2D.moveTo(...first); - } - path2D.bezierCurveTo(control1[0], control1[1], control2[0], control2[1], second[0], second[1]); - } - return path2D; - }; - _toPDFCoordinates = new WeakSet(); - toPDFCoordinates_fn = function(points, rect, rotation) { - const [blX, blY, trX, trY] = rect; - switch (rotation) { - case 0: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - points[i2] += blX; - points[i2 + 1] = trY - points[i2 + 1]; - } - break; - case 90: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - const x2 = points[i2]; - points[i2] = points[i2 + 1] + blX; - points[i2 + 1] = x2 + blY; - } - break; - case 180: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - points[i2] = trX - points[i2]; - points[i2 + 1] += blY; - } - break; - case 270: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - const x2 = points[i2]; - points[i2] = trX - points[i2 + 1]; - points[i2 + 1] = trY - x2; - } - break; - default: - throw new Error("Invalid rotation"); - } - return points; - }; - _fromPDFCoordinates = new WeakSet(); - fromPDFCoordinates_fn = function(points, rect, rotation) { - const [blX, blY, trX, trY] = rect; - switch (rotation) { - case 0: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - points[i2] -= blX; - points[i2 + 1] = trY - points[i2 + 1]; - } - break; - case 90: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - const x2 = points[i2]; - points[i2] = points[i2 + 1] - blY; - points[i2 + 1] = x2 - blX; - } - break; - case 180: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - points[i2] = trX - points[i2]; - points[i2 + 1] -= blY; - } - break; - case 270: - for (let i2 = 0, ii2 = points.length; i2 < ii2; i2 += 2) { - const x2 = points[i2]; - points[i2] = trY - points[i2 + 1]; - points[i2 + 1] = trX - x2; - } - break; - default: - throw new Error("Invalid rotation"); - } - return points; - }; - _serializePaths = new WeakSet(); - serializePaths_fn = function(s2, tx, ty, rect) { - var _a, _b; - const paths = []; - const padding = this.thickness / 2; - const shiftX = s2 * tx + padding; - const shiftY = s2 * ty + padding; - for (const bezier of this.paths) { - const buffer = []; - const points = []; - for (let j2 = 0, jj = bezier.length; j2 < jj; j2++) { - const [first, control1, control2, second] = bezier[j2]; - const p10 = s2 * first[0] + shiftX; - const p11 = s2 * first[1] + shiftY; - const p20 = s2 * control1[0] + shiftX; - const p21 = s2 * control1[1] + shiftY; - const p30 = s2 * control2[0] + shiftX; - const p31 = s2 * control2[1] + shiftY; - const p40 = s2 * second[0] + shiftX; - const p41 = s2 * second[1] + shiftY; - if (j2 === 0) { - buffer.push(p10, p11); - points.push(p10, p11); - } - buffer.push(p20, p21, p30, p31, p40, p41); - points.push(p20, p21); - if (j2 === jj - 1) { - points.push(p40, p41); - } - } - paths.push({ - bezier: __privateMethod(_a = _InkEditor, _toPDFCoordinates, toPDFCoordinates_fn).call(_a, buffer, rect, this.rotation), - points: __privateMethod(_b = _InkEditor, _toPDFCoordinates, toPDFCoordinates_fn).call(_b, points, rect, this.rotation) - }); - } - return paths; - }; - _getBbox = new WeakSet(); - getBbox_fn = function() { - let xMin = Infinity; - let xMax = -Infinity; - let yMin = Infinity; - let yMax = -Infinity; - for (const path of this.paths) { - for (const [first, control1, control2, second] of path) { - const bbox = _util2.Util.bezierBoundingBox(...first, ...control1, ...control2, ...second); - xMin = Math.min(xMin, bbox[0]); - yMin = Math.min(yMin, bbox[1]); - xMax = Math.max(xMax, bbox[2]); - yMax = Math.max(yMax, bbox[3]); - } - } - return [xMin, yMin, xMax, yMax]; - }; - _getPadding = new WeakSet(); - getPadding_fn = function() { - return __privateGet(this, _disableEditing) ? Math.ceil(this.thickness * this.parentScale) : 0; - }; - _fitToContent = new WeakSet(); - fitToContent_fn = function(firstTime = false) { - if (this.isEmpty()) { - return; - } - if (!__privateGet(this, _disableEditing)) { - __privateMethod(this, _redraw, redraw_fn).call(this); - return; - } - const bbox = __privateMethod(this, _getBbox, getBbox_fn).call(this); - const padding = __privateMethod(this, _getPadding, getPadding_fn).call(this); - __privateSet(this, _baseWidth, Math.max(_editor.AnnotationEditor.MIN_SIZE, bbox[2] - bbox[0])); - __privateSet(this, _baseHeight, Math.max(_editor.AnnotationEditor.MIN_SIZE, bbox[3] - bbox[1])); - const width = Math.ceil(padding + __privateGet(this, _baseWidth) * this.scaleFactor); - const height = Math.ceil(padding + __privateGet(this, _baseHeight) * this.scaleFactor); - const [parentWidth, parentHeight] = this.parentDimensions; - this.width = width / parentWidth; - this.height = height / parentHeight; - this.setAspectRatio(width, height); - const prevTranslationX = this.translationX; - const prevTranslationY = this.translationY; - this.translationX = -bbox[0]; - this.translationY = -bbox[1]; - __privateMethod(this, _setCanvasDims, setCanvasDims_fn).call(this); - __privateMethod(this, _redraw, redraw_fn).call(this); - __privateSet(this, _realWidth, width); - __privateSet(this, _realHeight, height); - this.setDims(width, height); - const unscaledPadding = firstTime ? padding / this.scaleFactor / 2 : 0; - this.translate(prevTranslationX - this.translationX - unscaledPadding, prevTranslationY - this.translationY - unscaledPadding); - }; - __privateAdd(InkEditor, _buildPath2D); - __privateAdd(InkEditor, _toPDFCoordinates); - __privateAdd(InkEditor, _fromPDFCoordinates); - __publicField(InkEditor, "_defaultColor", null); - __publicField(InkEditor, "_defaultOpacity", 1); - __publicField(InkEditor, "_defaultThickness", 1); - __publicField(InkEditor, "_type", "ink"); - exports2.InkEditor = InkEditor; - }, - /* 34 */ - /***/ - (__unused_webpack_module2, exports2, __w_pdfjs_require__2) => { - var _bitmap, _bitmapId, _bitmapPromise, _bitmapUrl, _bitmapFile, _canvas2, _observer, _resizeTimeoutId, _isSvg, _hasBeenAddedInUndoStack, _getBitmapFetched, getBitmapFetched_fn, _getBitmapDone, getBitmapDone_fn, _getBitmap, getBitmap_fn, _createCanvas, createCanvas_fn, _setDimensions, setDimensions_fn, _scaleBitmap, scaleBitmap_fn, _drawBitmap, drawBitmap_fn, _serializeBitmap, serializeBitmap_fn, _createObserver, createObserver_fn; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - exports2.StampEditor = void 0; - var _util2 = __w_pdfjs_require__2(1); - var _editor = __w_pdfjs_require__2(4); - var _display_utils2 = __w_pdfjs_require__2(6); - var _annotation_layer = __w_pdfjs_require__2(29); - const _StampEditor = class extends _editor.AnnotationEditor { - constructor(params) { - super(__spreadProps(__spreadValues({}, params), { - name: "stampEditor" - })); - __privateAdd(this, _getBitmapFetched); - __privateAdd(this, _getBitmapDone); - __privateAdd(this, _getBitmap); - __privateAdd(this, _createCanvas); - __privateAdd(this, _setDimensions); - __privateAdd(this, _scaleBitmap); - __privateAdd(this, _drawBitmap); - __privateAdd(this, _serializeBitmap); - __privateAdd(this, _createObserver); - __privateAdd(this, _bitmap, null); - __privateAdd(this, _bitmapId, null); - __privateAdd(this, _bitmapPromise, null); - __privateAdd(this, _bitmapUrl, null); - __privateAdd(this, _bitmapFile, null); - __privateAdd(this, _canvas2, null); - __privateAdd(this, _observer, null); - __privateAdd(this, _resizeTimeoutId, null); - __privateAdd(this, _isSvg, false); - __privateAdd(this, _hasBeenAddedInUndoStack, false); - __privateSet(this, _bitmapUrl, params.bitmapUrl); - __privateSet(this, _bitmapFile, params.bitmapFile); - } - static initialize(l10n) { - _editor.AnnotationEditor.initialize(l10n); - } - static get supportedTypes() { - const types = ["apng", "avif", "bmp", "gif", "jpeg", "png", "svg+xml", "webp", "x-icon"]; - return (0, _util2.shadow)(this, "supportedTypes", types.map((type) => `image/${type}`)); - } - static get supportedTypesStr() { - return (0, _util2.shadow)(this, "supportedTypesStr", this.supportedTypes.join(",")); - } - static isHandlingMimeForPasting(mime) { - return this.supportedTypes.includes(mime); - } - static paste(item, parent) { - parent.pasteEditor(_util2.AnnotationEditorType.STAMP, { - bitmapFile: item.getAsFile() - }); - } - remove() { - var _a, _b; - if (__privateGet(this, _bitmapId)) { - __privateSet(this, _bitmap, null); - this._uiManager.imageManager.deleteId(__privateGet(this, _bitmapId)); - (_a = __privateGet(this, _canvas2)) == null ? void 0 : _a.remove(); - __privateSet(this, _canvas2, null); - (_b = __privateGet(this, _observer)) == null ? void 0 : _b.disconnect(); - __privateSet(this, _observer, null); - } - super.remove(); - } - rebuild() { - if (!this.parent) { - if (__privateGet(this, _bitmapId)) { - __privateMethod(this, _getBitmap, getBitmap_fn).call(this); - } - return; - } - super.rebuild(); - if (this.div === null) { - return; - } - if (__privateGet(this, _bitmapId)) { - __privateMethod(this, _getBitmap, getBitmap_fn).call(this); - } - if (!this.isAttachedToDOM) { - this.parent.add(this); - } - } - onceAdded() { - this._isDraggable = true; - this.div.focus(); - } - isEmpty() { - return !(__privateGet(this, _bitmapPromise) || __privateGet(this, _bitmap) || __privateGet(this, _bitmapUrl) || __privateGet(this, _bitmapFile)); - } - get isResizable() { - return true; - } - render() { - if (this.div) { - return this.div; - } - let baseX, baseY; - if (this.width) { - baseX = this.x; - baseY = this.y; - } - super.render(); - this.div.hidden = true; - if (__privateGet(this, _bitmap)) { - __privateMethod(this, _createCanvas, createCanvas_fn).call(this); - } else { - __privateMethod(this, _getBitmap, getBitmap_fn).call(this); - } - if (this.width) { - const [parentWidth, parentHeight] = this.parentDimensions; - this.setAt(baseX * parentWidth, baseY * parentHeight, this.width * parentWidth, this.height * parentHeight); - } - return this.div; - } - static deserialize(data, parent, uiManager) { - if (data instanceof _annotation_layer.StampAnnotationElement) { - return null; - } - const editor = super.deserialize(data, parent, uiManager); - const { - rect, - bitmapUrl, - bitmapId, - isSvg, - accessibilityData - } = data; - if (bitmapId && uiManager.imageManager.isValidId(bitmapId)) { - __privateSet(editor, _bitmapId, bitmapId); - } else { - __privateSet(editor, _bitmapUrl, bitmapUrl); - } - __privateSet(editor, _isSvg, isSvg); - const [parentWidth, parentHeight] = editor.pageDimensions; - editor.width = (rect[2] - rect[0]) / parentWidth; - editor.height = (rect[3] - rect[1]) / parentHeight; - if (accessibilityData) { - editor.altTextData = accessibilityData; - } - return editor; - } - serialize(isForCopying = false, context = null) { - if (this.isEmpty()) { - return null; - } - const serialized = { - annotationType: _util2.AnnotationEditorType.STAMP, - bitmapId: __privateGet(this, _bitmapId), - pageIndex: this.pageIndex, - rect: this.getRect(0, 0), - rotation: this.rotation, - isSvg: __privateGet(this, _isSvg), - structTreeParentId: this._structTreeParentId - }; - if (isForCopying) { - serialized.bitmapUrl = __privateMethod(this, _serializeBitmap, serializeBitmap_fn).call(this, true); - serialized.accessibilityData = this.altTextData; - return serialized; - } - const { - decorative, - altText - } = this.altTextData; - if (!decorative && altText) { - serialized.accessibilityData = { - type: "Figure", - alt: altText - }; - } - if (context === null) { - return serialized; - } - context.stamps || (context.stamps = /* @__PURE__ */ new Map()); - const area = __privateGet(this, _isSvg) ? (serialized.rect[2] - serialized.rect[0]) * (serialized.rect[3] - serialized.rect[1]) : null; - if (!context.stamps.has(__privateGet(this, _bitmapId))) { - context.stamps.set(__privateGet(this, _bitmapId), { - area, - serialized - }); - serialized.bitmap = __privateMethod(this, _serializeBitmap, serializeBitmap_fn).call(this, false); - } else if (__privateGet(this, _isSvg)) { - const prevData = context.stamps.get(__privateGet(this, _bitmapId)); - if (area > prevData.area) { - prevData.area = area; - prevData.serialized.bitmap.close(); - prevData.serialized.bitmap = __privateMethod(this, _serializeBitmap, serializeBitmap_fn).call(this, false); - } - } - return serialized; - } - }; - let StampEditor = _StampEditor; - _bitmap = new WeakMap(); - _bitmapId = new WeakMap(); - _bitmapPromise = new WeakMap(); - _bitmapUrl = new WeakMap(); - _bitmapFile = new WeakMap(); - _canvas2 = new WeakMap(); - _observer = new WeakMap(); - _resizeTimeoutId = new WeakMap(); - _isSvg = new WeakMap(); - _hasBeenAddedInUndoStack = new WeakMap(); - _getBitmapFetched = new WeakSet(); - getBitmapFetched_fn = function(data, fromId = false) { - if (!data) { - this.remove(); - return; - } - __privateSet(this, _bitmap, data.bitmap); - if (!fromId) { - __privateSet(this, _bitmapId, data.id); - __privateSet(this, _isSvg, data.isSvg); - } - __privateMethod(this, _createCanvas, createCanvas_fn).call(this); - }; - _getBitmapDone = new WeakSet(); - getBitmapDone_fn = function() { - __privateSet(this, _bitmapPromise, null); - this._uiManager.enableWaiting(false); - if (__privateGet(this, _canvas2)) { - this.div.focus(); - } - }; - _getBitmap = new WeakSet(); - getBitmap_fn = function() { - if (__privateGet(this, _bitmapId)) { - this._uiManager.enableWaiting(true); - this._uiManager.imageManager.getFromId(__privateGet(this, _bitmapId)).then((data) => __privateMethod(this, _getBitmapFetched, getBitmapFetched_fn).call(this, data, true)).finally(() => __privateMethod(this, _getBitmapDone, getBitmapDone_fn).call(this)); - return; - } - if (__privateGet(this, _bitmapUrl)) { - const url = __privateGet(this, _bitmapUrl); - __privateSet(this, _bitmapUrl, null); - this._uiManager.enableWaiting(true); - __privateSet(this, _bitmapPromise, this._uiManager.imageManager.getFromUrl(url).then((data) => __privateMethod(this, _getBitmapFetched, getBitmapFetched_fn).call(this, data)).finally(() => __privateMethod(this, _getBitmapDone, getBitmapDone_fn).call(this))); - return; - } - if (__privateGet(this, _bitmapFile)) { - const file = __privateGet(this, _bitmapFile); - __privateSet(this, _bitmapFile, null); - this._uiManager.enableWaiting(true); - __privateSet(this, _bitmapPromise, this._uiManager.imageManager.getFromFile(file).then((data) => __privateMethod(this, _getBitmapFetched, getBitmapFetched_fn).call(this, data)).finally(() => __privateMethod(this, _getBitmapDone, getBitmapDone_fn).call(this))); - return; - } - const input = document.createElement("input"); - input.type = "file"; - input.accept = _StampEditor.supportedTypesStr; - __privateSet(this, _bitmapPromise, new Promise((resolve) => { - input.addEventListener("change", async () => { - if (!input.files || input.files.length === 0) { - this.remove(); - } else { - this._uiManager.enableWaiting(true); - const data = await this._uiManager.imageManager.getFromFile(input.files[0]); - __privateMethod(this, _getBitmapFetched, getBitmapFetched_fn).call(this, data); - } - resolve(); - }); - input.addEventListener("cancel", () => { - this.remove(); - resolve(); - }); - }).finally(() => __privateMethod(this, _getBitmapDone, getBitmapDone_fn).call(this))); - input.click(); - }; - _createCanvas = new WeakSet(); - createCanvas_fn = function() { - const { - div - } = this; - let { - width, - height - } = __privateGet(this, _bitmap); - const [pageWidth, pageHeight] = this.pageDimensions; - const MAX_RATIO = 0.75; - if (this.width) { - width = this.width * pageWidth; - height = this.height * pageHeight; - } else if (width > MAX_RATIO * pageWidth || height > MAX_RATIO * pageHeight) { - const factor = Math.min(MAX_RATIO * pageWidth / width, MAX_RATIO * pageHeight / height); - width *= factor; - height *= factor; - } - const [parentWidth, parentHeight] = this.parentDimensions; - this.setDims(width * parentWidth / pageWidth, height * parentHeight / pageHeight); - this._uiManager.enableWaiting(false); - const canvas = __privateSet(this, _canvas2, document.createElement("canvas")); - div.append(canvas); - div.hidden = false; - __privateMethod(this, _drawBitmap, drawBitmap_fn).call(this, width, height); - __privateMethod(this, _createObserver, createObserver_fn).call(this); - if (!__privateGet(this, _hasBeenAddedInUndoStack)) { - this.parent.addUndoableEditor(this); - __privateSet(this, _hasBeenAddedInUndoStack, true); - } - this._uiManager._eventBus.dispatch("reporttelemetry", { - source: this, - details: { - type: "editing", - subtype: this.editorType, - data: { - action: "inserted_image" - } - } - }); - this.addAltTextButton(); - }; - _setDimensions = new WeakSet(); - setDimensions_fn = function(width, height) { - var _a; - const [parentWidth, parentHeight] = this.parentDimensions; - this.width = width / parentWidth; - this.height = height / parentHeight; - this.setDims(width, height); - if ((_a = this._initialOptions) == null ? void 0 : _a.isCentered) { - this.center(); - } else { - this.fixAndSetPosition(); - } - this._initialOptions = null; - if (__privateGet(this, _resizeTimeoutId) !== null) { - clearTimeout(__privateGet(this, _resizeTimeoutId)); - } - const TIME_TO_WAIT = 200; - __privateSet(this, _resizeTimeoutId, setTimeout(() => { - __privateSet(this, _resizeTimeoutId, null); - __privateMethod(this, _drawBitmap, drawBitmap_fn).call(this, width, height); - }, TIME_TO_WAIT)); - }; - _scaleBitmap = new WeakSet(); - scaleBitmap_fn = function(width, height) { - const { - width: bitmapWidth, - height: bitmapHeight - } = __privateGet(this, _bitmap); - let newWidth = bitmapWidth; - let newHeight = bitmapHeight; - let bitmap = __privateGet(this, _bitmap); - while (newWidth > 2 * width || newHeight > 2 * height) { - const prevWidth = newWidth; - const prevHeight = newHeight; - if (newWidth > 2 * width) { - newWidth = newWidth >= 16384 ? Math.floor(newWidth / 2) - 1 : Math.ceil(newWidth / 2); - } - if (newHeight > 2 * height) { - newHeight = newHeight >= 16384 ? Math.floor(newHeight / 2) - 1 : Math.ceil(newHeight / 2); - } - const offscreen = new OffscreenCanvas(newWidth, newHeight); - const ctx = offscreen.getContext("2d"); - ctx.drawImage(bitmap, 0, 0, prevWidth, prevHeight, 0, 0, newWidth, newHeight); - bitmap = offscreen.transferToImageBitmap(); - } - return bitmap; - }; - _drawBitmap = new WeakSet(); - drawBitmap_fn = function(width, height) { - width = Math.ceil(width); - height = Math.ceil(height); - const canvas = __privateGet(this, _canvas2); - if (!canvas || canvas.width === width && canvas.height === height) { - return; - } - canvas.width = width; - canvas.height = height; - const bitmap = __privateGet(this, _isSvg) ? __privateGet(this, _bitmap) : __privateMethod(this, _scaleBitmap, scaleBitmap_fn).call(this, width, height); - const ctx = canvas.getContext("2d"); - ctx.filter = this._uiManager.hcmFilter; - ctx.drawImage(bitmap, 0, 0, bitmap.width, bitmap.height, 0, 0, width, height); - }; - _serializeBitmap = new WeakSet(); - serializeBitmap_fn = function(toUrl) { - if (toUrl) { - if (__privateGet(this, _isSvg)) { - const url = this._uiManager.imageManager.getSvgUrl(__privateGet(this, _bitmapId)); - if (url) { - return url; - } - } - const canvas = document.createElement("canvas"); - ({ - width: canvas.width, - height: canvas.height - } = __privateGet(this, _bitmap)); - const ctx = canvas.getContext("2d"); - ctx.drawImage(__privateGet(this, _bitmap), 0, 0); - return canvas.toDataURL(); - } - if (__privateGet(this, _isSvg)) { - const [pageWidth, pageHeight] = this.pageDimensions; - const width = Math.round(this.width * pageWidth * _display_utils2.PixelsPerInch.PDF_TO_CSS_UNITS); - const height = Math.round(this.height * pageHeight * _display_utils2.PixelsPerInch.PDF_TO_CSS_UNITS); - const offscreen = new OffscreenCanvas(width, height); - const ctx = offscreen.getContext("2d"); - ctx.drawImage(__privateGet(this, _bitmap), 0, 0, __privateGet(this, _bitmap).width, __privateGet(this, _bitmap).height, 0, 0, width, height); - return offscreen.transferToImageBitmap(); - } - return structuredClone(__privateGet(this, _bitmap)); - }; - _createObserver = new WeakSet(); - createObserver_fn = function() { - __privateSet(this, _observer, new ResizeObserver((entries) => { - const rect = entries[0].contentRect; - if (rect.width && rect.height) { - __privateMethod(this, _setDimensions, setDimensions_fn).call(this, rect.width, rect.height); - } - })); - __privateGet(this, _observer).observe(this.div); - }; - __publicField(StampEditor, "_type", "stamp"); - exports2.StampEditor = StampEditor; - } - /******/ - ]; - var __webpack_module_cache__ = {}; - function __w_pdfjs_require__(moduleId) { - var cachedModule = __webpack_module_cache__[moduleId]; - if (cachedModule !== void 0) { - return cachedModule.exports; - } - var module2 = __webpack_module_cache__[moduleId] = { - /******/ - // no module.id needed - /******/ - // no module.loaded needed - /******/ - exports: {} - /******/ - }; - __webpack_modules__[moduleId](module2, module2.exports, __w_pdfjs_require__); - return module2.exports; - } - var __webpack_exports__ = {}; - (() => { - var exports2 = __webpack_exports__; - Object.defineProperty(exports2, "__esModule", { - value: true - }); - Object.defineProperty(exports2, "AbortException", { - enumerable: true, - get: function() { - return _util2.AbortException; - } - }); - Object.defineProperty(exports2, "AnnotationEditorLayer", { - enumerable: true, - get: function() { - return _annotation_editor_layer.AnnotationEditorLayer; - } - }); - Object.defineProperty(exports2, "AnnotationEditorParamsType", { - enumerable: true, - get: function() { - return _util2.AnnotationEditorParamsType; - } - }); - Object.defineProperty(exports2, "AnnotationEditorType", { - enumerable: true, - get: function() { - return _util2.AnnotationEditorType; - } - }); - Object.defineProperty(exports2, "AnnotationEditorUIManager", { - enumerable: true, - get: function() { - return _tools.AnnotationEditorUIManager; - } - }); - Object.defineProperty(exports2, "AnnotationLayer", { - enumerable: true, - get: function() { - return _annotation_layer.AnnotationLayer; - } - }); - Object.defineProperty(exports2, "AnnotationMode", { - enumerable: true, - get: function() { - return _util2.AnnotationMode; - } - }); - Object.defineProperty(exports2, "CMapCompressionType", { - enumerable: true, - get: function() { - return _util2.CMapCompressionType; - } - }); - Object.defineProperty(exports2, "DOMSVGFactory", { - enumerable: true, - get: function() { - return _display_utils2.DOMSVGFactory; - } - }); - Object.defineProperty(exports2, "FeatureTest", { - enumerable: true, - get: function() { - return _util2.FeatureTest; - } - }); - Object.defineProperty(exports2, "GlobalWorkerOptions", { - enumerable: true, - get: function() { - return _worker_options2.GlobalWorkerOptions; - } - }); - Object.defineProperty(exports2, "ImageKind", { - enumerable: true, - get: function() { - return _util2.ImageKind; - } - }); - Object.defineProperty(exports2, "InvalidPDFException", { - enumerable: true, - get: function() { - return _util2.InvalidPDFException; - } - }); - Object.defineProperty(exports2, "MissingPDFException", { - enumerable: true, - get: function() { - return _util2.MissingPDFException; - } - }); - Object.defineProperty(exports2, "OPS", { - enumerable: true, - get: function() { - return _util2.OPS; - } - }); - Object.defineProperty(exports2, "PDFDataRangeTransport", { - enumerable: true, - get: function() { - return _api.PDFDataRangeTransport; - } - }); - Object.defineProperty(exports2, "PDFDateString", { - enumerable: true, - get: function() { - return _display_utils2.PDFDateString; - } - }); - Object.defineProperty(exports2, "PDFWorker", { - enumerable: true, - get: function() { - return _api.PDFWorker; - } - }); - Object.defineProperty(exports2, "PasswordResponses", { - enumerable: true, - get: function() { - return _util2.PasswordResponses; - } - }); - Object.defineProperty(exports2, "PermissionFlag", { - enumerable: true, - get: function() { - return _util2.PermissionFlag; - } - }); - Object.defineProperty(exports2, "PixelsPerInch", { - enumerable: true, - get: function() { - return _display_utils2.PixelsPerInch; - } - }); - Object.defineProperty(exports2, "PromiseCapability", { - enumerable: true, - get: function() { - return _util2.PromiseCapability; - } - }); - Object.defineProperty(exports2, "RenderingCancelledException", { - enumerable: true, - get: function() { - return _display_utils2.RenderingCancelledException; - } - }); - Object.defineProperty(exports2, "SVGGraphics", { - enumerable: true, - get: function() { - return _api.SVGGraphics; - } - }); - Object.defineProperty(exports2, "UnexpectedResponseException", { - enumerable: true, - get: function() { - return _util2.UnexpectedResponseException; - } - }); - Object.defineProperty(exports2, "Util", { - enumerable: true, - get: function() { - return _util2.Util; - } - }); - Object.defineProperty(exports2, "VerbosityLevel", { - enumerable: true, - get: function() { - return _util2.VerbosityLevel; - } - }); - Object.defineProperty(exports2, "XfaLayer", { - enumerable: true, - get: function() { - return _xfa_layer.XfaLayer; - } - }); - Object.defineProperty(exports2, "build", { - enumerable: true, - get: function() { - return _api.build; - } - }); - Object.defineProperty(exports2, "createValidAbsoluteUrl", { - enumerable: true, - get: function() { - return _util2.createValidAbsoluteUrl; - } - }); - Object.defineProperty(exports2, "getDocument", { - enumerable: true, - get: function() { - return _api.getDocument; - } - }); - Object.defineProperty(exports2, "getFilenameFromUrl", { - enumerable: true, - get: function() { - return _display_utils2.getFilenameFromUrl; - } - }); - Object.defineProperty(exports2, "getPdfFilenameFromUrl", { - enumerable: true, - get: function() { - return _display_utils2.getPdfFilenameFromUrl; - } - }); - Object.defineProperty(exports2, "getXfaPageViewport", { - enumerable: true, - get: function() { - return _display_utils2.getXfaPageViewport; - } - }); - Object.defineProperty(exports2, "isDataScheme", { - enumerable: true, - get: function() { - return _display_utils2.isDataScheme; - } - }); - Object.defineProperty(exports2, "isPdfFile", { - enumerable: true, - get: function() { - return _display_utils2.isPdfFile; - } - }); - Object.defineProperty(exports2, "loadScript", { - enumerable: true, - get: function() { - return _display_utils2.loadScript; - } - }); - Object.defineProperty(exports2, "noContextMenu", { - enumerable: true, - get: function() { - return _display_utils2.noContextMenu; - } - }); - Object.defineProperty(exports2, "normalizeUnicode", { - enumerable: true, - get: function() { - return _util2.normalizeUnicode; - } - }); - Object.defineProperty(exports2, "renderTextLayer", { - enumerable: true, - get: function() { - return _text_layer.renderTextLayer; - } - }); - Object.defineProperty(exports2, "setLayerDimensions", { - enumerable: true, - get: function() { - return _display_utils2.setLayerDimensions; - } - }); - Object.defineProperty(exports2, "shadow", { - enumerable: true, - get: function() { - return _util2.shadow; - } - }); - Object.defineProperty(exports2, "updateTextLayer", { - enumerable: true, - get: function() { - return _text_layer.updateTextLayer; - } - }); - Object.defineProperty(exports2, "version", { - enumerable: true, - get: function() { - return _api.version; - } - }); - var _util2 = __w_pdfjs_require__(1); - var _api = __w_pdfjs_require__(2); - var _display_utils2 = __w_pdfjs_require__(6); - var _text_layer = __w_pdfjs_require__(26); - var _annotation_editor_layer = __w_pdfjs_require__(27); - var _tools = __w_pdfjs_require__(5); - var _annotation_layer = __w_pdfjs_require__(29); - var _worker_options2 = __w_pdfjs_require__(14); - var _xfa_layer = __w_pdfjs_require__(32); - const pdfjsVersion2 = "3.11.174"; - const pdfjsBuild = "ce8716743"; - })(); - return __webpack_exports__; - })() - ); - }); - } - }); - - // node_modules/alpine-magic-helpers/dist/component.js - var require_component = __commonJS({ - "node_modules/alpine-magic-helpers/dist/component.js"(exports2, module2) { - (function(global3, factory) { - typeof exports2 === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, global3.AlpineMagicHelpers = global3.AlpineMagicHelpers || {}, global3.AlpineMagicHelpers.component = factory()); - })(exports2, function() { - "use strict"; - var checkForAlpine = function checkForAlpine2() { - if (!window.Alpine) { - throw new Error("[Magic Helpers] Alpine is required for the magic helpers to function correctly."); - } - if (!window.Alpine.version || !isValidVersion("2.5.0", window.Alpine.version)) { - throw new Error("Invalid Alpine version. Please use Alpine version 2.5.0 or above"); - } - }; - var syncWithObservedComponent = function syncWithObservedComponent2(data, observedComponent, callback) { - if (!observedComponent.getAttribute("x-bind:data-last-refresh")) { - observedComponent.setAttribute("x-bind:data-last-refresh", "Date.now()"); - } - var handler = function handler2(scope) { - if (scope === void 0) { - scope = null; - } - return { - get: function get(target, key) { - var _observedComponent$__; - if (target[key] !== null && typeof target[key] === "object") { - var path = scope ? scope + "." + key : key; - return new Proxy(target[key], handler2(path)); - } - if (scope === null && typeof target[key] === "function" && observedComponent.__x) { - return target[key].bind(observedComponent.__x.$data); - } - if (scope === null && !target[key] && observedComponent != null && (_observedComponent$__ = observedComponent.__x) != null && _observedComponent$__.$data[key]) { - return observedComponent.__x.$data[key]; - } - return target[key]; - }, - set: function set(_target, key, value) { - if (!observedComponent.__x) { - throw new Error("Error communicating with observed component"); - } - var path = scope ? scope + "." + key : key; - callback.call(observedComponent, observedComponent.__x.$data, path, value); - return true; - } - }; - }; - return new Proxy(data, handler()); - }; - var updateOnMutation = function updateOnMutation2(componentBeingObserved, callback) { - if (!componentBeingObserved.getAttribute("x-bind:data-last-refresh")) { - componentBeingObserved.setAttribute("x-bind:data-last-refresh", "Date.now()"); - } - var observer = new MutationObserver(function(mutations) { - for (var i2 = 0; i2 < mutations.length; i2++) { - var mutatedComponent = mutations[i2].target.closest("[x-data]"); - if (mutatedComponent && !mutatedComponent.isSameNode(componentBeingObserved)) - continue; - callback(); - return; - } - }); - observer.observe(componentBeingObserved, { - attributes: true, - childList: true, - subtree: true - }); - }; - var objectSetDeep = function objectSetDeep2(object, path, value) { - path = path.toString().match(/[^.[\]]+/g) || []; - path.slice(0, -1).reduce(function(a2, currentKey, index) { - if (Object(a2[currentKey]) !== a2[currentKey]) { - a2[currentKey] = Math.abs(path[index + 1]) >> 0 === +path[index + 1] ? [] : {}; - } - return a2[currentKey]; - }, object)[path[path.length - 1]] = value; - return object; - }; - var componentData = function componentData2(component, properties) { - var data = component.__x ? component.__x.getUnobservedData() : saferEval(component.getAttribute("x-data"), component); - if (properties) { - properties = Array.isArray(properties) ? properties : [properties]; - return properties.reduce(function(object, key) { - object[key] = data[key]; - return object; - }, {}); - } - return data; - }; - function isValidVersion(required, current) { - var requiredArray = required.split("."); - var currentArray = current.split("."); - for (var i2 = 0; i2 < requiredArray.length; i2++) { - if (!currentArray[i2] || parseInt(currentArray[i2]) < parseInt(requiredArray[i2])) { - return false; - } - } - return true; - } - function saferEval(expression, dataContext, additionalHelperVariables) { - if (additionalHelperVariables === void 0) { - additionalHelperVariables = {}; - } - if (typeof expression === "function") { - return expression.call(dataContext); - } - return new Function(["$data"].concat(Object.keys(additionalHelperVariables)), "var __alpine_result; with($data) { __alpine_result = " + expression + " }; return __alpine_result").apply(void 0, [dataContext].concat(Object.values(additionalHelperVariables))); - } - function getNoopProxy() { - var handler = { - get: function get(target, key) { - return new Proxy(function() { - return ""; - }, handler); - } - }; - return new Proxy(function() { - return ""; - }, handler); - } - function waitUntilReady(componentBeingObserved, component, callback) { - if (!componentBeingObserved.__x) { - window.requestAnimationFrame(function() { - return component.__x.updateElements(component); - }); - return getNoopProxy(); - } - return callback(); - } - function importOrderCheck() { - if (window.Alpine && !window.AlpineMagicHelpers.__fatal) { - window.AlpineMagicHelpers.__fatal = setTimeout(function() { - console.error("%c*** ALPINE MAGIC HELPER: Fatal Error! ***\n\n\nAlpine magic helpers need to be loaded before Alpine to avoid errors when Alpine initialises its component. \n\nMake sure the helper script is included before Alpine in your page when using the defer attribute", "font-size: 14px"); - }, 200); - } - } - importOrderCheck(); - var AlpineComponentMagicMethod = { - start: function start() { - checkForAlpine(); - Alpine.addMagicProperty("parent", function($el) { - if (typeof $el.$parent !== "undefined") - return $el.$parent; - var parentComponent = $el.parentNode.closest("[x-data]"); - if (!parentComponent) - throw new Error("Parent component not found"); - return waitUntilReady(parentComponent, $el, function() { - $el.$parent = syncWithObservedComponent(componentData(parentComponent), parentComponent, objectSetDeep); - updateOnMutation(parentComponent, function() { - $el.$parent = syncWithObservedComponent(parentComponent.__x.getUnobservedData(), parentComponent, objectSetDeep); - $el.__x.updateElements($el); - }); - return $el.$parent; - }); - }); - Alpine.addMagicProperty("component", function($el) { - return function(componentName) { - var _this = this; - if (typeof this[componentName] !== "undefined") - return this[componentName]; - var componentBeingObserved = document.querySelector('[x-data][x-id="' + componentName + '"], [x-data]#' + componentName); - if (!componentBeingObserved) - throw new Error("Component not found"); - return waitUntilReady(componentBeingObserved, $el, function() { - _this[componentName] = syncWithObservedComponent(componentData(componentBeingObserved), componentBeingObserved, objectSetDeep); - updateOnMutation(componentBeingObserved, function() { - _this[componentName] = syncWithObservedComponent(componentBeingObserved.__x.getUnobservedData(), componentBeingObserved, objectSetDeep); - $el.__x.updateElements($el); - }); - return _this[componentName]; - }); - }; - }); - } - }; - var alpine = window.deferLoadingAlpine || function(alpine2) { - return alpine2(); - }; - window.deferLoadingAlpine = function(callback) { - AlpineComponentMagicMethod.start(); - alpine(callback); - }; - return AlpineComponentMagicMethod; - }); - } - }); - - // node_modules/alpinejs/dist/alpine.js - var require_alpine = __commonJS({ - "node_modules/alpinejs/dist/alpine.js"(exports2, module2) { - (function(global3, factory) { - typeof exports2 === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global3 = global3 || self, global3.Alpine = factory()); - })(exports2, function() { - "use strict"; - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; - } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) - symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread2(target) { - for (var i2 = 1; i2 < arguments.length; i2++) { - var source = arguments[i2] != null ? arguments[i2] : {}; - if (i2 % 2) { - ownKeys(Object(source), true).forEach(function(key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } - function domReady() { - return new Promise((resolve) => { - if (document.readyState == "loading") { - document.addEventListener("DOMContentLoaded", resolve); - } else { - resolve(); - } - }); - } - function arrayUnique(array) { - return Array.from(new Set(array)); - } - function isTesting() { - return navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"); - } - function checkedAttrLooseCompare(valueA, valueB) { - return valueA == valueB; - } - function warnIfMalformedTemplate(el, directive) { - if (el.tagName.toLowerCase() !== "template") { - console.warn(`Alpine: [${directive}] directive should only be added to