@sv-print/plugin-api-pdf3 0.2.2 → 0.2.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 +1 -1
- package/dist/index.mjs +101 -99
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var O=(a,n,x)=>new Promise((e,r)=>{var i=t=>{try{f(x.next(t))}catch(d){r(d)}},m=t=>{try{f(x.throw(t))}catch(d){r(d)}},f=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,m);f((x=x.apply(a,n)).next())});const N=require("@zumer/snapdom"),X=require("jspdf");(function(a,n){const x=_,e=a();for(;;)try{if(-parseInt(x(235))/1*(-parseInt(x(204))/2)+parseInt(x(265))/3*(parseInt(x(263))/4)+-parseInt(x(261))/5+-parseInt(x(255))/6+parseInt(x(226))/7+-parseInt(x(236))/8+parseInt(x(253))/9===n)break;e.push(e.shift())}catch(r){e.push(e.shift())}})(q,805112);function q(){const a=["11019785djLDsd","scale","quality","position:fixed","paperWidth","sv-print-","run","toPt","html","254XFVcJv","12482824Zgxxwp","loadAllImages","pixelRatio","#fff","getTempContainer","find","save","promise","css","log","message","resolve","getHtml","error","dpr","catch","now","5661324okfktP","length","2871960IqdRwT","portrait","toPdf 失败(可能您的图片资源无法正常加载): ","createTempContainer","then","removeTempContainer","863130tpXBwe","toCanvas","6824JfAINS","paperHeight","417VbAEiW","getContext","getOrient","svg2canvas","floor","toLocaleLowerCase","4538hqpOpY","toPdf percent: ","width","image/jpeg",".hiprint-printPanel .hiprint-printPaper","clear","queue","output","isDownload","hinnn","height","paperType","onProgress","Deferred","addPage","blob","name","printPanels","getLayoutSize","JPEG",".pdf","each"];return q=function(){return a},q()}const Q=function(a,n,x){return O(this,null,function*(){const e=_;var r=this,i=globalThis.$[e(217)](),m=!0;let f=(p,T)=>{const l=e,w=Math[l(202)](p/T*100);console[l(245)]("cur",p,"total",T),console[l(245)](l(205),w+"%")},t=x||{};if(this[e(221)][e(254)]){if(typeof n=="string"){const c=n.indexOf(".pdf")>-1?n:n+e(224);t.name=c}else t=n||{},!t[e(220)]&&(t.name=e(231)+Date[e(252)]()+e(224));const p=this.printPanels[0];let T=p[e(206)],l=p[e(214)];const w=p[e(222)](),j=t[e(230)]||w[e(230)],F=t[e(264)]||w[e(264)],J=j&&F;var d=globalThis[e(213)].mm[e(233)](j||T),D=globalThis[e(213)].mm[e(233)](F||l),u=globalThis.$.extend({backgroundColor:e(239)},t||{});const y=this[e(221)][0][e(215)],R=y!=null&&y!=""&&y!="自定义",S=this[e(200)](0)==1||J?e(256):"landscape",V=R&&!J?y[e(203)]():[d,D];var v=new X.jsPDF({orientation:S,unit:"pt",format:V}),I=yield this[e(248)](a,t);t&&(t[e(238)]&&(u[e(250)]=t[e(238)],u[e(227)]=t[e(238)]),t[e(212)]!=null&&(m=t[e(212)]),t.onProgress!=null&&(f=t[e(216)])),globalThis.$(I).css(e(206),"")[e(244)](e(214),""),this[e(258)]();var P=this[e(240)]();this[e(201)](I,u),P[e(234)](I[0]),globalThis.$(I)[e(244)](e(229));let A=P[e(241)](e(208)).length;this[e(237)](P,function(){const c=e;try{P.find(c(208))[c(225)](function(g,E){const b=c;globalThis.hinnn.queue.add(function(L){const o=_;N.snapdom[o(262)](E,u)[o(259)](function(h){const s=o;var H=h[s(266)]("2d");H.imageSmoothingEnabled=!1;var $=h.toDataURL(s(207),u[s(228)]||.92);v.addImage($,s(223),0,0,d,D),g<A-1&&v[s(218)](),f(g+1,A),L()})[o(251)](h=>{const s=o;throw new Error(h[s(246)])})}),g==A-1&&(globalThis[b(213)].queue.add(function(L){const o=b;if(m)r[o(260)](),v[o(242)](t[o(220)]);else{r[o(260)]();let h=t.type||o(219),s=v[o(211)](h);i[o(247)](s)}globalThis[o(213)].queue[o(209)]()}),globalThis[b(213)][b(210)][b(232)]())})}catch(g){console[c(249)](c(257)),console.log(g)}})}return i[e(243)]()})};function _(a,n){const x=q();return _=function(e,r){return e=e-200,x[e]},_(a,n)}function C(a,n){var x=k();return C=function(e,r){e=e-396;var i=x[e];return i},C(a,n)}(function(a,n){for(var x=C,e=a();;)try{var r=parseInt(x(396))/1+parseInt(x(398))/2+parseInt(x(400))/3+parseInt(x(397))/4*(-parseInt(x(406))/5)+parseInt(x(399))/6+-parseInt(x(401))/7*(-parseInt(x(403))/8)+-parseInt(x(407))/9;if(r===n)break;e.push(e.shift())}catch(i){e.push(e.shift())}})(k,395772);function k(){var a=["toPdf","add toPdf Api","40lbJPcP","6646320yNvcgn","newPrintTemplate","add toPdf Api to PrintTemplate","624876PapRUt","176744DHsbRP","666630qCbCOF","2254572VtSQtV","44274FIhXFl","2681ANrpQJ","0.3.0","2904IqSAna"];return k=function(){return a},k()}function U(a){var n=C;return{name:n(405),description:n(405),hooks:[{hook:n(408),name:n(409),description:n(409),priority:1,run:({template:x,options:e})=>{var r=n;Object.defineProperty(x,r(404),{value:Q,enumerable:!1,writable:!0,configurable:!0})}}],leastHiprintVersion:n(402)}}module.exports=U;
|
package/dist/index.mjs
CHANGED
|
@@ -1,131 +1,133 @@
|
|
|
1
|
-
var R = (a, n,
|
|
2
|
-
var
|
|
1
|
+
var R = (a, n, x) => new Promise((e, r) => {
|
|
2
|
+
var s = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
r(
|
|
4
|
+
f(x.next(t));
|
|
5
|
+
} catch (d) {
|
|
6
|
+
r(d);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, _ = (t) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
r(
|
|
10
|
+
f(x.throw(t));
|
|
11
|
+
} catch (d) {
|
|
12
|
+
r(d);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, f = (t) => t.done ? e(t.value) : Promise.resolve(t.value).then(s, _);
|
|
15
|
+
f((x = x.apply(a, n)).next());
|
|
16
16
|
});
|
|
17
|
-
import { snapdom as
|
|
18
|
-
import { jsPDF as
|
|
17
|
+
import { snapdom as N } from "@zumer/snapdom";
|
|
18
|
+
import { jsPDF as X } from "jspdf";
|
|
19
19
|
(function(a, n) {
|
|
20
|
-
const
|
|
20
|
+
const x = b, e = a();
|
|
21
21
|
for (; ; )
|
|
22
22
|
try {
|
|
23
|
-
if (-parseInt(
|
|
24
|
-
|
|
23
|
+
if (-parseInt(x(235)) / 1 * (-parseInt(x(204)) / 2) + parseInt(x(265)) / 3 * (parseInt(x(263)) / 4) + -parseInt(x(261)) / 5 + -parseInt(x(255)) / 6 + parseInt(x(226)) / 7 + -parseInt(x(236)) / 8 + parseInt(x(253)) / 9 === n) break;
|
|
24
|
+
e.push(e.shift());
|
|
25
25
|
} catch (r) {
|
|
26
|
-
|
|
26
|
+
e.push(e.shift());
|
|
27
27
|
}
|
|
28
|
-
})(q,
|
|
29
|
-
|
|
28
|
+
})(q, 805112);
|
|
29
|
+
function q() {
|
|
30
|
+
const a = ["11019785djLDsd", "scale", "quality", "position:fixed", "paperWidth", "sv-print-", "run", "toPt", "html", "254XFVcJv", "12482824Zgxxwp", "loadAllImages", "pixelRatio", "#fff", "getTempContainer", "find", "save", "promise", "css", "log", "message", "resolve", "getHtml", "error", "dpr", "catch", "now", "5661324okfktP", "length", "2871960IqdRwT", "portrait", "toPdf 失败(可能您的图片资源无法正常加载): ", "createTempContainer", "then", "removeTempContainer", "863130tpXBwe", "toCanvas", "6824JfAINS", "paperHeight", "417VbAEiW", "getContext", "getOrient", "svg2canvas", "floor", "toLocaleLowerCase", "4538hqpOpY", "toPdf percent: ", "width", "image/jpeg", ".hiprint-printPanel .hiprint-printPaper", "clear", "queue", "output", "isDownload", "hinnn", "height", "paperType", "onProgress", "Deferred", "addPage", "blob", "name", "printPanels", "getLayoutSize", "JPEG", ".pdf", "each"];
|
|
31
|
+
return q = function() {
|
|
32
|
+
return a;
|
|
33
|
+
}, q();
|
|
34
|
+
}
|
|
35
|
+
const Q = function(a, n, x) {
|
|
30
36
|
return R(this, null, function* () {
|
|
31
|
-
const
|
|
32
|
-
var r = this,
|
|
33
|
-
let
|
|
34
|
-
const l =
|
|
35
|
-
console[l(
|
|
36
|
-
},
|
|
37
|
-
if (this[
|
|
38
|
-
if (typeof n
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
} else
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
const e = b;
|
|
38
|
+
var r = this, s = globalThis.$[e(217)](), _ = !0;
|
|
39
|
+
let f = (p, T) => {
|
|
40
|
+
const l = e, w = Math[l(202)](p / T * 100);
|
|
41
|
+
console[l(245)]("cur", p, "total", T), console[l(245)](l(205), w + "%");
|
|
42
|
+
}, t = x || {};
|
|
43
|
+
if (this[e(221)][e(254)]) {
|
|
44
|
+
if (typeof n == "string") {
|
|
45
|
+
const c = n.indexOf(".pdf") > -1 ? n : n + e(224);
|
|
46
|
+
t.name = c;
|
|
47
|
+
} else t = n || {}, !t[e(220)] && (t.name = e(231) + Date[e(252)]() + e(224));
|
|
48
|
+
const p = this.printPanels[0];
|
|
49
|
+
let T = p[e(206)], l = p[e(214)];
|
|
50
|
+
const w = p[e(222)](), F = t[e(230)] || w[e(230)], J = t[e(264)] || w[e(264)], L = F && J;
|
|
51
|
+
var d = globalThis[e(213)].mm[e(233)](F || T), D = globalThis[e(213)].mm[e(233)](J || l), u = globalThis.$.extend({ backgroundColor: e(239) }, t || {});
|
|
52
|
+
const y = this[e(221)][0][e(215)], S = y != null && y != "" && y != "自定义", V = this[e(200)](0) == 1 || L ? e(256) : "landscape", j = S && !L ? y[e(203)]() : [d, D];
|
|
53
|
+
var v = new X({ orientation: V, unit: "pt", format: j }), I = yield this[e(248)](a, t);
|
|
54
|
+
t && (t[e(238)] && (u[e(250)] = t[e(238)], u[e(227)] = t[e(238)]), t[e(212)] != null && (_ = t[e(212)]), t.onProgress != null && (f = t[e(216)])), globalThis.$(I).css(e(206), "")[e(244)](e(214), ""), this[e(258)]();
|
|
55
|
+
var P = this[e(240)]();
|
|
56
|
+
this[e(201)](I, u), P[e(234)](I[0]), globalThis.$(I)[e(244)](e(229));
|
|
57
|
+
let A = P[e(241)](e(208)).length;
|
|
58
|
+
this[e(237)](P, function() {
|
|
59
|
+
const c = e;
|
|
53
60
|
try {
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
globalThis
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
v.addImage(
|
|
64
|
-
})[
|
|
65
|
-
|
|
61
|
+
P.find(c(208))[c(225)](function(g, E) {
|
|
62
|
+
const m = c;
|
|
63
|
+
globalThis.hinnn.queue.add(function(O) {
|
|
64
|
+
const o = b;
|
|
65
|
+
N[o(262)](E, u)[o(259)](function(h) {
|
|
66
|
+
const i = o;
|
|
67
|
+
var H = h[i(266)]("2d");
|
|
68
|
+
H.imageSmoothingEnabled = !1;
|
|
69
|
+
var $ = h.toDataURL(i(207), u[i(228)] || 0.92);
|
|
70
|
+
v.addImage($, i(223), 0, 0, d, D), g < A - 1 && v[i(218)](), f(g + 1, A), O();
|
|
71
|
+
})[o(251)]((h) => {
|
|
72
|
+
const i = o;
|
|
73
|
+
throw new Error(h[i(246)]);
|
|
66
74
|
});
|
|
67
|
-
}),
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
75
|
+
}), g == A - 1 && (globalThis[m(213)].queue.add(function(O) {
|
|
76
|
+
const o = m;
|
|
77
|
+
if (_) r[o(260)](), v[o(242)](t[o(220)]);
|
|
70
78
|
else {
|
|
71
|
-
r[
|
|
72
|
-
let
|
|
73
|
-
|
|
79
|
+
r[o(260)]();
|
|
80
|
+
let h = t.type || o(219), i = v[o(211)](h);
|
|
81
|
+
s[o(247)](i);
|
|
74
82
|
}
|
|
75
|
-
globalThis[
|
|
76
|
-
}), globalThis[
|
|
83
|
+
globalThis[o(213)].queue[o(209)]();
|
|
84
|
+
}), globalThis[m(213)][m(210)][m(232)]());
|
|
77
85
|
});
|
|
78
|
-
} catch (
|
|
79
|
-
console[
|
|
86
|
+
} catch (g) {
|
|
87
|
+
console[c(249)](c(257)), console.log(g);
|
|
80
88
|
}
|
|
81
89
|
});
|
|
82
90
|
}
|
|
83
|
-
return
|
|
91
|
+
return s[e(243)]();
|
|
84
92
|
});
|
|
85
93
|
};
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
return
|
|
89
|
-
return
|
|
90
|
-
},
|
|
91
|
-
}
|
|
92
|
-
function q() {
|
|
93
|
-
const a = ["save", "catch", "1270116jXYvDl", "10isvtQq", "134FXOcys", "find", "css", "imageSmoothingEnabled", "toPdf 失败(可能您的图片资源无法正常加载): ", "add", "removeTempContainer", "name", "floor", "sv-print-", "hinnn", "2913lJqTSb", ".pdf", "getContext", "indexOf", "scale", "7ephwfs", "loadAllImages", "2436640DEXpzD", "toPdf percent: ", "type", "4154787eMEquO", "string", "自定义", "cur", "11468BswBuP", "isDownload", "run", ".hiprint-printPanel .hiprint-printPaper", "printPanels", "then", "log", "JPEG", "getOrient", "queue", "toPt", "position:fixed", "createTempContainer", "pixelRatio", "length", "portrait", "#fff", "paperHeight", "svg2canvas", "toLocaleLowerCase", "width", "565334qhgZZz", "paperType", "onProgress", "html", "extend", "error", "Deferred", "183uXkDZV", "getTempContainer", "paperWidth", "now", "each", "dpr", "1480820qWimoZ", "height"];
|
|
94
|
-
return q = function() {
|
|
95
|
-
return a;
|
|
96
|
-
}, q();
|
|
94
|
+
function b(a, n) {
|
|
95
|
+
const x = q();
|
|
96
|
+
return b = function(e, r) {
|
|
97
|
+
return e = e - 200, x[e];
|
|
98
|
+
}, b(a, n);
|
|
97
99
|
}
|
|
98
|
-
function
|
|
99
|
-
var
|
|
100
|
-
return
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
function C(a, n) {
|
|
101
|
+
var x = k();
|
|
102
|
+
return C = function(e, r) {
|
|
103
|
+
e = e - 396;
|
|
104
|
+
var s = x[e];
|
|
105
|
+
return s;
|
|
106
|
+
}, C(a, n);
|
|
103
107
|
}
|
|
104
108
|
(function(a, n) {
|
|
105
|
-
for (var
|
|
109
|
+
for (var x = C, e = a(); ; )
|
|
106
110
|
try {
|
|
107
|
-
var r =
|
|
111
|
+
var r = parseInt(x(396)) / 1 + parseInt(x(398)) / 2 + parseInt(x(400)) / 3 + parseInt(x(397)) / 4 * (-parseInt(x(406)) / 5) + parseInt(x(399)) / 6 + -parseInt(x(401)) / 7 * (-parseInt(x(403)) / 8) + -parseInt(x(407)) / 9;
|
|
108
112
|
if (r === n) break;
|
|
109
|
-
|
|
110
|
-
} catch (
|
|
111
|
-
|
|
113
|
+
e.push(e.shift());
|
|
114
|
+
} catch (s) {
|
|
115
|
+
e.push(e.shift());
|
|
112
116
|
}
|
|
113
|
-
})(
|
|
114
|
-
function
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return p;
|
|
120
|
-
}, D(a, n);
|
|
117
|
+
})(k, 395772);
|
|
118
|
+
function k() {
|
|
119
|
+
var a = ["toPdf", "add toPdf Api", "40lbJPcP", "6646320yNvcgn", "newPrintTemplate", "add toPdf Api to PrintTemplate", "624876PapRUt", "176744DHsbRP", "666630qCbCOF", "2254572VtSQtV", "44274FIhXFl", "2681ANrpQJ", "0.3.0", "2904IqSAna"];
|
|
120
|
+
return k = function() {
|
|
121
|
+
return a;
|
|
122
|
+
}, k();
|
|
121
123
|
}
|
|
122
|
-
function
|
|
123
|
-
var n =
|
|
124
|
-
return { name: n(
|
|
124
|
+
function B(a) {
|
|
125
|
+
var n = C;
|
|
126
|
+
return { name: n(405), description: n(405), hooks: [{ hook: n(408), name: n(409), description: n(409), priority: 1, run: ({ template: x, options: e }) => {
|
|
125
127
|
var r = n;
|
|
126
|
-
Object
|
|
127
|
-
} }], leastHiprintVersion: n(
|
|
128
|
+
Object.defineProperty(x, r(404), { value: Q, enumerable: !1, writable: !0, configurable: !0 });
|
|
129
|
+
} }], leastHiprintVersion: n(402) };
|
|
128
130
|
}
|
|
129
131
|
export {
|
|
130
|
-
|
|
132
|
+
B as default
|
|
131
133
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(r,
|
|
1
|
+
(function(r,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c(require("@zumer/snapdom"),require("jspdf")):typeof define=="function"&&define.amd?define(["@zumer/snapdom","jspdf"],c):(r=typeof globalThis!="undefined"?globalThis:r||self,r.pluginApiPdf=c(r.window,r.jspdf))})(this,function(r,c){"use strict";var E=(r,c,s)=>new Promise((A,d)=>{var l=n=>{try{b(s.next(n))}catch(x){d(x)}},u=n=>{try{b(s.throw(n))}catch(x){d(x)}},b=n=>n.done?A(n.value):Promise.resolve(n.value).then(l,u);b((s=s.apply(r,c)).next())});(function(n,x){const t=d,e=n();for(;;)try{if(-parseInt(t(235))/1*(-parseInt(t(204))/2)+parseInt(t(265))/3*(parseInt(t(263))/4)+-parseInt(t(261))/5+-parseInt(t(255))/6+parseInt(t(226))/7+-parseInt(t(236))/8+parseInt(t(253))/9===x)break;e.push(e.shift())}catch(i){e.push(e.shift())}})(s,805112);function s(){const n=["11019785djLDsd","scale","quality","position:fixed","paperWidth","sv-print-","run","toPt","html","254XFVcJv","12482824Zgxxwp","loadAllImages","pixelRatio","#fff","getTempContainer","find","save","promise","css","log","message","resolve","getHtml","error","dpr","catch","now","5661324okfktP","length","2871960IqdRwT","portrait","toPdf 失败(可能您的图片资源无法正常加载): ","createTempContainer","then","removeTempContainer","863130tpXBwe","toCanvas","6824JfAINS","paperHeight","417VbAEiW","getContext","getOrient","svg2canvas","floor","toLocaleLowerCase","4538hqpOpY","toPdf percent: ","width","image/jpeg",".hiprint-printPanel .hiprint-printPaper","clear","queue","output","isDownload","hinnn","height","paperType","onProgress","Deferred","addPage","blob","name","printPanels","getLayoutSize","JPEG",".pdf","each"];return s=function(){return n},s()}const A=function(n,x,t){return E(this,null,function*(){const e=d;var i=this,h=globalThis.$[e(217)](),D=!0;let F=(g,q)=>{const m=e,C=Math[m(202)](g/q*100);console[m(245)]("cur",g,"total",q),console[m(245)](m(205),C+"%")},o=t||{};if(this[e(221)][e(254)]){if(typeof x=="string"){const p=x.indexOf(".pdf")>-1?x:x+e(224);o.name=p}else o=x||{},!o[e(220)]&&(o.name=e(231)+Date[e(252)]()+e(224));const g=this.printPanels[0];let q=g[e(206)],m=g[e(214)];const C=g[e(222)](),O=o[e(230)]||C[e(230)],R=o[e(264)]||C[e(264)],S=O&&R;var J=globalThis[e(213)].mm[e(233)](O||q),L=globalThis[e(213)].mm[e(233)](R||m),v=globalThis.$.extend({backgroundColor:e(239)},o||{});const j=this[e(221)][0][e(215)],H=j!=null&&j!=""&&j!="自定义",$=this[e(200)](0)==1||S?e(256):"landscape",z=H&&!S?j[e(203)]():[J,L];var T=new c.jsPDF({orientation:$,unit:"pt",format:z}),w=yield this[e(248)](n,o);o&&(o[e(238)]&&(v[e(250)]=o[e(238)],v[e(227)]=o[e(238)]),o[e(212)]!=null&&(D=o[e(212)]),o.onProgress!=null&&(F=o[e(216)])),globalThis.$(w).css(e(206),"")[e(244)](e(214),""),this[e(258)]();var y=this[e(240)]();this[e(201)](w,v),y[e(234)](w[0]),globalThis.$(w)[e(244)](e(229));let k=y[e(241)](e(208)).length;this[e(237)](y,function(){const p=e;try{y.find(p(208))[p(225)](function(P,N){const I=p;globalThis.hinnn.queue.add(function(V){const a=d;r.snapdom[a(262)](N,v)[a(259)](function(_){const f=a;var X=_[f(266)]("2d");X.imageSmoothingEnabled=!1;var Q=_.toDataURL(f(207),v[f(228)]||.92);T.addImage(Q,f(223),0,0,J,L),P<k-1&&T[f(218)](),F(P+1,k),V()})[a(251)](_=>{const f=a;throw new Error(_[f(246)])})}),P==k-1&&(globalThis[I(213)].queue.add(function(V){const a=I;if(D)i[a(260)](),T[a(242)](o[a(220)]);else{i[a(260)]();let _=o.type||a(219),f=T[a(211)](_);h[a(247)](f)}globalThis[a(213)].queue[a(209)]()}),globalThis[I(213)][I(210)][I(232)]())})}catch(P){console[p(249)](p(257)),console.log(P)}})}return h[e(243)]()})};function d(n,x){const t=s();return d=function(e,i){return e=e-200,t[e]},d(n,x)}function l(n,x){var t=u();return l=function(e,i){e=e-396;var h=t[e];return h},l(n,x)}(function(n,x){for(var t=l,e=n();;)try{var i=parseInt(t(396))/1+parseInt(t(398))/2+parseInt(t(400))/3+parseInt(t(397))/4*(-parseInt(t(406))/5)+parseInt(t(399))/6+-parseInt(t(401))/7*(-parseInt(t(403))/8)+-parseInt(t(407))/9;if(i===x)break;e.push(e.shift())}catch(h){e.push(e.shift())}})(u,395772);function u(){var n=["toPdf","add toPdf Api","40lbJPcP","6646320yNvcgn","newPrintTemplate","add toPdf Api to PrintTemplate","624876PapRUt","176744DHsbRP","666630qCbCOF","2254572VtSQtV","44274FIhXFl","2681ANrpQJ","0.3.0","2904IqSAna"];return u=function(){return n},u()}function b(n){var x=l;return{name:x(405),description:x(405),hooks:[{hook:x(408),name:x(409),description:x(409),priority:1,run:({template:t,options:e})=>{var i=x;Object.defineProperty(t,i(404),{value:A,enumerable:!1,writable:!0,configurable:!0})}}],leastHiprintVersion:x(402)}}return b});
|