template-designer 0.7.5 → 0.7.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.
@@ -7085,9 +7085,9 @@ const dQ = /* @__PURE__ */ Lt(uQ, [["render", hQ]]), Yg = [
7085
7085
  ], Xg = Yg.flatMap((e) => e.components);
7086
7086
  async function pQ(e) {
7087
7087
  try {
7088
- return (await vm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-0f43698c.mjs"), "./props/rfid.js": () => import("./rfid-8dacc482.mjs") }), `./props/${e}.js`)).default;
7088
+ return (await vm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-a7c315e6.mjs"), "./props/rfid.js": () => import("./rfid-de55280b.mjs") }), `./props/${e}.js`)).default;
7089
7089
  } catch {
7090
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-0f43698c.mjs")).default;
7090
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-a7c315e6.mjs")).default;
7091
7091
  }
7092
7092
  }
7093
7093
  function gQ(e = {}, A = {}) {
@@ -22819,7 +22819,7 @@ function(e) {
22819
22819
  */
22820
22820
  function(e) {
22821
22821
  function A() {
22822
- return (pe.canvg ? Promise.resolve(pe.canvg) : import("./index.es-791362ee.mjs")).catch(function(t) {
22822
+ return (pe.canvg ? Promise.resolve(pe.canvg) : import("./index.es-2afe0fa8.mjs")).catch(function(t) {
22823
22823
  return Promise.reject(new Error("Could not load canvg: " + t));
22824
22824
  }).then(function(t) {
22825
22825
  return t.default ? t.default : t;
@@ -23824,8 +23824,8 @@ const FV = (e, A, t) => {
23824
23824
  const { type: t, props: n = {}, x: r = 0, y: i = 0, width: a = 0, height: o = 0 } = e, l = `position: absolute; left: ${r}px; top: ${i}px; width: ${a}px; height: ${o}px; box-sizing: border-box;`;
23825
23825
  switch (t) {
23826
23826
  case "text": {
23827
- const u = jf(n.FieldName, n.FieldConnector, A, n.Title), f = Kf(u);
23828
- return `<div style="${`${l} white-space: nowrap; overflow: hidden; display: flex; align-items: center;`}">${f}</div>`;
23827
+ const u = jf(n.FieldName, n.FieldConnector, A), f = n.Title || "", p = f ? `${f}${u}` : u, w = Kf(p);
23828
+ return `<div style="${`${l} white-space: nowrap; overflow: hidden; display: flex; align-items: center;`}">${w}</div>`;
23829
23829
  }
23830
23830
  case "barcode": {
23831
23831
  const u = jf(n.FieldName, n.FieldConnector, A), f = Kf(u);
@@ -24019,8 +24019,8 @@ const FV = (e, A, t) => {
24019
24019
  if (o)
24020
24020
  switch (i.type) {
24021
24021
  case "text": {
24022
- const u = r(o, l), f = a.Title || "";
24023
- a.Text = f ? `${f}${u}` : u;
24022
+ const u = r(o, l);
24023
+ a.Text = u;
24024
24024
  break;
24025
24025
  }
24026
24026
  case "barcode": {
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-f510bfd3.mjs";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-50031854.mjs";
2
2
  import "vue";
3
3
  var ht = function(a) {
4
4
  return a && a.Math === Math && a;
@@ -1,4 +1,4 @@
1
- import { R as e } from "./index-f510bfd3.mjs";
1
+ import { R as e } from "./index-50031854.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
@@ -1,4 +1,4 @@
1
- import { R as e } from "./index-f510bfd3.mjs";
1
+ import { R as e } from "./index-50031854.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
@@ -1,4 +1,4 @@
1
- import { T as t, a as m, r as o } from "./index-f510bfd3.mjs";
1
+ import { T as t, a as m, r as o } from "./index-50031854.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  t as default,
@@ -300,13 +300,13 @@ 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),f="",y=0;y<g.length;y++)f+=String.fromCharCode(g[y]);var v=l();u({data:f,addLength1:!0,objectId:v}),s("endobj");var C=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:C}),s("endobj");var B=l();s("<<"),s("/Type /FontDescriptor"),s("/FontName /"+Vo(o.fontName)),s("/FontFile2 "+v+" 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 w=l();s("<<"),s("/Type /Font"),s("/BaseFont /"+Vo(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 "+C+" 0 R"),s("/BaseFont /"+Vo(o.fontName)),s("/Encoding /"+o.encoding),s("/DescendantFonts ["+w+" 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="",f=0;f<d.length;f++)g+=String.fromCharCode(d[f]);var y=l();u({data:g,addLength1:!0,objectId:y}),s("endobj");var v=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:v}),s("endobj");var C=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 /"+Vo(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 "+v+" 0 R/BaseFont/"+Vo(o.fontName)+"/FontDescriptor "+C+" 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,f=d.activeFontKey,y=d.fonts,v=f,C="",B=0,w="",F=y[v].encoding;if(y[v].encoding!=="Identity-H")return{text:o,x:s,y:l,options:u,mutex:d};for(w=o,v=f,Array.isArray(o)&&(w=o[0]),B=0;B<w.length;B+=1)y[v].metadata.hasOwnProperty("cmap")&&(i=y[v].metadata.cmap.unicode.codeMap[w[B].charCodeAt(0)]),i||w[B].charCodeAt(0)<256&&y[v].metadata.hasOwnProperty("Unicode")?C+=w[B]:C+="";var Q="";return parseInt(v.slice(1))<14||F==="WinAnsiEncoding"?Q=g(C,v).split("").map(function(V){return V.charCodeAt(0).toString(16)}).join(""):F==="Identity-H"&&(Q=A(C,y[v])),d.isHex=!0,{text:Q,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}])}(Bt),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}}(Bt.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]],f=[[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},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},C=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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)$/),w=!1,F=0;this.__bidiEngine__={};var Q=function(S){var U=S.charCodeAt(),k=U>>8,W=v[k];return W!==void 0?d[256*W+(255&U)]:k===252||k===253?"AL":B.test(k)?"L":k===8?"R":"N"},V=function(S){for(var U,k=0;k<S.length;k++){if((U=Q(S.charAt(k)))==="L")return!1;if(U==="R")return!0}return!1},I=function(S,U,k,W){var j,z,q,Y,Ae=U[W];switch(Ae){case"L":case"R":w=!1;break;case"N":case"AN":break;case"EN":w&&(Ae="AN");break;case"AL":w=!0,Ae="R";break;case"WS":Ae="N";break;case"CS":W<1||W+1>=U.length||(j=k[W-1])!=="EN"&&j!=="AN"||(z=U[W+1])!=="EN"&&z!=="AN"?Ae="N":w&&(z="AN"),Ae=z===j?z:"N";break;case"ES":Ae=(j=W>0?k[W-1]:"B")==="EN"&&W+1<U.length&&U[W+1]==="EN"?"EN":"N";break;case"ET":if(W>0&&k[W-1]==="EN"){Ae="EN";break}if(w){Ae="N";break}for(q=W+1,Y=U.length;q<Y&&U[q]==="ET";)q++;Ae=q<Y&&U[q]==="EN"?"EN":"N";break;case"NSM":if(i&&!o){for(Y=U.length,q=W+1;q<Y&&U[q]==="NSM";)q++;if(q<Y){var ee=S[W],ce=ee>=1425&&ee<=2303||ee===64286;if(j=U[q],ce&&(j==="R"||j==="AL")){Ae="R";break}}}Ae=W<1||(j=U[W-1])==="B"?"N":k[W-1];break;case"B":w=!1,n=!0,Ae=F;break;case"S":a=!0,Ae="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":w=!1;break;case"BN":Ae="N"}return Ae},R=function(S,U,k){var W=S.split("");return k&&L(W,k,{hiLevel:F}),W.reverse(),U&&U.reverse(),W.join("")},L=function(S,U,k){var W,j,z,q,Y,Ae=-1,ee=S.length,ce=0,N=[],P=F?f:g,J=[];for(w=!1,n=!1,a=!1,j=0;j<ee;j++)J[j]=Q(S[j]);for(z=0;z<ee;z++){if(Y=ce,N[z]=I(S,J,N,z),W=240&(ce=P[Y][y[N[z]]]),ce&=15,U[z]=q=P[ce][5],W>0)if(W===16){for(j=Ae;j<z;j++)U[j]=1;Ae=-1}else Ae=-1;if(P[ce][6])Ae===-1&&(Ae=z);else if(Ae>-1){for(j=Ae;j<z;j++)U[j]=q;Ae=-1}J[z]==="B"&&(U[z]=0),k.hiLevel|=q}a&&function(G,ne,ae){for(var he=0;he<ae;he++)if(G[he]==="S"){ne[he]=F;for(var ve=he-1;ve>=0&&G[ve]==="WS";ve--)ne[ve]=F}}(J,U,ee)},D=function(S,U,k,W,j){if(!(j.hiLevel<S)){if(S===1&&F===1&&!n)return U.reverse(),void(k&&k.reverse());for(var z,q,Y,Ae,ee=U.length,ce=0;ce<ee;){if(W[ce]>=S){for(Y=ce+1;Y<ee&&W[Y]>=S;)Y++;for(Ae=ce,q=Y-1;Ae<q;Ae++,q--)z=U[Ae],U[Ae]=U[q],U[q]=z,k&&(z=k[Ae],k[Ae]=k[q],k[q]=z);ce=Y}ce++}}},H=function(S,U,k){var W=S.split(""),j={hiLevel:F};return k||(k=[]),L(W,k,j),function(z,q,Y){if(Y.hiLevel!==0&&u)for(var Ae,ee=0;ee<z.length;ee++)q[ee]===1&&(Ae=C.indexOf(z[ee]))>=0&&(z[ee]=C[Ae+1])}(W,k,j),D(2,W,U,k,j),D(1,W,U,k,j),W.join("")};return this.__bidiEngine__.doBidiReorder=function(S,U,k){if(function(j,z){if(z)for(var q=0;q<j.length;q++)z[q]=q;o===void 0&&(o=V(j)),l===void 0&&(l=V(j))}(S,U),i||!s||l)if(i&&s&&o^l)F=o?1:0,S=R(S,U,k);else if(!i&&s&&l)F=o?1:0,S=H(S,U,k),S=R(S,U);else if(!i||o||s||l){if(i&&!s&&o^l)S=R(S,U),o?(F=0,S=H(S,U,k)):(F=1,S=H(S,U,k),S=R(S,U));else if(i&&o&&!s&&l)F=1,S=H(S,U,k),S=R(S,U);else if(!i&&!s&&o^l){var W=u;o?(F=1,S=H(S,U,k),F=0,u=!1,S=H(S,U,k),u=W):(F=0,S=H(S,U,k),S=R(S,U),F=1,u=!1,S=H(S,U,k),u=W,S=R(S,U))}}else F=0,S=H(S,U,k);else F=o?1:0,S=H(S,U,k);return S},this.__bidiEngine__.setOptions=function(S){S&&(i=S.isInputVisual,s=S.isOutputVisual,o=S.isInputRtl,l=S.isOutputRtl,u=S.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})}])}(Bt),Bt.API.TTFFont=function(){function t(e){var A;if(this.rawData=e,A=this.contents=new La(e),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new $D(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new HD(this.contents),this.head=new PD(this),this.name=new JD(this),this.cmap=new Gy(this),this.toUnicode={},this.hhea=new WD(this),this.maxp=new KD(this),this.hmtx=new GD(this),this.post=new ZD(this),this.os2=new _D(this),this.loca=new qD(this),this.glyf=new zD(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,La=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}(),HD=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,f,y,v;for(v in f=Object.keys(A).length,s=Math.log(2),d=16*Math.floor(Math.log(f)/s),i=Math.floor(d/s),u=16*f-d,(n=new La).writeInt(this.scalarType),n.writeShort(f),n.writeShort(d),n.writeShort(i),n.writeShort(u),a=16*f,l=n.pos+a,o=null,y=[],A)for(g=A[v],n.writeString(v),n.writeInt(t(g)),n.writeInt(l),n.writeInt(g.length),y=y.concat(g),v==="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=zy.call(A);A.length%4;)A.push(0);for(a=new La(A),n=0,r=0,i=A.length;r<i;r=r+=4)n+=a.readUInt32();return 4294967295&n},e}(),DD={}.hasOwnProperty,Dn=function(t,e){for(var A in e)DD.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 PD=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 La).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}(),Ky=function(){function t(e,A){var r,n,a,i,o,s,l,u,d,g,f,y,v,C,B,w,F;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(f=e.readUInt16(),g=f/2,e.pos+=6,a=function(){var Q,V;for(V=[],s=Q=0;0<=g?Q<g:Q>g;s=0<=g?++Q:--Q)V.push(e.readUInt16());return V}(),e.pos+=2,v=function(){var Q,V;for(V=[],s=Q=0;0<=g?Q<g:Q>g;s=0<=g?++Q:--Q)V.push(e.readUInt16());return V}(),l=function(){var Q,V;for(V=[],s=Q=0;0<=g?Q<g:Q>g;s=0<=g?++Q:--Q)V.push(e.readUInt16());return V}(),u=function(){var Q,V;for(V=[],s=Q=0;0<=g?Q<g:Q>g;s=0<=g?++Q:--Q)V.push(e.readUInt16());return V}(),n=(this.length-e.pos+this.offset)/2,o=function(){var Q,V;for(V=[],s=Q=0;0<=n?Q<n:Q>n;s=0<=n?++Q:--Q)V.push(e.readUInt16());return V}(),s=B=0,F=a.length;B<F;s=++B)for(C=a[s],r=w=y=v[s];y<=C?w<=C:w>=C;r=y<=C?++w:--w)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,f,y,v,C,B,w,F,Q,V,I,R,L,D,H,S,U,k,W,j,z,q,Y,Ae,ee,ce,N,P,J,G,ne,ae,he,ve,Le,xe,Pe;switch(W=new La,i=Object.keys(e).sort(function(Re,We){return Re-We}),A){case"macroman":for(v=0,C=function(){var Re=[];for(y=0;y<256;++y)Re.push(0);return Re}(),w={0:0},a={},j=0,Ae=i.length;j<Ae;j++)w[ve=e[n=i[j]]]==null&&(w[ve]=++v),a[n]={old:e[n],new:w[e[n]]},C[n]=w[e[n]];return W.writeUInt16(1),W.writeUInt16(0),W.writeUInt32(12),W.writeUInt16(0),W.writeUInt16(262),W.writeUInt16(0),W.write(C),{charMap:a,subtable:W.data,maxGlyphID:v+1};case"unicode":for(U=[],d=[],F=0,w={},r={},B=l=null,z=0,ee=i.length;z<ee;z++)w[V=e[n=i[z]]]==null&&(w[V]=++F),r[n]={old:V,new:w[V]},o=w[V]-n,B!=null&&o===l||(B&&d.push(B),U.push(n),l=o),B=n;for(B&&d.push(B),d.push(65535),U.push(65535),H=2*(D=U.length),L=2*Math.pow(Math.log(D)/Math.LN2,2),g=Math.log(L/2)/Math.LN2,R=2*D-L,s=[],I=[],f=[],y=q=0,ce=U.length;q<ce;y=++q){if(S=U[y],u=d[y],S===65535){s.push(0),I.push(0);break}if(S-(k=r[S].new)>=32768)for(s.push(0),I.push(2*(f.length+D-y)),n=Y=S;S<=u?Y<=u:Y>=u;n=S<=u?++Y:--Y)f.push(r[n].new);else s.push(k-S),I.push(0)}for(W.writeUInt16(3),W.writeUInt16(1),W.writeUInt32(12),W.writeUInt16(4),W.writeUInt16(16+8*D+2*f.length),W.writeUInt16(0),W.writeUInt16(H),W.writeUInt16(L),W.writeUInt16(g),W.writeUInt16(R),ae=0,N=d.length;ae<N;ae++)n=d[ae],W.writeUInt16(n);for(W.writeUInt16(0),he=0,P=U.length;he<P;he++)n=U[he],W.writeUInt16(n);for(Le=0,J=s.length;Le<J;Le++)o=s[Le],W.writeUInt16(o);for(xe=0,G=I.length;xe<G;xe++)Q=I[xe],W.writeUInt16(Q);for(Pe=0,ne=f.length;Pe<ne;Pe++)v=f[Pe],W.writeUInt16(v);return{charMap:r,subtable:W.data,maxGlyphID:F+1}}},t}(),Gy=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 Ky(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=Ky.encode(A,r),(a=new La).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},e}(),WD=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}(),_D=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}(),ZD=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}(),jD=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},JD=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,f;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 jD(u,a),l[f=a.nameID]==null&&(l[f]=[]),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}(),KD=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}(),GD=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,f;for(f=[],u=0,d=(g=this.metrics).length;u<d;u++)i=g[u],f.push(i.advance);return f}).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}(),zy=[].slice,zD=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 La(r.read(a))).readShort(),u=s.readShort(),g=s.readShort(),l=s.readShort(),d=s.readShort(),this.cache[A]=o===-1?new XD(s,u,g,l,d):new YD(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}(),YD=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}(),XD=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 La(zy.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)A.pos=this.glyphOffsets[e];return A.data},t}(),qD=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}(),$D=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,f,y,v,C,B;for(n in r=Gy.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),f={0:0},B=r.charMap)f[(s=B[n]).old]=s.new;for(y in g=r.maxGlyphID,i)y in f||(f[y]=g++);return u=function(w){var F,Q;for(F in Q={},w)Q[w[F]]=F;return Q}(f),d=Object.keys(u).sort(function(w,F){return w-F}),v=function(){var w,F,Q;for(Q=[],w=0,F=d.length;w<F;w++)o=d[w],Q.push(u[o]);return Q}(),a=this.font.glyf.encode(i,v,f),l=this.font.loca.encode(a.offsets,v),C={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&&(C["OS/2"]=this.font.os2.raw()),this.font.directory.encode(C)},t}();Bt.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
301
  `)}return""+A},e}();const eP=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)},tP=(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 AP(t,e,A={}){const{page:r,scale:n,pdf:a,returnType:i="base64",format:o="pdf",cacheInstance:s=!0}=A,l=tP(t,e),{default:u}=await Promise.resolve().then(()=>sy),d=(r==null?void 0:r.widthMm)||l.printWidth||l.width||100,g=(r==null?void 0:r.heightMm)||l.printHeight||l.height||100,f=Math.max(1,Math.floor(Ba(d))),y=Math.max(1,Math.floor(Ba(g)));let v,C;const B="__td_renderer_singleton__";if(s&&window[B]){const w=window[B];v=w.container,w.templateRef.value=l,w.keyRef.value=(w.keyRef.value||0)+1,v.style.width=f+"px",v.style.height=y+"px"}else{v=document.createElement("div"),v.style.position="fixed",v.style.left="-10000px",v.style.top="0",v.style.width=f+"px",v.style.height=y+"px",v.style.overflow="hidden",v.style.opacity="1",v.style.pointerEvents="none",document.body.appendChild(v);const w=h.ref(l),F=h.ref(0);C=h.createApp({render(){return h.h(Ro,{key:F.value,templateData:w.value})}}),C.mount(v),s&&(window[B]={container:v,templateRef:w,keyRef:F,app:C})}try{await h.nextTick(),await new Promise(q=>setTimeout(q,200));const w=v.querySelector("#design")||v;if(!w)throw new Error("未找到设计画布元素 #design");await eP(w);const F=Math.max(window.devicePixelRatio||1,2),Q=Number(n)>0?Number(n):(a==null?void 0:a.scale)||F*2,V=Math.min(2.5,Math.max(1.5,Q)),I=!!(a!=null&&a.transparent),R=await u(w,{scale:V,useCORS:!0,allowTaint:!0,backgroundColor:I?null:"#ffffff",imageTimeout:15e3,logging:!1,removeContainer:!1,windowWidth:f,windowHeight:y}),L=I?"image/png":"image/jpeg",D=typeof(a==null?void 0:a.quality)=="number"?a.quality:.85,H=R.toDataURL(L,D);if(o==="png"){const q=H,Y=q.split(",")[1]||"";return i==="dataUrl"?q:Y}const S=(a==null?void 0:a.orientation)||(d>=g?"landscape":"portrait"),U=(a==null?void 0:a.compress)!==void 0?a.compress:!0,k=new Bt({orientation:S,unit:"mm",format:[d,g],compress:U}),W=I?"PNG":"JPEG";k.addImage(H,W,0,0,d,g);const j=k.output("datauristring"),z=j.split(",")[1]||"";return i==="dataUrl"?j:z}finally{if(!(s&&window[B])){try{C&&C.unmount&&C.unmount()}catch{}v&&v.parentNode&&v.parentNode.removeChild(v)}}}const rP=(t,e,A)=>{const{scale:r,width:n,height:a}=A,i=t.items||[];return`<div style="width: ${n}px; height: ${a}px; position: relative; overflow: visible; background: white; margin: 0; padding: 0; font-family: Arial, sans-serif;">
302
302
  ${i.map(s=>nP(s,e)).join("")}
303
- </div>`},nP=(t,e)=>{const{type:A,props:r={},x:n=0,y:a=0,width:i=0,height:o=0}=t,s=`position: absolute; left: ${n}px; top: ${a}px; width: ${i}px; height: ${o}px; box-sizing: border-box;`;switch(A){case"text":{const l=Vp(r.FieldName,r.FieldConnector,e,r.Title),u=Mp(l);return`<div style="${`${s} white-space: nowrap; overflow: hidden; display: flex; align-items: center;`}">${u}</div>`}case"barcode":{const l=Vp(r.FieldName,r.FieldConnector,e),u=Mp(l);return`<div style="${`${s} display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0;`}">
303
+ </div>`},nP=(t,e)=>{const{type:A,props:r={},x:n=0,y:a=0,width:i=0,height:o=0}=t,s=`position: absolute; left: ${n}px; top: ${a}px; width: ${i}px; height: ${o}px; box-sizing: border-box;`;switch(A){case"text":{const l=Vp(r.FieldName,r.FieldConnector,e),u=r.Title||"",d=u?`${u}${l}`:l,g=Mp(d);return`<div style="${`${s} white-space: nowrap; overflow: hidden; display: flex; align-items: center;`}">${g}</div>`}case"barcode":{const l=Vp(r.FieldName,r.FieldConnector,e),u=Mp(l);return`<div style="${`${s} display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0;`}">
304
304
  <div>条形码: ${u}</div>
305
305
  </div>`}case"qrcode":{const l=Vp(r.FieldName,r.FieldConnector,e),u=Mp(l);return`<div style="${`${s} display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0;`}">
306
306
  <div>二维码: ${u}</div>
307
307
  </div>`}case"image":{const l=r.ImageSrc||"";return`<div style="${`${s} display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0;`}">
308
308
  <img src="${l}" alt="图片" style="max-width: 100%; max-height: 100%; object-fit: contain;">
309
- </div>`}case"rectangle":{const l=r.BackgroundColor||"#000000";return`<div style="${`${s} background-color: ${l};`}"></div>`}case"line":{const l=r.LineColor||"#000000",u=r.LineThickness||1;return`<div style="${`${s} background-color: ${l}; height: ${u}px;`}"></div>`}default:return`<div style="${s}">未知组件类型: ${A}</div>`}},Vp=(t,e,A,r="")=>{if(Array.isArray(t)){const i=typeof e=="string"?e:" ",o=t.map(s=>A&&A[s]!=null?String(A[s]):"").filter(s=>s!=="");return r?`${r}${o.join(i)}`:o.join(i)}const n=t,a=n&&A&&A[n]!=null?String(A[n]):"";return r?`${r}${a}`:a},Mp=t=>typeof t!="string"?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;"),aP=t=>{t.querySelectorAll("*").forEach(i=>{const o=i.style.cssText||"",s=window.getComputedStyle(i);let l="";["position","left","top","width","height","z-index","display","flex-direction","align-items","justify-content","background","background-color","background-image","background-size","background-position","border","border-width","border-style","border-color","border-radius","margin","padding","font-family","font-size","font-weight","font-style","color","text-align","line-height","white-space","overflow","box-sizing","transform","transform-origin","opacity","visibility","object-fit","object-position","image-rendering","text-rendering","font-smoothing","webkit-font-smoothing","moz-osx-font-smoothing","backface-visibility","webkit-backface-visibility","will-change","text-overflow","word-break","word-wrap","letter-spacing","text-decoration","cursor","user-select","pointer-events"].forEach(d=>{const g=s.getPropertyValue(d);g&&g!=="initial"&&g!=="inherit"&&g!=="normal"&&g!=="auto"&&g!=="0px"&&(d==="font-smoothing"?l+=`-webkit-font-smoothing: ${g}; `:d==="webkit-font-smoothing"?l+=`-webkit-font-smoothing: ${g}; `:d==="moz-osx-font-smoothing"?l+=`-moz-osx-font-smoothing: ${g}; `:d==="backface-visibility"?(l+=`-webkit-backface-visibility: ${g}; `,l+=`backface-visibility: ${g}; `):l+=`${d}: ${g}; `)}),l&&(o?i.style.cssText=o+" "+l:i.style.cssText=l)});const A=t.style.cssText||"",r=window.getComputedStyle(t);let n="";["position","left","top","width","height","z-index","display","background","background-color","margin","padding","font-family","font-size","overflow","box-sizing","text-rendering","font-smoothing","transform","transform-origin"].forEach(i=>{const o=r.getPropertyValue(i);o&&o!=="initial"&&o!=="inherit"&&o!=="normal"&&o!=="auto"&&o!=="0px"&&(n+=`${i}: ${o}; `)}),n&&(A?t.style.cssText=A+" "+n:t.style.cssText=n)},iP=t=>{t.querySelectorAll("*").forEach(a=>{a.removeAttribute("data-v-"),a.removeAttribute("data-v-html"),a.removeAttribute("v-html"),a.removeAttribute("v-if"),a.removeAttribute("v-show"),a.removeAttribute("v-for"),a.removeAttribute("v-model"),a.removeAttribute("v-on"),a.removeAttribute("v-bind"),a.removeAttribute("@click"),a.removeAttribute("@input"),a.removeAttribute("@change"),a.removeAttribute(":class"),a.removeAttribute(":style"),a.removeAttribute(":key"),a.removeAttribute("onclick"),a.removeAttribute("onload"),a.removeAttribute("onerror"),a.removeAttribute("onmouseover"),a.removeAttribute("onfocus"),a.removeAttribute("onblur"),a.tagName==="A"&&a.href&&a.href.startsWith("javascript:")&&a.removeAttribute("href"),(a.tagName==="SCRIPT"||a.tagName==="IFRAME"&&a.src&&a.src.startsWith("javascript:"))&&a.remove()}),t.querySelectorAll("script").forEach(a=>a.remove()),t.querySelectorAll("iframe").forEach(a=>{const i=a.src;(!i||i.startsWith("javascript:")||i.startsWith("data:"))&&a.remove()}),t.querySelectorAll("[style]").forEach(a=>{const i=a.getAttribute("style");i&&(i.includes("javascript:")||i.includes("expression("))&&a.removeAttribute("style")})},oP=t=>{const e=(t==null?void 0:t.querySelectorAll("img"))||[],A=Array.from(e).map(r=>r.complete&&r.naturalWidth>0?Promise.resolve():new Promise(n=>{const a=setTimeout(()=>{n()},5e3);r.onload=()=>{clearTimeout(a),n()},r.onerror=()=>{clearTimeout(a),n()}}));return Promise.all(A)},sP=t=>{const e=(t==null?void 0:t.querySelectorAll(".qrcode-component"))||[],A=Array.from(e).map((r,n)=>new Promise(a=>{const i=r.querySelector("img");if(!i){a();return}if(i.complete&&i.naturalWidth>0&&i.naturalHeight>0){a();return}if(!i.src||i.src===""){let o=0;const s=40,l=setInterval(()=>{o++,i.src&&i.src!==""?(clearInterval(l),Yy(i,n+1,a)):o>=s&&(clearInterval(l),a())},100);return}Yy(i,n+1,a)}));return Promise.all(A)},Yy=(t,e,A)=>{const r=setTimeout(()=>{A()},1e4);t.onload=()=>{clearTimeout(r),A()},t.onerror=()=>{clearTimeout(r),A()}},lP=(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 cP(t,e={},A={}){const{scale:r=1,width:n,height:a,cacheInstance:i=!0}=A,o=e&&Object.keys(e).length>0?lP(t,e):t,s=n||o.printWidth||o.width||100,l=a||o.printHeight||o.height||100,u=Math.max(1,Math.floor(Ba(s)*r)),d=Math.max(1,Math.floor(Ba(l)*r));let g,f;const y="__td_html_renderer_singleton__";try{if(i&&window[y]){const v=window[y];g=v.container,v.templateRef.value=o,v.keyRef.value=(v.keyRef.value||0)+1,g.style.width=u+"px",g.style.height=d+"px"}else{g=document.createElement("div"),g.style.position="fixed",g.style.left="-10000px",g.style.top="0",g.style.width=u+"px",g.style.height=d+"px",g.style.overflow="hidden",g.style.opacity="1",g.style.pointerEvents="none",g.style.transform=`scale(${r})`,g.style.transformOrigin="top left",document.body.appendChild(g);const v=h.ref(o),C=h.ref(0);f=h.createApp({render(){return h.h(Ro,{key:C.value,templateData:v.value,config:{text:{hidden:!1},barcode:{hidden:!1},qrcode:{hidden:!1},image:{hidden:!1},rectangle:{hidden:!1},line:{hidden:!1}}})}}),f.mount(g),i&&(window[y]={container:g,templateRef:v,keyRef:C,app:f})}}catch(v){throw new Error(`Vue应用创建失败: ${v.message}`)}try{await h.nextTick(),await new Promise(I=>setTimeout(I,1e3));const v=g.querySelector("#design");if(!v)throw new Error("未找到设计画布元素 #design");if(!(v.children.length>0))return rP(o,e,{scale:r,width:u,height:d});await oP(v),await sP(v),await new Promise(I=>setTimeout(I,500));let B="";const w=v.cloneNode(!0);return iP(w),w.querySelectorAll(".resize-handle, .rotate-handle, .delete-btn").forEach(I=>I.remove()),w.querySelectorAll(".component-selected, .component-current").forEach(I=>{I.classList.remove("component-selected","component-current")}),w.querySelectorAll(".canvas-item").forEach(I=>{if((I.getAttribute("style")||"").includes("transform"))return;const D=window.getComputedStyle(I).transform;if(D&&D!=="none"){const H=I.style.cssText||"";I.style.cssText=H+`; transform: ${D};`}}),aP(w),w.style.width=`${u}px`,w.style.height=`${d}px`,w.style.position="relative",w.style.overflow="visible",w.style.background="white",w.style.margin="0",w.style.padding="0",w.style.fontFamily="Arial, sans-serif",w.style.textRendering="geometricPrecision",w.style.webkitFontSmoothing="antialiased",w.style.mozOsxFontSmoothing="grayscale",w.style.transform="translateZ(0)",w.style.willChange="transform",w.style.boxSizing="border-box",B=w.outerHTML,B}finally{if(!(i&&window[y])){try{f&&f.unmount&&f.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}Ro.install=t=>{t.component(Ro.name||"TemplateDesigner",Ro)};const Xy=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",desc:"可预知的内容尽量不换行,避免因为换行导致打印效果不佳",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2},{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"})),uP=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 Oa(t){"@babel/helpers - typeof";return Oa=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},Oa(t)}function Lp(t,e){return Lp=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Lp(t,e)}function fP(){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 fP()?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&&Lp(l,i.prototype),l},tf.apply(null,arguments)}function Bn(t){return hP(t)||dP(t)||pP(t)||gP()}function hP(t){if(Array.isArray(t))return Op(t)}function dP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pP(t,e){if(t){if(typeof t=="string")return Op(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 Op(t,e)}}function Op(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 gP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
309
+ </div>`}case"rectangle":{const l=r.BackgroundColor||"#000000";return`<div style="${`${s} background-color: ${l};`}"></div>`}case"line":{const l=r.LineColor||"#000000",u=r.LineThickness||1;return`<div style="${`${s} background-color: ${l}; height: ${u}px;`}"></div>`}default:return`<div style="${s}">未知组件类型: ${A}</div>`}},Vp=(t,e,A,r="")=>{if(Array.isArray(t)){const i=typeof e=="string"?e:" ",o=t.map(s=>A&&A[s]!=null?String(A[s]):"").filter(s=>s!=="");return r?`${r}${o.join(i)}`:o.join(i)}const n=t,a=n&&A&&A[n]!=null?String(A[n]):"";return r?`${r}${a}`:a},Mp=t=>typeof t!="string"?t:t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;"),aP=t=>{t.querySelectorAll("*").forEach(i=>{const o=i.style.cssText||"",s=window.getComputedStyle(i);let l="";["position","left","top","width","height","z-index","display","flex-direction","align-items","justify-content","background","background-color","background-image","background-size","background-position","border","border-width","border-style","border-color","border-radius","margin","padding","font-family","font-size","font-weight","font-style","color","text-align","line-height","white-space","overflow","box-sizing","transform","transform-origin","opacity","visibility","object-fit","object-position","image-rendering","text-rendering","font-smoothing","webkit-font-smoothing","moz-osx-font-smoothing","backface-visibility","webkit-backface-visibility","will-change","text-overflow","word-break","word-wrap","letter-spacing","text-decoration","cursor","user-select","pointer-events"].forEach(d=>{const g=s.getPropertyValue(d);g&&g!=="initial"&&g!=="inherit"&&g!=="normal"&&g!=="auto"&&g!=="0px"&&(d==="font-smoothing"?l+=`-webkit-font-smoothing: ${g}; `:d==="webkit-font-smoothing"?l+=`-webkit-font-smoothing: ${g}; `:d==="moz-osx-font-smoothing"?l+=`-moz-osx-font-smoothing: ${g}; `:d==="backface-visibility"?(l+=`-webkit-backface-visibility: ${g}; `,l+=`backface-visibility: ${g}; `):l+=`${d}: ${g}; `)}),l&&(o?i.style.cssText=o+" "+l:i.style.cssText=l)});const A=t.style.cssText||"",r=window.getComputedStyle(t);let n="";["position","left","top","width","height","z-index","display","background","background-color","margin","padding","font-family","font-size","overflow","box-sizing","text-rendering","font-smoothing","transform","transform-origin"].forEach(i=>{const o=r.getPropertyValue(i);o&&o!=="initial"&&o!=="inherit"&&o!=="normal"&&o!=="auto"&&o!=="0px"&&(n+=`${i}: ${o}; `)}),n&&(A?t.style.cssText=A+" "+n:t.style.cssText=n)},iP=t=>{t.querySelectorAll("*").forEach(a=>{a.removeAttribute("data-v-"),a.removeAttribute("data-v-html"),a.removeAttribute("v-html"),a.removeAttribute("v-if"),a.removeAttribute("v-show"),a.removeAttribute("v-for"),a.removeAttribute("v-model"),a.removeAttribute("v-on"),a.removeAttribute("v-bind"),a.removeAttribute("@click"),a.removeAttribute("@input"),a.removeAttribute("@change"),a.removeAttribute(":class"),a.removeAttribute(":style"),a.removeAttribute(":key"),a.removeAttribute("onclick"),a.removeAttribute("onload"),a.removeAttribute("onerror"),a.removeAttribute("onmouseover"),a.removeAttribute("onfocus"),a.removeAttribute("onblur"),a.tagName==="A"&&a.href&&a.href.startsWith("javascript:")&&a.removeAttribute("href"),(a.tagName==="SCRIPT"||a.tagName==="IFRAME"&&a.src&&a.src.startsWith("javascript:"))&&a.remove()}),t.querySelectorAll("script").forEach(a=>a.remove()),t.querySelectorAll("iframe").forEach(a=>{const i=a.src;(!i||i.startsWith("javascript:")||i.startsWith("data:"))&&a.remove()}),t.querySelectorAll("[style]").forEach(a=>{const i=a.getAttribute("style");i&&(i.includes("javascript:")||i.includes("expression("))&&a.removeAttribute("style")})},oP=t=>{const e=(t==null?void 0:t.querySelectorAll("img"))||[],A=Array.from(e).map(r=>r.complete&&r.naturalWidth>0?Promise.resolve():new Promise(n=>{const a=setTimeout(()=>{n()},5e3);r.onload=()=>{clearTimeout(a),n()},r.onerror=()=>{clearTimeout(a),n()}}));return Promise.all(A)},sP=t=>{const e=(t==null?void 0:t.querySelectorAll(".qrcode-component"))||[],A=Array.from(e).map((r,n)=>new Promise(a=>{const i=r.querySelector("img");if(!i){a();return}if(i.complete&&i.naturalWidth>0&&i.naturalHeight>0){a();return}if(!i.src||i.src===""){let o=0;const s=40,l=setInterval(()=>{o++,i.src&&i.src!==""?(clearInterval(l),Yy(i,n+1,a)):o>=s&&(clearInterval(l),a())},100);return}Yy(i,n+1,a)}));return Promise.all(A)},Yy=(t,e,A)=>{const r=setTimeout(()=>{A()},1e4);t.onload=()=>{clearTimeout(r),A()},t.onerror=()=>{clearTimeout(r),A()}},lP=(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);i.Text=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 cP(t,e={},A={}){const{scale:r=1,width:n,height:a,cacheInstance:i=!0}=A,o=e&&Object.keys(e).length>0?lP(t,e):t,s=n||o.printWidth||o.width||100,l=a||o.printHeight||o.height||100,u=Math.max(1,Math.floor(Ba(s)*r)),d=Math.max(1,Math.floor(Ba(l)*r));let g,f;const y="__td_html_renderer_singleton__";try{if(i&&window[y]){const v=window[y];g=v.container,v.templateRef.value=o,v.keyRef.value=(v.keyRef.value||0)+1,g.style.width=u+"px",g.style.height=d+"px"}else{g=document.createElement("div"),g.style.position="fixed",g.style.left="-10000px",g.style.top="0",g.style.width=u+"px",g.style.height=d+"px",g.style.overflow="hidden",g.style.opacity="1",g.style.pointerEvents="none",g.style.transform=`scale(${r})`,g.style.transformOrigin="top left",document.body.appendChild(g);const v=h.ref(o),C=h.ref(0);f=h.createApp({render(){return h.h(Ro,{key:C.value,templateData:v.value,config:{text:{hidden:!1},barcode:{hidden:!1},qrcode:{hidden:!1},image:{hidden:!1},rectangle:{hidden:!1},line:{hidden:!1}}})}}),f.mount(g),i&&(window[y]={container:g,templateRef:v,keyRef:C,app:f})}}catch(v){throw new Error(`Vue应用创建失败: ${v.message}`)}try{await h.nextTick(),await new Promise(I=>setTimeout(I,1e3));const v=g.querySelector("#design");if(!v)throw new Error("未找到设计画布元素 #design");if(!(v.children.length>0))return rP(o,e,{scale:r,width:u,height:d});await oP(v),await sP(v),await new Promise(I=>setTimeout(I,500));let B="";const w=v.cloneNode(!0);return iP(w),w.querySelectorAll(".resize-handle, .rotate-handle, .delete-btn").forEach(I=>I.remove()),w.querySelectorAll(".component-selected, .component-current").forEach(I=>{I.classList.remove("component-selected","component-current")}),w.querySelectorAll(".canvas-item").forEach(I=>{if((I.getAttribute("style")||"").includes("transform"))return;const D=window.getComputedStyle(I).transform;if(D&&D!=="none"){const H=I.style.cssText||"";I.style.cssText=H+`; transform: ${D};`}}),aP(w),w.style.width=`${u}px`,w.style.height=`${d}px`,w.style.position="relative",w.style.overflow="visible",w.style.background="white",w.style.margin="0",w.style.padding="0",w.style.fontFamily="Arial, sans-serif",w.style.textRendering="geometricPrecision",w.style.webkitFontSmoothing="antialiased",w.style.mozOsxFontSmoothing="grayscale",w.style.transform="translateZ(0)",w.style.willChange="transform",w.style.boxSizing="border-box",B=w.outerHTML,B}finally{if(!(i&&window[y])){try{f&&f.unmount&&f.unmount()}catch{}g&&g.parentNode&&g.parentNode.removeChild(g)}}}Ro.install=t=>{t.component(Ro.name||"TemplateDesigner",Ro)};const Xy=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",desc:"可预知的内容尽量不换行,避免因为换行导致打印效果不佳",options:[{label:"换行",value:1},{label:"不换行",value:2}],default:2},{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"})),uP=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 Oa(t){"@babel/helpers - typeof";return Oa=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},Oa(t)}function Lp(t,e){return Lp=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Lp(t,e)}function fP(){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 fP()?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&&Lp(l,i.prototype),l},tf.apply(null,arguments)}function Bn(t){return hP(t)||dP(t)||pP(t)||gP()}function hP(t){if(Array.isArray(t))return Op(t)}function dP(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pP(t,e){if(t){if(typeof t=="string")return Op(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 Op(t,e)}}function Op(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 gP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
310
310
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var mP=Object.hasOwnProperty,qy=Object.setPrototypeOf,vP=Object.isFrozen,BP=Object.getPrototypeOf,wP=Object.getOwnPropertyDescriptor,Br=Object.freeze,en=Object.seal,yP=Object.create,$y=typeof Reflect<"u"&&Reflect,Af=$y.apply,kp=$y.construct;Af||(Af=function(e,A,r){return e.apply(A,r)}),Br||(Br=function(e){return e}),en||(en=function(e){return e}),kp||(kp=function(e,A){return tf(e,Bn(A))});var bP=tn(Array.prototype.forEach),e5=tn(Array.prototype.pop),Bl=tn(Array.prototype.push),rf=tn(String.prototype.toLowerCase),Hp=tn(String.prototype.toString),t5=tn(String.prototype.match),wn=tn(String.prototype.replace),CP=tn(String.prototype.indexOf),EP=tn(String.prototype.trim),tr=tn(RegExp.prototype.test),Dp=UP(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 UP(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return kp(t,A)}}function Rt(t,e,A){var r;A=(r=A)!==null&&r!==void 0?r:rf,qy&&qy(t,null);for(var n=e.length;n--;){var a=e[n];if(typeof a=="string"){var i=A(a);i!==a&&(vP(e)||(e[n]=i),a=i)}t[a]=!0}return t}function Ci(t){var e=yP(null),A;for(A in t)Af(mP,t,[A])===!0&&(e[A]=t[A]);return e}function nf(t,e){for(;t!==null;){var A=wP(t,e);if(A){if(A.get)return tn(A.get);if(typeof A.value=="function")return tn(A.value)}t=BP(t)}function r(n){return console.warn("fallback value for",n),null}return r}var A5=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"]),Pp=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"]),Wp=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"]),FP=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"]),_p=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"]),NP=Br(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),r5=Br(["#text"]),n5=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"]),Zp=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"]),a5=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"]),SP=en(/\{\{[\w\W]*|[\w\W]*\}\}/gm),QP=en(/<%[\w\W]*|[\w\W]*%>/gm),TP=en(/\${[\w\W]*}/gm),xP=en(/^data-[\-\w.\u00B7-\uFFFF]+$/),RP=en(/^aria-[\-\w]+$/),IP=en(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),VP=en(/^(?:\w+script|data):/i),MP=en(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),LP=en(/^html$/i),OP=en(/^[a-z][.\w]*(-[.\w]+)+$/i),kP=function(){return typeof window>"u"?null:window},HP=function(e,A){if(Oa(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 i5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kP(),e=function(oe){return i5(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,f=t.trustedTypes,y=o.prototype,v=nf(y,"cloneNode"),C=nf(y,"nextSibling"),B=nf(y,"childNodes"),w=nf(y,"parentNode");if(typeof a=="function"){var F=r.createElement("template");F.content&&F.content.ownerDocument&&(r=F.content.ownerDocument)}var Q=HP(f,A),V=Q?Q.createHTML(""):"",I=r,R=I.implementation,L=I.createNodeIterator,D=I.createDocumentFragment,H=I.getElementsByTagName,S=A.importNode,U={};try{U=Ci(r).documentMode?r.documentMode:{}}catch{}var k={};e.isSupported=typeof w=="function"&&R&&R.createHTMLDocument!==void 0&&U!==9;var W=SP,j=QP,z=TP,q=xP,Y=RP,Ae=VP,ee=MP,ce=OP,N=IP,P=null,J=Rt({},[].concat(Bn(A5),Bn(Pp),Bn(Wp),Bn(_p),Bn(r5))),G=null,ne=Rt({},[].concat(Bn(n5),Bn(Zp),Bn(a5),Bn(af))),ae=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,ve=null,Le=!0,xe=!0,Pe=!1,Re=!0,We=!1,me=!0,X=!1,ft=!1,Ge=!1,Fe=!1,Se=!1,ke=!1,Oe=!0,_e=!1,$e="user-content-",ot=!0,rt=!1,ht={},gt=null,At=Rt({},["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"]),mt=null,He=Rt({},["audio","video","img","source","image","track"]),Ot=null,Ut=Rt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vA="http://www.w3.org/1998/Math/MathML",Ft="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml",AA=xt,St=!1,_A=null,_t=Rt({},[vA,Ft,xt],Hp),sA,Gt=["application/xhtml+xml","text/html"],re="text/html",te,Be=null,Ye=r.createElement("form"),it=function(oe){return oe instanceof RegExp||oe instanceof Function},Xe=function(oe){Be&&Be===oe||((!oe||Oa(oe)!=="object")&&(oe={}),oe=Ci(oe),sA=Gt.indexOf(oe.PARSER_MEDIA_TYPE)===-1?sA=re:sA=oe.PARSER_MEDIA_TYPE,te=sA==="application/xhtml+xml"?Hp:rf,P="ALLOWED_TAGS"in oe?Rt({},oe.ALLOWED_TAGS,te):J,G="ALLOWED_ATTR"in oe?Rt({},oe.ALLOWED_ATTR,te):ne,_A="ALLOWED_NAMESPACES"in oe?Rt({},oe.ALLOWED_NAMESPACES,Hp):_t,Ot="ADD_URI_SAFE_ATTR"in oe?Rt(Ci(Ut),oe.ADD_URI_SAFE_ATTR,te):Ut,mt="ADD_DATA_URI_TAGS"in oe?Rt(Ci(He),oe.ADD_DATA_URI_TAGS,te):He,gt="FORBID_CONTENTS"in oe?Rt({},oe.FORBID_CONTENTS,te):At,he="FORBID_TAGS"in oe?Rt({},oe.FORBID_TAGS,te):{},ve="FORBID_ATTR"in oe?Rt({},oe.FORBID_ATTR,te):{},ht="USE_PROFILES"in oe?oe.USE_PROFILES:!1,Le=oe.ALLOW_ARIA_ATTR!==!1,xe=oe.ALLOW_DATA_ATTR!==!1,Pe=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=oe.SAFE_FOR_TEMPLATES||!1,me=oe.SAFE_FOR_XML!==!1,X=oe.WHOLE_DOCUMENT||!1,Fe=oe.RETURN_DOM||!1,Se=oe.RETURN_DOM_FRAGMENT||!1,ke=oe.RETURN_TRUSTED_TYPE||!1,Ge=oe.FORCE_BODY||!1,Oe=oe.SANITIZE_DOM!==!1,_e=oe.SANITIZE_NAMED_PROPS||!1,ot=oe.KEEP_CONTENT!==!1,rt=oe.IN_PLACE||!1,N=oe.ALLOWED_URI_REGEXP||N,AA=oe.NAMESPACE||xt,ae=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&it(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ae.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&it(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ae.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ae.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(xe=!1),Se&&(Fe=!0),ht&&(P=Rt({},Bn(r5)),G=[],ht.html===!0&&(Rt(P,A5),Rt(G,n5)),ht.svg===!0&&(Rt(P,Pp),Rt(G,Zp),Rt(G,af)),ht.svgFilters===!0&&(Rt(P,Wp),Rt(G,Zp),Rt(G,af)),ht.mathMl===!0&&(Rt(P,_p),Rt(G,a5),Rt(G,af))),oe.ADD_TAGS&&(P===J&&(P=Ci(P)),Rt(P,oe.ADD_TAGS,te)),oe.ADD_ATTR&&(G===ne&&(G=Ci(G)),Rt(G,oe.ADD_ATTR,te)),oe.ADD_URI_SAFE_ATTR&&Rt(Ot,oe.ADD_URI_SAFE_ATTR,te),oe.FORBID_CONTENTS&&(gt===At&&(gt=Ci(gt)),Rt(gt,oe.FORBID_CONTENTS,te)),ot&&(P["#text"]=!0),X&&Rt(P,["html","head","body"]),P.table&&(Rt(P,["tbody"]),delete he.tbody),Br&&Br(oe),Be=oe)},ct=Rt({},["mi","mo","mn","ms","mtext"]),Qe=Rt({},["annotation-xml"]),st=Rt({},["title","style","font","a","script"]),je=Rt({},Pp);Rt(je,Wp),Rt(je,FP);var ye=Rt({},_p);Rt(ye,NP);var wt=function(oe){var Ie=w(oe);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:AA,tagName:"template"});var Ze=rf(oe.tagName),It=rf(Ie.tagName);return _A[oe.namespaceURI]?oe.namespaceURI===Ft?Ie.namespaceURI===xt?Ze==="svg":Ie.namespaceURI===vA?Ze==="svg"&&(It==="annotation-xml"||ct[It]):!!je[Ze]:oe.namespaceURI===vA?Ie.namespaceURI===xt?Ze==="math":Ie.namespaceURI===Ft?Ze==="math"&&Qe[It]:!!ye[Ze]:oe.namespaceURI===xt?Ie.namespaceURI===Ft&&!Qe[It]||Ie.namespaceURI===vA&&!ct[It]?!1:!ye[Ze]&&(st[Ze]||!je[Ze]):!!(sA==="application/xhtml+xml"&&_A[oe.namespaceURI]):!1},De=function(oe){Bl(e.removed,{element:oe});try{oe.parentNode.removeChild(oe)}catch{try{oe.outerHTML=V}catch{oe.remove()}}},dt=function(oe,Ie){try{Bl(e.removed,{attribute:Ie.getAttributeNode(oe),from:Ie})}catch{Bl(e.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(oe),oe==="is"&&!G[oe])if(Fe||Se)try{De(Ie)}catch{}else try{Ie.setAttribute(oe,"")}catch{}},rA=function(oe){var Ie,Ze;if(Ge)oe="<remove></remove>"+oe;else{var It=t5(oe,/^[\r\n\t ]+/);Ze=It&&It[0]}sA==="application/xhtml+xml"&&AA===xt&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");var EA=Q?Q.createHTML(oe):oe;if(AA===xt)try{Ie=new g().parseFromString(EA,sA)}catch{}if(!Ie||!Ie.documentElement){Ie=R.createDocument(AA,"template",null);try{Ie.documentElement.innerHTML=St?V:EA}catch{}}var cA=Ie.body||Ie.documentElement;return oe&&Ze&&cA.insertBefore(r.createTextNode(Ze),cA.childNodes[0]||null),AA===xt?H.call(Ie,X?"html":"body")[0]:X?Ie.documentElement:cA},Wt=function(oe){return L.call(oe.ownerDocument||oe,oe,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null,!1)},Qt=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")},Vt=function(oe){return Oa(i)==="object"?oe instanceof i:oe&&Oa(oe)==="object"&&typeof oe.nodeType=="number"&&typeof oe.nodeName=="string"},Ht=function(oe,Ie,Ze){k[oe]&&bP(k[oe],function(It){It.call(e,Ie,Ze,Be)})},ZA=function(oe){var Ie;if(Ht("beforeSanitizeElements",oe,null),Qt(oe)||tr(/[\u0080-\uFFFF]/,oe.nodeName))return De(oe),!0;var Ze=te(oe.nodeName);if(Ht("uponSanitizeElement",oe,{tagName:Ze,allowedTags:P}),oe.hasChildNodes()&&!Vt(oe.firstElementChild)&&(!Vt(oe.content)||!Vt(oe.content.firstElementChild))&&tr(/<[/\w]/g,oe.innerHTML)&&tr(/<[/\w]/g,oe.textContent)||Ze==="select"&&tr(/<template/i,oe.innerHTML)||oe.nodeType===7||me&&oe.nodeType===8&&tr(/<[/\w]/g,oe.data))return De(oe),!0;if(!P[Ze]||he[Ze]){if(!he[Ze]&&lA(Ze)&&(ae.tagNameCheck instanceof RegExp&&tr(ae.tagNameCheck,Ze)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(Ze)))return!1;if(ot&&!gt[Ze]){var It=w(oe)||oe.parentNode,EA=B(oe)||oe.childNodes;if(EA&&It)for(var cA=EA.length,pA=cA-1;pA>=0;--pA){var xr=v(EA[pA],!0);xr.__removalCount=(oe.__removalCount||0)+1,It.insertBefore(xr,C(oe))}}return De(oe),!0}return oe instanceof o&&!wt(oe)||(Ze==="noscript"||Ze==="noembed"||Ze==="noframes")&&tr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(De(oe),!0):(We&&oe.nodeType===3&&(Ie=oe.textContent,Ie=wn(Ie,W," "),Ie=wn(Ie,j," "),Ie=wn(Ie,z," "),oe.textContent!==Ie&&(Bl(e.removed,{element:oe.cloneNode()}),oe.textContent=Ie)),Ht("afterSanitizeElements",oe,null),!1)},Zt=function(oe,Ie,Ze){if(Oe&&(Ie==="id"||Ie==="name")&&(Ze in r||Ze in Ye))return!1;if(!(xe&&!ve[Ie]&&tr(q,Ie))){if(!(Le&&tr(Y,Ie))){if(!G[Ie]||ve[Ie]){if(!(lA(oe)&&(ae.tagNameCheck instanceof RegExp&&tr(ae.tagNameCheck,oe)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(oe))&&(ae.attributeNameCheck instanceof RegExp&&tr(ae.attributeNameCheck,Ie)||ae.attributeNameCheck instanceof Function&&ae.attributeNameCheck(Ie))||Ie==="is"&&ae.allowCustomizedBuiltInElements&&(ae.tagNameCheck instanceof RegExp&&tr(ae.tagNameCheck,Ze)||ae.tagNameCheck instanceof Function&&ae.tagNameCheck(Ze))))return!1}else if(!Ot[Ie]){if(!tr(N,wn(Ze,ee,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&oe!=="script"&&CP(Ze,"data:")===0&&mt[oe])){if(!(Pe&&!tr(Ae,wn(Ze,ee,"")))){if(Ze)return!1}}}}}}return!0},lA=function(oe){return oe!=="annotation-xml"&&t5(oe,ce)},dA=function(oe){var Ie,Ze,It,EA;Ht("beforeSanitizeAttributes",oe,null);var cA=oe.attributes;if(!(!cA||Qt(oe))){var pA={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G};for(EA=cA.length;EA--;){Ie=cA[EA];var xr=Ie,uA=xr.name,Oi=xr.namespaceURI;if(Ze=uA==="value"?Ie.value:EP(Ie.value),It=te(uA),pA.attrName=It,pA.attrValue=Ze,pA.keepAttr=!0,pA.forceKeepAttr=void 0,Ht("uponSanitizeAttribute",oe,pA),Ze=pA.attrValue,!pA.forceKeepAttr&&(dt(uA,oe),!!pA.keepAttr)){if(!Re&&tr(/\/>/i,Ze)){dt(uA,oe);continue}We&&(Ze=wn(Ze,W," "),Ze=wn(Ze,j," "),Ze=wn(Ze,z," "));var ki=te(oe.nodeName);if(Zt(ki,It,Ze)){if(_e&&(It==="id"||It==="name")&&(dt(uA,oe),Ze=$e+Ze),me&&tr(/((--!?|])>)|<\/(style|title)/i,Ze)){dt(uA,oe);continue}if(Q&&Oa(f)==="object"&&typeof f.getAttributeType=="function"&&!Oi)switch(f.getAttributeType(ki,It)){case"TrustedHTML":{Ze=Q.createHTML(Ze);break}case"TrustedScriptURL":{Ze=Q.createScriptURL(Ze);break}}try{Oi?oe.setAttributeNS(Oi,uA,Ze):oe.setAttribute(uA,Ze),Qt(oe)?De(oe):e5(e.removed)}catch{}}}}Ht("afterSanitizeAttributes",oe,null)}},_r=function nt(oe){var Ie,Ze=Wt(oe);for(Ht("beforeSanitizeShadowDOM",oe,null);Ie=Ze.nextNode();)Ht("uponSanitizeShadowNode",Ie,null),ZA(Ie),dA(Ie),Ie.content instanceof n&&nt(Ie.content);Ht("afterSanitizeShadowDOM",oe,null)};return e.sanitize=function(nt){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie,Ze,It,EA,cA;if(St=!nt,St&&(nt="<!-->"),typeof nt!="string"&&!Vt(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw Dp("dirty is not a string, aborting")}else throw Dp("toString is not a function");if(!e.isSupported){if(Oa(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof nt=="string")return t.toStaticHTML(nt);if(Vt(nt))return t.toStaticHTML(nt.outerHTML)}return nt}if(ft||Xe(oe),e.removed=[],typeof nt=="string"&&(rt=!1),rt){if(nt.nodeName){var pA=te(nt.nodeName);if(!P[pA]||he[pA])throw Dp("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof i)Ie=rA("<!---->"),Ze=Ie.ownerDocument.importNode(nt,!0),Ze.nodeType===1&&Ze.nodeName==="BODY"||Ze.nodeName==="HTML"?Ie=Ze:Ie.appendChild(Ze);else{if(!Fe&&!We&&!X&&nt.indexOf("<")===-1)return Q&&ke?Q.createHTML(nt):nt;if(Ie=rA(nt),!Ie)return Fe?null:ke?V:""}Ie&&Ge&&De(Ie.firstChild);for(var xr=Wt(rt?nt:Ie);It=xr.nextNode();)It.nodeType===3&&It===EA||(ZA(It),dA(It),It.content instanceof n&&_r(It.content),EA=It);if(EA=null,rt)return nt;if(Fe){if(Se)for(cA=D.call(Ie.ownerDocument);Ie.firstChild;)cA.appendChild(Ie.firstChild);else cA=Ie;return(G.shadowroot||G.shadowrootmod)&&(cA=S.call(A,cA,!0)),cA}var uA=X?Ie.outerHTML:Ie.innerHTML;return X&&P["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&tr(LP,Ie.ownerDocument.doctype.name)&&(uA="<!DOCTYPE "+Ie.ownerDocument.doctype.name+`>
311
311
  `+uA),We&&(uA=wn(uA,W," "),uA=wn(uA,j," "),uA=wn(uA,z," ")),Q&&ke?Q.createHTML(uA):uA},e.setConfig=function(nt){Xe(nt),ft=!0},e.clearConfig=function(){Be=null,ft=!1},e.isValidAttribute=function(nt,oe,Ie){Be||Xe({});var Ze=te(nt),It=te(oe);return Zt(Ze,It,Ie)},e.addHook=function(nt,oe){typeof oe=="function"&&(k[nt]=k[nt]||[],Bl(k[nt],oe))},e.removeHook=function(nt){if(k[nt])return e5(k[nt])},e.removeHooks=function(nt){k[nt]&&(k[nt]=[])},e.removeAllHooks=function(){k={}},e}var DP=i5();const PP=Object.freeze(Object.defineProperty({__proto__:null,default:DP},Symbol.toStringTag,{value:"Module"}));var wl=function(t){return t&&t.Math===Math&&t},hA=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={},yA=function(t){try{return!!t()}catch{return!0}},WP=yA,yn=!WP(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),_P=yA,of=!_P(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),ZP=of,sf=Function.prototype.call,Ar=ZP?sf.bind(sf):function(){return sf.apply(sf,arguments)},o5={},s5={}.propertyIsEnumerable,l5=Object.getOwnPropertyDescriptor,jP=l5&&!s5.call({1:2},1);o5.f=jP?function(e){var A=l5(this,e);return!!A&&A.enumerable}:s5;var jp=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},c5=of,u5=Function.prototype,Jp=u5.call,JP=c5&&u5.bind.bind(Jp,Jp),bA=c5?JP:function(t){return function(){return Jp.apply(t,arguments)}},f5=bA,KP=f5({}.toString),GP=f5("".slice),Ei=function(t){return GP(KP(t),8,-1)},zP=bA,YP=yA,XP=Ei,Kp=Object,qP=zP("".split),h5=YP(function(){return!Kp("z").propertyIsEnumerable(0)})?function(t){return XP(t)==="String"?qP(t,""):Kp(t)}:Kp,lf=function(t){return t==null},$P=lf,eW=TypeError,bn=function(t){if($P(t))throw new eW("Can't call method on "+t);return t},tW=h5,AW=bn,bl=function(t){return tW(AW(t))},Gp=typeof document=="object"&&document.all,RA=typeof Gp>"u"&&Gp!==void 0?function(t){return typeof t=="function"||t===Gp}:function(t){return typeof t=="function"},rW=RA,Qr=function(t){return typeof t=="object"?t!==null:rW(t)},zp=hA,nW=RA,aW=function(t){return nW(t)?t:void 0},Ui=function(t,e){return arguments.length<2?aW(zp[t]):zp[t]&&zp[t][e]},iW=bA,cf=iW({}.isPrototypeOf),oW=hA,d5=oW.navigator,p5=d5&&d5.userAgent,Cl=p5?String(p5):"",g5=hA,Yp=Cl,m5=g5.process,v5=g5.Deno,B5=m5&&m5.versions||v5&&v5.version,w5=B5&&B5.v8,Cn,uf;w5&&(Cn=w5.split("."),uf=Cn[0]>0&&Cn[0]<4?1:+(Cn[0]+Cn[1])),!uf&&Yp&&(Cn=Yp.match(/Edge\/(\d+)/),(!Cn||Cn[1]>=74)&&(Cn=Yp.match(/Chrome\/(\d+)/),Cn&&(uf=+Cn[1])));var Xp=uf,y5=Xp,sW=yA,lW=hA,cW=lW.String,b5=!!Object.getOwnPropertySymbols&&!sW(function(){var t=Symbol("symbol detection");return!cW(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&y5&&y5<41}),uW=b5,C5=uW&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fW=Ui,hW=RA,dW=cf,pW=C5,gW=Object,E5=pW?function(t){return typeof t=="symbol"}:function(t){var e=fW("Symbol");return hW(e)&&dW(e.prototype,gW(t))},mW=String,ff=function(t){try{return mW(t)}catch{return"Object"}},vW=RA,BW=ff,wW=TypeError,ea=function(t){if(vW(t))return t;throw new wW(BW(t)+" is not a function")},yW=ea,bW=lf,Wo=function(t,e){var A=t[e];return bW(A)?void 0:yW(A)},qp=Ar,$p=RA,e1=Qr,CW=TypeError,EW=function(t,e){var A,r;if(e==="string"&&$p(A=t.toString)&&!e1(r=qp(A,t))||$p(A=t.valueOf)&&!e1(r=qp(A,t))||e!=="string"&&$p(A=t.toString)&&!e1(r=qp(A,t)))return r;throw new CW("Can't convert object to primitive value")},U5={exports:{}},F5=hA,UW=Object.defineProperty,t1=function(t,e){try{UW(F5,t,{value:e,configurable:!0,writable:!0})}catch{F5[t]=e}return e},FW=hA,NW=t1,N5="__core-js_shared__",S5=U5.exports=FW[N5]||NW(N5,{});(S5.versions||(S5.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 A1=U5.exports,Q5=A1,r1=function(t,e){return Q5[t]||(Q5[t]=e||{})},SW=bn,QW=Object,hf=function(t){return QW(SW(t))},TW=bA,xW=hf,RW=TW({}.hasOwnProperty),En=Object.hasOwn||function(e,A){return RW(xW(e),A)},IW=bA,VW=0,MW=Math.random(),LW=IW(1.1.toString),T5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+LW(++VW+MW,36)},OW=hA,kW=r1,x5=En,HW=T5,DW=b5,PW=C5,_o=OW.Symbol,n1=kW("wks"),WW=PW?_o.for||_o:_o&&_o.withoutSetter||HW,zA=function(t){return x5(n1,t)||(n1[t]=DW&&x5(_o,t)?_o[t]:WW("Symbol."+t)),n1[t]},_W=Ar,R5=Qr,I5=E5,ZW=Wo,jW=EW,JW=zA,KW=TypeError,GW=JW("toPrimitive"),zW=function(t,e){if(!R5(t)||I5(t))return t;var A=ZW(t,GW),r;if(A){if(e===void 0&&(e="default"),r=_W(A,t,e),!R5(r)||I5(r))return r;throw new KW("Can't convert object to primitive value")}return e===void 0&&(e="number"),jW(t,e)},YW=zW,XW=E5,V5=function(t){var e=YW(t,"string");return XW(e)?e:e+""},qW=hA,M5=Qr,a1=qW.document,$W=M5(a1)&&M5(a1.createElement),df=function(t){return $W?a1.createElement(t):{}},e_=yn,t_=yA,A_=df,L5=!e_&&!t_(function(){return Object.defineProperty(A_("div"),"a",{get:function(){return 7}}).a!==7}),r_=yn,n_=Ar,a_=o5,i_=jp,o_=bl,s_=V5,l_=En,c_=L5,O5=Object.getOwnPropertyDescriptor;yl.f=r_?O5:function(e,A){if(e=o_(e),A=s_(A),c_)try{return O5(e,A)}catch{}if(l_(e,A))return i_(!n_(a_.f,e,A),e[A])};var ta={},u_=yn,f_=yA,k5=u_&&f_(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),h_=Qr,d_=String,p_=TypeError,wr=function(t){if(h_(t))return t;throw new p_(d_(t)+" is not an object")},g_=yn,m_=L5,v_=k5,pf=wr,H5=V5,B_=TypeError,i1=Object.defineProperty,w_=Object.getOwnPropertyDescriptor,o1="enumerable",s1="configurable",l1="writable";ta.f=g_?v_?function(e,A,r){if(pf(e),A=H5(A),pf(r),typeof e=="function"&&A==="prototype"&&"value"in r&&l1 in r&&!r[l1]){var n=w_(e,A);n&&n[l1]&&(e[A]=r.value,r={configurable:s1 in r?r[s1]:n[s1],enumerable:o1 in r?r[o1]:n[o1],writable:!1})}return i1(e,A,r)}:i1:function(e,A,r){if(pf(e),A=H5(A),pf(r),m_)try{return i1(e,A,r)}catch{}if("get"in r||"set"in r)throw new B_("Accessors not supported");return"value"in r&&(e[A]=r.value),e};var y_=yn,b_=ta,C_=jp,El=y_?function(t,e,A){return b_.f(t,e,C_(1,A))}:function(t,e,A){return t[e]=A,t},D5={exports:{}},c1=yn,E_=En,P5=Function.prototype,U_=c1&&Object.getOwnPropertyDescriptor,u1=E_(P5,"name"),F_=u1&&(function(){}).name==="something",N_=u1&&(!c1||c1&&U_(P5,"name").configurable),gf={EXISTS:u1,PROPER:F_,CONFIGURABLE:N_},S_=bA,Q_=RA,f1=A1,T_=S_(Function.toString);Q_(f1.inspectSource)||(f1.inspectSource=function(t){return T_(t)});var h1=f1.inspectSource,x_=hA,R_=RA,W5=x_.WeakMap,I_=R_(W5)&&/native code/.test(String(W5)),V_=r1,M_=T5,_5=V_("keys"),d1=function(t){return _5[t]||(_5[t]=M_(t))},p1={},L_=I_,Z5=hA,O_=Qr,k_=El,g1=En,m1=A1,H_=d1,D_=p1,j5="Object already initialized",v1=Z5.TypeError,P_=Z5.WeakMap,mf,Ul,vf,W_=function(t){return vf(t)?Ul(t):mf(t,{})},__=function(t){return function(e){var A;if(!O_(e)||(A=Ul(e)).type!==t)throw new v1("Incompatible receiver, "+t+" required");return A}};if(L_||m1.state){var Pn=m1.state||(m1.state=new P_);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,mf=function(t,e){if(Pn.has(t))throw new v1(j5);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 Zo=H_("state");D_[Zo]=!0,mf=function(t,e){if(g1(t,Zo))throw new v1(j5);return e.facade=t,k_(t,Zo,e),e},Ul=function(t){return g1(t,Zo)?t[Zo]:{}},vf=function(t){return g1(t,Zo)}}var Bf={set:mf,get:Ul,has:vf,enforce:W_,getterFor:__},B1=bA,Z_=yA,j_=RA,wf=En,w1=yn,J_=gf.CONFIGURABLE,K_=h1,J5=Bf,G_=J5.enforce,z_=J5.get,K5=String,yf=Object.defineProperty,Y_=B1("".slice),X_=B1("".replace),q_=B1([].join),$_=w1&&!Z_(function(){return yf(function(){},"length",{value:8}).length!==8}),e7=String(String).split("String"),t7=D5.exports=function(t,e,A){Y_(K5(e),0,7)==="Symbol("&&(e="["+X_(K5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!wf(t,"name")||J_&&t.name!==e)&&(w1?yf(t,"name",{value:e,configurable:!0}):t.name=e),$_&&A&&wf(A,"arity")&&t.length!==A.arity&&yf(t,"length",{value:A.arity});try{A&&wf(A,"constructor")&&A.constructor?w1&&yf(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=G_(t);return wf(r,"source")||(r.source=q_(e7,typeof e=="string"?e:"")),t};Function.prototype.toString=t7(function(){return j_(this)&&z_(this).source||K_(this)},"toString");var G5=D5.exports,A7=RA,r7=ta,n7=G5,a7=t1,Fi=function(t,e,A,r){r||(r={});var n=r.enumerable,a=r.name!==void 0?r.name:e;if(A7(A)&&n7(A,a,r),r.global)n?t[e]=A:a7(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:r7.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},z5={},i7=Math.ceil,o7=Math.floor,s7=Math.trunc||function(e){var A=+e;return(A>0?o7:i7)(A)},l7=s7,bf=function(t){var e=+t;return e!==e||e===0?0:l7(e)},c7=bf,u7=Math.max,f7=Math.min,h7=function(t,e){var A=c7(t);return A<0?u7(A+e,0):f7(A,e)},d7=bf,p7=Math.min,jo=function(t){var e=d7(t);return e>0?p7(e,9007199254740991):0},g7=jo,y1=function(t){return g7(t.length)},m7=bl,v7=h7,B7=y1,Y5=function(t){return function(e,A,r){var n=m7(e),a=B7(n);if(a===0)return!t&&-1;var i=v7(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}},X5={includes:Y5(!0),indexOf:Y5(!1)},w7=bA,b1=En,y7=bl,b7=X5.indexOf,C7=p1,q5=w7([].push),$5=function(t,e){var A=y7(t),r=0,n=[],a;for(a in A)!b1(C7,a)&&b1(A,a)&&q5(n,a);for(;e.length>r;)b1(A,a=e[r++])&&(~b7(n,a)||q5(n,a));return n},C1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],E7=$5,U7=C1,F7=U7.concat("length","prototype");z5.f=Object.getOwnPropertyNames||function(e){return E7(e,F7)};var eb={};eb.f=Object.getOwnPropertySymbols;var N7=Ui,S7=bA,Q7=z5,T7=eb,x7=wr,R7=S7([].concat),I7=N7("Reflect","ownKeys")||function(e){var A=Q7.f(x7(e)),r=T7.f;return r?R7(A,r(e)):A},tb=En,V7=I7,M7=yl,L7=ta,O7=function(t,e,A){for(var r=V7(e),n=L7.f,a=M7.f,i=0;i<r.length;i++){var o=r[i];!tb(t,o)&&!(A&&tb(A,o))&&n(t,o,a(e,o))}},k7=yA,H7=RA,D7=/#|\.prototype\./,Fl=function(t,e){var A=W7[P7(t)];return A===Z7?!0:A===_7?!1:H7(e)?k7(e):!!e},P7=Fl.normalize=function(t){return String(t).replace(D7,".").toLowerCase()},W7=Fl.data={},_7=Fl.NATIVE="N",Z7=Fl.POLYFILL="P",Ab=Fl,Cf=hA,j7=yl.f,J7=El,K7=Fi,G7=t1,z7=O7,Y7=Ab,yr=function(t,e){var A=t.target,r=t.global,n=t.stat,a,i,o,s,l,u;if(r?i=Cf:n?i=Cf[A]||G7(A,{}):i=Cf[A]&&Cf[A].prototype,i)for(o in e){if(l=e[o],t.dontCallGetSet?(u=j7(i,o),s=u&&u.value):s=i[o],a=Y7(r?o:A+(n?".":"#")+o,t.forced),!a&&s!==void 0){if(typeof l==typeof s)continue;z7(l,s)}(t.sham||s&&s.sham)&&J7(l,"sham",!0),K7(i,o,l,t)}},Nl=hA,X7=Cl,q7=Ei,Ef=function(t){return X7.slice(0,t.length)===t},rb=function(){return Ef("Bun/")?"BUN":Ef("Cloudflare-Workers")?"CLOUDFLARE":Ef("Deno/")?"DENO":Ef("Node.js/")?"NODE":Nl.Bun&&typeof Bun.version=="string"?"BUN":Nl.Deno&&typeof Deno.version=="object"?"DENO":q7(Nl.process)==="process"?"NODE":Nl.window&&Nl.document?"BROWSER":"REST"}(),$7=rb,Uf=$7==="NODE",eZ=hA,tZ=eZ,AZ=bA,rZ=ea,nZ=function(t,e,A){try{return AZ(rZ(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}},aZ=Qr,iZ=function(t){return aZ(t)||t===null},oZ=iZ,sZ=String,lZ=TypeError,cZ=function(t){if(oZ(t))return t;throw new lZ("Can't set "+sZ(t)+" as a prototype")},uZ=nZ,fZ=Qr,hZ=bn,dZ=cZ,nb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},A;try{A=uZ(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,a){return hZ(n),dZ(a),fZ(n)&&(t?A(n,a):n.__proto__=a),n}}():void 0),pZ=ta.f,gZ=En,mZ=zA,ab=mZ("toStringTag"),Ff=function(t,e,A){t&&!A&&(t=t.prototype),t&&!gZ(t,ab)&&pZ(t,ab,{configurable:!0,value:e})},ib=G5,vZ=ta,BZ=function(t,e,A){return A.get&&ib(A.get,e,{getter:!0}),A.set&&ib(A.set,e,{setter:!0}),vZ.f(t,e,A)},wZ=Ui,yZ=BZ,bZ=zA,CZ=yn,ob=bZ("species"),EZ=function(t){var e=wZ(t);CZ&&e&&!e[ob]&&yZ(e,ob,{configurable:!0,get:function(){return this}})},UZ=cf,FZ=TypeError,NZ=function(t,e){if(UZ(e,t))return t;throw new FZ("Incorrect invocation")},SZ=zA,QZ=SZ("toStringTag"),sb={};sb[QZ]="z";var TZ=String(sb)==="[object z]",xZ=TZ,RZ=RA,Nf=Ei,IZ=zA,VZ=IZ("toStringTag"),MZ=Object,LZ=Nf(function(){return arguments}())==="Arguments",OZ=function(t,e){try{return t[e]}catch{}},E1=xZ?Nf:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=OZ(e=MZ(t),VZ))=="string"?A:LZ?Nf(e):(r=Nf(e))==="Object"&&RZ(e.callee)?"Arguments":r},kZ=bA,HZ=yA,lb=RA,DZ=E1,PZ=Ui,WZ=h1,cb=function(){},ub=PZ("Reflect","construct"),U1=/^\s*(?:class|function)\b/,_Z=kZ(U1.exec),ZZ=!U1.test(cb),Sl=function(e){if(!lb(e))return!1;try{return ub(cb,[],e),!0}catch{return!1}},fb=function(e){if(!lb(e))return!1;switch(DZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ZZ||!!_Z(U1,WZ(e))}catch{return!0}};fb.sham=!0;var jZ=!ub||HZ(function(){var t;return Sl(Sl.call)||!Sl(Object)||!Sl(function(){t=!0})||t})?fb:Sl,JZ=jZ,KZ=ff,GZ=TypeError,zZ=function(t){if(JZ(t))return t;throw new GZ(KZ(t)+" is not a constructor")},hb=wr,YZ=zZ,XZ=lf,qZ=zA,$Z=qZ("species"),db=function(t,e){var A=hb(t).constructor,r;return A===void 0||XZ(r=hb(A)[$Z])?e:YZ(r)},e9=of,pb=Function.prototype,gb=pb.apply,mb=pb.call,vb=typeof Reflect=="object"&&Reflect.apply||(e9?mb.bind(gb):function(){return mb.apply(gb,arguments)}),t9=Ei,A9=bA,Sf=function(t){if(t9(t)==="Function")return A9(t)},Bb=Sf,r9=ea,n9=of,a9=Bb(Bb.bind),F1=function(t,e){return r9(t),e===void 0?t:n9?a9(t,e):function(){return t.apply(e,arguments)}},i9=Ui,wb=i9("document","documentElement"),o9=bA,s9=o9([].slice),l9=TypeError,c9=function(t,e){if(t<e)throw new l9("Not enough arguments");return t},u9=Cl,yb=/(?:ipad|iphone|ipod).*applewebkit/i.test(u9),Wr=hA,f9=vb,h9=F1,bb=RA,d9=En,Cb=yA,Eb=wb,p9=s9,Ub=df,g9=c9,m9=yb,v9=Uf,N1=Wr.setImmediate,S1=Wr.clearImmediate,B9=Wr.process,Q1=Wr.Dispatch,w9=Wr.Function,Fb=Wr.MessageChannel,y9=Wr.String,T1=0,Ql={},Nb="onreadystatechange",Tl,Ni,x1,R1;Cb(function(){Tl=Wr.location});var I1=function(t){if(d9(Ql,t)){var e=Ql[t];delete Ql[t],e()}},V1=function(t){return function(){I1(t)}},Sb=function(t){I1(t.data)},Qb=function(t){Wr.postMessage(y9(t),Tl.protocol+"//"+Tl.host)};(!N1||!S1)&&(N1=function(e){g9(arguments.length,1);var A=bb(e)?e:w9(e),r=p9(arguments,1);return Ql[++T1]=function(){f9(A,void 0,r)},Ni(T1),T1},S1=function(e){delete Ql[e]},v9?Ni=function(t){B9.nextTick(V1(t))}:Q1&&Q1.now?Ni=function(t){Q1.now(V1(t))}:Fb&&!m9?(x1=new Fb,R1=x1.port2,x1.port1.onmessage=Sb,Ni=h9(R1.postMessage,R1)):Wr.addEventListener&&bb(Wr.postMessage)&&!Wr.importScripts&&Tl&&Tl.protocol!=="file:"&&!Cb(Qb)?(Ni=Qb,Wr.addEventListener("message",Sb,!1)):Nb in Ub("script")?Ni=function(t){Eb.appendChild(Ub("script"))[Nb]=function(){Eb.removeChild(this),I1(t)}}:Ni=function(t){setTimeout(V1(t),0)});var Tb={set:N1,clear:S1},xb=hA,b9=yn,C9=Object.getOwnPropertyDescriptor,E9=function(t){if(!b9)return xb[t];var e=C9(xb,t);return e&&e.value},Rb=function(){this.head=null,this.tail=null};Rb.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 Ib=Rb,U9=Cl,F9=/ipad|iphone|ipod/i.test(U9)&&typeof Pebble<"u",N9=Cl,S9=/web0s(?!.*chrome)/i.test(N9),Jo=hA,Q9=E9,Vb=F1,M1=Tb.set,T9=Ib,x9=yb,R9=F9,I9=S9,L1=Uf,Mb=Jo.MutationObserver||Jo.WebKitMutationObserver,Lb=Jo.document,Ob=Jo.process,Qf=Jo.Promise,O1=Q9("queueMicrotask"),Ko,k1,H1,Tf,kb;if(!O1){var xf=new T9,Rf=function(){var t,e;for(L1&&(t=Ob.domain)&&t.exit();e=xf.get();)try{e()}catch(A){throw xf.head&&Ko(),A}t&&t.enter()};!x9&&!L1&&!I9&&Mb&&Lb?(k1=!0,H1=Lb.createTextNode(""),new Mb(Rf).observe(H1,{characterData:!0}),Ko=function(){H1.data=k1=!k1}):!R9&&Qf&&Qf.resolve?(Tf=Qf.resolve(void 0),Tf.constructor=Qf,kb=Vb(Tf.then,Tf),Ko=function(){kb(Rf)}):L1?Ko=function(){Ob.nextTick(Rf)}:(M1=Vb(M1,Jo),Ko=function(){M1(Rf)}),O1=function(t){xf.head||Ko(),xf.add(t)}}var V9=O1,M9=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}},D1=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},L9=hA,If=L9.Promise,O9=hA,xl=If,k9=RA,H9=Ab,D9=h1,P9=zA,Hb=rb,P1=Xp;xl&&xl.prototype;var W9=P9("species"),W1=!1,Db=k9(O9.PromiseRejectionEvent),_9=H9("Promise",function(){var t=D9(xl),e=t!==String(xl);if(!e&&P1===66)return!0;if(!P1||P1<51||!/native code/.test(t)){var A=new xl(function(a){a(1)}),r=function(a){a(function(){},function(){})},n=A.constructor={};if(n[W9]=r,W1=A.then(function(){})instanceof r,!W1)return!0}return!e&&(Hb==="BROWSER"||Hb==="DENO")&&!Db}),Rl={CONSTRUCTOR:_9,REJECTION_EVENT:Db,SUBCLASSING:W1},Go={},Pb=ea,Z9=TypeError,j9=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new Z9("Bad Promise constructor");e=r,A=n}),this.resolve=Pb(e),this.reject=Pb(A)};Go.f=function(t){return new j9(t)};var J9=yr,Vf=Uf,ka=hA,K9=tZ,zo=Ar,Wb=Fi,_b=nb,G9=Ff,z9=EZ,Y9=ea,Mf=RA,X9=Qr,q9=NZ,$9=db,Zb=Tb.set,_1=V9,ej=M9,tj=D1,Aj=Ib,jb=Bf,Lf=If,Z1=Rl,Jb=Go,Of="Promise",Kb=Z1.CONSTRUCTOR,rj=Z1.REJECTION_EVENT,nj=Z1.SUBCLASSING,j1=jb.getterFor(Of),aj=jb.set,Yo=Lf&&Lf.prototype,Si=Lf,kf=Yo,Gb=ka.TypeError,J1=ka.document,K1=ka.process,G1=Jb.f,ij=G1,oj=!!(J1&&J1.createEvent&&ka.dispatchEvent),zb="unhandledrejection",sj="rejectionhandled",Yb=0,Xb=1,lj=2,z1=1,qb=2,Hf,$b,eC,tC,AC=function(t){var e;return X9(t)&&Mf(e=t.then)?e:!1},rC=function(t,e){var A=e.value,r=e.state===Xb,n=r?t.ok:t.fail,a=t.resolve,i=t.reject,o=t.domain,s,l,u;try{n?(r||(e.rejection===qb&&uj(e),e.rejection=z1),n===!0?s=A:(o&&o.enter(),s=n(A),o&&(o.exit(),u=!0)),s===t.promise?i(new Gb("Promise-chain cycle")):(l=AC(s))?zo(l,s,a,i):a(s)):i(A)}catch(d){o&&!u&&o.exit(),i(d)}},nC=function(t,e){t.notified||(t.notified=!0,_1(function(){for(var A=t.reactions,r;r=A.get();)rC(r,t);t.notified=!1,e&&!t.rejection&&cj(t)}))},aC=function(t,e,A){var r,n;oj?(r=J1.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),ka.dispatchEvent(r)):r={promise:e,reason:A},!rj&&(n=ka["on"+t])?n(r):t===zb&&ej("Unhandled promise rejection",A)},cj=function(t){zo(Zb,ka,function(){var e=t.facade,A=t.value,r=iC(t),n;if(r&&(n=tj(function(){Vf?K1.emit("unhandledRejection",A,e):aC(zb,e,A)}),t.rejection=Vf||iC(t)?qb:z1,n.error))throw n.value})},iC=function(t){return t.rejection!==z1&&!t.parent},uj=function(t){zo(Zb,ka,function(){var e=t.facade;Vf?K1.emit("rejectionHandled",e):aC(sj,e,t.value)})},Xo=function(t,e,A){return function(r){t(e,r,A)}},qo=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=lj,nC(t,!0))},Y1=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new Gb("Promise can't be resolved itself");var r=AC(e);r?_1(function(){var n={done:!1};try{zo(r,e,Xo(Y1,n,t),Xo(qo,n,t))}catch(a){qo(n,a,t)}}):(t.value=e,t.state=Xb,nC(t,!1))}catch(n){qo({done:!1},n,t)}}};if(Kb&&(Si=function(e){q9(this,kf),Y9(e),zo(Hf,this);var A=j1(this);try{e(Xo(Y1,A),Xo(qo,A))}catch(r){qo(A,r)}},kf=Si.prototype,Hf=function(e){aj(this,{type:Of,done:!1,notified:!1,parent:!1,reactions:new Aj,rejection:!1,state:Yb,value:null})},Hf.prototype=Wb(kf,"then",function(e,A){var r=j1(this),n=G1($9(this,Si));return r.parent=!0,n.ok=Mf(e)?e:!0,n.fail=Mf(A)&&A,n.domain=Vf?K1.domain:void 0,r.state===Yb?r.reactions.add(n):_1(function(){rC(n,r)}),n.promise}),$b=function(){var t=new Hf,e=j1(t);this.promise=t,this.resolve=Xo(Y1,e),this.reject=Xo(qo,e)},Jb.f=G1=function(t){return t===Si||t===eC?new $b(t):ij(t)},Mf(Lf)&&Yo!==Object.prototype)){tC=Yo.then,nj||Wb(Yo,"then",function(e,A){var r=this;return new Si(function(n,a){zo(tC,r,n,a)}).then(e,A)},{unsafe:!0});try{delete Yo.constructor}catch{}_b&&_b(Yo,kf)}J9({global:!0,constructor:!0,wrap:!0,forced:Kb},{Promise:Si}),eC=K9.Promise,G9(Si,Of,!1),z9(Of);var Il={},fj=zA,hj=Il,dj=fj("iterator"),pj=Array.prototype,gj=function(t){return t!==void 0&&(hj.Array===t||pj[dj]===t)},mj=E1,oC=Wo,vj=lf,Bj=Il,wj=zA,yj=wj("iterator"),sC=function(t){if(!vj(t))return oC(t,yj)||oC(t,"@@iterator")||Bj[mj(t)]},bj=Ar,Cj=ea,Ej=wr,Uj=ff,Fj=sC,Nj=TypeError,Sj=function(t,e){var A=arguments.length<2?Fj(t):e;if(Cj(A))return Ej(bj(A,t));throw new Nj(Uj(t)+" is not iterable")},Qj=Ar,lC=wr,Tj=Wo,xj=function(t,e,A){var r,n;lC(t);try{if(r=Tj(t,"return"),!r){if(e==="throw")throw A;return A}r=Qj(r,t)}catch(a){n=!0,r=a}if(e==="throw")throw A;if(n)throw r;return lC(r),A},Rj=F1,Ij=Ar,Vj=wr,Mj=ff,Lj=gj,Oj=y1,cC=cf,kj=Sj,Hj=sC,uC=xj,Dj=TypeError,Df=function(t,e){this.stopped=t,this.result=e},fC=Df.prototype,hC=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=Rj(e,r),l,u,d,g,f,y,v,C=function(w){return l&&uC(l,"normal"),new Df(!0,w)},B=function(w){return n?(Vj(w),o?s(w[0],w[1],C):s(w[0],w[1])):o?s(w,C):s(w)};if(a)l=t.iterator;else if(i)l=t;else{if(u=Hj(t),!u)throw new Dj(Mj(t)+" is not iterable");if(Lj(u)){for(d=0,g=Oj(t);g>d;d++)if(f=B(t[d]),f&&cC(fC,f))return f;return new Df(!1)}l=kj(t,u)}for(y=a?t.next:l.next;!(v=Ij(y,l)).done;){try{f=B(v.value)}catch(w){uC(l,"throw",w)}if(typeof f=="object"&&f&&cC(fC,f))return f}return new Df(!1)},Pj=zA,dC=Pj("iterator"),pC=!1;try{var Wj=0,gC={next:function(){return{done:!!Wj++}},return:function(){pC=!0}};gC[dC]=function(){return this},Array.from(gC,function(){throw 2})}catch{}var _j=function(t,e){try{if(!e&&!pC)return!1}catch{return!1}var A=!1;try{var r={};r[dC]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A},Zj=If,jj=_j,Jj=Rl.CONSTRUCTOR,mC=Jj||!jj(function(t){Zj.all(t).then(void 0,function(){})}),Kj=yr,Gj=Ar,zj=ea,Yj=Go,Xj=D1,qj=hC,$j=mC;Kj({target:"Promise",stat:!0,forced:$j},{all:function(e){var A=this,r=Yj.f(A),n=r.resolve,a=r.reject,i=Xj(function(){var o=zj(A.resolve),s=[],l=0,u=1;qj(e,function(d){var g=l++,f=!1;u++,Gj(o,A,d).then(function(y){f||(f=!0,s[g]=y,--u||n(s))},a)}),--u||n(s)});return i.error&&a(i.value),r.promise}});var eJ=yr,tJ=Rl.CONSTRUCTOR,X1=If,AJ=Ui,rJ=RA,nJ=Fi,vC=X1&&X1.prototype;if(eJ({target:"Promise",proto:!0,forced:tJ,real:!0},{catch:function(t){return this.then(void 0,t)}}),rJ(X1)){var BC=AJ("Promise").prototype.catch;vC.catch!==BC&&nJ(vC,"catch",BC,{unsafe:!0})}var aJ=yr,iJ=Ar,oJ=ea,sJ=Go,lJ=D1,cJ=hC,uJ=mC;aJ({target:"Promise",stat:!0,forced:uJ},{race:function(e){var A=this,r=sJ.f(A),n=r.reject,a=lJ(function(){var i=oJ(A.resolve);cJ(e,function(o){iJ(i,A,o).then(r.resolve,n)})});return a.error&&n(a.value),r.promise}});var fJ=yr,hJ=Go,dJ=Rl.CONSTRUCTOR;fJ({target:"Promise",stat:!0,forced:dJ},{reject:function(e){var A=hJ.f(this),r=A.reject;return r(e),A.promise}});var pJ=wr,gJ=Qr,mJ=Go,vJ=function(t,e){if(pJ(t),gJ(e)&&e.constructor===t)return e;var A=mJ.f(t),r=A.resolve;return r(e),A.promise},BJ=yr,wJ=Ui,yJ=Rl.CONSTRUCTOR,bJ=vJ;wJ("Promise"),BJ({target:"Promise",stat:!0,forced:yJ},{resolve:function(e){return bJ(this,e)}});function wC(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 Aa(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var a=t.apply(e,A);function i(s){wC(a,r,n,i,o,"next",s)}function o(s){wC(a,r,n,i,o,"throw",s)}i(void 0)})}}var CJ=E1,EJ=String,Wn=function(t){if(CJ(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return EJ(t)},UJ=wr,yC=function(){var t=UJ(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},q1=yA,FJ=hA,$1=FJ.RegExp,eg=q1(function(){var t=$1("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),NJ=eg||q1(function(){return!$1("a","y").sticky}),SJ=eg||q1(function(){var t=$1("^r","gy");return t.lastIndex=2,t.exec("str")!==null}),bC={BROKEN_CARET:SJ,MISSED_STICKY:NJ,UNSUPPORTED_Y:eg},CC={},QJ=$5,TJ=C1,xJ=Object.keys||function(e){return QJ(e,TJ)},RJ=yn,IJ=k5,VJ=ta,MJ=wr,LJ=bl,OJ=xJ;CC.f=RJ&&!IJ?Object.defineProperties:function(e,A){MJ(e);for(var r=LJ(A),n=OJ(A),a=n.length,i=0,o;a>i;)VJ.f(e,o=n[i++],r[o]);return e};var kJ=wr,HJ=CC,EC=C1,DJ=p1,PJ=wb,WJ=df,_J=d1,UC=">",FC="<",tg="prototype",Ag="script",NC=_J("IE_PROTO"),rg=function(){},SC=function(t){return FC+Ag+UC+t+FC+"/"+Ag+UC},QC=function(t){t.write(SC("")),t.close();var e=t.parentWindow.Object;return t=null,e},ZJ=function(){var t=WJ("iframe"),e="java"+Ag+":",A;return t.style.display="none",PJ.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(SC("document.F=Object")),A.close(),A.F},Pf,Wf=function(){try{Pf=new ActiveXObject("htmlfile")}catch{}Wf=typeof document<"u"?document.domain&&Pf?QC(Pf):ZJ():QC(Pf);for(var t=EC.length;t--;)delete Wf[tg][EC[t]];return Wf()};DJ[NC]=!0;var ng=Object.create||function(e,A){var r;return e!==null?(rg[tg]=kJ(e),r=new rg,rg[tg]=null,r[NC]=e):r=Wf(),A===void 0?r:HJ.f(r,A)},jJ=yA,JJ=hA,KJ=JJ.RegExp,GJ=jJ(function(){var t=KJ(".","s");return!(t.dotAll&&t.test(`
312
312
  `)&&t.flags==="s")}),zJ=yA,YJ=hA,XJ=YJ.RegExp,qJ=zJ(function(){var t=XJ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),$o=Ar,_f=bA,$J=Wn,eK=yC,tK=bC,AK=r1,rK=ng,nK=Bf.get,aK=GJ,iK=qJ,oK=AK("native-string-replace",String.prototype.replace),Zf=RegExp.prototype.exec,ag=Zf,sK=_f("".charAt),lK=_f("".indexOf),cK=_f("".replace),ig=_f("".slice),og=function(){var t=/a/,e=/b*/g;return $o(Zf,t,"a"),$o(Zf,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),TC=tK.BROKEN_CARET,sg=/()??/.exec("")[1]!==void 0,uK=og||sg||TC||aK||iK;uK&&(ag=function(e){var A=this,r=nK(A),n=$J(e),a=r.raw,i,o,s,l,u,d,g;if(a)return a.lastIndex=A.lastIndex,i=$o(ag,a,n),A.lastIndex=a.lastIndex,i;var f=r.groups,y=TC&&A.sticky,v=$o(eK,A),C=A.source,B=0,w=n;if(y&&(v=cK(v,"y",""),lK(v,"g")===-1&&(v+="g"),w=ig(n,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&sK(n,A.lastIndex-1)!==`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "template-designer",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "模板拖拽设计器组件库",
5
5
  "main": "dist/template-designer.umd.js",
6
6
  "module": "dist/template-designer.esm.js",