@opengis/bi 1.2.1 → 1.2.2

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.
@@ -1,8 +1,8 @@
1
1
  var ge = Object.defineProperty;
2
2
  var ke = (c, e, t) => e in c ? ge(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t;
3
3
  var k = (c, e, t) => ke(c, typeof e != "symbol" ? e + "" : e, t);
4
- import { _ as de, c as xe } from "./import-file-D06AZEtP.js";
5
- import { openBlock as V, createElementBlock as J, createCommentVNode as be } from "vue";
4
+ import { _ as de, c as xe } from "./import-file-D8jh74Dz.js";
5
+ import { createElementBlock as V, openBlock as J, createCommentVNode as be } from "vue";
6
6
  function Q() {
7
7
  return {
8
8
  async: !1,
@@ -81,15 +81,8 @@ function _(c, e, t) {
81
81
  if (n === 0)
82
82
  return "";
83
83
  let s = 0;
84
- for (; s < n; ) {
85
- const i = c.charAt(n - s - 1);
86
- if (i === e && !t)
87
- s++;
88
- else if (i !== e && t)
89
- s++;
90
- else
91
- break;
92
- }
84
+ for (; s < n && c.charAt(n - s - 1) === e; )
85
+ s++;
93
86
  return c.slice(0, n - s);
94
87
  }
95
88
  function Te(c, e) {
@@ -142,7 +135,7 @@ function ze(c, e) {
142
135
  }).join(`
143
136
  `);
144
137
  }
145
- class v {
138
+ class q {
146
139
  // set by the lexer
147
140
  constructor(e) {
148
141
  k(this, "options");
@@ -289,7 +282,7 @@ ${p}` : p;
289
282
  `, 1)[0], x = !p.trim(), d = 0;
290
283
  if (this.options.pedantic ? (d = 2, a = p.trimStart()) : x ? d = t[1].length + 1 : (d = t[2].search(/[^ ]/), d = d > 4 ? 1 : d, a = p.slice(d), d += t[1].length), x && /^[ \t]*$/.test(g) && (h += g + `
291
284
  `, e = e.substring(g.length + 1), o = !0), !o) {
292
- const Z = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), W = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), X = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), G = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`), fe = new RegExp(`^ {0,${Math.min(3, d - 1)}}<[a-z].*>`, "i");
285
+ const Z = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), W = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), X = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), G = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`), fe = new RegExp(`^ {0,${Math.min(3, d - 1)}}<(?:[a-z].*>|!--)`, "i");
293
286
  for (; e; ) {
294
287
  const M = e.split(`
295
288
  `, 1)[0];
@@ -619,25 +612,25 @@ ${p}` : p;
619
612
  }
620
613
  }
621
614
  }
622
- const Re = /^(?:[ \t]*(?:\n|$))+/, _e = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ie = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Se = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, le = /(?:[*+-]|\d{1,9}[.)])/, oe = f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, le).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ae = /^[^\n]+/, O = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ee = f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", O).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Le = f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, le).getRegex(), P = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", H = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, qe = f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", H).replace("tag", P).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = f(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", P).getRegex(), ve = f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), N = {
623
- blockquote: ve,
615
+ const Re = /^(?:[ \t]*(?:\n|$))+/, _e = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ie = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Se = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, le = /(?:[*+-]|\d{1,9}[.)])/, oe = f(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, le).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ae = /^[^\n]+/, O = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ee = f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", O).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Le = f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, le).getRegex(), P = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", H = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ve = f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", H).replace("tag", P).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = f(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", P).getRegex(), qe = f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), N = {
616
+ blockquote: qe,
624
617
  code: _e,
625
618
  def: Ee,
626
619
  fences: Ie,
627
620
  heading: Se,
628
621
  hr: E,
629
- html: qe,
622
+ html: ve,
630
623
  lheading: oe,
631
624
  list: Le,
632
625
  newline: Re,
633
626
  paragraph: ae,
634
627
  table: S,
635
628
  text: Ae
636
- }, ne = f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", P).getRegex(), Be = {
629
+ }, ne = f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", P).getRegex(), Ce = {
637
630
  ...N,
638
631
  table: ne,
639
632
  paragraph: f(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", P).getRegex()
640
- }, Ce = {
633
+ }, Be = {
641
634
  ...N,
642
635
  html: f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", H).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
643
636
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
@@ -647,7 +640,7 @@ const Re = /^(?:[ \t]*(?:\n|$))+/, _e = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
647
640
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
648
641
  paragraph: f(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
649
642
  ]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
650
- }, ce = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Pe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, he = /^( {2,}|\\)\n(?!\s*$)/, Ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, L = "\\p{P}\\p{S}", Me = f(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, L).getRegex(), De = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Qe = f(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, L).getRegex(), je = f("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, L).getRegex(), Oe = f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, L).getRegex(), He = f(/\\([punct])/, "gu").replace(/punct/g, L).getRegex(), Ne = f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ue = f(H).replace("(?:-->|$)", "-->").getRegex(), Fe = f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ue).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), B = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, We = f(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", B).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), pe = f(/^!?\[(label)\]\[(ref)\]/).replace("label", B).replace("ref", O).getRegex(), ue = f(/^!?\[(ref)\](?:\[\])?/).replace("ref", O).getRegex(), Xe = f("reflink|nolink(?!\\()", "g").replace("reflink", pe).replace("nolink", ue).getRegex(), U = {
643
+ }, ce = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Pe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, he = /^( {2,}|\\)\n(?!\s*$)/, Ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, L = "\\p{P}\\p{S}", Me = f(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, L).getRegex(), De = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Qe = f(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, L).getRegex(), je = f("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, L).getRegex(), Oe = f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, L).getRegex(), He = f(/\\([punct])/, "gu").replace(/punct/g, L).getRegex(), Ne = f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ue = f(H).replace("(?:-->|$)", "-->").getRegex(), Fe = f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ue).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), C = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, We = f(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", C).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), pe = f(/^!?\[(label)\]\[(ref)\]/).replace("label", C).replace("ref", O).getRegex(), ue = f(/^!?\[(ref)\](?:\[\])?/).replace("ref", O).getRegex(), Xe = f("reflink|nolink(?!\\()", "g").replace("reflink", pe).replace("nolink", ue).getRegex(), U = {
651
644
  _backpedal: S,
652
645
  // only used for GFM url
653
646
  anyPunctuation: He,
@@ -670,23 +663,23 @@ const Re = /^(?:[ \t]*(?:\n|$))+/, _e = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*
670
663
  url: S
671
664
  }, Ge = {
672
665
  ...U,
673
- link: f(/^!?\[(label)\]\((.*?)\)/).replace("label", B).getRegex(),
674
- reflink: f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", B).getRegex()
666
+ link: f(/^!?\[(label)\]\((.*?)\)/).replace("label", C).getRegex(),
667
+ reflink: f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", C).getRegex()
675
668
  }, D = {
676
669
  ...U,
677
670
  escape: f(ce).replace("])", "~|])").getRegex(),
678
671
  url: f(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
679
672
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
680
- del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
673
+ del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
681
674
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
682
675
  }, Ve = {
683
676
  ...D,
684
677
  br: f(he).replace("{2,}", "*").getRegex(),
685
678
  text: f(D.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
686
- }, q = {
679
+ }, v = {
687
680
  normal: N,
688
- gfm: Be,
689
- pedantic: Ce
681
+ gfm: Ce,
682
+ pedantic: Be
690
683
  }, I = {
691
684
  normal: U,
692
685
  gfm: D,
@@ -700,23 +693,23 @@ class w {
700
693
  k(this, "state");
701
694
  k(this, "tokenizer");
702
695
  k(this, "inlineQueue");
703
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || z, this.options.tokenizer = this.options.tokenizer || new v(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
696
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || z, this.options.tokenizer = this.options.tokenizer || new q(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
704
697
  inLink: !1,
705
698
  inRawBlock: !1,
706
699
  top: !0
707
700
  };
708
701
  const t = {
709
- block: q.normal,
702
+ block: v.normal,
710
703
  inline: I.normal
711
704
  };
712
- this.options.pedantic ? (t.block = q.pedantic, t.inline = I.pedantic) : this.options.gfm && (t.block = q.gfm, this.options.breaks ? t.inline = I.breaks : t.inline = I.gfm), this.tokenizer.rules = t;
705
+ this.options.pedantic ? (t.block = v.pedantic, t.inline = I.pedantic) : this.options.gfm && (t.block = v.gfm, this.options.breaks ? t.inline = I.breaks : t.inline = I.gfm), this.tokenizer.rules = t;
713
706
  }
714
707
  /**
715
708
  * Expose Rules
716
709
  */
717
710
  static get rules() {
718
711
  return {
719
- block: q,
712
+ block: v,
720
713
  inline: I
721
714
  };
722
715
  }
@@ -916,7 +909,7 @@ class w {
916
909
  return t;
917
910
  }
918
911
  }
919
- class C {
912
+ class B {
920
913
  // set by the parser
921
914
  constructor(e) {
922
915
  k(this, "options");
@@ -1084,7 +1077,7 @@ class y {
1084
1077
  k(this, "options");
1085
1078
  k(this, "renderer");
1086
1079
  k(this, "textRenderer");
1087
- this.options = e || z, this.options.renderer = this.options.renderer || new C(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new F();
1080
+ this.options = e || z, this.options.renderer = this.options.renderer || new B(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new F();
1088
1081
  }
1089
1082
  /**
1090
1083
  * Static Parse Method
@@ -1290,10 +1283,10 @@ class Je {
1290
1283
  k(this, "parse", this.parseMarkdown(!0));
1291
1284
  k(this, "parseInline", this.parseMarkdown(!1));
1292
1285
  k(this, "Parser", y);
1293
- k(this, "Renderer", C);
1286
+ k(this, "Renderer", B);
1294
1287
  k(this, "TextRenderer", F);
1295
1288
  k(this, "Lexer", w);
1296
- k(this, "Tokenizer", v);
1289
+ k(this, "Tokenizer", q);
1297
1290
  k(this, "Hooks", A);
1298
1291
  this.use(...e);
1299
1292
  }
@@ -1351,7 +1344,7 @@ class Je {
1351
1344
  }
1352
1345
  "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
1353
1346
  }), s.extensions = t), n.renderer) {
1354
- const i = this.defaults.renderer || new C(this.defaults);
1347
+ const i = this.defaults.renderer || new B(this.defaults);
1355
1348
  for (const r in n.renderer) {
1356
1349
  if (!(r in i))
1357
1350
  throw new Error(`renderer '${r}' does not exist`);
@@ -1366,7 +1359,7 @@ class Je {
1366
1359
  s.renderer = i;
1367
1360
  }
1368
1361
  if (n.tokenizer) {
1369
- const i = this.defaults.tokenizer || new v(this.defaults);
1362
+ const i = this.defaults.tokenizer || new q(this.defaults);
1370
1363
  for (const r in n.tokenizer) {
1371
1364
  if (!(r in i))
1372
1365
  throw new Error(`tokenizer '${r}' does not exist`);
@@ -1474,11 +1467,11 @@ u.walkTokens = function(c, e) {
1474
1467
  u.parseInline = T.parseInline;
1475
1468
  u.Parser = y;
1476
1469
  u.parser = y.parse;
1477
- u.Renderer = C;
1470
+ u.Renderer = B;
1478
1471
  u.TextRenderer = F;
1479
1472
  u.Lexer = w;
1480
1473
  u.lexer = w.lex;
1481
- u.Tokenizer = v;
1474
+ u.Tokenizer = q;
1482
1475
  u.Hooks = A;
1483
1476
  u.parse = u;
1484
1477
  u.options;
@@ -1512,11 +1505,11 @@ const Ke = {
1512
1505
  }
1513
1506
  }, Ye = ["id"], et = ["innerHTML"];
1514
1507
  function tt(c, e, t, n, s, i) {
1515
- return V(), J("div", {
1508
+ return J(), V("div", {
1516
1509
  id: s.uniqueID,
1517
1510
  class: "relative select-auto h-full rounded-xl text-[12px] box-border bg-white custom-scrollbar text-widget"
1518
1511
  }, [
1519
- s.markedText ? (V(), J("div", {
1512
+ s.markedText ? (J(), V("div", {
1520
1513
  key: 0,
1521
1514
  innerHTML: s.markedText
1522
1515
  }, null, 8, et)) : be("", !0)
package/package.json CHANGED
@@ -1,77 +1,78 @@
1
- {
2
- "name": "@opengis/bi",
3
- "version": "1.2.1",
4
- "description": "BI data visualization module",
5
- "main": "dist/bi.js",
6
- "browser": "dist/bi.umd.cjs",
7
- "type": "module",
8
- "files": [
9
- "dist",
10
- "server",
11
- "plugin.js",
12
- "utils.js"
13
- ],
14
- "scripts": {
15
- "prepublishOnly": "npm run build",
16
- "debug": "node --watch-path=server server",
17
- "dev": "vite",
18
- "type-check": "vue-tsc --noEmit",
19
- "build": "vite build",
20
- "build-app": "cross-env APP=true vite build",
21
- "lint": "eslint .",
22
- "format": "prettier --write .",
23
- "test": "node --test",
24
- "test21": "node --test ./test/plugins/*",
25
- "start": "node server.js",
26
- "prod": "NODE_ENV=production npm run start",
27
- "docs:i": "npm install --prefix ./docs",
28
- "docs:dev": "npm run --prefix ./docs docs:dev",
29
- "docs:build": "npm run --prefix ./docs docs:build",
30
- "docs:preview": "npm run --prefix ./docs docs:preview",
31
- "adduser": "node script/adduser.js"
32
- },
33
- "keywords": [
34
- "bi",
35
- "data visualization",
36
- "chart",
37
- "opengis",
38
- "vue",
39
- "fastify"
40
- ],
41
- "author": "Softpro",
42
- "license": "ISC",
43
- "dependencies": {},
44
- "devDependencies": {
45
- "@highlightjs/vue-plugin": "github:highlightjs/vue-plugin",
46
- "@jspreadsheet-ce/vue": "^5.0.0",
47
- "@mapbox/sphericalmercator": "^1.2.0",
48
- "@opengis/fastify-table": "^2.0.33",
49
- "@opengis/v3-core": "^0.3.93",
50
- "@opengis/v3-filter": "^0.0.71",
51
- "cross-env": "^10.1.0",
52
- "@turf/turf": "^7.1.0",
53
- "axios": "^1.3.1",
54
- "echarts": "^5.5.1",
55
- "highlight.js": "^11.10.0",
56
- "marked": "^14.1.2",
57
- "vite": "^5.1.5",
58
- "vue": "^3.4.27",
59
- "vue-router": "^4.4.3",
60
- "@eslint/eslintrc": "^3.1.0",
61
- "@eslint/js": "^9.12.0",
62
- "@types/echarts": "^4.9.22",
63
- "@types/node": "^22.7.5",
64
- "@typescript-eslint/eslint-plugin": "^6.21.0",
65
- "@vitejs/plugin-vue": "^5.1.4",
66
- "eslint": "^8.57.1",
67
- "eslint-config-airbnb-base": "^15.0.0",
68
- "eslint-config-prettier": "^9.1.0",
69
- "eslint-plugin-vue": "^9.29.0",
70
- "globals": "^15.10.0",
71
- "prettier": "^3.3.3",
72
- "sass-embedded": "1.89.2",
73
- "typescript": "^5.4.5",
74
- "typescript-eslint": "~8.8.1",
75
- "vue-tsc": "^2.1.6"
76
- }
1
+ {
2
+ "name": "@opengis/bi",
3
+ "version": "1.2.2",
4
+ "description": "BI data visualization module",
5
+ "main": "dist/bi.js",
6
+ "browser": "dist/bi.umd.cjs",
7
+ "type": "module",
8
+ "files": [
9
+ "dist",
10
+ "server",
11
+ "plugin.js",
12
+ "utils.js"
13
+ ],
14
+ "scripts": {
15
+ "prepublishOnly": "npm run build",
16
+ "debug": "node --watch-path=server server",
17
+ "dev": "vite",
18
+ "type-check": "vue-tsc --noEmit",
19
+ "build": "vite build",
20
+ "build-app": "cross-env APP=true vite build",
21
+ "lint": "eslint .",
22
+ "format": "prettier --write .",
23
+ "test": "node --test",
24
+ "test21": "node --test ./test/plugins/*",
25
+ "start": "node server.js",
26
+ "prod": "NODE_ENV=production npm run start",
27
+ "docs:i": "npm install --prefix ./docs",
28
+ "docs:dev": "npm run --prefix ./docs docs:dev",
29
+ "docs:build": "npm run --prefix ./docs docs:build",
30
+ "docs:preview": "npm run --prefix ./docs docs:preview",
31
+ "adduser": "node script/adduser.js"
32
+ },
33
+ "keywords": [
34
+ "bi",
35
+ "data visualization",
36
+ "chart",
37
+ "opengis",
38
+ "vue",
39
+ "fastify"
40
+ ],
41
+ "author": "Softpro",
42
+ "license": "ISC",
43
+ "dependencies": {
44
+ "@mapbox/sphericalmercator": "^1.2.0"
45
+ },
46
+ "devDependencies": {
47
+ "@highlightjs/vue-plugin": "github:highlightjs/vue-plugin",
48
+ "@jspreadsheet-ce/vue": "^5.0.0",
49
+ "@opengis/fastify-table": "^2.0.33",
50
+ "@opengis/v3-core": "^0.3.93",
51
+ "@opengis/v3-filter": "^0.0.71",
52
+ "cross-env": "^10.1.0",
53
+ "@turf/turf": "^7.1.0",
54
+ "axios": "^1.3.1",
55
+ "echarts": "^5.5.1",
56
+ "highlight.js": "^11.10.0",
57
+ "marked": "^14.1.2",
58
+ "vite": "^5.1.5",
59
+ "vue": "^3.4.27",
60
+ "vue-router": "^4.4.3",
61
+ "@eslint/eslintrc": "^3.1.0",
62
+ "@eslint/js": "^9.12.0",
63
+ "@types/echarts": "^4.9.22",
64
+ "@types/node": "^22.7.5",
65
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
66
+ "@vitejs/plugin-vue": "^5.1.4",
67
+ "eslint": "^8.57.1",
68
+ "eslint-config-airbnb-base": "^15.0.0",
69
+ "eslint-config-prettier": "^9.1.0",
70
+ "eslint-plugin-vue": "^9.29.0",
71
+ "globals": "^15.10.0",
72
+ "prettier": "^3.3.3",
73
+ "sass-embedded": "1.89.2",
74
+ "typescript": "^5.4.5",
75
+ "typescript-eslint": "~8.8.1",
76
+ "vue-tsc": "^2.1.6"
77
+ }
77
78
  }
@@ -48,6 +48,7 @@ export default async function dataAPI(req, reply) {
48
48
  const { x, cls, groupbyCls, metric, table, where, tableSQL, groupby, xName, yName, xType, yType, error = error1 } =
49
49
  normalizeData(widgetData, query, columnTypes);
50
50
 
51
+ const limit = Math.min(query.limit || widgetData.limit || maxLimit, maxLimit);
51
52
  // if (error) { return reply.status(400).send(error); }
52
53
 
53
54
  // auto Index
@@ -79,7 +80,7 @@ export default async function dataAPI(req, reply) {
79
80
  const groupData = groupby
80
81
  ? await pg
81
82
  .query(
82
- `select ${groupby} as name ,count(*) from ${tableSQL || table} group by ${groupby} order by count(*) desc limit 20`
83
+ `select ${groupby} as name ,count(*) from ${tableSQL || table} group by ${groupby} order by count(*) desc 20`
83
84
  )
84
85
  .then((el) => el.rows)
85
86
  : null;
@@ -100,7 +101,7 @@ export default async function dataAPI(req, reply) {
100
101
  : {};
101
102
 
102
103
  const optimizedSQL = widgetData?.sql
103
- ? `${widgetData.sql} ${fData?.q && false ? fData?.q : ''} limit ${Math.min(query.limit || widgetData.limit || maxLimit, maxLimit)}`
104
+ ? `${widgetData.sql} ${fData?.q && false ? fData?.q : ''} limit ${limit}`
104
105
  : (fData?.optimizedSQL || `select * from ${tableSQL || table}`);
105
106
 
106
107
  if (type?.includes('bar') && !metric?.length) {
@@ -118,7 +119,7 @@ export default async function dataAPI(req, reply) {
118
119
  groupby,
119
120
  order,
120
121
  samples,
121
- limit: Math.min(query.limit || maxLimit, maxLimit),
122
+ limit,
122
123
  xType,
123
124
  fx: widgetData.fx,
124
125
  });
@@ -9,7 +9,7 @@ import {
9
9
  config, pgClients, getMeta, getFolder, getFilterSQL, eventStream, logger,
10
10
  } from '@opengis/fastify-table/utils.js';
11
11
 
12
- import convertJSONToXls from '../utils/convertJSONToXls.js';
12
+ // import convertJSONToXls from '../utils/convertJSONToXls.js';
13
13
  import convertJSONToCSV from '../utils/convertJSONToCSV.js';
14
14
  import metaFormat from '../utils/metaFormat.js';
15
15
 
@@ -107,6 +107,7 @@ export default async function datasetDataExport(req, reply) {
107
107
  if (!query.nocache && ['xlsx', 'csv'].includes(format)) {
108
108
  send(`Знайдено файл формату json. Пропуск обробки даних. Початок конвертації в ${format}...`);
109
109
  if (format === 'xlsx') {
110
+ return 'temporary not work';
110
111
  return convertJSONToXls({
111
112
  filepathJSON,
112
113
  colmodel: dataset.columns,