@vue-pdf-viewer/viewer 2.0.0-beta.5 → 2.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1620,7 +1620,7 @@ const Ic = "Search in Document", Ec = "Enter to search", Cc = "Previous match",
1620
1620
  passwordError: D2,
1621
1621
  dragDropFileMessage: I2
1622
1622
  };
1623
- var iQ = /* @__PURE__ */ ((l) => (l.Premium = "premium", l.Freemium = "freemium", l.Unlicense = "none", l))(iQ || {}), Ql = /* @__PURE__ */ ((l) => (l.Vertical = "Vertical", l.Horizontal = "Horizontal", l.Page = "Page", l.Wrapped = "Wrapped", l))(Ql || {}), tl = /* @__PURE__ */ ((l) => (l.SinglePage = "Single", l.DualPage = "Dual", l))(tl || {}), jl = /* @__PURE__ */ ((l) => (l.ActualSize = "actualSize", l.PageFit = "pageFit", l.PageWidth = "pageWidth", l))(jl || {}), C2 = /* @__PURE__ */ ((l) => (l.Horizontal = "Horizontal", l.Vertical = "Vertical", l.Both = "Both", l))(C2 || {}), rl = /* @__PURE__ */ ((l) => (l.INTERNAL_LINK = "internal-link", l.LINK = "link", l.FILE_ATTACHMENT = "file-attachment", l.FORM_TEXT = "form-text", l.FORM_SELECT = "form-select", l.FORM_CHECKBOX = "form-checkbox", l.FORM_RADIO = "form-radio", l.FORM_BUTTON = "form-button", l.BUTTON = "button", l))(rl || {}), SZ = /* @__PURE__ */ ((l) => (l[l.PreRender = 0] = "PreRender", l[l.DidRender = 1] = "DidRender", l))(SZ || {}), rZ = /* @__PURE__ */ ((l) => (l[l.Text = 1] = "Text", l[l.Link = 2] = "Link", l[l.FreeText = 3] = "FreeText", l[l.Line = 4] = "Line", l[l.Square = 5] = "Square", l[l.Circle = 6] = "Circle", l[l.Polygon = 7] = "Polygon", l[l.Polyline = 8] = "Polyline", l[l.Highlight = 9] = "Highlight", l[l.Underline = 10] = "Underline", l[l.Squiggly = 11] = "Squiggly", l[l.StrikeOut = 12] = "StrikeOut", l[l.Stamp = 13] = "Stamp", l[l.Caret = 14] = "Caret", l[l.Ink = 15] = "Ink", l[l.Popup = 16] = "Popup", l[l.FileAttachment = 17] = "FileAttachment", l[l.Widget = 20] = "Widget", l))(rZ || {});
1623
+ var iQ = /* @__PURE__ */ ((l) => (l.Premium = "premium", l.Freemium = "freemium", l.Unlicense = "none", l))(iQ || {}), Ql = /* @__PURE__ */ ((l) => (l.Vertical = "Vertical", l.Horizontal = "Horizontal", l.Page = "Page", l.Wrapped = "Wrapped", l))(Ql || {}), tl = /* @__PURE__ */ ((l) => (l.SinglePage = "Single", l.DualPage = "Dual", l))(tl || {}), jl = /* @__PURE__ */ ((l) => (l.ActualSize = "actualSize", l.PageFit = "pageFit", l.PageWidth = "pageWidth", l))(jl || {}), C2 = /* @__PURE__ */ ((l) => (l.Horizontal = "Horizontal", l.Vertical = "Vertical", l.Both = "Both", l))(C2 || {}), rl = /* @__PURE__ */ ((l) => (l.INTERNAL_LINK = "internal-link", l.LINK = "link", l.FILE_ATTACHMENT = "file-attachment", l.FORM_TEXT = "form-text", l.FORM_SELECT = "form-select", l.FORM_CHECKBOX = "form-checkbox", l.FORM_RADIO = "form-radio", l.FORM_BUTTON = "form-button", l.BUTTON = "button", l))(rl || {}), XZ = /* @__PURE__ */ ((l) => (l[l.PreRender = 0] = "PreRender", l[l.DidRender = 1] = "DidRender", l))(XZ || {}), rZ = /* @__PURE__ */ ((l) => (l[l.Text = 1] = "Text", l[l.Link = 2] = "Link", l[l.FreeText = 3] = "FreeText", l[l.Line = 4] = "Line", l[l.Square = 5] = "Square", l[l.Circle = 6] = "Circle", l[l.Polygon = 7] = "Polygon", l[l.Polyline = 8] = "Polyline", l[l.Highlight = 9] = "Highlight", l[l.Underline = 10] = "Underline", l[l.Squiggly = 11] = "Squiggly", l[l.StrikeOut = 12] = "StrikeOut", l[l.Stamp = 13] = "Stamp", l[l.Caret = 14] = "Caret", l[l.Ink = 15] = "Ink", l[l.Popup = 16] = "Popup", l[l.FileAttachment = 17] = "FileAttachment", l[l.Widget = 20] = "Widget", l))(rZ || {});
1624
1624
  function uQ(l) {
1625
1625
  var Z, U, F = "";
1626
1626
  if (typeof l == "string" || typeof l == "number") F += l;
@@ -1853,7 +1853,7 @@ function _2(l, ...Z) {
1853
1853
  const sl = (l) => {
1854
1854
  const Z = (U) => U[l] || [];
1855
1855
  return Z.isThemeGetter = !0, Z;
1856
- }, zQ = /^\[(?:([a-z-]+):)?(.+)\]$/i, $2 = /^\d+\/\d+$/, lt = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ut = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ft = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, dt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tU = (l) => WZ(l) || lt.has(l) || $2.test(l), eU = (l) => aZ(l, "length", nt), WZ = (l) => !!l && !Number.isNaN(Number(l)), hF = (l) => aZ(l, "number", WZ), GZ = (l) => !!l && Number.isInteger(Number(l)), Vt = (l) => l.endsWith("%") && WZ(l.slice(0, -1)), cl = (l) => zQ.test(l), zU = (l) => Ut.test(l), Wt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ct = (l) => aZ(l, Wt, LQ), Nt = (l) => aZ(l, "position", LQ), Rt = /* @__PURE__ */ new Set(["image", "url"]), bt = (l) => aZ(l, Rt, tt), at = (l) => aZ(l, "", mt), TZ = () => !0, aZ = (l, Z, U) => {
1856
+ }, zQ = /^\[(?:([a-z-]+):)?(.+)\]$/i, $2 = /^\d+\/\d+$/, lt = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ut = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ft = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, dt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tU = (l) => WZ(l) || lt.has(l) || $2.test(l), eU = (l) => nZ(l, "length", nt), WZ = (l) => !!l && !Number.isNaN(Number(l)), hF = (l) => nZ(l, "number", WZ), TZ = (l) => !!l && Number.isInteger(Number(l)), Vt = (l) => l.endsWith("%") && WZ(l.slice(0, -1)), cl = (l) => zQ.test(l), zU = (l) => Ut.test(l), Wt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ct = (l) => nZ(l, Wt, LQ), Nt = (l) => nZ(l, "position", LQ), Rt = /* @__PURE__ */ new Set(["image", "url"]), bt = (l) => nZ(l, Rt, tt), at = (l) => nZ(l, "", mt), sZ = () => !0, nZ = (l, Z, U) => {
1857
1857
  const F = zQ.exec(l);
1858
1858
  return F ? F[1] ? typeof Z == "string" ? F[1] === Z : Z.has(F[1]) : U(F[2]) : !1;
1859
1859
  }, nt = (l) => (
@@ -1867,7 +1867,7 @@ const sl = (l) => {
1867
1867
  cacheSize: 500,
1868
1868
  separator: ":",
1869
1869
  theme: {
1870
- colors: [TZ],
1870
+ colors: [sZ],
1871
1871
  spacing: [tU, eU],
1872
1872
  blur: ["none", "", zU, cl],
1873
1873
  brightness: _(),
@@ -2107,7 +2107,7 @@ const sl = (l) => {
2107
2107
  * @see https://tailwindcss.com/docs/z-index
2108
2108
  */
2109
2109
  z: [{
2110
- z: ["auto", GZ, cl]
2110
+ z: ["auto", TZ, cl]
2111
2111
  }],
2112
2112
  // Flexbox and Grid
2113
2113
  /**
@@ -2157,14 +2157,14 @@ const sl = (l) => {
2157
2157
  * @see https://tailwindcss.com/docs/order
2158
2158
  */
2159
2159
  order: [{
2160
- order: ["first", "last", "none", GZ, cl]
2160
+ order: ["first", "last", "none", TZ, cl]
2161
2161
  }],
2162
2162
  /**
2163
2163
  * Grid Template Columns
2164
2164
  * @see https://tailwindcss.com/docs/grid-template-columns
2165
2165
  */
2166
2166
  "grid-cols": [{
2167
- "grid-cols": [TZ]
2167
+ "grid-cols": [sZ]
2168
2168
  }],
2169
2169
  /**
2170
2170
  * Grid Column Start / End
@@ -2172,7 +2172,7 @@ const sl = (l) => {
2172
2172
  */
2173
2173
  "col-start-end": [{
2174
2174
  col: ["auto", {
2175
- span: ["full", GZ, cl]
2175
+ span: ["full", TZ, cl]
2176
2176
  }, cl]
2177
2177
  }],
2178
2178
  /**
@@ -2194,7 +2194,7 @@ const sl = (l) => {
2194
2194
  * @see https://tailwindcss.com/docs/grid-template-rows
2195
2195
  */
2196
2196
  "grid-rows": [{
2197
- "grid-rows": [TZ]
2197
+ "grid-rows": [sZ]
2198
2198
  }],
2199
2199
  /**
2200
2200
  * Grid Row Start / End
@@ -2202,7 +2202,7 @@ const sl = (l) => {
2202
2202
  */
2203
2203
  "row-start-end": [{
2204
2204
  row: ["auto", {
2205
- span: [GZ, cl]
2205
+ span: [TZ, cl]
2206
2206
  }, cl]
2207
2207
  }],
2208
2208
  /**
@@ -2557,7 +2557,7 @@ const sl = (l) => {
2557
2557
  * @see https://tailwindcss.com/docs/font-family
2558
2558
  */
2559
2559
  "font-family": [{
2560
- font: [TZ]
2560
+ font: [sZ]
2561
2561
  }],
2562
2562
  /**
2563
2563
  * Font Variant Numeric
@@ -3242,7 +3242,7 @@ const sl = (l) => {
3242
3242
  * @see https://tailwindcss.com/docs/box-shadow-color
3243
3243
  */
3244
3244
  "shadow-color": [{
3245
- shadow: [TZ]
3245
+ shadow: [sZ]
3246
3246
  }],
3247
3247
  /**
3248
3248
  * Opacity
@@ -3521,7 +3521,7 @@ const sl = (l) => {
3521
3521
  * @see https://tailwindcss.com/docs/rotate
3522
3522
  */
3523
3523
  rotate: [{
3524
- rotate: [GZ, cl]
3524
+ rotate: [TZ, cl]
3525
3525
  }],
3526
3526
  /**
3527
3527
  * Translate X
@@ -3966,7 +3966,7 @@ function kQ(l, Z, U, F, d, Q) {
3966
3966
  case jl.PageFit:
3967
3967
  return Math.min(
3968
3968
  (l.clientWidth - wF) / V,
3969
- (l.clientHeight - 2 * ot) / Z
3969
+ (l.clientHeight - 2 * ut) / Z
3970
3970
  );
3971
3971
  case jl.PageWidth:
3972
3972
  return (l.clientWidth - wF) / V;
@@ -4006,35 +4006,27 @@ class QZ {
4006
4006
  console.error("[VPV Error]:", ...Z);
4007
4007
  }
4008
4008
  }
4009
- const Fl = QZ.getInstance(), St = /* @__PURE__ */ new Date("2025-01-20T12:47:39.365Z"), Xt = `-----BEGIN PUBLIC KEY-----
4010
- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyrIi83Zr5AKaWO6zbZmX
4011
- qv3McVhtnPOnWCiFgf5xeaglLzEwMiXo3gALaPoBp5Q0WPOSBE9GTqwOyQUgpDNS
4012
- BuQ0cjOzQdFM3GPnKSqQThZJfjUmD9egMZDmfhcpFGPybUoicoIEFQOdX2vMFUfn
4013
- 6yjRsyvbK6UPTombYl785V8dXNnnIHa4tQC1JSaSe/bhG3e/6kbQCy9VJ23242q9
4014
- WJpx9c2sZ+bmyI0r9Zx0PfqcDJzDfKn45v96EtxGhV16OZhqkbj4ljiJ/mfqfCkx
4015
- ybkm9nvxz0hAwcEftQaxl/0cZ1RxtsRcL+V3msLsmGcs9nPqAuXecbfg9QVCi/+m
4016
- iwIDAQAB
4017
- -----END PUBLIC KEY-----`, BF = "Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.", XZ = {
4009
+ const Fl = QZ.getInstance(), St = /* @__PURE__ */ new Date("2025-01-21T02:58:35.281Z"), BF = "Please visit https://www.vue-pdf-viewer.dev/license-management/ to generate a new license key.", cZ = {
4018
4010
  invalidLicense: `You are currently using without a valid license. ${BF}`,
4019
4011
  mismatchedDomain: `Your license key is not valid for the current domain / IP. ${BF}`,
4020
4012
  expired: `Your license key has expired. ${BF}`,
4021
4013
  exceededVersion: "Your license does not support the current version of Vue PDF Viewer. The library version you are using exceeds the supported range of your license.",
4022
4014
  invalidSignature: "Invalid license key: Signature mismatch"
4023
4015
  };
4024
- function Yt(l) {
4016
+ function Xt(l) {
4025
4017
  const Z = atob(l), U = new Uint8Array(Z.length);
4026
4018
  for (let F = 0; F < Z.length; F++)
4027
4019
  U[F] = Z.charCodeAt(F);
4028
4020
  return U.buffer;
4029
4021
  }
4030
4022
  const DQ = window.crypto.getRandomValues(new Uint8Array(32)).reduce((l, Z) => l + Z.toString(16).padStart(2, "0"), "");
4031
- function ht(l) {
4023
+ function Yt(l) {
4032
4024
  const Z = l.replace(/-----BEGIN PUBLIC KEY-----/, "").replace(/-----END PUBLIC KEY-----/, "").replace(/\s+/g, ""), U = atob(Z), F = new Uint8Array(U.length);
4033
4025
  for (let d = 0; d < U.length; d++)
4034
4026
  F[d] = U.charCodeAt(d);
4035
4027
  return F.buffer;
4036
4028
  }
4037
- function Bt(l) {
4029
+ function ht(l) {
4038
4030
  try {
4039
4031
  const Z = JSON.stringify(l);
4040
4032
  return btoa(Z + DQ);
@@ -4042,7 +4034,7 @@ function Bt(l) {
4042
4034
  return Fl.error("Error encoding license data:", Z), "";
4043
4035
  }
4044
4036
  }
4045
- function pt(l) {
4037
+ function Bt(l) {
4046
4038
  if (!l) return null;
4047
4039
  try {
4048
4040
  const U = atob(l).slice(0, -DQ.length);
@@ -4051,9 +4043,9 @@ function pt(l) {
4051
4043
  return Fl.error("Error decoding license data:", Z), null;
4052
4044
  }
4053
4045
  }
4054
- async function it(l, Z = "SHA-256") {
4046
+ async function pt(l, Z = "SHA-256") {
4055
4047
  try {
4056
- const { data: U, signature: F } = JSON.parse(atob(l)), d = ht(Xt), Q = await window.crypto.subtle.importKey(
4048
+ const { data: U, signature: F } = JSON.parse(atob(l)), d = Yt(It), Q = await window.crypto.subtle.importKey(
4057
4049
  "spki",
4058
4050
  // str2ab(publicKeyContent), // Convert PEM string to ArrayBuffer
4059
4051
  d,
@@ -4064,18 +4056,18 @@ async function it(l, Z = "SHA-256") {
4064
4056
  if (!await window.crypto.subtle.verify(
4065
4057
  { name: "RSA-PSS", saltLength: 32 },
4066
4058
  Q,
4067
- Yt(F),
4059
+ Xt(F),
4068
4060
  // Convert signature to ArrayBuffer
4069
4061
  new TextEncoder().encode(atob(U))
4070
- )) throw new Error(XZ.invalidSignature);
4062
+ )) throw new Error(cZ.invalidSignature);
4071
4063
  return JSON.parse(atob(U));
4072
4064
  } catch {
4073
- throw new Error(XZ.invalidLicense);
4065
+ throw new Error(cZ.invalidLicense);
4074
4066
  }
4075
4067
  }
4076
4068
  const KY = (l) => {
4077
4069
  const Z = XQ("VPV:license", null, localStorage), U = o(
4078
- () => Z.value ? pt(Z.value) : null
4070
+ () => Z.value ? Bt(Z.value) : null
4079
4071
  ), F = hl({
4080
4072
  ...PQ,
4081
4073
  ...U.value
@@ -4088,15 +4080,15 @@ const KY = (l) => {
4088
4080
  throw new Error("Invalid expiration timestamp: value too large");
4089
4081
  const R = new Date(b * 1e3).getTime(), a = (/* @__PURE__ */ new Date()).getTime();
4090
4082
  if (R < a)
4091
- throw new Error(XZ.expired);
4083
+ throw new Error(cZ.expired);
4092
4084
  if (!N)
4093
4085
  throw new Error("License is missing available until version timestamp");
4094
4086
  if (N > Number.MAX_SAFE_INTEGER / 1e3)
4095
4087
  throw new Error("Invalid available until version timestamp: value too large");
4096
4088
  if (new Date(N * 1e3).getTime() < St.getTime())
4097
- throw new Error(XZ.exceededVersion);
4089
+ throw new Error(cZ.exceededVersion);
4098
4090
  if (!Q(W.dmt, W.dm))
4099
- throw new Error(XZ.mismatchedDomain);
4091
+ throw new Error(cZ.mismatchedDomain);
4100
4092
  };
4101
4093
  return g(
4102
4094
  d,
@@ -4104,14 +4096,14 @@ const KY = (l) => {
4104
4096
  if (W) {
4105
4097
  F.isValidating = !0;
4106
4098
  try {
4107
- const N = await it(W);
4099
+ const N = await pt(W);
4108
4100
  V(N), F.isValid = !0;
4109
4101
  } catch (N) {
4110
4102
  F.isValid = !1, F.invalidatedMessage = N instanceof Error ? N.message : String(N);
4111
4103
  } finally {
4112
4104
  F.isValidating = !1;
4113
4105
  }
4114
- Z.value = Bt({
4106
+ Z.value = ht({
4115
4107
  isValid: F.isValid,
4116
4108
  isValidating: F.isValidating
4117
4109
  });
@@ -4122,11 +4114,11 @@ const KY = (l) => {
4122
4114
  license: F
4123
4115
  };
4124
4116
  };
4125
- function ut(l) {
4117
+ function it(l) {
4126
4118
  Fl.info(
4127
- "Starting from Vue PDF Viewer v2.0.0, the licensing mechanism has been updated. Please visit https://www.vue-pdf-viewer.dev/license-management to generate a new license key and ensure the watermark is properly removed."
4119
+ "Starting from Vue PDF Viewer v2.0.0, the licensing mechanism has been updated. Please visit https://www.vue-pdf-viewer.dev/license-management to generate a new license key and ensure the watermark is properly removed."
4128
4120
  );
4129
- const Z = P(jQ, hl({ ...PQ })), U = P(OQ, void 0), F = u(null), d = (Q, V = "You are currently using without a valid license or matching IP / domains.") => {
4121
+ const Z = P(jQ, hl({ ...PQ })), U = P(OQ, void 0), F = u(null), d = (Q, V = cZ.invalidLicense) => {
4130
4122
  F.value && (F.value.remove(), F.value = null);
4131
4123
  const W = st(Q);
4132
4124
  Fl.warn(V), F.value = W;
@@ -4193,16 +4185,24 @@ jl.PageFit, Ql.Vertical, tl.SinglePage;
4193
4185
  const L0 = {
4194
4186
  left: 0,
4195
4187
  top: 0
4196
- }, MU = 100, UZ = 0.25, pF = 10, wF = 20, ot = 1, iF = 0, yt = 4, nd = Symbol(), et = {
4188
+ }, MU = 100, UZ = 0.25, pF = 10, wF = 20, ut = 1, iF = 0, ot = 4, nd = Symbol(), yt = {
4197
4189
  keyword: "",
4198
4190
  regExp: new RegExp(" "),
4199
4191
  wholeWords: !1
4200
- }, k0 = "vpv-highlight__text-current", IQ = Symbol(), zt = Symbol(), EQ = Symbol(), nZ = Symbol(), Lt = Symbol(), md = Symbol(), kt = Symbol(), HU = Symbol(), QF = Symbol(), wU = Symbol(), VF = Symbol(), Dt = Symbol(), WF = Symbol(), CQ = Symbol(), wQ = Symbol(), xQ = Symbol(), td = Symbol(), jQ = Symbol(), OQ = Symbol(), KQ = Symbol(), Jd = Symbol(), gQ = Symbol(), vQ = Symbol(), rQ = Symbol(), HQ = Symbol(), El = Symbol(), It = Symbol();
4192
+ }, k0 = "vpv-highlight__text-current", IQ = Symbol(), et = Symbol(), EQ = Symbol(), mZ = Symbol(), zt = Symbol(), md = Symbol(), Lt = Symbol(), HU = Symbol(), QF = Symbol(), wU = Symbol(), VF = Symbol(), kt = Symbol(), WF = Symbol(), CQ = Symbol(), wQ = Symbol(), xQ = Symbol(), td = Symbol(), jQ = Symbol(), OQ = Symbol(), KQ = Symbol(), Jd = Symbol(), gQ = Symbol(), vQ = Symbol(), rQ = Symbol(), HQ = Symbol(), El = Symbol(), Dt = Symbol();
4201
4193
  iQ.Unlicense;
4202
4194
  const PQ = {
4203
4195
  isValidating: !0,
4204
4196
  isValid: !1
4205
- };
4197
+ }, It = `-----BEGIN PUBLIC KEY-----
4198
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyrIi83Zr5AKaWO6zbZmX
4199
+ qv3McVhtnPOnWCiFgf5xeaglLzEwMiXo3gALaPoBp5Q0WPOSBE9GTqwOyQUgpDNS
4200
+ BuQ0cjOzQdFM3GPnKSqQThZJfjUmD9egMZDmfhcpFGPybUoicoIEFQOdX2vMFUfn
4201
+ 6yjRsyvbK6UPTombYl785V8dXNnnIHa4tQC1JSaSe/bhG3e/6kbQCy9VJ23242q9
4202
+ WJpx9c2sZ+bmyI0r9Zx0PfqcDJzDfKn45v96EtxGhV16OZhqkbj4ljiJ/mfqfCkx
4203
+ ybkm9nvxz0hAwcEftQaxl/0cZ1RxtsRcL+V3msLsmGcs9nPqAuXecbfg9QVCi/+m
4204
+ iwIDAQAB
4205
+ -----END PUBLIC KEY-----`;
4206
4206
  function fQ(l, Z = !0) {
4207
4207
  const { initialScrollMode: U, initialViewMode: F } = l;
4208
4208
  if (!U)
@@ -4924,7 +4924,7 @@ const sJ = (l, Z) => {
4924
4924
  U[F] = d;
4925
4925
  return U;
4926
4926
  }, qZ = /* @__PURE__ */ ll(BJ, [["__scopeId", "data-v-2a52b39a"]]), E0 = ["click", "dblclick", "mouseover", "input", "change"];
4927
- function sZ(l, Z, U) {
4927
+ function SZ(l, Z, U) {
4928
4928
  const F = [];
4929
4929
  if (U)
4930
4930
  for (const d of U)
@@ -5040,7 +5040,7 @@ function yJ(l, Z, U) {
5040
5040
  if (F.className === "linkAnnotation" && l.type === "click") {
5041
5041
  const d = F.dataset?.annotationId;
5042
5042
  if (d) {
5043
- const Q = sZ("id", d, U);
5043
+ const Q = SZ("id", d, U);
5044
5044
  if (Q.length)
5045
5045
  return oJ(Q[0], Z);
5046
5046
  }
@@ -5053,7 +5053,7 @@ function yJ(l, Z, U) {
5053
5053
  C0(F);
5054
5054
  const d = F.dataset.annotationId;
5055
5055
  if (d && l.type === "dblclick")
5056
- return pJ(sZ("id", d, U)[0]);
5056
+ return pJ(SZ("id", d, U)[0]);
5057
5057
  } else if (F.className.includes("textWidgetAnnotation") && l.type === "input") {
5058
5058
  let d = F.getElementsByTagName("input")[0];
5059
5059
  return d || (d = F.getElementsByTagName("textarea")[0]), ZZ(d);
@@ -5065,8 +5065,8 @@ function yJ(l, Z, U) {
5065
5065
  if (F.className.includes("buttonWidgetAnnotation radioButton") && l.type === "change") {
5066
5066
  const d = F.dataset.annotationId;
5067
5067
  if (d) {
5068
- const Q = sZ("id", d, U)[0], V = [];
5069
- for (const W of sZ(
5068
+ const Q = SZ("id", d, U)[0], V = [];
5069
+ for (const W of SZ(
5070
5070
  "fieldName",
5071
5071
  Q.fieldName,
5072
5072
  U
@@ -5081,7 +5081,7 @@ function yJ(l, Z, U) {
5081
5081
  } else if (F.className.includes("buttonWidgetAnnotation pushButton") && l.type === "click") {
5082
5082
  const d = F.dataset.annotationId;
5083
5083
  if (d) {
5084
- const Q = sZ("id", d, U)[0];
5084
+ const Q = SZ("id", d, U)[0];
5085
5085
  Fl.debug("Annotation `pushButton`", Q);
5086
5086
  const { action: V } = Q;
5087
5087
  return V && ["Print", "SaveAs"].includes(V) ? { type: rl.BUTTON, data: Q } : Q.resetForm ? ZZ(
@@ -5433,7 +5433,7 @@ const zJ = /^([^\w]*)(javascript|data|vbscript)/im, LJ = /&#(\w+)(^\w|;)?/g, kJ
5433
5433
  keyword: l.source,
5434
5434
  regExp: l,
5435
5435
  wholeWords: U || !1
5436
- } : typeof l == "string" ? l === "" ? et : x0({
5436
+ } : typeof l == "string" ? l === "" ? yt : x0({
5437
5437
  keyword: l,
5438
5438
  matchCase: Z || !1,
5439
5439
  wholeWords: U || !1
@@ -5495,7 +5495,7 @@ const HJ = ["data-index", "title"], PJ = /* @__PURE__ */ w({
5495
5495
  const Z = l, { pageIndex: U, highlightKeywords: F } = Bl(Z), d = u(), Q = Nd(d), V = SQ(), W = u(null), N = u([]), b = Ml(), R = P(
5496
5496
  KQ,
5497
5497
  Ml({ matchCase: !1, wholeWords: !1 })
5498
- ), a = OJ, n = P(nZ, void 0), m = o(
5498
+ ), a = OJ, n = P(mZ, void 0), m = o(
5499
5499
  () => F.value.map((y) => ({
5500
5500
  ...xJ(y.keyword, y.options?.matchCase, y.options?.wholeWords),
5501
5501
  color: y.highlightColor
@@ -5689,12 +5689,12 @@ const qJ = (l, Z) => {
5689
5689
  },
5690
5690
  emits: ["rendered"],
5691
5691
  setup(l, { emit: Z }) {
5692
- const F = l, d = Z, Q = P(nZ, void 0), { page: V, width: W, height: N, intersecting: b } = Bl(F), R = o(() => hU(F.page)), a = u(), n = Ml(), m = Ml(null), G = u(SZ.PreRender);
5692
+ const F = l, d = Z, Q = P(mZ, void 0), { page: V, width: W, height: N, intersecting: b } = Bl(F), R = o(() => hU(F.page)), a = u(), n = Ml(), m = Ml(null), G = u(XZ.PreRender);
5693
5693
  return Il(() => {
5694
5694
  if (a.value)
5695
5695
  try {
5696
5696
  const T = a.value;
5697
- G.value === SZ.DidRender && d("rendered");
5697
+ G.value === XZ.DidRender && d("rendered");
5698
5698
  const { scale: t, rotation: J } = Q, s = V.value.getViewport({
5699
5699
  rotation: J,
5700
5700
  scale: t ?? 1
@@ -5721,7 +5721,7 @@ const qJ = (l, Z) => {
5721
5721
  annotationMode: bQ.ENABLE_FORMS
5722
5722
  };
5723
5723
  n.value = R.value.render(k), n.value.promise.then(() => {
5724
- if (T.hidden = !1, G.value = SZ.DidRender, F.afterCanvasLoaded) {
5724
+ if (T.hidden = !1, G.value = XZ.DidRender, F.afterCanvasLoaded) {
5725
5725
  const D = {
5726
5726
  width: s.width,
5727
5727
  height: s.height,
@@ -5741,7 +5741,7 @@ const qJ = (l, Z) => {
5741
5741
  }
5742
5742
  }), VQ(() => {
5743
5743
  const T = a.value;
5744
- T && m.value && !b.value && (T.width = 0, T.height = 0, m.value.clearRect(0, 0, T.width, T.height), G.value = SZ.PreRender);
5744
+ T && m.value && !b.value && (T.width = 0, T.height = 0, m.value.clearRect(0, 0, T.width, T.height), G.value = XZ.PreRender);
5745
5745
  }), (T, t) => (h(), $("div", {
5746
5746
  class: "vpv-core__canvas-layer",
5747
5747
  style: WU({
@@ -5785,7 +5785,7 @@ const qJ = (l, Z) => {
5785
5785
  const U = l, F = Z, { viewport: d, highlight: Q } = Bl(U), V = u(), W = u(), N = u(), b = u(null), R = Ml(), a = P(
5786
5786
  IQ,
5787
5787
  u(void 0)
5788
- ), n = P(nZ, void 0), m = Nd(V), G = o(() => U.page.pageNumber - 1), T = u([]);
5788
+ ), n = P(mZ, void 0), m = Nd(V), G = o(() => U.page.pageNumber - 1), T = u([]);
5789
5789
  async function t(B, p, i = !1) {
5790
5790
  if (!Q.value) return;
5791
5791
  const E = U.page;
@@ -5958,7 +5958,7 @@ const qJ = (l, Z) => {
5958
5958
  },
5959
5959
  emits: ["highlight", "textLoaded", "annotated", "annotationLoaded", "intersected"],
5960
5960
  setup(l, { emit: Z }) {
5961
- const U = l, F = Z, d = P(nZ), { page: Q, afterCanvasLoaded: V, annoImageResourcesPath: W } = Bl(U), { rotation: N, scale: b, pagesContainerRef: R } = Bl(d), a = u(), n = u(null), m = u(!1), G = u(), T = o(() => hU(U.page)), t = u(!1), J = P(Jd), s = u(!1);
5961
+ const U = l, F = Z, d = P(mZ), { page: Q, afterCanvasLoaded: V, annoImageResourcesPath: W } = Bl(U), { rotation: N, scale: b, pagesContainerRef: R } = Bl(d), a = u(), n = u(null), m = u(!1), G = u(), T = o(() => hU(U.page)), t = u(!1), J = P(Jd), s = u(!1);
5962
5962
  Vd(
5963
5963
  a,
5964
5964
  ([{ isIntersecting: Zl, intersectionRatio: nl }], el) => {
@@ -6360,7 +6360,7 @@ function XU(l, Z) {
6360
6360
  function YU(l) {
6361
6361
  return l.split("-")[0];
6362
6362
  }
6363
- function mZ(l) {
6363
+ function tZ(l) {
6364
6364
  return l.split("-")[1];
6365
6365
  }
6366
6366
  function Gd(l) {
@@ -6377,7 +6377,7 @@ function sd(l) {
6377
6377
  }
6378
6378
  function BM(l, Z, U) {
6379
6379
  U === void 0 && (U = !1);
6380
- const F = mZ(l), d = sd(l), Q = Td(d);
6380
+ const F = tZ(l), d = sd(l), Q = Td(d);
6381
6381
  let V = d === "x" ? F === (U ? "end" : "start") ? "right" : "left" : F === "start" ? "bottom" : "top";
6382
6382
  return Z.reference[Q] > Z.floating[Q] && (V = $Z(V)), [V, $Z(V)];
6383
6383
  }
@@ -6402,7 +6402,7 @@ function iM(l, Z, U) {
6402
6402
  }
6403
6403
  }
6404
6404
  function uM(l, Z, U, F) {
6405
- const d = mZ(l);
6405
+ const d = tZ(l);
6406
6406
  let Q = iM(YU(l), U === "start", F);
6407
6407
  return d && (Q = Q.map((V) => V + "-" + d), Z && (Q = Q.concat(Q.map(OF)))), Q;
6408
6408
  }
@@ -6482,7 +6482,7 @@ function K0(l, Z, U) {
6482
6482
  y: F.y
6483
6483
  };
6484
6484
  }
6485
- switch (mZ(Z)) {
6485
+ switch (tZ(Z)) {
6486
6486
  case "start":
6487
6487
  m[V] -= n * (U && b ? -1 : 1);
6488
6488
  break;
@@ -6622,7 +6622,7 @@ const eM = (l) => ({
6622
6622
  }, m = sd(d), G = Td(m), T = await V.getDimensions(b), t = m === "y", J = t ? "top" : "left", s = t ? "bottom" : "right", X = t ? "clientHeight" : "clientWidth", y = Q.reference[G] + Q.reference[m] - n[m] - Q.floating[G], B = n[m] - Q.reference[m], p = await (V.getOffsetParent == null ? void 0 : V.getOffsetParent(b));
6623
6623
  let i = p ? p[X] : 0;
6624
6624
  (!i || !await (V.isElement == null ? void 0 : V.isElement(p))) && (i = W.floating[X] || Q.floating[G]);
6625
- const E = y / 2 - B / 2, I = i / 2 - T[G] / 2 - 1, S = IU(a[J], I), k = IU(a[s], I), D = S, K = i - T[G] - k, C = i / 2 - T[G] / 2 + E, j = jF(D, C, K), x = !N.arrow && mZ(d) != null && C !== j && Q.reference[G] / 2 - (C < D ? S : k) - T[G] / 2 < 0, v = x ? C < D ? C - D : C - K : 0;
6625
+ const E = y / 2 - B / 2, I = i / 2 - T[G] / 2 - 1, S = IU(a[J], I), k = IU(a[s], I), D = S, K = i - T[G] - k, C = i / 2 - T[G] / 2 + E, j = jF(D, C, K), x = !N.arrow && tZ(d) != null && C !== j && Q.reference[G] / 2 - (C < D ? S : k) - T[G] / 2 < 0, v = x ? C < D ? C - D : C - K : 0;
6626
6626
  return {
6627
6627
  [m]: n[m] + v,
6628
6628
  data: {
@@ -6773,7 +6773,7 @@ async function kM(l, Z) {
6773
6773
  placement: U,
6774
6774
  platform: F,
6775
6775
  elements: d
6776
- } = l, Q = await (F.isRTL == null ? void 0 : F.isRTL(d.floating)), V = YU(U), W = mZ(U), N = EU(U) === "y", b = ["left", "top"].includes(V) ? -1 : 1, R = Q && N ? -1 : 1, a = XU(Z, l);
6776
+ } = l, Q = await (F.isRTL == null ? void 0 : F.isRTL(d.floating)), V = YU(U), W = tZ(U), N = EU(U) === "y", b = ["left", "top"].includes(V) ? -1 : 1, R = Q && N ? -1 : 1, a = XU(Z, l);
6777
6777
  let {
6778
6778
  mainAxis: n,
6779
6779
  crossAxis: m,
@@ -6930,7 +6930,7 @@ const DM = function(l) {
6930
6930
  apply: N = () => {
6931
6931
  },
6932
6932
  ...b
6933
- } = XU(l, Z), R = await hZ(Z, b), a = YU(d), n = mZ(d), m = EU(d) === "y", {
6933
+ } = XU(l, Z), R = await hZ(Z, b), a = YU(d), n = tZ(d), m = EU(d) === "y", {
6934
6934
  width: G,
6935
6935
  height: T
6936
6936
  } = Q.floating;
@@ -7009,7 +7009,7 @@ function Xd(l) {
7009
7009
  }
7010
7010
  function xM(l) {
7011
7011
  let Z = CU(l);
7012
- for (; RU(Z) && !NZ(Z); ) {
7012
+ for (; RU(Z) && !RZ(Z); ) {
7013
7013
  if (Xd(Z))
7014
7014
  return Z;
7015
7015
  if (NF(Z))
@@ -7021,7 +7021,7 @@ function xM(l) {
7021
7021
  function Yd() {
7022
7022
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
7023
7023
  }
7024
- function NZ(l) {
7024
+ function RZ(l) {
7025
7025
  return ["html", "body", "#document"].includes(PU(l));
7026
7026
  }
7027
7027
  function lU(l) {
@@ -7050,7 +7050,7 @@ function CU(l) {
7050
7050
  }
7051
7051
  function dV(l) {
7052
7052
  const Z = CU(l);
7053
- return NZ(Z) ? l.ownerDocument ? l.ownerDocument.body : l.body : RU(Z) && oZ(Z) ? Z : dV(Z);
7053
+ return RZ(Z) ? l.ownerDocument ? l.ownerDocument.body : l.body : RU(Z) && oZ(Z) ? Z : dV(Z);
7054
7054
  }
7055
7055
  function BZ(l, Z, U) {
7056
7056
  var F;
@@ -7078,7 +7078,7 @@ function QV(l) {
7078
7078
  function hd(l) {
7079
7079
  return $l(l) ? l : l.contextElement;
7080
7080
  }
7081
- function cZ(l) {
7081
+ function NZ(l) {
7082
7082
  const Z = hd(l);
7083
7083
  if (!RU(Z))
7084
7084
  return NU(1);
@@ -7108,14 +7108,14 @@ function rU(l, Z, U, F) {
7108
7108
  Z === void 0 && (Z = !1), U === void 0 && (U = !1);
7109
7109
  const d = l.getBoundingClientRect(), Q = hd(l);
7110
7110
  let V = NU(1);
7111
- Z && (F ? $l(F) && (V = cZ(F)) : V = cZ(l));
7111
+ Z && (F ? $l(F) && (V = NZ(F)) : V = NZ(l));
7112
7112
  const W = OM(Q, U, F) ? VV(Q) : NU(0);
7113
7113
  let N = (d.left + W.x) / V.x, b = (d.top + W.y) / V.y, R = d.width / V.x, a = d.height / V.y;
7114
7114
  if (Q) {
7115
7115
  const n = Pl(Q), m = F && $l(F) ? Pl(F) : F;
7116
7116
  let G = n, T = KF(G);
7117
7117
  for (; T && F && m !== G; ) {
7118
- const t = cZ(T), J = T.getBoundingClientRect(), s = lU(T), X = J.left + (T.clientLeft + parseFloat(s.paddingLeft)) * t.x, y = J.top + (T.clientTop + parseFloat(s.paddingTop)) * t.y;
7118
+ const t = NZ(T), J = T.getBoundingClientRect(), s = lU(T), X = J.left + (T.clientLeft + parseFloat(s.paddingLeft)) * t.x, y = J.top + (T.clientTop + parseFloat(s.paddingTop)) * t.y;
7119
7119
  N *= t.x, b *= t.y, R *= t.x, a *= t.y, N += X, b += y, G = Pl(T), T = KF(G);
7120
7120
  }
7121
7121
  }
@@ -7158,7 +7158,7 @@ function KM(l) {
7158
7158
  const R = NU(0), a = RU(F);
7159
7159
  if ((a || !a && !Q) && ((PU(F) !== "body" || oZ(V)) && (N = RF(F)), RU(F))) {
7160
7160
  const m = rU(F);
7161
- b = cZ(F), R.x = m.x + F.clientLeft, R.y = m.y + F.clientTop;
7161
+ b = NZ(F), R.x = m.x + F.clientLeft, R.y = m.y + F.clientTop;
7162
7162
  }
7163
7163
  const n = V && !a && !Q ? WV(V, N, !0) : NU(0);
7164
7164
  return {
@@ -7198,7 +7198,7 @@ function rM(l, Z) {
7198
7198
  };
7199
7199
  }
7200
7200
  function HM(l, Z) {
7201
- const U = rU(l, !0, Z === "fixed"), F = U.top + l.clientTop, d = U.left + l.clientLeft, Q = RU(l) ? cZ(l) : NU(1), V = l.clientWidth * Q.x, W = l.clientHeight * Q.y, N = d * Q.x, b = F * Q.y;
7201
+ const U = rU(l, !0, Z === "fixed"), F = U.top + l.clientTop, d = U.left + l.clientLeft, Q = RU(l) ? NZ(l) : NU(1), V = l.clientWidth * Q.x, W = l.clientHeight * Q.y, N = d * Q.x, b = F * Q.y;
7202
7202
  return {
7203
7203
  width: V,
7204
7204
  height: W,
@@ -7227,7 +7227,7 @@ function H0(l, Z, U) {
7227
7227
  }
7228
7228
  function cV(l, Z) {
7229
7229
  const U = CU(l);
7230
- return U === Z || !$l(U) || NZ(U) ? !1 : lU(U).position === "fixed" || cV(U, Z);
7230
+ return U === Z || !$l(U) || RZ(U) ? !1 : lU(U).position === "fixed" || cV(U, Z);
7231
7231
  }
7232
7232
  function PM(l, Z) {
7233
7233
  const U = Z.get(l);
@@ -7236,7 +7236,7 @@ function PM(l, Z) {
7236
7236
  let F = BZ(l, [], !1).filter((W) => $l(W) && PU(W) !== "body"), d = null;
7237
7237
  const Q = lU(l).position === "fixed";
7238
7238
  let V = Q ? CU(l) : l;
7239
- for (; $l(V) && !NZ(V); ) {
7239
+ for (; $l(V) && !RZ(V); ) {
7240
7240
  const W = lU(V), N = Xd(V);
7241
7241
  !N && W.position === "fixed" && (d = null), (Q ? !N && !d : !N && W.position === "static" && !!d && ["absolute", "fixed"].includes(d.position) || oZ(V) && !N && cV(l, V)) ? F = F.filter((R) => R !== V) : d = W, V = CU(V);
7242
7242
  }
@@ -7307,7 +7307,7 @@ function NV(l, Z) {
7307
7307
  return U;
7308
7308
  if (!RU(l)) {
7309
7309
  let d = CU(l);
7310
- for (; d && !NZ(d); ) {
7310
+ for (; d && !RZ(d); ) {
7311
7311
  if ($l(d) && !oF(d))
7312
7312
  return d;
7313
7313
  d = CU(d);
@@ -7317,7 +7317,7 @@ function NV(l, Z) {
7317
7317
  let F = P0(l, Z);
7318
7318
  for (; F && wM(F) && oF(F); )
7319
7319
  F = P0(F, Z);
7320
- return F && NZ(F) && oF(F) && !Xd(F) ? U : F || xM(l) || U;
7320
+ return F && RZ(F) && oF(F) && !Xd(F) ? U : F || xM(l) || U;
7321
7321
  }
7322
7322
  const _M = async function(l) {
7323
7323
  const Z = this.getOffsetParent || NV, U = this.getDimensions, F = await U(l.floating);
@@ -7342,7 +7342,7 @@ const lG = {
7342
7342
  getElementRects: _M,
7343
7343
  getClientRects: gM,
7344
7344
  getDimensions: AM,
7345
- getScale: cZ,
7345
+ getScale: NZ,
7346
7346
  isElement: $l,
7347
7347
  isRTL: $M
7348
7348
  };
@@ -7683,7 +7683,7 @@ function xU(l) {
7683
7683
  return (Z = U?.$el) != null ? Z : U;
7684
7684
  }
7685
7685
  const pd = iU ? window : void 0;
7686
- function RZ(...l) {
7686
+ function bZ(...l) {
7687
7687
  let Z, U, F, d;
7688
7688
  if (typeof l[0] == "string" || Array.isArray(l[0]) ? ([U, F, d] = l, Z = pd) : [Z, U, F, d] = l, !Z)
7689
7689
  return TG;
@@ -7718,7 +7718,7 @@ function hG(...l) {
7718
7718
  passive: V = !1,
7719
7719
  dedupe: W = !1
7720
7720
  } = F, N = YG(Z);
7721
- return RZ(d, Q, (b) => {
7721
+ return bZ(d, Q, (b) => {
7722
7722
  b.repeat && DU(W) || N(b) && U(b);
7723
7723
  }, V);
7724
7724
  }
@@ -7881,7 +7881,7 @@ const LG = nV(() => {
7881
7881
  padding: F.scrollBody.value.padding === !0 ? b : F.scrollBody.value.padding,
7882
7882
  margin: F.scrollBody.value.margin === !0 ? b : F.scrollBody.value.margin
7883
7883
  }, R) : R : { padding: 0, margin: 0 };
7884
- b > 0 && (document.body.style.paddingRight = typeof a.padding == "number" ? `${a.padding}px` : String(a.padding), document.body.style.marginRight = typeof a.margin == "number" ? `${a.margin}px` : String(a.margin), document.body.style.setProperty("--scrollbar-width", `${b}px`), document.body.style.overflow = "hidden"), q0 && (d = RZ(
7884
+ b > 0 && (document.body.style.paddingRight = typeof a.padding == "number" ? `${a.padding}px` : String(a.padding), document.body.style.marginRight = typeof a.margin == "number" ? `${a.margin}px` : String(a.margin), document.body.style.setProperty("--scrollbar-width", `${b}px`), document.body.style.overflow = "hidden"), q0 && (d = bZ(
7885
7885
  document,
7886
7886
  "touchmove",
7887
7887
  (n) => kG(n),
@@ -7940,7 +7940,7 @@ function yd(l) {
7940
7940
  return l?.value || ((U = Z.dir) == null ? void 0 : U.value) || "ltr";
7941
7941
  });
7942
7942
  }
7943
- function tZ(l) {
7943
+ function JZ(l) {
7944
7944
  const Z = UU(), U = Z?.type.emits, F = {};
7945
7945
  return U != null && U.length || console.warn(
7946
7946
  `No emitted event found. Please check component: ${Z?.type.__name}`
@@ -7988,7 +7988,7 @@ function fU(l) {
7988
7988
  });
7989
7989
  }
7990
7990
  function yl(l, Z) {
7991
- const U = fU(l), F = Z ? tZ(Z) : {};
7991
+ const U = fU(l), F = Z ? JZ(Z) : {};
7992
7992
  return o(() => ({
7993
7993
  ...U.value,
7994
7994
  ...F
@@ -8216,7 +8216,7 @@ function ed(l) {
8216
8216
  });
8217
8217
  }
8218
8218
  let fG = 0;
8219
- function bZ(l, Z = "radix") {
8219
+ function aZ(l, Z = "radix") {
8220
8220
  const U = ud({ useId: void 0 });
8221
8221
  return Y0.useId ? `${Z}-${Y0.useId()}` : U.useId ? `${Z}-${U.useId()}` : `${Z}-${++fG}`;
8222
8222
  }
@@ -8886,7 +8886,7 @@ const iV = /* @__PURE__ */ w({
8886
8886
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
8887
8887
  setup(l, { emit: Z }) {
8888
8888
  const U = l, F = Z, d = uU(), { forwardRef: Q, currentElement: V } = Vl();
8889
- return d.titleId || (d.titleId = bZ(void 0, "radix-vue-dialog-title")), d.descriptionId || (d.descriptionId = bZ(void 0, "radix-vue-dialog-description")), kl(() => {
8889
+ return d.titleId || (d.titleId = aZ(void 0, "radix-vue-dialog-title")), d.descriptionId || (d.descriptionId = aZ(void 0, "radix-vue-dialog-description")), kl(() => {
8890
8890
  d.contentElement = V, document.activeElement !== document.body && (d.triggerElement.value = document.activeElement);
8891
8891
  }), Fc.env.NODE_ENV !== "production" && YT({
8892
8892
  titleName: "DialogTitle",
@@ -8940,7 +8940,7 @@ const iV = /* @__PURE__ */ w({
8940
8940
  },
8941
8941
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
8942
8942
  setup(l, { emit: Z }) {
8943
- const U = l, F = Z, d = uU(), Q = tZ(F), { forwardRef: V, currentElement: W } = Vl();
8943
+ const U = l, F = Z, d = uU(), Q = JZ(F), { forwardRef: V, currentElement: W } = Vl();
8944
8944
  return ed(W), (N, b) => (h(), L(iV, Ul({ ...U, ...c(Q) }, {
8945
8945
  ref: c(V),
8946
8946
  "trap-focus": c(d).open.value,
@@ -8974,7 +8974,7 @@ const iV = /* @__PURE__ */ w({
8974
8974
  },
8975
8975
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
8976
8976
  setup(l, { emit: Z }) {
8977
- const U = l, F = tZ(Z);
8977
+ const U = l, F = JZ(Z);
8978
8978
  Vl();
8979
8979
  const d = uU(), Q = u(!1), V = u(!1);
8980
8980
  return (W, N) => (h(), L(iV, Ul({ ...U, ...c(F) }, {
@@ -9008,7 +9008,7 @@ const iV = /* @__PURE__ */ w({
9008
9008
  },
9009
9009
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
9010
9010
  setup(l, { emit: Z }) {
9011
- const U = l, F = Z, d = uU(), Q = tZ(F), { forwardRef: V } = Vl();
9011
+ const U = l, F = Z, d = uU(), Q = JZ(F), { forwardRef: V } = Vl();
9012
9012
  return (W, N) => (h(), L(c(AU), {
9013
9013
  present: W.forceMount || c(d).open.value
9014
9014
  }, {
@@ -9652,9 +9652,9 @@ const _T = /* @__PURE__ */ w({
9652
9652
  function $T() {
9653
9653
  const l = u(!1);
9654
9654
  return kl(() => {
9655
- RZ("keydown", () => {
9655
+ bZ("keydown", () => {
9656
9656
  l.value = !0;
9657
- }, { capture: !0, passive: !0 }), RZ(["pointerdown", "pointermove"], () => {
9657
+ }, { capture: !0, passive: !0 }), bZ(["pointerdown", "pointermove"], () => {
9658
9658
  l.value = !1;
9659
9659
  }, { capture: !0, passive: !0 });
9660
9660
  }), l;
@@ -10333,7 +10333,7 @@ const [vY, Ws] = Cl("RovingFocusGroup"), cs = /* @__PURE__ */ w({
10333
10333
  const Z = l, U = DV(), { forwardRef: F, currentElement: d } = Vl();
10334
10334
  return kl(() => {
10335
10335
  U.triggerElement = d;
10336
- }), U.triggerId || (U.triggerId = bZ(void 0, "radix-vue-dropdown-menu-trigger")), (Q, V) => (h(), L(c(_T), { "as-child": "" }, {
10336
+ }), U.triggerId || (U.triggerId = aZ(void 0, "radix-vue-dropdown-menu-trigger")), (Q, V) => (h(), L(c(_T), { "as-child": "" }, {
10337
10337
  default: M(() => [
10338
10338
  e(c(Yl), {
10339
10339
  id: c(U).triggerId,
@@ -10414,7 +10414,7 @@ const [vY, Ws] = Cl("RovingFocusGroup"), cs = /* @__PURE__ */ w({
10414
10414
  (W = F.triggerElement.value) == null || W.focus();
10415
10415
  }, 0), d.value = !1, V.preventDefault());
10416
10416
  }
10417
- return F.contentId || (F.contentId = bZ(void 0, "radix-vue-dropdown-menu-content")), (V, W) => {
10417
+ return F.contentId || (F.contentId = aZ(void 0, "radix-vue-dropdown-menu-content")), (V, W) => {
10418
10418
  var N;
10419
10419
  return h(), L(c(Js), Ul(c(U), {
10420
10420
  id: c(F).contentId,
@@ -10451,7 +10451,7 @@ const [vY, Ws] = Cl("RovingFocusGroup"), cs = /* @__PURE__ */ w({
10451
10451
  },
10452
10452
  emits: ["select"],
10453
10453
  setup(l, { emit: Z }) {
10454
- const U = l, F = tZ(Z);
10454
+ const U = l, F = JZ(Z);
10455
10455
  return Vl(), (d, Q) => (h(), L(c(LV), Gl(Xl({ ...U, ...c(F) })), {
10456
10456
  default: M(() => [
10457
10457
  z(d.$slots, "default")
@@ -10514,7 +10514,7 @@ const [vY, Ws] = Cl("RovingFocusGroup"), cs = /* @__PURE__ */ w({
10514
10514
  },
10515
10515
  emits: ["update:modelValue"],
10516
10516
  setup(l, { emit: Z }) {
10517
- const U = l, F = tZ(Z);
10517
+ const U = l, F = JZ(Z);
10518
10518
  return Vl(), (d, Q) => (h(), L(c(ss), Gl(Xl({ ...U, ...c(F) })), {
10519
10519
  default: M(() => [
10520
10520
  z(d.$slots, "default")
@@ -10804,7 +10804,7 @@ const [vY, Ws] = Cl("RovingFocusGroup"), cs = /* @__PURE__ */ w({
10804
10804
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
10805
10805
  setup(l, { emit: Z }) {
10806
10806
  const U = l, F = Z, d = eZ(), Q = yl(U, F), { forwardRef: V } = Vl();
10807
- return d.contentId || (d.contentId = bZ(void 0, "radix-vue-popover-content")), (W, N) => (h(), L(c(AU), {
10807
+ return d.contentId || (d.contentId = aZ(void 0, "radix-vue-popover-content")), (W, N) => (h(), L(c(AU), {
10808
10808
  present: W.forceMount || c(d).open.value
10809
10809
  }, {
10810
10810
  default: M(() => [
@@ -11024,7 +11024,7 @@ const wV = "tooltip.open", [jd, gs] = Cl("TooltipProvider"), vs = /* @__PURE__ *
11024
11024
  },
11025
11025
  setup(l) {
11026
11026
  const Z = l, U = mF(), F = jd();
11027
- U.contentId || (U.contentId = bZ(void 0, "radix-vue-tooltip-content"));
11027
+ U.contentId || (U.contentId = aZ(void 0, "radix-vue-tooltip-content"));
11028
11028
  const { forwardRef: d, currentElement: Q } = Vl(), V = u(!1), W = u(!1), N = o(() => U.disabled.value ? {} : {
11029
11029
  click: T,
11030
11030
  focus: m,
@@ -11115,10 +11115,10 @@ const wV = "tooltip.open", [jd, gs] = Cl("TooltipProvider"), vs = /* @__PURE__ *
11115
11115
  return a;
11116
11116
  });
11117
11117
  return kl(() => {
11118
- RZ(window, "scroll", (R) => {
11118
+ bZ(window, "scroll", (R) => {
11119
11119
  const a = R.target;
11120
11120
  a != null && a.contains(d.trigger.value) && d.onClose();
11121
- }), RZ(window, wV, d.onClose);
11121
+ }), bZ(window, wV, d.onClose);
11122
11122
  }), (R, a) => (h(), L(c(aF), {
11123
11123
  "as-child": "",
11124
11124
  "disable-outside-pointer-events": !1,
@@ -12648,7 +12648,7 @@ const sS = TS("CheckIcon", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]),
12648
12648
  },
12649
12649
  emits: ["rotateClockwise", "rotateCounterclockwise", "textSelection", "gotoFirstPage", "gotoLastPage"],
12650
12650
  setup(l, { emit: Z }) {
12651
- const U = l, F = Z, d = u(!1), Q = u(!1), V = P(El), W = P(xQ), N = P(WF), b = P(wQ), R = P(md), a = P(nZ), n = P(QF), m = Dc(), G = $F(async () => await U.print(!0)), T = o({
12651
+ const U = l, F = Z, d = u(!1), Q = u(!1), V = P(El), W = P(xQ), N = P(WF), b = P(wQ), R = P(md), a = P(mZ), n = P(QF), m = Dc(), G = $F(async () => await U.print(!0)), T = o({
12652
12652
  get() {
12653
12653
  return a.scrollMode;
12654
12654
  },
@@ -13677,7 +13677,7 @@ function bY(l) {
13677
13677
  return Z.value === Ql.Horizontal ? F.value.length : 1;
13678
13678
  }), m = (C) => {
13679
13679
  const j = F.value.at(C);
13680
- return j ? C === F.value.length - 1 ? j.height + iF + yt : j.height + iF : iF;
13680
+ return j ? C === F.value.length - 1 ? j.height + iF + ot : j.height + iF : iF;
13681
13681
  }, G = (C) => {
13682
13682
  const j = F.value.at(C);
13683
13683
  return j ? j.width : 0;
@@ -13769,9 +13769,9 @@ function bY(l) {
13769
13769
  let zl = 0, jU = 0;
13770
13770
  for (let Kl = el; Kl < _.length && (zl += _[Kl].height, jU = Kl, !(zl > v)); Kl++)
13771
13771
  ;
13772
- const yU = (jU - el + 1) * Zl, nU = Math.floor(oU / Zl) * Zl, OU = Math.ceil(a / Zl) * Zl, JZ = Math.max(0, nU - OU), ZU = nU + yU + a, _l = Math.ceil(ZU / Zl) * Zl;
13772
+ const yU = (jU - el + 1) * Zl, nU = Math.floor(oU / Zl) * Zl, OU = Math.ceil(a / Zl) * Zl, MZ = Math.max(0, nU - OU), ZU = nU + yU + a, _l = Math.ceil(ZU / Zl) * Zl;
13773
13773
  b.value = {
13774
- start: JZ,
13774
+ start: MZ,
13775
13775
  end: Math.min(F.value.length, _l)
13776
13776
  };
13777
13777
  break;
@@ -14381,7 +14381,7 @@ const sY = (l, Z) => {
14381
14381
  proxyLoaded: !1
14382
14382
  }), Wl = Ml(), _ = Ml(0), Zl = u(!1), nl = u(!1), el = u();
14383
14383
  let oU;
14384
- const zl = Ml(), jU = u(), yU = u(), nU = u("unset"), OU = Ml([]), JZ = u(!1), ZU = u(), _l = u(0), Kl = u(), mU = hl({
14384
+ const zl = Ml(), jU = u(), yU = u(), nU = u("unset"), OU = Ml([]), MZ = u(!1), ZU = u(), _l = u(0), Kl = u(), mU = hl({
14385
14385
  pdfDocument: i,
14386
14386
  pagesContainerRef: E,
14387
14387
  pageIndex: S,
@@ -14418,7 +14418,7 @@ const sY = (l, Z) => {
14418
14418
  Y[0] !== Y[1] && (_l.value = Y[1]);
14419
14419
  });
14420
14420
  const { width: Pd } = BQ(Wl);
14421
- ut(E), SJ(Wl, vd), ZJ(i, ZU, yU);
14421
+ it(E), SJ(Wl, vd), ZJ(i, ZU, yU);
14422
14422
  const $V = Mc(), { isFullscreen: lW } = Wd(E), fd = o(() => {
14423
14423
  if (!il?.value || !Object.keys(il.value).length)
14424
14424
  return 0;
@@ -14521,7 +14521,7 @@ const sY = (l, Z) => {
14521
14521
  ), {
14522
14522
  searchValue: _U,
14523
14523
  matchCount: mW,
14524
- currentSearchMatch: MZ,
14524
+ currentSearchMatch: GZ,
14525
14525
  currentSearchMatchIndex: tW,
14526
14526
  openSearch: JW,
14527
14527
  searching: W0,
@@ -14557,7 +14557,7 @@ const sY = (l, Z) => {
14557
14557
  }
14558
14558
  );
14559
14559
  const YW = (Y) => {
14560
- Y.preventDefault(), il.value?.newFileOpenable && (JZ.value = !0);
14560
+ Y.preventDefault(), il.value?.newFileOpenable && (MZ.value = !0);
14561
14561
  }, sF = () => {
14562
14562
  if (tF.value || !Zl.value) return;
14563
14563
  let Y = WW(TF.value);
@@ -14663,7 +14663,7 @@ const sY = (l, Z) => {
14663
14663
  ), g(_U, (Y) => {
14664
14664
  Y && (D.value = !0);
14665
14665
  }), g(
14666
- MZ,
14666
+ GZ,
14667
14667
  async (Y) => {
14668
14668
  if (Kl.value = void 0, await Jl(), !Y)
14669
14669
  return;
@@ -14709,7 +14709,7 @@ const sY = (l, Z) => {
14709
14709
  const Y = a.value || ad, r = Object.keys(Y);
14710
14710
  return !V.value || !r.includes(V.value) ? pQ : Y[V.value];
14711
14711
  });
14712
- bl(EQ, p), bl(Dt, zZ), bl(zt, $d), bl(nd, jU), bl(md, il), bl(kt, fd), bl(HU, Q), bl(Jd, B.loaderImage), bl(wU, Wl), bl(VF, E), bl(WF, I), bl(CQ, k), bl(wQ, gl), bl(xQ, G.value), bl(QF, qU), bl(td, U0), bl(rQ, B.iconPrint), bl(vQ, B.iconDownload), bl(gQ, B.iconOpenFile), bl(HQ, B.iconFullScreen), bl(El, G0), bl(IQ, Kl), bl(nZ, mU), bl(Lt, V0), bl(KQ, v), bl(It, FU);
14712
+ bl(EQ, p), bl(kt, zZ), bl(et, $d), bl(nd, jU), bl(md, il), bl(Lt, fd), bl(HU, Q), bl(Jd, B.loaderImage), bl(wU, Wl), bl(VF, E), bl(WF, I), bl(CQ, k), bl(wQ, gl), bl(xQ, G.value), bl(QF, qU), bl(td, U0), bl(rQ, B.iconPrint), bl(vQ, B.iconDownload), bl(gQ, B.iconOpenFile), bl(HQ, B.iconFullScreen), bl(El, G0), bl(IQ, Kl), bl(mZ, mU), bl(zt, V0), bl(KQ, v), bl(Dt, FU);
14713
14713
  const T0 = YF({
14714
14714
  goToPage: FU,
14715
14715
  totalPages: gl,
@@ -14784,8 +14784,8 @@ const sY = (l, Z) => {
14784
14784
  }, null, 8, ["open", "error-message", "onSubmitPassword"]),
14785
14785
  e(cY, {
14786
14786
  isDark: Q.value,
14787
- show: JZ.value,
14788
- "onUpdate:show": r[0] || (r[0] = (A) => JZ.value = A),
14787
+ show: MZ.value,
14788
+ "onUpdate:show": r[0] || (r[0] = (A) => MZ.value = A),
14789
14789
  onFilenameChange: _d,
14790
14790
  onSrcChange: qd
14791
14791
  }, xl({ _: 2 }, [
@@ -15223,7 +15223,7 @@ const sY = (l, Z) => {
15223
15223
  "page-index": A,
15224
15224
  "initial-text-layer": G.value,
15225
15225
  "text-layer": D.value,
15226
- "current-highlight": c(MZ)?.page === A + 1 ? c(MZ) : void 0,
15226
+ "current-highlight": c(GZ)?.page === A + 1 ? c(GZ) : void 0,
15227
15227
  "search-keyword": c(_U),
15228
15228
  "highlight-texts": c(b0),
15229
15229
  page: Tl.page,
@@ -15249,7 +15249,7 @@ const sY = (l, Z) => {
15249
15249
  "page-index": wl.index,
15250
15250
  "initial-text-layer": G.value,
15251
15251
  "text-layer": D.value,
15252
- "current-highlight": c(MZ)?.page === wl.index + 1 ? c(MZ) : void 0,
15252
+ "current-highlight": c(GZ)?.page === wl.index + 1 ? c(GZ) : void 0,
15253
15253
  afterCanvasLoaded: y.value?.[wl.data.page.pageNumber],
15254
15254
  "search-keyword": c(_U),
15255
15255
  "highlight-texts": c(b0),
@@ -15276,7 +15276,7 @@ const sY = (l, Z) => {
15276
15276
  };
15277
15277
  export {
15278
15278
  rZ as AnnotationSubType,
15279
- SZ as LayerRenderStatus,
15279
+ XZ as LayerRenderStatus,
15280
15280
  iQ as LicenseType,
15281
15281
  ad as Locales,
15282
15282
  C2 as ScrollDirection,
@@ -15288,6 +15288,6 @@ export {
15288
15288
  tl as ViewMode,
15289
15289
  jl as ZoomLevel,
15290
15290
  rY as default,
15291
- ut as useInjectedLicense,
15291
+ it as useInjectedLicense,
15292
15292
  KY as useLicense
15293
15293
  };