template-designer 0.9.7 → 0.9.8

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.
@@ -1714,6 +1714,7 @@ const Mt = (e, A) => {
1714
1714
  placeholder: "请选择",
1715
1715
  style: { width: "100%" },
1716
1716
  size: "small",
1717
+ filterable: "",
1717
1718
  onChange: p
1718
1719
  }, {
1719
1720
  default: fe(() => [
@@ -1786,7 +1787,7 @@ const Mt = (e, A) => {
1786
1787
  ]);
1787
1788
  };
1788
1789
  }
1789
- }, rf = /* @__PURE__ */ Mt(Qv, [["__scopeId", "data-v-f3073ca9"]]);
1790
+ }, rf = /* @__PURE__ */ Mt(Qv, [["__scopeId", "data-v-16072986"]]);
1790
1791
  const bv = { class: "property-layout-container" }, Nv = {
1791
1792
  key: 0,
1792
1793
  class: "property-item-wrapper full-width"
@@ -7089,9 +7090,9 @@ const gb = /* @__PURE__ */ Mt(hb, [["render", pb]]), Xg = [
7089
7090
  ], qg = Xg.flatMap((e) => e.components);
7090
7091
  async function Bb(e) {
7091
7092
  try {
7092
- return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-85b278d3.mjs"), "./props/rfid.js": () => import("./rfid-ecb52f96.mjs") }), `./props/${e}.js`)).default;
7093
+ return (await ym(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-0a52e3b8.mjs"), "./props/rfid.js": () => import("./rfid-df5c71a2.mjs") }), `./props/${e}.js`)).default;
7093
7094
  } catch {
7094
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-85b278d3.mjs")).default;
7095
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-0a52e3b8.mjs")).default;
7095
7096
  }
7096
7097
  }
7097
7098
  function mb(e = {}, A = {}) {
@@ -22806,7 +22807,7 @@ function(e) {
22806
22807
  */
22807
22808
  function(e) {
22808
22809
  function A() {
22809
- return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-a997993f.mjs")).catch(function(t) {
22810
+ return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-94c71da2.mjs")).catch(function(t) {
22810
22811
  return Promise.reject(new Error("Could not load canvg: " + t));
22811
22812
  }).then(function(t) {
22812
22813
  return t.default ? t.default : t;
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-606c1475.mjs";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-7d5af896.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-606c1475.mjs";
1
+ import { R as e } from "./index-7d5af896.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
@@ -1,4 +1,4 @@
1
- import { R as e } from "./index-606c1475.mjs";
1
+ import { R as e } from "./index-7d5af896.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .td-text-component{width:100%;height:100%;position:relative;display:flex;align-items:center;overflow:hidden;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:transform}.td-text-content{width:100%;min-width:0;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-font-feature-settings:"kern" 1;font-feature-settings:"kern" 1}.label[data-v-f3073ca9]{display:flex;align-items:center;justify-content:flex-start;gap:4px}.help-icon[data-v-f3073ca9]{font-size:14px;color:#999;cursor:help;transition:color .2s ease}.help-icon[data-v-f3073ca9]:hover{color:var(--el-color-primary)}.property-item[data-v-f3073ca9]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-f3073ca9]{font-size:14px;color:#666}.property-item input[data-v-f3073ca9],.property-item select[data-v-f3073ca9]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-f3073ca9]{height:32px;padding:2px}.property-item input[type=checkbox][data-v-f3073ca9]{width:16px;height:16px}.file-input-container[data-v-f3073ca9]{position:relative;display:flex;align-items:center;gap:8px}.file-input-container input[data-v-f3073ca9]{height:100%!important}.file-url-input[data-v-f3073ca9]{flex:1;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.file-url-input[data-v-f3073ca9]:disabled{background-color:#f5f5f5;cursor:not-allowed}.file-input[data-v-f3073ca9]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.file-select-btn[data-v-f3073ca9]{padding:4px 12px;border:1px solid #ddd;border-radius:4px;background:var(--el-color-primary);color:#fff;cursor:pointer;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:4px}.file-select-btn[data-v-f3073ca9]:hover:not(:disabled){background:var(--el-color-primary-dark-2);border-color:var(--el-color-primary-dark-2)}.file-select-btn[data-v-f3073ca9]:disabled{background:#ccc;cursor:not-allowed}.file-info[data-v-f3073ca9]{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background-color:#f5f5f5;border-radius:4px;margin-top:4px}.file-name[data-v-f3073ca9]{font-size:12px;color:#666;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-btn[data-v-f3073ca9]{background:none;border:none;color:#ff4d4f;cursor:pointer;font-size:12px;padding:2px 6px;border-radius:2px}.clear-btn[data-v-f3073ca9]:hover{background-color:#fff2f0}.property-item .el-select[data-v-f3073ca9]{width:100%}.property-item .el-select .el-input__wrapper[data-v-f3073ca9]{height:32px;line-height:32px;font-size:14px;padding:0 8px}.property-item .el-select .el-input__inner[data-v-f3073ca9]{font-size:14px;height:32px;line-height:32px}.property-item .el-select .el-select__tags[data-v-f3073ca9]{font-size:12px}.property-item .el-select .el-select__tags .el-tag[data-v-f3073ca9]{font-size:12px;height:20px;line-height:18px;margin:2px 4px 2px 0}.property-item .el-select--multiple .el-input__wrapper[data-v-f3073ca9]{min-height:32px;height:auto;padding:2px 8px}.property-item .el-select--multiple .el-input__inner[data-v-f3073ca9]{height:28px;line-height:28px}.property-panel[data-v-862479af]{padding:16px;background:#fff;border-left:1px solid #e4e7ed;overflow-y:auto;height:100%}.property-group[data-v-862479af]{margin-bottom:16px}.property-group-title[data-v-862479af]{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #ebeef5}.property-item[data-v-862479af]{margin-bottom:12px}.text-property-panel .property-item[data-v-862479af]:last-child,.barcode-property-panel .property-item[data-v-862479af]:last-child,.qrcode-property-panel .property-item[data-v-862479af]:last-child,.image-property-panel .property-item[data-v-862479af]:last-child,.rectangle-property-panel .property-item[data-v-862479af]:last-child,.line-property-panel .property-item[data-v-862479af]:last-child,.verline-property-panel .property-item[data-v-862479af]:last-child{margin-bottom:0}.property-layout-container[data-v-862479af]{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.property-item-wrapper[data-v-862479af]{margin-bottom:0}.property-item-wrapper.full-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper.half-width[data-v-862479af]{width:calc(50% - 6px);flex-basis:calc(50% - 6px)}.property-item-wrapper.default-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper .property-item[data-v-862479af]{margin-bottom:0;width:100%}.barcode-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.barcode-component svg{width:100%!important;height:100%!important;max-width:100%;max-height:100%;display:block}.component-selection-overlay{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-component[data-v-289bd7f0]{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.qrcode-canvas-fixed[data-v-289bd7f0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0}.qrcode-image[data-v-289bd7f0]{display:block;width:100%!important;height:100%!important;padding:0;margin:0;image-rendering:auto;image-rendering:-webkit-optimize-contrast;image-rendering:smooth;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;filter:none;-webkit-filter:none;object-fit:contain;object-position:center}.component-selection-overlay[data-v-289bd7f0]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-property-panel[data-v-cce393d5]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-cce393d5]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-cce393d5]{font-size:14px;color:#666}.property-item input[data-v-cce393d5],.property-item select[data-v-cce393d5]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-cce393d5]{height:32px;padding:2px}.image-component[data-v-b85fcbca]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;pointer-events:auto}.image-placeholder[data-v-b85fcbca]{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:12px;gap:8px;pointer-events:auto}.image-loading-overlay[data-v-b85fcbca]{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);z-index:5;pointer-events:none}.image-content[data-v-b85fcbca]{display:block;max-width:100%;max-height:100%;image-rendering:-webkit-optimize-contrast;image-rendering:-webkit-crisp-edges;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:crisp-edges;image-rendering:high-quality;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto;object-fit:contain;object-position:center}.component-selection-overlay[data-v-b85fcbca]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.image-property-panel[data-v-462c8b63]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-462c8b63]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-462c8b63]{font-size:14px;color:#666}.property-item input[data-v-462c8b63],.property-item select[data-v-462c8b63]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-462c8b63]{height:32px;padding:2px}.rectangle-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.rectangle-content{width:100%;height:100%;box-sizing:border-box;position:relative}.hairline-edge{position:absolute;pointer-events:none}.rectangle-property-panel[data-v-e06ed44e]{display:flex;flex-direction:column;gap:12px}.line-component{position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.line-selection-outline{position:absolute;left:0;top:0;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.component-list[data-v-010ae52b]{background:#fff;display:flex;flex-direction:column;gap:20px}.component-group[data-v-010ae52b]{display:flex;flex-direction:column;gap:8px}.group-title[data-v-010ae52b]{font-size:14px;font-weight:600;color:#333;padding:8px 12px;border-left:4px solid var(--el-color-primary);background:linear-gradient(135deg,var(--el-color-primary-light-9) 0%,var(--el-color-primary-light-8) 100%);border-radius:0 6px 6px 0;margin-bottom:4px;box-shadow:0 1px 3px #0000001a}.group-content[data-v-010ae52b]{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:8px;grid-column-gap:8px}.component-item[data-v-010ae52b]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 0;border:1px solid #ddd;border-radius:4px;cursor:grab;font-size:13px;color:#555;transition:all .2s ease;width:100%;height:70px;background:#fff;box-shadow:0 1px 3px #0000001a}.component-item[data-v-010ae52b]:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary);color:var(--el-color-primary);box-shadow:0 2px 8px #00000014}.component-item i[data-v-010ae52b]{font-size:24px;margin-bottom:8px;color:var(--el-color-primary)}.component-item span[data-v-010ae52b]{font-size:12px;text-align:center;color:#333}.component-item:hover i[data-v-010ae52b],.component-item:hover span[data-v-010ae52b]{color:var(--el-color-primary)!important}.ruler[data-v-f0df7b80]{position:absolute;z-index:1}.ruler.horizontal[data-v-f0df7b80]{left:20px;top:0;width:calc(100% - 40px);height:20px;border-bottom:none}.ruler.vertical[data-v-f0df7b80]{top:20px;left:0;width:20px;height:calc(100% - 40px);border-right:none}.ruler-unit[data-v-f0df7b80]{position:absolute}.ruler.horizontal .ruler-unit[data-v-f0df7b80]{height:100%}.ruler.vertical .ruler-unit[data-v-f0df7b80]{width:100%}.ruler-mark[data-v-f0df7b80]{position:absolute;background:#999}.ruler.horizontal .ruler-mark[data-v-f0df7b80]{bottom:0}.ruler.vertical .ruler-mark[data-v-f0df7b80]{right:0}.ruler-text[data-v-f0df7b80]{position:absolute;font-size:8px;color:#666;white-space:nowrap}.ruler.horizontal .ruler-text[data-v-f0df7b80]{bottom:8px;transform:translate(-50%)}.ruler.vertical .ruler-text[data-v-f0df7b80]{right:8px;transform:translateY(-50%) rotate(-90deg)}.label-container[data-v-11f07674]{display:flex;flex-direction:column;align-items:flex-end}.tg-title[data-v-11f07674]{display:flex;align-items:center}.tg-title p[data-v-11f07674]{font-size:18px;font-weight:700}.tge-main[data-v-11f07674]{max-height:82vh;padding:0}.tge-text[data-v-11f07674]{font-size:14px;line-height:26px}.tge-content[data-v-11f07674]{display:flex;width:100%}.tge-block[data-v-11f07674]{display:flex;flex-direction:column;flex:1}.tge-title[data-v-11f07674]{padding:6px 0;font-size:14px;color:var(--el-color-primary)}.tge-img[data-v-11f07674]{width:100%;height:auto}.table-container[data-v-11f07674]{width:100%;border:1px dashed #ddd;border-radius:4px}.empty-placeholder[data-v-11f07674]{display:flex;align-items:center;justify-content:center;color:#999;padding:20px;border-radius:4px;min-height:80px}.graph-table[data-v-11f07674]{margin-top:10px}.tge-divider[data-v-11f07674]{width:1px;background:var(--el-border-color);margin:0 10px}.table-container .el-table .el-table__body-wrapper{background:transparent!important}.graph-table .el-table__header,.graph-table .el-table__body{width:100%!important}.graph-table .el-table__body{margin-bottom:10px!important}.graph-table .el-form-item__error{position:static!important;top:0!important}.graph-table .el-input-number{width:auto}.graph-table .el-input-number.is-without-controls .el-input__wrapper{padding-left:4px;padding-right:4px}button[data-v-141dd6ea]{display:flex;align-items:center;justify-content:center}.label-designer[data-v-141dd6ea]{display:flex;height:100%}.toolbar[data-v-141dd6ea]{width:200px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;display:flex;flex-direction:column;gap:16px}.zoom-controls span[data-v-141dd6ea]{width:44px;text-align:center}.zoom-controls[data-v-141dd6ea]{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 8px}.zoom-controls button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.zoom-controls button[data-v-141dd6ea]:disabled{opacity:.5;cursor:not-allowed}.center-container[data-v-141dd6ea]{display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.center-toolbar[data-v-141dd6ea]{display:flex;align-items:center;justify-content:flex-end;padding:16px 16px 0}.canvas-container[data-v-141dd6ea]{flex:1;padding:0 16px 16px;overflow:auto;position:relative;display:flex;flex-direction:column}.canvas-wrapper[data-v-141dd6ea]{position:relative;transform-origin:0 0;overflow:visible;width:fit-content;height:fit-content;margin-top:20px;transition:all .2s ease;transform:translateZ(0);will-change:transform}.ruler-horizontal[data-v-141dd6ea]{position:absolute;left:0;top:0;right:0;height:24px;z-index:10;pointer-events:none}.ruler-vertical[data-v-141dd6ea]{position:absolute;left:0;top:0;bottom:0;width:24px;z-index:10;pointer-events:none}.canvas[data-v-141dd6ea]{position:relative;overflow:visible;z-index:1;position:absolute;left:21px;top:21px}.property-panel[data-v-141dd6ea]{width:260px;background:#fff;border-left:1px solid #ddd;padding:0 16px 16px;display:flex;flex-direction:column;gap:16px;position:relative;z-index:100;overflow-y:auto}.property-panel-operate[data-v-141dd6ea]{display:flex;align-items:center;margin-top:10px}.property-panel-title[data-v-141dd6ea]{position:sticky;top:0;left:0;right:0;background:#fff;z-index:100;display:flex;align-items:center;justify-content:flex-start;margin:0;gap:8px}.property-panel-title .help-icon[data-v-141dd6ea]{font-size:18px;color:#999;transition:color .2s ease}.property-panel-title .help-icon[data-v-141dd6ea]:hover{color:var(--el-color-primary)}.position-controls[data-v-141dd6ea]{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5;border-radius:4px}.control-group[data-v-141dd6ea]{display:flex;align-items:center;justify-content:space-between;gap:4px}.control-group label[data-v-141dd6ea]{width:80px;font-size:14px;color:#666;text-align:end}.number-input[data-v-141dd6ea]{display:flex;align-items:center;gap:4px}.number-input input[data-v-141dd6ea]{width:90px;padding:4px;border:1px solid #ddd;border-radius:4px;text-align:center}.number-input button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.rotation-display[data-v-141dd6ea]{display:flex;align-items:center;justify-content:center;min-width:40px;height:24px;font-size:12px;color:#666;border:1px solid #ddd;background:#f9f9f9;border-radius:4px}.canvas-item[data-v-141dd6ea]{position:absolute;cursor:move;-webkit-user-select:none;user-select:none;z-index:10;transform:translateZ(0);will-change:transform;left:0;top:0;pointer-events:auto}.resize-handle[data-v-141dd6ea]{position:absolute;width:4px;height:4px;background:#ffffff;border:.5px solid var(--el-color-primary-light-3);z-index:1001;transition:all .2s ease;border-radius:50%;display:block!important;visibility:visible!important;opacity:1!important;transform:translateZ(0);will-change:transform;font-size:16px!important;line-height:1!important;cursor:pointer}.resize-handle.top-left[data-v-141dd6ea]{top:-2px;left:-2px}.resize-handle.top[data-v-141dd6ea]{top:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.top-right[data-v-141dd6ea]{top:-2px;right:-2px}.resize-handle.right[data-v-141dd6ea]{top:50%;right:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.bottom-right[data-v-141dd6ea]{bottom:-2px;right:-2px}.resize-handle.bottom[data-v-141dd6ea]{bottom:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.bottom-left[data-v-141dd6ea]{bottom:-2px;left:-2px}.resize-handle.left[data-v-141dd6ea]{top:50%;left:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.line-anchor[data-v-141dd6ea]{width:4px;height:4px;border-radius:50%}.rotate-handle[data-v-141dd6ea]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:-8px;width:12px;height:12px;background:#ffffff;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:grab;z-index:1002;display:flex;align-items:center;justify-content:center}.size-label[data-v-141dd6ea]{display:flex;justify-content:center;flex-wrap:nowrap;white-space:nowrap;position:absolute;top:-14px;left:-4px;width:auto;min-width:70px;height:auto;background:rgba(255,34,34,.8);color:#fff;font-size:7px;border-radius:6px;z-index:20;line-height:1.2;box-shadow:0 2px 8px #00000014;pointer-events:none;padding:1px 8px 0}.delete-btn[data-v-141dd6ea]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:8px;width:12px;height:12px;background:#ffffff;color:#ff4d4f;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:pointer;z-index:1003;display:flex;align-items:center;justify-content:center}.delete-btn.delete-btn-centered[data-v-141dd6ea]{margin-left:0}.drag-extend-lines[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.drag-extend-line[data-v-141dd6ea]{position:absolute;pointer-events:none;z-index:998}.drag-extend-line.horizontal[data-v-141dd6ea]{width:100%;height:1px;left:0;background:linear-gradient(to right,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.drag-extend-line.vertical[data-v-141dd6ea]{width:1px;height:100%;top:0;background:linear-gradient(to bottom,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.drag-extend-line.rotated[data-v-141dd6ea]{position:absolute;border:1px dashed var(--el-color-primary-light-3);pointer-events:none;z-index:998}.alignment-guides[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.alignment-guide[data-v-141dd6ea]{background-color:transparent;pointer-events:none;z-index:9999}.alignment-guide.horizontal[data-v-141dd6ea]{position:absolute;left:0;right:0;height:1px;background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.alignment-guide.vertical[data-v-141dd6ea]{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.alignment-guide.guide-center[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-center.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-resize-anchor[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-resize-anchor.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-canvas-center[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px}.alignment-guide.guide-canvas-center.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px}.alignment-guide.guide-boundary[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:3px 1px}.alignment-guide.guide-boundary.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 3px}.number-input input[type=number][data-v-141dd6ea]::-webkit-inner-spin-button,.number-input input[type=number][data-v-141dd6ea]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.switch-input[data-v-141dd6ea]{display:flex;align-items:center}.switch-input input[type=checkbox][data-v-141dd6ea]{width:20px;height:20px;cursor:pointer;accent-color:var(--el-color-primary-light-3)}.component-selected[data-v-141dd6ea]{outline:1px dashed var(--el-color-info-light-3)!important;outline-offset:0!important}.component-current[data-v-141dd6ea]{outline:1px dashed var(--el-color-primary-light-3)!important;outline-offset:0!important}.component-selected[data-v-141dd6ea],.component-current[data-v-141dd6ea]{box-sizing:border-box}.component-config-missing[data-v-141dd6ea]{display:flex;align-items:center;justify-content:center;background:#fff3cd;border:1px dashed #ffc107;border-radius:4px;color:#856404;font-size:12px}.missing-config-tip[data-v-141dd6ea]{display:flex;align-items:center;gap:4px;padding:8px}.missing-config-tip .el-icon[data-v-141dd6ea]{font-size:14px;color:#ffc107}.loader-container[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center}.loader-container p[data-v-141dd6ea]{color:var(--el-color-primary-light-3);font-size:14px;margin-top:20px}.loader-circle[data-v-141dd6ea]{width:70px;height:70px;display:inline-block;margin-right:10px;position:relative;vertical-align:top}.loader-circle[data-v-141dd6ea]:before{border-radius:50%;border-top:5px solid var(--el-color-primary-light-3);content:" ";display:block;position:absolute;top:10%;left:10%;height:80%;width:80%;animation:loader-circle_rotation-141dd6ea 1s linear infinite}.loader-circle[data-v-141dd6ea]:after{border-radius:50%;border-bottom:5px solid var(--el-color-primary-light-3);content:" ";display:block;height:100%;width:100%;animation:loader-circle_rotation-reverse-141dd6ea 1s linear infinite;position:absolute;top:0}@keyframes loader-circle_rotation-reverse-141dd6ea{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes loader-circle_rotation-141dd6ea{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.template-designer[data-v-a3d9b11f]{overflow-y:hidden}.template-designer-border-top[data-v-a3d9b11f]{border-top:1px solid #e0e0e0}
1
+ .td-text-component{width:100%;height:100%;position:relative;display:flex;align-items:center;overflow:hidden;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:transform}.td-text-content{width:100%;min-width:0;box-sizing:border-box;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-font-feature-settings:"kern" 1;font-feature-settings:"kern" 1}.label[data-v-16072986]{display:flex;align-items:center;justify-content:flex-start;gap:4px}.help-icon[data-v-16072986]{font-size:14px;color:#999;cursor:help;transition:color .2s ease}.help-icon[data-v-16072986]:hover{color:var(--el-color-primary)}.property-item[data-v-16072986]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-16072986]{font-size:14px;color:#666}.property-item input[data-v-16072986],.property-item select[data-v-16072986]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-16072986]{height:32px;padding:2px}.property-item input[type=checkbox][data-v-16072986]{width:16px;height:16px}.file-input-container[data-v-16072986]{position:relative;display:flex;align-items:center;gap:8px}.file-input-container input[data-v-16072986]{height:100%!important}.file-url-input[data-v-16072986]{flex:1;padding:4px 8px;border:1px solid #ddd;border-radius:4px;font-size:12px}.file-url-input[data-v-16072986]:disabled{background-color:#f5f5f5;cursor:not-allowed}.file-input[data-v-16072986]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.file-select-btn[data-v-16072986]{padding:4px 12px;border:1px solid #ddd;border-radius:4px;background:var(--el-color-primary);color:#fff;cursor:pointer;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:4px}.file-select-btn[data-v-16072986]:hover:not(:disabled){background:var(--el-color-primary-dark-2);border-color:var(--el-color-primary-dark-2)}.file-select-btn[data-v-16072986]:disabled{background:#ccc;cursor:not-allowed}.file-info[data-v-16072986]{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background-color:#f5f5f5;border-radius:4px;margin-top:4px}.file-name[data-v-16072986]{font-size:12px;color:#666;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-btn[data-v-16072986]{background:none;border:none;color:#ff4d4f;cursor:pointer;font-size:12px;padding:2px 6px;border-radius:2px}.clear-btn[data-v-16072986]:hover{background-color:#fff2f0}.property-item .el-select[data-v-16072986]{width:100%}.property-item .el-select .el-input__wrapper[data-v-16072986]{height:32px;line-height:32px;font-size:14px;padding:0 8px}.property-item .el-select .el-input__inner[data-v-16072986]{font-size:14px;height:32px;line-height:32px}.property-item .el-select .el-select__tags[data-v-16072986]{font-size:12px}.property-item .el-select .el-select__tags .el-tag[data-v-16072986]{font-size:12px;height:20px;line-height:18px;margin:2px 4px 2px 0}.property-item .el-select--multiple .el-input__wrapper[data-v-16072986]{min-height:32px;height:auto;padding:2px 8px}.property-item .el-select--multiple .el-input__inner[data-v-16072986]{height:28px;line-height:28px}.property-panel[data-v-862479af]{padding:16px;background:#fff;border-left:1px solid #e4e7ed;overflow-y:auto;height:100%}.property-group[data-v-862479af]{margin-bottom:16px}.property-group-title[data-v-862479af]{font-size:14px;font-weight:500;color:#303133;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #ebeef5}.property-item[data-v-862479af]{margin-bottom:12px}.text-property-panel .property-item[data-v-862479af]:last-child,.barcode-property-panel .property-item[data-v-862479af]:last-child,.qrcode-property-panel .property-item[data-v-862479af]:last-child,.image-property-panel .property-item[data-v-862479af]:last-child,.rectangle-property-panel .property-item[data-v-862479af]:last-child,.line-property-panel .property-item[data-v-862479af]:last-child,.verline-property-panel .property-item[data-v-862479af]:last-child{margin-bottom:0}.property-layout-container[data-v-862479af]{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}.property-item-wrapper[data-v-862479af]{margin-bottom:0}.property-item-wrapper.full-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper.half-width[data-v-862479af]{width:calc(50% - 6px);flex-basis:calc(50% - 6px)}.property-item-wrapper.default-width[data-v-862479af]{width:100%;flex-basis:100%}.property-item-wrapper .property-item[data-v-862479af]{margin-bottom:0;width:100%}.barcode-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.barcode-component svg{width:100%!important;height:100%!important;max-width:100%;max-height:100%;display:block}.component-selection-overlay{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-component[data-v-289bd7f0]{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}.qrcode-canvas-fixed[data-v-289bd7f0]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0}.qrcode-image[data-v-289bd7f0]{display:block;width:100%!important;height:100%!important;padding:0;margin:0;image-rendering:auto;image-rendering:-webkit-optimize-contrast;image-rendering:smooth;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;filter:none;-webkit-filter:none;object-fit:contain;object-position:center}.component-selection-overlay[data-v-289bd7f0]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.qrcode-property-panel[data-v-cce393d5]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-cce393d5]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-cce393d5]{font-size:14px;color:#666}.property-item input[data-v-cce393d5],.property-item select[data-v-cce393d5]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-cce393d5]{height:32px;padding:2px}.image-component[data-v-b85fcbca]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;pointer-events:auto}.image-placeholder[data-v-b85fcbca]{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999;font-size:12px;gap:8px;pointer-events:auto}.image-loading-overlay[data-v-b85fcbca]{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.6);z-index:5;pointer-events:none}.image-content[data-v-b85fcbca]{display:block;max-width:100%;max-height:100%;image-rendering:-webkit-optimize-contrast;image-rendering:-webkit-crisp-edges;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:crisp-edges;image-rendering:high-quality;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0);-webkit-transform:translateZ(0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-drag:none;-khtml-user-drag:none;-moz-user-drag:none;-o-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:auto;object-fit:contain;object-position:center}.component-selection-overlay[data-v-b85fcbca]{position:absolute;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.image-property-panel[data-v-462c8b63]{display:flex;flex-direction:column;gap:12px}.property-item[data-v-462c8b63]{display:flex;flex-direction:column;gap:4px}.property-item label[data-v-462c8b63]{font-size:14px;color:#666}.property-item input[data-v-462c8b63],.property-item select[data-v-462c8b63]{padding:4px 8px;border:1px solid #ddd;border-radius:4px}.property-item input[type=color][data-v-462c8b63]{height:32px;padding:2px}.rectangle-component{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.rectangle-content{width:100%;height:100%;box-sizing:border-box;position:relative}.hairline-edge{position:absolute;pointer-events:none}.rectangle-property-panel[data-v-e06ed44e]{display:flex;flex-direction:column;gap:12px}.line-component{position:relative;display:flex;align-items:center;justify-content:center;overflow:visible;box-sizing:border-box}.line-selection-outline{position:absolute;left:0;top:0;border:2px dashed #1890ff;pointer-events:none;box-sizing:border-box;z-index:1000}.component-list[data-v-010ae52b]{background:#fff;display:flex;flex-direction:column;gap:20px}.component-group[data-v-010ae52b]{display:flex;flex-direction:column;gap:8px}.group-title[data-v-010ae52b]{font-size:14px;font-weight:600;color:#333;padding:8px 12px;border-left:4px solid var(--el-color-primary);background:linear-gradient(135deg,var(--el-color-primary-light-9) 0%,var(--el-color-primary-light-8) 100%);border-radius:0 6px 6px 0;margin-bottom:4px;box-shadow:0 1px 3px #0000001a}.group-content[data-v-010ae52b]{display:grid;grid-template-columns:1fr 1fr;grid-row-gap:8px;grid-column-gap:8px}.component-item[data-v-010ae52b]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px 0;border:1px solid #ddd;border-radius:4px;cursor:grab;font-size:13px;color:#555;transition:all .2s ease;width:100%;height:70px;background:#fff;box-shadow:0 1px 3px #0000001a}.component-item[data-v-010ae52b]:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary);color:var(--el-color-primary);box-shadow:0 2px 8px #00000014}.component-item i[data-v-010ae52b]{font-size:24px;margin-bottom:8px;color:var(--el-color-primary)}.component-item span[data-v-010ae52b]{font-size:12px;text-align:center;color:#333}.component-item:hover i[data-v-010ae52b],.component-item:hover span[data-v-010ae52b]{color:var(--el-color-primary)!important}.ruler[data-v-f0df7b80]{position:absolute;z-index:1}.ruler.horizontal[data-v-f0df7b80]{left:20px;top:0;width:calc(100% - 40px);height:20px;border-bottom:none}.ruler.vertical[data-v-f0df7b80]{top:20px;left:0;width:20px;height:calc(100% - 40px);border-right:none}.ruler-unit[data-v-f0df7b80]{position:absolute}.ruler.horizontal .ruler-unit[data-v-f0df7b80]{height:100%}.ruler.vertical .ruler-unit[data-v-f0df7b80]{width:100%}.ruler-mark[data-v-f0df7b80]{position:absolute;background:#999}.ruler.horizontal .ruler-mark[data-v-f0df7b80]{bottom:0}.ruler.vertical .ruler-mark[data-v-f0df7b80]{right:0}.ruler-text[data-v-f0df7b80]{position:absolute;font-size:8px;color:#666;white-space:nowrap}.ruler.horizontal .ruler-text[data-v-f0df7b80]{bottom:8px;transform:translate(-50%)}.ruler.vertical .ruler-text[data-v-f0df7b80]{right:8px;transform:translateY(-50%) rotate(-90deg)}.label-container[data-v-11f07674]{display:flex;flex-direction:column;align-items:flex-end}.tg-title[data-v-11f07674]{display:flex;align-items:center}.tg-title p[data-v-11f07674]{font-size:18px;font-weight:700}.tge-main[data-v-11f07674]{max-height:82vh;padding:0}.tge-text[data-v-11f07674]{font-size:14px;line-height:26px}.tge-content[data-v-11f07674]{display:flex;width:100%}.tge-block[data-v-11f07674]{display:flex;flex-direction:column;flex:1}.tge-title[data-v-11f07674]{padding:6px 0;font-size:14px;color:var(--el-color-primary)}.tge-img[data-v-11f07674]{width:100%;height:auto}.table-container[data-v-11f07674]{width:100%;border:1px dashed #ddd;border-radius:4px}.empty-placeholder[data-v-11f07674]{display:flex;align-items:center;justify-content:center;color:#999;padding:20px;border-radius:4px;min-height:80px}.graph-table[data-v-11f07674]{margin-top:10px}.tge-divider[data-v-11f07674]{width:1px;background:var(--el-border-color);margin:0 10px}.table-container .el-table .el-table__body-wrapper{background:transparent!important}.graph-table .el-table__header,.graph-table .el-table__body{width:100%!important}.graph-table .el-table__body{margin-bottom:10px!important}.graph-table .el-form-item__error{position:static!important;top:0!important}.graph-table .el-input-number{width:auto}.graph-table .el-input-number.is-without-controls .el-input__wrapper{padding-left:4px;padding-right:4px}button[data-v-141dd6ea]{display:flex;align-items:center;justify-content:center}.label-designer[data-v-141dd6ea]{display:flex;height:100%}.toolbar[data-v-141dd6ea]{width:200px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;display:flex;flex-direction:column;gap:16px}.zoom-controls span[data-v-141dd6ea]{width:44px;text-align:center}.zoom-controls[data-v-141dd6ea]{display:flex;align-items:center;gap:8px;border-radius:4px;padding:4px 8px}.zoom-controls button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.zoom-controls button[data-v-141dd6ea]:disabled{opacity:.5;cursor:not-allowed}.center-container[data-v-141dd6ea]{display:flex;flex-direction:column;flex:1;overflow:hidden;height:100%}.center-toolbar[data-v-141dd6ea]{display:flex;align-items:center;justify-content:flex-end;padding:16px 16px 0}.canvas-container[data-v-141dd6ea]{flex:1;padding:0 16px 16px;overflow:auto;position:relative;display:flex;flex-direction:column}.canvas-wrapper[data-v-141dd6ea]{position:relative;transform-origin:0 0;overflow:visible;width:fit-content;height:fit-content;margin-top:20px;transition:all .2s ease;transform:translateZ(0);will-change:transform}.ruler-horizontal[data-v-141dd6ea]{position:absolute;left:0;top:0;right:0;height:24px;z-index:10;pointer-events:none}.ruler-vertical[data-v-141dd6ea]{position:absolute;left:0;top:0;bottom:0;width:24px;z-index:10;pointer-events:none}.canvas[data-v-141dd6ea]{position:relative;overflow:visible;z-index:1;position:absolute;left:21px;top:21px}.property-panel[data-v-141dd6ea]{width:260px;background:#fff;border-left:1px solid #ddd;padding:0 16px 16px;display:flex;flex-direction:column;gap:16px;position:relative;z-index:100;overflow-y:auto}.property-panel-operate[data-v-141dd6ea]{display:flex;align-items:center;margin-top:10px}.property-panel-title[data-v-141dd6ea]{position:sticky;top:0;left:0;right:0;background:#fff;z-index:100;display:flex;align-items:center;justify-content:flex-start;margin:0;gap:8px}.property-panel-title .help-icon[data-v-141dd6ea]{font-size:18px;color:#999;transition:color .2s ease}.property-panel-title .help-icon[data-v-141dd6ea]:hover{color:var(--el-color-primary)}.position-controls[data-v-141dd6ea]{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5;border-radius:4px}.control-group[data-v-141dd6ea]{display:flex;align-items:center;justify-content:space-between;gap:4px}.control-group label[data-v-141dd6ea]{width:80px;font-size:14px;color:#666;text-align:end}.number-input[data-v-141dd6ea]{display:flex;align-items:center;gap:4px}.number-input input[data-v-141dd6ea]{width:90px;padding:4px;border:1px solid #ddd;border-radius:4px;text-align:center}.number-input button[data-v-141dd6ea]{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer}.rotation-display[data-v-141dd6ea]{display:flex;align-items:center;justify-content:center;min-width:40px;height:24px;font-size:12px;color:#666;border:1px solid #ddd;background:#f9f9f9;border-radius:4px}.canvas-item[data-v-141dd6ea]{position:absolute;cursor:move;-webkit-user-select:none;user-select:none;z-index:10;transform:translateZ(0);will-change:transform;left:0;top:0;pointer-events:auto}.resize-handle[data-v-141dd6ea]{position:absolute;width:4px;height:4px;background:#ffffff;border:.5px solid var(--el-color-primary-light-3);z-index:1001;transition:all .2s ease;border-radius:50%;display:block!important;visibility:visible!important;opacity:1!important;transform:translateZ(0);will-change:transform;font-size:16px!important;line-height:1!important;cursor:pointer}.resize-handle.top-left[data-v-141dd6ea]{top:-2px;left:-2px}.resize-handle.top[data-v-141dd6ea]{top:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.top-right[data-v-141dd6ea]{top:-2px;right:-2px}.resize-handle.right[data-v-141dd6ea]{top:50%;right:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.bottom-right[data-v-141dd6ea]{bottom:-2px;right:-2px}.resize-handle.bottom[data-v-141dd6ea]{bottom:-2px;left:50%;transform:translate(-50%);width:6px;height:3px;border-radius:1px}.resize-handle.bottom-left[data-v-141dd6ea]{bottom:-2px;left:-2px}.resize-handle.left[data-v-141dd6ea]{top:50%;left:-2px;transform:translateY(-50%);width:3px;height:6px;border-radius:1px}.resize-handle.line-anchor[data-v-141dd6ea]{width:4px;height:4px;border-radius:50%}.rotate-handle[data-v-141dd6ea]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:-8px;width:12px;height:12px;background:#ffffff;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:grab;z-index:1002;display:flex;align-items:center;justify-content:center}.size-label[data-v-141dd6ea]{display:flex;justify-content:center;flex-wrap:nowrap;white-space:nowrap;position:absolute;top:-14px;left:-4px;width:auto;min-width:70px;height:auto;background:rgba(255,34,34,.8);color:#fff;font-size:7px;border-radius:6px;z-index:20;line-height:1.2;box-shadow:0 2px 8px #00000014;pointer-events:none;padding:1px 8px 0}.delete-btn[data-v-141dd6ea]{position:absolute;bottom:-20px;left:50%;transform:translate(-50%);margin-left:8px;width:12px;height:12px;background:#ffffff;color:#ff4d4f;border:.5px solid rgba(0,0,0,.1);border-radius:50%;cursor:pointer;z-index:1003;display:flex;align-items:center;justify-content:center}.delete-btn.delete-btn-centered[data-v-141dd6ea]{margin-left:0}.drag-extend-lines[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.drag-extend-line[data-v-141dd6ea]{position:absolute;pointer-events:none;z-index:998}.drag-extend-line.horizontal[data-v-141dd6ea]{width:100%;height:1px;left:0;background:linear-gradient(to right,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.drag-extend-line.vertical[data-v-141dd6ea]{width:1px;height:100%;top:0;background:linear-gradient(to bottom,rgb(177,179,184) 0%,rgb(177,179,184) 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.drag-extend-line.rotated[data-v-141dd6ea]{position:absolute;border:1px dashed var(--el-color-primary-light-3);pointer-events:none;z-index:998}.alignment-guides[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:9999}.alignment-guide[data-v-141dd6ea]{background-color:transparent;pointer-events:none;z-index:9999}.alignment-guide.horizontal[data-v-141dd6ea]{position:absolute;left:0;right:0;height:1px;background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px;background-repeat:repeat-x;transform:translateZ(0);will-change:auto}.alignment-guide.vertical[data-v-141dd6ea]{position:absolute;top:0;bottom:0;width:1px;background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px;background-repeat:repeat-y;transform:translateZ(0);will-change:auto}.alignment-guide.guide-center[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-center.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-resize-anchor[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:4px 1px}.alignment-guide.guide-resize-anchor.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 4px}.alignment-guide.guide-canvas-center[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:6px 1px}.alignment-guide.guide-canvas-center.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 6px}.alignment-guide.guide-boundary[data-v-141dd6ea]{background:linear-gradient(to right,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:3px 1px}.alignment-guide.guide-boundary.vertical[data-v-141dd6ea]{background:linear-gradient(to bottom,#ff4d4f 0%,#ff4d4f 50%,transparent 50%,transparent 100%);background-size:1px 3px}.number-input input[type=number][data-v-141dd6ea]::-webkit-inner-spin-button,.number-input input[type=number][data-v-141dd6ea]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.switch-input[data-v-141dd6ea]{display:flex;align-items:center}.switch-input input[type=checkbox][data-v-141dd6ea]{width:20px;height:20px;cursor:pointer;accent-color:var(--el-color-primary-light-3)}.component-selected[data-v-141dd6ea]{outline:1px dashed var(--el-color-info-light-3)!important;outline-offset:0!important}.component-current[data-v-141dd6ea]{outline:1px dashed var(--el-color-primary-light-3)!important;outline-offset:0!important}.component-selected[data-v-141dd6ea],.component-current[data-v-141dd6ea]{box-sizing:border-box}.component-config-missing[data-v-141dd6ea]{display:flex;align-items:center;justify-content:center;background:#fff3cd;border:1px dashed #ffc107;border-radius:4px;color:#856404;font-size:12px}.missing-config-tip[data-v-141dd6ea]{display:flex;align-items:center;gap:4px;padding:8px}.missing-config-tip .el-icon[data-v-141dd6ea]{font-size:14px;color:#ffc107}.loader-container[data-v-141dd6ea]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center}.loader-container p[data-v-141dd6ea]{color:var(--el-color-primary-light-3);font-size:14px;margin-top:20px}.loader-circle[data-v-141dd6ea]{width:70px;height:70px;display:inline-block;margin-right:10px;position:relative;vertical-align:top}.loader-circle[data-v-141dd6ea]:before{border-radius:50%;border-top:5px solid var(--el-color-primary-light-3);content:" ";display:block;position:absolute;top:10%;left:10%;height:80%;width:80%;animation:loader-circle_rotation-141dd6ea 1s linear infinite}.loader-circle[data-v-141dd6ea]:after{border-radius:50%;border-bottom:5px solid var(--el-color-primary-light-3);content:" ";display:block;height:100%;width:100%;animation:loader-circle_rotation-reverse-141dd6ea 1s linear infinite;position:absolute;top:0}@keyframes loader-circle_rotation-reverse-141dd6ea{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@keyframes loader-circle_rotation-141dd6ea{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.template-designer[data-v-a3d9b11f]{overflow-y:hidden}.template-designer-border-top[data-v-a3d9b11f]{border-top:1px solid #e0e0e0}
@@ -1,4 +1,4 @@
1
- import { T as t, f as s, i as d, h as o, d as n, b as l, e as g, a as p, r as m } from "./index-606c1475.mjs";
1
+ import { T as t, f as s, i as d, h as o, d as n, b as l, e as g, a as p, r as m } from "./index-7d5af896.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  t as default,
@@ -2,7 +2,7 @@
2
2
  * @vue/shared v3.5.20
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const CF=Object.prototype.hasOwnProperty,Xh=(t,e)=>CF.call(t,e),bc=t=>typeof t=="function",Ts=t=>typeof t=="string",em=t=>t!==null&&typeof t=="object";var EF=typeof global=="object"&&global&&global.Object===Object&&global;const UF=EF;var FF=typeof self=="object"&&self&&self.Object===Object&&self,NF=UF||FF||Function("return this")();const qh=NF;var QF=qh.Symbol;const Xi=QF;var tm=Object.prototype,SF=tm.hasOwnProperty,TF=tm.toString,xs=Xi?Xi.toStringTag:void 0;function xF(t){var e=SF.call(t,xs),A=t[xs];try{t[xs]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[xs]=A:delete t[xs]),n}var RF=Object.prototype,IF=RF.toString;function VF(t){return IF.call(t)}var MF="[object Null]",LF="[object Undefined]",Am=Xi?Xi.toStringTag:void 0;function rm(t){return t==null?t===void 0?LF:MF:Am&&Am in Object(t)?xF(t):VF(t)}function OF(t){return t!=null&&typeof t=="object"}var kF="[object Symbol]";function $h(t){return typeof t=="symbol"||OF(t)&&rm(t)==kF}function HF(t,e){for(var A=-1,r=t==null?0:t.length,n=Array(r);++A<r;)n[A]=e(t[A],A,t);return n}var DF=Array.isArray;const ed=DF;var PF=1/0,nm=Xi?Xi.prototype:void 0,am=nm?nm.toString:void 0;function im(t){if(typeof t=="string")return t;if(ed(t))return HF(t,im)+"";if($h(t))return am?am.call(t):"";var e=t+"";return e=="0"&&1/t==-PF?"-0":e}function om(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var WF="[object AsyncFunction]",_F="[object Function]",ZF="[object GeneratorFunction]",jF="[object Proxy]";function JF(t){if(!om(t))return!1;var e=rm(t);return e==_F||e==ZF||e==WF||e==jF}var KF=qh["__core-js_shared__"];const td=KF;var sm=function(){var t=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function GF(t){return!!sm&&sm in t}var zF=Function.prototype,YF=zF.toString;function XF(t){if(t!=null){try{return YF.call(t)}catch{}try{return t+""}catch{}}return""}var qF=/[\\^$.*+?()[\]{}|]/g,$F=/^\[object .+?Constructor\]$/,e4=Function.prototype,t4=Object.prototype,A4=e4.toString,r4=t4.hasOwnProperty,n4=RegExp("^"+A4.call(r4).replace(qF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a4(t){if(!om(t)||GF(t))return!1;var e=JF(t)?n4:$F;return e.test(XF(t))}function i4(t,e){return t==null?void 0:t[e]}function lm(t,e){var A=i4(t,e);return a4(A)?A:void 0}function o4(t,e){return t===e||t!==t&&e!==e}var s4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l4=/^\w*$/;function c4(t,e){if(ed(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||$h(t)?!0:l4.test(t)||!s4.test(t)||e!=null&&t in Object(e)}var u4=lm(Object,"create");const Rs=u4;function f4(){this.__data__=Rs?Rs(null):{},this.size=0}function h4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var d4="__lodash_hash_undefined__",p4=Object.prototype,g4=p4.hasOwnProperty;function m4(t){var e=this.__data__;if(Rs){var A=e[t];return A===d4?void 0:A}return g4.call(e,t)?e[t]:void 0}var v4=Object.prototype,B4=v4.hasOwnProperty;function w4(t){var e=this.__data__;return Rs?e[t]!==void 0:B4.call(e,t)}var y4="__lodash_hash_undefined__";function b4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?y4:e,this}function ni(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ni.prototype.clear=f4,ni.prototype.delete=h4,ni.prototype.get=m4,ni.prototype.has=w4,ni.prototype.set=b4;function C4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(o4(t[A][0],e))return A;return-1}var E4=Array.prototype,U4=E4.splice;function F4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():U4.call(e,A,1),--this.size,!0}function N4(t){var e=this.__data__,A=Cc(e,t);return A<0?void 0:e[A][1]}function Q4(t){return Cc(this.__data__,t)>-1}function S4(t,e){var A=this.__data__,r=Cc(A,t);return r<0?(++this.size,A.push([t,e])):A[r][1]=e,this}function qi(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}qi.prototype.clear=C4,qi.prototype.delete=F4,qi.prototype.get=N4,qi.prototype.has=Q4,qi.prototype.set=S4;var T4=lm(qh,"Map");const x4=T4;function R4(){this.size=0,this.__data__={hash:new ni,map:new(x4||qi),string:new ni}}function I4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ec(t,e){var A=t.__data__;return I4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function V4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function M4(t){return Ec(this,t).get(t)}function L4(t){return Ec(this,t).has(t)}function O4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,this}function ai(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ai.prototype.clear=R4,ai.prototype.delete=V4,ai.prototype.get=M4,ai.prototype.has=L4,ai.prototype.set=O4;var k4="Expected a function";function Ad(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(k4);var A=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=A.cache;if(a.has(n))return a.get(n);var i=t.apply(this,r);return A.cache=a.set(n,i)||a,i};return A.cache=new(Ad.Cache||ai),A}Ad.Cache=ai;var H4=500;function D4(t){var e=Ad(t,function(r){return A.size===H4&&A.clear(),r}),A=e.cache;return e}var P4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W4=/\\(\\)?/g,_4=D4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(P4,function(A,r,n,a){e.push(n?a.replace(W4,"$1"):r||A)}),e});const Z4=_4;function j4(t){return t==null?"":im(t)}function J4(t,e){return ed(t)?t:c4(t,e)?[t]:Z4(j4(t))}var K4=1/0;function G4(t){if(typeof t=="string"||$h(t))return t;var e=t+"";return e=="0"&&1/t==-K4?"-0":e}function z4(t,e){e=J4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[G4(e[A++])];return A&&A==r?t:void 0}function Y4(t,e,A){var r=t==null?void 0:z4(t,e);return r===void 0?A:r}function X4(t){for(var e=-1,A=t==null?0:t.length,r={};++e<A;){var n=t[e];r[n[0]]=n[1]}return r}const q4=t=>t===void 0,rd=t=>typeof t=="boolean",ii=t=>typeof t=="number",$4=t=>typeof Element>"u"?!1:t instanceof Element,eN=t=>Ts(t)?!Number.isNaN(Number(t)):!1;var cm;const $i=typeof window<"u",tN=t=>typeof t=="string",AN=()=>{};$i&&((cm=window==null?void 0:window.navigator)!=null&&cm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nd(t){return typeof t=="function"?t():h.unref(t)}function rN(t){return t}function ad(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function nN(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function aN(t,e,A={}){const{immediate:r=!0}=A,n=h.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function o(){n.value=!1,i()}function s(...l){i(),n.value=!0,a=setTimeout(()=>{n.value=!1,a=null,t(...l)},nd(e))}return r&&(n.value=!0,$i&&s()),ad(o),{isPending:h.readonly(n),start:s,stop:o}}function um(t){var e;const A=nd(t);return(e=A==null?void 0:A.$el)!=null?e:A}const fm=$i?window:void 0;function iN(...t){let e,A,r,n;if(tN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=fm):[e,A,r,n]=t,!e)return AN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,f)=>(u.addEventListener(d,g,f),()=>u.removeEventListener(d,g,f)),s=h.watch(()=>[um(e),nd(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(f=>o(u,g,f,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ad(l),l}function oN(t,e=!1){const A=h.ref(),r=()=>A.value=!!t();return r(),nN(r,e),A}const hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dm="__vueuse_ssr_handlers__";hm[dm]=hm[dm]||{};var pm=Object.getOwnPropertySymbols,sN=Object.prototype.hasOwnProperty,lN=Object.prototype.propertyIsEnumerable,cN=(t,e)=>{var A={};for(var r in t)sN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&pm)for(var r of pm(t))e.indexOf(r)<0&&lN.call(t,r)&&(A[r]=t[r]);return A};function uN(t,e,A={}){const r=A,{window:n=fm}=r,a=cN(r,["window"]);let i;const o=oN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=h.watch(()=>um(t),d=>{s(),o.value&&n&&d&&(i=new ResizeObserver(e),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return ad(u),{isSupported:o,stop:u}}var gm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(gm||(gm={}));var fN=Object.defineProperty,mm=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,vm=(t,e,A)=>e in t?fN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,pN=(t,e)=>{for(var A in e||(e={}))hN.call(e,A)&&vm(t,A,e[A]);if(mm)for(var A of mm(e))dN.call(e,A)&&vm(t,A,e[A]);return t};pN({linear:rN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Bm={current:0},wm=h.ref(0),ym=2e3,bm=Symbol("elZIndexContextKey"),Cm=Symbol("zIndexContextKey"),gN=t=>{const e=h.getCurrentInstance()?h.inject(bm,Bm):Bm,A=t||(h.getCurrentInstance()?h.inject(Cm,void 0):void 0),r=h.computed(()=>{const i=h.unref(A);return ii(i)?i:ym}),n=h.computed(()=>r.value+wm.value),a=()=>(e.current++,wm.value=e.current,n.value);return!$i&&h.inject(bm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var mN={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const vN=t=>(e,A)=>BN(e,A,h.unref(t)),BN=(t,e,A)=>Y4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),wN=t=>{const e=h.computed(()=>h.unref(t).name),A=h.isRef(t)?t:h.ref(t);return{lang:e,locale:A,t:vN(t)}},Em=Symbol("localeContextKey"),yN=t=>{const e=t||h.inject(Em,h.ref());return wN(h.computed(()=>e.value||mN))},Um="__epPropKey",Fr=t=>t,bN=t=>em(t)&&!!t[Um],Fm=(t,e)=>{if(!em(t)||bN(t))return t;const{values:A,required:r,default:n,type:a,validator:i}=t,s={type:a,required:!!r,validator:A||i?l=>{let u=!1,d=[];if(A&&(d=Array.from(A),Xh(t,"default")&&d.push(n),u||(u=d.includes(l))),i&&(u||(u=i(l))),!u&&d.length>0){const g=[...new Set(d)].map(f=>JSON.stringify(f)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Um]:!0};return Xh(t,"default")&&(s.default=n),s},Is=t=>X4(Object.entries(t).map(([e,A])=>[e,Fm(A,e)])),CN=Fm({type:String,values:["","default","small","large"],required:!1}),EN=Symbol("size"),UN=Symbol("emptyValuesContextKey"),FN=Is({emptyValues:Array,valueOnClear:{type:Fr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Nm=t=>Object.keys(t),Uc=h.ref();function Qm(t,e=void 0){const A=h.getCurrentInstance()?h.inject(q2,Uc):Uc;return t?h.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function NN(t,e){const A=Qm(),r=Yh(t,h.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=yN(h.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=gN(h.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||ym})),i=h.computed(()=>{var o;return h.unref(e)||((o=A.value)==null?void 0:o.size)||""});return Sm(h.computed(()=>h.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const Sm=(t,e,A=!1)=>{var r;const n=!!h.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?h.provide:void 0;if(!i)return;const o=h.computed(()=>{const s=h.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i(q2,o),i(Em,h.computed(()=>o.value.locale)),i($2,h.computed(()=>o.value.namespace)),i(Cm,h.computed(()=>o.value.zIndex)),i(EN,{size:h.computed(()=>o.value.size||"")}),i(UN,h.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Nm(t),...Nm(e)])],r={};for(const n of A)r[n]=e[n]!==void 0?e[n]:t[n];return r};var id=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A};function od(t,e="px"){if(!t)return"";if(ii(t)||eN(t))return`${t}${e}`;if(Ts(t))return t}function Vq(t,e){}const Tm=(t,e)=>{if(t.install=A=>{for(const r of[t,...Object.values(e??{})])A.component(r.name,r)},e)for(const[A,r]of Object.entries(e))t[A]=r;return t},SN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Fr([Number,String])},color:{type:String}}),xN=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),RN=h.defineComponent({...xN,props:TN,setup(t){const e=t,A=Yh("icon"),r=h.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:q4(n)?void 0:od(n),"--color":a}});return(n,a)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(A).b(),style:h.unref(r)},n.$attrs),[h.renderSlot(n.$slots,"default")],16))}});var IN=id(RN,[["__file","icon.vue"]]);const xm=Tm(IN);/*! Element Plus Icons Vue v2.3.2 */var VN=h.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Rm=VN,MN=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),LN=MN,ON=h.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),sd=ON,kN=h.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Im=kN,HN=h.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Vm=HN;const DN=Fr([String,Object,Function]),PN={Close:LN,SuccessFilled:Im,InfoFilled:sd,WarningFilled:Vm,CircleCloseFilled:Rm},Mm={primary:sd,success:Im,warning:Vm,error:Rm,info:sd},WN=t=>t,_N={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ZN=Is({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Fr([String,Object,Array])},offset:{type:Fr(Array),default:[0,0]},badgeClass:{type:String}}),jN=h.defineComponent({name:"ElBadge"}),JN=h.defineComponent({...jN,props:ZN,setup(t,{expose:e}){const A=t,r=Yh("badge"),n=h.computed(()=>A.isDot?"":ii(A.value)&&ii(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=h.computed(()=>{var i,o,s,l,u;return[{backgroundColor:A.color,marginRight:od(-((o=(i=A.offset)==null?void 0:i[0])!=null?o:0)),marginTop:od((l=(s=A.offset)==null?void 0:s[1])!=null?l:0)},(u=A.badgeStyle)!=null?u:{}]});return e({content:n}),(i,o)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(r).b())},[h.renderSlot(i.$slots,"default"),h.createVNode(h.Transition,{name:`${h.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("sup",{class:h.normalizeClass([h.unref(r).e("content"),h.unref(r).em("content",i.type),h.unref(r).is("fixed",!!i.$slots.default),h.unref(r).is("dot",i.isDot),h.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:h.normalizeStyle(h.unref(a))},[h.renderSlot(i.$slots,"content",{value:h.unref(n)},()=>[h.createTextVNode(h.toDisplayString(h.unref(n)),1)])],6),[[h.vShow,!i.hidden&&(h.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var KN=id(JN,[["__file","badge.vue"]]);const GN=Tm(KN);var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const zN=Is({a11y:{type:Boolean,default:!0},locale:{type:Fr(Object)},size:CN,button:{type:Fr(Object)},card:{type:Fr(Object)},dialog:{type:Fr(Object)},link:{type:Fr(Object)},experimentalFeatures:{type:Fr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Fr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...FN}),nr={placement:"top"};h.defineComponent({name:"ElConfigProvider",props:zN,setup(t,{slots:e}){const A=Sm(t);return h.watch(()=>t.message,r=>{var n,a;Object.assign(nr,(a=(n=A==null?void 0:A.value)==null?void 0:n.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>h.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Lm=["primary","success","info","warning","error"],Om=["top","top-left","top-right","bottom","bottom-left","bottom-right"],to="top",ar=WN({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:$i?document.body:void 0}),YN=Is({customClass:{type:String,default:ar.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ar.dangerouslyUseHTMLString},duration:{type:Number,default:ar.duration},icon:{type:DN,default:ar.icon},id:{type:String,default:ar.id},message:{type:Fr([String,Object,Function]),default:ar.message},onClose:{type:Fr(Function),default:ar.onClose},showClose:{type:Boolean,default:ar.showClose},type:{type:String,values:Lm,default:ar.type},plain:{type:Boolean,default:ar.plain},offset:{type:Number,default:ar.offset},placement:{type:String,values:Om,default:ar.placement},zIndex:{type:Number,default:ar.zIndex},grouping:{type:Boolean,default:ar.grouping},repeatNum:{type:Number,default:ar.repeatNum}}),XN={destroy:()=>!0},fn=h.shallowReactive({}),qN=t=>(fn[t]||(fn[t]=h.shallowReactive([])),fn[t]),$N=(t,e)=>{const A=fn[e]||[],r=A.findIndex(i=>i.id===t),n=A[r];let a;return r>0&&(a=A[r-1]),{current:n,prev:a}},e3=(t,e)=>{const{prev:A}=$N(t,e);return A?A.vm.exposed.bottom.value:0},t3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,A3=h.defineComponent({name:"ElMessage"}),r3=h.defineComponent({...A3,props:YN,emits:XN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=PN,a=h.ref(!1),{ns:i,zIndex:o}=NN("message"),{currentZIndex:s,nextZIndex:l}=o,u=h.ref(),d=h.ref(!1),g=h.ref(0);let f;const w=h.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),v=h.computed(()=>{const F=r.type;return{[i.bm("icon",F)]:F&&Mm[F]}}),C=h.computed(()=>r.icon||Mm[r.type]||""),B=h.computed(()=>r.placement||to),y=h.computed(()=>e3(r.id,B.value)),U=h.computed(()=>t3(r.id,r.offset,B.value)+y.value),Q=h.computed(()=>g.value+U.value),I=h.computed(()=>B.value.includes("left")?i.is("left"):B.value.includes("right")?i.is("right"):i.is("center")),V=h.computed(()=>B.value.startsWith("top")?"top":"bottom"),R=h.computed(()=>({[V.value]:`${U.value}px`,zIndex:s.value}));function L(){r.duration!==0&&({stop:f}=aN(()=>{P()},r.duration))}function D(){f==null||f()}function P(){d.value=!1,h.nextTick(()=>{var F;a.value||((F=r.onClose)==null||F.call(r),A("destroy"))})}function S({code:F}){F===_N.esc&&P()}return h.onMounted(()=>{L(),l(),d.value=!0}),h.watch(()=>r.repeatNum,()=>{D(),L()}),iN(document,"keydown",S),uN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:Q,close:P}),(F,O)=>(h.openBlock(),h.createBlock(h.Transition,{name:h.unref(i).b("fade"),onBeforeEnter:W=>a.value=!0,onBeforeLeave:F.onClose,onAfterLeave:W=>F.$emit("destroy"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:u,class:h.normalizeClass([h.unref(i).b(),{[h.unref(i).m(F.type)]:F.type},h.unref(i).is("closable",F.showClose),h.unref(i).is("plain",F.plain),h.unref(i).is("bottom",h.unref(V)==="bottom"),h.unref(I),F.customClass]),style:h.normalizeStyle(h.unref(R)),role:"alert",onMouseenter:D,onMouseleave:L},[F.repeatNum>1?(h.openBlock(),h.createBlock(h.unref(GN),{key:0,value:F.repeatNum,type:h.unref(w),class:h.normalizeClass(h.unref(i).e("badge"))},null,8,["value","type","class"])):h.createCommentVNode("v-if",!0),h.unref(C)?(h.openBlock(),h.createBlock(h.unref(xm),{key:1,class:h.normalizeClass([h.unref(i).e("icon"),h.unref(v)])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(C))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),h.createElementVNode("p",{class:h.normalizeClass(h.unref(i).e("content")),innerHTML:F.message},null,10,["innerHTML"])],2112)):(h.openBlock(),h.createElementBlock("p",{key:0,class:h.normalizeClass(h.unref(i).e("content"))},h.toDisplayString(F.message),3))]),F.showClose?(h.openBlock(),h.createBlock(h.unref(xm),{key:2,class:h.normalizeClass(h.unref(i).e("closeBtn")),onClick:h.withModifiers(P,["stop"])},{default:h.withCtx(()=>[h.createVNode(h.unref(n))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0)],46,["id"]),[[h.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var n3=id(r3,[["__file","message.vue"]]);let a3=1;const i3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Ts(t.appendTo)){let A=document.querySelector(t.appendTo);$4(A)||(A=document.body),t.appendTo=A}},o3=t=>{!t.placement&&Ts(nr.placement)&&nr.placement&&(t.placement=nr.placement),t.placement||(t.placement=to),Om.includes(t.placement)||(`${t.placement}${to}`,t.placement=to)},km=t=>{const e=!t||Ts(t)||h.isVNode(t)||bc(t)?{message:t}:t,A={...ar,...e};return i3(A),o3(A),rd(nr.grouping)&&!A.grouping&&(A.grouping=nr.grouping),ii(nr.duration)&&A.duration===3e3&&(A.duration=nr.duration),ii(nr.offset)&&A.offset===16&&(A.offset=nr.offset),rd(nr.showClose)&&!A.showClose&&(A.showClose=nr.showClose),rd(nr.plain)&&!A.plain&&(A.plain=nr.plain),A},s3=t=>{const e=t.props.placement||to,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},l3=({appendTo:t,...e},A)=>{const r=`message_${a3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),s3(u)},onDestroy:()=>{h.render(null,a)}},o=h.createVNode(n3,i,bc(i.message)||h.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||oi._context,h.render(o,a),t.appendChild(a.firstElementChild);const s=o.component,u={id:r,vnode:o,vm:s,handler:{close:()=>{s.exposed.close()}},props:o.component.props};return u},oi=(t={},e)=>{if(!$i)return{close:()=>{}};const A=km(t),r=qN(A.placement||to);if(A.grouping&&r.length){const a=r.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===A.message});if(a)return a.props.repeatNum+=1,a.props.type=A.type,a.handler}if(ii(nr.max)&&r.length>=nr.max)return{close:()=>{}};const n=l3(A,e);return r.push(n),n.handler};Lm.forEach(t=>{oi[t]=(e={},A)=>{const r=km(e);return oi({...r,type:t},A)}});function c3(t){for(const e in fn)if(Xh(fn,e)){const A=[...fn[e]];for(const r of A)(!t||t===r.props.type)&&r.handler.close()}}function u3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}oi.closeAll=c3,oi.closeAllByPlacement=u3,oi._context=null;const Vs=SN(oi,"$message"),Mq="",jA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},f3={class:"property-item"},h3={key:0,class:"label"},d3=["innerHTML"],p3={key:4,class:"file-input-container"},g3=["disabled"],m3={key:1},v3=["accept"],B3=["type","min","max","step"],cd=jA({__name:"PropertyItem",props:{label:String,modelValue:[String,Number,Boolean],type:{type:String,default:"text"},options:{type:Array,default:()=>[]},min:Number,max:Number,step:Number,accept:String,desc:String,multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change","rotationChange"],setup(t,{emit:e}){const A=t,r=e,n=h.ref(null),a=h.ref(!1),i=h.ref(null),o=h.ref(null),s=h.inject("config",{}),l=(B="")=>{var y,U;return((U=(y=A.options)==null?void 0:y.find(Q=>(Q==null?void 0:Q.value)==B))==null?void 0:U.value)??" "},u=h.computed({get:()=>{const B=A.modelValue;if(A.type==="select"){if(!A.multiple)return l(B);if(typeof B=="string"){let y=l(B);return y=y&&y.trim()?[y]:[],y}return Array.isArray(B)?B.map(U=>l(U)):[]}return B},set:B=>{A.type==="select"&&A.multiple?Array.isArray(B)&&B.length===1?r("update:modelValue",B[0]):Array.isArray(B)&&B.length>1?r("update:modelValue",B):r("update:modelValue",""):r("update:modelValue",B)}}),d=B=>{r("change",B),A.label==="旋转角度"&&typeof B=="number"&&r("rotationChange",B)},g=h.computed({get:()=>u.value?typeof u.value=="object"&&u.value.fileSrc?u.value.fileSrc.startsWith("http://")||u.value.fileSrc.startsWith("https://")?u.value.fileSrc:u.value.fileSrc.startsWith("data:")?u.value.fileName||"已选择的图片":u.value.fileName||u.value.fileSrc:typeof u.value=="string"&&u.value.startsWith("data:")?"已选择的图片":u.value:"",set:B=>{u.value=B}}),f=()=>{n.value&&!a.value&&n.value.click()},w=B=>{const y=B.target.value.trim();y?y.startsWith("http://")||y.startsWith("https://")||y.startsWith("data:")?u.value=y:y.startsWith("data:")||(u.value=y):u.value=""},v=async B=>{var I;const y=B.target.files[0];if(!y)return;if(A.accept&&!y.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const U=(I=s==null?void 0:s.image)==null?void 0:I.request;if(!U||typeof U!="function"){handleFileAsBase64(y);return}o.value=y;let Q=null;try{a.value=!0,Q=U(y),i.value=Q;const V=await Q;if(i.value===Q&&o.value===y)if(V&&V.success!==!1){let L=V.url||V.data||V;try{const P=await C(y);P&&(L=P)}catch{}const D={fileName:y.name,fileSrc:L,uploadResult:V};r("update:modelValue",D),r("change",B),Vs.success("图片上传成功")}else throw new Error((V==null?void 0:V.message)||"上传失败")}catch(V){i.value===Q&&o.value===y&&(n.value&&(n.value.value=""),Vs.error(V.message||"上传失败,请重试"))}finally{i.value===Q&&(a.value=!1,i.value=null,o.value=null)}},C=B=>new Promise((y,U)=>{const I=B.size>5242880;if(B.type.startsWith("image/"))if(I){const V=new Image,R=document.createElement("canvas"),L=R.getContext("2d"),D=setTimeout(()=>{U(new Error("转换超时"))},8e3);V.onload=()=>{clearTimeout(D);try{let{width:F,height:O}=V;if(F>1920||O>1920){const j=Math.min(1920/F,1920/O);F=Math.floor(F*j),O=Math.floor(O*j)}R.width=F,R.height=O,L.drawImage(V,0,0,F,O);const W=R.toDataURL("image/jpeg",.8);y(W)}catch(S){U(S)}finally{URL.revokeObjectURL(V.src)}},V.onerror=()=>{clearTimeout(D),U(new Error("图片加载失败"))};const P=URL.createObjectURL(B);V.src=P}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}});return h.onUnmounted(()=>{i.value=null,o.value=null}),(B,y)=>{const U=h.resolveComponent("el-icon-question-filled"),Q=h.resolveComponent("el-icon"),I=h.resolveComponent("el-tooltip"),V=h.resolveComponent("el-option"),R=h.resolveComponent("el-select"),L=h.resolveComponent("el-icon-loading");return h.openBlock(),h.createElementBlock("div",f3,[t.label?(h.openBlock(),h.createElementBlock("label",h3,[h.createTextVNode(h.toDisplayString(t.label)+" ",1),t.desc?(h.openBlock(),h.createBlock(I,{key:0,placement:"top","show-arrow":!0},{content:h.withCtx(()=>[h.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,d3)]),default:h.withCtx(()=>[h.createVNode(Q,{class:"help-icon"},{default:h.withCtx(()=>[h.createVNode(U)]),_:1})]),_:1})):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),t.type==="select"?(h.openBlock(),h.createBlock(R,{key:1,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=D=>u.value=D),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",onChange:d},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,D=>(h.openBlock(),h.createBlock(V,{key:D.value,label:D.label,value:D.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:2,"onUpdate:modelValue":y[1]||(y[1]=D=>u.value=D),type:"color"},null,512)),[[h.vModelText,u.value]]):t.type==="checkbox"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:3,"onUpdate:modelValue":y[2]||(y[2]=D=>u.value=D),type:"checkbox"},null,512)),[[h.vModelCheckbox,u.value]]):t.type==="file"?(h.openBlock(),h.createElementBlock("div",p3,[h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":y[3]||(y[3]=D=>g.value=D),placeholder:"请选择图片",class:"file-url-input",onInput:w,disabled:""},null,544),[[h.vModelText,g.value]]),h.createElementVNode("button",{type:"button",onClick:f,class:"file-select-btn",disabled:a.value},[a.value?(h.openBlock(),h.createBlock(Q,{key:0,class:"is-loading"},{default:h.withCtx(()=>[h.createVNode(L)]),_:1})):(h.openBlock(),h.createElementBlock("span",m3,h.toDisplayString(a.value?"上传中...":"选择"),1))],8,g3),h.createElementVNode("input",{type:"file",accept:t.accept,onChange:v,ref_key:"fileInput",ref:n,class:"file-input"},null,40,v3)])):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:5,"onUpdate:modelValue":y[4]||(y[4]=D=>u.value=D),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:y[5]||(y[5]=h.withModifiers(()=>{},["prevent"]))},null,40,B3)),[[h.vModelDynamic,u.value]])])}}},[["__scopeId","data-v-f3073ca9"]]),Oq="",w3={class:"property-layout-container"},y3={key:0,class:"property-item-wrapper full-width"},b3={key:1,class:"property-item-wrapper half-width"},C3={key:2,class:"property-item-wrapper default-width"},Ao=jA({__name:"BasePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},panelType:{type:String,default:"base",validator:t=>["text","barcode","qrcode","image","rectangle","line"].includes(t)},options:{type:Object,default:()=>({})}},emits:["update:modelValue","rotationChange"],setup(t,{emit:e}){const A=t,r=e,{propsConfig:n,panelType:a}=h.toRefs(A),i=h.computed(()=>`${a.value}-property-panel`),o=h.computed(()=>{const f=n.value.propertyPanel;return f&&typeof f=="object"&&!Array.isArray(f)?Object.keys(f).map(w=>({prop:w,...f[w]})).filter(w=>!w.hide):Array.isArray(f)?f.filter(w=>!w.hide)||[]:[]}),s=h.computed({get:()=>A.modelValue,set:f=>r("update:modelValue",f)}),l=h.computed(()=>o.value.filter(f=>!f.showIf||s.value[f.showIf])),u=f=>{var v;if(f.options)return f.options||[];const w=JSON.parse(JSON.stringify(((v=A.options)==null?void 0:v[f==null?void 0:f.optionsKey])||[]))||[];return f!=null&&f.multiple||w.unshift({label:"无",value:" "}),w},d=f=>f.layout?f.layout:["text","file","textarea"].includes(f.type)?"full":"half",g=f=>{r("rotationChange",f)};return h.provide("config",A.propsConfig),(f,w)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(i.value)},[h.createElementVNode("div",w3,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.value,v=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:v.prop},[d(v)==="full"?(h.openBlock(),h.createElementBlock("div",y3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):d(v)==="half"?(h.openBlock(),h.createElementBlock("div",b3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(h.openBlock(),h.createElementBlock("div",C3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-862479af"]]),E3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(h.openBlock(),h.createBlock(Ao,{"model-value":t.modelValue,"props-config":t.propsConfig,options:t.options,"panel-type":"text","onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},U3={},F3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function N3(t,e){return h.openBlock(),h.createElementBlock("svg",F3,[...e[0]||(e[0]=[h.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"2603"},null,-1),h.createElementVNode("path",{d:"M798.88 96H257.12C177.088 96 112 161.088 112 241.12v541.76C112 862.928 177.088 928 257.12 928h541.76c80.032 0 145.12-65.088 145.12-145.12V241.12C944 161.088 878.912 96 798.88 96z m87.104 686.88a87.2 87.2 0 0 1-87.104 87.104H257.12a87.2 87.2 0 0 1-87.104-87.104V241.12a87.2 87.2 0 0 1 87.104-87.104h541.76a87.2 87.2 0 0 1 87.104 87.104v541.76z","p-id":"2604"},null,-1),h.createElementVNode("path",{d:"M686.304 710.336H369.696a29.04 29.04 0 0 0-29.216 28.832c0 15.904 13.104 28.832 29.216 28.832h316.608a29.04 29.04 0 0 0 29.2-28.832c0-15.904-13.088-28.832-29.2-28.832zM722.784 256H333.216A29.04 29.04 0 0 0 304 284.832v76.96c0 15.904 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.216-28.832v-48.048h136.384V640.64c0 15.92 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.2-28.832V313.76h136.384v48.048c0 15.904 13.088 28.832 29.216 28.832A29.04 29.04 0 0 0 752 361.792v-76.96c0.08-15.904-13.008-28.832-29.2-28.832z","p-id":"2605"},null,-1)])])}const Q3=jA(U3,[["render",N3]]);var ud={},Fc={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});function S3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){S3(this,t),this.data=e,this.text=A.text||e,this.options=A};vr.default=T3,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.CODE39=void 0;var x3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),R3=vr,I3=V3(R3);function V3(t){return t&&t.__esModule?t:{default:t}}function M3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function O3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var k3=function(t){O3(e,t);function e(A,r){return M3(this,e),A=A.toUpperCase(),r.mod43&&(A+=P3(W3(A))),L3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return x3(e,[{key:"encode",value:function(){for(var r=fd("*"),n=0;n<this.data.length;n++)r+=fd(this.data[n])+"0";return r+=fd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(I3.default),Hm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],H3=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function fd(t){return D3(Dm(t))}function D3(t){return H3[t].toString(2)}function P3(t){return Hm[t]}function Dm(t){return Hm.indexOf(t)}function W3(t){for(var e=0,A=0;A<t.length;A++)e+=Dm(t[A]);return e=e%43,e}Fc.CODE39=k3;var In={},hd={},ro={},aA={};Object.defineProperty(aA,"__esModule",{value:!0});var Ms;function dd(t,e,A){return e in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Pm=aA.SET_A=0,Wm=aA.SET_B=1,_m=aA.SET_C=2;aA.SHIFT=98;var _3=aA.START_A=103,Z3=aA.START_B=104,j3=aA.START_C=105;aA.MODULO=103,aA.STOP=106,aA.FNC1=207,aA.SET_BY_CODE=(Ms={},dd(Ms,_3,Pm),dd(Ms,Z3,Wm),dd(Ms,j3,_m),Ms),aA.SWAP={101:Pm,100:Wm,99:_m},aA.A_START_CHAR=String.fromCharCode(208),aA.B_START_CHAR=String.fromCharCode(209),aA.C_START_CHAR=String.fromCharCode(210),aA.A_CHARS="[\0-_È-Ï]",aA.B_CHARS="[ -È-Ï]",aA.C_CHARS="(Ï*[0-9]{2}Ï*)",aA.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(ro,"__esModule",{value:!0});var J3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),K3=vr,G3=z3(K3),kr=aA;function z3(t){return t&&t.__esModule?t:{default:t}}function Y3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function q3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $3=function(t){q3(e,t);function e(A,r){Y3(this,e);var n=X3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.substring(1),r));return n.bytes=A.split("").map(function(a){return a.charCodeAt(0)}),n}return J3(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,n=r.shift()-105,a=kr.SET_BY_CODE[n];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(kr.FNC1);var i=e.next(r,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+i.result+e.getBar((i.checksum+n)%kr.MODULO)+e.getBar(kr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return kr.BARS[r]?kr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,n){if(n===kr.SET_A){var a=r.shift();return a<32?a+64:a-32}else return n===kr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,n,a){if(!r.length)return{result:"",checksum:0};var i=void 0,o=void 0;if(r[0]>=200){o=r.shift()-105;var s=kr.SWAP[o];s!==void 0?i=e.next(r,n+1,s):((a===kr.SET_A||a===kr.SET_B)&&o===kr.SHIFT&&(r[0]=a===kr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),i=e.next(r,n+1,a))}else o=e.correctIndex(r,a),i=e.next(r,n+1,a);var l=e.getBar(o),u=o*n;return{result:l+i.result,checksum:u+i.checksum}}}]),e}(G3.default);ro.default=$3;var pd={};Object.defineProperty(pd,"__esModule",{value:!0});var ma=aA,Zm=function(e){return e.match(new RegExp("^"+ma.A_CHARS+"*"))[0].length},jm=function(e){return e.match(new RegExp("^"+ma.B_CHARS+"*"))[0].length},Jm=function(e){return e.match(new RegExp("^"+ma.C_CHARS+"*"))[0]};function gd(t,e){var A=e?ma.A_CHARS:ma.B_CHARS,r=t.match(new RegExp("^("+A+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Km(t.substring(r[1].length));var n=t.match(new RegExp("^"+A+"+"))[0];return n.length===t.length?t:n+String.fromCharCode(e?205:206)+gd(t.substring(n.length),!e)}function Km(t){var e=Jm(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=Zm(t)>=jm(t);return e+String.fromCharCode(r?206:205)+gd(t,r)}pd.default=function(t){var e=void 0,A=Jm(t).length;if(A>=2)e=ma.C_START_CHAR+Km(t);else{var r=Zm(t)>jm(t);e=(r?ma.A_START_CHAR:ma.B_START_CHAR)+gd(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,a){return String.fromCharCode(203)+a})},Object.defineProperty(hd,"__esModule",{value:!0});var eQ=ro,tQ=Gm(eQ),AQ=pd,rQ=Gm(AQ);function Gm(t){return t&&t.__esModule?t:{default:t}}function nQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function aQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var iQ=function(t){aQ(e,t);function e(A,r){if(nQ(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,rQ.default)(A),r));else var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return md(n)}return e}(tQ.default);hd.default=iQ;var vd={};Object.defineProperty(vd,"__esModule",{value:!0});var oQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),sQ=ro,lQ=cQ(sQ),zm=aA;function cQ(t){return t&&t.__esModule?t:{default:t}}function uQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function hQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var dQ=function(t){hQ(e,t);function e(A,r){return uQ(this,e),fQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,zm.A_START_CHAR+A,r))}return oQ(e,[{key:"valid",value:function(){return new RegExp("^"+zm.A_CHARS+"+$").test(this.data)}}]),e}(lQ.default);vd.default=dQ;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var pQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),gQ=ro,mQ=vQ(gQ),Ym=aA;function vQ(t){return t&&t.__esModule?t:{default:t}}function BQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bQ=function(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.B_START_CHAR+A,r))}return pQ(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.B_CHARS+"+$").test(this.data)}}]),e}(mQ.default);Bd.default=bQ;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var CQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),EQ=ro,UQ=FQ(EQ),Xm=aA;function FQ(t){return t&&t.__esModule?t:{default:t}}function NQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function SQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TQ=function(t){SQ(e,t);function e(A,r){return NQ(this,e),QQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.C_START_CHAR+A,r))}return CQ(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.C_CHARS+"+$").test(this.data)}}]),e}(UQ.default);wd.default=TQ,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var xQ=hd,RQ=Nc(xQ),IQ=vd,VQ=Nc(IQ),MQ=Bd,LQ=Nc(MQ),OQ=wd,kQ=Nc(OQ);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=RQ.default,In.CODE128A=VQ.default,In.CODE128B=LQ.default,In.CODE128C=kQ.default;var Nr={},yd={},zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.SIDE_BIN="101",zr.MIDDLE_BIN="01010",zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zr.EAN2_STRUCTURE=["LL","LG","GL","GG"],zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Qc={},si={};Object.defineProperty(si,"__esModule",{value:!0});var HQ=zr,DQ=function(e,A,r){var n=e.split("").map(function(i,o){return HQ.BINARIES[A[o]]}).map(function(i,o){return i?i[e[o]]:""});if(r){var a=e.length-1;n=n.map(function(i,o){return o<a?i+r:i})}return n.join("")};si.default=DQ,Object.defineProperty(Qc,"__esModule",{value:!0});var PQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),no=zr,WQ=si,qm=$m(WQ),_Q=vr,ZQ=$m(_Q);function $m(t){return t&&t.__esModule?t:{default:t}}function jQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function KQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var GQ=function(t){KQ(e,t);function e(A,r){jQ(this,e);var n=JQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return PQ(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,n){return this.text.substr(r,n)}},{key:"leftEncode",value:function(r,n){return(0,qm.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,qm.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:no.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:no.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:no.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[no.SIDE_BIN,this.leftEncode(),no.MIDDLE_BIN,this.rightEncode(),no.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(ZQ.default);Qc.default=GQ,Object.defineProperty(yd,"__esModule",{value:!0});var zQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Ls=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},YQ=zr,XQ=Qc,qQ=$Q(XQ);function $Q(t){return t&&t.__esModule?t:{default:t}}function eS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function AS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ev=function(e){var A=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*3:r+n},0);return(10-A%10)%10},rS=function(t){AS(e,t);function e(A,r){eS(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=ev(A));var n=tS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return zQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===ev(this.data)}},{key:"leftText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),n=YQ.EAN13_STRUCTURE[this.data[0]];return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,n)}},{key:"rightText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}(qQ.default);yd.default=rS;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var nS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Sc=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},aS=Qc,iS=oS(aS);function oS(t){return t&&t.__esModule?t:{default:t}}function sS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var tv=function(e){var A=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n:r+n*3},0);return(10-A%10)%10},uS=function(t){cS(e,t);function e(A,r){return sS(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=tv(A)),lS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return nS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===tv(this.data)}},{key:"leftText",value:function(){return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(iS.default);bd.default=uS;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var fS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),hS=zr,dS=si,pS=Av(dS),gS=vr,mS=Av(gS);function Av(t){return t&&t.__esModule?t:{default:t}}function vS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var yS=function(e){var A=e.split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*9:r+n*3},0);return A%10},bS=function(t){wS(e,t);function e(A,r){return vS(this,e),BS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return fS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=hS.EAN5_STRUCTURE[yS(this.data)];return{data:"1011"+(0,pS.default)(this.data,r,"01"),text:this.text}}}]),e}(mS.default);Cd.default=bS;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var CS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),ES=zr,US=si,FS=rv(US),NS=vr,QS=rv(NS);function rv(t){return t&&t.__esModule?t:{default:t}}function SS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var RS=function(t){xS(e,t);function e(A,r){return SS(this,e),TS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return CS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=ES.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,FS.default)(this.data,r,"01"),text:this.text}}}]),e}(QS.default);Ed.default=RS;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var IS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();Os.checksum=Ud;var VS=si,ao=nv(VS),MS=vr,LS=nv(MS);function nv(t){return t&&t.__esModule?t:{default:t}}function OS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function HS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var DS=function(t){HS(e,t);function e(A,r){OS(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Ud(A));var n=kS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return IS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Ud(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,ao.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,ao.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,ao.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,ao.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,ao.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,ao.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(LS.default);function Ud(t){var e=0,A;for(A=1;A<11;A+=2)e+=parseInt(t[A]);for(A=0;A<11;A+=2)e+=parseInt(t[A])*3;return(10-e%10)%10}Os.default=DS;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var PS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),WS=si,_S=av(WS),ZS=vr,jS=av(ZS),JS=Os;function av(t){return t&&t.__esModule?t:{default:t}}function KS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function GS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zS=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],YS=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],XS=function(t){GS(e,t);function e(A,r){KS(this,e);var n=Nd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));if(n.isValid=!1,A.search(/^[0-9]{6}$/)!==-1)n.middleDigits=A,n.upcA=iv(A,"0"),n.text=r.text||""+n.upcA[0]+A+n.upcA[n.upcA.length-1],n.isValid=!0;else if(A.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=A.substring(1,A.length-1),n.upcA=iv(n.middleDigits,A[0]),n.upcA[n.upcA.length-1]===A[A.length-1])n.isValid=!0;else return Nd(n);else return Nd(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return PS(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],n=this.upcA[this.upcA.length-1],a=YS[parseInt(n)][parseInt(r)];return(0,_S.default)(this.middleDigits,a)}}]),e}(jS.default);function iv(t,e){for(var A=parseInt(t[t.length-1]),r=zS[A],n="",a=0,i=0;i<r.length;i++){var o=r[i];o==="X"?n+=t[a++]:n+=o}return n=""+e+n,""+n+(0,JS.checksum)(n)}Fd.default=XS,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.UPCE=Nr.UPC=Nr.EAN2=Nr.EAN5=Nr.EAN8=Nr.EAN13=void 0;var qS=yd,$S=io(qS),eT=bd,tT=io(eT),AT=Cd,rT=io(AT),nT=Ed,aT=io(nT),iT=Os,oT=io(iT),sT=Fd,lT=io(sT);function io(t){return t&&t.__esModule?t:{default:t}}Nr.EAN13=$S.default,Nr.EAN8=tT.default,Nr.EAN5=rT.default,Nr.EAN2=aT.default,Nr.UPC=oT.default,Nr.UPCE=lT.default;var oo={},Tc={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.START_BIN="1010",ks.END_BIN="11101",ks.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Tc,"__esModule",{value:!0});var cT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),xc=ks,uT=vr,fT=hT(uT);function hT(t){return t&&t.__esModule?t:{default:t}}function dT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mT=function(t){gT(e,t);function e(){return dT(this,e),pT(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return cT(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,n=this.data.match(/.{2}/g).map(function(a){return r.encodePair(a)}).join("");return{data:xc.START_BIN+n+xc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=xc.BINARIES[r[1]];return xc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(fT.default);Tc.default=mT;var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});var vT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),BT=Tc,wT=yT(BT);function yT(t){return t&&t.__esModule?t:{default:t}}function bT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ET(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ov=function(e){var A=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,n,a){return r+n*(3-a%2*2)},0);return Math.ceil(A/10)*10-A},UT=function(t){ET(e,t);function e(A,r){return bT(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=ov(A)),CT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return vT(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ov(this.data)}}]),e}(wT.default);Qd.default=UT,Object.defineProperty(oo,"__esModule",{value:!0}),oo.ITF14=oo.ITF=void 0;var FT=Tc,NT=sv(FT),QT=Qd,ST=sv(QT);function sv(t){return t&&t.__esModule?t:{default:t}}oo.ITF=NT.default,oo.ITF14=ST.default;var Yr={},li={};Object.defineProperty(li,"__esModule",{value:!0});var TT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),xT=vr,RT=IT(xT);function IT(t){return t&&t.__esModule?t:{default:t}}function VT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function LT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var OT=function(t){LT(e,t);function e(A,r){return VT(this,e),MT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return TT(e,[{key:"encode",value:function(){for(var r="110",n=0;n<this.data.length;n++){var a=parseInt(this.data[n]),i=a.toString(2);i=kT(i,4-i.length);for(var o=0;o<i.length;o++)r+=i[o]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(RT.default);function kT(t,e){for(var A=0;A<e;A++)t="0"+t;return t}li.default=OT;var Sd={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.mod10=HT,ci.mod11=DT;function HT(t){for(var e=0,A=0;A<t.length;A++){var r=parseInt(t[A]);(A+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function DT(t){for(var e=0,A=[2,3,4,5,6,7],r=0;r<t.length;r++){var n=parseInt(t[t.length-1-r]);e+=A[r%A.length]*n}return(11-e%11)%11}Object.defineProperty(Sd,"__esModule",{value:!0});var PT=li,WT=ZT(PT),_T=ci;function ZT(t){return t&&t.__esModule?t:{default:t}}function jT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function KT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var GT=function(t){KT(e,t);function e(A,r){return jT(this,e),JT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,_T.mod10)(A),r))}return e}(WT.default);Sd.default=GT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var zT=li,YT=qT(zT),XT=ci;function qT(t){return t&&t.__esModule?t:{default:t}}function $T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ex(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function tx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ax=function(t){tx(e,t);function e(A,r){return $T(this,e),ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,XT.mod11)(A),r))}return e}(YT.default);Td.default=Ax;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var rx=li,nx=ax(rx),lv=ci;function ax(t){return t&&t.__esModule?t:{default:t}}function ix(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ox(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function sx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lx=function(t){sx(e,t);function e(A,r){return ix(this,e),A+=(0,lv.mod10)(A),A+=(0,lv.mod10)(A),ox(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(nx.default);xd.default=lx;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var cx=li,ux=fx(cx),cv=ci;function fx(t){return t&&t.__esModule?t:{default:t}}function hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function px(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gx=function(t){px(e,t);function e(A,r){return hx(this,e),A+=(0,cv.mod11)(A),A+=(0,cv.mod10)(A),dx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(ux.default);Rd.default=gx,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var mx=li,vx=Hs(mx),Bx=Sd,wx=Hs(Bx),yx=Td,bx=Hs(yx),Cx=xd,Ex=Hs(Cx),Ux=Rd,Fx=Hs(Ux);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=vx.default,Yr.MSI10=wx.default,Yr.MSI11=bx.default,Yr.MSI1010=Ex.default,Yr.MSI1110=Fx.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var Nx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Qx=vr,Sx=Tx(Qx);function Tx(t){return t&&t.__esModule?t:{default:t}}function xx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ix(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Vx=function(t){Ix(e,t);function e(A,r){xx(this,e);var n=Rx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return Nx(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(Sx.default);Rc.pharmacode=Vx;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var Mx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Lx=vr,Ox=kx(Lx);function kx(t){return t&&t.__esModule?t:{default:t}}function Hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Px(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Wx=function(t){Px(e,t);function e(A,r){Hx(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=Dx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return Mx(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(Ox.default);Ic.codabar=Wx;var so={},Vc={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Ds.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Ds.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]},Object.defineProperty(Vc,"__esModule",{value:!0});var _x=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Mc=Ds,Zx=vr,jx=Jx(Zx);function Jx(t){return t&&t.__esModule?t:{default:t}}function Kx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Yx=function(t){zx(e,t);function e(A,r){return Kx(this,e),Gx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return _x(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(o){return Mc.MULTI_SYMBOLS[o]||o}),n=r.map(function(o){return e.getEncoding(o)}).join(""),a=e.checksum(r,20),i=e.checksum(r.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(r){return Mc.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Mc.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Mc.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,n){var a=r.slice().reverse().reduce(function(i,o,s){var l=s%n+1;return i+e.symbolValue(o)*l},0);return e.getSymbol(a%47)}}]),e}(jx.default);Vc.default=Yx;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var Xx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),qx=Vc,$x=eR(qx);function eR(t){return t&&t.__esModule?t:{default:t}}function tR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var nR=function(t){rR(e,t);function e(A,r){return tR(this,e),AR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Xx(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}($x.default);Id.default=nR,Object.defineProperty(so,"__esModule",{value:!0}),so.CODE93FullASCII=so.CODE93=void 0;var aR=Vc,iR=uv(aR),oR=Id,sR=uv(oR);function uv(t){return t&&t.__esModule?t:{default:t}}so.CODE93=iR.default,so.CODE93FullASCII=sR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var lR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),cR=vr,uR=fR(cR);function fR(t){return t&&t.__esModule?t:{default:t}}function hR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function pR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gR=function(t){pR(e,t);function e(A,r){return hR(this,e),dR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return lR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(uR.default);Lc.GenericBarcode=gR,Object.defineProperty(ud,"__esModule",{value:!0});var mR=Fc,Oc=In,lo=Nr,fv=oo,Ps=Yr,vR=Rc,BR=Ic,hv=so,wR=Lc;ud.default={CODE39:mR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:lo.EAN13,EAN8:lo.EAN8,EAN5:lo.EAN5,EAN2:lo.EAN2,UPC:lo.UPC,UPCE:lo.UPCE,ITF14:fv.ITF14,ITF:fv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:vR.pharmacode,codabar:BR.codabar,CODE93:hv.CODE93,CODE93FullASCII:hv.CODE93FullASCII,GenericBarcode:wR.GenericBarcode};var co={};Object.defineProperty(co,"__esModule",{value:!0});var yR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t};co.default=function(t,e){return yR({},t,e)};var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=bR;function bR(t){var e=[];function A(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)A(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return A(t),e}var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=CR;function CR(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Ld={},Od={},kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=ER;function ER(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var A in e)e.hasOwnProperty(A)&&(A=e[A],typeof t[A]=="string"&&(t[A]=parseInt(t[A],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var UR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Hc.default=UR,Object.defineProperty(Od,"__esModule",{value:!0});var FR=kc,NR=pv(FR),QR=Hc,dv=pv(QR);function pv(t){return t&&t.__esModule?t:{default:t}}function SR(t){var e={};for(var A in dv.default)dv.default.hasOwnProperty(A)&&(t.hasAttribute("jsbarcode-"+A.toLowerCase())&&(e[A]=t.getAttribute("jsbarcode-"+A.toLowerCase())),t.hasAttribute("data-"+A.toLowerCase())&&(e[A]=t.getAttribute("data-"+A.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,NR.default)(e),e}Od.default=SR;var kd={},Hd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=co,xR=RR(TR);function RR(t){return t&&t.__esModule?t:{default:t}}function gv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function mv(t,e,A){if(A.displayValue&&e<t){if(A.textAlign=="center")return Math.floor((t-e)/2);if(A.textAlign=="left")return 0;if(A.textAlign=="right")return Math.floor(t-e)}return 0}function IR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,xR.default)(e,n.options),i;a.displayValue?i=LR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=gv(n,a),n.barcodePadding=mv(i,o,a)}}function VR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function MR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function LR(t,e,A){var r;if(A)r=A;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n=r.measureText(t);if(!n)return 0;var a=n.width;return a}Hr.getMaximumHeightOfEncodings=MR,Hr.getEncodingHeight=gv,Hr.getBarcodePadding=mv,Hr.calculateEncodingAttributes=IR,Hr.getTotalWidthOfEncodings=VR,Object.defineProperty(Hd,"__esModule",{value:!0});var OR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),kR=co,HR=DR(kR),Dd=Hr;function DR(t){return t&&t.__esModule?t:{default:t}}function PR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var WR=function(){function t(e,A,r){PR(this,t),this.canvas=e,this.encodings=A,this.options=r}return OR(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var A=0;A<this.encodings.length;A++){var r=(0,HR.default)(this.options,this.encodings[A].options);this.drawCanvasBarcode(r,this.encodings[A]),this.drawCanvasText(r,this.encodings[A]),this.moveCanvasDrawing(this.encodings[A])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var A=this.canvas.getContext("2d");A.save(),(0,Dd.calculateEncodingAttributes)(this.encodings,this.options,A);var r=(0,Dd.getTotalWidthOfEncodings)(this.encodings),n=(0,Dd.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,A.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(A.fillStyle=this.options.background,A.fillRect(0,0,this.canvas.width,this.canvas.height)),A.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(A,r){var n=this.canvas.getContext("2d"),a=r.data,i;A.textPosition=="top"?i=A.marginTop+A.fontSize+A.textMargin:i=A.marginTop,n.fillStyle=A.lineColor;for(var o=0;o<a.length;o++){var s=o*A.width+r.barcodePadding;a[o]==="1"?n.fillRect(s,i,A.width,A.height):a[o]&&n.fillRect(s,i,A.width,A.height*a[o])}}},{key:"drawCanvasText",value:function(A,r){var n=this.canvas.getContext("2d"),a=A.fontOptions+" "+A.fontSize+"px "+A.font;if(A.displayValue){var i,o;A.textPosition=="top"?o=A.marginTop+A.fontSize-A.textMargin:o=A.height+A.textMargin+A.marginTop+A.fontSize,n.font=a,A.textAlign=="left"||r.barcodePadding>0?(i=0,n.textAlign="left"):A.textAlign=="right"?(i=r.width-1,n.textAlign="right"):(i=r.width/2,n.textAlign="center"),n.fillText(r.text,i,o)}}},{key:"moveCanvasDrawing",value:function(A){var r=this.canvas.getContext("2d");r.translate(A.width,0)}},{key:"restoreCanvas",value:function(){var A=this.canvas.getContext("2d");A.restore()}}]),t}();Hd.default=WR;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var _R=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),ZR=co,jR=JR(ZR),Wd=Hr;function JR(t){return t&&t.__esModule?t:{default:t}}function KR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",GR=function(){function t(e,A,r){KR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return _R(t,[{key:"render",value:function(){var A=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,jR.default)(this.options,n.options),i=this.createGroup(A,a.marginTop,this.svg);this.setGroupOptions(i,a),this.drawSvgBarcode(i,a,n),this.drawSVGText(i,a,n),A+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Wd.calculateEncodingAttributes)(this.encodings,this.options);var A=(0,Wd.getTotalWidthOfEncodings)(this.encodings),r=(0,Wd.getMaximumHeightOfEncodings)(this.encodings),n=A+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,r),this.options.background&&this.drawRect(0,0,n,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(A,r,n){var a=n.data,i;r.textPosition=="top"?i=r.fontSize+r.textMargin:i=0;for(var o=0,s=0,l=0;l<a.length;l++)s=l*r.width+n.barcodePadding,a[l]==="1"?o++:o>0&&(this.drawRect(s-r.width*o,i,r.width*o,r.height,A),o=0);o>0&&this.drawRect(s-r.width*(o-1),i,r.width*o,r.height,A)}},{key:"drawSVGText",value:function(A,r,n){var a=this.document.createElementNS(Dc,"text");if(r.displayValue){var i,o;a.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?o=r.fontSize-r.textMargin:o=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||n.barcodePadding>0?(i=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(i=n.width-1,a.setAttribute("text-anchor","end")):(i=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",i),a.setAttribute("y",o),a.appendChild(this.document.createTextNode(n.text)),A.appendChild(a)}}},{key:"setSvgAttributes",value:function(A,r){var n=this.svg;n.setAttribute("width",A+"px"),n.setAttribute("height",r+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+A+" "+r),n.setAttribute("xmlns",Dc),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(A,r,n){var a=this.document.createElementNS(Dc,"g");return a.setAttribute("transform","translate("+A+", "+r+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(A,r){A.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(A,r,n,a,i){var o=this.document.createElementNS(Dc,"rect");return o.setAttribute("x",A),o.setAttribute("y",r),o.setAttribute("width",n),o.setAttribute("height",a),i.appendChild(o),o}}]),t}();Pd.default=GR;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});var zR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function YR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var XR=function(){function t(e,A,r){YR(this,t),this.object=e,this.encodings=A,this.options=r}return zR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();_d.default=XR,Object.defineProperty(kd,"__esModule",{value:!0});var qR=Hd,$R=Zd(qR),eI=Pd,tI=Zd(eI),AI=_d,rI=Zd(AI);function Zd(t){return t&&t.__esModule?t:{default:t}}kd.default={CanvasRenderer:$R.default,SVGRenderer:tI.default,ObjectRenderer:rI.default};var uo={};Object.defineProperty(uo,"__esModule",{value:!0});function jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Kd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var nI=function(t){Kd(e,t);function e(A,r){jd(this,e);var n=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidInputException",n.symbology=A,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return e}(Error),aI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="InvalidElementException",A.message="Not supported type to render on",A}return e}(Error),iI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="NoElementException",A.message="No element to render on.",A}return e}(Error);uo.InvalidInputException=nI,uo.InvalidElementException=aI,uo.NoElementException=iI,Object.defineProperty(Ld,"__esModule",{value:!0});var oI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sI=Od,Gd=vv(sI),lI=kd,Ws=vv(lI),cI=uo;function vv(t){return t&&t.__esModule?t:{default:t}}function zd(t){if(typeof t=="string")return uI(t);if(Array.isArray(t)){for(var e=[],A=0;A<t.length;A++)e.push(zd(t[A]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return fI(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Ws.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":oI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new cI.InvalidElementException}}function uI(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var A=[],r=0;r<e.length;r++)A.push(zd(e[r]));return A}}function fI(t){var e=document.createElement("canvas");return{element:e,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Ld.default=zd;var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});var hI=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function dI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var pI=function(){function t(e){dI(this,t),this.api=e}return hI(t,[{key:"handleCatch",value:function(A){if(A.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw A.message;else throw A;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(A){try{var r=A.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(n){return this.handleCatch(n),this.api}}}]),t}();Yd.default=pI;var gI=ud,ui=va(gI),mI=co,_s=va(mI),vI=Vd,Bv=va(vI),BI=Md,wv=va(BI),wI=Ld,yI=va(wI),bI=kc,CI=va(bI),EI=Yd,UI=va(EI),yv=uo,FI=Hc,bv=va(FI);function va(t){return t&&t.__esModule?t:{default:t}}var Gn=function(){},Pc=function(e,A,r){var n=new Gn;if(typeof e>"u")throw Error("No element to render on was provided.");return n._renderProperties=(0,yI.default)(e),n._encodings=[],n._options=bv.default,n._errorHandler=new UI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Uv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return ui.default[t]};for(var Cv in ui.default)ui.default.hasOwnProperty(Cv)&&NI(ui.default,Cv);function NI(t,e){Gn.prototype[e]=Gn.prototype[e.toUpperCase()]=Gn.prototype[e.toLowerCase()]=function(A,r){var n=this;return n._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var a=(0,_s.default)(n._options,r);a=(0,CI.default)(a);var i=t[e],o=Ev(A,i,a);return n._encodings.push(o),n})}}function Ev(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new yv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,Bv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Uv(){return ui.default.CODE128?"CODE128":Object.keys(ui.default)[0]}Gn.prototype.options=function(t){return this._options=(0,_s.default)(this._options,t),this},Gn.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},Gn.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var A=(0,_s.default)(this._options,t.options);A.format=="auto"&&(A.format=Uv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=ui.default[A.format.toUpperCase()],a=Ev(r,n,A);Xd(t,a,A)})}}},Gn.prototype.render=function(){if(!this._renderProperties)throw new yv.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)Xd(this._renderProperties[t],this._encodings,this._options);else Xd(this._renderProperties,this._encodings,this._options);return this},Gn.prototype._defaults=bv.default;function Xd(t,e,A){e=(0,Bv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,wv.default)(e[r].options);(0,wv.default)(A);var n=t.renderer,a=new n(t.element,e,A);a.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Pc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var A=[];return jQuery(this).each(function(){A.push(this)}),Pc(A,t,e)});var QI=Pc;const qd=ld(QI),Hq="",SI={__name:"BarcodeComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Ss(A,r),i=h.ref(null);h.computed(()=>A.modelValue.__selected||!1);const o=h.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,f)=>{let w;return function(...C){const B=()=>{clearTimeout(w),g(...C)};clearTimeout(w),w=setTimeout(B,f)}},l=h.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var U,Q,I,V,R,L,D,P,S,F,O,W,j,z,q,Y;if(!i.value)return;const g=di((Q=(U=A.propsConfig)==null?void 0:U.barcode)==null?void 0:Q.propertyPanel)||{};let f=((I=A.modelValue)==null?void 0:I.BarcodeValue)||g.BarcodeValue||"";if(!f&&((V=A.modelValue)!=null&&V.FieldName))if(Array.isArray(A.modelValue.FieldName)){const Ae=A.modelValue.FieldName.map(ee=>{var ce,N,H,J;return((J=(H=(N=(ce=A.modelValue)==null?void 0:ce.options)==null?void 0:N.fields)==null?void 0:H.find(G=>G.value==ee))==null?void 0:J.label)||ee}).filter(ee=>ee);if(Ae.length>0){const ee=A.modelValue.FieldConnector||" ";f=Ae.join(ee)}}else f=((P=(D=(L=(R=A.modelValue)==null?void 0:R.options)==null?void 0:L.fields)==null?void 0:D.find(Ae=>{var ee;return Ae.value==((ee=A.modelValue)==null?void 0:ee.FieldName)}))==null?void 0:P.label)||((S=A.modelValue)==null?void 0:S.FieldName)||"";const w=((F=A.modelValue)==null?void 0:F.CodeType)||g.CodeType||"",v=A.modelValue.LineColor||g.LineColor,C=((Y=(q=(z=(j=(W=(O=A.propsConfig)==null?void 0:O.barcode)==null?void 0:W.propertyPanel)==null?void 0:j.find(Ae=>Ae.prop==="CodeType"))==null?void 0:z.options)==null?void 0:q.find(Ae=>Ae.value===w))==null?void 0:Y.compValue)||"",B={value:f,type:w,lineColor:v,codeType:C};if(JSON.stringify(B)!==JSON.stringify(l.value)){l.value=B;try{const Ae=i.value;Ae.innerHTML="",qd(Ae,f,{format:C,width:2,displayValue:!1,margin:0,lineColor:v,height:50,background:"transparent"}),h.nextTick(()=>{if(Ae){const ee=Ae.getBBox();if(ee.width>0&&ee.height>0){const ce=`${ee.x} ${ee.y} ${ee.width} ${ee.height}`;Ae.setAttribute("viewBox",ce),Ae.style.width="100%",Ae.style.height="100%",Ae.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return h.onMounted(()=>{u(),a(),n()}),h.watch(()=>A.modelValue,()=>d(),{deep:!0}),h.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,f)=>(h.openBlock(),h.createElementBlock("div",{class:"barcode-component",style:h.normalizeStyle(o.value)},[(h.openBlock(),h.createElementBlock("svg",{ref_key:"barcodeRef",ref:i,width:"100%",height:"100%",preserveAspectRatio:"none",style:{width:"100%",height:"100%"}},null,512))],4))}},TI={__name:"BarcodePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(h.openBlock(),h.createBlock(Ao,{"model-value":t.modelValue,"props-config":t.propsConfig,"panel-type":"barcode",options:t.options,"onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},xI={},RI={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function II(t,e){return h.openBlock(),h.createElementBlock("svg",RI,[...e[0]||(e[0]=[h.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"1785"},null,-1),h.createElementVNode("path",{d:"M388.592 912H195.92C150.24 912 112 871.696 112 823.44V642.848c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 17.92 13.408 32.336 30.288 32.336h192.16c15.408 0 26.832 11.952 26.832 28.368 0 15.424-11.424 27.856-26.32 27.856z m439.456 0h-192.16c-15.408 0-26.816-11.936-26.816-28.352 0-15.92 11.408-28.368 26.8-28.368h192.176c16.88 0 30.288-13.92 30.288-32.32V642.336c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 48.752-38.24 89.056-83.92 89.056zM138.816 409.504c-15.392 0-26.816-11.936-26.816-28.352V201.056C112 152.8 150.24 112.48 195.92 112.48h192.16c15.408 0 26.832 11.936 26.832 28.352 0 15.92-11.424 28.368-26.816 28.368H195.92c-16.88 0-30.288 15.92-30.288 34.32V384.16c0 13.44-11.424 25.36-26.816 25.36zM885.184 409.52c-15.392 0-26.816-11.952-26.816-28.368V201.056c0-17.92-13.408-32.336-30.288-32.336h-192.16c-15.408 0-26.832-11.936-26.832-28.368 0-15.92 11.424-28.352 26.816-28.352h192.176C873.76 112 912 152.304 912 200.56v180.592c0 16.416-13.408 28.368-26.816 28.368zM755.2 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM672 698c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6v372zM608 326v372c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6zM560 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM512 698c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6v372zM336 698c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6v372zM256 326v372c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6zM400 698c0 3.6 2.56 6 6.4 6h64c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-64c-3.84 0-6.4 2.4-6.4 6v372z","p-id":"1786"},null,-1)])])}const VI=jA(xI,[["render",II]]),Ba=t=>t*3.7795275591,fo=t=>t/3.7795275591;var wa={},MI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Fv={},Dr={};let $d;const LI=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Dr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Dr.getSymbolTotalCodewords=function(e){return LI[e]},Dr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},Dr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');$d=e},Dr.isKanjiModeEnabled=function(){return typeof $d<"u"},Dr.toSJIS=function(e){return $d(e)};var Wc={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(A){if(typeof A!="string")throw new Error("Param is not a string");switch(A.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+A)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})(Wc);function Nv(){this.buffer=[],this.length=0}Nv.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let A=0;A<e;A++)this.putBit((t>>>e-A-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var OI=Nv;function Zs(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Zs.prototype.set=function(t,e,A,r){const n=t*this.size+e;this.data[n]=A,r&&(this.reservedBit[n]=!0)},Zs.prototype.get=function(t,e){return this.data[t*this.size+e]},Zs.prototype.xor=function(t,e,A){this.data[t*this.size+e]^=A},Zs.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var kI=Zs,Qv={};(function(t){const e=Dr.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,a=e(r),i=a===145?26:Math.ceil((a-13)/(2*n-2))*2,o=[a-7];for(let s=1;s<n-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},t.getPositions=function(r){const n=[],a=t.getRowColCoords(r),i=a.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||n.push([a[o],a[s]]);return n}})(Qv);var Sv={};const HI=Dr.getSymbolSize,Tv=7;Sv.getPositions=function(e){const A=HI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var xv={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const a=n.size;let i=0,o=0,s=0,l=null,u=null;for(let d=0;d<a;d++){o=s=0,l=u=null;for(let g=0;g<a;g++){let f=n.get(d,g);f===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=f,o=1),f=n.get(g,d),f===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=f,s=1)}o>=5&&(i+=e.N1+(o-5)),s>=5&&(i+=e.N1+(s-5))}return i},t.getPenaltyN2=function(n){const a=n.size;let i=0;for(let o=0;o<a-1;o++)for(let s=0;s<a-1;s++){const l=n.get(o,s)+n.get(o,s+1)+n.get(o+1,s)+n.get(o+1,s+1);(l===4||l===0)&&i++}return i*e.N2},t.getPenaltyN3=function(n){const a=n.size;let i=0,o=0,s=0;for(let l=0;l<a;l++){o=s=0;for(let u=0;u<a;u++)o=o<<1&2047|n.get(l,u),u>=10&&(o===1488||o===93)&&i++,s=s<<1&2047|n.get(u,l),u>=10&&(s===1488||s===93)&&i++}return i*e.N3},t.getPenaltyN4=function(n){let a=0;const i=n.data.length;for(let s=0;s<i;s++)a+=n.data[s];return Math.abs(Math.ceil(a*100/i/5)-10)*e.N4};function A(r,n,a){switch(r){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,a){const i=a.size;for(let o=0;o<i;o++)for(let s=0;s<i;s++)a.isReserved(s,o)||a.xor(s,o,A(n,s,o))},t.getBestMask=function(n,a){const i=Object.keys(t.Patterns).length;let o=0,s=1/0;for(let l=0;l<i;l++){a(l),t.applyMask(l,n);const u=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(l,n),u<s&&(s=u,o=l)}return o}})(xv);var _c={};const ya=Wc,Zc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],jc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];_c.getBlocksCount=function(e,A){switch(A){case ya.L:return Zc[(e-1)*4+0];case ya.M:return Zc[(e-1)*4+1];case ya.Q:return Zc[(e-1)*4+2];case ya.H:return Zc[(e-1)*4+3];default:return}},_c.getTotalCodewordsCount=function(e,A){switch(A){case ya.L:return jc[(e-1)*4+0];case ya.M:return jc[(e-1)*4+1];case ya.Q:return jc[(e-1)*4+2];case ya.H:return jc[(e-1)*4+3];default:return}};var Rv={},Jc={};const js=new Uint8Array(512),Kc=new Uint8Array(256);(function(){let e=1;for(let A=0;A<255;A++)js[A]=e,Kc[e]=A,e<<=1,e&256&&(e^=285);for(let A=255;A<512;A++)js[A]=js[A-255]})(),Jc.log=function(e){if(e<1)throw new Error("log("+e+")");return Kc[e]},Jc.exp=function(e){return js[e]},Jc.mul=function(e,A){return e===0||A===0?0:js[Kc[e]+Kc[A]]},function(t){const e=Jc;t.mul=function(r,n){const a=new Uint8Array(r.length+n.length-1);for(let i=0;i<r.length;i++)for(let o=0;o<n.length;o++)a[i+o]^=e.mul(r[i],n[o]);return a},t.mod=function(r,n){let a=new Uint8Array(r);for(;a.length-n.length>=0;){const i=a[0];for(let s=0;s<n.length;s++)a[s]^=e.mul(n[s],i);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let a=0;a<r;a++)n=t.mul(n,new Uint8Array([1,e.exp(a)]));return n}}(Rv);const Iv=Rv;function e0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}e0.prototype.initialize=function(e){this.degree=e,this.genPoly=Iv.generateECPolynomial(this.degree)},e0.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const A=new Uint8Array(e.length+this.degree);A.set(e);const r=Iv.mod(A,this.genPoly),n=this.degree-r.length;if(n>0){const a=new Uint8Array(this.degree);return a.set(r,n),a}return r};var DI=e0,Vv={},ba={},t0={};t0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Mv="[0-9]+",PI="[A-Z $%*+\\-./:]+";let Js="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Js=Js.replace(/u/g,"\\u");const WI="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const CF=Object.prototype.hasOwnProperty,Xh=(t,e)=>CF.call(t,e),bc=t=>typeof t=="function",Ts=t=>typeof t=="string",em=t=>t!==null&&typeof t=="object";var EF=typeof global=="object"&&global&&global.Object===Object&&global;const UF=EF;var FF=typeof self=="object"&&self&&self.Object===Object&&self,NF=UF||FF||Function("return this")();const qh=NF;var QF=qh.Symbol;const Xi=QF;var tm=Object.prototype,SF=tm.hasOwnProperty,TF=tm.toString,xs=Xi?Xi.toStringTag:void 0;function xF(t){var e=SF.call(t,xs),A=t[xs];try{t[xs]=void 0;var r=!0}catch{}var n=TF.call(t);return r&&(e?t[xs]=A:delete t[xs]),n}var RF=Object.prototype,IF=RF.toString;function VF(t){return IF.call(t)}var MF="[object Null]",LF="[object Undefined]",Am=Xi?Xi.toStringTag:void 0;function rm(t){return t==null?t===void 0?LF:MF:Am&&Am in Object(t)?xF(t):VF(t)}function OF(t){return t!=null&&typeof t=="object"}var kF="[object Symbol]";function $h(t){return typeof t=="symbol"||OF(t)&&rm(t)==kF}function HF(t,e){for(var A=-1,r=t==null?0:t.length,n=Array(r);++A<r;)n[A]=e(t[A],A,t);return n}var DF=Array.isArray;const ed=DF;var PF=1/0,nm=Xi?Xi.prototype:void 0,am=nm?nm.toString:void 0;function im(t){if(typeof t=="string")return t;if(ed(t))return HF(t,im)+"";if($h(t))return am?am.call(t):"";var e=t+"";return e=="0"&&1/t==-PF?"-0":e}function om(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var WF="[object AsyncFunction]",_F="[object Function]",ZF="[object GeneratorFunction]",jF="[object Proxy]";function JF(t){if(!om(t))return!1;var e=rm(t);return e==_F||e==ZF||e==WF||e==jF}var KF=qh["__core-js_shared__"];const td=KF;var sm=function(){var t=/[^.]+$/.exec(td&&td.keys&&td.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function GF(t){return!!sm&&sm in t}var zF=Function.prototype,YF=zF.toString;function XF(t){if(t!=null){try{return YF.call(t)}catch{}try{return t+""}catch{}}return""}var qF=/[\\^$.*+?()[\]{}|]/g,$F=/^\[object .+?Constructor\]$/,e4=Function.prototype,t4=Object.prototype,A4=e4.toString,r4=t4.hasOwnProperty,n4=RegExp("^"+A4.call(r4).replace(qF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a4(t){if(!om(t)||GF(t))return!1;var e=JF(t)?n4:$F;return e.test(XF(t))}function i4(t,e){return t==null?void 0:t[e]}function lm(t,e){var A=i4(t,e);return a4(A)?A:void 0}function o4(t,e){return t===e||t!==t&&e!==e}var s4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l4=/^\w*$/;function c4(t,e){if(ed(t))return!1;var A=typeof t;return A=="number"||A=="symbol"||A=="boolean"||t==null||$h(t)?!0:l4.test(t)||!s4.test(t)||e!=null&&t in Object(e)}var u4=lm(Object,"create");const Rs=u4;function f4(){this.__data__=Rs?Rs(null):{},this.size=0}function h4(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var d4="__lodash_hash_undefined__",p4=Object.prototype,g4=p4.hasOwnProperty;function m4(t){var e=this.__data__;if(Rs){var A=e[t];return A===d4?void 0:A}return g4.call(e,t)?e[t]:void 0}var v4=Object.prototype,B4=v4.hasOwnProperty;function w4(t){var e=this.__data__;return Rs?e[t]!==void 0:B4.call(e,t)}var y4="__lodash_hash_undefined__";function b4(t,e){var A=this.__data__;return this.size+=this.has(t)?0:1,A[t]=Rs&&e===void 0?y4:e,this}function ni(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ni.prototype.clear=f4,ni.prototype.delete=h4,ni.prototype.get=m4,ni.prototype.has=w4,ni.prototype.set=b4;function C4(){this.__data__=[],this.size=0}function Cc(t,e){for(var A=t.length;A--;)if(o4(t[A][0],e))return A;return-1}var E4=Array.prototype,U4=E4.splice;function F4(t){var e=this.__data__,A=Cc(e,t);if(A<0)return!1;var r=e.length-1;return A==r?e.pop():U4.call(e,A,1),--this.size,!0}function N4(t){var e=this.__data__,A=Cc(e,t);return A<0?void 0:e[A][1]}function Q4(t){return Cc(this.__data__,t)>-1}function S4(t,e){var A=this.__data__,r=Cc(A,t);return r<0?(++this.size,A.push([t,e])):A[r][1]=e,this}function qi(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}qi.prototype.clear=C4,qi.prototype.delete=F4,qi.prototype.get=N4,qi.prototype.has=Q4,qi.prototype.set=S4;var T4=lm(qh,"Map");const x4=T4;function R4(){this.size=0,this.__data__={hash:new ni,map:new(x4||qi),string:new ni}}function I4(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ec(t,e){var A=t.__data__;return I4(e)?A[typeof e=="string"?"string":"hash"]:A.map}function V4(t){var e=Ec(this,t).delete(t);return this.size-=e?1:0,e}function M4(t){return Ec(this,t).get(t)}function L4(t){return Ec(this,t).has(t)}function O4(t,e){var A=Ec(this,t),r=A.size;return A.set(t,e),this.size+=A.size==r?0:1,this}function ai(t){var e=-1,A=t==null?0:t.length;for(this.clear();++e<A;){var r=t[e];this.set(r[0],r[1])}}ai.prototype.clear=R4,ai.prototype.delete=V4,ai.prototype.get=M4,ai.prototype.has=L4,ai.prototype.set=O4;var k4="Expected a function";function Ad(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(k4);var A=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=A.cache;if(a.has(n))return a.get(n);var i=t.apply(this,r);return A.cache=a.set(n,i)||a,i};return A.cache=new(Ad.Cache||ai),A}Ad.Cache=ai;var H4=500;function D4(t){var e=Ad(t,function(r){return A.size===H4&&A.clear(),r}),A=e.cache;return e}var P4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W4=/\\(\\)?/g,_4=D4(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(P4,function(A,r,n,a){e.push(n?a.replace(W4,"$1"):r||A)}),e});const Z4=_4;function j4(t){return t==null?"":im(t)}function J4(t,e){return ed(t)?t:c4(t,e)?[t]:Z4(j4(t))}var K4=1/0;function G4(t){if(typeof t=="string"||$h(t))return t;var e=t+"";return e=="0"&&1/t==-K4?"-0":e}function z4(t,e){e=J4(e,t);for(var A=0,r=e.length;t!=null&&A<r;)t=t[G4(e[A++])];return A&&A==r?t:void 0}function Y4(t,e,A){var r=t==null?void 0:z4(t,e);return r===void 0?A:r}function X4(t){for(var e=-1,A=t==null?0:t.length,r={};++e<A;){var n=t[e];r[n[0]]=n[1]}return r}const q4=t=>t===void 0,rd=t=>typeof t=="boolean",ii=t=>typeof t=="number",$4=t=>typeof Element>"u"?!1:t instanceof Element,eN=t=>Ts(t)?!Number.isNaN(Number(t)):!1;var cm;const $i=typeof window<"u",tN=t=>typeof t=="string",AN=()=>{};$i&&((cm=window==null?void 0:window.navigator)!=null&&cm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nd(t){return typeof t=="function"?t():h.unref(t)}function rN(t){return t}function ad(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function nN(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function aN(t,e,A={}){const{immediate:r=!0}=A,n=h.ref(!1);let a=null;function i(){a&&(clearTimeout(a),a=null)}function o(){n.value=!1,i()}function s(...l){i(),n.value=!0,a=setTimeout(()=>{n.value=!1,a=null,t(...l)},nd(e))}return r&&(n.value=!0,$i&&s()),ad(o),{isPending:h.readonly(n),start:s,stop:o}}function um(t){var e;const A=nd(t);return(e=A==null?void 0:A.$el)!=null?e:A}const fm=$i?window:void 0;function iN(...t){let e,A,r,n;if(tN(t[0])||Array.isArray(t[0])?([A,r,n]=t,e=fm):[e,A,r,n]=t,!e)return AN;Array.isArray(A)||(A=[A]),Array.isArray(r)||(r=[r]);const a=[],i=()=>{a.forEach(u=>u()),a.length=0},o=(u,d,g,f)=>(u.addEventListener(d,g,f),()=>u.removeEventListener(d,g,f)),s=h.watch(()=>[um(e),nd(n)],([u,d])=>{i(),u&&a.push(...A.flatMap(g=>r.map(f=>o(u,g,f,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),i()};return ad(l),l}function oN(t,e=!1){const A=h.ref(),r=()=>A.value=!!t();return r(),nN(r,e),A}const hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dm="__vueuse_ssr_handlers__";hm[dm]=hm[dm]||{};var pm=Object.getOwnPropertySymbols,sN=Object.prototype.hasOwnProperty,lN=Object.prototype.propertyIsEnumerable,cN=(t,e)=>{var A={};for(var r in t)sN.call(t,r)&&e.indexOf(r)<0&&(A[r]=t[r]);if(t!=null&&pm)for(var r of pm(t))e.indexOf(r)<0&&lN.call(t,r)&&(A[r]=t[r]);return A};function uN(t,e,A={}){const r=A,{window:n=fm}=r,a=cN(r,["window"]);let i;const o=oN(()=>n&&"ResizeObserver"in n),s=()=>{i&&(i.disconnect(),i=void 0)},l=h.watch(()=>um(t),d=>{s(),o.value&&n&&d&&(i=new ResizeObserver(e),i.observe(d,a))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return ad(u),{isSupported:o,stop:u}}var gm;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(gm||(gm={}));var fN=Object.defineProperty,mm=Object.getOwnPropertySymbols,hN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,vm=(t,e,A)=>e in t?fN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):t[e]=A,pN=(t,e)=>{for(var A in e||(e={}))hN.call(e,A)&&vm(t,A,e[A]);if(mm)for(var A of mm(e))dN.call(e,A)&&vm(t,A,e[A]);return t};pN({linear:rN},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Bm={current:0},wm=h.ref(0),ym=2e3,bm=Symbol("elZIndexContextKey"),Cm=Symbol("zIndexContextKey"),gN=t=>{const e=h.getCurrentInstance()?h.inject(bm,Bm):Bm,A=t||(h.getCurrentInstance()?h.inject(Cm,void 0):void 0),r=h.computed(()=>{const i=h.unref(A);return ii(i)?i:ym}),n=h.computed(()=>r.value+wm.value),a=()=>(e.current++,wm.value=e.current,n.value);return!$i&&h.inject(bm),{initialZIndex:r,currentZIndex:n,nextZIndex:a}};var mN={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const vN=t=>(e,A)=>BN(e,A,h.unref(t)),BN=(t,e,A)=>Y4(A,t,t).replace(/\{(\w+)\}/g,(r,n)=>{var a;return`${(a=e==null?void 0:e[n])!=null?a:`{${n}}`}`}),wN=t=>{const e=h.computed(()=>h.unref(t).name),A=h.isRef(t)?t:h.ref(t);return{lang:e,locale:A,t:vN(t)}},Em=Symbol("localeContextKey"),yN=t=>{const e=t||h.inject(Em,h.ref());return wN(h.computed(()=>e.value||mN))},Um="__epPropKey",Fr=t=>t,bN=t=>em(t)&&!!t[Um],Fm=(t,e)=>{if(!em(t)||bN(t))return t;const{values:A,required:r,default:n,type:a,validator:i}=t,s={type:a,required:!!r,validator:A||i?l=>{let u=!1,d=[];if(A&&(d=Array.from(A),Xh(t,"default")&&d.push(n),u||(u=d.includes(l))),i&&(u||(u=i(l))),!u&&d.length>0){const g=[...new Set(d)].map(f=>JSON.stringify(f)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[Um]:!0};return Xh(t,"default")&&(s.default=n),s},Is=t=>X4(Object.entries(t).map(([e,A])=>[e,Fm(A,e)])),CN=Fm({type:String,values:["","default","small","large"],required:!1}),EN=Symbol("size"),UN=Symbol("emptyValuesContextKey"),FN=Is({emptyValues:Array,valueOnClear:{type:Fr([String,Number,Boolean,Function]),default:void 0,validator:t=>bc(t)?!t():!t}}),Nm=t=>Object.keys(t),Uc=h.ref();function Qm(t,e=void 0){const A=h.getCurrentInstance()?h.inject(q2,Uc):Uc;return t?h.computed(()=>{var r,n;return(n=(r=A.value)==null?void 0:r[t])!=null?n:e}):A}function NN(t,e){const A=Qm(),r=Yh(t,h.computed(()=>{var o;return((o=A.value)==null?void 0:o.namespace)||yc})),n=yN(h.computed(()=>{var o;return(o=A.value)==null?void 0:o.locale})),a=gN(h.computed(()=>{var o;return((o=A.value)==null?void 0:o.zIndex)||ym})),i=h.computed(()=>{var o;return h.unref(e)||((o=A.value)==null?void 0:o.size)||""});return Sm(h.computed(()=>h.unref(A)||{})),{ns:r,locale:n,zIndex:a,size:i}}const Sm=(t,e,A=!1)=>{var r;const n=!!h.getCurrentInstance(),a=n?Qm():void 0,i=(r=e==null?void 0:e.provide)!=null?r:n?h.provide:void 0;if(!i)return;const o=h.computed(()=>{const s=h.unref(t);return a!=null&&a.value?QN(a.value,s):s});return i(q2,o),i(Em,h.computed(()=>o.value.locale)),i($2,h.computed(()=>o.value.namespace)),i(Cm,h.computed(()=>o.value.zIndex)),i(EN,{size:h.computed(()=>o.value.size||"")}),i(UN,h.computed(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(A||!Uc.value)&&(Uc.value=o.value),o},QN=(t,e)=>{const A=[...new Set([...Nm(t),...Nm(e)])],r={};for(const n of A)r[n]=e[n]!==void 0?e[n]:t[n];return r};var id=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A};function od(t,e="px"){if(!t)return"";if(ii(t)||eN(t))return`${t}${e}`;if(Ts(t))return t}function Vq(t,e){}const Tm=(t,e)=>{if(t.install=A=>{for(const r of[t,...Object.values(e??{})])A.component(r.name,r)},e)for(const[A,r]of Object.entries(e))t[A]=r;return t},SN=(t,e)=>(t.install=A=>{t._context=A._context,A.config.globalProperties[e]=t},t),TN=Is({size:{type:Fr([Number,String])},color:{type:String}}),xN=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),RN=h.defineComponent({...xN,props:TN,setup(t){const e=t,A=Yh("icon"),r=h.computed(()=>{const{size:n,color:a}=e;return!n&&!a?{}:{fontSize:q4(n)?void 0:od(n),"--color":a}});return(n,a)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(A).b(),style:h.unref(r)},n.$attrs),[h.renderSlot(n.$slots,"default")],16))}});var IN=id(RN,[["__file","icon.vue"]]);const xm=Tm(IN);/*! Element Plus Icons Vue v2.3.2 */var VN=h.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Rm=VN,MN=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),LN=MN,ON=h.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),sd=ON,kN=h.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Im=kN,HN=h.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,A)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Vm=HN;const DN=Fr([String,Object,Function]),PN={Close:LN,SuccessFilled:Im,InfoFilled:sd,WarningFilled:Vm,CircleCloseFilled:Rm},Mm={primary:sd,success:Im,warning:Vm,error:Rm,info:sd},WN=t=>t,_N={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ZN=Is({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Fr([String,Object,Array])},offset:{type:Fr(Array),default:[0,0]},badgeClass:{type:String}}),jN=h.defineComponent({name:"ElBadge"}),JN=h.defineComponent({...jN,props:ZN,setup(t,{expose:e}){const A=t,r=Yh("badge"),n=h.computed(()=>A.isDot?"":ii(A.value)&&ii(A.max)?A.max<A.value?`${A.max}+`:`${A.value}`:`${A.value}`),a=h.computed(()=>{var i,o,s,l,u;return[{backgroundColor:A.color,marginRight:od(-((o=(i=A.offset)==null?void 0:i[0])!=null?o:0)),marginTop:od((l=(s=A.offset)==null?void 0:s[1])!=null?l:0)},(u=A.badgeStyle)!=null?u:{}]});return e({content:n}),(i,o)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(r).b())},[h.renderSlot(i.$slots,"default"),h.createVNode(h.Transition,{name:`${h.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("sup",{class:h.normalizeClass([h.unref(r).e("content"),h.unref(r).em("content",i.type),h.unref(r).is("fixed",!!i.$slots.default),h.unref(r).is("dot",i.isDot),h.unref(r).is("hide-zero",!i.showZero&&A.value===0),i.badgeClass]),style:h.normalizeStyle(h.unref(a))},[h.renderSlot(i.$slots,"content",{value:h.unref(n)},()=>[h.createTextVNode(h.toDisplayString(h.unref(n)),1)])],6),[[h.vShow,!i.hidden&&(h.unref(n)||i.isDot||i.$slots.content)]])]),_:3},8,["name"])],2))}});var KN=id(JN,[["__file","badge.vue"]]);const GN=Tm(KN);var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ld(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const zN=Is({a11y:{type:Boolean,default:!0},locale:{type:Fr(Object)},size:CN,button:{type:Fr(Object)},card:{type:Fr(Object)},dialog:{type:Fr(Object)},link:{type:Fr(Object)},experimentalFeatures:{type:Fr(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Fr(Object)},zIndex:Number,namespace:{type:String,default:"el"},...FN}),nr={placement:"top"};h.defineComponent({name:"ElConfigProvider",props:zN,setup(t,{slots:e}){const A=Sm(t);return h.watch(()=>t.message,r=>{var n,a;Object.assign(nr,(a=(n=A==null?void 0:A.value)==null?void 0:n.message)!=null?a:{},r??{})},{immediate:!0,deep:!0}),()=>h.renderSlot(e,"default",{config:A==null?void 0:A.value})}});const Lm=["primary","success","info","warning","error"],Om=["top","top-left","top-right","bottom","bottom-left","bottom-right"],to="top",ar=WN({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:$i?document.body:void 0}),YN=Is({customClass:{type:String,default:ar.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ar.dangerouslyUseHTMLString},duration:{type:Number,default:ar.duration},icon:{type:DN,default:ar.icon},id:{type:String,default:ar.id},message:{type:Fr([String,Object,Function]),default:ar.message},onClose:{type:Fr(Function),default:ar.onClose},showClose:{type:Boolean,default:ar.showClose},type:{type:String,values:Lm,default:ar.type},plain:{type:Boolean,default:ar.plain},offset:{type:Number,default:ar.offset},placement:{type:String,values:Om,default:ar.placement},zIndex:{type:Number,default:ar.zIndex},grouping:{type:Boolean,default:ar.grouping},repeatNum:{type:Number,default:ar.repeatNum}}),XN={destroy:()=>!0},fn=h.shallowReactive({}),qN=t=>(fn[t]||(fn[t]=h.shallowReactive([])),fn[t]),$N=(t,e)=>{const A=fn[e]||[],r=A.findIndex(i=>i.id===t),n=A[r];let a;return r>0&&(a=A[r-1]),{current:n,prev:a}},e3=(t,e)=>{const{prev:A}=$N(t,e);return A?A.vm.exposed.bottom.value:0},t3=(t,e,A)=>(fn[A]||[]).findIndex(a=>a.id===t)>0?16:e,A3=h.defineComponent({name:"ElMessage"}),r3=h.defineComponent({...A3,props:YN,emits:XN,setup(t,{expose:e,emit:A}){const r=t,{Close:n}=PN,a=h.ref(!1),{ns:i,zIndex:o}=NN("message"),{currentZIndex:s,nextZIndex:l}=o,u=h.ref(),d=h.ref(!1),g=h.ref(0);let f;const w=h.computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),v=h.computed(()=>{const F=r.type;return{[i.bm("icon",F)]:F&&Mm[F]}}),C=h.computed(()=>r.icon||Mm[r.type]||""),B=h.computed(()=>r.placement||to),y=h.computed(()=>e3(r.id,B.value)),U=h.computed(()=>t3(r.id,r.offset,B.value)+y.value),Q=h.computed(()=>g.value+U.value),I=h.computed(()=>B.value.includes("left")?i.is("left"):B.value.includes("right")?i.is("right"):i.is("center")),V=h.computed(()=>B.value.startsWith("top")?"top":"bottom"),R=h.computed(()=>({[V.value]:`${U.value}px`,zIndex:s.value}));function L(){r.duration!==0&&({stop:f}=aN(()=>{P()},r.duration))}function D(){f==null||f()}function P(){d.value=!1,h.nextTick(()=>{var F;a.value||((F=r.onClose)==null||F.call(r),A("destroy"))})}function S({code:F}){F===_N.esc&&P()}return h.onMounted(()=>{L(),l(),d.value=!0}),h.watch(()=>r.repeatNum,()=>{D(),L()}),iN(document,"keydown",S),uN(u,()=>{g.value=u.value.getBoundingClientRect().height}),e({visible:d,bottom:Q,close:P}),(F,O)=>(h.openBlock(),h.createBlock(h.Transition,{name:h.unref(i).b("fade"),onBeforeEnter:W=>a.value=!0,onBeforeLeave:F.onClose,onAfterLeave:W=>F.$emit("destroy"),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createElementVNode("div",{id:F.id,ref_key:"messageRef",ref:u,class:h.normalizeClass([h.unref(i).b(),{[h.unref(i).m(F.type)]:F.type},h.unref(i).is("closable",F.showClose),h.unref(i).is("plain",F.plain),h.unref(i).is("bottom",h.unref(V)==="bottom"),h.unref(I),F.customClass]),style:h.normalizeStyle(h.unref(R)),role:"alert",onMouseenter:D,onMouseleave:L},[F.repeatNum>1?(h.openBlock(),h.createBlock(h.unref(GN),{key:0,value:F.repeatNum,type:h.unref(w),class:h.normalizeClass(h.unref(i).e("badge"))},null,8,["value","type","class"])):h.createCommentVNode("v-if",!0),h.unref(C)?(h.openBlock(),h.createBlock(h.unref(xm),{key:1,class:h.normalizeClass([h.unref(i).e("icon"),h.unref(v)])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(C))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.renderSlot(F.$slots,"default",{},()=>[F.dangerouslyUseHTMLString?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),h.createElementVNode("p",{class:h.normalizeClass(h.unref(i).e("content")),innerHTML:F.message},null,10,["innerHTML"])],2112)):(h.openBlock(),h.createElementBlock("p",{key:0,class:h.normalizeClass(h.unref(i).e("content"))},h.toDisplayString(F.message),3))]),F.showClose?(h.openBlock(),h.createBlock(h.unref(xm),{key:2,class:h.normalizeClass(h.unref(i).e("closeBtn")),onClick:h.withModifiers(P,["stop"])},{default:h.withCtx(()=>[h.createVNode(h.unref(n))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0)],46,["id"]),[[h.vShow,d.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var n3=id(r3,[["__file","message.vue"]]);let a3=1;const i3=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Ts(t.appendTo)){let A=document.querySelector(t.appendTo);$4(A)||(A=document.body),t.appendTo=A}},o3=t=>{!t.placement&&Ts(nr.placement)&&nr.placement&&(t.placement=nr.placement),t.placement||(t.placement=to),Om.includes(t.placement)||(`${t.placement}${to}`,t.placement=to)},km=t=>{const e=!t||Ts(t)||h.isVNode(t)||bc(t)?{message:t}:t,A={...ar,...e};return i3(A),o3(A),rd(nr.grouping)&&!A.grouping&&(A.grouping=nr.grouping),ii(nr.duration)&&A.duration===3e3&&(A.duration=nr.duration),ii(nr.offset)&&A.offset===16&&(A.offset=nr.offset),rd(nr.showClose)&&!A.showClose&&(A.showClose=nr.showClose),rd(nr.plain)&&!A.plain&&(A.plain=nr.plain),A},s3=t=>{const e=t.props.placement||to,A=fn[e],r=A.indexOf(t);if(r===-1)return;A.splice(r,1);const{handler:n}=t;n.close()},l3=({appendTo:t,...e},A)=>{const r=`message_${a3++}`,n=e.onClose,a=document.createElement("div"),i={...e,id:r,onClose:()=>{n==null||n(),s3(u)},onDestroy:()=>{h.render(null,a)}},o=h.createVNode(n3,i,bc(i.message)||h.isVNode(i.message)?{default:bc(i.message)?i.message:()=>i.message}:null);o.appContext=A||oi._context,h.render(o,a),t.appendChild(a.firstElementChild);const s=o.component,u={id:r,vnode:o,vm:s,handler:{close:()=>{s.exposed.close()}},props:o.component.props};return u},oi=(t={},e)=>{if(!$i)return{close:()=>{}};const A=km(t),r=qN(A.placement||to);if(A.grouping&&r.length){const a=r.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===A.message});if(a)return a.props.repeatNum+=1,a.props.type=A.type,a.handler}if(ii(nr.max)&&r.length>=nr.max)return{close:()=>{}};const n=l3(A,e);return r.push(n),n.handler};Lm.forEach(t=>{oi[t]=(e={},A)=>{const r=km(e);return oi({...r,type:t},A)}});function c3(t){for(const e in fn)if(Xh(fn,e)){const A=[...fn[e]];for(const r of A)(!t||t===r.props.type)&&r.handler.close()}}function u3(t){if(!fn[t])return;[...fn[t]].forEach(A=>A.handler.close())}oi.closeAll=c3,oi.closeAllByPlacement=u3,oi._context=null;const Vs=SN(oi,"$message"),Mq="",jA=(t,e)=>{const A=t.__vccOpts||t;for(const[r,n]of e)A[r]=n;return A},f3={class:"property-item"},h3={key:0,class:"label"},d3=["innerHTML"],p3={key:4,class:"file-input-container"},g3=["disabled"],m3={key:1},v3=["accept"],B3=["type","min","max","step"],cd=jA({__name:"PropertyItem",props:{label:String,modelValue:[String,Number,Boolean],type:{type:String,default:"text"},options:{type:Array,default:()=>[]},min:Number,max:Number,step:Number,accept:String,desc:String,multiple:{type:Boolean,default:!1}},emits:["update:modelValue","change","rotationChange"],setup(t,{emit:e}){const A=t,r=e,n=h.ref(null),a=h.ref(!1),i=h.ref(null),o=h.ref(null),s=h.inject("config",{}),l=(B="")=>{var y,U;return((U=(y=A.options)==null?void 0:y.find(Q=>(Q==null?void 0:Q.value)==B))==null?void 0:U.value)??" "},u=h.computed({get:()=>{const B=A.modelValue;if(A.type==="select"){if(!A.multiple)return l(B);if(typeof B=="string"){let y=l(B);return y=y&&y.trim()?[y]:[],y}return Array.isArray(B)?B.map(U=>l(U)):[]}return B},set:B=>{A.type==="select"&&A.multiple?Array.isArray(B)&&B.length===1?r("update:modelValue",B[0]):Array.isArray(B)&&B.length>1?r("update:modelValue",B):r("update:modelValue",""):r("update:modelValue",B)}}),d=B=>{r("change",B),A.label==="旋转角度"&&typeof B=="number"&&r("rotationChange",B)},g=h.computed({get:()=>u.value?typeof u.value=="object"&&u.value.fileSrc?u.value.fileSrc.startsWith("http://")||u.value.fileSrc.startsWith("https://")?u.value.fileSrc:u.value.fileSrc.startsWith("data:")?u.value.fileName||"已选择的图片":u.value.fileName||u.value.fileSrc:typeof u.value=="string"&&u.value.startsWith("data:")?"已选择的图片":u.value:"",set:B=>{u.value=B}}),f=()=>{n.value&&!a.value&&n.value.click()},w=B=>{const y=B.target.value.trim();y?y.startsWith("http://")||y.startsWith("https://")||y.startsWith("data:")?u.value=y:y.startsWith("data:")||(u.value=y):u.value=""},v=async B=>{var I;const y=B.target.files[0];if(!y)return;if(A.accept&&!y.type.match(A.accept.replace("*",".*"))){alert("请选择正确的文件类型");return}const U=(I=s==null?void 0:s.image)==null?void 0:I.request;if(!U||typeof U!="function"){handleFileAsBase64(y);return}o.value=y;let Q=null;try{a.value=!0,Q=U(y),i.value=Q;const V=await Q;if(i.value===Q&&o.value===y)if(V&&V.success!==!1){let L=V.url||V.data||V;try{const P=await C(y);P&&(L=P)}catch{}const D={fileName:y.name,fileSrc:L,uploadResult:V};r("update:modelValue",D),r("change",B),Vs.success("图片上传成功")}else throw new Error((V==null?void 0:V.message)||"上传失败")}catch(V){i.value===Q&&o.value===y&&(n.value&&(n.value.value=""),Vs.error(V.message||"上传失败,请重试"))}finally{i.value===Q&&(a.value=!1,i.value=null,o.value=null)}},C=B=>new Promise((y,U)=>{const I=B.size>5242880;if(B.type.startsWith("image/"))if(I){const V=new Image,R=document.createElement("canvas"),L=R.getContext("2d"),D=setTimeout(()=>{U(new Error("转换超时"))},8e3);V.onload=()=>{clearTimeout(D);try{let{width:F,height:O}=V;if(F>1920||O>1920){const j=Math.min(1920/F,1920/O);F=Math.floor(F*j),O=Math.floor(O*j)}R.width=F,R.height=O,L.drawImage(V,0,0,F,O);const W=R.toDataURL("image/jpeg",.8);y(W)}catch(S){U(S)}finally{URL.revokeObjectURL(V.src)}},V.onerror=()=>{clearTimeout(D),U(new Error("图片加载失败"))};const P=URL.createObjectURL(B);V.src=P}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}else{const V=new FileReader,R=setTimeout(()=>{U(new Error("转换超时"))},5e3);V.onload=L=>{clearTimeout(R),y(L.target.result)},V.onerror=()=>{clearTimeout(R),U(new Error("文件读取失败"))},V.readAsDataURL(B)}});return h.onUnmounted(()=>{i.value=null,o.value=null}),(B,y)=>{const U=h.resolveComponent("el-icon-question-filled"),Q=h.resolveComponent("el-icon"),I=h.resolveComponent("el-tooltip"),V=h.resolveComponent("el-option"),R=h.resolveComponent("el-select"),L=h.resolveComponent("el-icon-loading");return h.openBlock(),h.createElementBlock("div",f3,[t.label?(h.openBlock(),h.createElementBlock("label",h3,[h.createTextVNode(h.toDisplayString(t.label)+" ",1),t.desc?(h.openBlock(),h.createBlock(I,{key:0,placement:"top","show-arrow":!0},{content:h.withCtx(()=>[h.createElementVNode("p",{style:{"max-width":"260px",margin:"0","white-space":"pre-line"},innerHTML:t.desc},null,8,d3)]),default:h.withCtx(()=>[h.createVNode(Q,{class:"help-icon"},{default:h.withCtx(()=>[h.createVNode(U)]),_:1})]),_:1})):h.createCommentVNode("",!0)])):h.createCommentVNode("",!0),t.type==="select"?(h.openBlock(),h.createBlock(R,{key:1,modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=D=>u.value=D),multiple:t.multiple,placeholder:"请选择",style:{width:"100%"},size:"small",filterable:"",onChange:d},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,D=>(h.openBlock(),h.createBlock(V,{key:D.value,label:D.label,value:D.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","multiple"])):t.type==="color"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:2,"onUpdate:modelValue":y[1]||(y[1]=D=>u.value=D),type:"color"},null,512)),[[h.vModelText,u.value]]):t.type==="checkbox"?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:3,"onUpdate:modelValue":y[2]||(y[2]=D=>u.value=D),type:"checkbox"},null,512)),[[h.vModelCheckbox,u.value]]):t.type==="file"?(h.openBlock(),h.createElementBlock("div",p3,[h.withDirectives(h.createElementVNode("input",{type:"text","onUpdate:modelValue":y[3]||(y[3]=D=>g.value=D),placeholder:"请选择图片",class:"file-url-input",onInput:w,disabled:""},null,544),[[h.vModelText,g.value]]),h.createElementVNode("button",{type:"button",onClick:f,class:"file-select-btn",disabled:a.value},[a.value?(h.openBlock(),h.createBlock(Q,{key:0,class:"is-loading"},{default:h.withCtx(()=>[h.createVNode(L)]),_:1})):(h.openBlock(),h.createElementBlock("span",m3,h.toDisplayString(a.value?"上传中...":"选择"),1))],8,g3),h.createElementVNode("input",{type:"file",accept:t.accept,onChange:v,ref_key:"fileInput",ref:n,class:"file-input"},null,40,v3)])):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:5,"onUpdate:modelValue":y[4]||(y[4]=D=>u.value=D),type:t.type,min:t.min,max:t.max,step:t.step,onWheel:y[5]||(y[5]=h.withModifiers(()=>{},["prevent"]))},null,40,B3)),[[h.vModelDynamic,u.value]])])}}},[["__scopeId","data-v-16072986"]]),Oq="",w3={class:"property-layout-container"},y3={key:0,class:"property-item-wrapper full-width"},b3={key:1,class:"property-item-wrapper half-width"},C3={key:2,class:"property-item-wrapper default-width"},Ao=jA({__name:"BasePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},panelType:{type:String,default:"base",validator:t=>["text","barcode","qrcode","image","rectangle","line"].includes(t)},options:{type:Object,default:()=>({})}},emits:["update:modelValue","rotationChange"],setup(t,{emit:e}){const A=t,r=e,{propsConfig:n,panelType:a}=h.toRefs(A),i=h.computed(()=>`${a.value}-property-panel`),o=h.computed(()=>{const f=n.value.propertyPanel;return f&&typeof f=="object"&&!Array.isArray(f)?Object.keys(f).map(w=>({prop:w,...f[w]})).filter(w=>!w.hide):Array.isArray(f)?f.filter(w=>!w.hide)||[]:[]}),s=h.computed({get:()=>A.modelValue,set:f=>r("update:modelValue",f)}),l=h.computed(()=>o.value.filter(f=>!f.showIf||s.value[f.showIf])),u=f=>{var v;if(f.options)return f.options||[];const w=JSON.parse(JSON.stringify(((v=A.options)==null?void 0:v[f==null?void 0:f.optionsKey])||[]))||[];return f!=null&&f.multiple||w.unshift({label:"无",value:" "}),w},d=f=>f.layout?f.layout:["text","file","textarea"].includes(f.type)?"full":"half",g=f=>{r("rotationChange",f)};return h.provide("config",A.propsConfig),(f,w)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(i.value)},[h.createElementVNode("div",w3,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.value,v=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:v.prop},[d(v)==="full"?(h.openBlock(),h.createElementBlock("div",y3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):d(v)==="half"?(h.openBlock(),h.createElementBlock("div",b3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])])):(h.openBlock(),h.createElementBlock("div",C3,[h.createVNode(cd,{label:v.label,modelValue:s.value[v.prop],"onUpdate:modelValue":C=>s.value[v.prop]=C,type:v.type,options:u(v),min:v.min,max:v.max,step:v.step,accept:v.accept,desc:v.desc,multiple:v.multiple,onRotationChange:g},null,8,["label","modelValue","onUpdate:modelValue","type","options","min","max","step","accept","desc","multiple"])]))],64))),128))])],2))}},[["__scopeId","data-v-862479af"]]),E3={__name:"TextPropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(h.openBlock(),h.createBlock(Ao,{"model-value":t.modelValue,"props-config":t.propsConfig,options:t.options,"panel-type":"text","onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},U3={},F3={t:"1745910658205",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2602"};function N3(t,e){return h.openBlock(),h.createElementBlock("svg",F3,[...e[0]||(e[0]=[h.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"2603"},null,-1),h.createElementVNode("path",{d:"M798.88 96H257.12C177.088 96 112 161.088 112 241.12v541.76C112 862.928 177.088 928 257.12 928h541.76c80.032 0 145.12-65.088 145.12-145.12V241.12C944 161.088 878.912 96 798.88 96z m87.104 686.88a87.2 87.2 0 0 1-87.104 87.104H257.12a87.2 87.2 0 0 1-87.104-87.104V241.12a87.2 87.2 0 0 1 87.104-87.104h541.76a87.2 87.2 0 0 1 87.104 87.104v541.76z","p-id":"2604"},null,-1),h.createElementVNode("path",{d:"M686.304 710.336H369.696a29.04 29.04 0 0 0-29.216 28.832c0 15.904 13.104 28.832 29.216 28.832h316.608a29.04 29.04 0 0 0 29.2-28.832c0-15.904-13.088-28.832-29.2-28.832zM722.784 256H333.216A29.04 29.04 0 0 0 304 284.832v76.96c0 15.904 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.216-28.832v-48.048h136.384V640.64c0 15.92 13.088 28.832 29.2 28.832a29.04 29.04 0 0 0 29.2-28.832V313.76h136.384v48.048c0 15.904 13.088 28.832 29.216 28.832A29.04 29.04 0 0 0 752 361.792v-76.96c0.08-15.904-13.008-28.832-29.2-28.832z","p-id":"2605"},null,-1)])])}const Q3=jA(U3,[["render",N3]]);var ud={},Fc={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});function S3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T3=function t(e,A){S3(this,t),this.data=e,this.text=A.text||e,this.options=A};vr.default=T3,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.CODE39=void 0;var x3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),R3=vr,I3=V3(R3);function V3(t){return t&&t.__esModule?t:{default:t}}function M3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function O3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var k3=function(t){O3(e,t);function e(A,r){return M3(this,e),A=A.toUpperCase(),r.mod43&&(A+=P3(W3(A))),L3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return x3(e,[{key:"encode",value:function(){for(var r=fd("*"),n=0;n<this.data.length;n++)r+=fd(this.data[n])+"0";return r+=fd("*"),{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),e}(I3.default),Hm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],H3=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function fd(t){return D3(Dm(t))}function D3(t){return H3[t].toString(2)}function P3(t){return Hm[t]}function Dm(t){return Hm.indexOf(t)}function W3(t){for(var e=0,A=0;A<t.length;A++)e+=Dm(t[A]);return e=e%43,e}Fc.CODE39=k3;var In={},hd={},ro={},aA={};Object.defineProperty(aA,"__esModule",{value:!0});var Ms;function dd(t,e,A){return e in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Pm=aA.SET_A=0,Wm=aA.SET_B=1,_m=aA.SET_C=2;aA.SHIFT=98;var _3=aA.START_A=103,Z3=aA.START_B=104,j3=aA.START_C=105;aA.MODULO=103,aA.STOP=106,aA.FNC1=207,aA.SET_BY_CODE=(Ms={},dd(Ms,_3,Pm),dd(Ms,Z3,Wm),dd(Ms,j3,_m),Ms),aA.SWAP={101:Pm,100:Wm,99:_m},aA.A_START_CHAR=String.fromCharCode(208),aA.B_START_CHAR=String.fromCharCode(209),aA.C_START_CHAR=String.fromCharCode(210),aA.A_CHARS="[\0-_È-Ï]",aA.B_CHARS="[ -È-Ï]",aA.C_CHARS="(Ï*[0-9]{2}Ï*)",aA.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(ro,"__esModule",{value:!0});var J3=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),K3=vr,G3=z3(K3),kr=aA;function z3(t){return t&&t.__esModule?t:{default:t}}function Y3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X3(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function q3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var $3=function(t){q3(e,t);function e(A,r){Y3(this,e);var n=X3(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.substring(1),r));return n.bytes=A.split("").map(function(a){return a.charCodeAt(0)}),n}return J3(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.bytes,n=r.shift()-105,a=kr.SET_BY_CODE[n];if(a===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&r.unshift(kr.FNC1);var i=e.next(r,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+i.result+e.getBar((i.checksum+n)%kr.MODULO)+e.getBar(kr.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var r=this.options.ean128||!1;return typeof r=="string"&&(r=r.toLowerCase()==="true"),r}}],[{key:"getBar",value:function(r){return kr.BARS[r]?kr.BARS[r].toString():""}},{key:"correctIndex",value:function(r,n){if(n===kr.SET_A){var a=r.shift();return a<32?a+64:a-32}else return n===kr.SET_B?r.shift()-32:(r.shift()-48)*10+r.shift()-48}},{key:"next",value:function(r,n,a){if(!r.length)return{result:"",checksum:0};var i=void 0,o=void 0;if(r[0]>=200){o=r.shift()-105;var s=kr.SWAP[o];s!==void 0?i=e.next(r,n+1,s):((a===kr.SET_A||a===kr.SET_B)&&o===kr.SHIFT&&(r[0]=a===kr.SET_A?r[0]>95?r[0]-96:r[0]:r[0]<32?r[0]+96:r[0]),i=e.next(r,n+1,a))}else o=e.correctIndex(r,a),i=e.next(r,n+1,a);var l=e.getBar(o),u=o*n;return{result:l+i.result,checksum:u+i.checksum}}}]),e}(G3.default);ro.default=$3;var pd={};Object.defineProperty(pd,"__esModule",{value:!0});var ma=aA,Zm=function(e){return e.match(new RegExp("^"+ma.A_CHARS+"*"))[0].length},jm=function(e){return e.match(new RegExp("^"+ma.B_CHARS+"*"))[0].length},Jm=function(e){return e.match(new RegExp("^"+ma.C_CHARS+"*"))[0]};function gd(t,e){var A=e?ma.A_CHARS:ma.B_CHARS,r=t.match(new RegExp("^("+A+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+Km(t.substring(r[1].length));var n=t.match(new RegExp("^"+A+"+"))[0];return n.length===t.length?t:n+String.fromCharCode(e?205:206)+gd(t.substring(n.length),!e)}function Km(t){var e=Jm(t),A=e.length;if(A===t.length)return t;t=t.substring(A);var r=Zm(t)>=jm(t);return e+String.fromCharCode(r?206:205)+gd(t,r)}pd.default=function(t){var e=void 0,A=Jm(t).length;if(A>=2)e=ma.C_START_CHAR+Km(t);else{var r=Zm(t)>jm(t);e=(r?ma.A_START_CHAR:ma.B_START_CHAR)+gd(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(n,a){return String.fromCharCode(203)+a})},Object.defineProperty(hd,"__esModule",{value:!0});var eQ=ro,tQ=Gm(eQ),AQ=pd,rQ=Gm(AQ);function Gm(t){return t&&t.__esModule?t:{default:t}}function nQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function md(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function aQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var iQ=function(t){aQ(e,t);function e(A,r){if(nQ(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(A))var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,rQ.default)(A),r));else var n=md(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return md(n)}return e}(tQ.default);hd.default=iQ;var vd={};Object.defineProperty(vd,"__esModule",{value:!0});var oQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),sQ=ro,lQ=cQ(sQ),zm=aA;function cQ(t){return t&&t.__esModule?t:{default:t}}function uQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function hQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var dQ=function(t){hQ(e,t);function e(A,r){return uQ(this,e),fQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,zm.A_START_CHAR+A,r))}return oQ(e,[{key:"valid",value:function(){return new RegExp("^"+zm.A_CHARS+"+$").test(this.data)}}]),e}(lQ.default);vd.default=dQ;var Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});var pQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),gQ=ro,mQ=vQ(gQ),Ym=aA;function vQ(t){return t&&t.__esModule?t:{default:t}}function BQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var bQ=function(t){yQ(e,t);function e(A,r){return BQ(this,e),wQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Ym.B_START_CHAR+A,r))}return pQ(e,[{key:"valid",value:function(){return new RegExp("^"+Ym.B_CHARS+"+$").test(this.data)}}]),e}(mQ.default);Bd.default=bQ;var wd={};Object.defineProperty(wd,"__esModule",{value:!0});var CQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),EQ=ro,UQ=FQ(EQ),Xm=aA;function FQ(t){return t&&t.__esModule?t:{default:t}}function NQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function SQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var TQ=function(t){SQ(e,t);function e(A,r){return NQ(this,e),QQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,Xm.C_START_CHAR+A,r))}return CQ(e,[{key:"valid",value:function(){return new RegExp("^"+Xm.C_CHARS+"+$").test(this.data)}}]),e}(UQ.default);wd.default=TQ,Object.defineProperty(In,"__esModule",{value:!0}),In.CODE128C=In.CODE128B=In.CODE128A=In.CODE128=void 0;var xQ=hd,RQ=Nc(xQ),IQ=vd,VQ=Nc(IQ),MQ=Bd,LQ=Nc(MQ),OQ=wd,kQ=Nc(OQ);function Nc(t){return t&&t.__esModule?t:{default:t}}In.CODE128=RQ.default,In.CODE128A=VQ.default,In.CODE128B=LQ.default,In.CODE128C=kQ.default;var Nr={},yd={},zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.SIDE_BIN="101",zr.MIDDLE_BIN="01010",zr.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},zr.EAN2_STRUCTURE=["LL","LG","GL","GG"],zr.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],zr.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Qc={},si={};Object.defineProperty(si,"__esModule",{value:!0});var HQ=zr,DQ=function(e,A,r){var n=e.split("").map(function(i,o){return HQ.BINARIES[A[o]]}).map(function(i,o){return i?i[e[o]]:""});if(r){var a=e.length-1;n=n.map(function(i,o){return o<a?i+r:i})}return n.join("")};si.default=DQ,Object.defineProperty(Qc,"__esModule",{value:!0});var PQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),no=zr,WQ=si,qm=$m(WQ),_Q=vr,ZQ=$m(_Q);function $m(t){return t&&t.__esModule?t:{default:t}}function jQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JQ(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function KQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var GQ=function(t){KQ(e,t);function e(A,r){jQ(this,e);var n=JQ(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.fontSize=!r.flat&&r.fontSize>r.width*10?r.width*10:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return PQ(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(r,n){return this.text.substr(r,n)}},{key:"leftEncode",value:function(r,n){return(0,qm.default)(r,n)}},{key:"rightText",value:function(r,n){return this.text.substr(r,n)}},{key:"rightEncode",value:function(r,n){return(0,qm.default)(r,n)}},{key:"encodeGuarded",value:function(){var r={fontSize:this.fontSize},n={height:this.guardHeight};return[{data:no.SIDE_BIN,options:n},{data:this.leftEncode(),text:this.leftText(),options:r},{data:no.MIDDLE_BIN,options:n},{data:this.rightEncode(),text:this.rightText(),options:r},{data:no.SIDE_BIN,options:n}]}},{key:"encodeFlat",value:function(){var r=[no.SIDE_BIN,this.leftEncode(),no.MIDDLE_BIN,this.rightEncode(),no.SIDE_BIN];return{data:r.join(""),text:this.text}}}]),e}(ZQ.default);Qc.default=GQ,Object.defineProperty(yd,"__esModule",{value:!0});var zQ=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Ls=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},YQ=zr,XQ=Qc,qQ=$Q(XQ);function $Q(t){return t&&t.__esModule?t:{default:t}}function eS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function AS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ev=function(e){var A=e.substr(0,12).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*3:r+n},0);return(10-A%10)%10},rS=function(t){AS(e,t);function e(A,r){eS(this,e),A.search(/^[0-9]{12}$/)!==-1&&(A+=ev(A));var n=tS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.lastChar=r.lastChar,n}return zQ(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===ev(this.data)}},{key:"leftText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var r=this.data.substr(1,6),n=YQ.EAN13_STRUCTURE[this.data[0]];return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,n)}},{key:"rightText",value:function(){return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var r=this.data.substr(7,6);return Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRRRR")}},{key:"encodeGuarded",value:function(){var r=Ls(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(r.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(r.push({data:"00"}),r.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),r}}]),e}(qQ.default);yd.default=rS;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var nS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Sc=function t(e,A,r){e===null&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(n===void 0){var a=Object.getPrototypeOf(e);return a===null?void 0:t(a,A,r)}else{if("value"in n)return n.value;var i=n.get;return i===void 0?void 0:i.call(r)}},aS=Qc,iS=oS(aS);function oS(t){return t&&t.__esModule?t:{default:t}}function sS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function cS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var tv=function(e){var A=e.substr(0,7).split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n:r+n*3},0);return(10-A%10)%10},uS=function(t){cS(e,t);function e(A,r){return sS(this,e),A.search(/^[0-9]{7}$/)!==-1&&(A+=tv(A)),lS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return nS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===tv(this.data)}},{key:"leftText",value:function(){return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var r=this.data.substr(0,4);return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,r,"LLLL")}},{key:"rightText",value:function(){return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var r=this.data.substr(4,4);return Sc(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,r,"RRRR")}}]),e}(iS.default);bd.default=uS;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});var fS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),hS=zr,dS=si,pS=Av(dS),gS=vr,mS=Av(gS);function Av(t){return t&&t.__esModule?t:{default:t}}function vS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function wS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var yS=function(e){var A=e.split("").map(function(r){return+r}).reduce(function(r,n,a){return a%2?r+n*9:r+n*3},0);return A%10},bS=function(t){wS(e,t);function e(A,r){return vS(this,e),BS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return fS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var r=hS.EAN5_STRUCTURE[yS(this.data)];return{data:"1011"+(0,pS.default)(this.data,r,"01"),text:this.text}}}]),e}(mS.default);Cd.default=bS;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});var CS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),ES=zr,US=si,FS=rv(US),NS=vr,QS=rv(NS);function rv(t){return t&&t.__esModule?t:{default:t}}function SS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function xS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var RS=function(t){xS(e,t);function e(A,r){return SS(this,e),TS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return CS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var r=ES.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,FS.default)(this.data,r,"01"),text:this.text}}}]),e}(QS.default);Ed.default=RS;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});var IS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();Os.checksum=Ud;var VS=si,ao=nv(VS),MS=vr,LS=nv(MS);function nv(t){return t&&t.__esModule?t:{default:t}}function OS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kS(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function HS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var DS=function(t){HS(e,t);function e(A,r){OS(this,e),A.search(/^[0-9]{11}$/)!==-1&&(A+=Ud(A));var n=kS(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return IS(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==Ud(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=(0,ao.default)(this.data.substr(0,6),"LLLLLL"),r+="01010",r+=(0,ao.default)(this.data.substr(6,6),"RRRRRR"),r+="101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101"+(0,ao.default)(this.data[0],"L"),options:{height:this.guardHeight}}),r.push({data:(0,ao.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),r.push({data:"01010",options:{height:this.guardHeight}}),r.push({data:(0,ao.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),r.push({data:(0,ao.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),r}}]),e}(LS.default);function Ud(t){var e=0,A;for(A=1;A<11;A+=2)e+=parseInt(t[A]);for(A=0;A<11;A+=2)e+=parseInt(t[A])*3;return(10-e%10)%10}Os.default=DS;var Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});var PS=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),WS=si,_S=av(WS),ZS=vr,jS=av(ZS),JS=Os;function av(t){return t&&t.__esModule?t:{default:t}}function KS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function GS(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var zS=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],YS=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],XS=function(t){GS(e,t);function e(A,r){KS(this,e);var n=Nd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));if(n.isValid=!1,A.search(/^[0-9]{6}$/)!==-1)n.middleDigits=A,n.upcA=iv(A,"0"),n.text=r.text||""+n.upcA[0]+A+n.upcA[n.upcA.length-1],n.isValid=!0;else if(A.search(/^[01][0-9]{7}$/)!==-1)if(n.middleDigits=A.substring(1,A.length-1),n.upcA=iv(n.middleDigits,A[0]),n.upcA[n.upcA.length-1]===A[A.length-1])n.isValid=!0;else return Nd(n);else return Nd(n);return n.displayValue=r.displayValue,r.fontSize>r.width*10?n.fontSize=r.width*10:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return PS(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var r="";return r+="101",r+=this.encodeMiddleDigits(),r+="010101",{data:r,text:this.text}}},{key:"guardedEncoding",value:function(){var r=[];return this.displayValue&&r.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),r.push({data:"101",options:{height:this.guardHeight}}),r.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),r.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&r.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),r}},{key:"encodeMiddleDigits",value:function(){var r=this.upcA[0],n=this.upcA[this.upcA.length-1],a=YS[parseInt(n)][parseInt(r)];return(0,_S.default)(this.middleDigits,a)}}]),e}(jS.default);function iv(t,e){for(var A=parseInt(t[t.length-1]),r=zS[A],n="",a=0,i=0;i<r.length;i++){var o=r[i];o==="X"?n+=t[a++]:n+=o}return n=""+e+n,""+n+(0,JS.checksum)(n)}Fd.default=XS,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.UPCE=Nr.UPC=Nr.EAN2=Nr.EAN5=Nr.EAN8=Nr.EAN13=void 0;var qS=yd,$S=io(qS),eT=bd,tT=io(eT),AT=Cd,rT=io(AT),nT=Ed,aT=io(nT),iT=Os,oT=io(iT),sT=Fd,lT=io(sT);function io(t){return t&&t.__esModule?t:{default:t}}Nr.EAN13=$S.default,Nr.EAN8=tT.default,Nr.EAN5=rT.default,Nr.EAN2=aT.default,Nr.UPC=oT.default,Nr.UPCE=lT.default;var oo={},Tc={},ks={};Object.defineProperty(ks,"__esModule",{value:!0}),ks.START_BIN="1010",ks.END_BIN="11101",ks.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty(Tc,"__esModule",{value:!0});var cT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),xc=ks,uT=vr,fT=hT(uT);function hT(t){return t&&t.__esModule?t:{default:t}}function dT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function gT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var mT=function(t){gT(e,t);function e(){return dT(this,e),pT(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return cT(e,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var r=this,n=this.data.match(/.{2}/g).map(function(a){return r.encodePair(a)}).join("");return{data:xc.START_BIN+n+xc.END_BIN,text:this.text}}},{key:"encodePair",value:function(r){var n=xc.BINARIES[r[1]];return xc.BINARIES[r[0]].split("").map(function(a,i){return(a==="1"?"111":"1")+(n[i]==="1"?"000":"0")}).join("")}}]),e}(fT.default);Tc.default=mT;var Qd={};Object.defineProperty(Qd,"__esModule",{value:!0});var vT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),BT=Tc,wT=yT(BT);function yT(t){return t&&t.__esModule?t:{default:t}}function bT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function ET(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var ov=function(e){var A=e.substr(0,13).split("").map(function(r){return parseInt(r,10)}).reduce(function(r,n,a){return r+n*(3-a%2*2)},0);return Math.ceil(A/10)*10-A},UT=function(t){ET(e,t);function e(A,r){return bT(this,e),A.search(/^[0-9]{13}$/)!==-1&&(A+=ov(A)),CT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return vT(e,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===ov(this.data)}}]),e}(wT.default);Qd.default=UT,Object.defineProperty(oo,"__esModule",{value:!0}),oo.ITF14=oo.ITF=void 0;var FT=Tc,NT=sv(FT),QT=Qd,ST=sv(QT);function sv(t){return t&&t.__esModule?t:{default:t}}oo.ITF=NT.default,oo.ITF14=ST.default;var Yr={},li={};Object.defineProperty(li,"__esModule",{value:!0});var TT=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),xT=vr,RT=IT(xT);function IT(t){return t&&t.__esModule?t:{default:t}}function VT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function LT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var OT=function(t){LT(e,t);function e(A,r){return VT(this,e),MT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return TT(e,[{key:"encode",value:function(){for(var r="110",n=0;n<this.data.length;n++){var a=parseInt(this.data[n]),i=a.toString(2);i=kT(i,4-i.length);for(var o=0;o<i.length;o++)r+=i[o]=="0"?"100":"110"}return r+="1001",{data:r,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),e}(RT.default);function kT(t,e){for(var A=0;A<e;A++)t="0"+t;return t}li.default=OT;var Sd={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.mod10=HT,ci.mod11=DT;function HT(t){for(var e=0,A=0;A<t.length;A++){var r=parseInt(t[A]);(A+t.length)%2===0?e+=r:e+=r*2%10+Math.floor(r*2/10)}return(10-e%10)%10}function DT(t){for(var e=0,A=[2,3,4,5,6,7],r=0;r<t.length;r++){var n=parseInt(t[t.length-1-r]);e+=A[r%A.length]*n}return(11-e%11)%11}Object.defineProperty(Sd,"__esModule",{value:!0});var PT=li,WT=ZT(PT),_T=ci;function ZT(t){return t&&t.__esModule?t:{default:t}}function jT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function KT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var GT=function(t){KT(e,t);function e(A,r){return jT(this,e),JT(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,_T.mod10)(A),r))}return e}(WT.default);Sd.default=GT;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var zT=li,YT=qT(zT),XT=ci;function qT(t){return t&&t.__esModule?t:{default:t}}function $T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ex(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function tx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ax=function(t){tx(e,t);function e(A,r){return $T(this,e),ex(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A+(0,XT.mod11)(A),r))}return e}(YT.default);Td.default=Ax;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});var rx=li,nx=ax(rx),lv=ci;function ax(t){return t&&t.__esModule?t:{default:t}}function ix(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ox(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function sx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var lx=function(t){sx(e,t);function e(A,r){return ix(this,e),A+=(0,lv.mod10)(A),A+=(0,lv.mod10)(A),ox(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(nx.default);xd.default=lx;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var cx=li,ux=fx(cx),cv=ci;function fx(t){return t&&t.__esModule?t:{default:t}}function hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function px(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gx=function(t){px(e,t);function e(A,r){return hx(this,e),A+=(0,cv.mod11)(A),A+=(0,cv.mod10)(A),dx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return e}(ux.default);Rd.default=gx,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.MSI1110=Yr.MSI1010=Yr.MSI11=Yr.MSI10=Yr.MSI=void 0;var mx=li,vx=Hs(mx),Bx=Sd,wx=Hs(Bx),yx=Td,bx=Hs(yx),Cx=xd,Ex=Hs(Cx),Ux=Rd,Fx=Hs(Ux);function Hs(t){return t&&t.__esModule?t:{default:t}}Yr.MSI=vx.default,Yr.MSI10=wx.default,Yr.MSI11=bx.default,Yr.MSI1010=Ex.default,Yr.MSI1110=Fx.default;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.pharmacode=void 0;var Nx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Qx=vr,Sx=Tx(Qx);function Tx(t){return t&&t.__esModule?t:{default:t}}function xx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Ix(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Vx=function(t){Ix(e,t);function e(A,r){xx(this,e);var n=Rx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r));return n.number=parseInt(A,10),n}return Nx(e,[{key:"encode",value:function(){for(var r=this.number,n="";!isNaN(r)&&r!=0;)r%2===0?(n="11100"+n,r=(r-2)/2):(n="100"+n,r=(r-1)/2);return n=n.slice(0,-2),{data:n,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(Sx.default);Rc.pharmacode=Vx;var Ic={};Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.codabar=void 0;var Mx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Lx=vr,Ox=kx(Lx);function kx(t){return t&&t.__esModule?t:{default:t}}function Hx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Px(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Wx=function(t){Px(e,t);function e(A,r){Hx(this,e),A.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(A="A"+A+"A");var n=Dx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A.toUpperCase(),r));return n.text=n.options.text||n.text.replace(/[A-D]/g,""),n}return Mx(e,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var r=[],n=this.getEncodings(),a=0;a<this.data.length;a++)r.push(n[this.data.charAt(a)]),a!==this.data.length-1&&r.push("0");return{text:this.text,data:r.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(Ox.default);Ic.codabar=Wx;var so={},Vc={},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Ds.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Ds.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]},Object.defineProperty(Vc,"__esModule",{value:!0});var _x=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),Mc=Ds,Zx=vr,jx=Jx(Zx);function Jx(t){return t&&t.__esModule?t:{default:t}}function Kx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gx(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function zx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Yx=function(t){zx(e,t);function e(A,r){return Kx(this,e),Gx(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return _x(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var r=this.data.split("").flatMap(function(o){return Mc.MULTI_SYMBOLS[o]||o}),n=r.map(function(o){return e.getEncoding(o)}).join(""),a=e.checksum(r,20),i=e.checksum(r.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(r){return Mc.BINARIES[e.symbolValue(r)]}},{key:"getSymbol",value:function(r){return Mc.SYMBOLS[r]}},{key:"symbolValue",value:function(r){return Mc.SYMBOLS.indexOf(r)}},{key:"checksum",value:function(r,n){var a=r.slice().reverse().reduce(function(i,o,s){var l=s%n+1;return i+e.symbolValue(o)*l},0);return e.getSymbol(a%47)}}]),e}(jx.default);Vc.default=Yx;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});var Xx=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),qx=Vc,$x=eR(qx);function eR(t){return t&&t.__esModule?t:{default:t}}function tR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var nR=function(t){rR(e,t);function e(A,r){return tR(this,e),AR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return Xx(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}($x.default);Id.default=nR,Object.defineProperty(so,"__esModule",{value:!0}),so.CODE93FullASCII=so.CODE93=void 0;var aR=Vc,iR=uv(aR),oR=Id,sR=uv(oR);function uv(t){return t&&t.__esModule?t:{default:t}}so.CODE93=iR.default,so.CODE93FullASCII=sR.default;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.GenericBarcode=void 0;var lR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),cR=vr,uR=fR(cR);function fR(t){return t&&t.__esModule?t:{default:t}}function hR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dR(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function pR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var gR=function(t){pR(e,t);function e(A,r){return hR(this,e),dR(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,A,r))}return lR(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(uR.default);Lc.GenericBarcode=gR,Object.defineProperty(ud,"__esModule",{value:!0});var mR=Fc,Oc=In,lo=Nr,fv=oo,Ps=Yr,vR=Rc,BR=Ic,hv=so,wR=Lc;ud.default={CODE39:mR.CODE39,CODE128:Oc.CODE128,CODE128A:Oc.CODE128A,CODE128B:Oc.CODE128B,CODE128C:Oc.CODE128C,EAN13:lo.EAN13,EAN8:lo.EAN8,EAN5:lo.EAN5,EAN2:lo.EAN2,UPC:lo.UPC,UPCE:lo.UPCE,ITF14:fv.ITF14,ITF:fv.ITF,MSI:Ps.MSI,MSI10:Ps.MSI10,MSI11:Ps.MSI11,MSI1010:Ps.MSI1010,MSI1110:Ps.MSI1110,pharmacode:vR.pharmacode,codabar:BR.codabar,CODE93:hv.CODE93,CODE93FullASCII:hv.CODE93FullASCII,GenericBarcode:wR.GenericBarcode};var co={};Object.defineProperty(co,"__esModule",{value:!0});var yR=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t};co.default=function(t,e){return yR({},t,e)};var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.default=bR;function bR(t){var e=[];function A(r){if(Array.isArray(r))for(var n=0;n<r.length;n++)A(r[n]);else r.text=r.text||"",r.data=r.data||"",e.push(r)}return A(t),e}var Md={};Object.defineProperty(Md,"__esModule",{value:!0}),Md.default=CR;function CR(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}var Ld={},Od={},kc={};Object.defineProperty(kc,"__esModule",{value:!0}),kc.default=ER;function ER(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var A in e)e.hasOwnProperty(A)&&(A=e[A],typeof t[A]=="string"&&(t[A]=parseInt(t[A],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}var Hc={};Object.defineProperty(Hc,"__esModule",{value:!0});var UR={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};Hc.default=UR,Object.defineProperty(Od,"__esModule",{value:!0});var FR=kc,NR=pv(FR),QR=Hc,dv=pv(QR);function pv(t){return t&&t.__esModule?t:{default:t}}function SR(t){var e={};for(var A in dv.default)dv.default.hasOwnProperty(A)&&(t.hasAttribute("jsbarcode-"+A.toLowerCase())&&(e[A]=t.getAttribute("jsbarcode-"+A.toLowerCase())),t.hasAttribute("data-"+A.toLowerCase())&&(e[A]=t.getAttribute("data-"+A.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,NR.default)(e),e}Od.default=SR;var kd={},Hd={},Hr={};Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.getTotalWidthOfEncodings=Hr.calculateEncodingAttributes=Hr.getBarcodePadding=Hr.getEncodingHeight=Hr.getMaximumHeightOfEncodings=void 0;var TR=co,xR=RR(TR);function RR(t){return t&&t.__esModule?t:{default:t}}function gv(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function mv(t,e,A){if(A.displayValue&&e<t){if(A.textAlign=="center")return Math.floor((t-e)/2);if(A.textAlign=="left")return 0;if(A.textAlign=="right")return Math.floor(t-e)}return 0}function IR(t,e,A){for(var r=0;r<t.length;r++){var n=t[r],a=(0,xR.default)(e,n.options),i;a.displayValue?i=LR(n.text,a,A):i=0;var o=n.data.length*a.width;n.width=Math.ceil(Math.max(i,o)),n.height=gv(n,a),n.barcodePadding=mv(i,o,a)}}function VR(t){for(var e=0,A=0;A<t.length;A++)e+=t[A].width;return e}function MR(t){for(var e=0,A=0;A<t.length;A++)t[A].height>e&&(e=t[A].height);return e}function LR(t,e,A){var r;if(A)r=A;else if(typeof document<"u")r=document.createElement("canvas").getContext("2d");else return 0;r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var n=r.measureText(t);if(!n)return 0;var a=n.width;return a}Hr.getMaximumHeightOfEncodings=MR,Hr.getEncodingHeight=gv,Hr.getBarcodePadding=mv,Hr.calculateEncodingAttributes=IR,Hr.getTotalWidthOfEncodings=VR,Object.defineProperty(Hd,"__esModule",{value:!0});var OR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),kR=co,HR=DR(kR),Dd=Hr;function DR(t){return t&&t.__esModule?t:{default:t}}function PR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var WR=function(){function t(e,A,r){PR(this,t),this.canvas=e,this.encodings=A,this.options=r}return OR(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var A=0;A<this.encodings.length;A++){var r=(0,HR.default)(this.options,this.encodings[A].options);this.drawCanvasBarcode(r,this.encodings[A]),this.drawCanvasText(r,this.encodings[A]),this.moveCanvasDrawing(this.encodings[A])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var A=this.canvas.getContext("2d");A.save(),(0,Dd.calculateEncodingAttributes)(this.encodings,this.options,A);var r=(0,Dd.getTotalWidthOfEncodings)(this.encodings),n=(0,Dd.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=r+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,A.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(A.fillStyle=this.options.background,A.fillRect(0,0,this.canvas.width,this.canvas.height)),A.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(A,r){var n=this.canvas.getContext("2d"),a=r.data,i;A.textPosition=="top"?i=A.marginTop+A.fontSize+A.textMargin:i=A.marginTop,n.fillStyle=A.lineColor;for(var o=0;o<a.length;o++){var s=o*A.width+r.barcodePadding;a[o]==="1"?n.fillRect(s,i,A.width,A.height):a[o]&&n.fillRect(s,i,A.width,A.height*a[o])}}},{key:"drawCanvasText",value:function(A,r){var n=this.canvas.getContext("2d"),a=A.fontOptions+" "+A.fontSize+"px "+A.font;if(A.displayValue){var i,o;A.textPosition=="top"?o=A.marginTop+A.fontSize-A.textMargin:o=A.height+A.textMargin+A.marginTop+A.fontSize,n.font=a,A.textAlign=="left"||r.barcodePadding>0?(i=0,n.textAlign="left"):A.textAlign=="right"?(i=r.width-1,n.textAlign="right"):(i=r.width/2,n.textAlign="center"),n.fillText(r.text,i,o)}}},{key:"moveCanvasDrawing",value:function(A){var r=this.canvas.getContext("2d");r.translate(A.width,0)}},{key:"restoreCanvas",value:function(){var A=this.canvas.getContext("2d");A.restore()}}]),t}();Hd.default=WR;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var _R=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),ZR=co,jR=JR(ZR),Wd=Hr;function JR(t){return t&&t.__esModule?t:{default:t}}function KR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Dc="http://www.w3.org/2000/svg",GR=function(){function t(e,A,r){KR(this,t),this.svg=e,this.encodings=A,this.options=r,this.document=r.xmlDocument||document}return _R(t,[{key:"render",value:function(){var A=this.options.marginLeft;this.prepareSVG();for(var r=0;r<this.encodings.length;r++){var n=this.encodings[r],a=(0,jR.default)(this.options,n.options),i=this.createGroup(A,a.marginTop,this.svg);this.setGroupOptions(i,a),this.drawSvgBarcode(i,a,n),this.drawSVGText(i,a,n),A+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,Wd.calculateEncodingAttributes)(this.encodings,this.options);var A=(0,Wd.getTotalWidthOfEncodings)(this.encodings),r=(0,Wd.getMaximumHeightOfEncodings)(this.encodings),n=A+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,r),this.options.background&&this.drawRect(0,0,n,r,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(A,r,n){var a=n.data,i;r.textPosition=="top"?i=r.fontSize+r.textMargin:i=0;for(var o=0,s=0,l=0;l<a.length;l++)s=l*r.width+n.barcodePadding,a[l]==="1"?o++:o>0&&(this.drawRect(s-r.width*o,i,r.width*o,r.height,A),o=0);o>0&&this.drawRect(s-r.width*(o-1),i,r.width*o,r.height,A)}},{key:"drawSVGText",value:function(A,r,n){var a=this.document.createElementNS(Dc,"text");if(r.displayValue){var i,o;a.setAttribute("style","font:"+r.fontOptions+" "+r.fontSize+"px "+r.font),r.textPosition=="top"?o=r.fontSize-r.textMargin:o=r.height+r.textMargin+r.fontSize,r.textAlign=="left"||n.barcodePadding>0?(i=0,a.setAttribute("text-anchor","start")):r.textAlign=="right"?(i=n.width-1,a.setAttribute("text-anchor","end")):(i=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",i),a.setAttribute("y",o),a.appendChild(this.document.createTextNode(n.text)),A.appendChild(a)}}},{key:"setSvgAttributes",value:function(A,r){var n=this.svg;n.setAttribute("width",A+"px"),n.setAttribute("height",r+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+A+" "+r),n.setAttribute("xmlns",Dc),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(A,r,n){var a=this.document.createElementNS(Dc,"g");return a.setAttribute("transform","translate("+A+", "+r+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(A,r){A.setAttribute("style","fill:"+r.lineColor+";")}},{key:"drawRect",value:function(A,r,n,a,i){var o=this.document.createElementNS(Dc,"rect");return o.setAttribute("x",A),o.setAttribute("y",r),o.setAttribute("width",n),o.setAttribute("height",a),i.appendChild(o),o}}]),t}();Pd.default=GR;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});var zR=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function YR(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var XR=function(){function t(e,A,r){YR(this,t),this.object=e,this.encodings=A,this.options=r}return zR(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();_d.default=XR,Object.defineProperty(kd,"__esModule",{value:!0});var qR=Hd,$R=Zd(qR),eI=Pd,tI=Zd(eI),AI=_d,rI=Zd(AI);function Zd(t){return t&&t.__esModule?t:{default:t}}kd.default={CanvasRenderer:$R.default,SVGRenderer:tI.default,ObjectRenderer:rI.default};var uo={};Object.defineProperty(uo,"__esModule",{value:!0});function jd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jd(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function Kd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var nI=function(t){Kd(e,t);function e(A,r){jd(this,e);var n=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n.name="InvalidInputException",n.symbology=A,n.input=r,n.message='"'+n.input+'" is not a valid input for '+n.symbology,n}return e}(Error),aI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="InvalidElementException",A.message="Not supported type to render on",A}return e}(Error),iI=function(t){Kd(e,t);function e(){jd(this,e);var A=Jd(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return A.name="NoElementException",A.message="No element to render on.",A}return e}(Error);uo.InvalidInputException=nI,uo.InvalidElementException=aI,uo.NoElementException=iI,Object.defineProperty(Ld,"__esModule",{value:!0});var oI=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sI=Od,Gd=vv(sI),lI=kd,Ws=vv(lI),cI=uo;function vv(t){return t&&t.__esModule?t:{default:t}}function zd(t){if(typeof t=="string")return uI(t);if(Array.isArray(t)){for(var e=[],A=0;A<t.length;A++)e.push(zd(t[A]));return e}else{if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLImageElement)return fI(t);if(t&&t.nodeName&&t.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&t instanceof SVGElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement)return{element:t,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:Ws.default.CanvasRenderer};if(t&&(typeof t>"u"?"undefined":oI(t))==="object"&&!t.nodeName)return{element:t,renderer:Ws.default.ObjectRenderer};throw new cI.InvalidElementException}}function uI(t){var e=document.querySelectorAll(t);if(e.length!==0){for(var A=[],r=0;r<e.length;r++)A.push(zd(e[r]));return A}}function fI(t){var e=document.createElement("canvas");return{element:e,options:(0,Gd.default)(t),renderer:Ws.default.CanvasRenderer,afterRender:function(){t.setAttribute("src",e.toDataURL())}}}Ld.default=zd;var Yd={};Object.defineProperty(Yd,"__esModule",{value:!0});var hI=function(){function t(e,A){for(var r=0;r<A.length;r++){var n=A[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();function dI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var pI=function(){function t(e){dI(this,t),this.api=e}return hI(t,[{key:"handleCatch",value:function(A){if(A.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw A.message;else throw A;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(A){try{var r=A.apply(void 0,arguments);return this.api._options.valid(!0),r}catch(n){return this.handleCatch(n),this.api}}}]),t}();Yd.default=pI;var gI=ud,ui=va(gI),mI=co,_s=va(mI),vI=Vd,Bv=va(vI),BI=Md,wv=va(BI),wI=Ld,yI=va(wI),bI=kc,CI=va(bI),EI=Yd,UI=va(EI),yv=uo,FI=Hc,bv=va(FI);function va(t){return t&&t.__esModule?t:{default:t}}var Gn=function(){},Pc=function(e,A,r){var n=new Gn;if(typeof e>"u")throw Error("No element to render on was provided.");return n._renderProperties=(0,yI.default)(e),n._encodings=[],n._options=bv.default,n._errorHandler=new UI.default(n),typeof A<"u"&&(r=r||{},r.format||(r.format=Uv()),n.options(r)[r.format](A,r).render()),n};Pc.getModule=function(t){return ui.default[t]};for(var Cv in ui.default)ui.default.hasOwnProperty(Cv)&&NI(ui.default,Cv);function NI(t,e){Gn.prototype[e]=Gn.prototype[e.toUpperCase()]=Gn.prototype[e.toLowerCase()]=function(A,r){var n=this;return n._errorHandler.wrapBarcodeCall(function(){r.text=typeof r.text>"u"?void 0:""+r.text;var a=(0,_s.default)(n._options,r);a=(0,CI.default)(a);var i=t[e],o=Ev(A,i,a);return n._encodings.push(o),n})}}function Ev(t,e,A){t=""+t;var r=new e(t,A);if(!r.valid())throw new yv.InvalidInputException(r.constructor.name,t);var n=r.encode();n=(0,Bv.default)(n);for(var a=0;a<n.length;a++)n[a].options=(0,_s.default)(A,n[a].options);return n}function Uv(){return ui.default.CODE128?"CODE128":Object.keys(ui.default)[0]}Gn.prototype.options=function(t){return this._options=(0,_s.default)(this._options,t),this},Gn.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},Gn.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var t;for(var e in this._renderProperties){t=this._renderProperties[e];var A=(0,_s.default)(this._options,t.options);A.format=="auto"&&(A.format=Uv()),this._errorHandler.wrapBarcodeCall(function(){var r=A.value,n=ui.default[A.format.toUpperCase()],a=Ev(r,n,A);Xd(t,a,A)})}}},Gn.prototype.render=function(){if(!this._renderProperties)throw new yv.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)Xd(this._renderProperties[t],this._encodings,this._options);else Xd(this._renderProperties,this._encodings,this._options);return this},Gn.prototype._defaults=bv.default;function Xd(t,e,A){e=(0,Bv.default)(e);for(var r=0;r<e.length;r++)e[r].options=(0,_s.default)(A,e[r].options),(0,wv.default)(e[r].options);(0,wv.default)(A);var n=t.renderer,a=new n(t.element,e,A);a.render(),t.afterRender&&t.afterRender()}typeof window<"u"&&(window.JsBarcode=Pc),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(t,e){var A=[];return jQuery(this).each(function(){A.push(this)}),Pc(A,t,e)});var QI=Pc;const qd=ld(QI),Hq="",SI={__name:"BarcodeComponent",props:{modelValue:{type:Object,required:!0,default:()=>({})},propsConfig:{type:Object,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const A=t,r=e,{watchCoordinates:n,initCoordinates:a}=Ss(A,r),i=h.ref(null);h.computed(()=>A.modelValue.__selected||!1);const o=h.computed(()=>({width:"100%",height:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",boxSizing:"border-box"})),s=(g,f)=>{let w;return function(...C){const B=()=>{clearTimeout(w),g(...C)};clearTimeout(w),w=setTimeout(B,f)}},l=h.ref({value:"",type:"",lineColor:"",codeType:""}),u=()=>{var U,Q,I,V,R,L,D,P,S,F,O,W,j,z,q,Y;if(!i.value)return;const g=di((Q=(U=A.propsConfig)==null?void 0:U.barcode)==null?void 0:Q.propertyPanel)||{};let f=((I=A.modelValue)==null?void 0:I.BarcodeValue)||g.BarcodeValue||"";if(!f&&((V=A.modelValue)!=null&&V.FieldName))if(Array.isArray(A.modelValue.FieldName)){const Ae=A.modelValue.FieldName.map(ee=>{var ce,N,H,J;return((J=(H=(N=(ce=A.modelValue)==null?void 0:ce.options)==null?void 0:N.fields)==null?void 0:H.find(G=>G.value==ee))==null?void 0:J.label)||ee}).filter(ee=>ee);if(Ae.length>0){const ee=A.modelValue.FieldConnector||" ";f=Ae.join(ee)}}else f=((P=(D=(L=(R=A.modelValue)==null?void 0:R.options)==null?void 0:L.fields)==null?void 0:D.find(Ae=>{var ee;return Ae.value==((ee=A.modelValue)==null?void 0:ee.FieldName)}))==null?void 0:P.label)||((S=A.modelValue)==null?void 0:S.FieldName)||"";const w=((F=A.modelValue)==null?void 0:F.CodeType)||g.CodeType||"",v=A.modelValue.LineColor||g.LineColor,C=((Y=(q=(z=(j=(W=(O=A.propsConfig)==null?void 0:O.barcode)==null?void 0:W.propertyPanel)==null?void 0:j.find(Ae=>Ae.prop==="CodeType"))==null?void 0:z.options)==null?void 0:q.find(Ae=>Ae.value===w))==null?void 0:Y.compValue)||"",B={value:f,type:w,lineColor:v,codeType:C};if(JSON.stringify(B)!==JSON.stringify(l.value)){l.value=B;try{const Ae=i.value;Ae.innerHTML="",qd(Ae,f,{format:C,width:2,displayValue:!1,margin:0,lineColor:v,height:50,background:"transparent"}),h.nextTick(()=>{if(Ae){const ee=Ae.getBBox();if(ee.width>0&&ee.height>0){const ce=`${ee.x} ${ee.y} ${ee.width} ${ee.height}`;Ae.setAttribute("viewBox",ce),Ae.style.width="100%",Ae.style.height="100%",Ae.setAttribute("preserveAspectRatio","none")}}})}catch{}}},d=s(u,100);return h.onMounted(()=>{u(),a(),n()}),h.watch(()=>A.modelValue,()=>d(),{deep:!0}),h.watch(()=>A.propsConfig,()=>d(),{deep:!0}),(g,f)=>(h.openBlock(),h.createElementBlock("div",{class:"barcode-component",style:h.normalizeStyle(o.value)},[(h.openBlock(),h.createElementBlock("svg",{ref_key:"barcodeRef",ref:i,width:"100%",height:"100%",preserveAspectRatio:"none",style:{width:"100%",height:"100%"}},null,512))],4))}},TI={__name:"BarcodePropertyPanel",props:{modelValue:{type:Object,required:!0},propsConfig:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(t){return(e,A)=>(h.openBlock(),h.createBlock(Ao,{"model-value":t.modelValue,"props-config":t.propsConfig,"panel-type":"barcode",options:t.options,"onUpdate:modelValue":A[0]||(A[0]=r=>e.$emit("update:modelValue",r))},null,8,["model-value","props-config","options"]))}},xI={},RI={t:"1745910558248",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1784"};function II(t,e){return h.openBlock(),h.createElementBlock("svg",RI,[...e[0]||(e[0]=[h.createElementVNode("path",{d:"M0 0m0 0l1024 0q0 0 0 0l0 1024q0 0 0 0l-1024 0q0 0 0 0l0-1024q0 0 0 0Z","fill-opacity":"0","p-id":"1785"},null,-1),h.createElementVNode("path",{d:"M388.592 912H195.92C150.24 912 112 871.696 112 823.44V642.848c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 17.92 13.408 32.336 30.288 32.336h192.16c15.408 0 26.832 11.952 26.832 28.368 0 15.424-11.424 27.856-26.32 27.856z m439.456 0h-192.16c-15.408 0-26.816-11.936-26.816-28.352 0-15.92 11.408-28.368 26.8-28.368h192.176c16.88 0 30.288-13.92 30.288-32.32V642.336c0-15.92 11.424-28.368 26.816-28.368s26.816 11.952 26.816 28.368v180.592c0 48.752-38.24 89.056-83.92 89.056zM138.816 409.504c-15.392 0-26.816-11.936-26.816-28.352V201.056C112 152.8 150.24 112.48 195.92 112.48h192.16c15.408 0 26.832 11.936 26.832 28.352 0 15.92-11.424 28.368-26.816 28.368H195.92c-16.88 0-30.288 15.92-30.288 34.32V384.16c0 13.44-11.424 25.36-26.816 25.36zM885.184 409.52c-15.392 0-26.816-11.952-26.816-28.368V201.056c0-17.92-13.408-32.336-30.288-32.336h-192.16c-15.408 0-26.832-11.936-26.832-28.368 0-15.92 11.424-28.352 26.816-28.352h192.176C873.76 112 912 152.304 912 200.56v180.592c0 16.416-13.408 28.368-26.816 28.368zM755.2 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM672 698c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6v372zM608 326v372c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6zM560 326v372c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6zM512 698c0 3.6 2.56 6 6.4 6 3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6-3.84 0-6.4 2.4-6.4 6v372zM336 698c0 3.6 2.56 6 6.4 6h12.8c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-12.8c-3.84 0-6.4 2.4-6.4 6v372zM256 326v372c0 3.6 2.56 6 6.4 6h38.4c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-38.4c-3.84 0-6.4 2.4-6.4 6zM400 698c0 3.6 2.56 6 6.4 6h64c3.84 0 6.4-2.4 6.4-6v-372c0-3.6-2.56-6-6.4-6h-64c-3.84 0-6.4 2.4-6.4 6v372z","p-id":"1786"},null,-1)])])}const VI=jA(xI,[["render",II]]),Ba=t=>t*3.7795275591,fo=t=>t/3.7795275591;var wa={},MI=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Fv={},Dr={};let $d;const LI=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Dr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Dr.getSymbolTotalCodewords=function(e){return LI[e]},Dr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e},Dr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');$d=e},Dr.isKanjiModeEnabled=function(){return typeof $d<"u"},Dr.toSJIS=function(e){return $d(e)};var Wc={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(A){if(typeof A!="string")throw new Error("Param is not a string");switch(A.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+A)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,n){if(t.isValid(r))return r;try{return e(r)}catch{return n}}})(Wc);function Nv(){this.buffer=[],this.length=0}Nv.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let A=0;A<e;A++)this.putBit((t>>>e-A-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var OI=Nv;function Zs(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Zs.prototype.set=function(t,e,A,r){const n=t*this.size+e;this.data[n]=A,r&&(this.reservedBit[n]=!0)},Zs.prototype.get=function(t,e){return this.data[t*this.size+e]},Zs.prototype.xor=function(t,e,A){this.data[t*this.size+e]^=A},Zs.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var kI=Zs,Qv={};(function(t){const e=Dr.getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const n=Math.floor(r/7)+2,a=e(r),i=a===145?26:Math.ceil((a-13)/(2*n-2))*2,o=[a-7];for(let s=1;s<n-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},t.getPositions=function(r){const n=[],a=t.getRowColCoords(r),i=a.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||n.push([a[o],a[s]]);return n}})(Qv);var Sv={};const HI=Dr.getSymbolSize,Tv=7;Sv.getPositions=function(e){const A=HI(e);return[[0,0],[A-Tv,0],[0,A-Tv]]};var xv={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},t.from=function(n){return t.isValid(n)?parseInt(n,10):void 0},t.getPenaltyN1=function(n){const a=n.size;let i=0,o=0,s=0,l=null,u=null;for(let d=0;d<a;d++){o=s=0,l=u=null;for(let g=0;g<a;g++){let f=n.get(d,g);f===l?o++:(o>=5&&(i+=e.N1+(o-5)),l=f,o=1),f=n.get(g,d),f===u?s++:(s>=5&&(i+=e.N1+(s-5)),u=f,s=1)}o>=5&&(i+=e.N1+(o-5)),s>=5&&(i+=e.N1+(s-5))}return i},t.getPenaltyN2=function(n){const a=n.size;let i=0;for(let o=0;o<a-1;o++)for(let s=0;s<a-1;s++){const l=n.get(o,s)+n.get(o,s+1)+n.get(o+1,s)+n.get(o+1,s+1);(l===4||l===0)&&i++}return i*e.N2},t.getPenaltyN3=function(n){const a=n.size;let i=0,o=0,s=0;for(let l=0;l<a;l++){o=s=0;for(let u=0;u<a;u++)o=o<<1&2047|n.get(l,u),u>=10&&(o===1488||o===93)&&i++,s=s<<1&2047|n.get(u,l),u>=10&&(s===1488||s===93)&&i++}return i*e.N3},t.getPenaltyN4=function(n){let a=0;const i=n.data.length;for(let s=0;s<i;s++)a+=n.data[s];return Math.abs(Math.ceil(a*100/i/5)-10)*e.N4};function A(r,n,a){switch(r){case t.Patterns.PATTERN000:return(n+a)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return a%3===0;case t.Patterns.PATTERN011:return(n+a)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case t.Patterns.PATTERN101:return n*a%2+n*a%3===0;case t.Patterns.PATTERN110:return(n*a%2+n*a%3)%2===0;case t.Patterns.PATTERN111:return(n*a%3+(n+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(n,a){const i=a.size;for(let o=0;o<i;o++)for(let s=0;s<i;s++)a.isReserved(s,o)||a.xor(s,o,A(n,s,o))},t.getBestMask=function(n,a){const i=Object.keys(t.Patterns).length;let o=0,s=1/0;for(let l=0;l<i;l++){a(l),t.applyMask(l,n);const u=t.getPenaltyN1(n)+t.getPenaltyN2(n)+t.getPenaltyN3(n)+t.getPenaltyN4(n);t.applyMask(l,n),u<s&&(s=u,o=l)}return o}})(xv);var _c={};const ya=Wc,Zc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],jc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];_c.getBlocksCount=function(e,A){switch(A){case ya.L:return Zc[(e-1)*4+0];case ya.M:return Zc[(e-1)*4+1];case ya.Q:return Zc[(e-1)*4+2];case ya.H:return Zc[(e-1)*4+3];default:return}},_c.getTotalCodewordsCount=function(e,A){switch(A){case ya.L:return jc[(e-1)*4+0];case ya.M:return jc[(e-1)*4+1];case ya.Q:return jc[(e-1)*4+2];case ya.H:return jc[(e-1)*4+3];default:return}};var Rv={},Jc={};const js=new Uint8Array(512),Kc=new Uint8Array(256);(function(){let e=1;for(let A=0;A<255;A++)js[A]=e,Kc[e]=A,e<<=1,e&256&&(e^=285);for(let A=255;A<512;A++)js[A]=js[A-255]})(),Jc.log=function(e){if(e<1)throw new Error("log("+e+")");return Kc[e]},Jc.exp=function(e){return js[e]},Jc.mul=function(e,A){return e===0||A===0?0:js[Kc[e]+Kc[A]]},function(t){const e=Jc;t.mul=function(r,n){const a=new Uint8Array(r.length+n.length-1);for(let i=0;i<r.length;i++)for(let o=0;o<n.length;o++)a[i+o]^=e.mul(r[i],n[o]);return a},t.mod=function(r,n){let a=new Uint8Array(r);for(;a.length-n.length>=0;){const i=a[0];for(let s=0;s<n.length;s++)a[s]^=e.mul(n[s],i);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},t.generateECPolynomial=function(r){let n=new Uint8Array([1]);for(let a=0;a<r;a++)n=t.mul(n,new Uint8Array([1,e.exp(a)]));return n}}(Rv);const Iv=Rv;function e0(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}e0.prototype.initialize=function(e){this.degree=e,this.genPoly=Iv.generateECPolynomial(this.degree)},e0.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const A=new Uint8Array(e.length+this.degree);A.set(e);const r=Iv.mod(A,this.genPoly),n=this.degree-r.length;if(n>0){const a=new Uint8Array(this.degree);return a.set(r,n),a}return r};var DI=e0,Vv={},ba={},t0={};t0.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Vn={};const Mv="[0-9]+",PI="[A-Z $%*+\\-./:]+";let Js="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Js=Js.replace(/u/g,"\\u");const WI="(?:(?![A-Z0-9 $%*+\\-./:]|"+Js+`)(?:.|[\r
6
6
  ]))+`;Vn.KANJI=new RegExp(Js,"g"),Vn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Vn.BYTE=new RegExp(WI,"g"),Vn.NUMERIC=new RegExp(Mv,"g"),Vn.ALPHANUMERIC=new RegExp(PI,"g");const _I=new RegExp("^"+Js+"$"),ZI=new RegExp("^"+Mv+"$"),jI=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vn.testKanji=function(e){return _I.test(e)},Vn.testNumeric=function(e){return ZI.test(e)},Vn.testAlphanumeric=function(e){return jI.test(e)},function(t){const e=t0,A=Vn;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(a,i){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?a.ccBits[0]:i<27?a.ccBits[1]:a.ccBits[2]},t.getBestModeForData=function(a){return A.testNumeric(a)?t.NUMERIC:A.testAlphanumeric(a)?t.ALPHANUMERIC:A.testKanji(a)?t.KANJI:t.BYTE},t.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},t.isValid=function(a){return a&&a.bit&&a.ccBits};function r(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+n)}}t.from=function(a,i){if(t.isValid(a))return a;try{return r(a)}catch{return i}}}(ba),function(t){const e=Dr,A=_c,r=Wc,n=ba,a=t0,i=7973,o=e.getBCHDigit(i);function s(g,f,w){for(let v=1;v<=40;v++)if(f<=t.getCapacity(v,w,g))return v}function l(g,f){return n.getCharCountIndicator(g,f)+4}function u(g,f){let w=0;return g.forEach(function(v){const C=l(v.mode,f);w+=C+v.getBitsLength()}),w}function d(g,f){for(let w=1;w<=40;w++)if(u(g,w)<=t.getCapacity(w,f,n.MIXED))return w}t.from=function(f,w){return a.isValid(f)?parseInt(f,10):w},t.getCapacity=function(f,w,v){if(!a.isValid(f))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=n.BYTE);const C=e.getSymbolTotalCodewords(f),B=A.getTotalCodewordsCount(f,w),y=(C-B)*8;if(v===n.MIXED)return y;const U=y-l(v,f);switch(v){case n.NUMERIC:return Math.floor(U/10*3);case n.ALPHANUMERIC:return Math.floor(U/11*2);case n.KANJI:return Math.floor(U/13);case n.BYTE:default:return Math.floor(U/8)}},t.getBestVersionForData=function(f,w){let v;const C=r.from(w,r.M);if(Array.isArray(f)){if(f.length>1)return d(f,C);if(f.length===0)return 1;v=f[0]}else v=f;return s(v.mode,v.getLength(),C)},t.getEncodedBits=function(f){if(!a.isValid(f)||f<7)throw new Error("Invalid QR Code version");let w=f<<12;for(;e.getBCHDigit(w)-o>=0;)w^=i<<e.getBCHDigit(w)-o;return f<<12|w}}(Vv);var Lv={};const A0=Dr,Ov=1335,JI=21522,kv=A0.getBCHDigit(Ov);Lv.getEncodedBits=function(e,A){const r=e.bit<<3|A;let n=r<<10;for(;A0.getBCHDigit(n)-kv>=0;)n^=Ov<<A0.getBCHDigit(n)-kv;return(r<<10|n)^JI};var Hv={};const KI=ba;function ho(t){this.mode=KI.NUMERIC,this.data=t.toString()}ho.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},ho.prototype.getLength=function(){return this.data.length},ho.prototype.getBitsLength=function(){return ho.getBitsLength(this.data.length)},ho.prototype.write=function(e){let A,r,n;for(A=0;A+3<=this.data.length;A+=3)r=this.data.substr(A,3),n=parseInt(r,10),e.put(n,10);const a=this.data.length-A;a>0&&(r=this.data.substr(A),n=parseInt(r,10),e.put(n,a*3+1))};var GI=ho;const zI=ba,r0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function po(t){this.mode=zI.ALPHANUMERIC,this.data=t}po.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},po.prototype.getLength=function(){return this.data.length},po.prototype.getBitsLength=function(){return po.getBitsLength(this.data.length)},po.prototype.write=function(e){let A;for(A=0;A+2<=this.data.length;A+=2){let r=r0.indexOf(this.data[A])*45;r+=r0.indexOf(this.data[A+1]),e.put(r,11)}this.data.length%2&&e.put(r0.indexOf(this.data[A]),6)};var YI=po;const XI=ba;function go(t){this.mode=XI.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}go.getBitsLength=function(e){return e*8},go.prototype.getLength=function(){return this.data.length},go.prototype.getBitsLength=function(){return go.getBitsLength(this.data.length)},go.prototype.write=function(t){for(let e=0,A=this.data.length;e<A;e++)t.put(this.data[e],8)};var qI=go;const $I=ba,eV=Dr;function mo(t){this.mode=$I.KANJI,this.data=t}mo.getBitsLength=function(e){return e*13},mo.prototype.getLength=function(){return this.data.length},mo.prototype.getBitsLength=function(){return mo.getBitsLength(this.data.length)},mo.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let A=eV.toSJIS(this.data[e]);if(A>=33088&&A<=40956)A-=33088;else if(A>=57408&&A<=60351)A-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
7
  Make sure your charset is UTF-8`);A=(A>>>8&255)*192+(A&255),t.put(A,13)}};var tV=mo,Dv={exports:{}};(function(t){var e={single_source_shortest_paths:function(A,r,n){var a={},i={};i[r]=0;var o=e.PriorityQueue.make();o.push(r,0);for(var s,l,u,d,g,f,w,v,C;!o.empty();){s=o.pop(),l=s.value,d=s.cost,g=A[l]||{};for(u in g)g.hasOwnProperty(u)&&(f=g[u],w=d+f,v=i[u],C=typeof i[u]>"u",(C||v>w)&&(i[u]=w,o.push(u,w),a[u]=l))}if(typeof n<"u"&&typeof i[n]>"u"){var B=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(B)}return a},extract_shortest_path_from_predecessor_list:function(A,r){for(var n=[],a=r;a;)n.push(a),A[a],a=A[a];return n.reverse(),n},find_path:function(A,r,n){var a=e.single_source_shortest_paths(A,r,n);return e.extract_shortest_path_from_predecessor_list(a,n)},PriorityQueue:{make:function(A){var r=e.PriorityQueue,n={},a;A=A||{};for(a in r)r.hasOwnProperty(a)&&(n[a]=r[a]);return n.queue=[],n.sorter=A.sorter||r.default_sorter,n},default_sorter:function(A,r){return A.cost-r.cost},push:function(A,r){var n={value:A,cost:r};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Dv);var AV=Dv.exports;(function(t){const e=ba,A=GI,r=YI,n=qI,a=tV,i=Vn,o=Dr,s=AV;function l(B){return unescape(encodeURIComponent(B)).length}function u(B,y,U){const Q=[];let I;for(;(I=B.exec(U))!==null;)Q.push({data:I[0],index:I.index,mode:y,length:I[0].length});return Q}function d(B){const y=u(i.NUMERIC,e.NUMERIC,B),U=u(i.ALPHANUMERIC,e.ALPHANUMERIC,B);let Q,I;return o.isKanjiModeEnabled()?(Q=u(i.BYTE,e.BYTE,B),I=u(i.KANJI,e.KANJI,B)):(Q=u(i.BYTE_KANJI,e.BYTE,B),I=[]),y.concat(U,Q,I).sort(function(R,L){return R.index-L.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function g(B,y){switch(y){case e.NUMERIC:return A.getBitsLength(B);case e.ALPHANUMERIC:return r.getBitsLength(B);case e.KANJI:return a.getBitsLength(B);case e.BYTE:return n.getBitsLength(B)}}function f(B){return B.reduce(function(y,U){const Q=y.length-1>=0?y[y.length-1]:null;return Q&&Q.mode===U.mode?(y[y.length-1].data+=U.data,y):(y.push(U),y)},[])}function w(B){const y=[];for(let U=0;U<B.length;U++){const Q=B[U];switch(Q.mode){case e.NUMERIC:y.push([Q,{data:Q.data,mode:e.ALPHANUMERIC,length:Q.length},{data:Q.data,mode:e.BYTE,length:Q.length}]);break;case e.ALPHANUMERIC:y.push([Q,{data:Q.data,mode:e.BYTE,length:Q.length}]);break;case e.KANJI:y.push([Q,{data:Q.data,mode:e.BYTE,length:l(Q.data)}]);break;case e.BYTE:y.push([{data:Q.data,mode:e.BYTE,length:l(Q.data)}])}}return y}function v(B,y){const U={},Q={start:{}};let I=["start"];for(let V=0;V<B.length;V++){const R=B[V],L=[];for(let D=0;D<R.length;D++){const P=R[D],S=""+V+D;L.push(S),U[S]={node:P,lastCount:0},Q[S]={};for(let F=0;F<I.length;F++){const O=I[F];U[O]&&U[O].node.mode===P.mode?(Q[O][S]=g(U[O].lastCount+P.length,P.mode)-g(U[O].lastCount,P.mode),U[O].lastCount+=P.length):(U[O]&&(U[O].lastCount=P.length),Q[O][S]=g(P.length,P.mode)+4+e.getCharCountIndicator(P.mode,y))}}I=L}for(let V=0;V<I.length;V++)Q[I[V]].end=0;return{map:Q,table:U}}function C(B,y){let U;const Q=e.getBestModeForData(B);if(U=e.from(y,Q),U!==e.BYTE&&U.bit<Q.bit)throw new Error('"'+B+'" cannot be encoded with mode '+e.toString(U)+`.
8
8
  Suggested mode is: `+e.toString(Q));switch(U===e.KANJI&&!o.isKanjiModeEnabled()&&(U=e.BYTE),U){case e.NUMERIC:return new A(B);case e.ALPHANUMERIC:return new r(B);case e.KANJI:return new a(B);case e.BYTE:return new n(B)}}t.fromArray=function(y){return y.reduce(function(U,Q){return typeof Q=="string"?U.push(C(Q,null)):Q.data&&U.push(C(Q.data,Q.mode)),U},[])},t.fromString=function(y,U){const Q=d(y,o.isKanjiModeEnabled()),I=w(Q),V=v(I,U),R=s.find_path(V.map,"start","end"),L=[];for(let D=1;D<R.length-1;D++)L.push(V.table[R[D]].node);return t.fromArray(f(L))},t.rawSplit=function(y){return t.fromArray(d(y,o.isKanjiModeEnabled()))}})(Hv);const Gc=Dr,n0=Wc,rV=OI,nV=kI,aV=Qv,iV=Sv,a0=xv,i0=_c,oV=DI,zc=Vv,sV=Lv,lV=ba,o0=Hv;function cV(t,e){const A=t.size,r=iV.getPositions(e);for(let n=0;n<r.length;n++){const a=r[n][0],i=r[n][1];for(let o=-1;o<=7;o++)if(!(a+o<=-1||A<=a+o))for(let s=-1;s<=7;s++)i+s<=-1||A<=i+s||(o>=0&&o<=6&&(s===0||s===6)||s>=0&&s<=6&&(o===0||o===6)||o>=2&&o<=4&&s>=2&&s<=4?t.set(a+o,i+s,!0,!0):t.set(a+o,i+s,!1,!0))}}function uV(t){const e=t.size;for(let A=8;A<e-8;A++){const r=A%2===0;t.set(A,6,r,!0),t.set(6,A,r,!0)}}function fV(t,e){const A=aV.getPositions(e);for(let r=0;r<A.length;r++){const n=A[r][0],a=A[r][1];for(let i=-2;i<=2;i++)for(let o=-2;o<=2;o++)i===-2||i===2||o===-2||o===2||i===0&&o===0?t.set(n+i,a+o,!0,!0):t.set(n+i,a+o,!1,!0)}}function hV(t,e){const A=t.size,r=zc.getEncodedBits(e);let n,a,i;for(let o=0;o<18;o++)n=Math.floor(o/3),a=o%3+A-8-3,i=(r>>o&1)===1,t.set(n,a,i,!0),t.set(a,n,i,!0)}function s0(t,e,A){const r=t.size,n=sV.getEncodedBits(e,A);let a,i;for(a=0;a<15;a++)i=(n>>a&1)===1,a<6?t.set(a,8,i,!0):a<8?t.set(a+1,8,i,!0):t.set(r-15+a,8,i,!0),a<8?t.set(8,r-a-1,i,!0):a<9?t.set(8,15-a-1+1,i,!0):t.set(8,15-a-1,i,!0);t.set(r-8,8,1,!0)}function dV(t,e){const A=t.size;let r=-1,n=A-1,a=7,i=0;for(let o=A-1;o>0;o-=2)for(o===6&&o--;;){for(let s=0;s<2;s++)if(!t.isReserved(n,o-s)){let l=!1;i<e.length&&(l=(e[i]>>>a&1)===1),t.set(n,o-s,l),a--,a===-1&&(i++,a=7)}if(n+=r,n<0||A<=n){n-=r,r=-r;break}}}function pV(t,e,A){const r=new rV;A.forEach(function(s){r.put(s.mode.bit,4),r.put(s.getLength(),lV.getCharCountIndicator(s.mode,t)),s.write(r)});const n=Gc.getSymbolTotalCodewords(t),a=i0.getTotalCodewordsCount(t,e),i=(n-a)*8;for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const o=(i-r.getLengthInBits())/8;for(let s=0;s<o;s++)r.put(s%2?17:236,8);return gV(r,t,e)}function gV(t,e,A){const r=Gc.getSymbolTotalCodewords(e),n=i0.getTotalCodewordsCount(e,A),a=r-n,i=i0.getBlocksCount(e,A),o=r%i,s=i-o,l=Math.floor(r/i),u=Math.floor(a/i),d=u+1,g=l-u,f=new oV(g);let w=0;const v=new Array(i),C=new Array(i);let B=0;const y=new Uint8Array(t.buffer);for(let R=0;R<i;R++){const L=R<s?u:d;v[R]=y.slice(w,w+L),C[R]=f.encode(v[R]),w+=L,B=Math.max(B,L)}const U=new Uint8Array(r);let Q=0,I,V;for(I=0;I<B;I++)for(V=0;V<i;V++)I<v[V].length&&(U[Q++]=v[V][I]);for(I=0;I<g;I++)for(V=0;V<i;V++)U[Q++]=C[V][I];return U}function mV(t,e,A,r){let n;if(Array.isArray(t))n=o0.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){const u=o0.rawSplit(t);l=zc.getBestVersionForData(u,A)}n=o0.fromString(t,l||40)}else throw new Error("Invalid data");const a=zc.getBestVersionForData(n,A);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "template-designer",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "模板拖拽设计器组件库",
5
5
  "main": "dist/template-designer.umd.js",
6
6
  "module": "dist/template-designer.esm.js",