template-designer 0.6.5 → 0.6.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-356ac50f.mjs → index-43df694a.mjs} +3 -3
- package/dist/{index.es-a20ed9f1.mjs → index.es-104e109d.mjs} +1 -1
- package/dist/{lodop-d990e845.mjs → lodop-c663347f.mjs} +3 -2
- package/dist/{rfid-b0c598a7.mjs → rfid-39a5cc44.mjs} +1 -1
- package/dist/template-designer.es.js +1 -1
- package/dist/template-designer.umd.js +1 -1
- package/package.json +1 -1
|
@@ -7109,9 +7109,9 @@ const lb = /* @__PURE__ */ Mt(ab, [["render", sb]]), jg = [
|
|
|
7109
7109
|
], Kg = jg.flatMap((e) => e.components);
|
|
7110
7110
|
async function cb(e) {
|
|
7111
7111
|
try {
|
|
7112
|
-
return (await gm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-
|
|
7112
|
+
return (await gm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-c663347f.mjs"), "./props/rfid.js": () => import("./rfid-39a5cc44.mjs") }), `./props/${e}.js`)).default;
|
|
7113
7113
|
} catch {
|
|
7114
|
-
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-
|
|
7114
|
+
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-c663347f.mjs")).default;
|
|
7115
7115
|
}
|
|
7116
7116
|
}
|
|
7117
7117
|
function ub(e = {}, A = {}) {
|
|
@@ -22741,7 +22741,7 @@ function(e) {
|
|
|
22741
22741
|
*/
|
|
22742
22742
|
function(e) {
|
|
22743
22743
|
function A() {
|
|
22744
|
-
return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-
|
|
22744
|
+
return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-104e109d.mjs")).catch(function(t) {
|
|
22745
22745
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
22746
22746
|
}).then(function(t) {
|
|
22747
22747
|
return t.default ? t.default : t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as e } from "./index-
|
|
1
|
+
import { R as e } from "./index-43df694a.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
const t = {
|
|
4
4
|
text: {
|
|
@@ -477,7 +477,8 @@ const t = {
|
|
|
477
477
|
type: "select",
|
|
478
478
|
options: e,
|
|
479
479
|
default: 0,
|
|
480
|
-
layout: "half"
|
|
480
|
+
layout: "half",
|
|
481
|
+
hide: !0
|
|
481
482
|
}
|
|
482
483
|
]
|
|
483
484
|
},
|
|
@@ -298,7 +298,7 @@ endbfchar
|
|
|
298
298
|
CMapName currentdict /CMap defineresource pop
|
|
299
299
|
end
|
|
300
300
|
end`};e.events.push(["putFont",function(a){(function(i){var o=i.font,s=i.out,l=i.newObject,u=i.putStream;if(o.metadata instanceof t.API.TTFFont&&o.encoding==="Identity-H"){for(var d=o.metadata.Unicode.widths,g=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),h="",y=0;y<g.length;y++)h+=String.fromCharCode(g[y]);var m=l();u({data:h,addLength1:!0,objectId:m}),s("endobj");var E=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:E}),s("endobj");var B=l();s("<<"),s("/Type /FontDescriptor"),s("/FontName /"+Io(o.fontName)),s("/FontFile2 "+m+" 0 R"),s("/FontBBox "+t.API.PDFObject.convert(o.metadata.bbox)),s("/Flags "+o.metadata.flags),s("/StemV "+o.metadata.stemV),s("/ItalicAngle "+o.metadata.italicAngle),s("/Ascent "+o.metadata.ascender),s("/Descent "+o.metadata.decender),s("/CapHeight "+o.metadata.capHeight),s(">>"),s("endobj");var b=l();s("<<"),s("/Type /Font"),s("/BaseFont /"+Io(o.fontName)),s("/FontDescriptor "+B+" 0 R"),s("/W "+t.API.PDFObject.convert(d)),s("/CIDToGIDMap /Identity"),s("/DW 1000"),s("/Subtype /CIDFontType2"),s("/CIDSystemInfo"),s("<<"),s("/Supplement 0"),s("/Registry (Adobe)"),s("/Ordering ("+o.encoding+")"),s(">>"),s(">>"),s("endobj"),o.objectNumber=l(),s("<<"),s("/Type /Font"),s("/Subtype /Type0"),s("/ToUnicode "+E+" 0 R"),s("/BaseFont /"+Io(o.fontName)),s("/Encoding /"+o.encoding),s("/DescendantFonts ["+b+" 0 R]"),s(">>"),s("endobj"),o.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(i){var o=i.font,s=i.out,l=i.newObject,u=i.putStream;if(o.metadata instanceof t.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var d=o.metadata.rawData,g="",h=0;h<d.length;h++)g+=String.fromCharCode(d[h]);var y=l();u({data:g,addLength1:!0,objectId:y}),s("endobj");var m=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:m}),s("endobj");var E=l();s("<<"),s("/Descent "+o.metadata.decender),s("/CapHeight "+o.metadata.capHeight),s("/StemV "+o.metadata.stemV),s("/Type /FontDescriptor"),s("/FontFile2 "+y+" 0 R"),s("/Flags 96"),s("/FontBBox "+t.API.PDFObject.convert(o.metadata.bbox)),s("/FontName /"+Io(o.fontName)),s("/ItalicAngle "+o.metadata.italicAngle),s("/Ascent "+o.metadata.ascender),s(">>"),s("endobj"),o.objectNumber=l();for(var B=0;B<o.metadata.hmtx.widths.length;B++)o.metadata.hmtx.widths[B]=parseInt(o.metadata.hmtx.widths[B]*(1e3/o.metadata.head.unitsPerEm));s("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Io(o.fontName)+"/FontDescriptor "+E+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),s("endobj"),o.isAlreadyPutted=!0}})(a)}]);var n=function(a){var i,o=a.text||"",s=a.x,l=a.y,u=a.options||{},d=a.mutex||{},g=d.pdfEscape,h=d.activeFontKey,y=d.fonts,m=h,E="",B=0,b="",U=y[m].encoding;if(y[m].encoding!=="Identity-H")return{text:o,x:s,y:l,options:u,mutex:d};for(b=o,m=h,Array.isArray(o)&&(b=o[0]),B=0;B<b.length;B+=1)y[m].metadata.hasOwnProperty("cmap")&&(i=y[m].metadata.cmap.unicode.codeMap[b[B].charCodeAt(0)]),i||b[B].charCodeAt(0)<256&&y[m].metadata.hasOwnProperty("Unicode")?E+=b[B]:E+="";var N="";return parseInt(m.slice(1))<14||U==="WinAnsiEncoding"?N=g(E,m).split("").map(function(T){return T.charCodeAt(0).toString(16)}).join(""):U==="Identity-H"&&(N=A(E,y[m])),d.isHex=!0,{text:N,x:s,y:l,options:u,mutex:d}};e.events.push(["postProcessText",function(a){var i=a.text||"",o=[],s={text:i,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(i)){var l=0;for(l=0;l<i.length;l+=1)Array.isArray(i[l])&&i[l].length===3?o.push([n(Object.assign({},s,{text:i[l][0]})).text,i[l][1],i[l][2]]):o.push(n(Object.assign({},s,{text:i[l]})).text);a.text=o}else a.text=n(Object.assign({},s,{text:i})).text}])}(gt),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0},t.addFileToVFS=function(A,r){return e.call(this),this.internal.vFS[A]=r,this},t.getFileFromVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0?this.internal.vFS[A]:null}}(gt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,a,i,o,s,l,u,d=e,g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],y={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},E=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],B=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),b=!1,U=0;this.__bidiEngine__={};var N=function(F){var S=F.charCodeAt(),H=S>>8,P=m[H];return P!==void 0?d[256*P+(255&S)]:H===252||H===253?"AL":B.test(H)?"L":H===8?"R":"N"},T=function(F){for(var S,H=0;H<F.length;H++){if((S=N(F.charAt(H)))==="L")return!1;if(S==="R")return!0}return!1},O=function(F,S,H,P){var Y,G,ne,te,Ae=S[P];switch(Ae){case"L":case"R":b=!1;break;case"N":case"AN":break;case"EN":b&&(Ae="AN");break;case"AL":b=!0,Ae="R";break;case"WS":Ae="N";break;case"CS":P<1||P+1>=S.length||(Y=H[P-1])!=="EN"&&Y!=="AN"||(G=S[P+1])!=="EN"&&G!=="AN"?Ae="N":b&&(G="AN"),Ae=G===Y?G:"N";break;case"ES":Ae=(Y=P>0?H[P-1]:"B")==="EN"&&P+1<S.length&&S[P+1]==="EN"?"EN":"N";break;case"ET":if(P>0&&H[P-1]==="EN"){Ae="EN";break}if(b){Ae="N";break}for(ne=P+1,te=S.length;ne<te&&S[ne]==="ET";)ne++;Ae=ne<te&&S[ne]==="EN"?"EN":"N";break;case"NSM":if(i&&!o){for(te=S.length,ne=P+1;ne<te&&S[ne]==="NSM";)ne++;if(ne<te){var $=F[P],ce=$>=1425&&$<=2303||$===64286;if(Y=S[ne],ce&&(Y==="R"||Y==="AL")){Ae="R";break}}}Ae=P<1||(Y=S[P-1])==="B"?"N":H[P-1];break;case"B":b=!1,n=!0,Ae=U;break;case"S":a=!0,Ae="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"BN":Ae="N"}return Ae},I=function(F,S,H){var P=F.split("");return H&&M(P,H,{hiLevel:U}),P.reverse(),S&&S.reverse(),P.join("")},M=function(F,S,H){var P,Y,G,ne,te,Ae=-1,$=F.length,ce=0,Q=[],_=U?h:g,j=[];for(b=!1,n=!1,a=!1,Y=0;Y<$;Y++)j[Y]=N(F[Y]);for(G=0;G<$;G++){if(te=ce,Q[G]=O(F,j,Q,G),P=240&(ce=_[te][y[Q[G]]]),ce&=15,S[G]=ne=_[ce][5],P>0)if(P===16){for(Y=Ae;Y<G;Y++)S[Y]=1;Ae=-1}else Ae=-1;if(_[ce][6])Ae===-1&&(Ae=G);else if(Ae>-1){for(Y=Ae;Y<G;Y++)S[Y]=ne;Ae=-1}j[G]==="B"&&(S[G]=0),H.hiLevel|=ne}a&&function(z,re,ie){for(var he=0;he<ie;he++)if(z[he]==="S"){re[he]=U;for(var me=he-1;me>=0&&z[me]==="WS";me--)re[me]=U}}(j,S,$)},V=function(F,S,H,P,Y){if(!(Y.hiLevel<F)){if(F===1&&U===1&&!n)return S.reverse(),void(H&&H.reverse());for(var G,ne,te,Ae,$=S.length,ce=0;ce<$;){if(P[ce]>=F){for(te=ce+1;te<$&&P[te]>=F;)te++;for(Ae=ce,ne=te-1;Ae<ne;Ae++,ne--)G=S[Ae],S[Ae]=S[ne],S[ne]=G,H&&(G=H[Ae],H[Ae]=H[ne],H[ne]=G);ce=te}ce++}}},Z=function(F,S,H){var P=F.split(""),Y={hiLevel:U};return H||(H=[]),M(P,H,Y),function(G,ne,te){if(te.hiLevel!==0&&u)for(var Ae,$=0;$<G.length;$++)ne[$]===1&&(Ae=E.indexOf(G[$]))>=0&&(G[$]=E[Ae+1])}(P,H,Y),V(2,P,S,H,Y),V(1,P,S,H,Y),P.join("")};return this.__bidiEngine__.doBidiReorder=function(F,S,H){if(function(Y,G){if(G)for(var ne=0;ne<Y.length;ne++)G[ne]=ne;o===void 0&&(o=T(Y)),l===void 0&&(l=T(Y))}(F,S),i||!s||l)if(i&&s&&o^l)U=o?1:0,F=I(F,S,H);else if(!i&&s&&l)U=o?1:0,F=Z(F,S,H),F=I(F,S);else if(!i||o||s||l){if(i&&!s&&o^l)F=I(F,S),o?(U=0,F=Z(F,S,H)):(U=1,F=Z(F,S,H),F=I(F,S));else if(i&&o&&!s&&l)U=1,F=Z(F,S,H),F=I(F,S);else if(!i&&!s&&o^l){var P=u;o?(U=1,F=Z(F,S,H),U=0,u=!1,F=Z(F,S,H),u=P):(U=0,F=Z(F,S,H),F=I(F,S),U=1,u=!1,F=Z(F,S,H),u=P,F=I(F,S))}}else U=0,F=Z(F,S,H);else U=o?1:0,F=Z(F,S,H);return F},this.__bidiEngine__.setOptions=function(F){F&&(i=F.isInputVisual,s=F.isOutputVisual,o=F.isInputRtl,l=F.isOutputRtl,u=F.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],A=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text,a=(r.x,r.y,r.options||{}),i=(r.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,A.setOptions(a),Object.prototype.toString.call(n)==="[object Array]"){var o=0;for(i=[],o=0;o<n.length;o+=1)Object.prototype.toString.call(n[o])==="[object Array]"?i.push([A.doBidiReorder(n[o][0]),n[o][1],n[o][2]]):i.push([A.doBidiReorder(n[o])]);r.text=i}else r.text=A.doBidiReorder(n);A.setOptions({isInputVisual:!0})}])}(gt),gt.API.TTFFont=function(){function t(e){var A;if(this.rawData=e,A=this.contents=new Oa(e),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new YD(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new OD(this.contents),this.head=new kD(this),this.name=new _D(this),this.cmap=new jy(this),this.toUnicode={},this.hhea=new HD(this),this.maxp=new ZD(this),this.hmtx=new jD(this),this.post=new PD(this),this.os2=new DD(this),this.loca=new zD(this),this.glyf=new JD(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,A,r,n,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var i,o,s,l;for(l=[],i=0,o=(s=this.bbox).length;i<o;i++)e=s[i],l.push(Math.round(e*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(A=n>>16)&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var A;return((A=this.cmap.unicode)!=null?A.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*A},t.prototype.widthOfString=function(e,A,r){var n,a,i,o;for(i=0,a=0,o=(e=""+e).length;0<=o?a<o:a>o;a=0<=o?++a:--a)n=e.charCodeAt(a),i+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/A)||0;return i*(A/1e3)},t.prototype.lineHeight=function(e,A){var r;return A==null&&(A=!1),r=A?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},t}();var vn,Oa=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var A,r;for(r=[],A=0;0<=e?A<e:A>e;A=0<=e?++A:--A)r[A]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(e){var A,r,n;for(n=[],A=0,r=e.length;0<=r?A<r:A>r;A=0<=r?++A:--A)n.push(this.writeByte(e.charCodeAt(A)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,A,r,n,a,i,o,s;return e=this.readByte(),A=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^A)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^a)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*e+281474976710656*A+1099511627776*r+4294967296*n+16777216*a+65536*i+256*o+s},t.prototype.writeLongLong=function(e){var A,r;return A=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var A,r;for(A=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)A.push(this.readByte());return A},t.prototype.write=function(e){var A,r,n,a;for(a=[],r=0,n=e.length;r<n;r++)A=e[r],a.push(this.writeByte(A));return a},t}(),OD=function(){var t;function e(A){var r,n,a;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},n=0,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)r={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(A){var r,n,a,i,o,s,l,u,d,g,h,y,m;for(m in h=Object.keys(A).length,s=Math.log(2),d=16*Math.floor(Math.log(h)/s),i=Math.floor(d/s),u=16*h-d,(n=new Oa).writeInt(this.scalarType),n.writeShort(h),n.writeShort(d),n.writeShort(i),n.writeShort(u),a=16*h,l=n.pos+a,o=null,y=[],A)for(g=A[m],n.writeString(m),n.writeInt(t(g)),n.writeInt(l),n.writeInt(g.length),y=y.concat(g),m==="head"&&(o=l),l+=g.length;l%4;)y.push(0),l++;return n.write(y),r=2981146554-t(n.data),n.pos=o+8,n.writeUInt32(r),n.data},t=function(A){var r,n,a,i;for(A=Jy.call(A);A.length%4;)A.push(0);for(a=new Oa(A),n=0,r=0,i=A.length;r<i;r=r+=4)n+=a.readUInt32();return 4294967295&n},e}(),LD={}.hasOwnProperty,Dn=function(t,e){for(var A in e)LD.call(e,A)&&(t[A]=e[A]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};vn=function(){function t(e){var A;this.file=e,A=this.file.directory.tables[this.tag],this.exists=!!A,A&&(this.offset=A.offset,this.length=A.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var kD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="head",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.revision=A.readInt(),this.checkSumAdjustment=A.readInt(),this.magicNumber=A.readInt(),this.flags=A.readShort(),this.unitsPerEm=A.readShort(),this.created=A.readLongLong(),this.modified=A.readLongLong(),this.xMin=A.readShort(),this.yMin=A.readShort(),this.xMax=A.readShort(),this.yMax=A.readShort(),this.macStyle=A.readShort(),this.lowestRecPPEM=A.readShort(),this.fontDirectionHint=A.readShort(),this.indexToLocFormat=A.readShort(),this.glyphDataFormat=A.readShort()},e.prototype.encode=function(A){var r;return(r=new Oa).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(A),r.writeShort(this.glyphDataFormat),r.data},e}(),Zy=function(){function t(e,A){var r,n,a,i,o,s,l,u,d,g,h,y,m,E,B,b,U;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=A+e.readInt(),d=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(h=e.readUInt16(),g=h/2,e.pos+=6,a=function(){var N,T;for(T=[],s=N=0;0<=g?N<g:N>g;s=0<=g?++N:--N)T.push(e.readUInt16());return T}(),e.pos+=2,m=function(){var N,T;for(T=[],s=N=0;0<=g?N<g:N>g;s=0<=g?++N:--N)T.push(e.readUInt16());return T}(),l=function(){var N,T;for(T=[],s=N=0;0<=g?N<g:N>g;s=0<=g?++N:--N)T.push(e.readUInt16());return T}(),u=function(){var N,T;for(T=[],s=N=0;0<=g?N<g:N>g;s=0<=g?++N:--N)T.push(e.readUInt16());return T}(),n=(this.length-e.pos+this.offset)/2,o=function(){var N,T;for(T=[],s=N=0;0<=n?N<n:N>n;s=0<=n?++N:--N)T.push(e.readUInt16());return T}(),s=B=0,U=a.length;B<U;s=++B)for(E=a[s],r=b=y=m[s];y<=E?b<=E:b>=E;r=y<=E?++b:--b)u[s]===0?i=r+l[s]:(i=o[u[s]/2+(r-y)-(g-s)]||0)!==0&&(i+=l[s]),this.codeMap[r]=65535&i}e.pos=d}return t.encode=function(e,A){var r,n,a,i,o,s,l,u,d,g,h,y,m,E,B,b,U,N,T,O,I,M,V,Z,F,S,H,P,Y,G,ne,te,Ae,$,ce,Q,_,j,z,re,ie,he,me,Ve,Te,De;switch(P=new Oa,i=Object.keys(e).sort(function(Oe,Ke){return Oe-Ke}),A){case"macroman":for(m=0,E=function(){var Oe=[];for(y=0;y<256;++y)Oe.push(0);return Oe}(),b={0:0},a={},Y=0,Ae=i.length;Y<Ae;Y++)b[me=e[n=i[Y]]]==null&&(b[me]=++m),a[n]={old:e[n],new:b[e[n]]},E[n]=b[e[n]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(E),{charMap:a,subtable:P.data,maxGlyphID:m+1};case"unicode":for(S=[],d=[],U=0,b={},r={},B=l=null,G=0,$=i.length;G<$;G++)b[T=e[n=i[G]]]==null&&(b[T]=++U),r[n]={old:T,new:b[T]},o=b[T]-n,B!=null&&o===l||(B&&d.push(B),S.push(n),l=o),B=n;for(B&&d.push(B),d.push(65535),S.push(65535),Z=2*(V=S.length),M=2*Math.pow(Math.log(V)/Math.LN2,2),g=Math.log(M/2)/Math.LN2,I=2*V-M,s=[],O=[],h=[],y=ne=0,ce=S.length;ne<ce;y=++ne){if(F=S[y],u=d[y],F===65535){s.push(0),O.push(0);break}if(F-(H=r[F].new)>=32768)for(s.push(0),O.push(2*(h.length+V-y)),n=te=F;F<=u?te<=u:te>=u;n=F<=u?++te:--te)h.push(r[n].new);else s.push(H-F),O.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*V+2*h.length),P.writeUInt16(0),P.writeUInt16(Z),P.writeUInt16(M),P.writeUInt16(g),P.writeUInt16(I),ie=0,Q=d.length;ie<Q;ie++)n=d[ie],P.writeUInt16(n);for(P.writeUInt16(0),he=0,_=S.length;he<_;he++)n=S[he],P.writeUInt16(n);for(Ve=0,j=s.length;Ve<j;Ve++)o=s[Ve],P.writeUInt16(o);for(Te=0,z=O.length;Te<z;Te++)N=O[Te],P.writeUInt16(N);for(De=0,re=h.length;De<re;De++)m=h[De],P.writeUInt16(m);return{charMap:r,subtable:P.data,maxGlyphID:U+1}}},t}(),jy=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="cmap",e.prototype.parse=function(A){var r,n,a;for(A.pos=this.offset,this.version=A.readUInt16(),a=A.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)r=new Zy(A,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(A,r){var n,a;return r==null&&(r="macroman"),n=Zy.encode(A,r),(a=new Oa).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},e}(),HD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="hhea",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.ascender=A.readShort(),this.decender=A.readShort(),this.lineGap=A.readShort(),this.advanceWidthMax=A.readShort(),this.minLeftSideBearing=A.readShort(),this.minRightSideBearing=A.readShort(),this.xMaxExtent=A.readShort(),this.caretSlopeRise=A.readShort(),this.caretSlopeRun=A.readShort(),this.caretOffset=A.readShort(),A.pos+=8,this.metricDataFormat=A.readShort(),this.numberOfMetrics=A.readUInt16()},e}(),DD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="OS/2",e.prototype.parse=function(A){if(A.pos=this.offset,this.version=A.readUInt16(),this.averageCharWidth=A.readShort(),this.weightClass=A.readUInt16(),this.widthClass=A.readUInt16(),this.type=A.readShort(),this.ySubscriptXSize=A.readShort(),this.ySubscriptYSize=A.readShort(),this.ySubscriptXOffset=A.readShort(),this.ySubscriptYOffset=A.readShort(),this.ySuperscriptXSize=A.readShort(),this.ySuperscriptYSize=A.readShort(),this.ySuperscriptXOffset=A.readShort(),this.ySuperscriptYOffset=A.readShort(),this.yStrikeoutSize=A.readShort(),this.yStrikeoutPosition=A.readShort(),this.familyClass=A.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(A.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(A.readInt());return n}(),this.vendorID=A.readString(4),this.selection=A.readShort(),this.firstCharIndex=A.readShort(),this.lastCharIndex=A.readShort(),this.version>0&&(this.ascent=A.readShort(),this.descent=A.readShort(),this.lineGap=A.readShort(),this.winAscent=A.readShort(),this.winDescent=A.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(A.readInt());return n}(),this.version>1))return this.xHeight=A.readShort(),this.capHeight=A.readShort(),this.defaultChar=A.readShort(),this.breakChar=A.readShort(),this.maxContext=A.readShort()},e}(),PD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="post",e.prototype.parse=function(A){var r,n,a;switch(A.pos=this.offset,this.format=A.readInt(),this.italicAngle=A.readInt(),this.underlinePosition=A.readShort(),this.underlineThickness=A.readShort(),this.isFixedPitch=A.readInt(),this.minMemType42=A.readInt(),this.maxMemType42=A.readInt(),this.minMemType1=A.readInt(),this.maxMemType1=A.readInt(),this.format){case 65536:break;case 131072:var i;for(n=A.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(A.readUInt16());for(this.names=[],a=[];A.pos<this.offset+this.length;)r=A.readByte(),a.push(this.names.push(A.readString(r)));return a;case 151552:return n=A.readUInt16(),this.offsets=A.read(n);case 196608:break;case 262144:return this.map=(function(){var o,s,l;for(l=[],i=o=0,s=this.file.maxp.numGlyphs;0<=s?o<s:o>s;i=0<=s?++o:--o)l.push(A.readUInt32());return l}).call(this)}},e}(),WD=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},_D=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="name",e.prototype.parse=function(A){var r,n,a,i,o,s,l,u,d,g,h;for(A.pos=this.offset,A.readShort(),r=A.readShort(),s=A.readShort(),n=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)n.push({platformID:A.readShort(),encodingID:A.readShort(),languageID:A.readShort(),nameID:A.readShort(),length:A.readShort(),offset:this.offset+s+A.readShort()});for(l={},i=d=0,g=n.length;d<g;i=++d)a=n[i],A.pos=a.offset,u=A.readString(a.length),o=new WD(u,a),l[h=a.nameID]==null&&(l[h]=[]),l[a.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),ZD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="maxp",e.prototype.parse=function(A){return A.pos=this.offset,this.version=A.readInt(),this.numGlyphs=A.readUInt16(),this.maxPoints=A.readUInt16(),this.maxContours=A.readUInt16(),this.maxCompositePoints=A.readUInt16(),this.maxComponentContours=A.readUInt16(),this.maxZones=A.readUInt16(),this.maxTwilightPoints=A.readUInt16(),this.maxStorage=A.readUInt16(),this.maxFunctionDefs=A.readUInt16(),this.maxInstructionDefs=A.readUInt16(),this.maxStackElements=A.readUInt16(),this.maxSizeOfInstructions=A.readUInt16(),this.maxComponentElements=A.readUInt16(),this.maxComponentDepth=A.readUInt16()},e}(),jD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="hmtx",e.prototype.parse=function(A){var r,n,a,i,o,s,l;for(A.pos=this.offset,this.metrics=[],r=0,s=this.file.hhea.numberOfMetrics;0<=s?r<s:r>s;r=0<=s?++r:--r)this.metrics.push({advance:A.readUInt16(),lsb:A.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],r=u=0;0<=a?u<a:u>a;r=0<=a?++u:--u)d.push(A.readInt16());return d}(),this.widths=(function(){var u,d,g,h;for(h=[],u=0,d=(g=this.metrics).length;u<d;u++)i=g[u],h.push(i.advance);return h}).call(this),n=this.widths[this.widths.length-1],l=[],r=o=0;0<=a?o<a:o>a;r=0<=a?++o:--o)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(A){return A in this.metrics?this.metrics[A]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[A-this.metrics.length]}},e}(),Jy=[].slice,JD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(A){var r,n,a,i,o,s,l,u,d,g;return A in this.cache?this.cache[A]:(i=this.file.loca,r=this.file.contents,n=i.indexOf(A),(a=i.lengthOf(A))===0?this.cache[A]=null:(r.pos=this.offset+n,o=(s=new Oa(r.read(a))).readShort(),u=s.readShort(),g=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[A]=o===-1?new GD(s,u,g,l,d):new KD(s,o,u,g,l,d),this.cache[A]))},e.prototype.encode=function(A,r,n){var a,i,o,s,l;for(o=[],i=[],s=0,l=r.length;s<l;s++)a=A[r[s]],i.push(o.length),a&&(o=o.concat(a.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),KD=function(){function t(e,A,r,n,a,i){this.raw=e,this.numberOfContours=A,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),GD=function(){function t(e,A,r,n,a){var i,o;for(this.raw=e,this.xMin=A,this.yMin=r,this.xMax=n,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(){var e,A,r;for(A=new Oa(Jy.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)A.pos=this.glyphOffsets[e];return A.data},t}(),zD=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Dn(e,vn),e.prototype.tag="loca",e.prototype.parse=function(A){var r,n;return A.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var a,i;for(i=[],n=0,a=this.length;n<a;n+=2)i.push(2*A.readUInt16());return i}).call(this):(function(){var a,i;for(i=[],n=0,a=this.length;n<a;n+=4)i.push(A.readUInt32());return i}).call(this)},e.prototype.indexOf=function(A){return this.offsets[A]},e.prototype.lengthOf=function(A){return this.offsets[A+1]-this.offsets[A]},e.prototype.encode=function(A,r){for(var n=new Uint32Array(this.offsets.length),a=0,i=0,o=0;o<n.length;++o)if(n[o]=a,i<r.length&&r[i]==o){++i,n[o]=a;var s=this.offsets[o],l=this.offsets[o+1]-s;l>0&&(a+=l)}for(var u=new Array(4*n.length),d=0;d<n.length;++d)u[4*d+3]=255&n[d],u[4*d+2]=(65280&n[d])>>8,u[4*d+1]=(16711680&n[d])>>16,u[4*d]=(4278190080&n[d])>>24;return u},e}(),YD=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,A,r,n,a;for(A in n=this.font.cmap.tables[0].codeMap,e={},a=this.subset)r=a[A],e[A]=n[r];return e},t.prototype.glyphsFor=function(e){var A,r,n,a,i,o,s;for(n={},i=0,o=e.length;i<o;i++)n[a=e[i]]=this.font.glyf.glyphFor(a);for(a in A=[],n)(r=n[a])!=null&&r.compound&&A.push.apply(A,r.glyphIDs);if(A.length>0)for(a in s=this.glyphsFor(A))r=s[a],n[a]=r;return n},t.prototype.encode=function(e,A){var r,n,a,i,o,s,l,u,d,g,h,y,m,E,B;for(n in r=jy.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),h={0:0},B=r.charMap)h[(s=B[n]).old]=s.new;for(y in g=r.maxGlyphID,i)y in h||(h[y]=g++);return u=function(b){var U,N;for(U in N={},b)N[b[U]]=U;return N}(h),d=Object.keys(u).sort(function(b,U){return b-U}),m=function(){var b,U,N;for(N=[],b=0,U=d.length;b<U;b++)o=d[b],N.push(u[o]);return N}(),a=this.font.glyf.encode(i,m,h),l=this.font.loca.encode(a.offsets,m),E={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(A)},this.font.os2.exists&&(E["OS/2"]=this.font.os2.raw()),this.font.directory.encode(E)},t}();gt.API.PDFObject=function(){var t;function e(){}return t=function(A,r){return(Array(r+1).join("0")+A).slice(-r)},e.convert=function(A){var r,n,a,i;if(Array.isArray(A))return"["+function(){var o,s,l;for(l=[],o=0,s=A.length;o<s;o++)r=A[o],l.push(e.convert(r));return l}().join(" ")+"]";if(typeof A=="string")return"/"+A;if(A!=null&&A.isString)return"("+A+")";if(A instanceof Date)return"(D:"+t(A.getUTCFullYear(),4)+t(A.getUTCMonth(),2)+t(A.getUTCDate(),2)+t(A.getUTCHours(),2)+t(A.getUTCMinutes(),2)+t(A.getUTCSeconds(),2)+"Z)";if({}.toString.call(A)==="[object Object]"){for(n in a=["<<"],A)i=A[n],a.push("/"+n+" "+e.convert(i));return a.push(">>"),a.join(`
|
|
301
|
-
`)}return""+A},e}();const XD=t=>{const e=(t==null?void 0:t.querySelectorAll("img"))||[],A=Array.from(e).map(r=>r.complete?Promise.resolve():new Promise(n=>{r.onload=r.onerror=n}));return Promise.all(A)},qD=(t,e)=>{const A=JSON.parse(JSON.stringify(t||{})),r=A.items||[],n=(a,i)=>{if(Array.isArray(a)){const s=typeof i=="string"?i:" ";return a.map(u=>e&&e[u]!=null?String(e[u]):"").filter(u=>u!=="").join(s)}const o=a;return o&&e&&e[o]!=null?String(e[o]):""};return r.forEach(a=>{const i=a.props||{},o=i.FieldName,s=i.FieldConnector;if(o)switch(a.type){case"text":{const l=n(o,s),u=i.Title||"";i.Text=u?`${u}${l}`:l;break}case"barcode":{i.BarcodeValue=n(o,s);break}case"qrcode":{i.QRCodeValue=n(o,s);break}}}),A.items=r,A.printWidth=A.print_width||A.printWidth||0,A.printHeight=A.print_height||A.printHeight||0,A};async function $D(t,e,A={}){const{page:r,scale:n,pdf:a,returnType:i="base64",format:o="pdf",cacheInstance:s=!0}=A,l=qD(t,e),{default:u}=await Promise.resolve().then(()=>ay),d=(r==null?void 0:r.widthMm)||l.printWidth||l.width||100,g=(r==null?void 0:r.heightMm)||l.printHeight||l.height||100,h=Math.max(1,Math.floor(co(d))),y=Math.max(1,Math.floor(co(g)));let m,E;const B="__td_renderer_singleton__";if(s&&window[B]){const b=window[B];m=b.container,b.templateRef.value=l,b.keyRef.value=(b.keyRef.value||0)+1,m.style.width=h+"px",m.style.height=y+"px"}else{m=document.createElement("div"),m.style.position="fixed",m.style.left="-10000px",m.style.top="0",m.style.width=h+"px",m.style.height=y+"px",m.style.overflow="hidden",m.style.opacity="1",m.style.pointerEvents="none",document.body.appendChild(m);const b=f.ref(l),U=f.ref(0);E=f.createApp({render(){return f.h(dl,{key:U.value,templateData:b.value})}}),E.mount(m),s&&(window[B]={container:m,templateRef:b,keyRef:U,app:E})}try{await f.nextTick(),await new Promise(ne=>setTimeout(ne,200));const b=m.querySelector("#design")||m;if(!b)throw new Error("未找到设计画布元素 #design");await XD(b);const U=Math.max(window.devicePixelRatio||1,2),N=Number(n)>0?Number(n):(a==null?void 0:a.scale)||U*2,T=Math.min(2.5,Math.max(1.5,N)),O=!!(a!=null&&a.transparent),I=await u(b,{scale:T,useCORS:!0,allowTaint:!0,backgroundColor:O?null:"#ffffff",imageTimeout:15e3,logging:!1,removeContainer:!1,windowWidth:h,windowHeight:y}),M=O?"image/png":"image/jpeg",V=typeof(a==null?void 0:a.quality)=="number"?a.quality:.85,Z=I.toDataURL(M,V);if(o==="png"){const ne=Z,te=ne.split(",")[1]||"";return i==="dataUrl"?ne:te}const F=(a==null?void 0:a.orientation)||(d>=g?"landscape":"portrait"),S=(a==null?void 0:a.compress)!==void 0?a.compress:!0,H=new gt({orientation:F,unit:"mm",format:[d,g],compress:S}),P=O?"PNG":"JPEG";H.addImage(Z,P,0,0,d,g);const Y=H.output("datauristring"),G=Y.split(",")[1]||"";return i==="dataUrl"?Y:G}finally{if(!(s&&window[B])){try{E&&E.unmount&&E.unmount()}catch{}m&&m.parentNode&&m.parentNode.removeChild(m)}}}dl.install=t=>{t.component(dl.name||"TemplateDesigner",dl)};const Ky=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.8,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行&省略",value:2},{label:"不换行&隐藏",value:3}],default:2,hide:!0},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,allowRotation:!1,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,allowRotation:!1,x1:0,y1:0,x2:15,y2:0,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),eP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:2.8,rotation:0,allowRotation:!1,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:8,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,hide:!0,layout:"half"},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",lockAspectRatio:!0,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,allowRotation:!1,lockAspectRatio:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function La(t){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(t)}function Vp(t,e){return Vp=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vp(t,e)}function tP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(t,e,A){return tP()?tf=Reflect.construct:tf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Vp(l,i.prototype),l},tf.apply(null,arguments)}function Bn(t){return AP(t)||rP(t)||nP(t)||aP()}function AP(t){if(Array.isArray(t))return Mp(t)}function rP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nP(t,e){if(t){if(typeof t=="string")return Mp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return Mp(t,e)}}function Mp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function aP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
301
|
+
`)}return""+A},e}();const XD=t=>{const e=(t==null?void 0:t.querySelectorAll("img"))||[],A=Array.from(e).map(r=>r.complete?Promise.resolve():new Promise(n=>{r.onload=r.onerror=n}));return Promise.all(A)},qD=(t,e)=>{const A=JSON.parse(JSON.stringify(t||{})),r=A.items||[],n=(a,i)=>{if(Array.isArray(a)){const s=typeof i=="string"?i:" ";return a.map(u=>e&&e[u]!=null?String(e[u]):"").filter(u=>u!=="").join(s)}const o=a;return o&&e&&e[o]!=null?String(e[o]):""};return r.forEach(a=>{const i=a.props||{},o=i.FieldName,s=i.FieldConnector;if(o)switch(a.type){case"text":{const l=n(o,s),u=i.Title||"";i.Text=u?`${u}${l}`:l;break}case"barcode":{i.BarcodeValue=n(o,s);break}case"qrcode":{i.QRCodeValue=n(o,s);break}}}),A.items=r,A.printWidth=A.print_width||A.printWidth||0,A.printHeight=A.print_height||A.printHeight||0,A};async function $D(t,e,A={}){const{page:r,scale:n,pdf:a,returnType:i="base64",format:o="pdf",cacheInstance:s=!0}=A,l=qD(t,e),{default:u}=await Promise.resolve().then(()=>ay),d=(r==null?void 0:r.widthMm)||l.printWidth||l.width||100,g=(r==null?void 0:r.heightMm)||l.printHeight||l.height||100,h=Math.max(1,Math.floor(co(d))),y=Math.max(1,Math.floor(co(g)));let m,E;const B="__td_renderer_singleton__";if(s&&window[B]){const b=window[B];m=b.container,b.templateRef.value=l,b.keyRef.value=(b.keyRef.value||0)+1,m.style.width=h+"px",m.style.height=y+"px"}else{m=document.createElement("div"),m.style.position="fixed",m.style.left="-10000px",m.style.top="0",m.style.width=h+"px",m.style.height=y+"px",m.style.overflow="hidden",m.style.opacity="1",m.style.pointerEvents="none",document.body.appendChild(m);const b=f.ref(l),U=f.ref(0);E=f.createApp({render(){return f.h(dl,{key:U.value,templateData:b.value})}}),E.mount(m),s&&(window[B]={container:m,templateRef:b,keyRef:U,app:E})}try{await f.nextTick(),await new Promise(ne=>setTimeout(ne,200));const b=m.querySelector("#design")||m;if(!b)throw new Error("未找到设计画布元素 #design");await XD(b);const U=Math.max(window.devicePixelRatio||1,2),N=Number(n)>0?Number(n):(a==null?void 0:a.scale)||U*2,T=Math.min(2.5,Math.max(1.5,N)),O=!!(a!=null&&a.transparent),I=await u(b,{scale:T,useCORS:!0,allowTaint:!0,backgroundColor:O?null:"#ffffff",imageTimeout:15e3,logging:!1,removeContainer:!1,windowWidth:h,windowHeight:y}),M=O?"image/png":"image/jpeg",V=typeof(a==null?void 0:a.quality)=="number"?a.quality:.85,Z=I.toDataURL(M,V);if(o==="png"){const ne=Z,te=ne.split(",")[1]||"";return i==="dataUrl"?ne:te}const F=(a==null?void 0:a.orientation)||(d>=g?"landscape":"portrait"),S=(a==null?void 0:a.compress)!==void 0?a.compress:!0,H=new gt({orientation:F,unit:"mm",format:[d,g],compress:S}),P=O?"PNG":"JPEG";H.addImage(Z,P,0,0,d,g);const Y=H.output("datauristring"),G=Y.split(",")[1]||"";return i==="dataUrl"?Y:G}finally{if(!(s&&window[B])){try{E&&E.unmount&&E.unmount()}catch{}m&&m.parentNode&&m.parentNode.removeChild(m)}}}dl.install=t=>{t.component(dl.name||"TemplateDesigner",dl)};const Ky=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{width:20,height:2.8,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"用于固定文案的打印,不需要则不填。示例:如果填写“价格:”,则打印时内容为“价格:【字段对应值】”"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"},{label:"缅语Arial",value:"Arial",cssValue:"Arial"},{label:"缅语Segoe UI",value:"Segoe UI",cssValue:"Segoe UI"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Underline",label:"下划线",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,hide:!0},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行&省略",value:2},{label:"不换行&隐藏",value:3}],default:2,hide:!0},{prop:"HOrient",label:"水平锁定",type:"select",options:[{label:"无",value:0},{label:"左边距锁定",value:1},{label:"右边距锁定",value:2},{label:"水平居中",value:3}],hide:!0,default:0},{prop:"VOrient",label:"垂直锁定",type:"select",options:[{label:"无",value:0},{label:"上边距锁定",value:1},{label:"下边距锁定",value:2},{label:"垂直居中",value:3}],hide:!0,default:0},{prop:"PenWidth",label:"线宽",type:"number",min:0,hide:!0,default:0},{prop:"PenStyle",label:"线型",type:"select",hide:!0,options:[{label:"实线",value:0},{label:"破折线",value:1},{label:"点线",value:2},{label:"点划线",value:3},{label:"双点划线",value:4}],default:0},{prop:"Stretch",label:"缩放模式",type:"select",options:[{label:"扩展",value:1},{label:"缩放",value:2}],hide:!0,default:1},{prop:"PreviewOnly",label:"仅预览",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"ReadOnly",label:"只读",type:"select",hide:!0,options:[{label:"是",value:1},{label:"否",value:0}],default:0},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},barcode:{width:20,height:6,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},qrcode:{width:10,height:10,rotation:0,lockAspectRatio:!0,allowRotation:!1,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"H"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!0},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},rectangle:{width:15,height:10,rotation:0,lockAspectRatio:!1,allowRotation:!1,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"BorderRadius",type:"number",label:"圆角",default:0,min:0,step:1,hide:!0},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half",hide:!0}]},line:{width:15,height:.5,rotation:0,lockAspectRatio:!1,allowRotation:!1,x1:0,y1:0,x2:15,y2:0,desc:"",propertyPanel:[{prop:"LineWidth",type:"select",label:"线宽",default:"0.5",options:[{label:"默认",value:"0.5"},{label:"1px",value:"1"},{label:"2px",value:"2"},{label:"3px",value:"3"},{label:"4px",value:"4"},{label:"5px",value:"5"},{label:"6px",value:"6"},{label:"7px",value:"7"},{label:"8px",value:"8"},{label:"9px",value:"9"},{label:"10px",value:"10"}]},{prop:"LineStyle",type:"select",label:"样式",default:1,options:[{label:"实线",value:1},{label:"虚线",value:2}]},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"})),eP=Object.freeze(Object.defineProperty({__proto__:null,default:{text:{x:0,y:0,width:20,height:2.8,rotation:0,allowRotation:!1,Title:"",FieldName:"",Text:"测试文本",FontName:"黑体",FontSize:8,FontColor:"#000000",Bold:0,Italic:0,Underline:0,Alignment:2,TextWrap:1,HOrient:0,VOrient:0,PenWidth:0,PenStyle:0,Stretch:1,PreviewOnly:0,ReadOnly:0,desc:"",propertyPanel:[{prop:"Title",label:"标题",default:"",layout:"full",desc:"设置文本组件的标题内容,用于显示在组件上"},{prop:"FieldName",label:"字段名称",type:"select",multiple:!0,optionsKey:"fields",default:"",layout:"full"},{prop:"FieldConnector",label:"字段连接符",type:"text",default:"",layout:"full",desc:"当选择多个字段时,用于连接字段之间的分隔符,如:-、|、空格等,默认使用空格"},{prop:"Text",label:"测试数据(展示使用,无实际意义)",default:"测试文本",layout:"full"},{prop:"FontName",label:"字体名称",type:"select",desc:"注意:选择的字体需要计算机中安装有对应字体才有效",options:[{label:"黑体",value:"黑体",cssValue:"SimHei"},{label:"楷体",value:"楷体",cssValue:"KaiTi"},{label:"宋体",value:"宋体",cssValue:"SimSun"},{label:"隶书",value:"隶书",cssValue:"LiSu"}],default:"黑体",layout:"half"},{prop:"FontSize",label:"字体大小",type:"number",min:1,max:100,default:8,layout:"half"},{prop:"FontColor",label:"字体颜色",type:"color",hide:!0,default:"#000000",layout:"half"},{prop:"Bold",label:"字体加粗",type:"select",options:[{label:"加粗",value:1},{label:"不加粗",value:0}],default:0,layout:"half"},{prop:"Italic",label:"是否斜体",type:"select",options:[{label:"是",value:1},{label:"否",value:0}],default:0,layout:"half"},{prop:"Alignment",label:"对齐方式",type:"select",options:[{label:"居左",value:1},{label:"居中",value:2},{label:"居右",value:3}],default:2,layout:"half"},{prop:"TextWrap",label:"文本换行",type:"select",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2,hide:!0,layout:"half"},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},barcode:{x:0,y:0,width:20,height:6,rotation:0,allowRotation:!1,FieldName:"goodsSn",BarcodeValue:"1234567890",CodeType:"128Auto",AlignJustify:0,LineColor:"#000000",desc:"注:<br/>1、条码宽度需要根据实际打印数据的长短来适当设置;如果打印数据较长,条码宽度较短,条码打印出来会识别困难或无法识别。<br/>2、如果标签尺寸较小,就需要控制打印数据的长度,确保在有限的宽度打印出来能够正常识别。",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"goods_sn",layout:"full"},{prop:"BarcodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"1234567890"},{prop:"CodeType",label:"条码类型",type:"select",options:[{label:"CODE128",value:"128Auto",compValue:"CODE128"},{label:"CODE39",value:"Code39",compValue:"CODE39"},{label:"EAN13",value:"EAN13",compValue:"EAN13"}],hide:!0,default:"128Auto"},{prop:"AlignJustify",label:"对齐方式",type:"select",options:[{label:"两端对齐",value:0},{label:"左",value:1},{label:"中",value:2},{label:"右",value:3}],hide:!0,default:0},{prop:"LineColor",label:"条形码颜色",type:"color",hide:!0,default:"#000000"},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]},qrcode:{x:0,y:0,width:10,height:10,rotation:0,allowRotation:!1,FieldName:"",QRCodeValue:"FB-GOLD",QRCodeVersion:7,QRCodeErrorLevel:"Q",QRCodeEncodeMode:"B",QRCodeForeground:"#000000",QRCodeBackground:"transparent",lockAspectRatio:!0,desc:"",propertyPanel:[{prop:"FieldName",label:"字段名称",type:"select",optionsKey:"fields",default:"",layout:"full"},{prop:"QRCodeValue",label:"测试数据(展示使用,无实际意义)",type:"text",default:"FB-1234567890"},{prop:"QRCodeVersion",label:"二维码版本",type:"number",min:1,max:40,hide:!0,default:7},{prop:"QRCodeErrorLevel",label:"纠错级别",type:"select",options:[{label:"L (7%)",value:"L"},{label:"M (15%)",value:"M"},{label:"Q (25%)",value:"Q"},{label:"H (30%)",value:"H"}],hide:!0,default:"Q"},{prop:"QRCodeEncodeMode",label:"编码模式",type:"select",options:[{label:"数字",value:"N"},{label:"二进制或汉语",value:"B"},{label:"英文字母",value:"A"}],hide:!0,default:"B"},{prop:"QRCodeForeground",label:"前景色",type:"color",hide:!0,default:"#000000"},{prop:"QRCodeBackground",label:"背景景色",type:"color",hide:!0,default:"transparent"}]},image:{width:12,height:12,rotation:0,allowRotation:!1,lockAspectRatio:!1,desc:"",propertyPanel:[{prop:"ImageSrc",label:"图片地址",type:"file",accept:"image/*",default:""},{prop:"ScaleMode",label:"图片缩放",type:"select",options:[{label:"原始尺寸",value:1},{label:"居中裁剪",value:2},{label:"填充",value:3}],default:1},{prop:"IsPrint",label:"是否打印",type:"select",options:[{label:"是",value:!0},{label:"否",value:!1}],default:!1},{prop:"rotation",label:"旋转角度",type:"select",options:ba,default:0,layout:"half"}]}}},Symbol.toStringTag,{value:"Module"}));/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function La(t){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(t)}function Vp(t,e){return Vp=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vp(t,e)}function tP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tf(t,e,A){return tP()?tf=Reflect.construct:tf=function(n,a,i){var o=[null];o.push.apply(o,a);var s=Function.bind.apply(n,o),l=new s;return i&&Vp(l,i.prototype),l},tf.apply(null,arguments)}function Bn(t){return AP(t)||rP(t)||nP(t)||aP()}function AP(t){if(Array.isArray(t))return Mp(t)}function rP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nP(t,e){if(t){if(typeof t=="string")return Mp(t,e);var A=Object.prototype.toString.call(t).slice(8,-1);if(A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set")return Array.from(t);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return Mp(t,e)}}function Mp(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=new Array(e);A<e;A++)r[A]=t[A];return r}function aP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
302
302
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var iP=Object.hasOwnProperty,Gy=Object.setPrototypeOf,oP=Object.isFrozen,sP=Object.getPrototypeOf,lP=Object.getOwnPropertyDescriptor,Br=Object.freeze,en=Object.seal,cP=Object.create,zy=typeof Reflect<"u"&&Reflect,Af=zy.apply,Op=zy.construct;Af||(Af=function(e,A,r){return e.apply(A,r)}),Br||(Br=function(e){return e}),en||(en=function(e){return e}),Op||(Op=function(e,A){return tf(e,Bn(A))});var uP=tn(Array.prototype.forEach),Yy=tn(Array.prototype.pop),Bl=tn(Array.prototype.push),rf=tn(String.prototype.toLowerCase),Lp=tn(String.prototype.toString),Xy=tn(String.prototype.match),wn=tn(String.prototype.replace),fP=tn(String.prototype.indexOf),hP=tn(String.prototype.trim),er=tn(RegExp.prototype.test),kp=dP(TypeError);function tn(t){return function(e){for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return Af(t,e,r)}}function dP(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return Op(t,A)}}function Tt(t,e,A){var r;A=(r=A)!==null&&r!==void 0?r:rf,Gy&&Gy(t,null);for(var n=e.length;n--;){var a=e[n];if(typeof a=="string"){var i=A(a);i!==a&&(oP(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Ei(t){var e=cP(null),A;for(A in t)Af(iP,t,[A])===!0&&(e[A]=t[A]);return e}function nf(t,e){for(;t!==null;){var A=lP(t,e);if(A){if(A.get)return tn(A.get);if(typeof A.value=="function")return tn(A.value)}t=sP(t)}function r(n){return console.warn("fallback value for",n),null}return r}var qy=Br(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Hp=Br(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dp=Br(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pP=Br(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pp=Br(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),gP=Br(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$y=Br(["#text"]),e5=Br(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Wp=Br(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),t5=Br(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),af=Br(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mP=en(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vP=en(/<%[\w\W]*|[\w\W]*%>/gm),BP=en(/\${[\w\W]*}/gm),wP=en(/^data-[\-\w.\u00B7-\uFFFF]+$/),yP=en(/^aria-[\-\w]+$/),bP=en(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),EP=en(/^(?:\w+script|data):/i),CP=en(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),UP=en(/^html$/i),FP=en(/^[a-z][.\w]*(-[.\w]+)+$/i),NP=function(){return typeof window>"u"?null:window},QP=function(e,A){if(La(e)!=="object"||typeof e.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";A.currentScript&&A.currentScript.hasAttribute(n)&&(r=A.currentScript.getAttribute(n));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(o){return o},createScriptURL:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function A5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NP(),e=function(oe){return A5(oe)};if(e.version="2.5.8",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var A=t.document,r=t.document,n=t.DocumentFragment,a=t.HTMLTemplateElement,i=t.Node,o=t.Element,s=t.NodeFilter,l=t.NamedNodeMap,u=l===void 0?t.NamedNodeMap||t.MozNamedAttrMap:l,d=t.HTMLFormElement,g=t.DOMParser,h=t.trustedTypes,y=o.prototype,m=nf(y,"cloneNode"),E=nf(y,"nextSibling"),B=nf(y,"childNodes"),b=nf(y,"parentNode");if(typeof a=="function"){var U=r.createElement("template");U.content&&U.content.ownerDocument&&(r=U.content.ownerDocument)}var N=QP(h,A),T=N?N.createHTML(""):"",O=r,I=O.implementation,M=O.createNodeIterator,V=O.createDocumentFragment,Z=O.getElementsByTagName,F=A.importNode,S={};try{S=Ei(r).documentMode?r.documentMode:{}}catch{}var H={};e.isSupported=typeof b=="function"&&I&&I.createHTMLDocument!==void 0&&S!==9;var P=mP,Y=vP,G=BP,ne=wP,te=yP,Ae=EP,$=CP,ce=FP,Q=bP,_=null,j=Tt({},[].concat(Bn(qy),Bn(Hp),Bn(Dp),Bn(Pp),Bn($y))),z=null,re=Tt({},[].concat(Bn(e5),Bn(Wp),Bn(t5),Bn(af))),ie=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,me=null,Ve=!0,Te=!0,De=!1,Oe=!0,Ke=!1,ve=!0,q=!1,ut=!1,Xe=!1,Qe=!1,Me=!1,Le=!1,He=!0,Ze=!1,tt="user-content-",ot=!0,dt=!1,wt={},Ut=null,st=Tt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Bt=null,ke=Tt({},["audio","video","img","source","image","track"]),Wt=null,Qt=Tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xA="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml",hA=xt,Rt=!1,WA=null,_t=Tt({},[xA,St,xt],Lp),oA,Gt=["application/xhtml+xml","text/html"],ee="text/html",K,we=null,ze=r.createElement("form"),At=function(oe){return oe instanceof RegExp||oe instanceof Function},_e=function(oe){we&&we===oe||((!oe||La(oe)!=="object")&&(oe={}),oe=Ei(oe),oA=Gt.indexOf(oe.PARSER_MEDIA_TYPE)===-1?oA=ee:oA=oe.PARSER_MEDIA_TYPE,K=oA==="application/xhtml+xml"?Lp:rf,_="ALLOWED_TAGS"in oe?Tt({},oe.ALLOWED_TAGS,K):j,z="ALLOWED_ATTR"in oe?Tt({},oe.ALLOWED_ATTR,K):re,WA="ALLOWED_NAMESPACES"in oe?Tt({},oe.ALLOWED_NAMESPACES,Lp):_t,Wt="ADD_URI_SAFE_ATTR"in oe?Tt(Ei(Qt),oe.ADD_URI_SAFE_ATTR,K):Qt,Bt="ADD_DATA_URI_TAGS"in oe?Tt(Ei(ke),oe.ADD_DATA_URI_TAGS,K):ke,Ut="FORBID_CONTENTS"in oe?Tt({},oe.FORBID_CONTENTS,K):st,he="FORBID_TAGS"in oe?Tt({},oe.FORBID_TAGS,K):{},me="FORBID_ATTR"in oe?Tt({},oe.FORBID_ATTR,K):{},wt="USE_PROFILES"in oe?oe.USE_PROFILES:!1,Ve=oe.ALLOW_ARIA_ATTR!==!1,Te=oe.ALLOW_DATA_ATTR!==!1,De=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ke=oe.SAFE_FOR_TEMPLATES||!1,ve=oe.SAFE_FOR_XML!==!1,q=oe.WHOLE_DOCUMENT||!1,Qe=oe.RETURN_DOM||!1,Me=oe.RETURN_DOM_FRAGMENT||!1,Le=oe.RETURN_TRUSTED_TYPE||!1,Xe=oe.FORCE_BODY||!1,He=oe.SANITIZE_DOM!==!1,Ze=oe.SANITIZE_NAMED_PROPS||!1,ot=oe.KEEP_CONTENT!==!1,dt=oe.IN_PLACE||!1,Q=oe.ALLOWED_URI_REGEXP||Q,hA=oe.NAMESPACE||xt,ie=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&At(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&At(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ke&&(Te=!1),Me&&(Qe=!0),wt&&(_=Tt({},Bn($y)),z=[],wt.html===!0&&(Tt(_,qy),Tt(z,e5)),wt.svg===!0&&(Tt(_,Hp),Tt(z,Wp),Tt(z,af)),wt.svgFilters===!0&&(Tt(_,Dp),Tt(z,Wp),Tt(z,af)),wt.mathMl===!0&&(Tt(_,Pp),Tt(z,t5),Tt(z,af))),oe.ADD_TAGS&&(_===j&&(_=Ei(_)),Tt(_,oe.ADD_TAGS,K)),oe.ADD_ATTR&&(z===re&&(z=Ei(z)),Tt(z,oe.ADD_ATTR,K)),oe.ADD_URI_SAFE_ATTR&&Tt(Wt,oe.ADD_URI_SAFE_ATTR,K),oe.FORBID_CONTENTS&&(Ut===st&&(Ut=Ei(Ut)),Tt(Ut,oe.FORBID_CONTENTS,K)),ot&&(_["#text"]=!0),q&&Tt(_,["html","head","body"]),_.table&&(Tt(_,["tbody"]),delete he.tbody),Br&&Br(oe),we=oe)},at=Tt({},["mi","mo","mn","ms","mtext"]),Ne=Tt({},["annotation-xml"]),it=Tt({},["title","style","font","a","script"]),je=Tt({},Hp);Tt(je,Dp),Tt(je,pP);var ye=Tt({},Pp);Tt(ye,gP);var mt=function(oe){var xe=b(oe);(!xe||!xe.tagName)&&(xe={namespaceURI:hA,tagName:"template"});var We=rf(oe.tagName),It=rf(xe.tagName);return WA[oe.namespaceURI]?oe.namespaceURI===St?xe.namespaceURI===xt?We==="svg":xe.namespaceURI===xA?We==="svg"&&(It==="annotation-xml"||at[It]):!!je[We]:oe.namespaceURI===xA?xe.namespaceURI===xt?We==="math":xe.namespaceURI===St?We==="math"&&Ne[It]:!!ye[We]:oe.namespaceURI===xt?xe.namespaceURI===St&&!Ne[It]||xe.namespaceURI===xA&&!at[It]?!1:!ye[We]&&(it[We]||!je[We]):!!(oA==="application/xhtml+xml"&&WA[oe.namespaceURI]):!1},Pe=function(oe){Bl(e.removed,{element:oe});try{oe.parentNode.removeChild(oe)}catch{try{oe.outerHTML=T}catch{oe.remove()}}},ft=function(oe,xe){try{Bl(e.removed,{attribute:xe.getAttributeNode(oe),from:xe})}catch{Bl(e.removed,{attribute:null,from:xe})}if(xe.removeAttribute(oe),oe==="is"&&!z[oe])if(Qe||Me)try{Pe(xe)}catch{}else try{xe.setAttribute(oe,"")}catch{}},qt=function(oe){var xe,We;if(Xe)oe="<remove></remove>"+oe;else{var It=Xy(oe,/^[\r\n\t ]+/);We=It&&It[0]}oA==="application/xhtml+xml"&&hA===xt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");var bA=N?N.createHTML(oe):oe;if(hA===xt)try{xe=new g().parseFromString(bA,oA)}catch{}if(!xe||!xe.documentElement){xe=I.createDocument(hA,"template",null);try{xe.documentElement.innerHTML=Rt?T:bA}catch{}}var lA=xe.body||xe.documentElement;return oe&&We&&lA.insertBefore(r.createTextNode(We),lA.childNodes[0]||null),hA===xt?Z.call(xe,q?"html":"body")[0]:q?xe.documentElement:lA},Vt=function(oe){return M.call(oe.ownerDocument||oe,oe,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},vt=function(oe){return oe instanceof d&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof u)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},Mt=function(oe){return La(i)==="object"?oe instanceof i:oe&&La(oe)==="object"&&typeof oe.nodeType=="number"&&typeof oe.nodeName=="string"},Ht=function(oe,xe,We){H[oe]&&uP(H[oe],function(It){It.call(e,xe,We,we)})},_A=function(oe){var xe;if(Ht("beforeSanitizeElements",oe,null),vt(oe)||er(/[\u0080-\uFFFF]/,oe.nodeName))return Pe(oe),!0;var We=K(oe.nodeName);if(Ht("uponSanitizeElement",oe,{tagName:We,allowedTags:_}),oe.hasChildNodes()&&!Mt(oe.firstElementChild)&&(!Mt(oe.content)||!Mt(oe.content.firstElementChild))&&er(/<[/\w]/g,oe.innerHTML)&&er(/<[/\w]/g,oe.textContent)||We==="select"&&er(/<template/i,oe.innerHTML)||oe.nodeType===7||ve&&oe.nodeType===8&&er(/<[/\w]/g,oe.data))return Pe(oe),!0;if(!_[We]||he[We]){if(!he[We]&&sA(We)&&(ie.tagNameCheck instanceof RegExp&&er(ie.tagNameCheck,We)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(We)))return!1;if(ot&&!Ut[We]){var It=b(oe)||oe.parentNode,bA=B(oe)||oe.childNodes;if(bA&&It)for(var lA=bA.length,pA=lA-1;pA>=0;--pA){var xr=m(bA[pA],!0);xr.__removalCount=(oe.__removalCount||0)+1,It.insertBefore(xr,E(oe))}}return Pe(oe),!0}return oe instanceof o&&!mt(oe)||(We==="noscript"||We==="noembed"||We==="noframes")&&er(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Pe(oe),!0):(Ke&&oe.nodeType===3&&(xe=oe.textContent,xe=wn(xe,P," "),xe=wn(xe,Y," "),xe=wn(xe,G," "),oe.textContent!==xe&&(Bl(e.removed,{element:oe.cloneNode()}),oe.textContent=xe)),Ht("afterSanitizeElements",oe,null),!1)},Zt=function(oe,xe,We){if(He&&(xe==="id"||xe==="name")&&(We in r||We in ze))return!1;if(!(Te&&!me[xe]&&er(ne,xe))){if(!(Ve&&er(te,xe))){if(!z[xe]||me[xe]){if(!(sA(oe)&&(ie.tagNameCheck instanceof RegExp&&er(ie.tagNameCheck,oe)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(oe))&&(ie.attributeNameCheck instanceof RegExp&&er(ie.attributeNameCheck,xe)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(xe))||xe==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&er(ie.tagNameCheck,We)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(We))))return!1}else if(!Wt[xe]){if(!er(Q,wn(We,$,""))){if(!((xe==="src"||xe==="xlink:href"||xe==="href")&&oe!=="script"&&fP(We,"data:")===0&&Bt[oe])){if(!(De&&!er(Ae,wn(We,$,"")))){if(We)return!1}}}}}}return!0},sA=function(oe){return oe!=="annotation-xml"&&Xy(oe,ce)},dA=function(oe){var xe,We,It,bA;Ht("beforeSanitizeAttributes",oe,null);var lA=oe.attributes;if(!(!lA||vt(oe))){var pA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};for(bA=lA.length;bA--;){xe=lA[bA];var xr=xe,cA=xr.name,Li=xr.namespaceURI;if(We=cA==="value"?xe.value:hP(xe.value),It=K(cA),pA.attrName=It,pA.attrValue=We,pA.keepAttr=!0,pA.forceKeepAttr=void 0,Ht("uponSanitizeAttribute",oe,pA),We=pA.attrValue,!pA.forceKeepAttr&&(ft(cA,oe),!!pA.keepAttr)){if(!Oe&&er(/\/>/i,We)){ft(cA,oe);continue}Ke&&(We=wn(We,P," "),We=wn(We,Y," "),We=wn(We,G," "));var ki=K(oe.nodeName);if(Zt(ki,It,We)){if(Ze&&(It==="id"||It==="name")&&(ft(cA,oe),We=tt+We),ve&&er(/((--!?|])>)|<\/(style|title)/i,We)){ft(cA,oe);continue}if(N&&La(h)==="object"&&typeof h.getAttributeType=="function"&&!Li)switch(h.getAttributeType(ki,It)){case"TrustedHTML":{We=N.createHTML(We);break}case"TrustedScriptURL":{We=N.createScriptURL(We);break}}try{Li?oe.setAttributeNS(Li,cA,We):oe.setAttribute(cA,We),vt(oe)?Pe(oe):Yy(e.removed)}catch{}}}}Ht("afterSanitizeAttributes",oe,null)}},_r=function rt(oe){var xe,We=Vt(oe);for(Ht("beforeSanitizeShadowDOM",oe,null);xe=We.nextNode();)Ht("uponSanitizeShadowNode",xe,null),_A(xe),dA(xe),xe.content instanceof n&&rt(xe.content);Ht("afterSanitizeShadowDOM",oe,null)};return e.sanitize=function(rt){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe,We,It,bA,lA;if(Rt=!rt,Rt&&(rt="<!-->"),typeof rt!="string"&&!Mt(rt))if(typeof rt.toString=="function"){if(rt=rt.toString(),typeof rt!="string")throw kp("dirty is not a string, aborting")}else throw kp("toString is not a function");if(!e.isSupported){if(La(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof rt=="string")return t.toStaticHTML(rt);if(Mt(rt))return t.toStaticHTML(rt.outerHTML)}return rt}if(ut||_e(oe),e.removed=[],typeof rt=="string"&&(dt=!1),dt){if(rt.nodeName){var pA=K(rt.nodeName);if(!_[pA]||he[pA])throw kp("root node is forbidden and cannot be sanitized in-place")}}else if(rt instanceof i)xe=qt("<!---->"),We=xe.ownerDocument.importNode(rt,!0),We.nodeType===1&&We.nodeName==="BODY"||We.nodeName==="HTML"?xe=We:xe.appendChild(We);else{if(!Qe&&!Ke&&!q&&rt.indexOf("<")===-1)return N&&Le?N.createHTML(rt):rt;if(xe=qt(rt),!xe)return Qe?null:Le?T:""}xe&&Xe&&Pe(xe.firstChild);for(var xr=Vt(dt?rt:xe);It=xr.nextNode();)It.nodeType===3&&It===bA||(_A(It),dA(It),It.content instanceof n&&_r(It.content),bA=It);if(bA=null,dt)return rt;if(Qe){if(Me)for(lA=V.call(xe.ownerDocument);xe.firstChild;)lA.appendChild(xe.firstChild);else lA=xe;return(z.shadowroot||z.shadowrootmod)&&(lA=F.call(A,lA,!0)),lA}var cA=q?xe.outerHTML:xe.innerHTML;return q&&_["!doctype"]&&xe.ownerDocument&&xe.ownerDocument.doctype&&xe.ownerDocument.doctype.name&&er(UP,xe.ownerDocument.doctype.name)&&(cA="<!DOCTYPE "+xe.ownerDocument.doctype.name+`>
|
|
303
303
|
`+cA),Ke&&(cA=wn(cA,P," "),cA=wn(cA,Y," "),cA=wn(cA,G," ")),N&&Le?N.createHTML(cA):cA},e.setConfig=function(rt){_e(rt),ut=!0},e.clearConfig=function(){we=null,ut=!1},e.isValidAttribute=function(rt,oe,xe){we||_e({});var We=K(rt),It=K(oe);return Zt(We,It,xe)},e.addHook=function(rt,oe){typeof oe=="function"&&(H[rt]=H[rt]||[],Bl(H[rt],oe))},e.removeHook=function(rt){if(H[rt])return Yy(H[rt])},e.removeHooks=function(rt){H[rt]&&(H[rt]=[])},e.removeAllHooks=function(){H={}},e}var SP=A5();const TP=Object.freeze(Object.defineProperty({__proto__:null,default:SP},Symbol.toStringTag,{value:"Module"}));var wl=function(t){return t&&t.Math===Math&&t},fA=wl(typeof globalThis=="object"&&globalThis)||wl(typeof window=="object"&&window)||wl(typeof self=="object"&&self)||wl(typeof qi=="object"&&qi)||wl(typeof qi=="object"&&qi)||function(){return this}()||Function("return this")(),yl={},BA=function(t){try{return!!t()}catch{return!0}},xP=BA,yn=!xP(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),RP=BA,of=!RP(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),IP=of,sf=Function.prototype.call,tr=IP?sf.bind(sf):function(){return sf.apply(sf,arguments)},r5={},n5={}.propertyIsEnumerable,a5=Object.getOwnPropertyDescriptor,VP=a5&&!n5.call({1:2},1);r5.f=VP?function(e){var A=a5(this,e);return!!A&&A.enumerable}:n5;var _p=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},i5=of,o5=Function.prototype,Zp=o5.call,MP=i5&&o5.bind.bind(Zp,Zp),wA=i5?MP:function(t){return function(){return Zp.apply(t,arguments)}},s5=wA,OP=s5({}.toString),LP=s5("".slice),Ci=function(t){return LP(OP(t),8,-1)},kP=wA,HP=BA,DP=Ci,jp=Object,PP=kP("".split),l5=HP(function(){return!jp("z").propertyIsEnumerable(0)})?function(t){return DP(t)==="String"?PP(t,""):jp(t)}:jp,lf=function(t){return t==null},WP=lf,_P=TypeError,bn=function(t){if(WP(t))throw new _P("Can't call method on "+t);return t},ZP=l5,jP=bn,bl=function(t){return ZP(jP(t))},Jp=typeof document=="object"&&document.all,TA=typeof Jp>"u"&&Jp!==void 0?function(t){return typeof t=="function"||t===Jp}:function(t){return typeof t=="function"},JP=TA,Sr=function(t){return typeof t=="object"?t!==null:JP(t)},Kp=fA,KP=TA,GP=function(t){return KP(t)?t:void 0},Ui=function(t,e){return arguments.length<2?GP(Kp[t]):Kp[t]&&Kp[t][e]},zP=wA,cf=zP({}.isPrototypeOf),YP=fA,c5=YP.navigator,u5=c5&&c5.userAgent,El=u5?String(u5):"",f5=fA,Gp=El,h5=f5.process,d5=f5.Deno,p5=h5&&h5.versions||d5&&d5.version,g5=p5&&p5.v8,En,uf;g5&&(En=g5.split("."),uf=En[0]>0&&En[0]<4?1:+(En[0]+En[1])),!uf&&Gp&&(En=Gp.match(/Edge\/(\d+)/),(!En||En[1]>=74)&&(En=Gp.match(/Chrome\/(\d+)/),En&&(uf=+En[1])));var zp=uf,m5=zp,XP=BA,qP=fA,$P=qP.String,v5=!!Object.getOwnPropertySymbols&&!XP(function(){var t=Symbol("symbol detection");return!$P(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&m5&&m5<41}),eW=v5,B5=eW&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tW=Ui,AW=TA,rW=cf,nW=B5,aW=Object,w5=nW?function(t){return typeof t=="symbol"}:function(t){var e=tW("Symbol");return AW(e)&&rW(e.prototype,aW(t))},iW=String,ff=function(t){try{return iW(t)}catch{return"Object"}},oW=TA,sW=ff,lW=TypeError,$n=function(t){if(oW(t))return t;throw new lW(sW(t)+" is not a function")},cW=$n,uW=lf,Po=function(t,e){var A=t[e];return uW(A)?void 0:cW(A)},Yp=tr,Xp=TA,qp=Sr,fW=TypeError,hW=function(t,e){var A,r;if(e==="string"&&Xp(A=t.toString)&&!qp(r=Yp(A,t))||Xp(A=t.valueOf)&&!qp(r=Yp(A,t))||e!=="string"&&Xp(A=t.toString)&&!qp(r=Yp(A,t)))return r;throw new fW("Can't convert object to primitive value")},y5={exports:{}},b5=fA,dW=Object.defineProperty,$p=function(t,e){try{dW(b5,t,{value:e,configurable:!0,writable:!0})}catch{b5[t]=e}return e},pW=fA,gW=$p,E5="__core-js_shared__",C5=y5.exports=pW[E5]||gW(E5,{});(C5.versions||(C5.versions=[])).push({version:"3.45.1",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"});var e1=y5.exports,U5=e1,t1=function(t,e){return U5[t]||(U5[t]=e||{})},mW=bn,vW=Object,hf=function(t){return vW(mW(t))},BW=wA,wW=hf,yW=BW({}.hasOwnProperty),Cn=Object.hasOwn||function(e,A){return yW(wW(e),A)},bW=wA,EW=0,CW=Math.random(),UW=bW(1.1.toString),F5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+UW(++EW+CW,36)},FW=fA,NW=t1,N5=Cn,QW=F5,SW=v5,TW=B5,Wo=FW.Symbol,A1=NW("wks"),xW=TW?Wo.for||Wo:Wo&&Wo.withoutSetter||QW,GA=function(t){return N5(A1,t)||(A1[t]=SW&&N5(Wo,t)?Wo[t]:xW("Symbol."+t)),A1[t]},RW=tr,Q5=Sr,S5=w5,IW=Po,VW=hW,MW=GA,OW=TypeError,LW=MW("toPrimitive"),kW=function(t,e){if(!Q5(t)||S5(t))return t;var A=IW(t,LW),r;if(A){if(e===void 0&&(e="default"),r=RW(A,t,e),!Q5(r)||S5(r))return r;throw new OW("Can't convert object to primitive value")}return e===void 0&&(e="number"),VW(t,e)},HW=kW,DW=w5,T5=function(t){var e=HW(t,"string");return DW(e)?e:e+""},PW=fA,x5=Sr,r1=PW.document,WW=x5(r1)&&x5(r1.createElement),df=function(t){return WW?r1.createElement(t):{}},_W=yn,ZW=BA,jW=df,R5=!_W&&!ZW(function(){return Object.defineProperty(jW("div"),"a",{get:function(){return 7}}).a!==7}),JW=yn,KW=tr,GW=r5,zW=_p,YW=bl,XW=T5,qW=Cn,$W=R5,I5=Object.getOwnPropertyDescriptor;yl.f=JW?I5:function(e,A){if(e=YW(e),A=XW(A),$W)try{return I5(e,A)}catch{}if(qW(e,A))return zW(!KW(GW.f,e,A),e[A])};var ea={},e_=yn,t_=BA,V5=e_&&t_(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),A_=Sr,r_=String,n_=TypeError,wr=function(t){if(A_(t))return t;throw new n_(r_(t)+" is not an object")},a_=yn,i_=R5,o_=V5,pf=wr,M5=T5,s_=TypeError,n1=Object.defineProperty,l_=Object.getOwnPropertyDescriptor,a1="enumerable",i1="configurable",o1="writable";ea.f=a_?o_?function(e,A,r){if(pf(e),A=M5(A),pf(r),typeof e=="function"&&A==="prototype"&&"value"in r&&o1 in r&&!r[o1]){var n=l_(e,A);n&&n[o1]&&(e[A]=r.value,r={configurable:i1 in r?r[i1]:n[i1],enumerable:a1 in r?r[a1]:n[a1],writable:!1})}return n1(e,A,r)}:n1:function(e,A,r){if(pf(e),A=M5(A),pf(r),i_)try{return n1(e,A,r)}catch{}if("get"in r||"set"in r)throw new s_("Accessors not supported");return"value"in r&&(e[A]=r.value),e};var c_=yn,u_=ea,f_=_p,Cl=c_?function(t,e,A){return u_.f(t,e,f_(1,A))}:function(t,e,A){return t[e]=A,t},O5={exports:{}},s1=yn,h_=Cn,L5=Function.prototype,d_=s1&&Object.getOwnPropertyDescriptor,l1=h_(L5,"name"),p_=l1&&(function(){}).name==="something",g_=l1&&(!s1||s1&&d_(L5,"name").configurable),gf={EXISTS:l1,PROPER:p_,CONFIGURABLE:g_},m_=wA,v_=TA,c1=e1,B_=m_(Function.toString);v_(c1.inspectSource)||(c1.inspectSource=function(t){return B_(t)});var u1=c1.inspectSource,w_=fA,y_=TA,k5=w_.WeakMap,b_=y_(k5)&&/native code/.test(String(k5)),E_=t1,C_=F5,H5=E_("keys"),f1=function(t){return H5[t]||(H5[t]=C_(t))},h1={},U_=b_,D5=fA,F_=Sr,N_=Cl,d1=Cn,p1=e1,Q_=f1,S_=h1,P5="Object already initialized",g1=D5.TypeError,T_=D5.WeakMap,mf,Ul,vf,x_=function(t){return vf(t)?Ul(t):mf(t,{})},R_=function(t){return function(e){var A;if(!F_(e)||(A=Ul(e)).type!==t)throw new g1("Incompatible receiver, "+t+" required");return A}};if(U_||p1.state){var Pn=p1.state||(p1.state=new T_);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,mf=function(t,e){if(Pn.has(t))throw new g1(P5);return e.facade=t,Pn.set(t,e),e},Ul=function(t){return Pn.get(t)||{}},vf=function(t){return Pn.has(t)}}else{var _o=Q_("state");S_[_o]=!0,mf=function(t,e){if(d1(t,_o))throw new g1(P5);return e.facade=t,N_(t,_o,e),e},Ul=function(t){return d1(t,_o)?t[_o]:{}},vf=function(t){return d1(t,_o)}}var Bf={set:mf,get:Ul,has:vf,enforce:x_,getterFor:R_},m1=wA,I_=BA,V_=TA,wf=Cn,v1=yn,M_=gf.CONFIGURABLE,O_=u1,W5=Bf,L_=W5.enforce,k_=W5.get,_5=String,yf=Object.defineProperty,H_=m1("".slice),D_=m1("".replace),P_=m1([].join),W_=v1&&!I_(function(){return yf(function(){},"length",{value:8}).length!==8}),__=String(String).split("String"),Z_=O5.exports=function(t,e,A){H_(_5(e),0,7)==="Symbol("&&(e="["+D_(_5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!wf(t,"name")||M_&&t.name!==e)&&(v1?yf(t,"name",{value:e,configurable:!0}):t.name=e),W_&&A&&wf(A,"arity")&&t.length!==A.arity&&yf(t,"length",{value:A.arity});try{A&&wf(A,"constructor")&&A.constructor?v1&&yf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=L_(t);return wf(r,"source")||(r.source=P_(__,typeof e=="string"?e:"")),t};Function.prototype.toString=Z_(function(){return V_(this)&&k_(this).source||O_(this)},"toString");var Z5=O5.exports,j_=TA,J_=ea,K_=Z5,G_=$p,Fi=function(t,e,A,r){r||(r={});var n=r.enumerable,a=r.name!==void 0?r.name:e;if(j_(A)&&K_(A,a,r),r.global)n?t[e]=A:G_(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:J_.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},j5={},z_=Math.ceil,Y_=Math.floor,X_=Math.trunc||function(e){var A=+e;return(A>0?Y_:z_)(A)},q_=X_,bf=function(t){var e=+t;return e!==e||e===0?0:q_(e)},$_=bf,e7=Math.max,t7=Math.min,A7=function(t,e){var A=$_(t);return A<0?e7(A+e,0):t7(A,e)},r7=bf,n7=Math.min,Zo=function(t){var e=r7(t);return e>0?n7(e,9007199254740991):0},a7=Zo,B1=function(t){return a7(t.length)},i7=bl,o7=A7,s7=B1,J5=function(t){return function(e,A,r){var n=i7(e),a=s7(n);if(a===0)return!t&&-1;var i=o7(r,a),o;if(t&&A!==A){for(;a>i;)if(o=n[i++],o!==o)return!0}else for(;a>i;i++)if((t||i in n)&&n[i]===A)return t||i||0;return!t&&-1}},K5={includes:J5(!0),indexOf:J5(!1)},l7=wA,w1=Cn,c7=bl,u7=K5.indexOf,f7=h1,G5=l7([].push),z5=function(t,e){var A=c7(t),r=0,n=[],a;for(a in A)!w1(f7,a)&&w1(A,a)&&G5(n,a);for(;e.length>r;)w1(A,a=e[r++])&&(~u7(n,a)||G5(n,a));return n},y1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],h7=z5,d7=y1,p7=d7.concat("length","prototype");j5.f=Object.getOwnPropertyNames||function(e){return h7(e,p7)};var Y5={};Y5.f=Object.getOwnPropertySymbols;var g7=Ui,m7=wA,v7=j5,B7=Y5,w7=wr,y7=m7([].concat),b7=g7("Reflect","ownKeys")||function(e){var A=v7.f(w7(e)),r=B7.f;return r?y7(A,r(e)):A},X5=Cn,E7=b7,C7=yl,U7=ea,F7=function(t,e,A){for(var r=E7(e),n=U7.f,a=C7.f,i=0;i<r.length;i++){var o=r[i];!X5(t,o)&&!(A&&X5(A,o))&&n(t,o,a(e,o))}},N7=BA,Q7=TA,S7=/#|\.prototype\./,Fl=function(t,e){var A=x7[T7(t)];return A===I7?!0:A===R7?!1:Q7(e)?N7(e):!!e},T7=Fl.normalize=function(t){return String(t).replace(S7,".").toLowerCase()},x7=Fl.data={},R7=Fl.NATIVE="N",I7=Fl.POLYFILL="P",q5=Fl,Ef=fA,V7=yl.f,M7=Cl,O7=Fi,L7=$p,k7=F7,H7=q5,yr=function(t,e){var A=t.target,r=t.global,n=t.stat,a,i,o,s,l,u;if(r?i=Ef:n?i=Ef[A]||L7(A,{}):i=Ef[A]&&Ef[A].prototype,i)for(o in e){if(l=e[o],t.dontCallGetSet?(u=V7(i,o),s=u&&u.value):s=i[o],a=H7(r?o:A+(n?".":"#")+o,t.forced),!a&&s!==void 0){if(typeof l==typeof s)continue;k7(l,s)}(t.sham||s&&s.sham)&&M7(l,"sham",!0),O7(i,o,l,t)}},Nl=fA,D7=El,P7=Ci,Cf=function(t){return D7.slice(0,t.length)===t},$5=function(){return Cf("Bun/")?"BUN":Cf("Cloudflare-Workers")?"CLOUDFLARE":Cf("Deno/")?"DENO":Cf("Node.js/")?"NODE":Nl.Bun&&typeof Bun.version=="string"?"BUN":Nl.Deno&&typeof Deno.version=="object"?"DENO":P7(Nl.process)==="process"?"NODE":Nl.window&&Nl.document?"BROWSER":"REST"}(),W7=$5,Uf=W7==="NODE",_7=fA,Z7=_7,j7=wA,J7=$n,K7=function(t,e,A){try{return j7(J7(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}},G7=Sr,z7=function(t){return G7(t)||t===null},Y7=z7,X7=String,q7=TypeError,$7=function(t){if(Y7(t))return t;throw new q7("Can't set "+X7(t)+" as a prototype")},eZ=K7,tZ=Sr,AZ=bn,rZ=$7,eb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},A;try{A=eZ(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,a){return AZ(n),rZ(a),tZ(n)&&(t?A(n,a):n.__proto__=a),n}}():void 0),nZ=ea.f,aZ=Cn,iZ=GA,tb=iZ("toStringTag"),Ff=function(t,e,A){t&&!A&&(t=t.prototype),t&&!aZ(t,tb)&&nZ(t,tb,{configurable:!0,value:e})},Ab=Z5,oZ=ea,sZ=function(t,e,A){return A.get&&Ab(A.get,e,{getter:!0}),A.set&&Ab(A.set,e,{setter:!0}),oZ.f(t,e,A)},lZ=Ui,cZ=sZ,uZ=GA,fZ=yn,rb=uZ("species"),hZ=function(t){var e=lZ(t);fZ&&e&&!e[rb]&&cZ(e,rb,{configurable:!0,get:function(){return this}})},dZ=cf,pZ=TypeError,gZ=function(t,e){if(dZ(e,t))return t;throw new pZ("Incorrect invocation")},mZ=GA,vZ=mZ("toStringTag"),nb={};nb[vZ]="z";var BZ=String(nb)==="[object z]",wZ=BZ,yZ=TA,Nf=Ci,bZ=GA,EZ=bZ("toStringTag"),CZ=Object,UZ=Nf(function(){return arguments}())==="Arguments",FZ=function(t,e){try{return t[e]}catch{}},b1=wZ?Nf:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=FZ(e=CZ(t),EZ))=="string"?A:UZ?Nf(e):(r=Nf(e))==="Object"&&yZ(e.callee)?"Arguments":r},NZ=wA,QZ=BA,ab=TA,SZ=b1,TZ=Ui,xZ=u1,ib=function(){},ob=TZ("Reflect","construct"),E1=/^\s*(?:class|function)\b/,RZ=NZ(E1.exec),IZ=!E1.test(ib),Ql=function(e){if(!ab(e))return!1;try{return ob(ib,[],e),!0}catch{return!1}},sb=function(e){if(!ab(e))return!1;switch(SZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return IZ||!!RZ(E1,xZ(e))}catch{return!0}};sb.sham=!0;var VZ=!ob||QZ(function(){var t;return Ql(Ql.call)||!Ql(Object)||!Ql(function(){t=!0})||t})?sb:Ql,MZ=VZ,OZ=ff,LZ=TypeError,kZ=function(t){if(MZ(t))return t;throw new LZ(OZ(t)+" is not a constructor")},lb=wr,HZ=kZ,DZ=lf,PZ=GA,WZ=PZ("species"),cb=function(t,e){var A=lb(t).constructor,r;return A===void 0||DZ(r=lb(A)[WZ])?e:HZ(r)},_Z=of,ub=Function.prototype,fb=ub.apply,hb=ub.call,db=typeof Reflect=="object"&&Reflect.apply||(_Z?hb.bind(fb):function(){return hb.apply(fb,arguments)}),ZZ=Ci,jZ=wA,Qf=function(t){if(ZZ(t)==="Function")return jZ(t)},pb=Qf,JZ=$n,KZ=of,GZ=pb(pb.bind),C1=function(t,e){return JZ(t),e===void 0?t:KZ?GZ(t,e):function(){return t.apply(e,arguments)}},zZ=Ui,gb=zZ("document","documentElement"),YZ=wA,XZ=YZ([].slice),qZ=TypeError,$Z=function(t,e){if(t<e)throw new qZ("Not enough arguments");return t},e9=El,mb=/(?:ipad|iphone|ipod).*applewebkit/i.test(e9),Wr=fA,t9=db,A9=C1,vb=TA,r9=Cn,Bb=BA,wb=gb,n9=XZ,yb=df,a9=$Z,i9=mb,o9=Uf,U1=Wr.setImmediate,F1=Wr.clearImmediate,s9=Wr.process,N1=Wr.Dispatch,l9=Wr.Function,bb=Wr.MessageChannel,c9=Wr.String,Q1=0,Sl={},Eb="onreadystatechange",Tl,Ni,S1,T1;Bb(function(){Tl=Wr.location});var x1=function(t){if(r9(Sl,t)){var e=Sl[t];delete Sl[t],e()}},R1=function(t){return function(){x1(t)}},Cb=function(t){x1(t.data)},Ub=function(t){Wr.postMessage(c9(t),Tl.protocol+"//"+Tl.host)};(!U1||!F1)&&(U1=function(e){a9(arguments.length,1);var A=vb(e)?e:l9(e),r=n9(arguments,1);return Sl[++Q1]=function(){t9(A,void 0,r)},Ni(Q1),Q1},F1=function(e){delete Sl[e]},o9?Ni=function(t){s9.nextTick(R1(t))}:N1&&N1.now?Ni=function(t){N1.now(R1(t))}:bb&&!i9?(S1=new bb,T1=S1.port2,S1.port1.onmessage=Cb,Ni=A9(T1.postMessage,T1)):Wr.addEventListener&&vb(Wr.postMessage)&&!Wr.importScripts&&Tl&&Tl.protocol!=="file:"&&!Bb(Ub)?(Ni=Ub,Wr.addEventListener("message",Cb,!1)):Eb in yb("script")?Ni=function(t){wb.appendChild(yb("script"))[Eb]=function(){wb.removeChild(this),x1(t)}}:Ni=function(t){setTimeout(R1(t),0)});var Fb={set:U1,clear:F1},Nb=fA,u9=yn,f9=Object.getOwnPropertyDescriptor,h9=function(t){if(!u9)return Nb[t];var e=f9(Nb,t);return e&&e.value},Qb=function(){this.head=null,this.tail=null};Qb.prototype={add:function(t){var e={item:t,next:null},A=this.tail;A?A.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};var Sb=Qb,d9=El,p9=/ipad|iphone|ipod/i.test(d9)&&typeof Pebble<"u",g9=El,m9=/web0s(?!.*chrome)/i.test(g9),jo=fA,v9=h9,Tb=C1,I1=Fb.set,B9=Sb,w9=mb,y9=p9,b9=m9,V1=Uf,xb=jo.MutationObserver||jo.WebKitMutationObserver,Rb=jo.document,Ib=jo.process,Sf=jo.Promise,M1=v9("queueMicrotask"),Jo,O1,L1,Tf,Vb;if(!M1){var xf=new B9,Rf=function(){var t,e;for(V1&&(t=Ib.domain)&&t.exit();e=xf.get();)try{e()}catch(A){throw xf.head&&Jo(),A}t&&t.enter()};!w9&&!V1&&!b9&&xb&&Rb?(O1=!0,L1=Rb.createTextNode(""),new xb(Rf).observe(L1,{characterData:!0}),Jo=function(){L1.data=O1=!O1}):!y9&&Sf&&Sf.resolve?(Tf=Sf.resolve(void 0),Tf.constructor=Sf,Vb=Tb(Tf.then,Tf),Jo=function(){Vb(Rf)}):V1?Jo=function(){Ib.nextTick(Rf)}:(I1=Tb(I1,jo),Jo=function(){I1(Rf)}),M1=function(t){xf.head||Jo(),xf.add(t)}}var E9=M1,C9=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},k1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},U9=fA,If=U9.Promise,F9=fA,xl=If,N9=TA,Q9=q5,S9=u1,T9=GA,Mb=$5,H1=zp;xl&&xl.prototype;var x9=T9("species"),D1=!1,Ob=N9(F9.PromiseRejectionEvent),R9=Q9("Promise",function(){var t=S9(xl),e=t!==String(xl);if(!e&&H1===66)return!0;if(!H1||H1<51||!/native code/.test(t)){var A=new xl(function(a){a(1)}),r=function(a){a(function(){},function(){})},n=A.constructor={};if(n[x9]=r,D1=A.then(function(){})instanceof r,!D1)return!0}return!e&&(Mb==="BROWSER"||Mb==="DENO")&&!Ob}),Rl={CONSTRUCTOR:R9,REJECTION_EVENT:Ob,SUBCLASSING:D1},Ko={},Lb=$n,I9=TypeError,V9=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new I9("Bad Promise constructor");e=r,A=n}),this.resolve=Lb(e),this.reject=Lb(A)};Ko.f=function(t){return new V9(t)};var M9=yr,Vf=Uf,ka=fA,O9=Z7,Go=tr,kb=Fi,Hb=eb,L9=Ff,k9=hZ,H9=$n,Mf=TA,D9=Sr,P9=gZ,W9=cb,Db=Fb.set,P1=E9,_9=C9,Z9=k1,j9=Sb,Pb=Bf,Of=If,W1=Rl,Wb=Ko,Lf="Promise",_b=W1.CONSTRUCTOR,J9=W1.REJECTION_EVENT,K9=W1.SUBCLASSING,_1=Pb.getterFor(Lf),G9=Pb.set,zo=Of&&Of.prototype,Qi=Of,kf=zo,Zb=ka.TypeError,Z1=ka.document,j1=ka.process,J1=Wb.f,z9=J1,Y9=!!(Z1&&Z1.createEvent&&ka.dispatchEvent),jb="unhandledrejection",X9="rejectionhandled",Jb=0,Kb=1,q9=2,K1=1,Gb=2,Hf,zb,Yb,Xb,qb=function(t){var e;return D9(t)&&Mf(e=t.then)?e:!1},$b=function(t,e){var A=e.value,r=e.state===Kb,n=r?t.ok:t.fail,a=t.resolve,i=t.reject,o=t.domain,s,l,u;try{n?(r||(e.rejection===Gb&&ej(e),e.rejection=K1),n===!0?s=A:(o&&o.enter(),s=n(A),o&&(o.exit(),u=!0)),s===t.promise?i(new Zb("Promise-chain cycle")):(l=qb(s))?Go(l,s,a,i):a(s)):i(A)}catch(d){o&&!u&&o.exit(),i(d)}},eE=function(t,e){t.notified||(t.notified=!0,P1(function(){for(var A=t.reactions,r;r=A.get();)$b(r,t);t.notified=!1,e&&!t.rejection&&$9(t)}))},tE=function(t,e,A){var r,n;Y9?(r=Z1.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),ka.dispatchEvent(r)):r={promise:e,reason:A},!J9&&(n=ka["on"+t])?n(r):t===jb&&_9("Unhandled promise rejection",A)},$9=function(t){Go(Db,ka,function(){var e=t.facade,A=t.value,r=AE(t),n;if(r&&(n=Z9(function(){Vf?j1.emit("unhandledRejection",A,e):tE(jb,e,A)}),t.rejection=Vf||AE(t)?Gb:K1,n.error))throw n.value})},AE=function(t){return t.rejection!==K1&&!t.parent},ej=function(t){Go(Db,ka,function(){var e=t.facade;Vf?j1.emit("rejectionHandled",e):tE(X9,e,t.value)})},Yo=function(t,e,A){return function(r){t(e,r,A)}},Xo=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=q9,eE(t,!0))},G1=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new Zb("Promise can't be resolved itself");var r=qb(e);r?P1(function(){var n={done:!1};try{Go(r,e,Yo(G1,n,t),Yo(Xo,n,t))}catch(a){Xo(n,a,t)}}):(t.value=e,t.state=Kb,eE(t,!1))}catch(n){Xo({done:!1},n,t)}}};if(_b&&(Qi=function(e){P9(this,kf),H9(e),Go(Hf,this);var A=_1(this);try{e(Yo(G1,A),Yo(Xo,A))}catch(r){Xo(A,r)}},kf=Qi.prototype,Hf=function(e){G9(this,{type:Lf,done:!1,notified:!1,parent:!1,reactions:new j9,rejection:!1,state:Jb,value:null})},Hf.prototype=kb(kf,"then",function(e,A){var r=_1(this),n=J1(W9(this,Qi));return r.parent=!0,n.ok=Mf(e)?e:!0,n.fail=Mf(A)&&A,n.domain=Vf?j1.domain:void 0,r.state===Jb?r.reactions.add(n):P1(function(){$b(n,r)}),n.promise}),zb=function(){var t=new Hf,e=_1(t);this.promise=t,this.resolve=Yo(G1,e),this.reject=Yo(Xo,e)},Wb.f=J1=function(t){return t===Qi||t===Yb?new zb(t):z9(t)},Mf(Of)&&zo!==Object.prototype)){Xb=zo.then,K9||kb(zo,"then",function(e,A){var r=this;return new Qi(function(n,a){Go(Xb,r,n,a)}).then(e,A)},{unsafe:!0});try{delete zo.constructor}catch{}Hb&&Hb(zo,kf)}M9({global:!0,constructor:!0,wrap:!0,forced:_b},{Promise:Qi}),Yb=O9.Promise,L9(Qi,Lf,!1),k9(Lf);var Il={},tj=GA,Aj=Il,rj=tj("iterator"),nj=Array.prototype,aj=function(t){return t!==void 0&&(Aj.Array===t||nj[rj]===t)},ij=b1,rE=Po,oj=lf,sj=Il,lj=GA,cj=lj("iterator"),nE=function(t){if(!oj(t))return rE(t,cj)||rE(t,"@@iterator")||sj[ij(t)]},uj=tr,fj=$n,hj=wr,dj=ff,pj=nE,gj=TypeError,mj=function(t,e){var A=arguments.length<2?pj(t):e;if(fj(A))return hj(uj(A,t));throw new gj(dj(t)+" is not iterable")},vj=tr,aE=wr,Bj=Po,wj=function(t,e,A){var r,n;aE(t);try{if(r=Bj(t,"return"),!r){if(e==="throw")throw A;return A}r=vj(r,t)}catch(a){n=!0,r=a}if(e==="throw")throw A;if(n)throw r;return aE(r),A},yj=C1,bj=tr,Ej=wr,Cj=ff,Uj=aj,Fj=B1,iE=cf,Nj=mj,Qj=nE,oE=wj,Sj=TypeError,Df=function(t,e){this.stopped=t,this.result=e},sE=Df.prototype,lE=function(t,e,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),a=!!(A&&A.IS_RECORD),i=!!(A&&A.IS_ITERATOR),o=!!(A&&A.INTERRUPTED),s=yj(e,r),l,u,d,g,h,y,m,E=function(b){return l&&oE(l,"normal"),new Df(!0,b)},B=function(b){return n?(Ej(b),o?s(b[0],b[1],E):s(b[0],b[1])):o?s(b,E):s(b)};if(a)l=t.iterator;else if(i)l=t;else{if(u=Qj(t),!u)throw new Sj(Cj(t)+" is not iterable");if(Uj(u)){for(d=0,g=Fj(t);g>d;d++)if(h=B(t[d]),h&&iE(sE,h))return h;return new Df(!1)}l=Nj(t,u)}for(y=a?t.next:l.next;!(m=bj(y,l)).done;){try{h=B(m.value)}catch(b){oE(l,"throw",b)}if(typeof h=="object"&&h&&iE(sE,h))return h}return new Df(!1)},Tj=GA,cE=Tj("iterator"),uE=!1;try{var xj=0,fE={next:function(){return{done:!!xj++}},return:function(){uE=!0}};fE[cE]=function(){return this},Array.from(fE,function(){throw 2})}catch{}var Rj=function(t,e){try{if(!e&&!uE)return!1}catch{return!1}var A=!1;try{var r={};r[cE]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A},Ij=If,Vj=Rj,Mj=Rl.CONSTRUCTOR,hE=Mj||!Vj(function(t){Ij.all(t).then(void 0,function(){})}),Oj=yr,Lj=tr,kj=$n,Hj=Ko,Dj=k1,Pj=lE,Wj=hE;Oj({target:"Promise",stat:!0,forced:Wj},{all:function(e){var A=this,r=Hj.f(A),n=r.resolve,a=r.reject,i=Dj(function(){var o=kj(A.resolve),s=[],l=0,u=1;Pj(e,function(d){var g=l++,h=!1;u++,Lj(o,A,d).then(function(y){h||(h=!0,s[g]=y,--u||n(s))},a)}),--u||n(s)});return i.error&&a(i.value),r.promise}});var _j=yr,Zj=Rl.CONSTRUCTOR,z1=If,jj=Ui,Jj=TA,Kj=Fi,dE=z1&&z1.prototype;if(_j({target:"Promise",proto:!0,forced:Zj,real:!0},{catch:function(t){return this.then(void 0,t)}}),Jj(z1)){var pE=jj("Promise").prototype.catch;dE.catch!==pE&&Kj(dE,"catch",pE,{unsafe:!0})}var Gj=yr,zj=tr,Yj=$n,Xj=Ko,qj=k1,$j=lE,eJ=hE;Gj({target:"Promise",stat:!0,forced:eJ},{race:function(e){var A=this,r=Xj.f(A),n=r.reject,a=qj(function(){var i=Yj(A.resolve);$j(e,function(o){zj(i,A,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var tJ=yr,AJ=Ko,rJ=Rl.CONSTRUCTOR;tJ({target:"Promise",stat:!0,forced:rJ},{reject:function(e){var A=AJ.f(this),r=A.reject;return r(e),A.promise}});var nJ=wr,aJ=Sr,iJ=Ko,oJ=function(t,e){if(nJ(t),aJ(e)&&e.constructor===t)return e;var A=iJ.f(t),r=A.resolve;return r(e),A.promise},sJ=yr,lJ=Ui,cJ=Rl.CONSTRUCTOR,uJ=oJ;lJ("Promise"),sJ({target:"Promise",stat:!0,forced:cJ},{resolve:function(e){return uJ(this,e)}});function gE(t,e,A,r,n,a,i){try{var o=t[a](i),s=o.value}catch(l){return void A(l)}o.done?e(s):Promise.resolve(s).then(r,n)}function ta(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var a=t.apply(e,A);function i(s){gE(a,r,n,i,o,"next",s)}function o(s){gE(a,r,n,i,o,"throw",s)}i(void 0)})}}var fJ=b1,hJ=String,Wn=function(t){if(fJ(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return hJ(t)},dJ=wr,mE=function(){var t=dJ(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Y1=BA,pJ=fA,X1=pJ.RegExp,q1=Y1(function(){var t=X1("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),gJ=q1||Y1(function(){return!X1("a","y").sticky}),mJ=q1||Y1(function(){var t=X1("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),vE={BROKEN_CARET:mJ,MISSED_STICKY:gJ,UNSUPPORTED_Y:q1},BE={},vJ=z5,BJ=y1,wJ=Object.keys||function(e){return vJ(e,BJ)},yJ=yn,bJ=V5,EJ=ea,CJ=wr,UJ=bl,FJ=wJ;BE.f=yJ&&!bJ?Object.defineProperties:function(e,A){CJ(e);for(var r=UJ(A),n=FJ(A),a=n.length,i=0,o;a>i;)EJ.f(e,o=n[i++],r[o]);return e};var NJ=wr,QJ=BE,wE=y1,SJ=h1,TJ=gb,xJ=df,RJ=f1,yE=">",bE="<",$1="prototype",eg="script",EE=RJ("IE_PROTO"),tg=function(){},CE=function(t){return bE+eg+yE+t+bE+"/"+eg+yE},UE=function(t){t.write(CE("")),t.close();var e=t.parentWindow.Object;return t=null,e},IJ=function(){var t=xJ("iframe"),e="java"+eg+":",A;return t.style.display="none",TJ.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(CE("document.F=Object")),A.close(),A.F},Pf,Wf=function(){try{Pf=new ActiveXObject("htmlfile")}catch{}Wf=typeof document<"u"?document.domain&&Pf?UE(Pf):IJ():UE(Pf);for(var t=wE.length;t--;)delete Wf[$1][wE[t]];return Wf()};SJ[EE]=!0;var Ag=Object.create||function(e,A){var r;return e!==null?(tg[$1]=NJ(e),r=new tg,tg[$1]=null,r[EE]=e):r=Wf(),A===void 0?r:QJ.f(r,A)},VJ=BA,MJ=fA,OJ=MJ.RegExp,LJ=VJ(function(){var t=OJ(".","s");return!(t.dotAll&&t.test(`
|
|
304
304
|
`)&&t.flags==="s")}),kJ=BA,HJ=fA,DJ=HJ.RegExp,PJ=kJ(function(){var t=DJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),qo=tr,_f=wA,WJ=Wn,_J=mE,ZJ=vE,jJ=t1,JJ=Ag,KJ=Bf.get,GJ=LJ,zJ=PJ,YJ=jJ("native-string-replace",String.prototype.replace),Zf=RegExp.prototype.exec,rg=Zf,XJ=_f("".charAt),qJ=_f("".indexOf),$J=_f("".replace),ng=_f("".slice),ag=function(){var t=/a/,e=/b*/g;return qo(Zf,t,"a"),qo(Zf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),FE=ZJ.BROKEN_CARET,ig=/()??/.exec("")[1]!==void 0,eK=ag||ig||FE||GJ||zJ;eK&&(rg=function(e){var A=this,r=KJ(A),n=WJ(e),a=r.raw,i,o,s,l,u,d,g;if(a)return a.lastIndex=A.lastIndex,i=qo(rg,a,n),A.lastIndex=a.lastIndex,i;var h=r.groups,y=FE&&A.sticky,m=qo(_J,A),E=A.source,B=0,b=n;if(y&&(m=$J(m,"y",""),qJ(m,"g")===-1&&(m+="g"),b=ng(n,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&XJ(n,A.lastIndex-1)!==`
|