@dbml/core 10.3.0-alpha.1 → 10.3.0-alpha.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.
- package/lib/node_modules/parsimmon/build/parsimmon.umd.min.cjs +16 -0
- package/lib/node_modules/parsimmon/build/parsimmon.umd.min.mjs +689 -0
- package/lib/node_modules/pluralize/pluralize.cjs +1 -0
- package/lib/node_modules/pluralize/pluralize.mjs +276 -0
- package/lib/packages/dbml-core/node_modules/lodash/lodash.cjs +20 -0
- package/lib/packages/dbml-core/node_modules/lodash/lodash.mjs +3306 -0
- package/lib/packages/dbml-core/package.json.cjs +1 -1
- package/lib/packages/dbml-core/package.json.mjs +1 -1
- package/lib/parse/deprecated/dbmlParser.cjs +3 -3
- package/lib/parse/deprecated/dbmlParser.mjs +27 -25
- package/lib/parse/deprecated/mssql/base_parsers.cjs +1 -1
- package/lib/parse/deprecated/mssql/base_parsers.mjs +38 -38
- package/lib/parse/deprecated/mssql/column_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/column_definition/index.mjs +28 -28
- package/lib/parse/deprecated/mssql/constraint_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/constraint_definition/index.mjs +24 -24
- package/lib/parse/deprecated/mssql/expression.cjs +1 -1
- package/lib/parse/deprecated/mssql/expression.mjs +27 -27
- package/lib/parse/deprecated/mssql/fk_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/fk_definition/index.mjs +20 -20
- package/lib/parse/deprecated/mssql/index_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/index_definition/index.mjs +21 -21
- package/lib/parse/deprecated/mssql/keyword_utils.cjs +1 -1
- package/lib/parse/deprecated/mssql/keyword_utils.mjs +13 -13
- package/lib/parse/deprecated/mssql/statements/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/index.mjs +28 -28
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.mjs +24 -24
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.mjs +16 -16
- package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.mjs +31 -31
- package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.mjs +20 -20
- package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.mjs +21 -21
- package/lib/parse/deprecated/mssql/utils.cjs +1 -1
- package/lib/parse/deprecated/mssql/utils.mjs +23 -23
- package/lib/parse/deprecated/mssql/whitespaces.cjs +1 -1
- package/lib/parse/deprecated/mssql/whitespaces.mjs +11 -11
- package/lib/parse/deprecated/mysqlParser.cjs +6 -6
- package/lib/parse/deprecated/mysqlParser.mjs +20 -18
- package/lib/parse/deprecated/postgresParser.cjs +2 -2
- package/lib/parse/deprecated/postgresParser.mjs +25 -23
- package/lib/parse/deprecated/schemarbParser.cjs +10 -10
- package/lib/parse/deprecated/schemarbParser.mjs +313 -311
- package/package.json +2 -2
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { __esmMin as e } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import x from "
|
|
1
|
+
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
|
+
import { Comma as r, Equal as i, KeywordAtLevel0Name as a, KeywordAtLevel0Type as o, KeywordAtLevel1Name as s, KeywordAtLevel1Type as c, KeywordAtLevel2Name as l, KeywordAtLevel2Type as u, KeywordAtName as d, KeywordAtValue as f, KeywordExec as p, KeywordGo as m, KeywordSP_ADDEXTENDEDPROPERTY as h, Semicolon as g, SingleQuote as _, init_keyword_parsers as v } from "../../../keyword_parsers.mjs";
|
|
4
|
+
import { init_utils as y, makeNode as b } from "../../../utils.mjs";
|
|
5
|
+
import { handleComment as x, init_actions as S } from "./actions.mjs";
|
|
6
6
|
//#region src/parse/deprecated/mssql/statements/statement_types/comments/index.js
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
StartComment: () =>
|
|
10
|
-
EndComment: () =>
|
|
11
|
-
StartString: () =>
|
|
12
|
-
ManyDoubleSingleQuote: () =>
|
|
13
|
-
NoSingleQuote: () =>
|
|
14
|
-
StringType: (e) =>
|
|
15
|
-
NVarchar: (e) => e.StartString.then(e.StringType).skip(
|
|
16
|
-
NameOption: (e) =>
|
|
17
|
-
ValueOption: (e) =>
|
|
18
|
-
Level0Type: (e) =>
|
|
19
|
-
Level0Name: (e) =>
|
|
20
|
-
Level1Type: (e) =>
|
|
21
|
-
Level1Name: (e) =>
|
|
22
|
-
Level2Type: (e) =>
|
|
23
|
-
Level2Name: (e) =>
|
|
24
|
-
Level0Stmt: (e) =>
|
|
25
|
-
Level1Stmt: (e) =>
|
|
26
|
-
Level2Stmt: (e) =>
|
|
27
|
-
Level0Wrapper: (e) =>
|
|
28
|
-
Level1Wrapper: (e) =>
|
|
29
|
-
CommentSyntax: (e) =>
|
|
30
|
-
}),
|
|
7
|
+
var C, w, T, E = e((() => {
|
|
8
|
+
C = /* @__PURE__ */ t(n()), v(), S(), y(), w = C.default.createLanguage({
|
|
9
|
+
StartComment: () => C.default.seq(p, h),
|
|
10
|
+
EndComment: () => C.default.seq(g.atMost(1), m),
|
|
11
|
+
StartString: () => C.default.alt(_, C.default.string("N'")),
|
|
12
|
+
ManyDoubleSingleQuote: () => C.default.string("''"),
|
|
13
|
+
NoSingleQuote: () => C.default.regex(/[^']/),
|
|
14
|
+
StringType: (e) => C.default.alt(e.NoSingleQuote, e.ManyDoubleSingleQuote).atLeast(1).map((e) => e.join("")),
|
|
15
|
+
NVarchar: (e) => e.StartString.then(e.StringType).skip(_),
|
|
16
|
+
NameOption: (e) => d.skip(i).then(e.NVarchar),
|
|
17
|
+
ValueOption: (e) => f.skip(i).then(e.NVarchar),
|
|
18
|
+
Level0Type: (e) => o.skip(i).then(e.NVarchar),
|
|
19
|
+
Level0Name: (e) => a.skip(i).then(e.NVarchar),
|
|
20
|
+
Level1Type: (e) => c.skip(i).then(e.NVarchar),
|
|
21
|
+
Level1Name: (e) => s.skip(i).then(e.NVarchar),
|
|
22
|
+
Level2Type: (e) => u.skip(i).then(e.NVarchar),
|
|
23
|
+
Level2Name: (e) => l.skip(i).then(e.NVarchar),
|
|
24
|
+
Level0Stmt: (e) => C.default.seqObj(["type", e.Level0Type], r, ["name", e.Level0Name]),
|
|
25
|
+
Level1Stmt: (e) => C.default.seqObj(["type", e.Level1Type], r, ["name", e.Level1Name]),
|
|
26
|
+
Level2Stmt: (e) => C.default.seqObj(["type", e.Level2Type], r, ["name", e.Level2Name]),
|
|
27
|
+
Level0Wrapper: (e) => C.default.alt(C.default.seq(e.Level0Stmt.skip(r), e.Level1Wrapper), e.Level0Stmt).map((e) => Array.isArray(e) ? [e[0], ...e[1]] : [e]).atMost(1).map((e) => e.length === 1 ? e[0] : e),
|
|
28
|
+
Level1Wrapper: (e) => C.default.alt(C.default.seq(e.Level1Stmt.skip(r), e.Level2Stmt), e.Level1Stmt).map((e) => Array.isArray(e) ? e : [e]),
|
|
29
|
+
CommentSyntax: (e) => C.default.seqObj(e.StartComment, ["name", e.NameOption], r, ["note", e.ValueOption], r, ["level", e.Level0Wrapper], e.EndComment).map(x).thru(b())
|
|
30
|
+
}), T = w.CommentSyntax;
|
|
31
31
|
}));
|
|
32
32
|
//#endregion
|
|
33
|
-
|
|
34
|
-
export {
|
|
33
|
+
E();
|
|
34
|
+
export { T as default, E as init_comments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("
|
|
1
|
+
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("./actions.cjs");var s,c,l,u=e.__esmMin((()=>{s=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_actions(),a.init_index_definition(),c=s.default.createLanguage({CreateIndex:e=>s.default.seqMap(n.KeywordCreate,n.KeywordUnique.fallback(null),i.pKeywordClusteredOrNon.fallback(null),n.KeywordIndex,i.pIdentifier,n.KeywordOn,i.pDotDelimitedName,i.pColumnNames,o.makeIndex).thru(r.makeNode()).skip(e.IgnoredCreateIndexOptions),IgnoredCreateIndexOptions:e=>s.default.alt(a.pIgnoredIndexOption,e.IncludeIndexOption,e.WhereIndexOption).many(),IncludeIndexOption:()=>s.default.seq(n.KeywordInclude,i.pColumnNames),WhereIndexOption:e=>s.default.seq(n.KeywordWhere,e.FilterPredicate),FilterPredicate:e=>s.default.seq(e.Conjunct,s.default.seq(n.LogicalOpAnd,e.Conjunct).fallback(null)),Conjunct:e=>s.default.alt(e.Disjunct,e.Comparsion),Disjunct:()=>s.default.seq(i.pIdentifier,n.KeywordIn,r.makeList(i.pConst)),Comparsion:()=>s.default.seq(i.pIdentifier,i.pComparsionOp,i.pConst)}),l=c.CreateIndex}));u(),exports.default=l,Object.defineProperty(exports,"init_create_index",{enumerable:!0,get:function(){return u}});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { __esmMin as e } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import w from "
|
|
1
|
+
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
|
+
import { KeywordCreate as r, KeywordIn as i, KeywordInclude as a, KeywordIndex as o, KeywordOn as s, KeywordUnique as c, KeywordWhere as l, LogicalOpAnd as u, init_keyword_parsers as d } from "../../../keyword_parsers.mjs";
|
|
4
|
+
import { init_utils as f, makeList as p, makeNode as m } from "../../../utils.mjs";
|
|
5
|
+
import { init_base_parsers as h, pColumnNames as g, pComparsionOp as _, pConst as v, pDotDelimitedName as y, pIdentifier as b, pKeywordClusteredOrNon as x } from "../../../base_parsers.mjs";
|
|
6
|
+
import { init_index_definition as S, pIgnoredIndexOption as C } from "../../../index_definition/index.mjs";
|
|
7
|
+
import { init_actions as w, makeIndex as T } from "./actions.mjs";
|
|
8
8
|
//#region src/parse/deprecated/mssql/statements/statement_types/create_index/index.js
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
CreateIndex: (e) =>
|
|
12
|
-
IgnoredCreateIndexOptions: (e) =>
|
|
13
|
-
IncludeIndexOption: () =>
|
|
14
|
-
WhereIndexOption: (e) =>
|
|
15
|
-
FilterPredicate: (e) =>
|
|
16
|
-
Conjunct: (e) =>
|
|
17
|
-
Disjunct: () =>
|
|
18
|
-
Comparsion: () =>
|
|
19
|
-
}),
|
|
9
|
+
var E, D, O, k = e((() => {
|
|
10
|
+
E = /* @__PURE__ */ t(n()), d(), h(), f(), w(), S(), D = E.default.createLanguage({
|
|
11
|
+
CreateIndex: (e) => E.default.seqMap(r, c.fallback(null), x.fallback(null), o, b, s, y, g, T).thru(m()).skip(e.IgnoredCreateIndexOptions),
|
|
12
|
+
IgnoredCreateIndexOptions: (e) => E.default.alt(C, e.IncludeIndexOption, e.WhereIndexOption).many(),
|
|
13
|
+
IncludeIndexOption: () => E.default.seq(a, g),
|
|
14
|
+
WhereIndexOption: (e) => E.default.seq(l, e.FilterPredicate),
|
|
15
|
+
FilterPredicate: (e) => E.default.seq(e.Conjunct, E.default.seq(u, e.Conjunct).fallback(null)),
|
|
16
|
+
Conjunct: (e) => E.default.alt(e.Disjunct, e.Comparsion),
|
|
17
|
+
Disjunct: () => E.default.seq(b, i, p(v)),
|
|
18
|
+
Comparsion: () => E.default.seq(b, _, v)
|
|
19
|
+
}), O = D.CreateIndex;
|
|
20
20
|
}));
|
|
21
21
|
//#endregion
|
|
22
|
-
|
|
23
|
-
export {
|
|
22
|
+
k();
|
|
23
|
+
export { O as default, k as init_create_index };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("
|
|
1
|
+
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("../../../constraint_definition/index.cjs"),s=require("../../../column_definition/index.cjs"),c=require("./actions.cjs");var l,u,d,f=e.__esmMin((()=>{l=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_constraint_definition(),a.init_index_definition(),s.init_column_definition(),c.init_actions(),u=l.default.createLanguage({CreateTable:e=>l.default.seqMap(e.CreateTableKeywords,i.pDotDelimitedName,e.AsFileTableKeywords.fallback(null),r.makeList(e.Line),c.makeTable).thru(r.makeNode()).skip(e.IgnoredTableOptions),CreateTableKeywords:()=>l.default.seq(n.KeywordCreate,n.KeywordTable),AsFileTableKeywords:()=>l.default.seq(n.KeywordAs,n.KeywordFileTable),Line:e=>l.default.alt(e.SystemTimeTableOption,o.pTableConstraint,a.pTableIndex,s.pColumnsDefinition),SystemTimeTableOption:()=>l.default.seq(n.KeywordPeriodForST,r.makeList(i.pIdentifier)).result(null),IgnoredTableOptions:e=>l.default.alt(a.pIgnoredIndexOption,e.TextImageTableOption).many(),TextImageTableOption:()=>l.default.seq(n.KeywordTextImage_On,i.pIdentifier)}),d=u.CreateTable}));f(),exports.default=d,Object.defineProperty(exports,"init_create_table",{enumerable:!0,get:function(){return f}});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { __esmMin as e } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import C from "
|
|
1
|
+
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
|
+
import { KeywordAs as r, KeywordCreate as i, KeywordFileTable as a, KeywordPeriodForST as o, KeywordTable as s, KeywordTextImage_On as c, init_keyword_parsers as l } from "../../../keyword_parsers.mjs";
|
|
4
|
+
import { init_utils as u, makeList as d, makeNode as f } from "../../../utils.mjs";
|
|
5
|
+
import { init_base_parsers as p, pDotDelimitedName as m, pIdentifier as h } from "../../../base_parsers.mjs";
|
|
6
|
+
import { init_index_definition as g, pIgnoredIndexOption as _, pTableIndex as v } from "../../../index_definition/index.mjs";
|
|
7
|
+
import { init_constraint_definition as y, pTableConstraint as b } from "../../../constraint_definition/index.mjs";
|
|
8
|
+
import { init_column_definition as x, pColumnsDefinition as S } from "../../../column_definition/index.mjs";
|
|
9
|
+
import { init_actions as C, makeTable as w } from "./actions.mjs";
|
|
10
10
|
//#region src/parse/deprecated/mssql/statements/statement_types/create_table/index.js
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
CreateTable: (e) =>
|
|
14
|
-
CreateTableKeywords: () =>
|
|
15
|
-
AsFileTableKeywords: () =>
|
|
16
|
-
Line: (e) =>
|
|
17
|
-
SystemTimeTableOption: () =>
|
|
18
|
-
IgnoredTableOptions: (e) =>
|
|
19
|
-
TextImageTableOption: () =>
|
|
20
|
-
}),
|
|
11
|
+
var T, E, D, O = e((() => {
|
|
12
|
+
T = /* @__PURE__ */ t(n()), l(), p(), u(), y(), g(), x(), C(), E = T.default.createLanguage({
|
|
13
|
+
CreateTable: (e) => T.default.seqMap(e.CreateTableKeywords, m, e.AsFileTableKeywords.fallback(null), d(e.Line), w).thru(f()).skip(e.IgnoredTableOptions),
|
|
14
|
+
CreateTableKeywords: () => T.default.seq(i, s),
|
|
15
|
+
AsFileTableKeywords: () => T.default.seq(r, a),
|
|
16
|
+
Line: (e) => T.default.alt(e.SystemTimeTableOption, b, v, S),
|
|
17
|
+
SystemTimeTableOption: () => T.default.seq(o, d(h)).result(null),
|
|
18
|
+
IgnoredTableOptions: (e) => T.default.alt(_, e.TextImageTableOption).many(),
|
|
19
|
+
TextImageTableOption: () => T.default.seq(c, h)
|
|
20
|
+
}), D = E.CreateTable;
|
|
21
21
|
}));
|
|
22
22
|
//#endregion
|
|
23
|
-
|
|
24
|
-
export {
|
|
23
|
+
O();
|
|
24
|
+
export { D as default, O as init_create_table };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/lodash-es/last.cjs"),n=require("../../../node_modules/lodash-es/lodash.cjs"),r=require("
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/lodash-es/last.cjs"),n=require("../../../node_modules/lodash-es/lodash.cjs"),r=require("../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),i=require("./whitespaces.cjs"),a=require("./keyword_parsers.cjs");function o(){return function(e){return u.default.seqMap(u.default.index,e,u.default.index,(t,n,r)=>n?(typeof n.value!=`object`&&(n.value={value:n.value}),n.value.token={start:t,end:r},n):e).skip(i.default)}}function s(e,t=!1){let n=e.sepBy1(a.Comma);return t&&(n=e.sepBy(a.Comma)),u.default.seq(a.LParen,n,a.RParen).map(e=>e[1])}function c(e){return function(t){return t.skip(i.default).map(t=>(t!==0&&!t&&(t=``),{type:e,value:t}))}}function l(e){let n=null;return e.length>1&&(n=e[e.length-2]),{name:t.default(e),schemaName:n}}var u,d=e.__esmMin((()=>{u=e.__toESM(r.default),n.init_lodash(),a.init_keyword_parsers(),i.init_whitespaces()}));d(),exports.getFullTableName=l,Object.defineProperty(exports,"init_utils",{enumerable:!0,get:function(){return d}}),exports.makeList=s,exports.makeNode=o,exports.streamline=c;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { __esmMin as e } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import
|
|
3
|
-
import { init_lodash as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import l from "
|
|
1
|
+
import { __esmMin as e, __toESM as t } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import n from "../../../node_modules/lodash-es/last.mjs";
|
|
3
|
+
import { init_lodash as r } from "../../../node_modules/lodash-es/lodash.mjs";
|
|
4
|
+
import { require_parsimmon_umd_min as i } from "../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
5
|
+
import a, { init_whitespaces as o } from "./whitespaces.mjs";
|
|
6
|
+
import { Comma as s, LParen as c, RParen as l, init_keyword_parsers as u } from "./keyword_parsers.mjs";
|
|
7
7
|
//#region src/parse/deprecated/mssql/utils.js
|
|
8
|
-
function
|
|
8
|
+
function d() {
|
|
9
9
|
return function(e) {
|
|
10
|
-
return
|
|
10
|
+
return h.default.seqMap(h.default.index, e, h.default.index, (t, n, r) => n ? (typeof n.value != "object" && (n.value = { value: n.value }), n.value.token = {
|
|
11
11
|
start: t,
|
|
12
12
|
end: r
|
|
13
|
-
}, n) : e).skip(
|
|
13
|
+
}, n) : e).skip(a);
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
let n = e.sepBy1(
|
|
18
|
-
return t && (n = e.sepBy(
|
|
16
|
+
function f(e, t = !1) {
|
|
17
|
+
let n = e.sepBy1(s);
|
|
18
|
+
return t && (n = e.sepBy(s)), h.default.seq(c, n, l).map((e) => e[1]);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function p(e) {
|
|
21
21
|
return function(t) {
|
|
22
|
-
return t.skip(
|
|
22
|
+
return t.skip(a).map((t) => (t !== 0 && !t && (t = ""), {
|
|
23
23
|
type: e,
|
|
24
24
|
value: t
|
|
25
25
|
}));
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
let
|
|
30
|
-
return e.length > 1 && (
|
|
31
|
-
name:
|
|
32
|
-
schemaName:
|
|
28
|
+
function m(e) {
|
|
29
|
+
let t = null;
|
|
30
|
+
return e.length > 1 && (t = e[e.length - 2]), {
|
|
31
|
+
name: n(e),
|
|
32
|
+
schemaName: t
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
|
|
35
|
+
var h, g = e((() => {
|
|
36
|
+
h = /* @__PURE__ */ t(i()), r(), u(), o();
|
|
37
37
|
}));
|
|
38
38
|
//#endregion
|
|
39
|
-
|
|
40
|
-
export {
|
|
39
|
+
g();
|
|
40
|
+
export { m as getFullTableName, g as init_utils, f as makeList, d as makeNode, p as streamline };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs")
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs");var n,r,i,a=e.__esmMin((()=>{n=e.__toESM(t.default),r=n.default.createLanguage({WhiteSpaces:e=>n.default.alt(e.WhiteSpace,e.InlineComment,e.MulLineComment).many().desc(`whitespaces or comments`),WhiteSpace:()=>n.default.regexp(/\s/).desc(`whitespaces`),InlineComment:()=>n.default.seq(n.default.string(`--`),n.default.regexp(/[^\n\r]*/)).desc(`comments`),MulLineComment:()=>n.default.regexp(/\/\*[\s\S]+?\*\//).desc(`comments`)}),i=r.WhiteSpaces}));a(),exports.default=i,Object.defineProperty(exports,"init_whitespaces",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { __esmMin as e } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import
|
|
1
|
+
import { __esmMin as e, __toESM as t } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
3
|
//#region src/parse/deprecated/mssql/whitespaces.js
|
|
4
|
-
var
|
|
5
|
-
n =
|
|
6
|
-
WhiteSpaces: (e) =>
|
|
7
|
-
WhiteSpace: () =>
|
|
8
|
-
InlineComment: () =>
|
|
9
|
-
MulLineComment: () =>
|
|
10
|
-
}),
|
|
4
|
+
var r, i, a, o = e((() => {
|
|
5
|
+
r = /* @__PURE__ */ t(n()), i = r.default.createLanguage({
|
|
6
|
+
WhiteSpaces: (e) => r.default.alt(e.WhiteSpace, e.InlineComment, e.MulLineComment).many().desc("whitespaces or comments"),
|
|
7
|
+
WhiteSpace: () => r.default.regexp(/\s/).desc("whitespaces"),
|
|
8
|
+
InlineComment: () => r.default.seq(r.default.string("--"), r.default.regexp(/[^\n\r]*/)).desc("comments"),
|
|
9
|
+
MulLineComment: () => r.default.regexp(/\/\*[\s\S]+?\*\//).desc("comments")
|
|
10
|
+
}), a = i.WhiteSpaces;
|
|
11
11
|
}));
|
|
12
12
|
//#endregion
|
|
13
|
-
|
|
14
|
-
export {
|
|
13
|
+
o();
|
|
14
|
+
export { a as default, o as init_whitespaces };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var e=require("../../_virtual/_rolldown/runtime.cjs").__commonJSMin(((e,t)=>{require("lodash"),require("pluralize");function n(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,r)}n(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function i(e,t){t=t===void 0?{}:t;var n={},i={Rule:ja},a=ja,o=function(){return{tables:Wo,refs:Go,enums:Ko}},s=function(e){Wo.push(e)},c=`(`,l=B(`(`,!1),u=`)`,d=B(`)`,!1),f=function(e,t,n){let r=t.fields,i=t.indexes,a=t.refs;r.forEach(t=>{if(t.type.type_name.toLowerCase()===`enum`){let n=t.type.args.split(/[\s\r\n\n]*,[\s\r\n\n]*/),r=[];n.forEach(e=>{let t={name:e.replace(/'|"|`/g,``).trim()};r.push(t)});let i={name:`${e.schemaName?`${e.schemaName}_`:``}${e.name}_${t.name}_enum`,values:r};Ko.push(i),t.type.type_name=i.name}}),a.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName,t.endpoints[0].relation=`*`,Go.push(t)});let o={...e,fields:r};return n&&n.comment&&(o.note={value:n.comment}),i&&(o.indexes=i),o},p=function(e){let t=$.flatten(e.filter(e=>e.type===`pk`).map(e=>e.pk)),n=$.flatten(e.filter(e=>e.type===`fk`).map(e=>e.fk)),r=$.flatten(e.filter(e=>e.type===`index`).map(e=>e.index)),i=e.filter(e=>e.type===`field`).map(e=>e.field);if(t.length>1){let e={columns:t.map(e=>({value:e,type:`column`})),pk:!0};r.push(e)}else t.forEach(e=>i.find(t=>t.name===e).pk=!0);return n.map(e=>{let t=i.find(t=>t.name===e.endpoints[0].fieldNames[0]);t.inline_ref||=[],t.inline_ref.push({endpoint:e.endpoints[1],onUpdate:e.onUpdate,onDelete:e.onDelete})}),{fields:i,indexes:r,refs:n}},m=H(`fields`),h=function(e){return{type:`pk`,pk:e}},g=function(e){return{type:`fk`,fk:e}},_=function(e){return{type:`index`,index:e}},v=function(e){return{type:`field`,field:e}},y=function(e){return e},b=`constraint`,x=B(`CONSTRAINT`,!0),ee=function(e,t,n,r,i){let a={name:e?e[2]:null,endpoints:[{tableName:null,fieldNames:t,relation:`*`},{tableName:n.name,schemaName:n.schemaName,fieldNames:r,relation:`1`}]};return i.forEach(e=>{if(e.type===`delete`){a.onDelete=e.action;return}a.onUpdate=e.action}),a},te=`on`,ne=B(`ON`,!0),re=`update`,ie=B(`UPDATE`,!0),ae=`delete`,oe=B(`DELETE`,!0),se=function(e,t){return{type:e.toLowerCase(),action:t.toLowerCase()}},ce=`unique`,S=B(`UNIQUE`,!0),C=`key`,le=B(`KEY`,!0),ue=function(e,t,n,r,i){let a={columns:r};return t&&(a.name=t),e&&(a.unique=!0),i&&i[1]&&i[1].type===`index_type`&&i[1].value?a.type=i[1].value:n&&(a.type=n),a},de=`index`,fe=B(`INDEX`,!0),pe=function(e){return e},me=function(){return`unique`},he=`ASC`,ge=B(`ASC`,!1),_e=`DESC`,ve=B(`DESC`,!1),ye=function(e,t,n){let r={name:e,type:t};return n&&Object.assign(r,n),r},be=function(e){let t={};return e.forEach(e=>{e===`null`?t.not_null=!1:e.type==="default"&&e.value?t.dbdefault=e.value:e.type===`comment`&&e.value?t.note={value:e.value}:e!==`not_supported`&&(t[e]=!0)}),t},xe=H(`field setting`),Se=`not`,Ce=B(`NOT`,!0),we=`null`,Te=B(`NULL`,!0),Ee=function(e){return`not_null`},De=function(e){return`null`},Oe=function(e){return`pk`},ke=function(e){return`unique`},Ae=`auto_increment`,je=B(`AUTO_INCREMENT`,!0),Me=function(e){return`increment`},Ne=`unsigned`,Pe=B(`UNSIGNED`,!0),Fe=function(e){return`unsigned`},Ie=`collate`,Le=B(`COLLATE`,!0),Re=`column_format`,ze=B(`COLUMN_FORMAT`,!0),Be=`storage`,Ve=B(`STORAGE`,!0),He=`check`,Ue=B(`CHECK`,!0),We=`generated_always`,Ge=B(`GENERATED_ALWAYS`,!0),Ke=`as`,qe=B(`AS`,!0),Je=`virtual`,Ye=B(`VIRTUAL`,!0),Xe=`stored`,Ze=B(`STORED`,!0),Qe=`character`,$e=B(`CHARACTER`,!0),et=`set`,tt=B(`SET`,!0),nt=`charset`,rt=B(`CHARSET`,!0),it=function(){return`not_supported`},at=function(e){return{type:`default`,value:e}},ot=function(e){return{type:`comment`,value:e}},st=`default`,ct=B(`DEFAULT`,!0),lt=function(e){return e},ut=function(e){return{value:e,type:`string`}},dt=function(e){return{value:e,type:`number`}},ft=`true`,pt=B(`TRUE`,!0),mt=`false`,ht=B(`FALSE`,!0),gt=function(e){return{value:e,type:`boolean`}},_t=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},vt=function(e,t){let n=e;return t.forEach(e=>Object.assign(n,e[2])),n},yt=H(`table option`),w=`=`,T=B(`=`,!1),bt=function(e){return{auto_increment:e}},xt=`avg_row_length`,St=B(`AVG_ROW_LENGTH`,!0),Ct=function(e){return{avg_row_length:e}},wt=function(e){return{charset_name:e}},Tt=function(e){return{collation_name:e}},Et=`compression`,Dt=B(`COMPRESSION`,!0),Ot=`zlib`,kt=B(`ZLIB`,!0),At=`lz4`,jt=B(`LZ4`,!0),Mt=`none`,Nt=B(`NONE`,!0),Pt=function(e){return{compression:e.toUpperCase()}},Ft=`connection`,It=B(`CONNECTION`,!0),Lt=`connect_string`,Rt=B(`connect_string`,!1),zt=function(e){return{connect_string:e}},Bt=`encryption`,Vt=B(`ENCRYPTION`,!0),Ht=`y`,Ut=B(`Y`,!0),Wt=`n`,Gt=B(`N`,!0),Kt=function(e){return{encryption:e.toUpperCase()}},qt=`engine`,Jt=B(`ENGINE`,!0),Yt=function(e){return{engine:e}},Xt=`insert_method`,Zt=B(`INSERT_METHOD`,!0),Qt=`no`,$t=B(`NO`,!0),en=`first`,tn=B(`FIRST`,!0),nn=`last`,rn=B(`LAST`,!0),an=function(e){return{insert_method:e.toUpperCase()}},on=`max_rows`,sn=B(`MAX_ROWS`,!0),cn=function(e){return{max_rows:e}},ln=`min_rows`,un=B(`MIN_ROWS`,!0),dn=function(e){return{min_rows:e}},fn=`tablespace`,pn=B(`TABLESPACE`,!0),mn=`STORAGE`,hn=B(`STORAGE`,!1),gn=`disk`,_n=B(`DISK`,!0),vn=`memory`,yn=B(`MEMORY`,!0),bn=function(e){return{tablespace:e}},xn=function(e){return{comment:e}},Sn=`enforce`,Cn=B(`ENFORCE`,!0),wn=function(e,t){let n=$.flatten(t.filter(e=>e.type===`add_fk`).map(e=>e.fks));n.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName}),Go.push(...n);let r=$.flatten(t.filter(e=>e.type===`add_pk`).map(e=>e.pks)),i=qo(e.schemaName,e.name),a={columns:r.map(e=>({value:e,type:`column`})),pk:!0};if(r.length>1)i.indexes?i.indexes.push(a):i.indexes=[a];else if(r.length===1){let e=i.fields.find(e=>e.name===r[0]);e.pk=!0}},Tn=`add`,En=B(`ADD`,!0),Dn=function(e){return{type:`add_fk`,fks:e}},On=function(e){return{type:`add_pk`,pks:e}},kn=`column`,An=B(`COLUMN`,!0),jn=function(e,t){return{type:`add_column`,field:{col_name:e,col_type:t}}},Mn=function(e,t){return{type:`add_index`,index:{column:t}}},Nn=`change`,Pn=B(`CHANGE`,!0),E=/^[^;]/,D=V([`;`],!0,!1),Fn=`drop`,In=B(`DROP`,!0),Ln=function(e,t,n,r,i,a){let o={columns:i},s=a&&a.type===`index_type`?a.value:null;t&&(o.name=t),e.toLowerCase()===`unique`&&(o.unique=!0);let c=s||r;c&&(o.type=c);let l=qo(n.schemaName,n.name);l.indexes?l.indexes.push(o):l.indexes=[o]},Rn=function(e){return e},zn=function(e,t){return[e,...t.map(e=>e[3])]},Bn=function(e,t){return{value:`${e}(${Jo($.flattenDeep(t).join(``))})`,type:`expression`}},Vn=function(e){return{value:`${e}`,type:`string`}},Hn=function(e){return{value:`${e}`,type:`expression`}},Un=`COLLATE`,Wn=B(`COLLATE`,!1),Gn=`NULLS`,Kn=B(`NULLS`,!1),qn=`FIRST`,Jn=B(`FIRST`,!1),Yn=`LAST`,Xn=B(`LAST`,!1),Zn=function(e){return e},Qn=`key_block_size`,$n=B(`KEY_BLOCK_SIZE`,!0),er=`with`,tr=B(`WITH`,!0),nr=`parser`,rr=B(`PARSER`,!0),ir=`comment`,ar=B(`COMMENT`,!0),or=`string`,sr=B(`string`,!1),cr=`visible`,lr=B(`VISIBLE`,!0),ur=`invisible`,dr=B(`INVISIBLE`,!0),fr=function(e){return{type:`index_type`,value:e}},pr=`alter`,mr=B(`ALTER`,!0),O=Ea(),hr=`insert`,gr=B(`INSERT`,!0),_r=`;`,vr=B(`;`,!1),yr=`create`,br=B(`CREATE`,!0),xr=`schema`,Sr=B(`SCHEMA`,!0),Cr=`database`,wr=B(`DATABASE`,!0),Tr=`use`,Er=B(`USE`,!0),Dr=`begin`,Or=B(`BEGIN`,!0),kr=`commit`,Ar=B(`COMMIT`,!0),jr=`rollback`,Mr=B(`ROLLBACK`,!0),Nr=function(e,t){return[e,...t.map(e=>e[2])]},k=`'`,A=B(`'`,!1),Pr=/^[^']/,Fr=V([`'`],!0,!1),Ir=function(e,t){return t.join(``)},j=`"`,M=B(`"`,!1),Lr=/^[^"]/,Rr=V([`"`],!0,!1),zr=H(`CREATE TABLE`),Br=`temporary`,Vr=B(`TEMPORARY`,!0),Hr=`table`,Ur=B(`TABLE`,!0),Wr=H(`IF NOT EXISTS`),Gr=`if`,Kr=B(`IF`,!0),qr=`exists`,Jr=B(`EXISTS`,!0),Yr=H(`ALTER TABLE`),Xr=H(`CREATE INDEX`),Zr=function(e){return e},Qr=function(){return`INDEX`},$r=`primary`,ei=B(`PRIMARY`,!0),ti=`foreign`,ni=B(`FOREIGN`,!0),ri=`references`,ii=B(`REFERENCES`,!0),ai=`restrict`,oi=B(`RESTRICT`,!0),si=`cascade`,ci=B(`CASCADE`,!0),li=`action`,ui=B(`ACTION`,!0),di=H(`index type`),fi=`using`,pi=B(`USING`,!0),mi=`btree`,hi=B(`BTREE`,!0),gi=`hash`,_i=B(`HASH`,!0),vi=function(e){return e.toUpperCase()},yi=H(`valid name`),bi=function(e){return e.join(``)},xi=/^[^`]/,Si=V(["`"],!0,!1),Ci=`.`,wi=B(`.`,!1),Ti=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Ei=H(`valid table name`),Di=function(e,t){return{...e,name:t}},Oi=H(`type`),ki=function(e){return e},Ai=function(e){return{type_name:e}},ji=function(e,t){return t=t?t[2]:null,e.toLowerCase()!==`enum`&&(e=t?e+`(`+t+`)`:e),{type_name:e,args:t}},Mi=H(`expression`),Ni=function(e){return Jo($.flattenDeep(e).join(``))},Pi=`,`,Fi=B(`,`,!1),Ii=`);`,Li=B(`);`,!1),Ri=function(e){return $.flattenDeep(e).join(``)},zi=/^[',.a-z0-9_+-`%]/i,Bi=V([`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,"`"],`%`],!1,!0),Vi=/^['.a-z0-9_+\-]/i,Hi=V([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),Ui=H(`letter, number or underscore`),Wi=/^[a-z0-9_]/i,Gi=V([[`a`,`z`],[`0`,`9`],`_`],!1,!0),Ki=` `,qi=B(` `,!1),Ji="`",Yi=B("`",!1),Xi=` `,Zi=B(` `,!1),Qi=H(`endline`),$i=H(`newline`),ea=`\r
|
|
2
|
-
`,
|
|
3
|
-
`,!1),
|
|
4
|
-
`,
|
|
5
|
-
`,!1),
|
|
6
|
-
`],!0,!1),ua=`/*`,da=B(`/*`,!1),N=`*/`,fa=B(`*/`,!1),pa=H(`string`),ma=function(e){return e.join(``)},ha=`\\`,ga=B(`\\`,!1),_a=function(){return`"`},va=function(){return Ta()},ya=function(){return`'`},P=/^[0-9]/,F=V([[`0`,`9`]],!1,!1),ba=function(e,t){return parseFloat(e.join(``)+`.`+t.join(``))},xa=function(e){return parseInt(e.join(``),10)},I=0,L=0,Sa=[{line:1,column:1}],R=0,Ca=[],z=0,wa;if(`startRule`in t){if(!(t.startRule in i))throw Error(`Can't start parsing from rule "`+t.startRule+`".`);a=i[t.startRule]}function Ta(){return e.substring(L,I)}function B(e,t){return{type:`literal`,text:e,ignoreCase:t}}function V(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function Ea(){return{type:`any`}}function Da(){return{type:`end`}}function H(e){return{type:`other`,description:e}}function Oa(t){var n=Sa[t],r;if(n)return n;for(r=t-1;!Sa[r];)r--;for(n=Sa[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return Sa[t]=n,n}function ka(e,t){var n=Oa(e),r=Oa(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function U(e){I<R||(I>R&&(R=I,Ca=[]),Ca.push(e))}function Aa(e,t,n){return new r(r.buildMessage(e,t),e,t,n)}function ja(){for(var e=I,t=[],r=Ma();r!==n;)t.push(r),r=Ma();return t!==n&&(L=e,t=o()),e=t,e}function Ma(){var e=I,t=Na();return t!==n&&(L=e,t=s(t)),e=t,e===n&&(e=Ya(),e===n&&(e=$a(),e===n&&(e=io(),e===n&&(e=Q())))),e}function Na(){var t=I,r=go(),i,a,o,s,p,m,h,g,_,v,y,b,x,ee;return r===n?(I=t,t=n):(i=I,a=Q(),a===n?(I=i,i=n):(o=_o(),o===n?(I=i,i=n):(a=[a,o],i=a)),i===n&&(i=null),i===n?(I=t,t=n):(a=Q(),a===n?(I=t,t=n):(o=Do(),o===n?(I=t,t=n):(s=Z(),s===n?(I=t,t=n):(e.charCodeAt(I)===40?(p=c,I++):(p=n,z===0&&U(l)),p===n?(I=t,t=n):(m=Z(),m===n?(I=t,t=n):(h=Pa(),h===n?(I=t,t=n):(g=Z(),g===n?(I=t,t=n):(e.charCodeAt(I)===41?(_=u,I++):(_=n,z===0&&U(d)),_===n?(I=t,t=n):(v=Z(),v===n?(I=t,t=n):(y=Ka(),y===n&&(y=null),y===n?(I=t,t=n):(b=Z(),b===n?(I=t,t=n):(x=J(),x===n?(I=t,t=n):(ee=Y(),ee===n&&(ee=null),ee===n?(I=t,t=n):(L=t,r=f(o,h,y),t=r))))))))))))))),t}function Pa(){var e=I,t=Z(),r,i;if(t!==n){for(r=[],i=Fa();i!==n;)r.push(i),i=Fa();r===n?(I=e,e=n):(i=Z(),i===n?(I=e,e=n):(L=e,t=p(r),e=t))}else I=e,e=n;return e}function Fa(){var t,r,i,a,o,s,c;return z++,t=I,r=Ia(),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=q(),a===n&&(a=I,z++,e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),z--,o===n?a=n:(I=a,a=void 0),a===n&&(a=I,z++,o=I,s=Y(),s===n?(I=o,o=n):(e.charCodeAt(I)===41?(c=u,I++):(c=n,z===0&&U(d)),c===n?(I=o,o=n):(s=[s,c],o=s)),z--,o===n?a=n:(I=a,a=void 0))),a===n?(I=t,t=n):(L=t,r=h(r),t=r))),t===n&&(t=I,r=La(),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=q(),a===n&&(a=I,z++,e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),z--,o===n?a=n:(I=a,a=void 0),a===n&&(a=I,z++,o=I,s=Y(),s===n?(I=o,o=n):(e.charCodeAt(I)===41?(c=u,I++):(c=n,z===0&&U(d)),c===n?(I=o,o=n):(s=[s,c],o=s)),z--,o===n?a=n:(I=a,a=void 0))),a===n?(I=t,t=n):(L=t,r=g(r),t=r))),t===n&&(t=I,r=za(),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=q(),a===n&&(a=I,z++,e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),z--,o===n?a=n:(I=a,a=void 0),a===n&&(a=I,z++,o=I,s=Y(),s===n?(I=o,o=n):(e.charCodeAt(I)===41?(c=u,I++):(c=n,z===0&&U(d)),c===n?(I=o,o=n):(s=[s,c],o=s)),z--,o===n?a=n:(I=a,a=void 0))),a===n?(I=t,t=n):(L=t,r=_(r),t=r))),t===n&&(t=I,r=Va(),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=q(),a===n&&(a=I,z++,e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),z--,o===n?a=n:(I=a,a=void 0),a===n&&(a=I,z++,o=I,s=Y(),s===n?(I=o,o=n):(e.charCodeAt(I)===41?(c=u,I++):(c=n,z===0&&U(d)),c===n?(I=o,o=n):(s=[s,c],o=s)),z--,o===n?a=n:(I=a,a=void 0))),a===n?(I=t,t=n):(L=t,r=v(r),t=r))),t===n&&(t=I,r=Ja(),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=q(),a===n&&(a=I,z++,e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),z--,o===n?a=n:(I=a,a=void 0),a===n&&(a=I,z++,o=I,s=Y(),s===n?(I=o,o=n):(e.charCodeAt(I)===41?(c=u,I++):(c=n,z===0&&U(d)),c===n?(I=o,o=n):(s=[s,c],o=s)),z--,o===n?a=n:(I=a,a=void 0))),a===n?(I=t,t=n):(r=[r,i,a],t=r))),t===n&&(t=Q()))))),z--,t===n&&(r=n,z===0&&U(m)),t}function Ia(){var t=I,r=Z(),i,a,o,s,f,p,m;return r===n?(I=t,t=n):(i=bo(),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(e.charCodeAt(I)===40?(o=c,I++):(o=n,z===0&&U(l)),o===n?(I=t,t=n):(s=Z(),s===n?(I=t,t=n):(f=mo(),f===n?(I=t,t=n):(p=Z(),p===n?(I=t,t=n):(e.charCodeAt(I)===41?(m=u,I++):(m=n,z===0&&U(d)),m===n?(I=t,t=n):(L=t,r=y(f),t=r)))))))),t}function La(){var t=I,r=Z(),i,a,o,s,f,p,m,h,g,_,v,y,te,ne,re,ie,ae,oe,se,ce,S,C;if(r!==n)if(i=I,e.substr(I,10).toLowerCase()===b?(a=e.substr(I,10),I+=10):(a=n,z===0&&U(x)),a===n?(I=i,i=n):(o=Z(),o===n?(I=i,i=n):(s=W(),s===n?(I=i,i=n):(a=[a,o,s],i=a))),i===n&&(i=null),i!==n)if(a=Z(),a!==n)if(o=xo(),o!==n)if(s=Z(),s!==n)if(e.charCodeAt(I)===40?(f=c,I++):(f=n,z===0&&U(l)),f!==n)if(p=Z(),p!==n)if(m=mo(),m!==n)if(h=Z(),h!==n)if(e.charCodeAt(I)===41?(g=u,I++):(g=n,z===0&&U(d)),g!==n)if(_=Z(),_!==n)if(v=So(),v!==n)if(y=Z(),y!==n)if(te=Do(),te!==n)if(ne=Z(),ne!==n)if(e.charCodeAt(I)===40?(re=c,I++):(re=n,z===0&&U(l)),re!==n)if(ie=Z(),ie!==n)if(ae=mo(),ae!==n)if(oe=Z(),oe!==n)if(e.charCodeAt(I)===41?(se=u,I++):(se=n,z===0&&U(d)),se!==n)if(ce=Z(),ce!==n){for(S=[],C=Ra();C!==n;)S.push(C),C=Ra();S===n?(I=t,t=n):(L=t,r=ee(i,m,te,ae,S),t=r)}else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;return t}function Ra(){var t=I,r=Z(),i,a,o,s,c;return r===n?(I=t,t=n):(e.substr(I,2).toLowerCase()===te?(i=e.substr(I,2),I+=2):(i=n,z===0&&U(ne)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(e.substr(I,6).toLowerCase()===re?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(ie)),o===n&&(e.substr(I,6).toLowerCase()===ae?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(oe))),o===n?(I=t,t=n):(s=Z(),s===n?(I=t,t=n):(c=wo(),c===n?(I=t,t=n):(L=t,r=se(o,c),t=r)))))),t}function za(){var t=I,r=Z(),i,a,o,s,f,p,m,h,g,_,v,y,b,x;return r===n?(I=t,t=n):(i=Ba(),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(o=W(),o===n&&(o=null),o===n?(I=t,t=n):(s=Z(),s===n?(I=t,t=n):(f=To(),f===n&&(f=null),f===n?(I=t,t=n):(p=Z(),p===n?(I=t,t=n):(e.charCodeAt(I)===40?(m=c,I++):(m=n,z===0&&U(l)),m===n?(I=t,t=n):(h=Z(),h===n?(I=t,t=n):(g=to(),g===n?(I=t,t=n):(_=Z(),_===n?(I=t,t=n):(e.charCodeAt(I)===41?(v=u,I++):(v=n,z===0&&U(d)),v===n?(I=t,t=n):(y=I,b=Z(),b===n?(I=y,y=n):(x=ro(),x===n?(I=y,y=n):(b=[b,x],y=b)),y===n&&(y=null),y===n?(I=t,t=n):(L=t,r=ue(i,o,f,g,y),t=r))))))))))))),t}function Ba(){var t=I,r,i,a;return e.substr(I,6).toLowerCase()===ce?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(S)),r===n&&(r=null),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===de?(a=e.substr(I,5),I+=5):(a=n,z===0&&U(fe)),a===n&&(e.substr(I,3).toLowerCase()===C?(a=e.substr(I,3),I+=3):(a=n,z===0&&U(le))),a===n?(I=t,t=n):(L=t,r=pe(r),t=r))),t===n&&(t=I,e.substr(I,6).toLowerCase()===ce?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(S)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===de?(a=e.substr(I,5),I+=5):(a=n,z===0&&U(fe)),a===n&&(e.substr(I,3).toLowerCase()===C?(a=e.substr(I,3),I+=3):(a=n,z===0&&U(le))),a===n&&(a=null),a===n?(I=t,t=n):(L=t,r=me(),t=r)))),t}function Va(){var e=I,t=Z(),r,i,a,o,s,c;return t===n?(I=e,e=n):(r=W(),r===n?(I=e,e=n):(i=Z(),i===n?(I=e,e=n):(a=Oo(),a===n?(I=e,e=n):(o=Z(),o===n?(I=e,e=n):(s=Ha(),s===n&&(s=null),s===n?(I=e,e=n):(c=Z(),c===n?(I=e,e=n):(L=e,t=ye(r,a,s),e=t))))))),e}function Ha(){for(var e=I,t=[],r=Ua();r!==n;)t.push(r),r=Ua();return t!==n&&(L=e,t=be(t)),e=t,e}function Ua(){var t,r,i,a,o,s,f,p,m,h,g;return z++,t=I,r=Z(),r===n?(I=t,t=n):(e.substr(I,3).toLowerCase()===Se?(i=e.substr(I,3),I+=3):(i=n,z===0&&U(Ce)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(e.substr(I,4).toLowerCase()===we?(o=e.substr(I,4),I+=4):(o=n,z===0&&U(Te)),o===n?(I=t,t=n):(s=Z(),s===n?(I=t,t=n):(L=t,r=Ee(i),t=r))))),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(e.substr(I,4).toLowerCase()===we?(i=e.substr(I,4),I+=4):(i=n,z===0&&U(Te)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(L=t,r=De(i),t=r))),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(i=bo(),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(L=t,r=Oe(i),t=r))),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(i=Co(),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(L=t,r=ke(i),t=r))),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(e.substr(I,14).toLowerCase()===Ae?(i=e.substr(I,14),I+=14):(i=n,z===0&&U(je)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(L=t,r=Me(i),t=r))),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(e.substr(I,8).toLowerCase()===Ne?(i=e.substr(I,8),I+=8):(i=n,z===0&&U(Pe)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(L=t,r=Fe(i),t=r))),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,7).toLowerCase()===Ie?(o=e.substr(I,7),I+=7):(o=n,z===0&&U(Le)),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(f=W(),f===n?(I=i,i=n):(p=Z(),p===n?(I=i,i=n):(a=[a,o,s,f,p],i=a))))),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,13).toLowerCase()===Re?(o=e.substr(I,13),I+=13):(o=n,z===0&&U(ze)),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(f=Lo(),f===n?(I=i,i=n):(p=Z(),p===n?(I=i,i=n):(a=[a,o,s,f,p],i=a))))),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,7).toLowerCase()===Be?(o=e.substr(I,7),I+=7):(o=n,z===0&&U(Ve)),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(f=Lo(),f===n?(I=i,i=n):(p=Z(),p===n?(I=i,i=n):(a=[a,o,s,f,p],i=a))))),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,5).toLowerCase()===He?(o=e.substr(I,5),I+=5):(o=n,z===0&&U(Ue)),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(e.charCodeAt(I)===40?(f=c,I++):(f=n,z===0&&U(l)),f===n?(I=i,i=n):(p=G(),p===n?(I=i,i=n):(e.charCodeAt(I)===41?(m=u,I++):(m=n,z===0&&U(d)),m===n?(I=i,i=n):(h=Z(),h===n?(I=i,i=n):(a=[a,o,s,f,p,m,h],i=a))))))),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,16).toLowerCase()===We?(o=e.substr(I,16),I+=16):(o=n,z===0&&U(Ge)),o===n&&(o=null),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(e.substr(I,2).toLowerCase()===Ke?(f=e.substr(I,2),I+=2):(f=n,z===0&&U(qe)),f===n?(I=i,i=n):(p=Z(),p===n?(I=i,i=n):(e.charCodeAt(I)===40?(m=c,I++):(m=n,z===0&&U(l)),m===n?(I=i,i=n):(h=G(),h===n?(I=i,i=n):(e.charCodeAt(I)===41?(g=u,I++):(g=n,z===0&&U(d)),g===n?(I=i,i=n):(a=[a,o,s,f,p,m,h,g],i=a)))))))),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,7).toLowerCase()===Je?(o=e.substr(I,7),I+=7):(o=n,z===0&&U(Ye)),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(a=[a,o,s],i=a))),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(e.substr(I,6).toLowerCase()===Xe?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(Ze)),o===n?(I=i,i=n):(a=[a,o],i=a)),i===n&&(i=I,a=Z(),a===n?(I=i,i=n):(o=I,e.substr(I,9).toLowerCase()===Qe?(s=e.substr(I,9),I+=9):(s=n,z===0&&U($e)),s===n?(I=o,o=n):(f=Z(),f===n?(I=o,o=n):(e.substr(I,3).toLowerCase()===et?(p=e.substr(I,3),I+=3):(p=n,z===0&&U(tt)),p===n?(I=o,o=n):(s=[s,f,p],o=s))),o===n&&(e.substr(I,7).toLowerCase()===nt?(o=e.substr(I,7),I+=7):(o=n,z===0&&U(rt))),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(f=W(),f===n?(I=i,i=n):(p=Z(),p===n?(I=i,i=n):(a=[a,o,s,f,p],i=a)))))))))))),i===n?(I=t,t=n):(L=t,r=it(),t=r)),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(i=Wa(),i===n?(I=t,t=n):(L=t,r=at(i),t=r)),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(i=ho(),i===n?(I=t,t=n):(L=t,r=ot(i),t=r)),t===n&&(t=I,r=Z(),r===n?(I=t,t=n):(e.substr(I,2).toLowerCase()===te?(i=e.substr(I,2),I+=2):(i=n,z===0&&U(ne)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(e.substr(I,6).toLowerCase()===re?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(ie)),o===n?(I=t,t=n):(s=Z(),s===n?(I=t,t=n):(f=Oo(),f===n?(I=t,t=n):(L=t,r=it(),t=r))))))))))))))),z--,t===n&&(r=n,z===0&&U(xe)),t}function Wa(){var t=I,r,i,a;return e.substr(I,7).toLowerCase()===st?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ct)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=Ga(),a===n?(I=t,t=n):(L=t,r=lt(a),t=r))),t}function Ga(){var t=I,r=Lo();return r!==n&&(L=t,r=ut(r)),t=r,t===n&&(t=I,r=Vo(),r!==n&&(L=t,r=dt(r)),t=r,t===n&&(t=I,e.substr(I,4).toLowerCase()===ft?(r=e.substr(I,4),I+=4):(r=n,z===0&&U(pt)),r===n&&(e.substr(I,5).toLowerCase()===mt?(r=e.substr(I,5),I+=5):(r=n,z===0&&U(ht)),r===n&&(e.substr(I,4).toLowerCase()===we?(r=e.substr(I,4),I+=4):(r=n,z===0&&U(Te)))),r!==n&&(L=t,r=gt(r)),t=r,t===n&&(t=I,r=Ao(),r!==n&&(L=t,r=_t(r)),t=r))),t}function Ka(){var e=I,t=qa(),r,i,a,o,s,c;if(t!==n)if(r=Z(),r!==n){for(i=[],a=I,o=q(),o===n&&(o=null),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(c=qa(),c===n?(I=a,a=n):(o=[o,s,c],a=o)));a!==n;)i.push(a),a=I,o=q(),o===n&&(o=null),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(c=qa(),c===n?(I=a,a=n):(o=[o,s,c],a=o)));i===n?(I=e,e=n):(L=e,t=vt(t,i),e=t)}else I=e,e=n;else I=e,e=n;return e}function qa(){var t,r,i,a,o,s,c;return z++,t=I,e.substr(I,14).toLowerCase()===Ae?(r=e.substr(I,14),I+=14):(r=n,z===0&&U(je)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(o=Vo(),o===n?(I=t,t=n):(L=t,r=bt(o),t=r)))),t===n&&(t=I,e.substr(I,14).toLowerCase()===xt?(r=e.substr(I,14),I+=14):(r=n,z===0&&U(St)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(o=Vo(),o===n?(I=t,t=n):(L=t,r=Ct(o),t=r)))),t===n&&(t=I,r=I,e.substr(I,7).toLowerCase()===st?(i=e.substr(I,7),I+=7):(i=n,z===0&&U(ct)),i===n?(I=r,r=n):(a=Z(),a===n?(I=r,r=n):(i=[i,a],r=i)),r===n&&(r=null),r===n?(I=t,t=n):(i=I,e.substr(I,9).toLowerCase()===Qe?(a=e.substr(I,9),I+=9):(a=n,z===0&&U($e)),a===n?(I=i,i=n):(o=Z(),o===n?(I=i,i=n):(e.substr(I,3).toLowerCase()===et?(s=e.substr(I,3),I+=3):(s=n,z===0&&U(tt)),s===n?(I=i,i=n):(a=[a,o,s],i=a))),i===n&&(e.substr(I,7).toLowerCase()===nt?(i=e.substr(I,7),I+=7):(i=n,z===0&&U(rt))),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(o=I,e.charCodeAt(I)===61?(s=w,I++):(s=n,z===0&&U(T)),s===n?(I=o,o=n):(c=Z(),c===n?(I=o,o=n):(s=[s,c],o=s)),o===n&&(o=null),o===n?(I=t,t=n):(s=W(),s===n?(I=t,t=n):(L=t,r=wt(s),t=r))))),t===n&&(t=I,r=I,e.substr(I,7).toLowerCase()===st?(i=e.substr(I,7),I+=7):(i=n,z===0&&U(ct)),i===n?(I=r,r=n):(a=Z(),a===n?(I=r,r=n):(i=[i,a],r=i)),r===n&&(r=null),r===n?(I=t,t=n):(e.substr(I,7).toLowerCase()===Ie?(i=e.substr(I,7),I+=7):(i=n,z===0&&U(Le)),i===n?(I=t,t=n):(a=Z(),a===n?(I=t,t=n):(o=I,e.charCodeAt(I)===61?(s=w,I++):(s=n,z===0&&U(T)),s===n?(I=o,o=n):(c=Z(),c===n?(I=o,o=n):(s=[s,c],o=s)),o===n&&(o=null),o===n?(I=t,t=n):(s=W(),s===n?(I=t,t=n):(L=t,r=Tt(s),t=r))))),t===n&&(t=I,e.substr(I,11).toLowerCase()===Et?(r=e.substr(I,11),I+=11):(r=n,z===0&&U(Dt)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(e.substr(I,4).toLowerCase()===Ot?(o=e.substr(I,4),I+=4):(o=n,z===0&&U(kt)),o===n&&(e.substr(I,3).toLowerCase()===At?(o=e.substr(I,3),I+=3):(o=n,z===0&&U(jt)),o===n&&(e.substr(I,4).toLowerCase()===Mt?(o=e.substr(I,4),I+=4):(o=n,z===0&&U(Nt)))),o===n?(I=t,t=n):(L=t,r=Pt(o),t=r)))),t===n&&(t=I,e.substr(I,10).toLowerCase()===Ft?(r=e.substr(I,10),I+=10):(r=n,z===0&&U(It)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(e.substr(I,14)===Lt?(o=Lt,I+=14):(o=n,z===0&&U(Rt)),o===n?(I=t,t=n):(L=t,r=zt(o),t=r)))),t===n&&(t=I,e.substr(I,10).toLowerCase()===Bt?(r=e.substr(I,10),I+=10):(r=n,z===0&&U(Vt)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(e.substr(I,1).toLowerCase()===Ht?(o=e.charAt(I),I++):(o=n,z===0&&U(Ut)),o===n&&(e.substr(I,1).toLowerCase()===Wt?(o=e.charAt(I),I++):(o=n,z===0&&U(Gt))),o===n?(I=t,t=n):(L=t,r=Kt(o),t=r)))),t===n&&(t=I,e.substr(I,6).toLowerCase()===qt?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(Jt)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(o=W(),o===n?(I=t,t=n):(L=t,r=Yt(o),t=r)))),t===n&&(t=I,e.substr(I,13).toLowerCase()===Xt?(r=e.substr(I,13),I+=13):(r=n,z===0&&U(Zt)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(e.substr(I,2).toLowerCase()===Qt?(o=e.substr(I,2),I+=2):(o=n,z===0&&U($t)),o===n&&(e.substr(I,5).toLowerCase()===en?(o=e.substr(I,5),I+=5):(o=n,z===0&&U(tn)),o===n&&(e.substr(I,4).toLowerCase()===nn?(o=e.substr(I,4),I+=4):(o=n,z===0&&U(rn)))),o===n?(I=t,t=n):(L=t,r=an(o),t=r)))),t===n&&(t=I,e.substr(I,8).toLowerCase()===on?(r=e.substr(I,8),I+=8):(r=n,z===0&&U(sn)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(o=Vo(),o===n?(I=t,t=n):(L=t,r=cn(o),t=r)))),t===n&&(t=I,e.substr(I,8).toLowerCase()===ln?(r=e.substr(I,8),I+=8):(r=n,z===0&&U(un)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(o=Vo(),o===n?(I=t,t=n):(L=t,r=dn(o),t=r)))),t===n&&(t=I,e.substr(I,10).toLowerCase()===fn?(r=e.substr(I,10),I+=10):(r=n,z===0&&U(pn)),r===n?(I=t,t=n):(i=W(),i===n?(I=t,t=n):(a=I,e.substr(I,7)===mn?(o=mn,I+=7):(o=n,z===0&&U(hn)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(e.substr(I,4).toLowerCase()===gn?(c=e.substr(I,4),I+=4):(c=n,z===0&&U(_n)),c===n&&(e.substr(I,6).toLowerCase()===vn?(c=e.substr(I,6),I+=6):(c=n,z===0&&U(yn))),c===n?(I=a,a=n):(o=[o,s,c],a=o))),a===n&&(a=null),a===n?(I=t,t=n):(L=t,r=bn(i),t=r))),t===n&&(t=I,r=ho(),r!==n&&(L=t,r=xn(r)),t=r)))))))))))),z--,t===n&&(r=n,z===0&&U(yt)),t}function Ja(){var t=I,r=Z(),i,a,o,s,c,l,u,d,f;return r===n?(I=t,t=n):(i=I,e.substr(I,10).toLowerCase()===b?(a=e.substr(I,10),I+=10):(a=n,z===0&&U(x)),a===n?(I=i,i=n):(o=W(),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(a=[a,o,s],i=a))),i===n&&(i=null),i===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===He?(a=e.substr(I,5),I+=5):(a=n,z===0&&U(Ue)),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(s=G(),s===n?(I=t,t=n):(c=Z(),c===n?(I=t,t=n):(l=I,e.substr(I,3).toLowerCase()===Se?(u=e.substr(I,3),I+=3):(u=n,z===0&&U(Ce)),u===n&&(u=null),u===n?(I=l,l=n):(d=Z(),d===n?(I=l,l=n):(e.substr(I,7).toLowerCase()===Sn?(f=e.substr(I,7),I+=7):(f=n,z===0&&U(Cn)),f===n?(I=l,l=n):(u=[u,d,f],l=u))),l===n&&(l=null),l===n?(I=t,t=n):(r=[r,i,a,o,s,c,l],t=r))))))),t}function Ya(){var e=I,t=vo(),r,i,a,o,s,c;return t===n?(I=e,e=n):(r=Z(),r===n?(I=e,e=n):(i=Do(),i===n?(I=e,e=n):(a=Z(),a===n?(I=e,e=n):(o=Xa(),o===n&&(o=Za(),o===n&&(o=Qa())),o===n?(I=e,e=n):(s=Z(),s===n?(I=e,e=n):(c=J(),c===n?(I=e,e=n):(L=e,t=wn(i,o),e=t))))))),e}function Xa(){var t=I,r,i,a,o,s,c,l,u;return e.substr(I,3).toLowerCase()===Tn?(r=e.substr(I,3),I+=3):(r=n,z===0&&U(En)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,o=I,e.substr(I,10).toLowerCase()===b?(s=e.substr(I,10),I+=10):(s=n,z===0&&U(x)),s===n?(I=o,o=n):(c=Q(),c===n?(I=o,o=n):(l=W(),l===n?(I=o,o=n):(s=[s,c,l],o=s))),o===n&&(o=null),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(c=La(),c===n?(I=a,a=n):(L=a,o=Dn(c),a=o))),a===n&&(a=I,o=I,e.substr(I,10).toLowerCase()===b?(s=e.substr(I,10),I+=10):(s=n,z===0&&U(x)),s===n?(I=o,o=n):(c=Q(),c===n?(I=o,o=n):(l=W(),l===n?(I=o,o=n):(s=[s,c,l],o=s))),o===n&&(o=null),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(c=Ia(),c===n?(I=a,a=n):(L=a,o=On(c),a=o))),a===n&&(a=I,e.substr(I,6).toLowerCase()===kn?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(An)),o===n&&(o=null),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(c=W(),c===n?(I=a,a=n):(l=Z(),l===n?(I=a,a=n):(u=Oo(),u===n?(I=a,a=n):(L=a,o=jn(c,u),a=o))))),a===n&&(a=I,e.substr(I,5).toLowerCase()===de?(o=e.substr(I,5),I+=5):(o=n,z===0&&U(fe)),o===n&&(e.substr(I,3).toLowerCase()===C?(o=e.substr(I,3),I+=3):(o=n,z===0&&U(le))),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(c=W(),c===n?(I=a,a=n):(l=Z(),l===n?(I=a,a=n):(u=eo(),u===n?(I=a,a=n):(L=a,o=Mn(c,u),a=o))))),a===n&&(a=I,o=I,e.substr(I,10).toLowerCase()===b?(s=e.substr(I,10),I+=10):(s=n,z===0&&U(x)),s===n?(I=o,o=n):(c=Q(),c===n?(I=o,o=n):(l=W(),l===n?(I=o,o=n):(s=[s,c,l],o=s))),o===n&&(o=null),o===n?(I=a,a=n):(e.substr(I,6).toLowerCase()===ce?(s=e.substr(I,6),I+=6):(s=n,z===0&&U(S)),s===n?(I=a,a=n):(e.substr(I,5).toLowerCase()===de?(c=e.substr(I,5),I+=5):(c=n,z===0&&U(fe)),c===n&&(e.substr(I,3).toLowerCase()===C?(c=e.substr(I,3),I+=3):(c=n,z===0&&U(le))),c===n?(I=a,a=n):(o=[o,s,c],a=o))))))),a===n?(I=t,t=n):(r=[r,i,a],t=r))),t}function Za(){var t=I,r,i;return e.substr(I,6).toLowerCase()===Nn?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(Pn)),r===n?(I=t,t=n):(E.test(e.charAt(I))?(i=e.charAt(I),I++):(i=n,z===0&&U(D)),i===n?(I=t,t=n):(r=[r,i],t=r)),t}function Qa(){var t=I,r,i;return e.substr(I,4).toLowerCase()===Fn?(r=e.substr(I,4),I+=4):(r=n,z===0&&U(In)),r===n?(I=t,t=n):(E.test(e.charAt(I))?(i=e.charAt(I),I++):(i=n,z===0&&U(D)),i===n?(I=t,t=n):(r=[r,i],t=r)),t}function $a(){var t=I,r=yo(),i,a,o,s,c,l,u,d,f,p,m,h,g;return r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=W(),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(e.substr(I,2).toLowerCase()===te?(s=e.substr(I,2),I+=2):(s=n,z===0&&U(ne)),s===n?(I=t,t=n):(c=Z(),c===n?(I=t,t=n):(l=Do(),l===n?(I=t,t=n):(u=Z(),u===n?(I=t,t=n):(d=To(),d===n&&(d=null),d===n?(I=t,t=n):(f=Z(),f===n?(I=t,t=n):(p=eo(),p===n?(I=t,t=n):(m=Z(),m===n?(I=t,t=n):(h=ro(),h===n&&(h=null),h===n?(I=t,t=n):(g=J(),g===n?(I=t,t=n):(L=t,r=Ln(r,a,l,d,p,h),t=r)))))))))))))),t}function eo(){var t=I,r,i,a,o,s;return e.charCodeAt(I)===40?(r=c,I++):(r=n,z===0&&U(l)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=to(),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(e.charCodeAt(I)===41?(s=u,I++):(s=n,z===0&&U(d)),s===n?(I=t,t=n):(L=t,r=Rn(a),t=r))))),t}function to(){var e=I,t=no(),r,i,a,o,s,c;if(t!==n){for(r=[],i=I,a=Z(),a===n?(I=i,i=n):(o=q(),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(c=no(),c===n?(I=i,i=n):(a=[a,o,s,c],i=a))));i!==n;)r.push(i),i=I,a=Z(),a===n?(I=i,i=n):(o=q(),o===n?(I=i,i=n):(s=Z(),s===n?(I=i,i=n):(c=no(),c===n?(I=i,i=n):(a=[a,o,s,c],i=a))));r===n?(I=e,e=n):(L=e,t=zn(t,r),e=t)}else I=e,e=n;return e}function no(){var t=I,r=I,i=W(),a,o,s,f,p,m;if(i!==n)if(e.charCodeAt(I)===40?(a=c,I++):(a=n,z===0&&U(l)),a!==n){for(o=[],s=W(),s===n&&(s=Q(),s===n&&(s=q()));s!==n;)o.push(s),s=W(),s===n&&(s=Q(),s===n&&(s=q()));o===n?(I=r,r=n):(e.charCodeAt(I)===41?(s=u,I++):(s=n,z===0&&U(d)),s===n?(I=r,r=n):(L=r,i=Bn(i,o),r=i))}else I=r,r=n;else I=r,r=n;return r===n&&(r=I,i=W(),i!==n&&(L=r,i=Vn(i)),r=i,r===n&&(r=I,i=G(),i!==n&&(L=r,i=Hn(i)),r=i)),r===n?(I=t,t=n):(i=I,a=Q(),a===n?(I=i,i=n):(e.substr(I,7)===Un?(o=Un,I+=7):(o=n,z===0&&U(Wn)),o===n?(I=i,i=n):(s=Q(),s===n?(I=i,i=n):(f=W(),f===n?(I=i,i=n):(a=[a,o,s,f],i=a)))),i===n&&(i=null),i===n?(I=t,t=n):(a=I,o=Q(),o===n?(I=a,a=n):(e.substr(I,3)===he?(s=he,I+=3):(s=n,z===0&&U(ge)),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=I,o=Q(),o===n?(I=a,a=n):(e.substr(I,4)===_e?(s=_e,I+=4):(s=n,z===0&&U(ve)),s===n?(I=a,a=n):(o=[o,s],a=o))),a===n&&(a=null),a===n?(I=t,t=n):(o=I,s=Q(),s===n?(I=o,o=n):(e.substr(I,5)===Gn?(f=Gn,I+=5):(f=n,z===0&&U(Kn)),f===n?(I=o,o=n):(p=Q(),p===n?(I=o,o=n):(e.substr(I,5)===qn?(m=qn,I+=5):(m=n,z===0&&U(Jn)),m===n&&(e.substr(I,4)===Yn?(m=Yn,I+=4):(m=n,z===0&&U(Xn))),m===n?(I=o,o=n):(s=[s,f,p,m],o=s)))),o===n&&(o=null),o===n?(I=t,t=n):(L=t,r=Zn(r),t=r)))),t}function ro(){var t=I,r,i,a,o,s;return e.substr(I,14).toLowerCase()===Qn?(r=e.substr(I,14),I+=14):(r=n,z===0&&U($n)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a===n?(I=t,t=n):(o=Oo(),o===n?(I=t,t=n):(r=[r,i,a,o],t=r)))),t===n&&(t=I,e.substr(I,4).toLowerCase()===er?(r=e.substr(I,4),I+=4):(r=n,z===0&&U(tr)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,6).toLowerCase()===nr?(a=e.substr(I,6),I+=6):(a=n,z===0&&U(rr)),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(s=W(),s===n?(I=t,t=n):(r=[r,i,a,o,s],t=r))))),t===n&&(t=I,e.substr(I,7).toLowerCase()===ir?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ar)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,6)===or?(a=or,I+=6):(a=n,z===0&&U(sr)),a===n?(I=t,t=n):(r=[r,i,a],t=r))),t===n&&(e.substr(I,7).toLowerCase()===cr?(t=e.substr(I,7),I+=7):(t=n,z===0&&U(lr)),t===n&&(e.substr(I,9).toLowerCase()===ur?(t=e.substr(I,9),I+=9):(t=n,z===0&&U(dr))),t===n&&(t=I,r=To(),r!==n&&(L=t,r=fr(r)),t=r)))),t}function io(){var t=I,r=ao(),i,a,o,s,c,l;if(r===n&&(r=oo(),r===n&&(r=so(),r===n&&(r=co(),r===n&&(r=lo(),r===n&&(r=uo(),r===n&&(r=fo(),r===n&&(r=po(),r===n))))))))if(r=I,e.substr(I,5).toLowerCase()===pr?(i=e.substr(I,5),I+=5):(i=n,z===0&&U(mr)),i!==n)if(a=Z(),a!==n){for(o=[],s=Io(),s===n&&(s=I,c=I,z++,l=J(),z--,l===n?c=void 0:(I=c,c=n),c===n?(I=s,s=n):(e.length>I?(l=e.charAt(I),I++):(l=n,z===0&&U(O)),l===n?(I=s,s=n):(c=[c,l],s=c)));s!==n;)o.push(s),s=Io(),s===n&&(s=I,c=I,z++,l=J(),z--,l===n?c=void 0:(I=c,c=n),c===n?(I=s,s=n):(e.length>I?(l=e.charAt(I),I++):(l=n,z===0&&U(O)),l===n?(I=s,s=n):(c=[c,l],s=c)));o===n?(I=r,r=n):(i=[i,a,o],r=i)}else I=r,r=n;else I=r,r=n;return r===n?(I=t,t=n):(i=J(),i===n?(I=t,t=n):(a=X(),a===n&&(a=null),a===n?(I=t,t=n):(r=[r,i,a],t=r))),t}function ao(){var t=I,r=Z(),i,a,o,s,c,l,f,p;if(r!==n)if(e.substr(I,6).toLowerCase()===hr?(i=e.substr(I,6),I+=6):(i=n,z===0&&U(gr)),i!==n){for(a=[],o=I,s=I,z++,c=I,e.charCodeAt(I)===41?(l=u,I++):(l=n,z===0&&U(d)),l===n?(I=c,c=n):(f=Z(),f===n?(I=c,c=n):(e.charCodeAt(I)===59?(p=_r,I++):(p=n,z===0&&U(vr)),p===n?(I=c,c=n):(l=[l,f,p],c=l))),z--,c===n?s=void 0:(I=s,s=n),s===n?(I=o,o=n):(e.length>I?(c=e.charAt(I),I++):(c=n,z===0&&U(O)),c===n?(I=o,o=n):(s=[s,c],o=s));o!==n;)a.push(o),o=I,s=I,z++,c=I,e.charCodeAt(I)===41?(l=u,I++):(l=n,z===0&&U(d)),l===n?(I=c,c=n):(f=Z(),f===n?(I=c,c=n):(e.charCodeAt(I)===59?(p=_r,I++):(p=n,z===0&&U(vr)),p===n?(I=c,c=n):(l=[l,f,p],c=l))),z--,c===n?s=void 0:(I=s,s=n),s===n?(I=o,o=n):(e.length>I?(c=e.charAt(I),I++):(c=n,z===0&&U(O)),c===n?(I=o,o=n):(s=[s,c],o=s));a===n?(I=t,t=n):(e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),o===n?(I=t,t=n):(r=[r,i,a,o],t=r))}else I=t,t=n;else I=t,t=n;return t}function oo(){var t=I,r=Z(),i,a,o;if(r!==n)if(e.substr(I,3).toLowerCase()===et?(i=e.substr(I,3),I+=3):(i=n,z===0&&U(tt)),i!==n){for(a=[],E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));o!==n;)a.push(o),E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));a===n?(I=t,t=n):(r=[r,i,a],t=r)}else I=t,t=n;else I=t,t=n;return t}function so(){var t=I,r=Z(),i,a,o,s,c;if(r!==n)if(e.substr(I,6).toLowerCase()===yr?(i=e.substr(I,6),I+=6):(i=n,z===0&&U(br)),i!==n)if(a=Z(),a!==n)if(e.substr(I,6).toLowerCase()===xr?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(Sr)),o===n&&(e.substr(I,8).toLowerCase()===Cr?(o=e.substr(I,8),I+=8):(o=n,z===0&&U(wr))),o!==n){for(s=[],E.test(e.charAt(I))?(c=e.charAt(I),I++):(c=n,z===0&&U(D));c!==n;)s.push(c),E.test(e.charAt(I))?(c=e.charAt(I),I++):(c=n,z===0&&U(D));s===n?(I=t,t=n):(r=[r,i,a,o,s],t=r)}else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;return t}function co(){var t=I,r=Z(),i,a,o;if(r!==n)if(e.substr(I,4).toLowerCase()===Fn?(i=e.substr(I,4),I+=4):(i=n,z===0&&U(In)),i!==n){for(a=[],E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));o!==n;)a.push(o),E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));a===n?(I=t,t=n):(r=[r,i,a],t=r)}else I=t,t=n;else I=t,t=n;return t}function lo(){var t=I,r=Z(),i,a,o;if(r!==n)if(e.substr(I,3).toLowerCase()===Tr?(i=e.substr(I,3),I+=3):(i=n,z===0&&U(Er)),i!==n){for(a=[],E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));o!==n;)a.push(o),E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));a===n?(I=t,t=n):(r=[r,i,a],t=r)}else I=t,t=n;else I=t,t=n;return t}function uo(){var t=I,r=Z(),i,a,o;if(r!==n)if(e.substr(I,5).toLowerCase()===Dr?(i=e.substr(I,5),I+=5):(i=n,z===0&&U(Or)),i!==n){for(a=[],E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));o!==n;)a.push(o),E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));a===n?(I=t,t=n):(r=[r,i,a],t=r)}else I=t,t=n;else I=t,t=n;return t}function fo(){var t=I,r=Z(),i,a,o;if(r!==n)if(e.substr(I,6).toLowerCase()===kr?(i=e.substr(I,6),I+=6):(i=n,z===0&&U(Ar)),i!==n){for(a=[],E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));o!==n;)a.push(o),E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));a===n?(I=t,t=n):(r=[r,i,a],t=r)}else I=t,t=n;else I=t,t=n;return t}function po(){var t=I,r=Z(),i,a,o;if(r!==n)if(e.substr(I,8).toLowerCase()===jr?(i=e.substr(I,8),I+=8):(i=n,z===0&&U(Mr)),i!==n){for(a=[],E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));o!==n;)a.push(o),E.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(D));a===n?(I=t,t=n):(r=[r,i,a],t=r)}else I=t,t=n;else I=t,t=n;return t}function mo(){var e=I,t=W(),r,i,a,o,s;if(t!==n){for(r=[],i=I,a=q(),a===n?(I=i,i=n):(o=Z(),o===n?(I=i,i=n):(s=W(),s===n?(I=i,i=n):(a=[a,o,s],i=a)));i!==n;)r.push(i),i=I,a=q(),a===n?(I=i,i=n):(o=Z(),o===n?(I=i,i=n):(s=W(),s===n?(I=i,i=n):(a=[a,o,s],i=a)));r===n?(I=e,e=n):(L=e,t=Nr(t,r),e=t)}else I=e,e=n;return e}function ho(){var t=I,r,i,a,o,s,c;if(e.substr(I,7).toLowerCase()===ir?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ar)),r!==n)if(i=Z(),i!==n)if(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a!==n)if(e.charCodeAt(I)===39?(o=k,I++):(o=n,z===0&&U(A)),o!==n){for(s=[],Pr.test(e.charAt(I))?(c=e.charAt(I),I++):(c=n,z===0&&U(Fr));c!==n;)s.push(c),Pr.test(e.charAt(I))?(c=e.charAt(I),I++):(c=n,z===0&&U(Fr));s===n?(I=t,t=n):(e.charCodeAt(I)===39?(c=k,I++):(c=n,z===0&&U(A)),c===n?(I=t,t=n):(L=t,r=Ir(o,s),t=r))}else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;if(t===n)if(t=I,e.substr(I,7).toLowerCase()===ir?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ar)),r!==n)if(i=Z(),i!==n)if(a=I,e.charCodeAt(I)===61?(o=w,I++):(o=n,z===0&&U(T)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(o=[o,s],a=o)),a===n&&(a=null),a!==n)if(e.charCodeAt(I)===34?(o=j,I++):(o=n,z===0&&U(M)),o!==n){for(s=[],Lr.test(e.charAt(I))?(c=e.charAt(I),I++):(c=n,z===0&&U(Rr));c!==n;)s.push(c),Lr.test(e.charAt(I))?(c=e.charAt(I),I++):(c=n,z===0&&U(Rr));s===n?(I=t,t=n):(e.charCodeAt(I)===34?(c=j,I++):(c=n,z===0&&U(M)),c===n?(I=t,t=n):(L=t,r=Ir(o,s),t=r))}else I=t,t=n;else I=t,t=n;else I=t,t=n;else I=t,t=n;return t}function go(){var t,r,i,a,o,s;return z++,t=I,e.substr(I,6).toLowerCase()===yr?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(br)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,9).toLowerCase()===Br?(a=e.substr(I,9),I+=9):(a=n,z===0&&U(Vr)),a===n&&(a=null),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===Hr?(s=e.substr(I,5),I+=5):(s=n,z===0&&U(Ur)),s===n?(I=t,t=n):(r=[r,i,a,o,s],t=r))))),z--,t===n&&(r=n,z===0&&U(zr)),t}function _o(){var t,r,i,a,o,s;return z++,t=I,e.substr(I,2).toLowerCase()===Gr?(r=e.substr(I,2),I+=2):(r=n,z===0&&U(Kr)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,3).toLowerCase()===Se?(a=e.substr(I,3),I+=3):(a=n,z===0&&U(Ce)),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(e.substr(I,6).toLowerCase()===qr?(s=e.substr(I,6),I+=6):(s=n,z===0&&U(Jr)),s===n?(I=t,t=n):(r=[r,i,a,o,s],t=r))))),z--,t===n&&(r=n,z===0&&U(Wr)),t}function vo(){var t,r,i,a;return z++,t=I,e.substr(I,5).toLowerCase()===pr?(r=e.substr(I,5),I+=5):(r=n,z===0&&U(mr)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===Hr?(a=e.substr(I,5),I+=5):(a=n,z===0&&U(Ur)),a===n?(I=t,t=n):(r=[r,i,a],t=r))),z--,t===n&&(r=n,z===0&&U(Yr)),t}function yo(){var t,r,i,a,o,s;return z++,t=I,e.substr(I,6).toLowerCase()===yr?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(br)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=W(),a===n?(I=t,t=n):(o=Z(),o===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===de?(s=e.substr(I,5),I+=5):(s=n,z===0&&U(fe)),s===n?(I=t,t=n):(L=t,r=Zr(a),t=r))))),t===n&&(t=I,e.substr(I,6).toLowerCase()===yr?(r=e.substr(I,6),I+=6):(r=n,z===0&&U(br)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===de?(a=e.substr(I,5),I+=5):(a=n,z===0&&U(fe)),a===n?(I=t,t=n):(L=t,r=Qr(),t=r)))),z--,t===n&&(r=n,z===0&&U(Xr)),t}function bo(){var t=I,r,i,a;return e.substr(I,7).toLowerCase()===$r?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ei)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,3).toLowerCase()===C?(a=e.substr(I,3),I+=3):(a=n,z===0&&U(le)),a===n?(I=t,t=n):(r=[r,i,a],t=r))),t}function xo(){var t=I,r,i,a;return e.substr(I,7).toLowerCase()===ti?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ni)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,3).toLowerCase()===C?(a=e.substr(I,3),I+=3):(a=n,z===0&&U(le)),a===n?(I=t,t=n):(r=[r,i,a],t=r))),t}function So(){var t;return e.substr(I,10).toLowerCase()===ri?(t=e.substr(I,10),I+=10):(t=n,z===0&&U(ii)),t}function Co(){var t;return e.substr(I,6).toLowerCase()===ce?(t=e.substr(I,6),I+=6):(t=n,z===0&&U(S)),t}function wo(){var t=I,r,i,a,o;return e.substr(I,8).toLowerCase()===ai?(r=e.substr(I,8),I+=8):(r=n,z===0&&U(oi)),r===n&&(e.substr(I,7).toLowerCase()===si?(r=e.substr(I,7),I+=7):(r=n,z===0&&U(ci)),r===n&&(r=I,e.substr(I,3).toLowerCase()===et?(i=e.substr(I,3),I+=3):(i=n,z===0&&U(tt)),i===n?(I=r,r=n):(a=Z(),a===n?(I=r,r=n):(e.substr(I,4).toLowerCase()===we?(o=e.substr(I,4),I+=4):(o=n,z===0&&U(Te)),o===n?(I=r,r=n):(i=[i,a,o],r=i))),r===n&&(r=I,e.substr(I,2).toLowerCase()===Qt?(i=e.substr(I,2),I+=2):(i=n,z===0&&U($t)),i===n?(I=r,r=n):(a=Z(),a===n?(I=r,r=n):(e.substr(I,6).toLowerCase()===li?(o=e.substr(I,6),I+=6):(o=n,z===0&&U(ui)),o===n?(I=r,r=n):(i=[i,a,o],r=i))),r===n&&(r=I,e.substr(I,3).toLowerCase()===et?(i=e.substr(I,3),I+=3):(i=n,z===0&&U(tt)),i===n?(I=r,r=n):(a=Z(),a===n?(I=r,r=n):(e.substr(I,7).toLowerCase()===st?(o=e.substr(I,7),I+=7):(o=n,z===0&&U(ct)),o===n?(I=r,r=n):(i=[i,a,o],r=i))))))),t=r===n?r:e.substring(t,I),t}function To(){var t,r,i,a;return z++,t=I,e.substr(I,5).toLowerCase()===fi?(r=e.substr(I,5),I+=5):(r=n,z===0&&U(pi)),r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(e.substr(I,5).toLowerCase()===mi?(a=e.substr(I,5),I+=5):(a=n,z===0&&U(hi)),a===n&&(e.substr(I,4).toLowerCase()===gi?(a=e.substr(I,4),I+=4):(a=n,z===0&&U(_i))),a===n?(I=t,t=n):(L=t,r=vi(a),t=r))),z--,t===n&&(r=n,z===0&&U(di)),t}function W(){var t,r,i,a;if(z++,t=I,r=[],i=No(),i!==n)for(;i!==n;)r.push(i),i=No();else r=n;if(r!==n&&(L=t,r=bi(r)),t=r,t===n)if(t=I,r=Po(),r!==n){if(i=[],xi.test(e.charAt(I))?(a=e.charAt(I),I++):(a=n,z===0&&U(Si)),a!==n)for(;a!==n;)i.push(a),xi.test(e.charAt(I))?(a=e.charAt(I),I++):(a=n,z===0&&U(Si));else i=n;i===n?(I=t,t=n):(a=Po(),a===n?(I=t,t=n):(L=t,r=bi(i),t=r))}else I=t,t=n;return z--,t===n&&(r=n,z===0&&U(yi)),t}function Eo(){var t=I,r=[],i=I,a=W(),o,s,c;for(a===n?(I=i,i=n):(o=Z(),o===n?(I=i,i=n):(e.charCodeAt(I)===46?(s=Ci,I++):(s=n,z===0&&U(wi)),s===n?(I=i,i=n):(c=Z(),c===n?(I=i,i=n):(a=[a,o,s,c],i=a))));i!==n;)r.push(i),i=I,a=W(),a===n?(I=i,i=n):(o=Z(),o===n?(I=i,i=n):(e.charCodeAt(I)===46?(s=Ci,I++):(s=n,z===0&&U(wi)),s===n?(I=i,i=n):(c=Z(),c===n?(I=i,i=n):(a=[a,o,s,c],i=a))));return r!==n&&(L=t,r=Ti(r)),t=r,t}function Do(){var e,t,r;return z++,e=I,t=Eo(),t===n?(I=e,e=n):(r=W(),r===n?(I=e,e=n):(L=e,t=Di(t,r),e=t)),z--,e===n&&(t=n,z===0&&U(Ei)),e}function Oo(){var e,t;return z++,e=I,t=ko(),t!==n&&(L=e,t=ki(t)),e=t,e===n&&(e=I,t=W(),t!==n&&(L=e,t=Ai(t)),e=t),z--,e===n&&(t=n,z===0&&U(Oi)),e}function ko(){var t=I,r=W(),i,a,o,s,f,p,m;return r===n?(I=t,t=n):(i=Z(),i===n?(I=t,t=n):(a=I,e.charCodeAt(I)===40?(o=c,I++):(o=n,z===0&&U(l)),o===n?(I=a,a=n):(s=Z(),s===n?(I=a,a=n):(f=G(),f===n?(I=a,a=n):(p=Z(),p===n?(I=a,a=n):(e.charCodeAt(I)===41?(m=u,I++):(m=n,z===0&&U(d)),m===n?(I=a,a=n):(o=[o,s,f,p,m],a=o))))),a===n&&(a=null),a===n?(I=t,t=n):(L=t,r=ji(r,a),t=r))),t}function G(){var e,t,r;for(z++,e=I,t=[],r=Ao();r!==n;)t.push(r),r=Ao();return t!==n&&(L=e,t=Ni(t)),e=t,z--,e===n&&(t=n,z===0&&U(Mi)),e}function Ao(){var t=I,r=I,i=[],a=No(),o,s,f;if(a!==n)for(;a!==n;)i.push(a),a=No();else i=n;if(i===n?(I=r,r=n):(a=Z(),a===n?(I=r,r=n):(e.charCodeAt(I)===40?(o=c,I++):(o=n,z===0&&U(l)),o===n?(I=r,r=n):(s=G(),s===n?(I=r,r=n):(e.charCodeAt(I)===41?(f=u,I++):(f=n,z===0&&U(d)),f===n?(I=r,r=n):(i=[i,a,o,s,f],r=i))))),r===n&&(r=I,e.charCodeAt(I)===40?(i=c,I++):(i=n,z===0&&U(l)),i===n?(I=r,r=n):(a=G(),a===n?(I=r,r=n):(e.charCodeAt(I)===41?(o=u,I++):(o=n,z===0&&U(d)),o===n?(I=r,r=n):(i=[i,a,o],r=i))),r===n)){if(r=I,i=[],a=Mo(),a!==n)for(;a!==n;)i.push(a),a=Mo();else i=n;if(i===n?(I=r,r=n):(a=I,z++,o=Z(),o===n&&(e.charCodeAt(I)===44?(o=Pi,I++):(o=n,z===0&&U(Fi)),o===n&&(e.substr(I,2)===Ii?(o=Ii,I+=2):(o=n,z===0&&U(Li)),o===n&&(o=I,s=Y(),s===n?(I=o,o=n):(e.substr(I,2)===Ii?(f=Ii,I+=2):(f=n,z===0&&U(Li)),f===n?(I=o,o=n):(s=[s,f],o=s))))),z--,o===n?a=n:(I=a,a=void 0),a===n?(I=r,r=n):(i=[i,a],r=i)),r===n){if(r=I,i=[],a=jo(),a!==n)for(;a!==n;)i.push(a),a=jo();else i=n;i===n?(I=r,r=n):(a=I,z++,e.length>I?(o=e.charAt(I),I++):(o=n,z===0&&U(O)),z--,o===n?a=n:(I=a,a=void 0),a===n?(I=r,r=n):(i=[i,a],r=i))}}return r!==n&&(L=t,r=Ri(r)),t=r,t}function jo(){var t;return zi.test(e.charAt(I))?(t=e.charAt(I),I++):(t=n,z===0&&U(Bi)),t===n&&(t=K(),t===n&&(t=X(),t===n&&(t=Fo()))),t}function Mo(){var t;return Vi.test(e.charAt(I))?(t=e.charAt(I),I++):(t=n,z===0&&U(Hi)),t}function No(){var t;return z++,Wi.test(e.charAt(I))?(t=e.charAt(I),I++):(t=n,z===0&&U(Gi)),z--,t===n&&z===0&&U(Ui),t}function K(){var t;return e.charCodeAt(I)===32?(t=Ki,I++):(t=n,z===0&&U(qi)),t}function Po(){var t;return e.charCodeAt(I)===96?(t=Ji,I++):(t=n,z===0&&U(Yi)),t===n&&(e.charCodeAt(I)===34?(t=j,I++):(t=n,z===0&&U(M))),t}function q(){var t;return e.charCodeAt(I)===44?(t=Pi,I++):(t=n,z===0&&U(Fi)),t}function Fo(){var t;return e.charCodeAt(I)===9?(t=Xi,I++):(t=n,z===0&&U(Zi)),t}function J(){var t;return e.charCodeAt(I)===59?(t=_r,I++):(t=n,z===0&&U(vr)),t}function Y(){var e,t,r;for(z++,e=I,t=[],r=K();r!==n;)t.push(r),r=K();return t===n?(I=e,e=n):(r=X(),r===n?(I=e,e=n):(t=[t,r],e=t)),z--,e===n&&(t=n,z===0&&U(Qi)),e}function X(){var t;return z++,e.substr(I,2)===ea?(t=ea,I+=2):(t=n,z===0&&U(ta)),t===n&&(e.charCodeAt(I)===10?(t=na,I++):(t=n,z===0&&U(ra))),z--,t===n&&z===0&&U($i),t}function Z(){var e,t;for(z++,e=[],t=Io(),t===n&&(t=K(),t===n&&(t=Fo(),t===n&&(t=X())));t!==n;)e.push(t),t=Io(),t===n&&(t=K(),t===n&&(t=Fo(),t===n&&(t=X())));return z--,e===n&&(t=n,z===0&&U(ia)),e}function Q(){var e,t;if(z++,e=[],t=Io(),t===n&&(t=K(),t===n&&(t=Fo(),t===n&&(t=X()))),t!==n)for(;t!==n;)e.push(t),t=Io(),t===n&&(t=K(),t===n&&(t=Fo(),t===n&&(t=X())));else e=n;return z--,e===n&&(t=n,z===0&&U(ia)),e}function Io(){var t,r,i,a,o,s;if(z++,t=I,e.substr(I,2)===oa?(r=oa,I+=2):(r=n,z===0&&U(sa)),r!==n){for(i=[],ca.test(e.charAt(I))?(a=e.charAt(I),I++):(a=n,z===0&&U(la));a!==n;)i.push(a),ca.test(e.charAt(I))?(a=e.charAt(I),I++):(a=n,z===0&&U(la));i===n?(I=t,t=n):(r=[r,i],t=r)}else I=t,t=n;if(t===n)if(t=I,e.substr(I,2)===ua?(r=ua,I+=2):(r=n,z===0&&U(da)),r!==n){for(i=[],a=I,o=I,z++,e.substr(I,2)===N?(s=N,I+=2):(s=n,z===0&&U(fa)),z--,s===n?o=void 0:(I=o,o=n),o===n?(I=a,a=n):(e.length>I?(s=e.charAt(I),I++):(s=n,z===0&&U(O)),s===n?(I=a,a=n):(o=[o,s],a=o));a!==n;)i.push(a),a=I,o=I,z++,e.substr(I,2)===N?(s=N,I+=2):(s=n,z===0&&U(fa)),z--,s===n?o=void 0:(I=o,o=n),o===n?(I=a,a=n):(e.length>I?(s=e.charAt(I),I++):(s=n,z===0&&U(O)),s===n?(I=a,a=n):(o=[o,s],a=o));i===n?(I=t,t=n):(e.substr(I,2)===N?(a=N,I+=2):(a=n,z===0&&U(fa)),a===n?(I=t,t=n):(o=J(),o===n&&(o=null),o===n?(I=t,t=n):(r=[r,i,a,o],t=r)))}else I=t,t=n;return z--,t===n&&(r=n,z===0&&U(aa)),t}function Lo(){var t,r,i,a;if(z++,t=I,e.charCodeAt(I)===34?(r=j,I++):(r=n,z===0&&U(M)),r!==n){for(i=[],a=Ro();a!==n;)i.push(a),a=Ro();i===n?(I=t,t=n):(e.charCodeAt(I)===34?(a=j,I++):(a=n,z===0&&U(M)),a===n?(I=t,t=n):(L=t,r=ma(i),t=r))}else I=t,t=n;if(t===n)if(t=I,e.charCodeAt(I)===39?(r=k,I++):(r=n,z===0&&U(A)),r!==n){for(i=[],a=zo();a!==n;)i.push(a),a=zo();i===n?(I=t,t=n):(e.charCodeAt(I)===39?(a=k,I++):(a=n,z===0&&U(A)),a===n?(I=t,t=n):(L=t,r=ma(i),t=r))}else I=t,t=n;return z--,t===n&&(r=n,z===0&&U(pa)),t}function Ro(){var t=I,r,i;return e.charCodeAt(I)===92?(r=ha,I++):(r=n,z===0&&U(ga)),r===n?(I=t,t=n):(e.charCodeAt(I)===34?(i=j,I++):(i=n,z===0&&U(M)),i===n?(I=t,t=n):(L=t,r=_a(),t=r)),t===n&&(t=I,r=I,z++,e.charCodeAt(I)===34?(i=j,I++):(i=n,z===0&&U(M)),z--,i===n?r=void 0:(I=r,r=n),r===n?(I=t,t=n):(i=Bo(),i===n?(I=t,t=n):(L=t,r=va(),t=r))),t}function zo(){var t=I,r,i;return e.charCodeAt(I)===92?(r=ha,I++):(r=n,z===0&&U(ga)),r===n?(I=t,t=n):(e.charCodeAt(I)===39?(i=k,I++):(i=n,z===0&&U(A)),i===n?(I=t,t=n):(L=t,r=ya(),t=r)),t===n&&(t=I,r=I,z++,e.charCodeAt(I)===39?(i=k,I++):(i=n,z===0&&U(A)),z--,i===n?r=void 0:(I=r,r=n),r===n?(I=t,t=n):(i=Bo(),i===n?(I=t,t=n):(L=t,r=va(),t=r))),t}function Bo(){var t;return e.length>I?(t=e.charAt(I),I++):(t=n,z===0&&U(O)),t}function Vo(){var e=Ho();return e===n&&(e=Uo()),e}function Ho(){var t=I,r=[],i,a,o;if(P.test(e.charAt(I))?(i=e.charAt(I),I++):(i=n,z===0&&U(F)),i!==n)for(;i!==n;)r.push(i),P.test(e.charAt(I))?(i=e.charAt(I),I++):(i=n,z===0&&U(F));else r=n;if(r!==n)if(e.charCodeAt(I)===46?(i=Ci,I++):(i=n,z===0&&U(wi)),i!==n){if(a=[],P.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(F)),o!==n)for(;o!==n;)a.push(o),P.test(e.charAt(I))?(o=e.charAt(I),I++):(o=n,z===0&&U(F));else a=n;a===n?(I=t,t=n):(L=t,r=ba(r,a),t=r)}else I=t,t=n;else I=t,t=n;return t}function Uo(){var t=I,r=[],i;if(P.test(e.charAt(I))?(i=e.charAt(I),I++):(i=n,z===0&&U(F)),i!==n)for(;i!==n;)r.push(i),P.test(e.charAt(I))?(i=e.charAt(I),I++):(i=n,z===0&&U(F));else r=n;return r!==n&&(L=t,r=xa(r)),t=r,t}let $=require("lodash"),Wo=[],Go=[],Ko=[],qo=(e,t)=>{let n=e||`public`;return Wo.find(e=>(e.schemaName||`public`)===n&&e.name===t)},Jo=e=>e.split(/[\s\r\n]*,[\s\r\n]*/).map(e=>e.replace(/^[\s]+|[\s]+$|[\r\n]|\s(?=\s)/g,``)).join(`,`);if(wa=a(),wa!==n&&I===e.length)return wa;throw wa!==n&&I<e.length&&U(Da()),Aa(Ca,R<e.length?e.charAt(R):null,R<e.length?ka(R,R+1):ka(R,R))}t.exports={SyntaxError:r,parse:i}}));Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e()}});
|
|
1
|
+
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../packages/dbml-core/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,n){n=n===void 0?{}:n;var r={},i={Rule:Ma},o=Ma,s=function(){return{tables:Go,refs:Ko,enums:qo}},c=function(e){Go.push(e)},l=`(`,u=B(`(`,!1),d=`)`,f=B(`)`,!1),p=function(e,t,n){let r=t.fields,i=t.indexes,a=t.refs;r.forEach(t=>{if(t.type.type_name.toLowerCase()===`enum`){let n=t.type.args.split(/[\s\r\n\n]*,[\s\r\n\n]*/),r=[];n.forEach(e=>{let t={name:e.replace(/'|"|`/g,``).trim()};r.push(t)});let i={name:`${e.schemaName?`${e.schemaName}_`:``}${e.name}_${t.name}_enum`,values:r};qo.push(i),t.type.type_name=i.name}}),a.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName,t.endpoints[0].relation=`*`,Ko.push(t)});let o={...e,fields:r};return n&&n.comment&&(o.note={value:n.comment}),i&&(o.indexes=i),o},m=function(e){let t=$.flatten(e.filter(e=>e.type===`pk`).map(e=>e.pk)),n=$.flatten(e.filter(e=>e.type===`fk`).map(e=>e.fk)),r=$.flatten(e.filter(e=>e.type===`index`).map(e=>e.index)),i=e.filter(e=>e.type===`field`).map(e=>e.field);if(t.length>1){let e={columns:t.map(e=>({value:e,type:`column`})),pk:!0};r.push(e)}else t.forEach(e=>i.find(t=>t.name===e).pk=!0);return n.map(e=>{let t=i.find(t=>t.name===e.endpoints[0].fieldNames[0]);t.inline_ref||=[],t.inline_ref.push({endpoint:e.endpoints[1],onUpdate:e.onUpdate,onDelete:e.onDelete})}),{fields:i,indexes:r,refs:n}},h=H(`fields`),g=function(e){return{type:`pk`,pk:e}},_=function(e){return{type:`fk`,fk:e}},v=function(e){return{type:`index`,index:e}},y=function(e){return{type:`field`,field:e}},b=function(e){return e},x=`constraint`,S=B(`CONSTRAINT`,!0),ee=function(e,t,n,r,i){let a={name:e?e[2]:null,endpoints:[{tableName:null,fieldNames:t,relation:`*`},{tableName:n.name,schemaName:n.schemaName,fieldNames:r,relation:`1`}]};return i.forEach(e=>{if(e.type===`delete`){a.onDelete=e.action;return}a.onUpdate=e.action}),a},te=`on`,C=B(`ON`,!0),ne=`update`,re=B(`UPDATE`,!0),ie=`delete`,ae=B(`DELETE`,!0),oe=function(e,t){return{type:e.toLowerCase(),action:t.toLowerCase()}},w=`unique`,T=B(`UNIQUE`,!0),se=`key`,ce=B(`KEY`,!0),le=function(e,t,n,r,i){let a={columns:r};return t&&(a.name=t),e&&(a.unique=!0),i&&i[1]&&i[1].type===`index_type`&&i[1].value?a.type=i[1].value:n&&(a.type=n),a},ue=`index`,de=B(`INDEX`,!0),fe=function(e){return e},pe=function(){return`unique`},me=`ASC`,he=B(`ASC`,!1),ge=`DESC`,_e=B(`DESC`,!1),ve=function(e,t,n){let r={name:e,type:t};return n&&Object.assign(r,n),r},ye=function(e){let t={};return e.forEach(e=>{e===`null`?t.not_null=!1:e.type==="default"&&e.value?t.dbdefault=e.value:e.type===`comment`&&e.value?t.note={value:e.value}:e!==`not_supported`&&(t[e]=!0)}),t},be=H(`field setting`),xe=`not`,Se=B(`NOT`,!0),Ce=`null`,we=B(`NULL`,!0),Te=function(e){return`not_null`},Ee=function(e){return`null`},De=function(e){return`pk`},Oe=function(e){return`unique`},ke=`auto_increment`,Ae=B(`AUTO_INCREMENT`,!0),je=function(e){return`increment`},Me=`unsigned`,Ne=B(`UNSIGNED`,!0),Pe=function(e){return`unsigned`},Fe=`collate`,Ie=B(`COLLATE`,!0),Le=`column_format`,Re=B(`COLUMN_FORMAT`,!0),ze=`storage`,Be=B(`STORAGE`,!0),Ve=`check`,He=B(`CHECK`,!0),Ue=`generated_always`,We=B(`GENERATED_ALWAYS`,!0),Ge=`as`,Ke=B(`AS`,!0),qe=`virtual`,Je=B(`VIRTUAL`,!0),Ye=`stored`,Xe=B(`STORED`,!0),Ze=`character`,Qe=B(`CHARACTER`,!0),$e=`set`,et=B(`SET`,!0),tt=`charset`,nt=B(`CHARSET`,!0),rt=function(){return`not_supported`},it=function(e){return{type:`default`,value:e}},at=function(e){return{type:`comment`,value:e}},ot=`default`,st=B(`DEFAULT`,!0),ct=function(e){return e},lt=function(e){return{value:e,type:`string`}},ut=function(e){return{value:e,type:`number`}},dt=`true`,ft=B(`TRUE`,!0),pt=`false`,mt=B(`FALSE`,!0),ht=function(e){return{value:e,type:`boolean`}},gt=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},_t=function(e,t){let n=e;return t.forEach(e=>Object.assign(n,e[2])),n},vt=H(`table option`),E=`=`,D=B(`=`,!1),yt=function(e){return{auto_increment:e}},bt=`avg_row_length`,xt=B(`AVG_ROW_LENGTH`,!0),St=function(e){return{avg_row_length:e}},Ct=function(e){return{charset_name:e}},wt=function(e){return{collation_name:e}},Tt=`compression`,Et=B(`COMPRESSION`,!0),Dt=`zlib`,Ot=B(`ZLIB`,!0),kt=`lz4`,At=B(`LZ4`,!0),jt=`none`,Mt=B(`NONE`,!0),Nt=function(e){return{compression:e.toUpperCase()}},Pt=`connection`,Ft=B(`CONNECTION`,!0),It=`connect_string`,Lt=B(`connect_string`,!1),Rt=function(e){return{connect_string:e}},zt=`encryption`,Bt=B(`ENCRYPTION`,!0),Vt=`y`,Ht=B(`Y`,!0),Ut=`n`,Wt=B(`N`,!0),Gt=function(e){return{encryption:e.toUpperCase()}},Kt=`engine`,qt=B(`ENGINE`,!0),Jt=function(e){return{engine:e}},Yt=`insert_method`,Xt=B(`INSERT_METHOD`,!0),Zt=`no`,Qt=B(`NO`,!0),$t=`first`,en=B(`FIRST`,!0),tn=`last`,nn=B(`LAST`,!0),rn=function(e){return{insert_method:e.toUpperCase()}},an=`max_rows`,on=B(`MAX_ROWS`,!0),sn=function(e){return{max_rows:e}},cn=`min_rows`,ln=B(`MIN_ROWS`,!0),un=function(e){return{min_rows:e}},dn=`tablespace`,fn=B(`TABLESPACE`,!0),pn=`STORAGE`,mn=B(`STORAGE`,!1),hn=`disk`,gn=B(`DISK`,!0),_n=`memory`,vn=B(`MEMORY`,!0),yn=function(e){return{tablespace:e}},bn=function(e){return{comment:e}},xn=`enforce`,Sn=B(`ENFORCE`,!0),Cn=function(e,t){let n=$.flatten(t.filter(e=>e.type===`add_fk`).map(e=>e.fks));n.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName}),Ko.push(...n);let r=$.flatten(t.filter(e=>e.type===`add_pk`).map(e=>e.pks)),i=Jo(e.schemaName,e.name),a={columns:r.map(e=>({value:e,type:`column`})),pk:!0};if(r.length>1)i.indexes?i.indexes.push(a):i.indexes=[a];else if(r.length===1){let e=i.fields.find(e=>e.name===r[0]);e.pk=!0}},wn=`add`,Tn=B(`ADD`,!0),En=function(e){return{type:`add_fk`,fks:e}},Dn=function(e){return{type:`add_pk`,pks:e}},On=`column`,kn=B(`COLUMN`,!0),An=function(e,t){return{type:`add_column`,field:{col_name:e,col_type:t}}},jn=function(e,t){return{type:`add_index`,index:{column:t}}},Mn=`change`,Nn=B(`CHANGE`,!0),O=/^[^;]/,k=V([`;`],!0,!1),Pn=`drop`,Fn=B(`DROP`,!0),In=function(e,t,n,r,i,a){let o={columns:i},s=a&&a.type===`index_type`?a.value:null;t&&(o.name=t),e.toLowerCase()===`unique`&&(o.unique=!0);let c=s||r;c&&(o.type=c);let l=Jo(n.schemaName,n.name);l.indexes?l.indexes.push(o):l.indexes=[o]},Ln=function(e){return e},Rn=function(e,t){return[e,...t.map(e=>e[3])]},zn=function(e,t){return{value:`${e}(${Yo($.flattenDeep(t).join(``))})`,type:`expression`}},Bn=function(e){return{value:`${e}`,type:`string`}},Vn=function(e){return{value:`${e}`,type:`expression`}},Hn=`COLLATE`,Un=B(`COLLATE`,!1),Wn=`NULLS`,Gn=B(`NULLS`,!1),Kn=`FIRST`,qn=B(`FIRST`,!1),Jn=`LAST`,Yn=B(`LAST`,!1),Xn=function(e){return e},Zn=`key_block_size`,Qn=B(`KEY_BLOCK_SIZE`,!0),$n=`with`,er=B(`WITH`,!0),tr=`parser`,nr=B(`PARSER`,!0),rr=`comment`,ir=B(`COMMENT`,!0),ar=`string`,or=B(`string`,!1),sr=`visible`,cr=B(`VISIBLE`,!0),lr=`invisible`,ur=B(`INVISIBLE`,!0),dr=function(e){return{type:`index_type`,value:e}},fr=`alter`,pr=B(`ALTER`,!0),A=Da(),mr=`insert`,hr=B(`INSERT`,!0),gr=`;`,_r=B(`;`,!1),vr=`create`,yr=B(`CREATE`,!0),br=`schema`,xr=B(`SCHEMA`,!0),Sr=`database`,Cr=B(`DATABASE`,!0),wr=`use`,Tr=B(`USE`,!0),Er=`begin`,Dr=B(`BEGIN`,!0),Or=`commit`,kr=B(`COMMIT`,!0),Ar=`rollback`,jr=B(`ROLLBACK`,!0),Mr=function(e,t){return[e,...t.map(e=>e[2])]},j=`'`,M=B(`'`,!1),Nr=/^[^']/,Pr=V([`'`],!0,!1),Fr=function(e,t){return t.join(``)},N=`"`,P=B(`"`,!1),Ir=/^[^"]/,Lr=V([`"`],!0,!1),Rr=H(`CREATE TABLE`),zr=`temporary`,Br=B(`TEMPORARY`,!0),Vr=`table`,Hr=B(`TABLE`,!0),Ur=H(`IF NOT EXISTS`),Wr=`if`,Gr=B(`IF`,!0),Kr=`exists`,qr=B(`EXISTS`,!0),Jr=H(`ALTER TABLE`),Yr=H(`CREATE INDEX`),Xr=function(e){return e},Zr=function(){return`INDEX`},Qr=`primary`,$r=B(`PRIMARY`,!0),ei=`foreign`,ti=B(`FOREIGN`,!0),ni=`references`,ri=B(`REFERENCES`,!0),ii=`restrict`,ai=B(`RESTRICT`,!0),oi=`cascade`,si=B(`CASCADE`,!0),ci=`action`,li=B(`ACTION`,!0),ui=H(`index type`),di=`using`,fi=B(`USING`,!0),pi=`btree`,mi=B(`BTREE`,!0),hi=`hash`,gi=B(`HASH`,!0),_i=function(e){return e.toUpperCase()},vi=H(`valid name`),yi=function(e){return e.join(``)},bi=/^[^`]/,xi=V(["`"],!0,!1),Si=`.`,Ci=B(`.`,!1),wi=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Ti=H(`valid table name`),Ei=function(e,t){return{...e,name:t}},Di=H(`type`),Oi=function(e){return e},ki=function(e){return{type_name:e}},Ai=function(e,t){return t=t?t[2]:null,e.toLowerCase()!==`enum`&&(e=t?e+`(`+t+`)`:e),{type_name:e,args:t}},ji=H(`expression`),Mi=function(e){return Yo($.flattenDeep(e).join(``))},Ni=`,`,Pi=B(`,`,!1),Fi=`);`,Ii=B(`);`,!1),Li=function(e){return $.flattenDeep(e).join(``)},Ri=/^[',.a-z0-9_+-`%]/i,zi=V([`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,"`"],`%`],!1,!0),Bi=/^['.a-z0-9_+\-]/i,Vi=V([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),Hi=H(`letter, number or underscore`),Ui=/^[a-z0-9_]/i,Wi=V([[`a`,`z`],[`0`,`9`],`_`],!1,!0),Gi=` `,Ki=B(` `,!1),qi="`",Ji=B("`",!1),Yi=` `,Xi=B(` `,!1),Zi=H(`endline`),Qi=H(`newline`),$i=`\r
|
|
2
|
+
`,ea=B(`\r
|
|
3
|
+
`,!1),ta=`
|
|
4
|
+
`,na=B(`
|
|
5
|
+
`,!1),ra=H(`space`),ia=H(`comment`),aa=`--`,oa=B(`--`,!1),sa=/^[^\n]/,ca=V([`
|
|
6
|
+
`],!0,!1),la=`/*`,ua=B(`/*`,!1),F=`*/`,da=B(`*/`,!1),fa=H(`string`),pa=function(e){return e.join(``)},ma=`\\`,ha=B(`\\`,!1),ga=function(){return`"`},_a=function(){return Ea()},va=function(){return`'`},ya=/^[0-9]/,ba=V([[`0`,`9`]],!1,!1),xa=function(e,t){return parseFloat(e.join(``)+`.`+t.join(``))},Sa=function(e){return parseInt(e.join(``),10)},I=0,L=0,Ca=[{line:1,column:1}],R=0,wa=[],z=0,Ta;if(`startRule`in n){if(!(n.startRule in i))throw Error(`Can't start parsing from rule "`+n.startRule+`".`);o=i[n.startRule]}function Ea(){return e.substring(L,I)}function B(e,t){return{type:`literal`,text:e,ignoreCase:t}}function V(e,t,n){return{type:`class`,parts:e,inverted:t,ignoreCase:n}}function Da(){return{type:`any`}}function Oa(){return{type:`end`}}function H(e){return{type:`other`,description:e}}function ka(t){var n=Ca[t],r;if(n)return n;for(r=t-1;!Ca[r];)r--;for(n=Ca[r],n={line:n.line,column:n.column};r<t;)e.charCodeAt(r)===10?(n.line++,n.column=1):n.column++,r++;return Ca[t]=n,n}function Aa(e,t){var n=ka(e),r=ka(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function U(e){I<R||(I>R&&(R=I,wa=[]),wa.push(e))}function ja(e,t,n){return new a(a.buildMessage(e,t),e,t,n)}function Ma(){for(var e=I,t=[],n=Na();n!==r;)t.push(n),n=Na();return t!==r&&(L=e,t=s()),e=t,e}function Na(){var e=I,t=Pa();return t!==r&&(L=e,t=c(t)),e=t,e===r&&(e=Xa(),e===r&&(e=eo(),e===r&&(e=ao(),e===r&&(e=Q())))),e}function Pa(){var t=I,n=_o(),i,a,o,s,c,m,h,g,_,v,y,b,x,S;return n===r?(I=t,t=r):(i=I,a=Q(),a===r?(I=i,i=r):(o=vo(),o===r?(I=i,i=r):(a=[a,o],i=a)),i===r&&(i=null),i===r?(I=t,t=r):(a=Q(),a===r?(I=t,t=r):(o=Oo(),o===r?(I=t,t=r):(s=Z(),s===r?(I=t,t=r):(e.charCodeAt(I)===40?(c=l,I++):(c=r,z===0&&U(u)),c===r?(I=t,t=r):(m=Z(),m===r?(I=t,t=r):(h=Fa(),h===r?(I=t,t=r):(g=Z(),g===r?(I=t,t=r):(e.charCodeAt(I)===41?(_=d,I++):(_=r,z===0&&U(f)),_===r?(I=t,t=r):(v=Z(),v===r?(I=t,t=r):(y=qa(),y===r&&(y=null),y===r?(I=t,t=r):(b=Z(),b===r?(I=t,t=r):(x=J(),x===r?(I=t,t=r):(S=Y(),S===r&&(S=null),S===r?(I=t,t=r):(L=t,n=p(o,h,y),t=n))))))))))))))),t}function Fa(){var e=I,t=Z(),n,i;if(t!==r){for(n=[],i=Ia();i!==r;)n.push(i),i=Ia();n===r?(I=e,e=r):(i=Z(),i===r?(I=e,e=r):(L=e,t=m(n),e=t))}else I=e,e=r;return e}function Ia(){var t,n,i,a,o,s,c;return z++,t=I,n=La(),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=q(),a===r&&(a=I,z++,e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),z--,o===r?a=r:(I=a,a=void 0),a===r&&(a=I,z++,o=I,s=Y(),s===r?(I=o,o=r):(e.charCodeAt(I)===41?(c=d,I++):(c=r,z===0&&U(f)),c===r?(I=o,o=r):(s=[s,c],o=s)),z--,o===r?a=r:(I=a,a=void 0))),a===r?(I=t,t=r):(L=t,n=g(n),t=n))),t===r&&(t=I,n=Ra(),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=q(),a===r&&(a=I,z++,e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),z--,o===r?a=r:(I=a,a=void 0),a===r&&(a=I,z++,o=I,s=Y(),s===r?(I=o,o=r):(e.charCodeAt(I)===41?(c=d,I++):(c=r,z===0&&U(f)),c===r?(I=o,o=r):(s=[s,c],o=s)),z--,o===r?a=r:(I=a,a=void 0))),a===r?(I=t,t=r):(L=t,n=_(n),t=n))),t===r&&(t=I,n=Ba(),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=q(),a===r&&(a=I,z++,e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),z--,o===r?a=r:(I=a,a=void 0),a===r&&(a=I,z++,o=I,s=Y(),s===r?(I=o,o=r):(e.charCodeAt(I)===41?(c=d,I++):(c=r,z===0&&U(f)),c===r?(I=o,o=r):(s=[s,c],o=s)),z--,o===r?a=r:(I=a,a=void 0))),a===r?(I=t,t=r):(L=t,n=v(n),t=n))),t===r&&(t=I,n=Ha(),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=q(),a===r&&(a=I,z++,e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),z--,o===r?a=r:(I=a,a=void 0),a===r&&(a=I,z++,o=I,s=Y(),s===r?(I=o,o=r):(e.charCodeAt(I)===41?(c=d,I++):(c=r,z===0&&U(f)),c===r?(I=o,o=r):(s=[s,c],o=s)),z--,o===r?a=r:(I=a,a=void 0))),a===r?(I=t,t=r):(L=t,n=y(n),t=n))),t===r&&(t=I,n=Ya(),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=q(),a===r&&(a=I,z++,e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),z--,o===r?a=r:(I=a,a=void 0),a===r&&(a=I,z++,o=I,s=Y(),s===r?(I=o,o=r):(e.charCodeAt(I)===41?(c=d,I++):(c=r,z===0&&U(f)),c===r?(I=o,o=r):(s=[s,c],o=s)),z--,o===r?a=r:(I=a,a=void 0))),a===r?(I=t,t=r):(n=[n,i,a],t=n))),t===r&&(t=Q()))))),z--,t===r&&(n=r,z===0&&U(h)),t}function La(){var t=I,n=Z(),i,a,o,s,c,p,m;return n===r?(I=t,t=r):(i=xo(),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(e.charCodeAt(I)===40?(o=l,I++):(o=r,z===0&&U(u)),o===r?(I=t,t=r):(s=Z(),s===r?(I=t,t=r):(c=ho(),c===r?(I=t,t=r):(p=Z(),p===r?(I=t,t=r):(e.charCodeAt(I)===41?(m=d,I++):(m=r,z===0&&U(f)),m===r?(I=t,t=r):(L=t,n=b(c),t=n)))))))),t}function Ra(){var t=I,n=Z(),i,a,o,s,c,p,m,h,g,_,v,y,b,te,C,ne,re,ie,ae,oe,w,T;if(n!==r)if(i=I,e.substr(I,10).toLowerCase()===x?(a=e.substr(I,10),I+=10):(a=r,z===0&&U(S)),a===r?(I=i,i=r):(o=Z(),o===r?(I=i,i=r):(s=W(),s===r?(I=i,i=r):(a=[a,o,s],i=a))),i===r&&(i=null),i!==r)if(a=Z(),a!==r)if(o=So(),o!==r)if(s=Z(),s!==r)if(e.charCodeAt(I)===40?(c=l,I++):(c=r,z===0&&U(u)),c!==r)if(p=Z(),p!==r)if(m=ho(),m!==r)if(h=Z(),h!==r)if(e.charCodeAt(I)===41?(g=d,I++):(g=r,z===0&&U(f)),g!==r)if(_=Z(),_!==r)if(v=Co(),v!==r)if(y=Z(),y!==r)if(b=Oo(),b!==r)if(te=Z(),te!==r)if(e.charCodeAt(I)===40?(C=l,I++):(C=r,z===0&&U(u)),C!==r)if(ne=Z(),ne!==r)if(re=ho(),re!==r)if(ie=Z(),ie!==r)if(e.charCodeAt(I)===41?(ae=d,I++):(ae=r,z===0&&U(f)),ae!==r)if(oe=Z(),oe!==r){for(w=[],T=za();T!==r;)w.push(T),T=za();w===r?(I=t,t=r):(L=t,n=ee(i,m,b,re,w),t=n)}else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;return t}function za(){var t=I,n=Z(),i,a,o,s,c;return n===r?(I=t,t=r):(e.substr(I,2).toLowerCase()===te?(i=e.substr(I,2),I+=2):(i=r,z===0&&U(C)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(e.substr(I,6).toLowerCase()===ne?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(re)),o===r&&(e.substr(I,6).toLowerCase()===ie?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(ae))),o===r?(I=t,t=r):(s=Z(),s===r?(I=t,t=r):(c=To(),c===r?(I=t,t=r):(L=t,n=oe(o,c),t=n)))))),t}function Ba(){var t=I,n=Z(),i,a,o,s,c,p,m,h,g,_,v,y,b,x;return n===r?(I=t,t=r):(i=Va(),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(o=W(),o===r&&(o=null),o===r?(I=t,t=r):(s=Z(),s===r?(I=t,t=r):(c=Eo(),c===r&&(c=null),c===r?(I=t,t=r):(p=Z(),p===r?(I=t,t=r):(e.charCodeAt(I)===40?(m=l,I++):(m=r,z===0&&U(u)),m===r?(I=t,t=r):(h=Z(),h===r?(I=t,t=r):(g=no(),g===r?(I=t,t=r):(_=Z(),_===r?(I=t,t=r):(e.charCodeAt(I)===41?(v=d,I++):(v=r,z===0&&U(f)),v===r?(I=t,t=r):(y=I,b=Z(),b===r?(I=y,y=r):(x=io(),x===r?(I=y,y=r):(b=[b,x],y=b)),y===r&&(y=null),y===r?(I=t,t=r):(L=t,n=le(i,o,c,g,y),t=n))))))))))))),t}function Va(){var t=I,n,i,a;return e.substr(I,6).toLowerCase()===w?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(T)),n===r&&(n=null),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===ue?(a=e.substr(I,5),I+=5):(a=r,z===0&&U(de)),a===r&&(e.substr(I,3).toLowerCase()===se?(a=e.substr(I,3),I+=3):(a=r,z===0&&U(ce))),a===r?(I=t,t=r):(L=t,n=fe(n),t=n))),t===r&&(t=I,e.substr(I,6).toLowerCase()===w?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(T)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===ue?(a=e.substr(I,5),I+=5):(a=r,z===0&&U(de)),a===r&&(e.substr(I,3).toLowerCase()===se?(a=e.substr(I,3),I+=3):(a=r,z===0&&U(ce))),a===r&&(a=null),a===r?(I=t,t=r):(L=t,n=pe(),t=n)))),t}function Ha(){var e=I,t=Z(),n,i,a,o,s,c;return t===r?(I=e,e=r):(n=W(),n===r?(I=e,e=r):(i=Z(),i===r?(I=e,e=r):(a=ko(),a===r?(I=e,e=r):(o=Z(),o===r?(I=e,e=r):(s=Ua(),s===r&&(s=null),s===r?(I=e,e=r):(c=Z(),c===r?(I=e,e=r):(L=e,t=ve(n,a,s),e=t))))))),e}function Ua(){for(var e=I,t=[],n=Wa();n!==r;)t.push(n),n=Wa();return t!==r&&(L=e,t=ye(t)),e=t,e}function Wa(){var t,n,i,a,o,s,c,p,m,h,g;return z++,t=I,n=Z(),n===r?(I=t,t=r):(e.substr(I,3).toLowerCase()===xe?(i=e.substr(I,3),I+=3):(i=r,z===0&&U(Se)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(e.substr(I,4).toLowerCase()===Ce?(o=e.substr(I,4),I+=4):(o=r,z===0&&U(we)),o===r?(I=t,t=r):(s=Z(),s===r?(I=t,t=r):(L=t,n=Te(i),t=n))))),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(e.substr(I,4).toLowerCase()===Ce?(i=e.substr(I,4),I+=4):(i=r,z===0&&U(we)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(L=t,n=Ee(i),t=n))),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(i=xo(),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(L=t,n=De(i),t=n))),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(i=wo(),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(L=t,n=Oe(i),t=n))),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(e.substr(I,14).toLowerCase()===ke?(i=e.substr(I,14),I+=14):(i=r,z===0&&U(Ae)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(L=t,n=je(i),t=n))),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(e.substr(I,8).toLowerCase()===Me?(i=e.substr(I,8),I+=8):(i=r,z===0&&U(Ne)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(L=t,n=Pe(i),t=n))),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,7).toLowerCase()===Fe?(o=e.substr(I,7),I+=7):(o=r,z===0&&U(Ie)),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(c=W(),c===r?(I=i,i=r):(p=Z(),p===r?(I=i,i=r):(a=[a,o,s,c,p],i=a))))),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,13).toLowerCase()===Le?(o=e.substr(I,13),I+=13):(o=r,z===0&&U(Re)),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(c=Ro(),c===r?(I=i,i=r):(p=Z(),p===r?(I=i,i=r):(a=[a,o,s,c,p],i=a))))),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,7).toLowerCase()===ze?(o=e.substr(I,7),I+=7):(o=r,z===0&&U(Be)),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(c=Ro(),c===r?(I=i,i=r):(p=Z(),p===r?(I=i,i=r):(a=[a,o,s,c,p],i=a))))),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,5).toLowerCase()===Ve?(o=e.substr(I,5),I+=5):(o=r,z===0&&U(He)),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(e.charCodeAt(I)===40?(c=l,I++):(c=r,z===0&&U(u)),c===r?(I=i,i=r):(p=G(),p===r?(I=i,i=r):(e.charCodeAt(I)===41?(m=d,I++):(m=r,z===0&&U(f)),m===r?(I=i,i=r):(h=Z(),h===r?(I=i,i=r):(a=[a,o,s,c,p,m,h],i=a))))))),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,16).toLowerCase()===Ue?(o=e.substr(I,16),I+=16):(o=r,z===0&&U(We)),o===r&&(o=null),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(e.substr(I,2).toLowerCase()===Ge?(c=e.substr(I,2),I+=2):(c=r,z===0&&U(Ke)),c===r?(I=i,i=r):(p=Z(),p===r?(I=i,i=r):(e.charCodeAt(I)===40?(m=l,I++):(m=r,z===0&&U(u)),m===r?(I=i,i=r):(h=G(),h===r?(I=i,i=r):(e.charCodeAt(I)===41?(g=d,I++):(g=r,z===0&&U(f)),g===r?(I=i,i=r):(a=[a,o,s,c,p,m,h,g],i=a)))))))),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,7).toLowerCase()===qe?(o=e.substr(I,7),I+=7):(o=r,z===0&&U(Je)),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(a=[a,o,s],i=a))),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(e.substr(I,6).toLowerCase()===Ye?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(Xe)),o===r?(I=i,i=r):(a=[a,o],i=a)),i===r&&(i=I,a=Z(),a===r?(I=i,i=r):(o=I,e.substr(I,9).toLowerCase()===Ze?(s=e.substr(I,9),I+=9):(s=r,z===0&&U(Qe)),s===r?(I=o,o=r):(c=Z(),c===r?(I=o,o=r):(e.substr(I,3).toLowerCase()===$e?(p=e.substr(I,3),I+=3):(p=r,z===0&&U(et)),p===r?(I=o,o=r):(s=[s,c,p],o=s))),o===r&&(e.substr(I,7).toLowerCase()===tt?(o=e.substr(I,7),I+=7):(o=r,z===0&&U(nt))),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(c=W(),c===r?(I=i,i=r):(p=Z(),p===r?(I=i,i=r):(a=[a,o,s,c,p],i=a)))))))))))),i===r?(I=t,t=r):(L=t,n=rt(),t=n)),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(i=Ga(),i===r?(I=t,t=r):(L=t,n=it(i),t=n)),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(i=go(),i===r?(I=t,t=r):(L=t,n=at(i),t=n)),t===r&&(t=I,n=Z(),n===r?(I=t,t=r):(e.substr(I,2).toLowerCase()===te?(i=e.substr(I,2),I+=2):(i=r,z===0&&U(C)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(e.substr(I,6).toLowerCase()===ne?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(re)),o===r?(I=t,t=r):(s=Z(),s===r?(I=t,t=r):(c=ko(),c===r?(I=t,t=r):(L=t,n=rt(),t=n))))))))))))))),z--,t===r&&(n=r,z===0&&U(be)),t}function Ga(){var t=I,n,i,a;return e.substr(I,7).toLowerCase()===ot?(n=e.substr(I,7),I+=7):(n=r,z===0&&U(st)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=Ka(),a===r?(I=t,t=r):(L=t,n=ct(a),t=n))),t}function Ka(){var t=I,n=Ro();return n!==r&&(L=t,n=lt(n)),t=n,t===r&&(t=I,n=Ho(),n!==r&&(L=t,n=ut(n)),t=n,t===r&&(t=I,e.substr(I,4).toLowerCase()===dt?(n=e.substr(I,4),I+=4):(n=r,z===0&&U(ft)),n===r&&(e.substr(I,5).toLowerCase()===pt?(n=e.substr(I,5),I+=5):(n=r,z===0&&U(mt)),n===r&&(e.substr(I,4).toLowerCase()===Ce?(n=e.substr(I,4),I+=4):(n=r,z===0&&U(we)))),n!==r&&(L=t,n=ht(n)),t=n,t===r&&(t=I,n=jo(),n!==r&&(L=t,n=gt(n)),t=n))),t}function qa(){var e=I,t=Ja(),n,i,a,o,s,c;if(t!==r)if(n=Z(),n!==r){for(i=[],a=I,o=q(),o===r&&(o=null),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=Ja(),c===r?(I=a,a=r):(o=[o,s,c],a=o)));a!==r;)i.push(a),a=I,o=q(),o===r&&(o=null),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=Ja(),c===r?(I=a,a=r):(o=[o,s,c],a=o)));i===r?(I=e,e=r):(L=e,t=_t(t,i),e=t)}else I=e,e=r;else I=e,e=r;return e}function Ja(){var t,n,i,a,o,s,c;return z++,t=I,e.substr(I,14).toLowerCase()===ke?(n=e.substr(I,14),I+=14):(n=r,z===0&&U(Ae)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(o=Ho(),o===r?(I=t,t=r):(L=t,n=yt(o),t=n)))),t===r&&(t=I,e.substr(I,14).toLowerCase()===bt?(n=e.substr(I,14),I+=14):(n=r,z===0&&U(xt)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(o=Ho(),o===r?(I=t,t=r):(L=t,n=St(o),t=n)))),t===r&&(t=I,n=I,e.substr(I,7).toLowerCase()===ot?(i=e.substr(I,7),I+=7):(i=r,z===0&&U(st)),i===r?(I=n,n=r):(a=Z(),a===r?(I=n,n=r):(i=[i,a],n=i)),n===r&&(n=null),n===r?(I=t,t=r):(i=I,e.substr(I,9).toLowerCase()===Ze?(a=e.substr(I,9),I+=9):(a=r,z===0&&U(Qe)),a===r?(I=i,i=r):(o=Z(),o===r?(I=i,i=r):(e.substr(I,3).toLowerCase()===$e?(s=e.substr(I,3),I+=3):(s=r,z===0&&U(et)),s===r?(I=i,i=r):(a=[a,o,s],i=a))),i===r&&(e.substr(I,7).toLowerCase()===tt?(i=e.substr(I,7),I+=7):(i=r,z===0&&U(nt))),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(o=I,e.charCodeAt(I)===61?(s=E,I++):(s=r,z===0&&U(D)),s===r?(I=o,o=r):(c=Z(),c===r?(I=o,o=r):(s=[s,c],o=s)),o===r&&(o=null),o===r?(I=t,t=r):(s=W(),s===r?(I=t,t=r):(L=t,n=Ct(s),t=n))))),t===r&&(t=I,n=I,e.substr(I,7).toLowerCase()===ot?(i=e.substr(I,7),I+=7):(i=r,z===0&&U(st)),i===r?(I=n,n=r):(a=Z(),a===r?(I=n,n=r):(i=[i,a],n=i)),n===r&&(n=null),n===r?(I=t,t=r):(e.substr(I,7).toLowerCase()===Fe?(i=e.substr(I,7),I+=7):(i=r,z===0&&U(Ie)),i===r?(I=t,t=r):(a=Z(),a===r?(I=t,t=r):(o=I,e.charCodeAt(I)===61?(s=E,I++):(s=r,z===0&&U(D)),s===r?(I=o,o=r):(c=Z(),c===r?(I=o,o=r):(s=[s,c],o=s)),o===r&&(o=null),o===r?(I=t,t=r):(s=W(),s===r?(I=t,t=r):(L=t,n=wt(s),t=n))))),t===r&&(t=I,e.substr(I,11).toLowerCase()===Tt?(n=e.substr(I,11),I+=11):(n=r,z===0&&U(Et)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(e.substr(I,4).toLowerCase()===Dt?(o=e.substr(I,4),I+=4):(o=r,z===0&&U(Ot)),o===r&&(e.substr(I,3).toLowerCase()===kt?(o=e.substr(I,3),I+=3):(o=r,z===0&&U(At)),o===r&&(e.substr(I,4).toLowerCase()===jt?(o=e.substr(I,4),I+=4):(o=r,z===0&&U(Mt)))),o===r?(I=t,t=r):(L=t,n=Nt(o),t=n)))),t===r&&(t=I,e.substr(I,10).toLowerCase()===Pt?(n=e.substr(I,10),I+=10):(n=r,z===0&&U(Ft)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(e.substr(I,14)===It?(o=It,I+=14):(o=r,z===0&&U(Lt)),o===r?(I=t,t=r):(L=t,n=Rt(o),t=n)))),t===r&&(t=I,e.substr(I,10).toLowerCase()===zt?(n=e.substr(I,10),I+=10):(n=r,z===0&&U(Bt)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(e.substr(I,1).toLowerCase()===Vt?(o=e.charAt(I),I++):(o=r,z===0&&U(Ht)),o===r&&(e.substr(I,1).toLowerCase()===Ut?(o=e.charAt(I),I++):(o=r,z===0&&U(Wt))),o===r?(I=t,t=r):(L=t,n=Gt(o),t=n)))),t===r&&(t=I,e.substr(I,6).toLowerCase()===Kt?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(qt)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(o=W(),o===r?(I=t,t=r):(L=t,n=Jt(o),t=n)))),t===r&&(t=I,e.substr(I,13).toLowerCase()===Yt?(n=e.substr(I,13),I+=13):(n=r,z===0&&U(Xt)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(e.substr(I,2).toLowerCase()===Zt?(o=e.substr(I,2),I+=2):(o=r,z===0&&U(Qt)),o===r&&(e.substr(I,5).toLowerCase()===$t?(o=e.substr(I,5),I+=5):(o=r,z===0&&U(en)),o===r&&(e.substr(I,4).toLowerCase()===tn?(o=e.substr(I,4),I+=4):(o=r,z===0&&U(nn)))),o===r?(I=t,t=r):(L=t,n=rn(o),t=n)))),t===r&&(t=I,e.substr(I,8).toLowerCase()===an?(n=e.substr(I,8),I+=8):(n=r,z===0&&U(on)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(o=Ho(),o===r?(I=t,t=r):(L=t,n=sn(o),t=n)))),t===r&&(t=I,e.substr(I,8).toLowerCase()===cn?(n=e.substr(I,8),I+=8):(n=r,z===0&&U(ln)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(o=Ho(),o===r?(I=t,t=r):(L=t,n=un(o),t=n)))),t===r&&(t=I,e.substr(I,10).toLowerCase()===dn?(n=e.substr(I,10),I+=10):(n=r,z===0&&U(fn)),n===r?(I=t,t=r):(i=W(),i===r?(I=t,t=r):(a=I,e.substr(I,7)===pn?(o=pn,I+=7):(o=r,z===0&&U(mn)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(e.substr(I,4).toLowerCase()===hn?(c=e.substr(I,4),I+=4):(c=r,z===0&&U(gn)),c===r&&(e.substr(I,6).toLowerCase()===_n?(c=e.substr(I,6),I+=6):(c=r,z===0&&U(vn))),c===r?(I=a,a=r):(o=[o,s,c],a=o))),a===r&&(a=null),a===r?(I=t,t=r):(L=t,n=yn(i),t=n))),t===r&&(t=I,n=go(),n!==r&&(L=t,n=bn(n)),t=n)))))))))))),z--,t===r&&(n=r,z===0&&U(vt)),t}function Ya(){var t=I,n=Z(),i,a,o,s,c,l,u,d,f;return n===r?(I=t,t=r):(i=I,e.substr(I,10).toLowerCase()===x?(a=e.substr(I,10),I+=10):(a=r,z===0&&U(S)),a===r?(I=i,i=r):(o=W(),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(a=[a,o,s],i=a))),i===r&&(i=null),i===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===Ve?(a=e.substr(I,5),I+=5):(a=r,z===0&&U(He)),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(s=G(),s===r?(I=t,t=r):(c=Z(),c===r?(I=t,t=r):(l=I,e.substr(I,3).toLowerCase()===xe?(u=e.substr(I,3),I+=3):(u=r,z===0&&U(Se)),u===r&&(u=null),u===r?(I=l,l=r):(d=Z(),d===r?(I=l,l=r):(e.substr(I,7).toLowerCase()===xn?(f=e.substr(I,7),I+=7):(f=r,z===0&&U(Sn)),f===r?(I=l,l=r):(u=[u,d,f],l=u))),l===r&&(l=null),l===r?(I=t,t=r):(n=[n,i,a,o,s,c,l],t=n))))))),t}function Xa(){var e=I,t=yo(),n,i,a,o,s,c;return t===r?(I=e,e=r):(n=Z(),n===r?(I=e,e=r):(i=Oo(),i===r?(I=e,e=r):(a=Z(),a===r?(I=e,e=r):(o=Za(),o===r&&(o=Qa(),o===r&&(o=$a())),o===r?(I=e,e=r):(s=Z(),s===r?(I=e,e=r):(c=J(),c===r?(I=e,e=r):(L=e,t=Cn(i,o),e=t))))))),e}function Za(){var t=I,n,i,a,o,s,c,l,u;return e.substr(I,3).toLowerCase()===wn?(n=e.substr(I,3),I+=3):(n=r,z===0&&U(Tn)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,o=I,e.substr(I,10).toLowerCase()===x?(s=e.substr(I,10),I+=10):(s=r,z===0&&U(S)),s===r?(I=o,o=r):(c=Q(),c===r?(I=o,o=r):(l=W(),l===r?(I=o,o=r):(s=[s,c,l],o=s))),o===r&&(o=null),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=Ra(),c===r?(I=a,a=r):(L=a,o=En(c),a=o))),a===r&&(a=I,o=I,e.substr(I,10).toLowerCase()===x?(s=e.substr(I,10),I+=10):(s=r,z===0&&U(S)),s===r?(I=o,o=r):(c=Q(),c===r?(I=o,o=r):(l=W(),l===r?(I=o,o=r):(s=[s,c,l],o=s))),o===r&&(o=null),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=La(),c===r?(I=a,a=r):(L=a,o=Dn(c),a=o))),a===r&&(a=I,e.substr(I,6).toLowerCase()===On?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(kn)),o===r&&(o=null),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=W(),c===r?(I=a,a=r):(l=Z(),l===r?(I=a,a=r):(u=ko(),u===r?(I=a,a=r):(L=a,o=An(c,u),a=o))))),a===r&&(a=I,e.substr(I,5).toLowerCase()===ue?(o=e.substr(I,5),I+=5):(o=r,z===0&&U(de)),o===r&&(e.substr(I,3).toLowerCase()===se?(o=e.substr(I,3),I+=3):(o=r,z===0&&U(ce))),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=W(),c===r?(I=a,a=r):(l=Z(),l===r?(I=a,a=r):(u=to(),u===r?(I=a,a=r):(L=a,o=jn(c,u),a=o))))),a===r&&(a=I,o=I,e.substr(I,10).toLowerCase()===x?(s=e.substr(I,10),I+=10):(s=r,z===0&&U(S)),s===r?(I=o,o=r):(c=Q(),c===r?(I=o,o=r):(l=W(),l===r?(I=o,o=r):(s=[s,c,l],o=s))),o===r&&(o=null),o===r?(I=a,a=r):(e.substr(I,6).toLowerCase()===w?(s=e.substr(I,6),I+=6):(s=r,z===0&&U(T)),s===r?(I=a,a=r):(e.substr(I,5).toLowerCase()===ue?(c=e.substr(I,5),I+=5):(c=r,z===0&&U(de)),c===r&&(e.substr(I,3).toLowerCase()===se?(c=e.substr(I,3),I+=3):(c=r,z===0&&U(ce))),c===r?(I=a,a=r):(o=[o,s,c],a=o))))))),a===r?(I=t,t=r):(n=[n,i,a],t=n))),t}function Qa(){var t=I,n,i;return e.substr(I,6).toLowerCase()===Mn?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(Nn)),n===r?(I=t,t=r):(O.test(e.charAt(I))?(i=e.charAt(I),I++):(i=r,z===0&&U(k)),i===r?(I=t,t=r):(n=[n,i],t=n)),t}function $a(){var t=I,n,i;return e.substr(I,4).toLowerCase()===Pn?(n=e.substr(I,4),I+=4):(n=r,z===0&&U(Fn)),n===r?(I=t,t=r):(O.test(e.charAt(I))?(i=e.charAt(I),I++):(i=r,z===0&&U(k)),i===r?(I=t,t=r):(n=[n,i],t=n)),t}function eo(){var t=I,n=bo(),i,a,o,s,c,l,u,d,f,p,m,h,g;return n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=W(),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(e.substr(I,2).toLowerCase()===te?(s=e.substr(I,2),I+=2):(s=r,z===0&&U(C)),s===r?(I=t,t=r):(c=Z(),c===r?(I=t,t=r):(l=Oo(),l===r?(I=t,t=r):(u=Z(),u===r?(I=t,t=r):(d=Eo(),d===r&&(d=null),d===r?(I=t,t=r):(f=Z(),f===r?(I=t,t=r):(p=to(),p===r?(I=t,t=r):(m=Z(),m===r?(I=t,t=r):(h=io(),h===r&&(h=null),h===r?(I=t,t=r):(g=J(),g===r?(I=t,t=r):(L=t,n=In(n,a,l,d,p,h),t=n)))))))))))))),t}function to(){var t=I,n,i,a,o,s;return e.charCodeAt(I)===40?(n=l,I++):(n=r,z===0&&U(u)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=no(),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(e.charCodeAt(I)===41?(s=d,I++):(s=r,z===0&&U(f)),s===r?(I=t,t=r):(L=t,n=Ln(a),t=n))))),t}function no(){var e=I,t=ro(),n,i,a,o,s,c;if(t!==r){for(n=[],i=I,a=Z(),a===r?(I=i,i=r):(o=q(),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(c=ro(),c===r?(I=i,i=r):(a=[a,o,s,c],i=a))));i!==r;)n.push(i),i=I,a=Z(),a===r?(I=i,i=r):(o=q(),o===r?(I=i,i=r):(s=Z(),s===r?(I=i,i=r):(c=ro(),c===r?(I=i,i=r):(a=[a,o,s,c],i=a))));n===r?(I=e,e=r):(L=e,t=Rn(t,n),e=t)}else I=e,e=r;return e}function ro(){var t=I,n=I,i=W(),a,o,s,c,p,m;if(i!==r)if(e.charCodeAt(I)===40?(a=l,I++):(a=r,z===0&&U(u)),a!==r){for(o=[],s=W(),s===r&&(s=Q(),s===r&&(s=q()));s!==r;)o.push(s),s=W(),s===r&&(s=Q(),s===r&&(s=q()));o===r?(I=n,n=r):(e.charCodeAt(I)===41?(s=d,I++):(s=r,z===0&&U(f)),s===r?(I=n,n=r):(L=n,i=zn(i,o),n=i))}else I=n,n=r;else I=n,n=r;return n===r&&(n=I,i=W(),i!==r&&(L=n,i=Bn(i)),n=i,n===r&&(n=I,i=G(),i!==r&&(L=n,i=Vn(i)),n=i)),n===r?(I=t,t=r):(i=I,a=Q(),a===r?(I=i,i=r):(e.substr(I,7)===Hn?(o=Hn,I+=7):(o=r,z===0&&U(Un)),o===r?(I=i,i=r):(s=Q(),s===r?(I=i,i=r):(c=W(),c===r?(I=i,i=r):(a=[a,o,s,c],i=a)))),i===r&&(i=null),i===r?(I=t,t=r):(a=I,o=Q(),o===r?(I=a,a=r):(e.substr(I,3)===me?(s=me,I+=3):(s=r,z===0&&U(he)),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=I,o=Q(),o===r?(I=a,a=r):(e.substr(I,4)===ge?(s=ge,I+=4):(s=r,z===0&&U(_e)),s===r?(I=a,a=r):(o=[o,s],a=o))),a===r&&(a=null),a===r?(I=t,t=r):(o=I,s=Q(),s===r?(I=o,o=r):(e.substr(I,5)===Wn?(c=Wn,I+=5):(c=r,z===0&&U(Gn)),c===r?(I=o,o=r):(p=Q(),p===r?(I=o,o=r):(e.substr(I,5)===Kn?(m=Kn,I+=5):(m=r,z===0&&U(qn)),m===r&&(e.substr(I,4)===Jn?(m=Jn,I+=4):(m=r,z===0&&U(Yn))),m===r?(I=o,o=r):(s=[s,c,p,m],o=s)))),o===r&&(o=null),o===r?(I=t,t=r):(L=t,n=Xn(n),t=n)))),t}function io(){var t=I,n,i,a,o,s;return e.substr(I,14).toLowerCase()===Zn?(n=e.substr(I,14),I+=14):(n=r,z===0&&U(Qn)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a===r?(I=t,t=r):(o=ko(),o===r?(I=t,t=r):(n=[n,i,a,o],t=n)))),t===r&&(t=I,e.substr(I,4).toLowerCase()===$n?(n=e.substr(I,4),I+=4):(n=r,z===0&&U(er)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,6).toLowerCase()===tr?(a=e.substr(I,6),I+=6):(a=r,z===0&&U(nr)),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(s=W(),s===r?(I=t,t=r):(n=[n,i,a,o,s],t=n))))),t===r&&(t=I,e.substr(I,7).toLowerCase()===rr?(n=e.substr(I,7),I+=7):(n=r,z===0&&U(ir)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,6)===ar?(a=ar,I+=6):(a=r,z===0&&U(or)),a===r?(I=t,t=r):(n=[n,i,a],t=n))),t===r&&(e.substr(I,7).toLowerCase()===sr?(t=e.substr(I,7),I+=7):(t=r,z===0&&U(cr)),t===r&&(e.substr(I,9).toLowerCase()===lr?(t=e.substr(I,9),I+=9):(t=r,z===0&&U(ur))),t===r&&(t=I,n=Eo(),n!==r&&(L=t,n=dr(n)),t=n)))),t}function ao(){var t=I,n=oo(),i,a,o,s,c,l;if(n===r&&(n=so(),n===r&&(n=co(),n===r&&(n=lo(),n===r&&(n=uo(),n===r&&(n=fo(),n===r&&(n=po(),n===r&&(n=mo(),n===r))))))))if(n=I,e.substr(I,5).toLowerCase()===fr?(i=e.substr(I,5),I+=5):(i=r,z===0&&U(pr)),i!==r)if(a=Z(),a!==r){for(o=[],s=Lo(),s===r&&(s=I,c=I,z++,l=J(),z--,l===r?c=void 0:(I=c,c=r),c===r?(I=s,s=r):(e.length>I?(l=e.charAt(I),I++):(l=r,z===0&&U(A)),l===r?(I=s,s=r):(c=[c,l],s=c)));s!==r;)o.push(s),s=Lo(),s===r&&(s=I,c=I,z++,l=J(),z--,l===r?c=void 0:(I=c,c=r),c===r?(I=s,s=r):(e.length>I?(l=e.charAt(I),I++):(l=r,z===0&&U(A)),l===r?(I=s,s=r):(c=[c,l],s=c)));o===r?(I=n,n=r):(i=[i,a,o],n=i)}else I=n,n=r;else I=n,n=r;return n===r?(I=t,t=r):(i=J(),i===r?(I=t,t=r):(a=X(),a===r&&(a=null),a===r?(I=t,t=r):(n=[n,i,a],t=n))),t}function oo(){var t=I,n=Z(),i,a,o,s,c,l,u,p;if(n!==r)if(e.substr(I,6).toLowerCase()===mr?(i=e.substr(I,6),I+=6):(i=r,z===0&&U(hr)),i!==r){for(a=[],o=I,s=I,z++,c=I,e.charCodeAt(I)===41?(l=d,I++):(l=r,z===0&&U(f)),l===r?(I=c,c=r):(u=Z(),u===r?(I=c,c=r):(e.charCodeAt(I)===59?(p=gr,I++):(p=r,z===0&&U(_r)),p===r?(I=c,c=r):(l=[l,u,p],c=l))),z--,c===r?s=void 0:(I=s,s=r),s===r?(I=o,o=r):(e.length>I?(c=e.charAt(I),I++):(c=r,z===0&&U(A)),c===r?(I=o,o=r):(s=[s,c],o=s));o!==r;)a.push(o),o=I,s=I,z++,c=I,e.charCodeAt(I)===41?(l=d,I++):(l=r,z===0&&U(f)),l===r?(I=c,c=r):(u=Z(),u===r?(I=c,c=r):(e.charCodeAt(I)===59?(p=gr,I++):(p=r,z===0&&U(_r)),p===r?(I=c,c=r):(l=[l,u,p],c=l))),z--,c===r?s=void 0:(I=s,s=r),s===r?(I=o,o=r):(e.length>I?(c=e.charAt(I),I++):(c=r,z===0&&U(A)),c===r?(I=o,o=r):(s=[s,c],o=s));a===r?(I=t,t=r):(e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),o===r?(I=t,t=r):(n=[n,i,a,o],t=n))}else I=t,t=r;else I=t,t=r;return t}function so(){var t=I,n=Z(),i,a,o;if(n!==r)if(e.substr(I,3).toLowerCase()===$e?(i=e.substr(I,3),I+=3):(i=r,z===0&&U(et)),i!==r){for(a=[],O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));o!==r;)a.push(o),O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));a===r?(I=t,t=r):(n=[n,i,a],t=n)}else I=t,t=r;else I=t,t=r;return t}function co(){var t=I,n=Z(),i,a,o,s,c;if(n!==r)if(e.substr(I,6).toLowerCase()===vr?(i=e.substr(I,6),I+=6):(i=r,z===0&&U(yr)),i!==r)if(a=Z(),a!==r)if(e.substr(I,6).toLowerCase()===br?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(xr)),o===r&&(e.substr(I,8).toLowerCase()===Sr?(o=e.substr(I,8),I+=8):(o=r,z===0&&U(Cr))),o!==r){for(s=[],O.test(e.charAt(I))?(c=e.charAt(I),I++):(c=r,z===0&&U(k));c!==r;)s.push(c),O.test(e.charAt(I))?(c=e.charAt(I),I++):(c=r,z===0&&U(k));s===r?(I=t,t=r):(n=[n,i,a,o,s],t=n)}else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;return t}function lo(){var t=I,n=Z(),i,a,o;if(n!==r)if(e.substr(I,4).toLowerCase()===Pn?(i=e.substr(I,4),I+=4):(i=r,z===0&&U(Fn)),i!==r){for(a=[],O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));o!==r;)a.push(o),O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));a===r?(I=t,t=r):(n=[n,i,a],t=n)}else I=t,t=r;else I=t,t=r;return t}function uo(){var t=I,n=Z(),i,a,o;if(n!==r)if(e.substr(I,3).toLowerCase()===wr?(i=e.substr(I,3),I+=3):(i=r,z===0&&U(Tr)),i!==r){for(a=[],O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));o!==r;)a.push(o),O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));a===r?(I=t,t=r):(n=[n,i,a],t=n)}else I=t,t=r;else I=t,t=r;return t}function fo(){var t=I,n=Z(),i,a,o;if(n!==r)if(e.substr(I,5).toLowerCase()===Er?(i=e.substr(I,5),I+=5):(i=r,z===0&&U(Dr)),i!==r){for(a=[],O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));o!==r;)a.push(o),O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));a===r?(I=t,t=r):(n=[n,i,a],t=n)}else I=t,t=r;else I=t,t=r;return t}function po(){var t=I,n=Z(),i,a,o;if(n!==r)if(e.substr(I,6).toLowerCase()===Or?(i=e.substr(I,6),I+=6):(i=r,z===0&&U(kr)),i!==r){for(a=[],O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));o!==r;)a.push(o),O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));a===r?(I=t,t=r):(n=[n,i,a],t=n)}else I=t,t=r;else I=t,t=r;return t}function mo(){var t=I,n=Z(),i,a,o;if(n!==r)if(e.substr(I,8).toLowerCase()===Ar?(i=e.substr(I,8),I+=8):(i=r,z===0&&U(jr)),i!==r){for(a=[],O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));o!==r;)a.push(o),O.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(k));a===r?(I=t,t=r):(n=[n,i,a],t=n)}else I=t,t=r;else I=t,t=r;return t}function ho(){var e=I,t=W(),n,i,a,o,s;if(t!==r){for(n=[],i=I,a=q(),a===r?(I=i,i=r):(o=Z(),o===r?(I=i,i=r):(s=W(),s===r?(I=i,i=r):(a=[a,o,s],i=a)));i!==r;)n.push(i),i=I,a=q(),a===r?(I=i,i=r):(o=Z(),o===r?(I=i,i=r):(s=W(),s===r?(I=i,i=r):(a=[a,o,s],i=a)));n===r?(I=e,e=r):(L=e,t=Mr(t,n),e=t)}else I=e,e=r;return e}function go(){var t=I,n,i,a,o,s,c;if(e.substr(I,7).toLowerCase()===rr?(n=e.substr(I,7),I+=7):(n=r,z===0&&U(ir)),n!==r)if(i=Z(),i!==r)if(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a!==r)if(e.charCodeAt(I)===39?(o=j,I++):(o=r,z===0&&U(M)),o!==r){for(s=[],Nr.test(e.charAt(I))?(c=e.charAt(I),I++):(c=r,z===0&&U(Pr));c!==r;)s.push(c),Nr.test(e.charAt(I))?(c=e.charAt(I),I++):(c=r,z===0&&U(Pr));s===r?(I=t,t=r):(e.charCodeAt(I)===39?(c=j,I++):(c=r,z===0&&U(M)),c===r?(I=t,t=r):(L=t,n=Fr(o,s),t=n))}else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;if(t===r)if(t=I,e.substr(I,7).toLowerCase()===rr?(n=e.substr(I,7),I+=7):(n=r,z===0&&U(ir)),n!==r)if(i=Z(),i!==r)if(a=I,e.charCodeAt(I)===61?(o=E,I++):(o=r,z===0&&U(D)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(o=[o,s],a=o)),a===r&&(a=null),a!==r)if(e.charCodeAt(I)===34?(o=N,I++):(o=r,z===0&&U(P)),o!==r){for(s=[],Ir.test(e.charAt(I))?(c=e.charAt(I),I++):(c=r,z===0&&U(Lr));c!==r;)s.push(c),Ir.test(e.charAt(I))?(c=e.charAt(I),I++):(c=r,z===0&&U(Lr));s===r?(I=t,t=r):(e.charCodeAt(I)===34?(c=N,I++):(c=r,z===0&&U(P)),c===r?(I=t,t=r):(L=t,n=Fr(o,s),t=n))}else I=t,t=r;else I=t,t=r;else I=t,t=r;else I=t,t=r;return t}function _o(){var t,n,i,a,o,s;return z++,t=I,e.substr(I,6).toLowerCase()===vr?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(yr)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,9).toLowerCase()===zr?(a=e.substr(I,9),I+=9):(a=r,z===0&&U(Br)),a===r&&(a=null),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===Vr?(s=e.substr(I,5),I+=5):(s=r,z===0&&U(Hr)),s===r?(I=t,t=r):(n=[n,i,a,o,s],t=n))))),z--,t===r&&(n=r,z===0&&U(Rr)),t}function vo(){var t,n,i,a,o,s;return z++,t=I,e.substr(I,2).toLowerCase()===Wr?(n=e.substr(I,2),I+=2):(n=r,z===0&&U(Gr)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,3).toLowerCase()===xe?(a=e.substr(I,3),I+=3):(a=r,z===0&&U(Se)),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(e.substr(I,6).toLowerCase()===Kr?(s=e.substr(I,6),I+=6):(s=r,z===0&&U(qr)),s===r?(I=t,t=r):(n=[n,i,a,o,s],t=n))))),z--,t===r&&(n=r,z===0&&U(Ur)),t}function yo(){var t,n,i,a;return z++,t=I,e.substr(I,5).toLowerCase()===fr?(n=e.substr(I,5),I+=5):(n=r,z===0&&U(pr)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===Vr?(a=e.substr(I,5),I+=5):(a=r,z===0&&U(Hr)),a===r?(I=t,t=r):(n=[n,i,a],t=n))),z--,t===r&&(n=r,z===0&&U(Jr)),t}function bo(){var t,n,i,a,o,s;return z++,t=I,e.substr(I,6).toLowerCase()===vr?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(yr)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=W(),a===r?(I=t,t=r):(o=Z(),o===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===ue?(s=e.substr(I,5),I+=5):(s=r,z===0&&U(de)),s===r?(I=t,t=r):(L=t,n=Xr(a),t=n))))),t===r&&(t=I,e.substr(I,6).toLowerCase()===vr?(n=e.substr(I,6),I+=6):(n=r,z===0&&U(yr)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===ue?(a=e.substr(I,5),I+=5):(a=r,z===0&&U(de)),a===r?(I=t,t=r):(L=t,n=Zr(),t=n)))),z--,t===r&&(n=r,z===0&&U(Yr)),t}function xo(){var t=I,n,i,a;return e.substr(I,7).toLowerCase()===Qr?(n=e.substr(I,7),I+=7):(n=r,z===0&&U($r)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,3).toLowerCase()===se?(a=e.substr(I,3),I+=3):(a=r,z===0&&U(ce)),a===r?(I=t,t=r):(n=[n,i,a],t=n))),t}function So(){var t=I,n,i,a;return e.substr(I,7).toLowerCase()===ei?(n=e.substr(I,7),I+=7):(n=r,z===0&&U(ti)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,3).toLowerCase()===se?(a=e.substr(I,3),I+=3):(a=r,z===0&&U(ce)),a===r?(I=t,t=r):(n=[n,i,a],t=n))),t}function Co(){var t;return e.substr(I,10).toLowerCase()===ni?(t=e.substr(I,10),I+=10):(t=r,z===0&&U(ri)),t}function wo(){var t;return e.substr(I,6).toLowerCase()===w?(t=e.substr(I,6),I+=6):(t=r,z===0&&U(T)),t}function To(){var t=I,n,i,a,o;return e.substr(I,8).toLowerCase()===ii?(n=e.substr(I,8),I+=8):(n=r,z===0&&U(ai)),n===r&&(e.substr(I,7).toLowerCase()===oi?(n=e.substr(I,7),I+=7):(n=r,z===0&&U(si)),n===r&&(n=I,e.substr(I,3).toLowerCase()===$e?(i=e.substr(I,3),I+=3):(i=r,z===0&&U(et)),i===r?(I=n,n=r):(a=Z(),a===r?(I=n,n=r):(e.substr(I,4).toLowerCase()===Ce?(o=e.substr(I,4),I+=4):(o=r,z===0&&U(we)),o===r?(I=n,n=r):(i=[i,a,o],n=i))),n===r&&(n=I,e.substr(I,2).toLowerCase()===Zt?(i=e.substr(I,2),I+=2):(i=r,z===0&&U(Qt)),i===r?(I=n,n=r):(a=Z(),a===r?(I=n,n=r):(e.substr(I,6).toLowerCase()===ci?(o=e.substr(I,6),I+=6):(o=r,z===0&&U(li)),o===r?(I=n,n=r):(i=[i,a,o],n=i))),n===r&&(n=I,e.substr(I,3).toLowerCase()===$e?(i=e.substr(I,3),I+=3):(i=r,z===0&&U(et)),i===r?(I=n,n=r):(a=Z(),a===r?(I=n,n=r):(e.substr(I,7).toLowerCase()===ot?(o=e.substr(I,7),I+=7):(o=r,z===0&&U(st)),o===r?(I=n,n=r):(i=[i,a,o],n=i))))))),t=n===r?n:e.substring(t,I),t}function Eo(){var t,n,i,a;return z++,t=I,e.substr(I,5).toLowerCase()===di?(n=e.substr(I,5),I+=5):(n=r,z===0&&U(fi)),n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(e.substr(I,5).toLowerCase()===pi?(a=e.substr(I,5),I+=5):(a=r,z===0&&U(mi)),a===r&&(e.substr(I,4).toLowerCase()===hi?(a=e.substr(I,4),I+=4):(a=r,z===0&&U(gi))),a===r?(I=t,t=r):(L=t,n=_i(a),t=n))),z--,t===r&&(n=r,z===0&&U(ui)),t}function W(){var t,n,i,a;if(z++,t=I,n=[],i=Po(),i!==r)for(;i!==r;)n.push(i),i=Po();else n=r;if(n!==r&&(L=t,n=yi(n)),t=n,t===r)if(t=I,n=Fo(),n!==r){if(i=[],bi.test(e.charAt(I))?(a=e.charAt(I),I++):(a=r,z===0&&U(xi)),a!==r)for(;a!==r;)i.push(a),bi.test(e.charAt(I))?(a=e.charAt(I),I++):(a=r,z===0&&U(xi));else i=r;i===r?(I=t,t=r):(a=Fo(),a===r?(I=t,t=r):(L=t,n=yi(i),t=n))}else I=t,t=r;return z--,t===r&&(n=r,z===0&&U(vi)),t}function Do(){var t=I,n=[],i=I,a=W(),o,s,c;for(a===r?(I=i,i=r):(o=Z(),o===r?(I=i,i=r):(e.charCodeAt(I)===46?(s=Si,I++):(s=r,z===0&&U(Ci)),s===r?(I=i,i=r):(c=Z(),c===r?(I=i,i=r):(a=[a,o,s,c],i=a))));i!==r;)n.push(i),i=I,a=W(),a===r?(I=i,i=r):(o=Z(),o===r?(I=i,i=r):(e.charCodeAt(I)===46?(s=Si,I++):(s=r,z===0&&U(Ci)),s===r?(I=i,i=r):(c=Z(),c===r?(I=i,i=r):(a=[a,o,s,c],i=a))));return n!==r&&(L=t,n=wi(n)),t=n,t}function Oo(){var e,t,n;return z++,e=I,t=Do(),t===r?(I=e,e=r):(n=W(),n===r?(I=e,e=r):(L=e,t=Ei(t,n),e=t)),z--,e===r&&(t=r,z===0&&U(Ti)),e}function ko(){var e,t;return z++,e=I,t=Ao(),t!==r&&(L=e,t=Oi(t)),e=t,e===r&&(e=I,t=W(),t!==r&&(L=e,t=ki(t)),e=t),z--,e===r&&(t=r,z===0&&U(Di)),e}function Ao(){var t=I,n=W(),i,a,o,s,c,p,m;return n===r?(I=t,t=r):(i=Z(),i===r?(I=t,t=r):(a=I,e.charCodeAt(I)===40?(o=l,I++):(o=r,z===0&&U(u)),o===r?(I=a,a=r):(s=Z(),s===r?(I=a,a=r):(c=G(),c===r?(I=a,a=r):(p=Z(),p===r?(I=a,a=r):(e.charCodeAt(I)===41?(m=d,I++):(m=r,z===0&&U(f)),m===r?(I=a,a=r):(o=[o,s,c,p,m],a=o))))),a===r&&(a=null),a===r?(I=t,t=r):(L=t,n=Ai(n,a),t=n))),t}function G(){var e,t,n;for(z++,e=I,t=[],n=jo();n!==r;)t.push(n),n=jo();return t!==r&&(L=e,t=Mi(t)),e=t,z--,e===r&&(t=r,z===0&&U(ji)),e}function jo(){var t=I,n=I,i=[],a=Po(),o,s,c;if(a!==r)for(;a!==r;)i.push(a),a=Po();else i=r;if(i===r?(I=n,n=r):(a=Z(),a===r?(I=n,n=r):(e.charCodeAt(I)===40?(o=l,I++):(o=r,z===0&&U(u)),o===r?(I=n,n=r):(s=G(),s===r?(I=n,n=r):(e.charCodeAt(I)===41?(c=d,I++):(c=r,z===0&&U(f)),c===r?(I=n,n=r):(i=[i,a,o,s,c],n=i))))),n===r&&(n=I,e.charCodeAt(I)===40?(i=l,I++):(i=r,z===0&&U(u)),i===r?(I=n,n=r):(a=G(),a===r?(I=n,n=r):(e.charCodeAt(I)===41?(o=d,I++):(o=r,z===0&&U(f)),o===r?(I=n,n=r):(i=[i,a,o],n=i))),n===r)){if(n=I,i=[],a=No(),a!==r)for(;a!==r;)i.push(a),a=No();else i=r;if(i===r?(I=n,n=r):(a=I,z++,o=Z(),o===r&&(e.charCodeAt(I)===44?(o=Ni,I++):(o=r,z===0&&U(Pi)),o===r&&(e.substr(I,2)===Fi?(o=Fi,I+=2):(o=r,z===0&&U(Ii)),o===r&&(o=I,s=Y(),s===r?(I=o,o=r):(e.substr(I,2)===Fi?(c=Fi,I+=2):(c=r,z===0&&U(Ii)),c===r?(I=o,o=r):(s=[s,c],o=s))))),z--,o===r?a=r:(I=a,a=void 0),a===r?(I=n,n=r):(i=[i,a],n=i)),n===r){if(n=I,i=[],a=Mo(),a!==r)for(;a!==r;)i.push(a),a=Mo();else i=r;i===r?(I=n,n=r):(a=I,z++,e.length>I?(o=e.charAt(I),I++):(o=r,z===0&&U(A)),z--,o===r?a=r:(I=a,a=void 0),a===r?(I=n,n=r):(i=[i,a],n=i))}}return n!==r&&(L=t,n=Li(n)),t=n,t}function Mo(){var t;return Ri.test(e.charAt(I))?(t=e.charAt(I),I++):(t=r,z===0&&U(zi)),t===r&&(t=K(),t===r&&(t=X(),t===r&&(t=Io()))),t}function No(){var t;return Bi.test(e.charAt(I))?(t=e.charAt(I),I++):(t=r,z===0&&U(Vi)),t}function Po(){var t;return z++,Ui.test(e.charAt(I))?(t=e.charAt(I),I++):(t=r,z===0&&U(Wi)),z--,t===r&&z===0&&U(Hi),t}function K(){var t;return e.charCodeAt(I)===32?(t=Gi,I++):(t=r,z===0&&U(Ki)),t}function Fo(){var t;return e.charCodeAt(I)===96?(t=qi,I++):(t=r,z===0&&U(Ji)),t===r&&(e.charCodeAt(I)===34?(t=N,I++):(t=r,z===0&&U(P))),t}function q(){var t;return e.charCodeAt(I)===44?(t=Ni,I++):(t=r,z===0&&U(Pi)),t}function Io(){var t;return e.charCodeAt(I)===9?(t=Yi,I++):(t=r,z===0&&U(Xi)),t}function J(){var t;return e.charCodeAt(I)===59?(t=gr,I++):(t=r,z===0&&U(_r)),t}function Y(){var e,t,n;for(z++,e=I,t=[],n=K();n!==r;)t.push(n),n=K();return t===r?(I=e,e=r):(n=X(),n===r?(I=e,e=r):(t=[t,n],e=t)),z--,e===r&&(t=r,z===0&&U(Zi)),e}function X(){var t;return z++,e.substr(I,2)===$i?(t=$i,I+=2):(t=r,z===0&&U(ea)),t===r&&(e.charCodeAt(I)===10?(t=ta,I++):(t=r,z===0&&U(na))),z--,t===r&&z===0&&U(Qi),t}function Z(){var e,t;for(z++,e=[],t=Lo(),t===r&&(t=K(),t===r&&(t=Io(),t===r&&(t=X())));t!==r;)e.push(t),t=Lo(),t===r&&(t=K(),t===r&&(t=Io(),t===r&&(t=X())));return z--,e===r&&(t=r,z===0&&U(ra)),e}function Q(){var e,t;if(z++,e=[],t=Lo(),t===r&&(t=K(),t===r&&(t=Io(),t===r&&(t=X()))),t!==r)for(;t!==r;)e.push(t),t=Lo(),t===r&&(t=K(),t===r&&(t=Io(),t===r&&(t=X())));else e=r;return z--,e===r&&(t=r,z===0&&U(ra)),e}function Lo(){var t,n,i,a,o,s;if(z++,t=I,e.substr(I,2)===aa?(n=aa,I+=2):(n=r,z===0&&U(oa)),n!==r){for(i=[],sa.test(e.charAt(I))?(a=e.charAt(I),I++):(a=r,z===0&&U(ca));a!==r;)i.push(a),sa.test(e.charAt(I))?(a=e.charAt(I),I++):(a=r,z===0&&U(ca));i===r?(I=t,t=r):(n=[n,i],t=n)}else I=t,t=r;if(t===r)if(t=I,e.substr(I,2)===la?(n=la,I+=2):(n=r,z===0&&U(ua)),n!==r){for(i=[],a=I,o=I,z++,e.substr(I,2)===F?(s=F,I+=2):(s=r,z===0&&U(da)),z--,s===r?o=void 0:(I=o,o=r),o===r?(I=a,a=r):(e.length>I?(s=e.charAt(I),I++):(s=r,z===0&&U(A)),s===r?(I=a,a=r):(o=[o,s],a=o));a!==r;)i.push(a),a=I,o=I,z++,e.substr(I,2)===F?(s=F,I+=2):(s=r,z===0&&U(da)),z--,s===r?o=void 0:(I=o,o=r),o===r?(I=a,a=r):(e.length>I?(s=e.charAt(I),I++):(s=r,z===0&&U(A)),s===r?(I=a,a=r):(o=[o,s],a=o));i===r?(I=t,t=r):(e.substr(I,2)===F?(a=F,I+=2):(a=r,z===0&&U(da)),a===r?(I=t,t=r):(o=J(),o===r&&(o=null),o===r?(I=t,t=r):(n=[n,i,a,o],t=n)))}else I=t,t=r;return z--,t===r&&(n=r,z===0&&U(ia)),t}function Ro(){var t,n,i,a;if(z++,t=I,e.charCodeAt(I)===34?(n=N,I++):(n=r,z===0&&U(P)),n!==r){for(i=[],a=zo();a!==r;)i.push(a),a=zo();i===r?(I=t,t=r):(e.charCodeAt(I)===34?(a=N,I++):(a=r,z===0&&U(P)),a===r?(I=t,t=r):(L=t,n=pa(i),t=n))}else I=t,t=r;if(t===r)if(t=I,e.charCodeAt(I)===39?(n=j,I++):(n=r,z===0&&U(M)),n!==r){for(i=[],a=Bo();a!==r;)i.push(a),a=Bo();i===r?(I=t,t=r):(e.charCodeAt(I)===39?(a=j,I++):(a=r,z===0&&U(M)),a===r?(I=t,t=r):(L=t,n=pa(i),t=n))}else I=t,t=r;return z--,t===r&&(n=r,z===0&&U(fa)),t}function zo(){var t=I,n,i;return e.charCodeAt(I)===92?(n=ma,I++):(n=r,z===0&&U(ha)),n===r?(I=t,t=r):(e.charCodeAt(I)===34?(i=N,I++):(i=r,z===0&&U(P)),i===r?(I=t,t=r):(L=t,n=ga(),t=n)),t===r&&(t=I,n=I,z++,e.charCodeAt(I)===34?(i=N,I++):(i=r,z===0&&U(P)),z--,i===r?n=void 0:(I=n,n=r),n===r?(I=t,t=r):(i=Vo(),i===r?(I=t,t=r):(L=t,n=_a(),t=n))),t}function Bo(){var t=I,n,i;return e.charCodeAt(I)===92?(n=ma,I++):(n=r,z===0&&U(ha)),n===r?(I=t,t=r):(e.charCodeAt(I)===39?(i=j,I++):(i=r,z===0&&U(M)),i===r?(I=t,t=r):(L=t,n=va(),t=n)),t===r&&(t=I,n=I,z++,e.charCodeAt(I)===39?(i=j,I++):(i=r,z===0&&U(M)),z--,i===r?n=void 0:(I=n,n=r),n===r?(I=t,t=r):(i=Vo(),i===r?(I=t,t=r):(L=t,n=_a(),t=n))),t}function Vo(){var t;return e.length>I?(t=e.charAt(I),I++):(t=r,z===0&&U(A)),t}function Ho(){var e=Uo();return e===r&&(e=Wo()),e}function Uo(){var t=I,n=[],i,a,o;if(ya.test(e.charAt(I))?(i=e.charAt(I),I++):(i=r,z===0&&U(ba)),i!==r)for(;i!==r;)n.push(i),ya.test(e.charAt(I))?(i=e.charAt(I),I++):(i=r,z===0&&U(ba));else n=r;if(n!==r)if(e.charCodeAt(I)===46?(i=Si,I++):(i=r,z===0&&U(Ci)),i!==r){if(a=[],ya.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(ba)),o!==r)for(;o!==r;)a.push(o),ya.test(e.charAt(I))?(o=e.charAt(I),I++):(o=r,z===0&&U(ba));else a=r;a===r?(I=t,t=r):(L=t,n=xa(n,a),t=n)}else I=t,t=r;else I=t,t=r;return t}function Wo(){var t=I,n=[],i;if(ya.test(e.charAt(I))?(i=e.charAt(I),I++):(i=r,z===0&&U(ba)),i!==r)for(;i!==r;)n.push(i),ya.test(e.charAt(I))?(i=e.charAt(I),I++):(i=r,z===0&&U(ba));else n=r;return n!==r&&(L=t,n=Sa(n)),t=n,t}let $=t.default,Go=[],Ko=[],qo=[],Jo=(e,t)=>{let n=e||`public`;return Go.find(e=>(e.schemaName||`public`)===n&&e.name===t)},Yo=e=>e.split(/[\s\r\n]*,[\s\r\n]*/).map(e=>e.replace(/^[\s]+|[\s]+$|[\r\n]|\s(?=\s)/g,``)).join(`,`);if(Ta=o(),Ta!==r&&I===e.length)return Ta;throw Ta!==r&&I<e.length&&U(Oa()),ja(wa,R<e.length?e.charAt(R):null,R<e.length?Aa(R,R+1):Aa(R,R))}r.exports={SyntaxError:a,parse:o}}));Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r()}});
|