@vue-pdf-viewer/annotation 1.3.0-beta.2 → 1.3.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vp-text-xl[data-v-9d5f0033]{font-size:1.25rem;line-height:1.75rem}.vpv-toolbar-btn.vpv-toolbar-btn-active[data-v-df5778ee],.vpv-toolbar-btn[data-v-df5778ee]:hover{background-color:var(--vpv-primary-color);color:#fff}.vpv-annotation-editor-layer{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.vpv-annotation-editor-layer *{pointer-events:auto}.vpv-annotation-editor-layer .vpv-annotation-editor{z-index:calc(var(--vpv-base-z-index) * 4)}.vpv-annotation-editor-layer.highlight-mode,.vpv-annotation-editor-layer.underline-mode,.vpv-annotation-editor-layer.strikeout-mode{cursor:text}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor{pointer-events:none}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path{cursor:pointer;position:absolute;inset:0;pointer-events:auto;z-index:calc(var(--vpv-base-z-index) * 5)}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight{pointer-events:none}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight .vpv-annotation-editor__clip-path{pointer-events:none}.vpv-annotation-editor-layer.freetext-mode>:not(.vpv-annotation-editor__free-text){user-select:none;pointer-events:none}.vpv-annotation-editor-layer:not(.freetext-mode) .vpv-annotation-editor__free-text{pointer-events:none}.vpv-annotation-highlight__color-picker-wrapper{padding-left:4px;padding-right:4px;padding-bottom:4px;text-align:left}.vpv-annotation-highlight__color-picker-wrapper>p{margin-bottom:.75rem}.vpv-canvas-layer>.vpv-highlight:is(svg),.vpv-canvas-layer>.vpv-underline:is(svg),.vpv-canvas-layer>.vpv-underline-interaction:is(svg),.vpv-canvas-layer>.vpv-strikeout:is(svg),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg){position:absolute;mix-blend-mode:multiply}.vpv-canvas-layer>.vpv-highlight:is(svg)>use,.vpv-canvas-layer>.vpv-underline:is(svg)>use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg)>use{fill:inherit}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free){fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg),.vpv-canvas-layer>.vpv-underline-outline:is(svg),.vpv-canvas-layer>.vpv-strikeout-outline:is(svg){position:absolute;mix-blend-mode:normal;fill-rule:evenodd;fill:none}.vpv-canvas-layer>.vpv-highlight-outline:is(svg) path,.vpv-canvas-layer>.vpv-highlight-outline:is(svg) use,.vpv-canvas-layer>.vpv-underline-outline:is(svg) path,.vpv-canvas-layer>.vpv-underline-outline:is(svg) use,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) path,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke-width:var(--vpv-annotation-highlight__outline-width)}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-underline-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).hovered{stroke:var(--vpv-annotation-highlight__outline-hover-color)}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke:var(--vpv-annotation-highlight__outline-selected-color)}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text{position:absolute;user-select:none;padding:calc(var(--vpv-annotation-free-text__padding, 2px) * var(--scale-factor));cursor:auto}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text.draggable{cursor:move}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--selected,.vpv-annotation-editor-layer .vpv-annotation-editor__free-text:hover{outline:1px solid #0082ff}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text [role=textbox]{outline:none!important;text-align:start;font:10px sans-serif;line-height:var(--vpv-annotation-free-text__line-height);width:auto;height:auto;white-space:pre-wrap;word-wrap:break-word}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp{min-width:100px;min-height:calc(20px * var(--scale-factor));border:1px dashed #007bff;background-color:#ffffffe6;color:#000;cursor:text}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp>[role=textbox]{outline:none;font-size:calc(16px * var(--scale-factor));font-family:sans-serif;min-height:calc(16px * var(--scale-factor));white-space:nowrap}.vpv-resizers{position:absolute;inset:0;pointer-events:none}.vpv-resizers .vpv-resizer{position:absolute;width:var(--vpv-annotation-outline-resizer-size);height:var(--vpv-annotation-outline-resizer-size);background:white;border:1px solid var(--vpv-annotation-outline-resizer-border-color);border-radius:50%;pointer-events:auto;cursor:pointer;z-index:calc(var(--vpv-base-z-index) * 9999);transition:opacity .2s ease,visibility .2s ease}.vpv-resizers .vpv-resizer:hover,.vpv-resizers .vpv-resizer:focus{transform:scale(1.5)}.vpv-resizers .vpv-resizer--top-left{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-resizers .vpv-resizer--top-right{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-left{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-right{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-left{cursor:nesw-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-left{cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-right{cursor:nesw-resize}.vpv-resizer--dark{background:#80ebff;border-color:#2b2a33}.vpv-resizer--dark:focus{outline-color:#80ebff}.vpv-annotation-editor__image{position:absolute;cursor:pointer;touch-action:none;user-select:none;will-change:transform}.vpv-annotation-editor__image.hovered,.vpv-annotation-editor__image:hover{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-color:var(--vpv-annotation-outline-hovered-color)}.vpv-annotation-editor__image.selected{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-offset:var(--vpv-annotation-outline-selected-offset);outline-color:var(--vpv-annotation-outline-selected-color);cursor:move}.vpv-annotation-editor__image canvas{position:absolute;width:100%;height:100%;margin:0;top:0;left:0}.vpv-annotation-editor__image.dragging canvas{user-drag:none;-webkit-user-drag:none;pointer-events:none;touch-action:none}.vpv-page:not([data-main-rotation="0"]) .vpv-annotation-editor__image:hover{outline:none}.vpv-annotation-tools-container[data-v-8583d7e5]{padding-top:.5rem;padding-bottom:.5rem;border-top:1px solid #c6ccd2;max-width:min-content;margin:.5rem auto}.vpv-annotation-tools-container[data-v-8583d7e5] .vpv-toolbar-btn{margin-bottom:.25rem}.slide-enter-active[data-v-8583d7e5],.slide-leave-active[data-v-8583d7e5]{transition:all .3s ease-out}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{opacity:0}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{transform:translateY(-20px)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vp-text-xl[data-v-9d5f0033]{font-size:1.25rem;line-height:1.75rem}.vpv-toolbar-btn.vpv-toolbar-btn-active[data-v-df5778ee],.vpv-toolbar-btn[data-v-df5778ee]:hover{background-color:var(--vpv-primary-color);color:#fff}.vpv-annotation-editor-layer{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.vpv-annotation-editor-layer *{pointer-events:auto}.vpv-annotation-editor-layer .vpv-annotation-editor{z-index:calc(var(--vpv-base-z-index) * 4)}.vpv-annotation-editor-layer.highlight-mode,.vpv-annotation-editor-layer.underline-mode,.vpv-annotation-editor-layer.strikeout-mode{cursor:text}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor{pointer-events:none}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path{position:absolute;inset:0;pointer-events:none;z-index:calc(var(--vpv-base-z-index) * 5)}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight{pointer-events:none}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight .vpv-annotation-editor__clip-path{pointer-events:none}.vpv-annotation-editor-layer.freetext-mode>:not(.vpv-annotation-editor__free-text){user-select:none;pointer-events:none}.vpv-annotation-editor-layer:not(.freetext-mode) .vpv-annotation-editor__free-text{pointer-events:none}.vpv-annotation-highlight__color-picker-wrapper{padding-left:4px;padding-right:4px;padding-bottom:4px;text-align:left}.vpv-annotation-highlight__color-picker-wrapper>p{margin-bottom:.75rem}.vpv-canvas-layer>.vpv-highlight:is(svg),.vpv-canvas-layer>.vpv-underline:is(svg),.vpv-canvas-layer>.vpv-underline-interaction:is(svg),.vpv-canvas-layer>.vpv-strikeout:is(svg),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg){position:absolute;mix-blend-mode:multiply;pointer-events:none}.vpv-canvas-layer>.vpv-highlight:is(svg)>use,.vpv-canvas-layer>.vpv-underline:is(svg)>use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg)>use{fill:inherit}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free){fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg),.vpv-canvas-layer>.vpv-underline-outline:is(svg),.vpv-canvas-layer>.vpv-strikeout-outline:is(svg){position:absolute;mix-blend-mode:normal;fill-rule:evenodd;fill:transparent;pointer-events:none;stroke:transparent;stroke-width:var(--vpv-annotation-highlight__outline-width)}.vpv-canvas-layer>.vpv-highlight-outline:is(svg) path,.vpv-canvas-layer>.vpv-highlight-outline:is(svg) use,.vpv-canvas-layer>.vpv-underline-outline:is(svg) path,.vpv-canvas-layer>.vpv-underline-outline:is(svg) use,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) path,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke:var(--vpv-annotation-highlight__outline-selected-color)}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text{position:absolute;user-select:none;padding:calc(var(--vpv-annotation-free-text__padding, 2px) * var(--scale-factor));cursor:auto}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text.draggable{cursor:move}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--selected,.vpv-annotation-editor-layer .vpv-annotation-editor__free-text:hover{outline:1px solid #0082ff}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text [role=textbox]{outline:none!important;text-align:start;font:10px sans-serif;line-height:var(--vpv-annotation-free-text__line-height);width:auto;height:auto;white-space:pre-wrap;word-wrap:break-word}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp{min-width:100px;min-height:calc(20px * var(--scale-factor));border:1px dashed #007bff;background-color:#ffffffe6;color:#000;cursor:text}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp>[role=textbox]{outline:none;font-size:calc(16px * var(--scale-factor));font-family:sans-serif;min-height:calc(16px * var(--scale-factor));white-space:nowrap}.vpv-resizers{position:absolute;inset:0;pointer-events:none}.vpv-resizers .vpv-resizer{position:absolute;width:var(--vpv-annotation-outline-resizer-size);height:var(--vpv-annotation-outline-resizer-size);background:white;border:1px solid var(--vpv-annotation-outline-resizer-border-color);border-radius:50%;pointer-events:auto;cursor:pointer;z-index:calc(var(--vpv-base-z-index) * 9999);transition:opacity .2s ease,visibility .2s ease}.vpv-resizers .vpv-resizer:hover,.vpv-resizers .vpv-resizer:focus{transform:scale(1.5)}.vpv-resizers .vpv-resizer--top-left{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-resizers .vpv-resizer--top-right{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-left{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-right{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-left{cursor:nesw-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-left{cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-right{cursor:nesw-resize}.vpv-resizer--dark{background:#80ebff;border-color:#2b2a33}.vpv-resizer--dark:focus{outline-color:#80ebff}.vpv-annotation-editor__image{position:absolute;cursor:pointer;touch-action:none;user-select:none;will-change:transform}.vpv-annotation-editor__image.hovered,.vpv-annotation-editor__image:hover{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-color:var(--vpv-annotation-outline-hovered-color)}.vpv-annotation-editor__image.selected{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-offset:var(--vpv-annotation-outline-selected-offset);outline-color:var(--vpv-annotation-outline-selected-color);cursor:move}.vpv-annotation-editor__image canvas{position:absolute;width:100%;height:100%;margin:0;top:0;left:0}.vpv-annotation-editor__image.dragging canvas{user-drag:none;-webkit-user-drag:none;pointer-events:none;touch-action:none}.vpv-page:not([data-main-rotation="0"]) .vpv-annotation-editor__image:hover{outline:none}.vpv-annotation-tools-container[data-v-8583d7e5]{padding-top:.5rem;padding-bottom:.5rem;border-top:1px solid #c6ccd2;max-width:min-content;margin:.5rem auto}.vpv-annotation-tools-container[data-v-8583d7e5] .vpv-toolbar-btn{margin-bottom:.25rem}.slide-enter-active[data-v-8583d7e5],.slide-leave-active[data-v-8583d7e5]{transition:all .3s ease-out}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{opacity:0}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{transform:translateY(-20px)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  import { defineComponent as Ue, inject as On, computed as de, openBlock as ee, createBlock as ce, resolveDynamicComponent as Se, normalizeProps as St, mergeProps as ve, createSlots as un, withCtx as Q, renderSlot as pe, renderList as Oc, createElementBlock as Sn, useAttrs as Fc, defineAsyncComponent as zc, unref as Be, ref as ui, createTextVNode as Fn, toDisplayString as zn, createVNode as Ae, normalizeClass as Nc, mergeModels as Sr, useModel as kr, createCommentVNode as _e, reactive as Lc, onMounted as Mc, watch as Yn, onUnmounted as jc, Transition as Uc, markRaw as Pt, h as ai } from "vue";
3
3
  var $c = Object.defineProperty, Hc = (e, t, n) => t in e ? $c(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t, n) => (Hc(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  const Lt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", fn = new Uint8Array(256);
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vp-text-xl[data-v-9d5f0033]{font-size:1.25rem;line-height:1.75rem}.vpv-toolbar-btn.vpv-toolbar-btn-active[data-v-df5778ee],.vpv-toolbar-btn[data-v-df5778ee]:hover{background-color:var(--vpv-primary-color);color:#fff}.vpv-annotation-editor-layer{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.vpv-annotation-editor-layer *{pointer-events:auto}.vpv-annotation-editor-layer .vpv-annotation-editor{z-index:calc(var(--vpv-base-z-index) * 4)}.vpv-annotation-editor-layer.highlight-mode,.vpv-annotation-editor-layer.underline-mode,.vpv-annotation-editor-layer.strikeout-mode{cursor:text}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor{pointer-events:none}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path{cursor:pointer;position:absolute;inset:0;pointer-events:auto;z-index:calc(var(--vpv-base-z-index) * 5)}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight{pointer-events:none}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight .vpv-annotation-editor__clip-path{pointer-events:none}.vpv-annotation-editor-layer.freetext-mode>:not(.vpv-annotation-editor__free-text){user-select:none;pointer-events:none}.vpv-annotation-editor-layer:not(.freetext-mode) .vpv-annotation-editor__free-text{pointer-events:none}.vpv-annotation-highlight__color-picker-wrapper{padding-left:4px;padding-right:4px;padding-bottom:4px;text-align:left}.vpv-annotation-highlight__color-picker-wrapper>p{margin-bottom:.75rem}.vpv-canvas-layer>.vpv-highlight:is(svg),.vpv-canvas-layer>.vpv-underline:is(svg),.vpv-canvas-layer>.vpv-underline-interaction:is(svg),.vpv-canvas-layer>.vpv-strikeout:is(svg),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg){position:absolute;mix-blend-mode:multiply}.vpv-canvas-layer>.vpv-highlight:is(svg)>use,.vpv-canvas-layer>.vpv-underline:is(svg)>use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg)>use{fill:inherit}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free){fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg),.vpv-canvas-layer>.vpv-underline-outline:is(svg),.vpv-canvas-layer>.vpv-strikeout-outline:is(svg){position:absolute;mix-blend-mode:normal;fill-rule:evenodd;fill:none}.vpv-canvas-layer>.vpv-highlight-outline:is(svg) path,.vpv-canvas-layer>.vpv-highlight-outline:is(svg) use,.vpv-canvas-layer>.vpv-underline-outline:is(svg) path,.vpv-canvas-layer>.vpv-underline-outline:is(svg) use,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) path,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke-width:var(--vpv-annotation-highlight__outline-width)}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-underline-outline:is(svg).hovered,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).hovered{stroke:var(--vpv-annotation-highlight__outline-hover-color)}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke:var(--vpv-annotation-highlight__outline-selected-color)}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text{position:absolute;user-select:none;padding:calc(var(--vpv-annotation-free-text__padding, 2px) * var(--scale-factor));cursor:auto}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text.draggable{cursor:move}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--selected,.vpv-annotation-editor-layer .vpv-annotation-editor__free-text:hover{outline:1px solid #0082ff}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text [role=textbox]{outline:none!important;text-align:start;font:10px sans-serif;line-height:var(--vpv-annotation-free-text__line-height);width:auto;height:auto;white-space:pre-wrap;word-wrap:break-word}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp{min-width:100px;min-height:calc(20px * var(--scale-factor));border:1px dashed #007bff;background-color:#ffffffe6;color:#000;cursor:text}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp>[role=textbox]{outline:none;font-size:calc(16px * var(--scale-factor));font-family:sans-serif;min-height:calc(16px * var(--scale-factor));white-space:nowrap}.vpv-resizers{position:absolute;inset:0;pointer-events:none}.vpv-resizers .vpv-resizer{position:absolute;width:var(--vpv-annotation-outline-resizer-size);height:var(--vpv-annotation-outline-resizer-size);background:white;border:1px solid var(--vpv-annotation-outline-resizer-border-color);border-radius:50%;pointer-events:auto;cursor:pointer;z-index:calc(var(--vpv-base-z-index) * 9999);transition:opacity .2s ease,visibility .2s ease}.vpv-resizers .vpv-resizer:hover,.vpv-resizers .vpv-resizer:focus{transform:scale(1.5)}.vpv-resizers .vpv-resizer--top-left{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-resizers .vpv-resizer--top-right{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-left{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-right{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-left{cursor:nesw-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-left{cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-right{cursor:nesw-resize}.vpv-resizer--dark{background:#80ebff;border-color:#2b2a33}.vpv-resizer--dark:focus{outline-color:#80ebff}.vpv-annotation-editor__image{position:absolute;cursor:pointer;touch-action:none;user-select:none;will-change:transform}.vpv-annotation-editor__image.hovered,.vpv-annotation-editor__image:hover{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-color:var(--vpv-annotation-outline-hovered-color)}.vpv-annotation-editor__image.selected{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-offset:var(--vpv-annotation-outline-selected-offset);outline-color:var(--vpv-annotation-outline-selected-color);cursor:move}.vpv-annotation-editor__image canvas{position:absolute;width:100%;height:100%;margin:0;top:0;left:0}.vpv-annotation-editor__image.dragging canvas{user-drag:none;-webkit-user-drag:none;pointer-events:none;touch-action:none}.vpv-page:not([data-main-rotation="0"]) .vpv-annotation-editor__image:hover{outline:none}.vpv-annotation-tools-container[data-v-8583d7e5]{padding-top:.5rem;padding-bottom:.5rem;border-top:1px solid #c6ccd2;max-width:min-content;margin:.5rem auto}.vpv-annotation-tools-container[data-v-8583d7e5] .vpv-toolbar-btn{margin-bottom:.25rem}.slide-enter-active[data-v-8583d7e5],.slide-leave-active[data-v-8583d7e5]{transition:all .3s ease-out}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{opacity:0}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{transform:translateY(-20px)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vp-text-xl[data-v-9d5f0033]{font-size:1.25rem;line-height:1.75rem}.vpv-toolbar-btn.vpv-toolbar-btn-active[data-v-df5778ee],.vpv-toolbar-btn[data-v-df5778ee]:hover{background-color:var(--vpv-primary-color);color:#fff}.vpv-annotation-editor-layer{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.vpv-annotation-editor-layer *{pointer-events:auto}.vpv-annotation-editor-layer .vpv-annotation-editor{z-index:calc(var(--vpv-base-z-index) * 4)}.vpv-annotation-editor-layer.highlight-mode,.vpv-annotation-editor-layer.underline-mode,.vpv-annotation-editor-layer.strikeout-mode{cursor:text}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor{pointer-events:none}.vpv-annotation-editor-layer.highlight-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.underline-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path,.vpv-annotation-editor-layer.strikeout-mode .vpv-annotation-editor .vpv-annotation-editor__clip-path{position:absolute;inset:0;pointer-events:none;z-index:calc(var(--vpv-base-z-index) * 5)}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight{pointer-events:none}.vpv-annotation-editor-layer:not(.highlight-mode,.underline-mode,.strikeout-mode) .vpv-annotation-editor.vpv-annotation-editor__highlight .vpv-annotation-editor__clip-path{pointer-events:none}.vpv-annotation-editor-layer.freetext-mode>:not(.vpv-annotation-editor__free-text){user-select:none;pointer-events:none}.vpv-annotation-editor-layer:not(.freetext-mode) .vpv-annotation-editor__free-text{pointer-events:none}.vpv-annotation-highlight__color-picker-wrapper{padding-left:4px;padding-right:4px;padding-bottom:4px;text-align:left}.vpv-annotation-highlight__color-picker-wrapper>p{margin-bottom:.75rem}.vpv-canvas-layer>.vpv-highlight:is(svg),.vpv-canvas-layer>.vpv-underline:is(svg),.vpv-canvas-layer>.vpv-underline-interaction:is(svg),.vpv-canvas-layer>.vpv-strikeout:is(svg),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg){position:absolute;mix-blend-mode:multiply;pointer-events:none}.vpv-canvas-layer>.vpv-highlight:is(svg)>use,.vpv-canvas-layer>.vpv-underline:is(svg)>use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout:is(svg)>use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg)>use{fill:inherit}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline:is(svg):not(.free),.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free),.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free){fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-highlight:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-underline-interaction:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout:is(svg):not(.free) use,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) path,.vpv-canvas-layer>.vpv-strikeout-interaction:is(svg):not(.free) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg),.vpv-canvas-layer>.vpv-underline-outline:is(svg),.vpv-canvas-layer>.vpv-strikeout-outline:is(svg){position:absolute;mix-blend-mode:normal;fill-rule:evenodd;fill:transparent;pointer-events:none;stroke:transparent;stroke-width:var(--vpv-annotation-highlight__outline-width)}.vpv-canvas-layer>.vpv-highlight-outline:is(svg) path,.vpv-canvas-layer>.vpv-highlight-outline:is(svg) use,.vpv-canvas-layer>.vpv-underline-outline:is(svg) path,.vpv-canvas-layer>.vpv-underline-outline:is(svg) use,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) path,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg) use{fill-rule:evenodd}.vpv-canvas-layer>.vpv-highlight-outline:is(svg).selected,.vpv-canvas-layer>.vpv-underline-outline:is(svg).selected,.vpv-canvas-layer>.vpv-strikeout-outline:is(svg).selected{stroke:var(--vpv-annotation-highlight__outline-selected-color)}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text{position:absolute;user-select:none;padding:calc(var(--vpv-annotation-free-text__padding, 2px) * var(--scale-factor));cursor:auto}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text.draggable{cursor:move}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--selected,.vpv-annotation-editor-layer .vpv-annotation-editor__free-text:hover{outline:1px solid #0082ff}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text [role=textbox]{outline:none!important;text-align:start;font:10px sans-serif;line-height:var(--vpv-annotation-free-text__line-height);width:auto;height:auto;white-space:pre-wrap;word-wrap:break-word}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp{min-width:100px;min-height:calc(20px * var(--scale-factor));border:1px dashed #007bff;background-color:#ffffffe6;color:#000;cursor:text}.vpv-annotation-editor-layer .vpv-annotation-editor__free-text--temp>[role=textbox]{outline:none;font-size:calc(16px * var(--scale-factor));font-family:sans-serif;min-height:calc(16px * var(--scale-factor));white-space:nowrap}.vpv-resizers{position:absolute;inset:0;pointer-events:none}.vpv-resizers .vpv-resizer{position:absolute;width:var(--vpv-annotation-outline-resizer-size);height:var(--vpv-annotation-outline-resizer-size);background:white;border:1px solid var(--vpv-annotation-outline-resizer-border-color);border-radius:50%;pointer-events:auto;cursor:pointer;z-index:calc(var(--vpv-base-z-index) * 9999);transition:opacity .2s ease,visibility .2s ease}.vpv-resizers .vpv-resizer:hover,.vpv-resizers .vpv-resizer:focus{transform:scale(1.5)}.vpv-resizers .vpv-resizer--top-left{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-resizers .vpv-resizer--top-right{top:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-left{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);left:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nesw-resize}.vpv-resizers .vpv-resizer--bottom-right{bottom:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);right:calc(var(--vpv-annotation-outline-resizer-size) * -1.25);cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-left{cursor:nesw-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--top-right,.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-left,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-left{cursor:nwse-resize}.vpv-page[data-main-rotation="90"] .vpv-resizer--bottom-right,.vpv-page[data-main-rotation="270"] .vpv-resizer--bottom-right{cursor:nesw-resize}.vpv-resizer--dark{background:#80ebff;border-color:#2b2a33}.vpv-resizer--dark:focus{outline-color:#80ebff}.vpv-annotation-editor__image{position:absolute;cursor:pointer;touch-action:none;user-select:none;will-change:transform}.vpv-annotation-editor__image.hovered,.vpv-annotation-editor__image:hover{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-color:var(--vpv-annotation-outline-hovered-color)}.vpv-annotation-editor__image.selected{outline-width:var(--vpv-annotation-outline-width);outline-style:solid;outline-offset:var(--vpv-annotation-outline-selected-offset);outline-color:var(--vpv-annotation-outline-selected-color);cursor:move}.vpv-annotation-editor__image canvas{position:absolute;width:100%;height:100%;margin:0;top:0;left:0}.vpv-annotation-editor__image.dragging canvas{user-drag:none;-webkit-user-drag:none;pointer-events:none;touch-action:none}.vpv-page:not([data-main-rotation="0"]) .vpv-annotation-editor__image:hover{outline:none}.vpv-annotation-tools-container[data-v-8583d7e5]{padding-top:.5rem;padding-bottom:.5rem;border-top:1px solid #c6ccd2;max-width:min-content;margin:.5rem auto}.vpv-annotation-tools-container[data-v-8583d7e5] .vpv-toolbar-btn{margin-bottom:.25rem}.slide-enter-active[data-v-8583d7e5],.slide-leave-active[data-v-8583d7e5]{transition:all .3s ease-out}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{opacity:0}.slide-enter-from[data-v-8583d7e5],.slide-leave-to[data-v-8583d7e5]{transform:translateY(-20px)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  (function(ce,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],g):(ce=typeof globalThis<"u"?globalThis:ce||self,g(ce["@vue-pdf-viewer/annotation"]={},ce.Vue))})(this,function(ce,g){"use strict";var wc=Object.defineProperty,xc=(e,t,n)=>t in e?wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>(xc(e,typeof t!="symbol"?t+"":t,n),n);const wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vt=new Uint8Array(256);for(let e=0;e<wt.length;e++)Vt[wt.charCodeAt(e)]=e;const Sc=e=>{let t="";const n=e.length;for(let r=0;r<n;r+=3)t+=wt[e[r]>>2],t+=wt[(e[r]&3)<<4|e[r+1]>>4],t+=wt[(e[r+1]&15)<<2|e[r+2]>>6],t+=wt[e[r+2]&63];return n%3===2?t=t.substring(0,t.length-1)+"=":n%3===1&&(t=t.substring(0,t.length-2)+"=="),t},ds=e=>{let t=e.length*.75;const n=e.length;let r,i=0,s,o,c,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const a=new Uint8Array(t);for(r=0;r<n;r+=4)s=Vt[e.charCodeAt(r)],o=Vt[e.charCodeAt(r+1)],c=Vt[e.charCodeAt(r+2)],l=Vt[e.charCodeAt(r+3)],a[i++]=s<<2|o>>4,a[i++]=(o&15)<<4|c>>2,a[i++]=(c&3)<<6|l&63;return a},vc=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,kc=e=>{const t=e.trim(),r=t.substring(0,100).match(vc);if(!r)return ds(t);const[i]=r,s=t.substring(i.length);return ds(s)},$=e=>e.charCodeAt(0),fs=(e,t)=>Pe(e.toString(16),t,"0").toUpperCase(),us=e=>fs(e,2),We=e=>String.fromCharCode(e),Ac=e=>We(parseInt(e,16)),Pe=(e,t,n)=>{let r="";for(let i=0,s=t-e.length;i<s;i++)r+=n;return r+e},fe=(e,t,n)=>{const r=e.length;for(let i=0;i<r;i++)t[n++]=e.charCodeAt(i);return r},Cc=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,gs=e=>{const t=e.match(Cc);if(!t)return;const[,n,r="01",i="01",s="00",o="00",c="00",l="Z",a="00",h="00"]=t,f=l==="Z"?"Z":`${l}${a}:${h}`;return new Date(`${n}-${r}-${i}T${s}:${o}:${c}${f}`)},Bc=(e,t)=>{var n;let r=0,i;for(;r<e.length;){const s=e.substring(r).match(t);if(!s)return{match:i,pos:r};i=s,r+=((n=s.index)!=null?n:0)+s[0].length}return{match:i,pos:r}},Pn=e=>e[e.length-1],kr=e=>{if(e instanceof Uint8Array)return e;const t=e.length,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},Tc=(...e)=>{const t=e.length,n=[];for(let o=0;o<t;o++){const c=e[o];n[o]=c instanceof Uint8Array?c:kr(c)}let r=0;for(let o=0;o<t;o++)r+=e[o].length;const i=new Uint8Array(r);let s=0;for(let o=0;o<t;o++){const c=n[o];for(let l=0,a=c.length;l<a;l++)i[s++]=c[l]}return i},ps=e=>{let t="";for(let n=0,r=e.length;n<r;n++)t+=We(e[n]);return t},xt=e=>{const t=e.length;for(let n=0,r=Math.floor(t/2);n<r;n++){const i=n,s=t-n-1,o=e[n];e[i]=e[s],e[s]=o}return e},Dc=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n];return t},Ec=(e,t)=>{const n=new Array(t-e);for(let r=0,i=n.length;r<i;r++)n[r]=e+r;return n},Pc=e=>{if(typeof e=="string")return kc(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},St=()=>new Promise(e=>{setTimeout(()=>e(),0)}),bs=class{constructor(e){b(this,"populate"),b(this,"value"),this.populate=e,this.value=void 0}getValue(){return this.value}access(){return this.value||(this.value=this.populate()),this.value}invalidate(){this.value=void 0}};let vt=bs;b(vt,"populatedBy",e=>new bs(e));const Rn=e=>{throw new Error(e)},Rc=e=>{let t=String(e);if(Math.abs(e)<1){const n=parseInt(e.toString().split("e-")[1]);if(n){const r=e<0;r&&(e*=-1),e*=Math.pow(10,n-1),t="0."+new Array(n).join("0")+e.toString().substring(2),r&&(t="-"+t)}}else{let n=parseInt(e.toString().split("+")[1]);n>20&&(n-=20,e/=Math.pow(10,n),t=e.toString()+new Array(n+1).join("0"))}return t},In=e=>Math.ceil(e.toString(2).length/8),kt=e=>{const t=new Uint8Array(In(e));for(let n=1;n<=t.length;n++)t[n-1]=e>>(t.length-n)*8;return t},H=new Uint16Array(256);for(let e=0;e<256;e++)H[e]=e;H[22]=$(""),H[24]=$("\u02D8"),H[25]=$("\u02C7"),H[26]=$("\u02C6"),H[27]=$("\u02D9"),H[28]=$("\u02DD"),H[29]=$("\u02DB"),H[30]=$("\u02DA"),H[31]=$("\u02DC"),H[127]=$("\uFFFD"),H[128]=$("\u2022"),H[129]=$("\u2020"),H[130]=$("\u2021"),H[131]=$("\u2026"),H[132]=$("\u2014"),H[133]=$("\u2013"),H[134]=$("\u0192"),H[135]=$("\u2044"),H[136]=$("\u2039"),H[137]=$("\u203A"),H[138]=$("\u2212"),H[139]=$("\u2030"),H[140]=$("\u201E"),H[141]=$("\u201C"),H[142]=$("\u201D"),H[143]=$("\u2018"),H[144]=$("\u2019"),H[145]=$("\u201A"),H[146]=$("\u2122"),H[147]=$("\uFB01"),H[148]=$("\uFB02"),H[149]=$("\u0141"),H[150]=$("\u0152"),H[151]=$("\u0160"),H[152]=$("\u0178"),H[153]=$("\u017D"),H[154]=$("\u0131"),H[155]=$("\u0142"),H[156]=$("\u0153"),H[157]=$("\u0161"),H[158]=$("\u017E"),H[159]=$("\uFFFD"),H[160]=$("\u20AC"),H[173]=$("\uFFFD");const ms=e=>{const t=new Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=H[e[n]];return String.fromCodePoint(...t)},_s=e=>Object.keys(e).map(t=>e[t]),On=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,Ic=(e,t=!0)=>{const n=[];t&&n.push(65279);for(let r=0,i=e.length;r<i;){const s=e.codePointAt(r);if(s<65536)n.push(s),r+=1;else if(s<1114112)n.push(Oc(s),zc(s)),r+=2;else throw new Error(`Invalid code point: 0x${us(s)}`)}return new Uint16Array(n)},Oc=e=>Math.floor((e-65536)/1024)+55296,zc=e=>(e-65536)%1024+56320,Kt="\uFFFD".codePointAt(0),ys=(e,t=!0)=>{if(e.length<=1)return String.fromCodePoint(Kt);const n=t?Nc(e):"BigEndian";let r=t?2:0;const i=[];for(;e.length-r>=2;){const s=xs(e[r++],e[r++],n);if(Fc(s))if(e.length-r<2)i.push(Kt);else{const o=xs(e[r++],e[r++],n);ws(o)?i.push(s,o):i.push(Kt)}else ws(s)?(r+=2,i.push(Kt)):i.push(s)}return r<e.length&&i.push(Kt),String.fromCodePoint(...i)},Fc=e=>e>=55296&&e<=56319,ws=e=>e>=56320&&e<=57343,xs=(e,t,n)=>{if(n==="LittleEndian")return t<<8|e;if(n==="BigEndian")return e<<8|t;throw new Error(`Invalid byteOrder: ${n}`)},Nc=e=>Ss(e)?"BigEndian":vs(e)?"LittleEndian":"BigEndian",Ss=e=>e[0]===254&&e[1]===255,vs=e=>e[0]===255&&e[1]===254,ks=e=>Ss(e)||vs(e),he=e=>`\`${e}\``,Mc=e=>`'${e}'`,As=e=>{const t=typeof e;return t==="string"?Mc(e):t==="undefined"?he(e):e},Lc=(e,t,n)=>{const r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const c=n[s];r[s]=As(c)}const i=r.join(" or ");return`${he(t)} must be one of ${i}, but was actually ${As(e)}`},Zt=(e,t,n)=>{Array.isArray(n)||(n=_s(n));for(let r=0,i=n.length;r<i;r++)if(e===n[r])return;throw new TypeError(Lc(e,t,n))},Ie=(e,t,n)=>{Array.isArray(n)||(n=_s(n)),Zt(e,t,n.concat(void 0))},jc=e=>e===null?"null":e===void 0?"undefined":typeof e=="string"?"string":isNaN(e)?"NaN":typeof e=="number"?"number":typeof e=="boolean"?"boolean":typeof e=="symbol"?"symbol":typeof e=="bigint"?"bigint":e.constructor&&e.constructor.name?e.constructor.name:e.name?e.name:e.constructor?String(e.constructor):String(e),Uc=(e,t)=>t==="null"?e===null:t==="undefined"?e===void 0:t==="string"?typeof e=="string":t==="number"?typeof e=="number"&&!isNaN(e):t==="boolean"?typeof e=="boolean":t==="symbol"?typeof e=="symbol":t==="bigint"?typeof e=="bigint":t===Date?e instanceof Date:t===Array?e instanceof Array:t===Uint8Array?e instanceof Uint8Array:t===ArrayBuffer?e instanceof ArrayBuffer:t===Function?e instanceof Function:e instanceof t[0],$c=(e,t,n)=>{const r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const c=n[s];c==="null"&&(r[s]=he("null")),c==="undefined"&&(r[s]=he("undefined")),c==="string"?r[s]=he("string"):c==="number"?r[s]=he("number"):c==="boolean"?r[s]=he("boolean"):c==="symbol"?r[s]=he("symbol"):c==="bigint"?r[s]=he("bigint"):c===Array?r[s]=he("Array"):c===Uint8Array?r[s]=he("Uint8Array"):c===ArrayBuffer?r[s]=he("ArrayBuffer"):r[s]=he(c[1])}const i=r.join(" or ");return`${he(t)} must be of type ${i}, but was actually of type ${he(jc(e))}`},T=(e,t,n)=>{for(let r=0,i=n.length;r<i;r++)if(Uc(e,n[r]))return;throw new TypeError($c(e,t,n))},j=(e,t,n)=>{T(e,t,n.concat("undefined"))},Cs=(e,t,n)=>{for(let r=0,i=e.length;r<i;r++)T(e[r],t,n)},Je=(e,t,n,r)=>{if(T(e,t,["number"]),T(n,"min",["number"]),T(r,"max",["number"]),r=Math.max(n,r),e<n||e>r)throw new Error(`${he(t)} must be at least ${n} and at most ${r}, but was actually ${e}`)},Ge=(e,t,n,r)=>{T(e,t,["number","undefined"]),typeof e=="number"&&Je(e,t,n,r)},Hc=(e,t,n)=>{if(T(e,t,["number"]),e%n!==0)throw new Error(`${he(t)} must be a multiple of ${n}, but was actually ${e}`)},Wc=(e,t)=>{if(!Number.isInteger(e))throw new Error(`${he(t)} must be an integer, but was actually ${e}`)};class Oe extends Error{constructor(t,n){const r=`Method ${t}.${n}() not implemented`;super(r)}}class Ar extends Error{constructor(t){const n=`Cannot construct ${t} - it has a private constructor`;super(n)}}class Cr extends Error{constructor(t,n){const r=o=>{var c,l;return(l=o?.name)!=null?l:(c=o?.constructor)==null?void 0:c.name},s=`Expected instance of ${(Array.isArray(t)?t.map(r):[r(t)]).join(" or ")}, but got instance of ${n&&r(n)}`;super(s)}}class Gc extends Error{constructor(t){const n=`${t} stream encoding not supported`;super(n)}}class Br extends Error{constructor(t,n){const r=`Cannot call ${t}.${n}() more than once`;super(r)}}class Vc extends Error{constructor(){const t="Can't embed page with missing Contents";super(t)}}class Kc extends Error{constructor(t){var n,r,i;const o=`Unrecognized stream type: ${(i=(r=(n=t?.contructor)==null?void 0:n.name)!=null?r:t?.name)!=null?i:t}`;super(o)}}class Zc extends Error{constructor(t){const n=`Attempted to convert PDFArray with ${t} elements to rectangle, but must have exactly 4 elements.`;super(n)}}class Bs extends Error{constructor(t){const n=`Attempted to convert "${t}" to a date, but it does not match the PDF date string format.`;super(n)}}class Ts extends Error{constructor(t,n){const r=`Invalid targetIndex specified: targetIndex=${t} must be less than Count=${n}`;super(r)}}class Ds extends Error{constructor(t,n){const r=`Failed to ${n} at targetIndex=${t} due to corrupt page tree: It is likely that one or more 'Count' entries are invalid`;super(r)}}class zn extends Error{constructor(t,n,r){const i=`index should be at least ${n} and at most ${r}, but was actually ${t}`;super(i)}}class Tr extends Error{constructor(){const t="Attempted to set invalid field value";super(t)}}class qc extends Error{constructor(){const t="Attempted to select multiple values for single-select field";super(t)}}class Xc extends Error{constructor(t){const n=`No /DA (default appearance) entry found for field: ${t}`;super(n)}}class Yc extends Error{constructor(t){const n=`No Tf operator found for DA of field: ${t}`;super(n)}}class Es extends Error{constructor(t,n){const r=`Failed to parse number (line:${t.line} col:${t.column} offset=${t.offset}): "${n}"`;super(r)}}class Qe extends Error{constructor(t,n){const r=`Failed to parse PDF document (line:${t.line} col:${t.column} offset=${t.offset}): ${n}`;super(r)}}class Jc extends Qe{constructor(t,n,r){const i=`Expected next byte to be ${n} but it was actually ${r}`;super(t,i)}}class Qc extends Qe{constructor(t,n){const r=`Failed to parse PDF object starting with the following byte: ${n}`;super(t,r)}}class el extends Qe{constructor(t){const n="Failed to parse invalid PDF object";super(t,n)}}class tl extends Qe{constructor(t){const n="Failed to parse PDF stream";super(t,n)}}class nl extends Qe{constructor(t){const n="Failed to parse PDF literal string due to unbalanced parenthesis";super(t,n)}}class rl extends Qe{constructor(t){const n="Parser stalled";super(t,n)}}class il extends Qe{constructor(t){const n="No PDF header found";super(t,n)}}class sl extends Qe{constructor(t,n){const r=`Did not find expected keyword '${ps(n)}'`;super(t,r)}}class pe{clone(t){throw new Oe(this.constructor.name,"clone")}toString(){throw new Oe(this.constructor.name,"toString")}sizeInBytes(){throw new Oe(this.constructor.name,"sizeInBytes")}copyBytesInto(t,n){throw new Oe(this.constructor.name,"copyBytesInto")}}const Dr=class extends pe{constructor(e){super(),b(this,"numberValue"),b(this,"stringValue"),this.numberValue=e,this.stringValue=Rc(e)}asNumber(){return this.numberValue}value(){return this.numberValue}clone(){return Dr.of(this.numberValue)}toString(){return this.stringValue}sizeInBytes(){return this.stringValue.length}copyBytesInto(e,t){return t+=fe(this.stringValue,e,t),this.stringValue.length}};let U=Dr;b(U,"of",e=>new Dr(e));var m=(e=>(e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Newline=10]="Newline",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationPoint=33]="ExclamationPoint",e[e.Hash=35]="Hash",e[e.Percent=37]="Percent",e[e.LeftParen=40]="LeftParen",e[e.RightParen=41]="RightParen",e[e.Plus=43]="Plus",e[e.Minus=45]="Minus",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.ForwardSlash=47]="ForwardSlash",e[e.Zero=48]="Zero",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.Six=54]="Six",e[e.Seven=55]="Seven",e[e.Eight=56]="Eight",e[e.Nine=57]="Nine",e[e.LessThan=60]="LessThan",e[e.GreaterThan=62]="GreaterThan",e[e.A=65]="A",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.BackSlash=92]="BackSlash",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.a=97]="a",e[e.b=98]="b",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.i=105]="i",e[e.j=106]="j",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.x=120]="x",e[e.LeftCurly=123]="LeftCurly",e[e.RightCurly=125]="RightCurly",e[e.Tilde=126]="Tilde",e))(m||{});const Er=class extends pe{constructor(e){super(),b(this,"array"),b(this,"context"),this.array=[],this.context=e}size(){return this.array.length}push(e){this.array.push(e)}insert(e,t){this.array.splice(e,0,t)}indexOf(e){const t=this.array.indexOf(e);return t===-1?void 0:t}remove(e){this.array.splice(e,1)}set(e,t){this.array[e]=t}get(e){return this.array[e]}lookupMaybe(e,...t){return this.context.lookupMaybe(this.get(e),...t)}lookup(e,...t){return this.context.lookup(this.get(e),...t)}asRectangle(){if(this.size()!==4)throw new Zc(this.size());const e=this.lookup(0,U).asNumber(),t=this.lookup(1,U).asNumber(),n=this.lookup(2,U).asNumber(),r=this.lookup(3,U).asNumber(),i=e,s=t,o=n-e,c=r-t;return{x:i,y:s,width:o,height:c}}asArray(){return this.array.slice()}clone(e){const t=Er.withContext(e||this.context);for(let n=0,r=this.size();n<r;n++)t.push(this.array[n]);return t}toString(){let e="[ ";for(let t=0,n=this.size();t<n;t++)e+=this.get(t).toString(),e+=" ";return e+="]",e}sizeInBytes(){let e=3;for(let t=0,n=this.size();t<n;t++)e+=this.get(t).sizeInBytes()+1;return e}copyBytesInto(e,t){const n=t;e[t++]=m.LeftSquareBracket,e[t++]=m.Space;for(let r=0,i=this.size();r<i;r++)t+=this.get(r).copyBytesInto(e,t),e[t++]=m.Space;return e[t++]=m.RightSquareBracket,t-n}scalePDFNumbers(e,t){for(let n=0,r=this.size();n<r;n++){const i=this.lookup(n);if(i instanceof U){const s=n%2===0?e:t;this.set(n,U.of(i.asNumber()*s))}}}};let q=Er;b(q,"withContext",e=>new Er(e));const Ae=new Uint8Array(256);Ae[m.LeftParen]=1,Ae[m.RightParen]=1,Ae[m.LessThan]=1,Ae[m.GreaterThan]=1,Ae[m.LeftSquareBracket]=1,Ae[m.RightSquareBracket]=1,Ae[m.LeftCurly]=1,Ae[m.RightCurly]=1,Ae[m.ForwardSlash]=1,Ae[m.Percent]=1;const Ve=new Uint8Array(256);Ve[m.Null]=1,Ve[m.Tab]=1,Ve[m.Newline]=1,Ve[m.FormFeed]=1,Ve[m.CarriageReturn]=1,Ve[m.Space]=1;const Pr=new Uint8Array(256);for(let e=0,t=256;e<t;e++)Pr[e]=Ve[e]||Ae[e]?1:0;Pr[m.Hash]=1;const ol=e=>e.replace(/#([\dABCDEF]{2})/g,(t,n)=>Ac(n)),al=e=>e>=m.ExclamationPoint&&e<=m.Tilde&&!Pr[e],Ps={},Rs=new Map,te=class extends pe{constructor(e,t){if(e!==Ps)throw new Ar("PDFName");super(),b(this,"encodedName");let n="/";for(let r=0,i=t.length;r<i;r++){const s=t[r],o=$(s);n+=al(o)?s:`#${us(o)}`}this.encodedName=n}asBytes(){const e=[];let t="",n=!1;const r=i=>{i!==void 0&&e.push(i),n=!1};for(let i=1,s=this.encodedName.length;i<s;i++){const o=this.encodedName[i],c=$(o),l=this.encodedName[i+1];n?c>=m.Zero&&c<=m.Nine||c>=m.a&&c<=m.f||c>=m.A&&c<=m.F?(t+=o,(t.length===2||!(l>="0"&&l<="9"||l>="a"&&l<="f"||l>="A"&&l<="F"))&&(r(parseInt(t,16)),t="")):r(c):c===m.Hash?n=!0:r(c)}return new Uint8Array(e)}decodeText(){const e=this.asBytes();return String.fromCharCode(...Array.from(e))}asString(){return this.encodedName}value(){return this.encodedName}clone(){return this}toString(){return this.encodedName}sizeInBytes(){return this.encodedName.length}copyBytesInto(e,t){return t+=fe(this.encodedName,e,t),this.encodedName.length}};let p=te;b(p,"of",e=>{const t=ol(e);let n=Rs.get(t);return n||(n=new te(Ps,t),Rs.set(t,n)),n}),b(p,"Length",te.of("Length")),b(p,"FlateDecode",te.of("FlateDecode")),b(p,"Resources",te.of("Resources")),b(p,"Font",te.of("Font")),b(p,"XObject",te.of("XObject")),b(p,"ExtGState",te.of("ExtGState")),b(p,"Contents",te.of("Contents")),b(p,"Type",te.of("Type")),b(p,"Parent",te.of("Parent")),b(p,"MediaBox",te.of("MediaBox")),b(p,"Page",te.of("Page")),b(p,"Annots",te.of("Annots")),b(p,"TrimBox",te.of("TrimBox")),b(p,"ArtBox",te.of("ArtBox")),b(p,"BleedBox",te.of("BleedBox")),b(p,"CropBox",te.of("CropBox")),b(p,"Rotate",te.of("Rotate")),b(p,"Title",te.of("Title")),b(p,"Author",te.of("Author")),b(p,"Subject",te.of("Subject")),b(p,"Creator",te.of("Creator")),b(p,"Keywords",te.of("Keywords")),b(p,"Producer",te.of("Producer")),b(p,"CreationDate",te.of("CreationDate")),b(p,"ModDate",te.of("ModDate"));const Fn=class extends pe{constructor(e){super(),b(this,"value"),this.value=e}asBytes(){const e=this.value+(this.value.length%2===1?"0":""),t=e.length,n=new Uint8Array(e.length/2);let r=0,i=0;for(;r<t;){const s=parseInt(e.substring(r,r+2),16);n[i]=s,r+=2,i+=1}return n}decodeText(){const e=this.asBytes();return ks(e)?ys(e):ms(e)}decodeDate(){const e=this.decodeText(),t=gs(e);if(!t)throw new Bs(e);return t}asString(){return this.value}clone(){return Fn.of(this.value)}toString(){return`<${this.value}>`}sizeInBytes(){return this.value.length+2}copyBytesInto(e,t){return e[t++]=m.LessThan,t+=fe(this.value,e,t),e[t++]=m.GreaterThan,this.value.length+2}};let X=Fn;b(X,"of",e=>new Fn(e)),b(X,"fromText",e=>{const t=Ic(e);let n="";for(let r=0,i=t.length;r<i;r++)n+=fs(t[r],4);return new Fn(n)});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const cl=4,Is=0,Os=1,ll=2;function At(e){let t=e.length;for(;--t>=0;)e[t]=0}const hl=0,zs=1,dl=2,fl=3,ul=258,Rr=29,qt=256,Xt=qt+1+Rr,Ct=30,Ir=19,Fs=2*Xt+1,lt=15,Or=16,gl=7,zr=256,Ns=16,Ms=17,Ls=18,Fr=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Nn=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),pl=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),js=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bl=512,Ke=new Array((Xt+2)*2);At(Ke);const Yt=new Array(Ct*2);At(Yt);const Jt=new Array(bl);At(Jt);const Qt=new Array(ul-fl+1);At(Qt);const Nr=new Array(Rr);At(Nr);const Mn=new Array(Ct);At(Mn);function Mr(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let Us,$s,Hs;function Lr(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const Ws=e=>e<256?Jt[e]:Jt[256+(e>>>7)],en=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},me=(e,t,n)=>{e.bi_valid>Or-n?(e.bi_buf|=t<<e.bi_valid&65535,en(e,e.bi_buf),e.bi_buf=t>>Or-e.bi_valid,e.bi_valid+=n-Or):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},ze=(e,t,n)=>{me(e,n[t*2],n[t*2+1])},Gs=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},ml=e=>{e.bi_valid===16?(en(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},_l=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,c=t.stat_desc.extra_base,l=t.stat_desc.max_length;let a,h,f,u,d,_,w=0;for(u=0;u<=lt;u++)e.bl_count[u]=0;for(n[e.heap[e.heap_max]*2+1]=0,a=e.heap_max+1;a<Fs;a++)h=e.heap[a],u=n[n[h*2+1]*2+1]+1,u>l&&(u=l,w++),n[h*2+1]=u,!(h>r)&&(e.bl_count[u]++,d=0,h>=c&&(d=o[h-c]),_=n[h*2],e.opt_len+=_*(u+d),s&&(e.static_len+=_*(i[h*2+1]+d)));if(w!==0){do{for(u=l-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[l]--,w-=2}while(w>0);for(u=l;u!==0;u--)for(h=e.bl_count[u];h!==0;)f=e.heap[--a],!(f>r)&&(n[f*2+1]!==u&&(e.opt_len+=(u-n[f*2+1])*n[f*2],n[f*2+1]=u),h--)}},Vs=(e,t,n)=>{const r=new Array(lt+1);let i=0,s,o;for(s=1;s<=lt;s++)i=i+n[s-1]<<1,r[s]=i;for(o=0;o<=t;o++){let c=e[o*2+1];c!==0&&(e[o*2]=Gs(r[c]++,c))}},yl=()=>{let e,t,n,r,i;const s=new Array(lt+1);for(n=0,r=0;r<Rr-1;r++)for(Nr[r]=n,e=0;e<1<<Fr[r];e++)Qt[n++]=r;for(Qt[n-1]=r,i=0,r=0;r<16;r++)for(Mn[r]=i,e=0;e<1<<Nn[r];e++)Jt[i++]=r;for(i>>=7;r<Ct;r++)for(Mn[r]=i<<7,e=0;e<1<<Nn[r]-7;e++)Jt[256+i++]=r;for(t=0;t<=lt;t++)s[t]=0;for(e=0;e<=143;)Ke[e*2+1]=8,e++,s[8]++;for(;e<=255;)Ke[e*2+1]=9,e++,s[9]++;for(;e<=279;)Ke[e*2+1]=7,e++,s[7]++;for(;e<=287;)Ke[e*2+1]=8,e++,s[8]++;for(Vs(Ke,Xt+1,s),e=0;e<Ct;e++)Yt[e*2+1]=5,Yt[e*2]=Gs(e,5);Us=new Mr(Ke,Fr,qt+1,Xt,lt),$s=new Mr(Yt,Nn,0,Ct,lt),Hs=new Mr(new Array(0),pl,0,Ir,gl)},Ks=e=>{let t;for(t=0;t<Xt;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ct;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Ir;t++)e.bl_tree[t*2]=0;e.dyn_ltree[zr*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},Zs=e=>{e.bi_valid>8?en(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},qs=(e,t,n,r)=>{const i=t*2,s=n*2;return e[i]<e[s]||e[i]===e[s]&&r[t]<=r[n]},jr=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&qs(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!qs(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Xs=(e,t,n)=>{let r,i,s=0,o,c;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+s++]&255,r+=(e.pending_buf[e.sym_buf+s++]&255)<<8,i=e.pending_buf[e.sym_buf+s++],r===0?ze(e,i,t):(o=Qt[i],ze(e,o+qt+1,t),c=Fr[o],c!==0&&(i-=Nr[o],me(e,i,c)),r--,o=Ws(r),ze(e,o,n),c=Nn[o],c!==0&&(r-=Mn[o],me(e,r,c)));while(s<e.sym_next);ze(e,zr,t)},Ur=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,s=t.stat_desc.elems;let o,c,l=-1,a;for(e.heap_len=0,e.heap_max=Fs,o=0;o<s;o++)n[o*2]!==0?(e.heap[++e.heap_len]=l=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)a=e.heap[++e.heap_len]=l<2?++l:0,n[a*2]=1,e.depth[a]=0,e.opt_len--,i&&(e.static_len-=r[a*2+1]);for(t.max_code=l,o=e.heap_len>>1;o>=1;o--)jr(e,n,o);a=s;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],jr(e,n,1),c=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=c,n[a*2]=n[o*2]+n[c*2],e.depth[a]=(e.depth[o]>=e.depth[c]?e.depth[o]:e.depth[c])+1,n[o*2+1]=n[c*2+1]=a,e.heap[1]=a++,jr(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],_l(e,t),Vs(n,l,e.bl_count)},Ys=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],c=0,l=7,a=4;for(o===0&&(l=138,a=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)s=o,o=t[(r+1)*2+1],!(++c<l&&s===o)&&(c<a?e.bl_tree[s*2]+=c:s!==0?(s!==i&&e.bl_tree[s*2]++,e.bl_tree[Ns*2]++):c<=10?e.bl_tree[Ms*2]++:e.bl_tree[Ls*2]++,c=0,i=s,o===0?(l=138,a=3):s===o?(l=6,a=3):(l=7,a=4))},Js=(e,t,n)=>{let r,i=-1,s,o=t[0*2+1],c=0,l=7,a=4;for(o===0&&(l=138,a=3),r=0;r<=n;r++)if(s=o,o=t[(r+1)*2+1],!(++c<l&&s===o)){if(c<a)do ze(e,s,e.bl_tree);while(--c!==0);else s!==0?(s!==i&&(ze(e,s,e.bl_tree),c--),ze(e,Ns,e.bl_tree),me(e,c-3,2)):c<=10?(ze(e,Ms,e.bl_tree),me(e,c-3,3)):(ze(e,Ls,e.bl_tree),me(e,c-11,7));c=0,i=s,o===0?(l=138,a=3):s===o?(l=6,a=3):(l=7,a=4)}},wl=e=>{let t;for(Ys(e,e.dyn_ltree,e.l_desc.max_code),Ys(e,e.dyn_dtree,e.d_desc.max_code),Ur(e,e.bl_desc),t=Ir-1;t>=3&&e.bl_tree[js[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},xl=(e,t,n,r)=>{let i;for(me(e,t-257,5),me(e,n-1,5),me(e,r-4,4),i=0;i<r;i++)me(e,e.bl_tree[js[i]*2+1],3);Js(e,e.dyn_ltree,t-1),Js(e,e.dyn_dtree,n-1)},Sl=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Is;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Os;for(n=32;n<qt;n++)if(e.dyn_ltree[n*2]!==0)return Os;return Is};let Qs=!1;const vl=e=>{Qs||(yl(),Qs=!0),e.l_desc=new Lr(e.dyn_ltree,Us),e.d_desc=new Lr(e.dyn_dtree,$s),e.bl_desc=new Lr(e.bl_tree,Hs),e.bi_buf=0,e.bi_valid=0,Ks(e)},eo=(e,t,n,r)=>{me(e,(hl<<1)+(r?1:0),3),Zs(e),en(e,n),en(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},kl=e=>{me(e,zs<<1,3),ze(e,zr,Ke),ml(e)},Al=(e,t,n,r)=>{let i,s,o=0;e.level>0?(e.strm.data_type===ll&&(e.strm.data_type=Sl(e)),Ur(e,e.l_desc),Ur(e,e.d_desc),o=wl(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=n+5,n+4<=i&&t!==-1?eo(e,t,n,r):e.strategy===cl||s===i?(me(e,(zs<<1)+(r?1:0),3),Xs(e,Ke,Yt)):(me(e,(dl<<1)+(r?1:0),3),xl(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Xs(e,e.dyn_ltree,e.dyn_dtree)),Ks(e),r&&Zs(e)},Cl=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Qt[n]+qt+1)*2]++,e.dyn_dtree[Ws(t)*2]++),e.sym_next===e.sym_end);var Bl=vl,Tl=eo,Dl=Al,El=Cl,Pl=kl,Rl={_tr_init:Bl,_tr_stored_block:Tl,_tr_flush_block:Dl,_tr_tally:El,_tr_align:Pl},tn=(e,t,n,r)=>{let i=e&65535|0,s=e>>>16&65535|0,o=0;for(;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0};const Il=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Ol=new Uint32Array(Il());var de=(e,t,n,r)=>{const i=Ol,s=r+n;e^=-1;for(let o=r;o<s;o++)e=e>>>8^i[(e^t[o])&255];return e^-1},ht={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},dt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:zl,_tr_stored_block:$r,_tr_flush_block:Fl,_tr_tally:et,_tr_align:Nl}=Rl,{Z_NO_FLUSH:tt,Z_PARTIAL_FLUSH:Ml,Z_FULL_FLUSH:Ll,Z_FINISH:Ce,Z_BLOCK:to,Z_OK:ue,Z_STREAM_END:no,Z_STREAM_ERROR:Fe,Z_DATA_ERROR:jl,Z_BUF_ERROR:Hr,Z_DEFAULT_COMPRESSION:Ul,Z_FILTERED:$l,Z_HUFFMAN_ONLY:Ln,Z_RLE:Hl,Z_FIXED:Wl,Z_DEFAULT_STRATEGY:Gl,Z_UNKNOWN:Vl,Z_DEFLATED:jn}=dt,Kl=9,Zl=15,ql=8,Xl=29,Wr=256+1+Xl,Yl=30,Jl=19,Ql=2*Wr+1,eh=15,Y=3,nt=258,Ne=nt+Y+1,th=32,Bt=42,Gr=57,Vr=69,Kr=73,Zr=91,qr=103,ft=113,nn=666,be=1,Tt=2,ut=3,Dt=4,nh=3,gt=(e,t)=>(e.msg=ht[t],t),ro=e=>e*2-(e>4?9:0),rt=e=>{let t=e.length;for(;--t>=0;)e[t]=0},rh=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let it=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const xe=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Se=(e,t)=>{Fl(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,xe(e.strm)},Q=(e,t)=>{e.pending_buf[e.pending++]=t},rn=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Xr=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=tn(e.adler,t,i,n):e.state.wrap===2&&(e.adler=de(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},io=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,s,o=e.prev_length,c=e.nice_match;const l=e.strstart>e.w_size-Ne?e.strstart-(e.w_size-Ne):0,a=e.window,h=e.w_mask,f=e.prev,u=e.strstart+nt;let d=a[r+o-1],_=a[r+o];e.prev_length>=e.good_match&&(n>>=2),c>e.lookahead&&(c=e.lookahead);do if(i=t,!(a[i+o]!==_||a[i+o-1]!==d||a[i]!==a[r]||a[++i]!==a[r+1])){r+=2,i++;do;while(a[++r]===a[++i]&&a[++r]===a[++i]&&a[++r]===a[++i]&&a[++r]===a[++i]&&a[++r]===a[++i]&&a[++r]===a[++i]&&a[++r]===a[++i]&&a[++r]===a[++i]&&r<u);if(s=nt-(u-r),r=u-nt,s>o){if(e.match_start=t,o=s,s>=c)break;d=a[r+o-1],_=a[r+o]}}while((t=f[t&h])>l&&--n!==0);return o<=e.lookahead?o:e.lookahead},Et=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ne)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),rh(e),r+=t),e.strm.avail_in===0)break;if(n=Xr(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=Y)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=it(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=it(e,e.ins_h,e.window[i+Y-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<Y)););}while(e.lookahead<Ne&&e.strm.avail_in!==0)},so=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,s,o=0,c=e.strm.avail_in;do{if(r=65535,s=e.bi_valid+42>>3,e.strm.avail_out<s||(s=e.strm.avail_out-s,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>s&&(r=s),r<n&&(r===0&&t!==Ce||t===tt||r!==i+e.strm.avail_in)))break;o=t===Ce&&r===i+e.strm.avail_in?1:0,$r(e,0,0,o),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,xe(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Xr(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(o===0);return c-=e.strm.avail_in,c&&(c>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=c&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-c,e.strm.next_in),e.strstart),e.strstart+=c,e.insert+=c>e.w_size-e.insert?e.w_size-e.insert:c),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),o?Dt:t!==tt&&t!==Ce&&e.strm.avail_in===0&&e.strstart===e.block_start?Tt:(s=e.window_size-e.strstart,e.strm.avail_in>s&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,s+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),s>e.strm.avail_in&&(s=e.strm.avail_in),s&&(Xr(e.strm,e.window,e.strstart,s),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.high_water<e.strstart&&(e.high_water=e.strstart),s=e.bi_valid+42>>3,s=e.pending_buf_size-s>65535?65535:e.pending_buf_size-s,n=s>e.w_size?e.w_size:s,i=e.strstart-e.block_start,(i>=n||(i||t===Ce)&&t!==tt&&e.strm.avail_in===0&&i<=s)&&(r=i>s?s:i,o=t===Ce&&e.strm.avail_in===0&&r===i?1:0,$r(e,e.block_start,r,o),e.block_start+=r,xe(e.strm)),o?ut:be)},Yr=(e,t)=>{let n,r;for(;;){if(e.lookahead<Ne){if(Et(e),e.lookahead<Ne&&t===tt)return be;if(e.lookahead===0)break}if(n=0,e.lookahead>=Y&&(e.ins_h=it(e,e.ins_h,e.window[e.strstart+Y-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Ne&&(e.match_length=io(e,n)),e.match_length>=Y)if(r=et(e,e.strstart-e.match_start,e.match_length-Y),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Y){e.match_length--;do e.strstart++,e.ins_h=it(e,e.ins_h,e.window[e.strstart+Y-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=it(e,e.ins_h,e.window[e.strstart+1]);else r=et(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Se(e,!1),e.strm.avail_out===0))return be}return e.insert=e.strstart<Y-1?e.strstart:Y-1,t===Ce?(Se(e,!0),e.strm.avail_out===0?ut:Dt):e.sym_next&&(Se(e,!1),e.strm.avail_out===0)?be:Tt},Pt=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<Ne){if(Et(e),e.lookahead<Ne&&t===tt)return be;if(e.lookahead===0)break}if(n=0,e.lookahead>=Y&&(e.ins_h=it(e,e.ins_h,e.window[e.strstart+Y-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Y-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Ne&&(e.match_length=io(e,n),e.match_length<=5&&(e.strategy===$l||e.match_length===Y&&e.strstart-e.match_start>4096)&&(e.match_length=Y-1)),e.prev_length>=Y&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-Y,r=et(e,e.strstart-1-e.prev_match,e.prev_length-Y),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=it(e,e.ins_h,e.window[e.strstart+Y-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Y-1,e.strstart++,r&&(Se(e,!1),e.strm.avail_out===0))return be}else if(e.match_available){if(r=et(e,0,e.window[e.strstart-1]),r&&Se(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return be}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=et(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Y-1?e.strstart:Y-1,t===Ce?(Se(e,!0),e.strm.avail_out===0?ut:Dt):e.sym_next&&(Se(e,!1),e.strm.avail_out===0)?be:Tt},ih=(e,t)=>{let n,r,i,s;const o=e.window;for(;;){if(e.lookahead<=nt){if(Et(e),e.lookahead<=nt&&t===tt)return be;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Y&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){s=e.strstart+nt;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<s);e.match_length=nt-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Y?(n=et(e,1,e.match_length-Y),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=et(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Se(e,!1),e.strm.avail_out===0))return be}return e.insert=0,t===Ce?(Se(e,!0),e.strm.avail_out===0?ut:Dt):e.sym_next&&(Se(e,!1),e.strm.avail_out===0)?be:Tt},sh=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Et(e),e.lookahead===0)){if(t===tt)return be;break}if(e.match_length=0,n=et(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Se(e,!1),e.strm.avail_out===0))return be}return e.insert=0,t===Ce?(Se(e,!0),e.strm.avail_out===0?ut:Dt):e.sym_next&&(Se(e,!1),e.strm.avail_out===0)?be:Tt};function Me(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const sn=[new Me(0,0,0,0,so),new Me(4,4,8,4,Yr),new Me(4,5,16,8,Yr),new Me(4,6,32,32,Yr),new Me(4,4,16,16,Pt),new Me(8,16,32,32,Pt),new Me(8,16,128,128,Pt),new Me(8,32,128,256,Pt),new Me(32,128,258,1024,Pt),new Me(32,258,258,4096,Pt)],oh=e=>{e.window_size=2*e.w_size,rt(e.head),e.max_lazy_match=sn[e.level].max_lazy,e.good_match=sn[e.level].good_length,e.nice_match=sn[e.level].nice_length,e.max_chain_length=sn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Y-1,e.match_available=0,e.ins_h=0};function ah(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=jn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Ql*2),this.dyn_dtree=new Uint16Array((2*Yl+1)*2),this.bl_tree=new Uint16Array((2*Jl+1)*2),rt(this.dyn_ltree),rt(this.dyn_dtree),rt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(eh+1),this.heap=new Uint16Array(2*Wr+1),rt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Wr+1),rt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const on=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Bt&&t.status!==Gr&&t.status!==Vr&&t.status!==Kr&&t.status!==Zr&&t.status!==qr&&t.status!==ft&&t.status!==nn?1:0},oo=e=>{if(on(e))return gt(e,Fe);e.total_in=e.total_out=0,e.data_type=Vl;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Gr:t.wrap?Bt:ft,e.adler=t.wrap===2?0:1,t.last_flush=-2,zl(t),ue},ao=e=>{const t=oo(e);return t===ue&&oh(e.state),t},ch=(e,t)=>on(e)||e.state.wrap!==2?Fe:(e.state.gzhead=t,ue),co=(e,t,n,r,i,s)=>{if(!e)return Fe;let o=1;if(t===Ul&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>Kl||n!==jn||r<8||r>15||t<0||t>9||s<0||s>Wl||r===8&&o!==1)return gt(e,Fe);r===8&&(r=9);const c=new ah;return e.state=c,c.strm=e,c.status=Bt,c.wrap=o,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=i+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+Y-1)/Y),c.window=new Uint8Array(c.w_size*2),c.head=new Uint16Array(c.hash_size),c.prev=new Uint16Array(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new Uint8Array(c.pending_buf_size),c.sym_buf=c.lit_bufsize,c.sym_end=(c.lit_bufsize-1)*3,c.level=t,c.strategy=s,c.method=n,ao(e)},lh=(e,t)=>co(e,t,jn,Zl,ql,Gl),hh=(e,t)=>{if(on(e)||t>to||t<0)return e?gt(e,Fe):Fe;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===nn&&t!==Ce)return gt(e,e.avail_out===0?Hr:Fe);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(xe(e),e.avail_out===0)return n.last_flush=-1,ue}else if(e.avail_in===0&&ro(t)<=ro(r)&&t!==Ce)return gt(e,Hr);if(n.status===nn&&e.avail_in!==0)return gt(e,Hr);if(n.status===Bt&&n.wrap===0&&(n.status=ft),n.status===Bt){let i=jn+(n.w_bits-8<<4)<<8,s=-1;if(n.strategy>=Ln||n.level<2?s=0:n.level<6?s=1:n.level===6?s=2:s=3,i|=s<<6,n.strstart!==0&&(i|=th),i+=31-i%31,rn(n,i),n.strstart!==0&&(rn(n,e.adler>>>16),rn(n,e.adler&65535)),e.adler=1,n.status=ft,xe(e),n.pending!==0)return n.last_flush=-1,ue}if(n.status===Gr){if(e.adler=0,Q(n,31),Q(n,139),Q(n,8),n.gzhead)Q(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Q(n,n.gzhead.time&255),Q(n,n.gzhead.time>>8&255),Q(n,n.gzhead.time>>16&255),Q(n,n.gzhead.time>>24&255),Q(n,n.level===9?2:n.strategy>=Ln||n.level<2?4:0),Q(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(Q(n,n.gzhead.extra.length&255),Q(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=de(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Vr;else if(Q(n,0),Q(n,0),Q(n,0),Q(n,0),Q(n,0),Q(n,n.level===9?2:n.strategy>=Ln||n.level<2?4:0),Q(n,nh),n.status=ft,xe(e),n.pending!==0)return n.last_flush=-1,ue}if(n.status===Vr){if(n.gzhead.extra){let i=n.pending,s=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+s>n.pending_buf_size;){let c=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+c),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=de(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=c,xe(e),n.pending!==0)return n.last_flush=-1,ue;i=0,s-=c}let o=new Uint8Array(n.gzhead.extra);n.pending_buf.set(o.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending+=s,n.gzhead.hcrc&&n.pending>i&&(e.adler=de(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Kr}if(n.status===Kr){if(n.gzhead.name){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=de(e.adler,n.pending_buf,n.pending-i,i)),xe(e),n.pending!==0)return n.last_flush=-1,ue;i=0}n.gzindex<n.gzhead.name.length?s=n.gzhead.name.charCodeAt(n.gzindex++)&255:s=0,Q(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=de(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Zr}if(n.status===Zr){if(n.gzhead.comment){let i=n.pending,s;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=de(e.adler,n.pending_buf,n.pending-i,i)),xe(e),n.pending!==0)return n.last_flush=-1,ue;i=0}n.gzindex<n.gzhead.comment.length?s=n.gzhead.comment.charCodeAt(n.gzindex++)&255:s=0,Q(n,s)}while(s!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=de(e.adler,n.pending_buf,n.pending-i,i))}n.status=qr}if(n.status===qr){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(xe(e),n.pending!==0))return n.last_flush=-1,ue;Q(n,e.adler&255),Q(n,e.adler>>8&255),e.adler=0}if(n.status=ft,xe(e),n.pending!==0)return n.last_flush=-1,ue}if(e.avail_in!==0||n.lookahead!==0||t!==tt&&n.status!==nn){let i=n.level===0?so(n,t):n.strategy===Ln?sh(n,t):n.strategy===Hl?ih(n,t):sn[n.level].func(n,t);if((i===ut||i===Dt)&&(n.status=nn),i===be||i===ut)return e.avail_out===0&&(n.last_flush=-1),ue;if(i===Tt&&(t===Ml?Nl(n):t!==to&&($r(n,0,0,!1),t===Ll&&(rt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),xe(e),e.avail_out===0))return n.last_flush=-1,ue}return t!==Ce?ue:n.wrap<=0?no:(n.wrap===2?(Q(n,e.adler&255),Q(n,e.adler>>8&255),Q(n,e.adler>>16&255),Q(n,e.adler>>24&255),Q(n,e.total_in&255),Q(n,e.total_in>>8&255),Q(n,e.total_in>>16&255),Q(n,e.total_in>>24&255)):(rn(n,e.adler>>>16),rn(n,e.adler&65535)),xe(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?ue:no)},dh=e=>{if(on(e))return Fe;const t=e.state.status;return e.state=null,t===ft?gt(e,jl):ue},fh=(e,t)=>{let n=t.length;if(on(e))return Fe;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Bt||r.lookahead)return Fe;if(i===1&&(e.adler=tn(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(rt(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(n-r.w_size,n),0),t=l,n=r.w_size}const s=e.avail_in,o=e.next_in,c=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Et(r);r.lookahead>=Y;){let l=r.strstart,a=r.lookahead-(Y-1);do r.ins_h=it(r,r.ins_h,r.window[l+Y-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--a);r.strstart=l,r.lookahead=Y-1,Et(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Y-1,r.match_available=0,e.next_in=o,e.input=c,e.avail_in=s,r.wrap=i,ue};var uh=lh,gh=co,ph=ao,bh=oo,mh=ch,_h=hh,yh=dh,wh=fh,xh="pako deflate (from Nodeca project)",an={deflateInit:uh,deflateInit2:gh,deflateReset:ph,deflateResetKeep:bh,deflateSetHeader:mh,deflate:_h,deflateEnd:yh,deflateSetDictionary:wh,deflateInfo:xh};const Sh=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var vh=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)Sh(n,r)&&(e[r]=n[r])}}return e},kh=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,s=e.length;r<s;r++){let o=e[r];n.set(o,i),i+=o.length}return n},Un={assign:vh,flattenChunks:kh};let lo=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{lo=!1}const cn=new Uint8Array(256);for(let e=0;e<256;e++)cn[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;cn[254]=cn[254]=1;var Ah=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,s,o=e.length,c=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(c),s=0,i=0;s<c;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|n&63):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|n&63):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|n&63);return t};const Ch=(e,t)=>{if(t<65534&&e.subarray&&lo)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var Bh=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const s=new Array(n*2);for(i=0,r=0;r<n;){let o=e[r++];if(o<128){s[i++]=o;continue}let c=cn[o];if(c>4){s[i++]=65533,r+=c-1;continue}for(o&=c===2?31:c===3?15:7;c>1&&r<n;)o=o<<6|e[r++]&63,c--;if(c>1){s[i++]=65533;continue}o<65536?s[i++]=o:(o-=65536,s[i++]=55296|o>>10&1023,s[i++]=56320|o&1023)}return Ch(s,i)},Th=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+cn[e[n]]>t?n:t},ln={string2buf:Ah,buf2string:Bh,utf8border:Th};function Dh(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ho=Dh;const fo=Object.prototype.toString,{Z_NO_FLUSH:Eh,Z_SYNC_FLUSH:Ph,Z_FULL_FLUSH:Rh,Z_FINISH:Ih,Z_OK:$n,Z_STREAM_END:Oh,Z_DEFAULT_COMPRESSION:zh,Z_DEFAULT_STRATEGY:Fh,Z_DEFLATED:Nh}=dt;function hn(e){this.options=Un.assign({level:zh,method:Nh,chunkSize:16384,windowBits:15,memLevel:8,strategy:Fh},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ho,this.strm.avail_out=0;let n=an.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==$n)throw new Error(ht[n]);if(t.header&&an.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=ln.string2buf(t.dictionary):fo.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=an.deflateSetDictionary(this.strm,r),n!==$n)throw new Error(ht[n]);this._dict_set=!0}}hn.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,s;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?Ih:Eh,typeof e=="string"?n.input=ln.string2buf(e):fo.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===Ph||s===Rh)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=an.deflate(n,s),i===Oh)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=an.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===$n;if(n.avail_out===0){this.onData(n.output);continue}if(s>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0},hn.prototype.onData=function(e){this.chunks.push(e)},hn.prototype.onEnd=function(e){e===$n&&(this.result=Un.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Jr(e,t){const n=new hn(t);if(n.push(e,!0),n.err)throw n.msg||ht[n.err];return n.result}function Mh(e,t){return t=t||{},t.raw=!0,Jr(e,t)}function Lh(e,t){return t=t||{},t.gzip=!0,Jr(e,t)}var jh=hn,Uh=Jr,$h=Mh,Hh=Lh,Wh=dt,Gh={Deflate:jh,deflate:Uh,deflateRaw:$h,gzip:Hh,constants:Wh};const Hn=16209,Vh=16191;var Kh=function(t,n){let r,i,s,o,c,l,a,h,f,u,d,_,w,x,y,E,v,S,I,B,A,O,R,D;const k=t.state;r=t.next_in,R=t.input,i=r+(t.avail_in-5),s=t.next_out,D=t.output,o=s-(n-t.avail_out),c=s+(t.avail_out-257),l=k.dmax,a=k.wsize,h=k.whave,f=k.wnext,u=k.window,d=k.hold,_=k.bits,w=k.lencode,x=k.distcode,y=(1<<k.lenbits)-1,E=(1<<k.distbits)-1;e:do{_<15&&(d+=R[r++]<<_,_+=8,d+=R[r++]<<_,_+=8),v=w[d&y];t:for(;;){if(S=v>>>24,d>>>=S,_-=S,S=v>>>16&255,S===0)D[s++]=v&65535;else if(S&16){I=v&65535,S&=15,S&&(_<S&&(d+=R[r++]<<_,_+=8),I+=d&(1<<S)-1,d>>>=S,_-=S),_<15&&(d+=R[r++]<<_,_+=8,d+=R[r++]<<_,_+=8),v=x[d&E];n:for(;;){if(S=v>>>24,d>>>=S,_-=S,S=v>>>16&255,S&16){if(B=v&65535,S&=15,_<S&&(d+=R[r++]<<_,_+=8,_<S&&(d+=R[r++]<<_,_+=8)),B+=d&(1<<S)-1,B>l){t.msg="invalid distance too far back",k.mode=Hn;break e}if(d>>>=S,_-=S,S=s-o,B>S){if(S=B-S,S>h&&k.sane){t.msg="invalid distance too far back",k.mode=Hn;break e}if(A=0,O=u,f===0){if(A+=a-S,S<I){I-=S;do D[s++]=u[A++];while(--S);A=s-B,O=D}}else if(f<S){if(A+=a+f-S,S-=f,S<I){I-=S;do D[s++]=u[A++];while(--S);if(A=0,f<I){S=f,I-=S;do D[s++]=u[A++];while(--S);A=s-B,O=D}}}else if(A+=f-S,S<I){I-=S;do D[s++]=u[A++];while(--S);A=s-B,O=D}for(;I>2;)D[s++]=O[A++],D[s++]=O[A++],D[s++]=O[A++],I-=3;I&&(D[s++]=O[A++],I>1&&(D[s++]=O[A++]))}else{A=s-B;do D[s++]=D[A++],D[s++]=D[A++],D[s++]=D[A++],I-=3;while(I>2);I&&(D[s++]=D[A++],I>1&&(D[s++]=D[A++]))}}else if((S&64)===0){v=x[(v&65535)+(d&(1<<S)-1)];continue n}else{t.msg="invalid distance code",k.mode=Hn;break e}break}}else if((S&64)===0){v=w[(v&65535)+(d&(1<<S)-1)];continue t}else if(S&32){k.mode=Vh;break e}else{t.msg="invalid literal/length code",k.mode=Hn;break e}break}}while(r<i&&s<c);I=_>>3,r-=I,_-=I<<3,d&=(1<<_)-1,t.next_in=r,t.next_out=s,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=s<c?257+(c-s):257-(s-c),k.hold=d,k.bits=_};const Rt=15,uo=852,go=592,po=0,Qr=1,bo=2,Zh=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),qh=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Xh=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Yh=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var dn=(e,t,n,r,i,s,o,c)=>{const l=c.bits;let a=0,h=0,f=0,u=0,d=0,_=0,w=0,x=0,y=0,E=0,v,S,I,B,A,O=null,R;const D=new Uint16Array(Rt+1),k=new Uint16Array(Rt+1);let F=null,P,W,L;for(a=0;a<=Rt;a++)D[a]=0;for(h=0;h<r;h++)D[t[n+h]]++;for(d=l,u=Rt;u>=1&&D[u]===0;u--);if(d>u&&(d=u),u===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,c.bits=1,0;for(f=1;f<u&&D[f]===0;f++);for(d<f&&(d=f),x=1,a=1;a<=Rt;a++)if(x<<=1,x-=D[a],x<0)return-1;if(x>0&&(e===po||u!==1))return-1;for(k[1]=0,a=1;a<Rt;a++)k[a+1]=k[a]+D[a];for(h=0;h<r;h++)t[n+h]!==0&&(o[k[t[n+h]]++]=h);if(e===po?(O=F=o,R=20):e===Qr?(O=Zh,F=qh,R=257):(O=Xh,F=Yh,R=0),E=0,h=0,a=f,A=s,_=d,w=0,I=-1,y=1<<d,B=y-1,e===Qr&&y>uo||e===bo&&y>go)return 1;for(;;){P=a-w,o[h]+1<R?(W=0,L=o[h]):o[h]>=R?(W=F[o[h]-R],L=O[o[h]-R]):(W=32+64,L=0),v=1<<a-w,S=1<<_,f=S;do S-=v,i[A+(E>>w)+S]=P<<24|W<<16|L|0;while(S!==0);for(v=1<<a-1;E&v;)v>>=1;if(v!==0?(E&=v-1,E+=v):E=0,h++,--D[a]===0){if(a===u)break;a=t[n+o[h]]}if(a>d&&(E&B)!==I){for(w===0&&(w=d),A+=f,_=a-w,x=1<<_;_+w<u&&(x-=D[_+w],!(x<=0));)_++,x<<=1;if(y+=1<<_,e===Qr&&y>uo||e===bo&&y>go)return 1;I=E&B,i[I]=d<<24|_<<16|A-s|0}}return E!==0&&(i[A+E]=a-w<<24|64<<16|0),c.bits=d,0};const Jh=0,mo=1,_o=2,{Z_FINISH:yo,Z_BLOCK:Qh,Z_TREES:Wn,Z_OK:pt,Z_STREAM_END:ed,Z_NEED_DICT:td,Z_STREAM_ERROR:Be,Z_DATA_ERROR:wo,Z_MEM_ERROR:xo,Z_BUF_ERROR:nd,Z_DEFLATED:So}=dt,Gn=16180,vo=16181,ko=16182,Ao=16183,Co=16184,Bo=16185,To=16186,Do=16187,Eo=16188,Po=16189,Vn=16190,Ze=16191,ei=16192,Ro=16193,ti=16194,Io=16195,Oo=16196,zo=16197,Fo=16198,Kn=16199,Zn=16200,No=16201,Mo=16202,Lo=16203,jo=16204,Uo=16205,ni=16206,$o=16207,Ho=16208,se=16209,Wo=16210,Go=16211,rd=852,id=592,sd=15,Vo=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function od(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const bt=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Gn||t.mode>Go?1:0},Ko=e=>{if(bt(e))return Be;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Gn,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(rd),t.distcode=t.distdyn=new Int32Array(id),t.sane=1,t.back=-1,pt},Zo=e=>{if(bt(e))return Be;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Ko(e)},qo=(e,t)=>{let n;if(bt(e))return Be;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Be:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Zo(e))},Xo=(e,t)=>{if(!e)return Be;const n=new od;e.state=n,n.strm=e,n.window=null,n.mode=Gn;const r=qo(e,t);return r!==pt&&(e.state=null),r},ad=e=>Xo(e,sd);let Yo=!0,ri,ii;const cd=e=>{if(Yo){ri=new Int32Array(512),ii=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(dn(mo,e.lens,0,288,ri,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;dn(_o,e.lens,0,32,ii,0,e.work,{bits:5}),Yo=!1}e.lencode=ri,e.lenbits=9,e.distcode=ii,e.distbits=5},Jo=(e,t,n,r)=>{let i;const s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),r>=s.wsize?(s.window.set(t.subarray(n-s.wsize,n),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),s.window.set(t.subarray(n-r,n-r+i),s.wnext),r-=i,r?(s.window.set(t.subarray(n-r,n),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},ld=(e,t)=>{let n,r,i,s,o,c,l,a,h,f,u,d,_,w,x=0,y,E,v,S,I,B,A,O;const R=new Uint8Array(4);let D,k;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(bt(e)||!e.output||!e.input&&e.avail_in!==0)return Be;n=e.state,n.mode===Ze&&(n.mode=ei),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,c=e.avail_in,a=n.hold,h=n.bits,f=c,u=l,O=pt;e:for(;;)switch(n.mode){case Gn:if(n.wrap===0){n.mode=ei;break}for(;h<16;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(n.wrap&2&&a===35615){n.wbits===0&&(n.wbits=15),n.check=0,R[0]=a&255,R[1]=a>>>8&255,n.check=de(n.check,R,2,0),a=0,h=0,n.mode=vo;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((a&255)<<8)+(a>>8))%31){e.msg="incorrect header check",n.mode=se;break}if((a&15)!==So){e.msg="unknown compression method",n.mode=se;break}if(a>>>=4,h-=4,A=(a&15)+8,n.wbits===0&&(n.wbits=A),A>15||A>n.wbits){e.msg="invalid window size",n.mode=se;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=a&512?Po:Ze,a=0,h=0;break;case vo:for(;h<16;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(n.flags=a,(n.flags&255)!==So){e.msg="unknown compression method",n.mode=se;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=se;break}n.head&&(n.head.text=a>>8&1),n.flags&512&&n.wrap&4&&(R[0]=a&255,R[1]=a>>>8&255,n.check=de(n.check,R,2,0)),a=0,h=0,n.mode=ko;case ko:for(;h<32;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}n.head&&(n.head.time=a),n.flags&512&&n.wrap&4&&(R[0]=a&255,R[1]=a>>>8&255,R[2]=a>>>16&255,R[3]=a>>>24&255,n.check=de(n.check,R,4,0)),a=0,h=0,n.mode=Ao;case Ao:for(;h<16;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}n.head&&(n.head.xflags=a&255,n.head.os=a>>8),n.flags&512&&n.wrap&4&&(R[0]=a&255,R[1]=a>>>8&255,n.check=de(n.check,R,2,0)),a=0,h=0,n.mode=Co;case Co:if(n.flags&1024){for(;h<16;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}n.length=a,n.head&&(n.head.extra_len=a),n.flags&512&&n.wrap&4&&(R[0]=a&255,R[1]=a>>>8&255,n.check=de(n.check,R,2,0)),a=0,h=0}else n.head&&(n.head.extra=null);n.mode=Bo;case Bo:if(n.flags&1024&&(d=n.length,d>c&&(d=c),d&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(s,s+d),A)),n.flags&512&&n.wrap&4&&(n.check=de(n.check,r,d,s)),c-=d,s+=d,n.length-=d),n.length))break e;n.length=0,n.mode=To;case To:if(n.flags&2048){if(c===0)break e;d=0;do A=r[s+d++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A));while(A&&d<c);if(n.flags&512&&n.wrap&4&&(n.check=de(n.check,r,d,s)),c-=d,s+=d,A)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Do;case Do:if(n.flags&4096){if(c===0)break e;d=0;do A=r[s+d++],n.head&&A&&n.length<65536&&(n.head.comment+=String.fromCharCode(A));while(A&&d<c);if(n.flags&512&&n.wrap&4&&(n.check=de(n.check,r,d,s)),c-=d,s+=d,A)break e}else n.head&&(n.head.comment=null);n.mode=Eo;case Eo:if(n.flags&512){for(;h<16;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(n.wrap&4&&a!==(n.check&65535)){e.msg="header crc mismatch",n.mode=se;break}a=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ze;break;case Po:for(;h<32;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}e.adler=n.check=Vo(a),a=0,h=0,n.mode=Vn;case Vn:if(n.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=c,n.hold=a,n.bits=h,td;e.adler=n.check=1,n.mode=Ze;case Ze:if(t===Qh||t===Wn)break e;case ei:if(n.last){a>>>=h&7,h-=h&7,n.mode=ni;break}for(;h<3;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}switch(n.last=a&1,a>>>=1,h-=1,a&3){case 0:n.mode=Ro;break;case 1:if(cd(n),n.mode=Kn,t===Wn){a>>>=2,h-=2;break e}break;case 2:n.mode=Oo;break;case 3:e.msg="invalid block type",n.mode=se}a>>>=2,h-=2;break;case Ro:for(a>>>=h&7,h-=h&7;h<32;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if((a&65535)!==(a>>>16^65535)){e.msg="invalid stored block lengths",n.mode=se;break}if(n.length=a&65535,a=0,h=0,n.mode=ti,t===Wn)break e;case ti:n.mode=Io;case Io:if(d=n.length,d){if(d>c&&(d=c),d>l&&(d=l),d===0)break e;i.set(r.subarray(s,s+d),o),c-=d,s+=d,l-=d,o+=d,n.length-=d;break}n.mode=Ze;break;case Oo:for(;h<14;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(n.nlen=(a&31)+257,a>>>=5,h-=5,n.ndist=(a&31)+1,a>>>=5,h-=5,n.ncode=(a&15)+4,a>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=se;break}n.have=0,n.mode=zo;case zo:for(;n.have<n.ncode;){for(;h<3;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}n.lens[F[n.have++]]=a&7,a>>>=3,h-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},O=dn(Jh,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,O){e.msg="invalid code lengths set",n.mode=se;break}n.have=0,n.mode=Fo;case Fo:for(;n.have<n.nlen+n.ndist;){for(;x=n.lencode[a&(1<<n.lenbits)-1],y=x>>>24,E=x>>>16&255,v=x&65535,!(y<=h);){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(v<16)a>>>=y,h-=y,n.lens[n.have++]=v;else{if(v===16){for(k=y+2;h<k;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(a>>>=y,h-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=se;break}A=n.lens[n.have-1],d=3+(a&3),a>>>=2,h-=2}else if(v===17){for(k=y+3;h<k;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}a>>>=y,h-=y,A=0,d=3+(a&7),a>>>=3,h-=3}else{for(k=y+7;h<k;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}a>>>=y,h-=y,A=0,d=11+(a&127),a>>>=7,h-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=se;break}for(;d--;)n.lens[n.have++]=A}}if(n.mode===se)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=se;break}if(n.lenbits=9,D={bits:n.lenbits},O=dn(mo,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,O){e.msg="invalid literal/lengths set",n.mode=se;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},O=dn(_o,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,O){e.msg="invalid distances set",n.mode=se;break}if(n.mode=Kn,t===Wn)break e;case Kn:n.mode=Zn;case Zn:if(c>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=c,n.hold=a,n.bits=h,Kh(e,u),o=e.next_out,i=e.output,l=e.avail_out,s=e.next_in,r=e.input,c=e.avail_in,a=n.hold,h=n.bits,n.mode===Ze&&(n.back=-1);break}for(n.back=0;x=n.lencode[a&(1<<n.lenbits)-1],y=x>>>24,E=x>>>16&255,v=x&65535,!(y<=h);){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(E&&(E&240)===0){for(S=y,I=E,B=v;x=n.lencode[B+((a&(1<<S+I)-1)>>S)],y=x>>>24,E=x>>>16&255,v=x&65535,!(S+y<=h);){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}a>>>=S,h-=S,n.back+=S}if(a>>>=y,h-=y,n.back+=y,n.length=v,E===0){n.mode=Uo;break}if(E&32){n.back=-1,n.mode=Ze;break}if(E&64){e.msg="invalid literal/length code",n.mode=se;break}n.extra=E&15,n.mode=No;case No:if(n.extra){for(k=n.extra;h<k;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}n.length+=a&(1<<n.extra)-1,a>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Mo;case Mo:for(;x=n.distcode[a&(1<<n.distbits)-1],y=x>>>24,E=x>>>16&255,v=x&65535,!(y<=h);){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if((E&240)===0){for(S=y,I=E,B=v;x=n.distcode[B+((a&(1<<S+I)-1)>>S)],y=x>>>24,E=x>>>16&255,v=x&65535,!(S+y<=h);){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}a>>>=S,h-=S,n.back+=S}if(a>>>=y,h-=y,n.back+=y,E&64){e.msg="invalid distance code",n.mode=se;break}n.offset=v,n.extra=E&15,n.mode=Lo;case Lo:if(n.extra){for(k=n.extra;h<k;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}n.offset+=a&(1<<n.extra)-1,a>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=se;break}n.mode=jo;case jo:if(l===0)break e;if(d=u-l,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=se;break}d>n.wnext?(d-=n.wnext,_=n.wsize-d):_=n.wnext-d,d>n.length&&(d=n.length),w=n.window}else w=i,_=o-n.offset,d=n.length;d>l&&(d=l),l-=d,n.length-=d;do i[o++]=w[_++];while(--d);n.length===0&&(n.mode=Zn);break;case Uo:if(l===0)break e;i[o++]=n.length,l--,n.mode=Zn;break;case ni:if(n.wrap){for(;h<32;){if(c===0)break e;c--,a|=r[s++]<<h,h+=8}if(u-=l,e.total_out+=u,n.total+=u,n.wrap&4&&u&&(e.adler=n.check=n.flags?de(n.check,i,u,o-u):tn(n.check,i,u,o-u)),u=l,n.wrap&4&&(n.flags?a:Vo(a))!==n.check){e.msg="incorrect data check",n.mode=se;break}a=0,h=0}n.mode=$o;case $o:if(n.wrap&&n.flags){for(;h<32;){if(c===0)break e;c--,a+=r[s++]<<h,h+=8}if(n.wrap&4&&a!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=se;break}a=0,h=0}n.mode=Ho;case Ho:O=ed;break e;case se:O=wo;break e;case Wo:return xo;case Go:default:return Be}return e.next_out=o,e.avail_out=l,e.next_in=s,e.avail_in=c,n.hold=a,n.bits=h,(n.wsize||u!==e.avail_out&&n.mode<se&&(n.mode<ni||t!==yo))&&Jo(e,e.output,e.next_out,u-e.avail_out),f-=e.avail_in,u-=e.avail_out,e.total_in+=f,e.total_out+=u,n.total+=u,n.wrap&4&&u&&(e.adler=n.check=n.flags?de(n.check,i,u,e.next_out-u):tn(n.check,i,u,e.next_out-u)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Ze?128:0)+(n.mode===Kn||n.mode===ti?256:0),(f===0&&u===0||t===yo)&&O===pt&&(O=nd),O},hd=e=>{if(bt(e))return Be;let t=e.state;return t.window&&(t.window=null),e.state=null,pt},dd=(e,t)=>{if(bt(e))return Be;const n=e.state;return(n.wrap&2)===0?Be:(n.head=t,t.done=!1,pt)},fd=(e,t)=>{const n=t.length;let r,i,s;return bt(e)||(r=e.state,r.wrap!==0&&r.mode!==Vn)?Be:r.mode===Vn&&(i=1,i=tn(i,t,n,0),i!==r.check)?wo:(s=Jo(e,t,n,n),s?(r.mode=Wo,xo):(r.havedict=1,pt))};var ud=Zo,gd=qo,pd=Ko,bd=ad,md=Xo,_d=ld,yd=hd,wd=dd,xd=fd,Sd="pako inflate (from Nodeca project)",qe={inflateReset:ud,inflateReset2:gd,inflateResetKeep:pd,inflateInit:bd,inflateInit2:md,inflate:_d,inflateEnd:yd,inflateGetHeader:wd,inflateSetDictionary:xd,inflateInfo:Sd};function vd(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var kd=vd;const Qo=Object.prototype.toString,{Z_NO_FLUSH:Ad,Z_FINISH:Cd,Z_OK:fn,Z_STREAM_END:si,Z_NEED_DICT:oi,Z_STREAM_ERROR:Bd,Z_DATA_ERROR:ea,Z_MEM_ERROR:Td}=dt;function un(e){this.options=Un.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ho,this.strm.avail_out=0;let n=qe.inflateInit2(this.strm,t.windowBits);if(n!==fn)throw new Error(ht[n]);if(this.header=new kd,qe.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ln.string2buf(t.dictionary):Qo.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=qe.inflateSetDictionary(this.strm,t.dictionary),n!==fn)))throw new Error(ht[n])}un.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let s,o,c;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?Cd:Ad,Qo.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=qe.inflate(n,o),s===oi&&i&&(s=qe.inflateSetDictionary(n,i),s===fn?s=qe.inflate(n,o):s===ea&&(s=oi));n.avail_in>0&&s===si&&n.state.wrap>0&&e[n.next_in]!==0;)qe.inflateReset(n),s=qe.inflate(n,o);switch(s){case Bd:case ea:case oi:case Td:return this.onEnd(s),this.ended=!0,!1}if(c=n.avail_out,n.next_out&&(n.avail_out===0||s===si))if(this.options.to==="string"){let l=ln.utf8border(n.output,n.next_out),a=n.next_out-l,h=ln.buf2string(n.output,l);n.next_out=a,n.avail_out=r-a,a&&n.output.set(n.output.subarray(l,l+a),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(s===fn&&c===0)){if(s===si)return s=qe.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(n.avail_in===0)break}}return!0},un.prototype.onData=function(e){this.chunks.push(e)},un.prototype.onEnd=function(e){e===fn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Un.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ai(e,t){const n=new un(t);if(n.push(e),n.err)throw n.msg||ht[n.err];return n.result}function Dd(e,t){return t=t||{},t.raw=!0,ai(e,t)}var Ed=un,Pd=ai,Rd=Dd,Id=ai,Od=dt,zd={Inflate:Ed,inflate:Pd,inflateRaw:Rd,ungzip:Id,constants:Od};const{Deflate:Fd,deflate:Nd,deflateRaw:Md,gzip:Ld}=Gh,{Inflate:jd,inflate:Ud,inflateRaw:$d,ungzip:Hd}=zd;var Wd=Fd,Gd=Nd,Vd=Md,Kd=Ld,Zd=jd,qd=Ud,Xd=$d,Yd=Hd,Jd=dt,ci={Deflate:Wd,deflate:Gd,deflateRaw:Vd,gzip:Kd,Inflate:Zd,inflate:qd,inflateRaw:Xd,ungzip:Yd,constants:Jd};const ta=class{constructor(e,t){b(this,"major"),b(this,"minor"),this.major=String(e),this.minor=String(t)}toString(){const e=We(129);return`%PDF-${this.major}.${this.minor}
3
3
  %${e}${e}${e}${e}`}sizeInBytes(){return 12+this.major.length+this.minor.length}copyBytesInto(e,t){const n=t;return e[t++]=m.Percent,e[t++]=m.P,e[t++]=m.D,e[t++]=m.F,e[t++]=m.Dash,t+=fe(this.major,e,t),e[t++]=m.Period,t+=fe(this.minor,e,t),e[t++]=m.Newline,e[t++]=m.Percent,e[t++]=129,e[t++]=129,e[t++]=129,e[t++]=129,t-n}};let gn=ta;b(gn,"forVersion",(e,t)=>new ta(e,t));const li={},hi=class extends pe{constructor(e,t){if(e!==li)throw new Ar("PDFBool");super(),b(this,"value"),this.value=t}asBoolean(){return this.value}clone(){return this}toString(){return String(this.value)}sizeInBytes(){return this.value?4:5}copyBytesInto(e,t){return this.value?(e[t++]=m.t,e[t++]=m.r,e[t++]=m.u,e[t++]=m.e,4):(e[t++]=m.f,e[t++]=m.a,e[t++]=m.l,e[t++]=m.s,e[t++]=m.e,5)}};let mt=hi;b(mt,"True",new hi(li,!0)),b(mt,"False",new hi(li,!1));class Qd extends pe{asNull(){return null}clone(){return this}toString(){return"null"}sizeInBytes(){return 4}copyBytesInto(t,n){return t[n++]=m.n,t[n++]=m.u,t[n++]=m.l,t[n++]=m.l,4}}const _e=new Qd,qn=class extends pe{constructor(e,t){super(),b(this,"context"),b(this,"dict"),this.dict=e,this.context=t}keys(){return Array.from(this.dict.keys())}values(){return Array.from(this.dict.values())}entries(){return Array.from(this.dict.entries())}set(e,t){this.dict.set(e,t)}get(e,t=!1){const n=this.dict.get(e);if(!(n===_e&&!t))return n}has(e){const t=this.dict.get(e);return t!==void 0&&t!==_e}lookupMaybe(e,...t){const n=t.includes(_e),r=this.context.lookupMaybe(this.get(e,n),...t);if(!(r===_e&&!n))return r}lookup(e,...t){const n=t.includes(_e),r=this.context.lookup(this.get(e,n),...t);if(!(r===_e&&!n))return r}delete(e){return this.dict.delete(e)}asMap(){return new Map(this.dict)}uniqueKey(e=""){const t=this.keys();let n=p.of(this.context.addRandomSuffix(e,10));for(;t.includes(n);)n=p.of(this.context.addRandomSuffix(e,10));return n}clone(e){const t=qn.withContext(e||this.context),n=this.entries();for(let r=0,i=n.length;r<i;r++){const[s,o]=n[r];t.set(s,o)}return t}toString(){let e=`<<
4
4
  `;const t=this.entries();for(let n=0,r=t.length;n<r;n++){const[i,s]=t[n];e+=i.toString()+" "+s.toString()+`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vue-pdf-viewer/annotation",
3
3
  "private": false,
4
- "version": "1.3.0-beta.2",
4
+ "version": "1.3.0-beta.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
7
7
  "module": "./dist/index.js",