From 2c139c2e72e4d53d87c56995e8ed196ddc0e1eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 09:48:47 +0900 Subject: [PATCH 1/6] Add a test --- .../fixture/issues-6xxx/6407/input/.swcrc | 69 +++++++++++++++++++ .../fixture/issues-6xxx/6407/input/index.mjs | 18 +++++ 2 files changed, 87 insertions(+) create mode 100644 crates/swc/tests/fixture/issues-6xxx/6407/input/.swcrc create mode 100644 crates/swc/tests/fixture/issues-6xxx/6407/input/index.mjs diff --git a/crates/swc/tests/fixture/issues-6xxx/6407/input/.swcrc b/crates/swc/tests/fixture/issues-6xxx/6407/input/.swcrc new file mode 100644 index 000000000000..fce5a4b21060 --- /dev/null +++ b/crates/swc/tests/fixture/issues-6xxx/6407/input/.swcrc @@ -0,0 +1,69 @@ +{ + "minify": false, + "jsc": { + "parser": { + "syntax": "ecmascript" + }, + "transform": { + "legacyDecorator": true, + "react": { + "runtime": "automatic" + } + }, + "target": "es2022", + "loose": false, + "externalHelpers": true, + "minify": { + "compress": { + "arguments": false, + "arrows": true, + "booleans": true, + "booleans_as_integers": false, + "collapse_vars": true, + "comparisons": true, + "computed_props": true, + "conditionals": true, + "dead_code": true, + "directives": true, + "drop_console": false, + "drop_debugger": true, + "evaluate": true, + "expression": false, + "hoist_funs": false, + "hoist_props": true, + "hoist_vars": false, + "if_return": true, + "join_vars": true, + "keep_classnames": false, + "keep_fargs": true, + "keep_fnames": false, + "keep_infinity": false, + "loops": true, + "negate_iife": true, + "properties": true, + "reduce_funcs": false, + "reduce_vars": false, + "side_effects": true, + "switches": true, + "typeofs": true, + "unsafe": false, + "unsafe_arrows": false, + "unsafe_comps": false, + "unsafe_Function": false, + "unsafe_math": false, + "unsafe_symbols": false, + "unsafe_methods": false, + "unsafe_proto": false, + "unsafe_regexp": false, + "unsafe_undefined": false, + "unused": true, + "const_to_let": true, + "pristine_globals": true + }, + "mangle": false + } + }, + "module": { + "type": "es6" + } +} \ No newline at end of file diff --git a/crates/swc/tests/fixture/issues-6xxx/6407/input/index.mjs b/crates/swc/tests/fixture/issues-6xxx/6407/input/index.mjs new file mode 100644 index 000000000000..cf1b802b1b70 --- /dev/null +++ b/crates/swc/tests/fixture/issues-6xxx/6407/input/index.mjs @@ -0,0 +1,18 @@ +export default class Demo { + static encode(value) { + const ranges = []; + let range = []; + let retrString = A.encode(value); + let bitField = ''; + value.forEach((curValue, i) => { + bitField += B.encode(curValue); + range.push(i); + ranges.push(range); + }); + retrString += '.'; + retrString += C.encode(ranges); + return retrString; + } +} + +console.log(Deno.encode()) \ No newline at end of file From 84235f8fbfa92d399e504696af10528bcd917967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 09:49:33 +0900 Subject: [PATCH 2/6] Add a test --- .../tests/fixture/issues/6407/1/config.json | 46 +++++++++++++++++++ .../tests/fixture/issues/6407/1/input.js | 18 ++++++++ 2 files changed, 64 insertions(+) create mode 100644 crates/swc_ecma_minifier/tests/fixture/issues/6407/1/config.json create mode 100644 crates/swc_ecma_minifier/tests/fixture/issues/6407/1/input.js diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/config.json b/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/config.json new file mode 100644 index 000000000000..e24c2f770eb5 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/config.json @@ -0,0 +1,46 @@ +{ + "arguments": false, + "arrows": true, + "booleans": true, + "booleans_as_integers": false, + "collapse_vars": true, + "comparisons": true, + "computed_props": true, + "conditionals": true, + "dead_code": true, + "directives": true, + "drop_console": false, + "drop_debugger": true, + "evaluate": true, + "expression": false, + "hoist_funs": false, + "hoist_props": true, + "hoist_vars": false, + "if_return": true, + "join_vars": true, + "keep_classnames": false, + "keep_fargs": true, + "keep_fnames": false, + "keep_infinity": false, + "loops": true, + "negate_iife": true, + "properties": true, + "reduce_funcs": false, + "reduce_vars": false, + "side_effects": true, + "switches": true, + "typeofs": true, + "unsafe": false, + "unsafe_arrows": false, + "unsafe_comps": false, + "unsafe_Function": false, + "unsafe_math": false, + "unsafe_symbols": false, + "unsafe_methods": false, + "unsafe_proto": false, + "unsafe_regexp": false, + "unsafe_undefined": false, + "unused": true, + "const_to_let": true, + "pristine_globals": true +} diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/input.js b/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/input.js new file mode 100644 index 000000000000..cf1b802b1b70 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/input.js @@ -0,0 +1,18 @@ +export default class Demo { + static encode(value) { + const ranges = []; + let range = []; + let retrString = A.encode(value); + let bitField = ''; + value.forEach((curValue, i) => { + bitField += B.encode(curValue); + range.push(i); + ranges.push(range); + }); + retrString += '.'; + retrString += C.encode(ranges); + return retrString; + } +} + +console.log(Deno.encode()) \ No newline at end of file From 56ca940017fe6407bef9953098af27e991ab6089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 09:54:19 +0900 Subject: [PATCH 3/6] fixup --- .../tests/fixture/issues-6xxx/6407/input/{index.mjs => index.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename crates/swc/tests/fixture/issues-6xxx/6407/input/{index.mjs => index.js} (100%) diff --git a/crates/swc/tests/fixture/issues-6xxx/6407/input/index.mjs b/crates/swc/tests/fixture/issues-6xxx/6407/input/index.js similarity index 100% rename from crates/swc/tests/fixture/issues-6xxx/6407/input/index.mjs rename to crates/swc/tests/fixture/issues-6xxx/6407/input/index.js From 0e4b69ca1fe9552635ea87c12a6fe8707382ac45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 10:05:56 +0900 Subject: [PATCH 4/6] Add a test --- .../tests/pass-1/issues/6407/1/config.json | 47 +++++++++++++++++++ .../tests/pass-1/issues/6407/1/input.js | 18 +++++++ 2 files changed, 65 insertions(+) create mode 100644 crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/config.json create mode 100644 crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/input.js diff --git a/crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/config.json b/crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/config.json new file mode 100644 index 000000000000..431958ad9aa6 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/config.json @@ -0,0 +1,47 @@ +{ + "passes": 1, + "arguments": false, + "arrows": true, + "booleans": true, + "booleans_as_integers": false, + "collapse_vars": true, + "comparisons": true, + "computed_props": true, + "conditionals": true, + "dead_code": true, + "directives": true, + "drop_console": false, + "drop_debugger": true, + "evaluate": true, + "expression": false, + "hoist_funs": false, + "hoist_props": true, + "hoist_vars": false, + "if_return": true, + "join_vars": true, + "keep_classnames": false, + "keep_fargs": true, + "keep_fnames": false, + "keep_infinity": false, + "loops": true, + "negate_iife": true, + "properties": true, + "reduce_funcs": false, + "reduce_vars": false, + "side_effects": true, + "switches": true, + "typeofs": true, + "unsafe": false, + "unsafe_arrows": false, + "unsafe_comps": false, + "unsafe_Function": false, + "unsafe_math": false, + "unsafe_symbols": false, + "unsafe_methods": false, + "unsafe_proto": false, + "unsafe_regexp": false, + "unsafe_undefined": false, + "unused": true, + "const_to_let": true, + "pristine_globals": true +} diff --git a/crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/input.js b/crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/input.js new file mode 100644 index 000000000000..cf1b802b1b70 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/input.js @@ -0,0 +1,18 @@ +export default class Demo { + static encode(value) { + const ranges = []; + let range = []; + let retrString = A.encode(value); + let bitField = ''; + value.forEach((curValue, i) => { + bitField += B.encode(curValue); + range.push(i); + ranges.push(range); + }); + retrString += '.'; + retrString += C.encode(ranges); + return retrString; + } +} + +console.log(Deno.encode()) \ No newline at end of file From 8778e5699397b95682454de4415da72500b02e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 10:13:22 +0900 Subject: [PATCH 5/6] Preserve assign op --- crates/swc_ecma_minifier/src/compress/optimize/sequences.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs b/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs index 11e03c9000c5..fb4d45086cdb 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs @@ -2305,7 +2305,7 @@ where ); self.changed = true; - b.op = op!("="); + b.op = a_op; let to = take_a!(true, true); From 79fc2025ca353a9ac29b923f8d7d5d783dcaeec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 14 Nov 2022 10:19:26 +0900 Subject: [PATCH 6/6] Update test refs --- .../tests/fixture/issues-6xxx/6407/output/index.js | 9 +++++++++ .../tests/tsc-references/symbolType12.2.minified.js | 2 +- .../swc_ecma_minifier/tests/benches-full/echarts.js | 4 ++-- .../swc_ecma_minifier/tests/benches-full/moment.js | 2 +- .../swc_ecma_minifier/tests/benches-full/terser.js | 2 +- .../tests/fixture/issues/6407/1/output.js | 12 ++++++++++++ .../tests/fixture/issues/firebase-core/1/output.js | 2 +- .../fixture/issues/firebase-firestore/1/output.js | 2 +- .../tests/fixture/issues/moment/1/output.js | 2 +- .../chunks/d6e1aeb5-38a8d7ae57119c23/output.js | 10 +++++----- .../tests/fixture/next/react-pdf-renderer/output.js | 2 +- .../next/syncfusion/933-e9f9a6bf671b96fc/output.js | 4 ++-- .../tests/fixture/next/wrap-contracts/output.js | 12 ++++++------ .../tests/full/issue-5912-bigdecimal/output.js | 2 +- .../tests/pass-1/issues/6407/1/output.js | 12 ++++++++++++ .../tests/projects/output/jquery.mobile-1.4.2.js | 2 +- .../tests/projects/output/react-dom-17.0.2.js | 2 +- 17 files changed, 58 insertions(+), 25 deletions(-) create mode 100644 crates/swc/tests/fixture/issues-6xxx/6407/output/index.js create mode 100644 crates/swc_ecma_minifier/tests/fixture/issues/6407/1/output.js create mode 100644 crates/swc_ecma_minifier/tests/pass-1/issues/6407/1/output.js diff --git a/crates/swc/tests/fixture/issues-6xxx/6407/output/index.js b/crates/swc/tests/fixture/issues-6xxx/6407/output/index.js new file mode 100644 index 000000000000..bd3245975b77 --- /dev/null +++ b/crates/swc/tests/fixture/issues-6xxx/6407/output/index.js @@ -0,0 +1,9 @@ +export default class Demo { + static encode(value) { + let ranges = [], range = [], retrString = A.encode(value), bitField = ''; + return value.forEach((curValue, i)=>{ + bitField += B.encode(curValue), range.push(i), ranges.push(range); + }), retrString += '.' + C.encode(ranges); + } +} +console.log(Deno.encode()); diff --git a/crates/swc/tests/tsc-references/symbolType12.2.minified.js b/crates/swc/tests/tsc-references/symbolType12.2.minified.js index b205fe6cbe00..858038980d84 100644 --- a/crates/swc/tests/tsc-references/symbolType12.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolType12.2.minified.js @@ -1,3 +1,3 @@ //// [symbolType12.ts] var s = Symbol.for("assign"), str = ""; -s *= 0, s /= s, s /= 0, s %= s, s %= 0, str += s = s + 0 + "", s -= s, s -= 0, s <<= s, s <<= 0, s >>= s, s >>= 0, s >>>= s, s >>>= 0, s &= s, s &= 0, s ^= s, s ^= 0, s |= s, s |= 0, str += s || str; +s *= 0 * s, s /= s, s /= 0, s %= s, s %= 0, s += s + 0 + "", str += s, s -= s, s -= 0, s <<= s, s <<= 0, s >>= s, s >>= 0, s >>>= s, s >>>= 0, s &= s, s &= 0, s ^= s, s ^= 0, s |= s, s |= 0, str += s || str; diff --git a/crates/swc_ecma_minifier/tests/benches-full/echarts.js b/crates/swc_ecma_minifier/tests/benches-full/echarts.js index 9fbe8f06ab74..5343147cd248 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/echarts.js +++ b/crates/swc_ecma_minifier/tests/benches-full/echarts.js @@ -5298,7 +5298,7 @@ var width = data[i++], height = data[i++]; if (x1 = x0 + width, y1 = y0 + height, isStroke) { if (containStroke(x0, y0, x1, y0, lineWidth, x, y) || containStroke(x1, y0, x1, y1, lineWidth, x, y) || containStroke(x1, y1, x0, y1, lineWidth, x, y) || containStroke(x0, y1, x0, y0, lineWidth, x, y)) return !0; - } else w = windingLine(x1, y0, x1, y1, x, y) + windingLine(x0, y1, x0, y0, x, y); + } else w += windingLine(x1, y0, x1, y1, x, y) + windingLine(x0, y1, x0, y0, x, y); break; case CMD$1.Z: if (isStroke) { @@ -34777,7 +34777,7 @@ var blockMetaList = result1.meta, buttonContainer = document.createElement('div'); buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;'; var buttonStyle = "float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px", closeButton = document.createElement('div'), refreshButton = document.createElement('div'); - buttonStyle = ';background-color:' + model.get('buttonColor') + ';color:' + model.get('buttonTextColor'); + buttonStyle += ';background-color:' + model.get('buttonColor') + ';color:' + model.get('buttonTextColor'); var self1 = this; function close() { container.removeChild(root), self1._dom = null; diff --git a/crates/swc_ecma_minifier/tests/benches-full/moment.js b/crates/swc_ecma_minifier/tests/benches-full/moment.js index 84b6cfb9b255..bbb8045563ad 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/moment.js +++ b/crates/swc_ecma_minifier/tests/benches-full/moment.js @@ -799,7 +799,7 @@ getParsingFlags(config).invalidFormat = !0, config._d = new Date(NaN); return; } - for(i = 0; i < config._f.length; i++)currentScore = 0, validFormatFound = !1, tempConfig = copyConfig({}, config), null != config._useUTC && (tempConfig._useUTC = config._useUTC), tempConfig._f = config._f[i], configFromStringAndFormat(tempConfig), isValid(tempConfig) && (validFormatFound = !0), currentScore = getParsingFlags(tempConfig).charsLeftOver + 10 * getParsingFlags(tempConfig).unusedTokens.length, getParsingFlags(tempConfig).score = currentScore, bestFormatIsValid ? currentScore < scoreToBeat && (scoreToBeat = currentScore, bestMoment = tempConfig) : (null == scoreToBeat || currentScore < scoreToBeat || validFormatFound) && (scoreToBeat = currentScore, bestMoment = tempConfig, validFormatFound && (bestFormatIsValid = !0)); + for(i = 0; i < config._f.length; i++)currentScore = 0, validFormatFound = !1, tempConfig = copyConfig({}, config), null != config._useUTC && (tempConfig._useUTC = config._useUTC), tempConfig._f = config._f[i], configFromStringAndFormat(tempConfig), isValid(tempConfig) && (validFormatFound = !0), currentScore += getParsingFlags(tempConfig).charsLeftOver + 10 * getParsingFlags(tempConfig).unusedTokens.length, getParsingFlags(tempConfig).score = currentScore, bestFormatIsValid ? currentScore < scoreToBeat && (scoreToBeat = currentScore, bestMoment = tempConfig) : (null == scoreToBeat || currentScore < scoreToBeat || validFormatFound) && (scoreToBeat = currentScore, bestMoment = tempConfig, validFormatFound && (bestFormatIsValid = !0)); extend(config, bestMoment || tempConfig); }(config) : format ? configFromStringAndFormat(config) : isUndefined(input = (config1 = config)._i) ? config1._d = new Date(hooks.now()) : isDate(input) ? config1._d = new Date(input.valueOf()) : 'string' == typeof input ? function(config) { var matched = aspNetJsonRegex.exec(config._i); diff --git a/crates/swc_ecma_minifier/tests/benches-full/terser.js b/crates/swc_ecma_minifier/tests/benches-full/terser.js index 4d1db85a4610..0ad620f11346 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/terser.js +++ b/crates/swc_ecma_minifier/tests/benches-full/terser.js @@ -1913,7 +1913,7 @@ for(var code = "return function AST_" + type + "(props){ if (props) { ", i = props.length; --i >= 0;)code += "this." + props[i] + " = props." + props[i] + ";"; const proto = base && Object.create(base.prototype); (proto && proto.initialize || methods && methods.initialize) && (code += "this.initialize();"); - var ctor = Function(code = "}this.flags = 0;}")(); + var ctor = Function(code += "}this.flags = 0;}")(); if (proto && (ctor.prototype = proto, ctor.BASE = base), base && base.SUBCLASSES.push(ctor), ctor.prototype.CTOR = ctor, ctor.prototype.constructor = ctor, ctor.PROPS = props || null, ctor.SELF_PROPS = self_props, ctor.SUBCLASSES = [], type && (ctor.prototype.TYPE = ctor.TYPE = type), methods) for(i in methods)HOP(methods, i) && ("$" === i[0] ? ctor[i.substr(1)] = methods[i] : ctor.prototype[i] = methods[i]); return ctor.DEFMETHOD = function(name, method) { this.prototype[name] = method; diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/output.js new file mode 100644 index 000000000000..8fde0f4bf6b6 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/fixture/issues/6407/1/output.js @@ -0,0 +1,12 @@ +export default class Demo { + static encode(value) { + const ranges = []; + let range = [], retrString = A.encode(value), bitField = ''; + return value.forEach((curValue, i)=>{ + bitField += B.encode(curValue); + range.push(i); + ranges.push(range); + }), retrString += '.' + C.encode(ranges); + } +} +console.log(Deno.encode()); diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js index 2315adb9faa4..536cb0240959 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-core/1/output.js @@ -1287,7 +1287,7 @@ d = !0; } d || (b1 = "", xa(c, function(c, d) { - b1 = d + ":" + c + "\r\n"; + b1 += d + ":" + c + "\r\n"; }), c = b1, "string" == typeof a ? null != c && encodeURIComponent(String(c)) : R(a, b, c)); } function Hd(a, b, c) { diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js index 78378fc7b17b..57722333811d 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/firebase-firestore/1/output.js @@ -838,7 +838,7 @@ const e = t; if (null === e.A) { let t1 = e.path.canonicalString(); - null !== e.collectionGroup && (t1 += "|cg:" + e.collectionGroup), t1 = "|f:" + e.filters.map((t)=>t.field.canonicalString() + t.op.toString() + xt(t.value)).join(",") + "|ob:" + e.orderBy.map((t)=>t.field.canonicalString() + t.dir).join(","), At(e.limit) || (t1 = "|l:" + e.limit), e.startAt && (t1 = "|lb:" + ce(e.startAt)), e.endAt && (t1 = "|ub:" + ce(e.endAt)), e.A = t1; + null !== e.collectionGroup && (t1 += "|cg:" + e.collectionGroup), t1 += "|f:" + e.filters.map((t)=>t.field.canonicalString() + t.op.toString() + xt(t.value)).join(",") + "|ob:" + e.orderBy.map((t)=>t.field.canonicalString() + t.dir).join(","), At(e.limit) || (t1 += "|l:" + e.limit), e.startAt && (t1 += "|lb:" + ce(e.startAt)), e.endAt && (t1 += "|ub:" + ce(e.endAt)), e.A = t1; } return e.A; } diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js index 64f34e892c8f..9e4bb063cd96 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/moment/1/output.js @@ -799,7 +799,7 @@ getParsingFlags(config).invalidFormat = !0, config._d = new Date(NaN); return; } - for(i = 0; i < config._f.length; i++)currentScore = 0, validFormatFound = !1, tempConfig = copyConfig({}, config), null != config._useUTC && (tempConfig._useUTC = config._useUTC), tempConfig._f = config._f[i], configFromStringAndFormat(tempConfig), isValid(tempConfig) && (validFormatFound = !0), currentScore = getParsingFlags(tempConfig).charsLeftOver + 10 * getParsingFlags(tempConfig).unusedTokens.length, getParsingFlags(tempConfig).score = currentScore, bestFormatIsValid ? currentScore < scoreToBeat && (scoreToBeat = currentScore, bestMoment = tempConfig) : (null == scoreToBeat || currentScore < scoreToBeat || validFormatFound) && (scoreToBeat = currentScore, bestMoment = tempConfig, validFormatFound && (bestFormatIsValid = !0)); + for(i = 0; i < config._f.length; i++)currentScore = 0, validFormatFound = !1, tempConfig = copyConfig({}, config), null != config._useUTC && (tempConfig._useUTC = config._useUTC), tempConfig._f = config._f[i], configFromStringAndFormat(tempConfig), isValid(tempConfig) && (validFormatFound = !0), currentScore += getParsingFlags(tempConfig).charsLeftOver + 10 * getParsingFlags(tempConfig).unusedTokens.length, getParsingFlags(tempConfig).score = currentScore, bestFormatIsValid ? currentScore < scoreToBeat && (scoreToBeat = currentScore, bestMoment = tempConfig) : (null == scoreToBeat || currentScore < scoreToBeat || validFormatFound) && (scoreToBeat = currentScore, bestMoment = tempConfig, validFormatFound && (bestFormatIsValid = !0)); extend(config, bestMoment || tempConfig); }(config) : format ? configFromStringAndFormat(config) : isUndefined(input = (config1 = config)._i) ? config1._d = new Date(hooks.now()) : isDate(input) ? config1._d = new Date(input.valueOf()) : "string" == typeof input ? function(config) { var matched = aspNetJsonRegex.exec(config._i); diff --git a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js index e4581deaf4b8..0c18857535d3 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/33265/static/chunks/d6e1aeb5-38a8d7ae57119c23/output.js @@ -9364,7 +9364,7 @@ pts: buffer[0].pts, dts: buffer[0].dts }; i < tagSize;)tag.data.set(buffer[0].data.subarray(0, tagSize - i), i), i += buffer[0].data.byteLength, bufferSize -= buffer[0].data.byteLength, buffer.shift(); - frameStart = 10, 0x40 & tag.data[5] && (frameStart = 4 + parseSyncSafeInteger$1(tag.data.subarray(10, 14)), tagSize -= parseSyncSafeInteger$1(tag.data.subarray(16, 20))); + frameStart = 10, 0x40 & tag.data[5] && (frameStart += 4 + parseSyncSafeInteger$1(tag.data.subarray(10, 14)), tagSize -= parseSyncSafeInteger$1(tag.data.subarray(16, 20))); do { if ((frameSize = parseSyncSafeInteger$1(tag.data.subarray(frameStart + 4, frameStart + 8))) < 1) { this.trigger("log", { @@ -9380,7 +9380,7 @@ var d = frame.data, size = (0x01 & d[3]) << 30 | d[4] << 22 | d[5] << 14 | d[6] << 6 | d[7] >>> 2; size *= 4, size += 0x03 & d[7], frame.timeStamp = size, void 0 === tag.pts && void 0 === tag.dts && (tag.pts = frame.timeStamp, tag.dts = frame.timeStamp), this.trigger("timestamp", frame); } - tag.frames.push(frame), frameStart = 10 + frameSize; + tag.frames.push(frame), frameStart += 10 + frameSize; }while (frameStart < tagSize) this.trigger("data", tag); } @@ -9920,7 +9920,7 @@ }, parseAacTimestamp: function(packet) { var frameStart, frameSize, frame; - frameStart = 10, 0x40 & packet[5] && (frameStart = 4 + parseSyncSafeInteger(packet.subarray(10, 14))); + frameStart = 10, 0x40 & packet[5] && (frameStart += 4 + parseSyncSafeInteger(packet.subarray(10, 14))); do { if ((frameSize = parseSyncSafeInteger(packet.subarray(frameStart + 4, frameStart + 8))) < 1) break; if ("PRIV" === String.fromCharCode(packet[frameStart], packet[frameStart + 1], packet[frameStart + 2], packet[frameStart + 3])) { @@ -9933,7 +9933,7 @@ break; } } - frameStart = 10 + frameSize; + frameStart += 10 + frameSize; }while (frameStart < packet.byteLength) return null; } @@ -10244,7 +10244,7 @@ return ("00" + value.toString(16)).slice(-2); } }, parseType_1 = function(buffer) { - return String.fromCharCode(buffer[0]) + String.fromCharCode(buffer[1]) + String.fromCharCode(buffer[2]) + String.fromCharCode(buffer[3]); + return "" + (String.fromCharCode(buffer[0]) + String.fromCharCode(buffer[1]) + String.fromCharCode(buffer[2]) + String.fromCharCode(buffer[3])); }, toUnsigned$2 = bin.toUnsigned, findBox_1 = function findBox(data, path) { var i, size, type, end, subresults, results = []; if (!path.length) return null; diff --git a/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js b/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js index 6c601a154cd0..d5ddfb87c069 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/react-pdf-renderer/output.js @@ -15868,7 +15868,7 @@ i += "".concat(t[0], " and ").concat(t[1], " arguments"); break; default: - i = t.slice(0, o - 1).join(", ") + ", and ".concat(t[o - 1], " arguments"); + i += t.slice(0, o - 1).join(", ") + ", and ".concat(t[o - 1], " arguments"); } return "".concat(i, " must be specified"); }, TypeError), e.exports.codes = l; diff --git a/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js b/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js index caa7b287097e..02dc5948250f 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/syncfusion/933-e9f9a6bf671b96fc/output.js @@ -19185,7 +19185,7 @@ }, Toolbar.prototype.itemWidthCal = function(items) { var style, _this = this, width = 0; return [].slice.call((0, ej2_base.td)('.' + CLS_ITEM, items)).forEach(function(el) { - (0, ej2_base.pn)(el) && (style = window.getComputedStyle(el), width = (_this.isVertical ? el.offsetHeight : el.offsetWidth) + parseFloat(_this.isVertical ? style.marginTop : style.marginRight) + parseFloat(_this.isVertical ? style.marginBottom : style.marginLeft)); + (0, ej2_base.pn)(el) && (style = window.getComputedStyle(el), width += (_this.isVertical ? el.offsetHeight : el.offsetWidth) + parseFloat(_this.isVertical ? style.marginTop : style.marginRight) + parseFloat(_this.isVertical ? style.marginBottom : style.marginLeft)); }), width; }, Toolbar.prototype.getScrollCntEle = function(innerItem) { var trgClass = this.isVertical ? '.e-vscroll-content' : '.e-hscroll-content'; @@ -23519,7 +23519,7 @@ }); }, ToolbarRenderer.prototype.renderColorPickerDropDown = function(args, item, colorPicker, defaultColor) { var range, _this = this, proxy = this, css = classes.i7 + ' ' + classes.Fs + (this.parent.inlineMode ? ' ' + classes.ZV : ''); - css = ' ' + ('backgroundcolor' === item ? classes.Z8 : classes.UQ) + ' ' + this.parent.cssClass; + css += ' ' + ('backgroundcolor' === item ? classes.Z8 : classes.UQ) + ' ' + this.parent.cssClass; var content = proxy.parent.createElement('span', { className: classes.uN }), inlineEle = proxy.parent.createElement('span', { diff --git a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js index 4d11a0c9fb7d..ec6023f9b0d4 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js @@ -636,7 +636,7 @@ isNegNum && (num = -num), assert('number' == typeof num), assert(num < 0x4000000); for(var carry = 0, i = 0; i < this.length; i++){ var w = (0 | this.words[i]) * num, lo = (0x3ffffff & w) + (0x3ffffff & carry); - carry >>= 26, carry = (w / 0x4000000 | 0) + (lo >>> 26), this.words[i] = 0x3ffffff & lo; + carry >>= 26, carry += (w / 0x4000000 | 0) + (lo >>> 26), this.words[i] = 0x3ffffff & lo; } return 0 !== carry && (this.words[i] = carry, this.length++), isNegNum ? this.ineg() : this; }, BN.prototype.muln = function(num) { @@ -7909,7 +7909,7 @@ assert('number' == typeof num), assert(num < 0x4000000); for(var carry = 0, i = 0; i < this.length; i++){ var w = (0 | this.words[i]) * num, lo = (0x3ffffff & w) + (0x3ffffff & carry); - carry >>= 26, carry = (w / 0x4000000 | 0) + (lo >>> 26), this.words[i] = 0x3ffffff & lo; + carry >>= 26, carry += (w / 0x4000000 | 0) + (lo >>> 26), this.words[i] = 0x3ffffff & lo; } return 0 !== carry && (this.words[i] = carry, this.length++), this; }, BN.prototype.muln = function(num) { @@ -18960,7 +18960,7 @@ let i = 0; for(; i < maximumValuesToStringify - 1; i++){ const tmp = stringifyFnReplacer(i, value, stack, replacer, spacer, indentation); - res = (void 0 !== tmp ? tmp : 'null') + join; + res += (void 0 !== tmp ? tmp : 'null') + join; } const tmp1 = stringifyFnReplacer(i, value, stack, replacer, spacer, indentation); if (res += void 0 !== tmp1 ? tmp1 : 'null', value.length - 1 > maximumBreadth) { @@ -19013,7 +19013,7 @@ let i = 0; for(; i < maximumValuesToStringify - 1; i++){ const tmp = stringifyArrayReplacer(i, value[i], stack, replacer, spacer, indentation); - res = (void 0 !== tmp ? tmp : 'null') + join; + res += (void 0 !== tmp ? tmp : 'null') + join; } const tmp1 = stringifyArrayReplacer(i, value[i], stack, replacer, spacer, indentation); if (res += void 0 !== tmp1 ? tmp1 : 'null', value.length - 1 > maximumBreadth) { @@ -19063,7 +19063,7 @@ let i = 0; for(; i < maximumValuesToStringify - 1; i++){ const tmp = stringifyIndent(i, value[i], stack, spacer, indentation); - res = (void 0 !== tmp ? tmp : 'null') + join; + res += (void 0 !== tmp ? tmp : 'null') + join; } const tmp1 = stringifyIndent(i, value[i], stack, spacer, indentation); if (res += void 0 !== tmp1 ? tmp1 : 'null', value.length - 1 > maximumBreadth) { @@ -19119,7 +19119,7 @@ let i = 0; for(; i < maximumValuesToStringify - 1; i++){ const tmp = stringifySimple(i, value[i], stack); - res = (void 0 !== tmp ? tmp : 'null') + ','; + res += (void 0 !== tmp ? tmp : 'null') + ','; } const tmp1 = stringifySimple(i, value[i], stack); if (res += void 0 !== tmp1 ? tmp1 : 'null', value.length - 1 > maximumBreadth) { diff --git a/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js b/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js index 62e93e750d67..aee36e84bc5d 100644 --- a/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js +++ b/crates/swc_ecma_minifier/tests/full/issue-5912-bigdecimal/output.js @@ -1 +1 @@ -!function(n){if(void 0===t)var t={};if(void 0===e)var e={};if(e.document||(e.document=t),void 0===r)var r={};function i(){}function o(t){var r=e.bigdecimal[t],i=r;if(r.__init__){for(var o in(i=function(){var n=Array.prototype.slice.call(arguments);return r.__init__(n)}).prototype=r.prototype,r)if(r.hasOwnProperty(o)){if("function"==typeof r[o]&&o.match(/_va$/)){var u=o.replace(/_va$/,"");i[u]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method(t)},i[u].inner_method=r[o]}else i[o]=r[o]}}var f=i.prototype;for(var o in f)if(f.hasOwnProperty(o)&&"function"==typeof f[o]&&o.match(/_va$/)){var u=o.replace(/_va$/,"");f[u]=function n(){var t=Array.prototype.slice.call(arguments);return n.inner_method.apply(this,[t])},f[u].inner_method=f[o],delete f[o]}n[t]=i}r.userAgent||(r.userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22"),function(){var n,t,o=e,u=o.document,f=o.__gwtStatsEvent?function(n){return o.__gwtStatsEvent(n)}:null,c=o.__gwtStatsSessionId?o.__gwtStatsSessionId:null;function s(){}function a(){}function h(){}function b(){}function l(){}function g(){}function w(){}function d(){}function _(){}function v(){}function m(){}function y(){}function C(){}function S(){}function M(){}function x(){}function B(){}function A(){}function N(){}function I(){}function E(){}function R(){}function O(){}function D(){}function k(){}function L(){}function U(){}function P(){}function Q(){}function T(){nX()}function j(){nZ()}function F(){tD()}function H(){ej()}function $(){ej()}function V(){ej()}function q(){ej()}function G(){ej()}function z(){ej()}function J(){nW()}function K(){nc(this)}function W(){nc(this)}function Z(n){iP(this,n)}function X(n){this.c=n}function Y(n){this.b=n}function nn(n){this.b=n}function nt(n){this.b=n}function ne(n){ej(),this.f=n}function nr(n){ne.call(this,n)}function ni(n){ne.call(this,n)}function no(n){ne.call(this,n)}function nu(n){ne.call(this,n)}function nf(n){ne.call(this,n)}function nc(n){n.b=new C}function ns(){this.b=new C}function na(){na=l,ut=new w}function nh(){nh=l,t=new nY}function nb(n,t){nh(),n[oy]=t}function nl(n,t){nh(),function(n,t){var e,r,i,u,f,c,s,a,h,b;for(f=0,s=i_(n,om,0),c=o;ft?n:t}function n_(n,t){return!rA(n,t)}function nv(n){this.b=new iS(n)}function nm(){this.b=(rj(),uj)}function ny(){this.b=(iB(),u2)}function nC(n,e){var r;nh(),r=t.b,n?function(n,t,e,r){var i=n.b[r];if(i)for(var o=0,u=i.length;o=t&&n.splice(0,t),n}function tg(n){return nG(n,15)?n:new n1(n)}function tw(){try{null.a()}catch(n){return n}}function td(n){var t;return(t=new N).d=i$+n,t.c=1,t}function tp(n,t){return nF(n)?n.eQ(t):n===t}function t_(n,t){return n.l==t.l&&n.m==t.m&&n.h==t.h}function tv(n,t){return n.l!=t.l||n.m!=t.m||n.h!=t.h}function tm(n,t,e){return(iH=new M).l=n,iH.m=t,iH.h=e,iH}function ty(n,t){return nT(n)===nT(t)||null!=n&&tp(n,t)}function tC(n,t){throw new nu("Index: "+n+", Size: "+t)}function tS(n,t){if(!n)throw new G;this.f=t,tR(this,n)}function tM(n,t){if(!n)throw new G;this.f=t,tR(this,n)}function tx(n,t,e,r){ez.call(this,n,t,e),ic(this,r)}function tB(n,t){ez.call(this,n,0,n.length),ic(this,t)}function tA(n,t){ez.call(this,t6(n),0,n.length),ic(this,t)}function tN(n){ne.call(this,"String index out of range: "+n)}function tI(n,t){var e,r;return e=n.b,r=String.fromCharCode(t),e.b+=r,n}function tE(n,t){ry(n.b,n.b,n.e,t.b,t.e),tW(n),n.c=-2}function tR(n,t){n.d=t,n.b=t.ab(),n.b<54&&(n.g=rr(eA(t)))}function tO(){tO=l,ue=[],ur=[],function(n,t,e){var r,i=0;for(var o in n)(r=n[o])&&(t[i]=o,e[i]=r,++i)}(new S,ue,ur)}function tD(){uy||(uy=!0,new T,new j,function(){if(nl(ox,i$),o.bigdecimal.BigDecimal)var n=o.bigdecimal.BigDecimal;o.bigdecimal.BigDecimal=ff(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==fD?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new ng,nb(this.__gwt_instance,this))});var t=o.bigdecimal.BigDecimal.prototype={};if(n)for(p in n)o.bigdecimal.BigDecimal[p]=n[p];o.bigdecimal.BigDecimal.ROUND_CEILING=2,o.bigdecimal.BigDecimal.ROUND_DOWN=1,o.bigdecimal.BigDecimal.ROUND_FLOOR=3,o.bigdecimal.BigDecimal.ROUND_HALF_DOWN=5,o.bigdecimal.BigDecimal.ROUND_HALF_EVEN=6,o.bigdecimal.BigDecimal.ROUND_HALF_UP=4,o.bigdecimal.BigDecimal.ROUND_UNNECESSARY=7,o.bigdecimal.BigDecimal.ROUND_UP=0,o.bigdecimal.BigDecimal.__init__=ff(function(n){var t=function(n){var t,e;if(iU(),(e=iI(n))==i8)t=new nk(new nq(n[0].toString()));else if("BigInteger number"==e)t=new tS(new nq(n[0].toString()),n[1]);else if("BigInteger number MathContext"==e)t=new te(new nq(n[0].toString()),n[1],new iS(n[2].toString()));else if("BigInteger MathContext"==e)t=new n4(new nq(n[0].toString()),new iS(n[1].toString()));else if(e==oS)t=new n2(t6(n[0].toString()));else if("array number number"==e)t=new ez(t6(n[0].toString()),n[1],n[2]);else if("array number number MathContext"==e)t=new tx(t6(n[0].toString()),n[1],n[2],new iS(n[3].toString()));else if("array MathContext"==e)t=new tB(t6(n[0].toString()),new iS(n[1].toString()));else if(e==ok)t=new eu(n[0]);else if(e==oL)t=new ep(n[0],new iS(n[1].toString()));else if(e==oF)t=new Z(n[0].toString());else if("string MathContext"==e)t=new tA(n[0].toString(),new iS(n[1].toString()));else throw new ne("Unknown call signature for obj = new java.math.BigDecimal: "+e);return new nL(t)}(n);return nE(t)}),t.abs_va=ff(function(n){return nE(this.__gwt_instance.s(n))}),t.add_va=ff(function(n){return nE(this.__gwt_instance.t(n))}),t.byteValueExact=ff(function(){return this.__gwt_instance.u()}),t.compareTo=ff(function(n){return this.__gwt_instance.v(n.__gwt_instance)}),t.divide_va=ff(function(n){return nE(this.__gwt_instance.y(n))}),t.divideToIntegralValue_va=ff(function(n){return nE(this.__gwt_instance.x(n))}),t.doubleValue=ff(function(){return this.__gwt_instance.z()}),t.equals=ff(function(n){return this.__gwt_instance.eQ(n)}),t.floatValue=ff(function(){return this.__gwt_instance.A()}),t.hashCode=ff(function(){return this.__gwt_instance.hC()}),t.intValue=ff(function(){return this.__gwt_instance.B()}),t.intValueExact=ff(function(){return this.__gwt_instance.C()}),t.max=ff(function(n){return nE(this.__gwt_instance.F(n.__gwt_instance))}),t.min=ff(function(n){return nE(this.__gwt_instance.G(n.__gwt_instance))}),t.movePointLeft=ff(function(n){return nE(this.__gwt_instance.H(n))}),t.movePointRight=ff(function(n){return nE(this.__gwt_instance.I(n))}),t.multiply_va=ff(function(n){return nE(this.__gwt_instance.J(n))}),t.negate_va=ff(function(n){return nE(this.__gwt_instance.K(n))}),t.plus_va=ff(function(n){return nE(this.__gwt_instance.L(n))}),t.pow_va=ff(function(n){return nE(this.__gwt_instance.M(n))}),t.precision=ff(function(){return this.__gwt_instance.q()}),t.remainder_va=ff(function(n){return nE(this.__gwt_instance.N(n))}),t.round=ff(function(n){return nE(this.__gwt_instance.O(n.__gwt_instance))}),t.scale=ff(function(){return this.__gwt_instance.P()}),t.scaleByPowerOfTen=ff(function(n){return nE(this.__gwt_instance.Q(n))}),t.setScale_va=ff(function(n){return nE(this.__gwt_instance.R(n))}),t.shortValueExact=ff(function(){return this.__gwt_instance.S()}),t.signum=ff(function(){return this.__gwt_instance.r()}),t.stripTrailingZeros=ff(function(){return nE(this.__gwt_instance.T())}),t.subtract_va=ff(function(n){return nE(this.__gwt_instance.U(n))}),t.toBigInteger=ff(function(){return nE(this.__gwt_instance.V())}),t.toBigIntegerExact=ff(function(){return nE(this.__gwt_instance.W())}),t.toEngineeringString=ff(function(){return this.__gwt_instance.X()}),t.toPlainString=ff(function(){return this.__gwt_instance.Y()}),t.toString=ff(function(){return this.__gwt_instance.tS()}),t.ulp=ff(function(){return nE(this.__gwt_instance.Z())}),t.unscaledValue=ff(function(){return nE(this.__gwt_instance.$())}),t.divideAndRemainder_va=ff(function(n){return nR(this.__gwt_instance.w(n))}),t.longValue=ff(function(){return this.__gwt_instance.E()}),t.longValueExact=ff(function(){return this.__gwt_instance.D()}),o.bigdecimal.BigDecimal.valueOf_va=ff(function(n){var t=function(n){var t,e;if(iU(),(e=iI(n))==ok)t=function(n){if(!isFinite(n)||isNaN(n))throw new nw(os);return new Z(i$+n)}(n[0]);else if(e==ok)t=tZ(e3(n[0]));else if(e==oU)t=ek(e3(n[0]),n[1]);else throw new ne("Unknown call signature for bd = java.math.BigDecimal.valueOf: "+e);return new nL(t)}(n);return nE(t)}),o.bigdecimal.BigDecimal.log=ff(function(n){iU(),typeof console!==oH&&console.log&&console.log(n)}),o.bigdecimal.BigDecimal.logObj=ff(function(n){iU(),typeof console!==oH&&console.log&&typeof JSON!==oH&&JSON.stringify&&console.log("object: "+JSON.stringify(n))}),o.bigdecimal.BigDecimal.ONE=ff(function(){var n=(iU(),new nL(ug));return nE(n)}),o.bigdecimal.BigDecimal.TEN=ff(function(){var n=(iU(),new nL(uw));return nE(n)}),o.bigdecimal.BigDecimal.ZERO=ff(function(){var n=(iU(),new nL(ud));return nE(n)}),nC(fD,o.bigdecimal.BigDecimal)}())}function tk(n,t,e){var r;return(r=new N).d=n+t,r.c=4,r.b=e,r}function tL(n,t,e,r,i){var o;return tJ(n,t,e,o=function(n,t){var e=Array(t);if(3==n)for(var r=0;r0)for(var i=[null,0,!1][n],r=0;rn)throw new tN(e)}(n.length,t,r),t4(n,t,r)}function tP(n,t){return ib(),t=n.c.c)throw new z;return t=n.c,r=e=n.b++,i=t.c,(r<0||r>=i)&&tC(r,i),t.b[e]}function tj(n,t){return!!nG(t,1)&&String(n)==t}function tF(){ne.call(this,"Add not supported on this collection")}function tH(){this.b=[],this.f={},this.d=!1,this.c=null,this.e=0}function t$(n,t){rK(),this.f=n,this.e=1,this.b=tJ(fd,{6:1},-1,[t])}function tV(n,t){var e;return e=n.c,n.c=t,!n.d&&(n.d=!0,++n.e),e}function tq(n,t){var e,r;return e=n.b,r=String.fromCharCode.apply(null,t),e.b+=r,n}function tG(n,t,e,r){var i,o;return null==t&&(t=oD),i=n.b,o=t.substr(e,r-e),i.b+=o,n}function tz(n,t,e,r){var i;return ry(i=tL(fd,{6:1},-1,t,1),n,t,e,r),i}function tJ(n,t,e,r){return tO(),function(n,t,e){tO();for(var r=0,i=t.length;r0&&0==n.b[--n.e];);0==n.b[n.e++]&&(n.f=0)}function tZ(n){return rA(n,oz)&&n_(n,oX)?uc[nx(n)]:new eo(n,0)}function tX(n,t){return 0==t||0==n.f?n:t>0?e4(n,t):rX(n,-t)}function tY(n,t){return 0==t||0==n.f?n:t>0?rX(n,t):e4(n,-t)}function t1(n){var t;return 0==n.f?-1:((t=eg(n))<<5)+ec(n.b[t])}function t0(n){var t;return 0!=(t=nx(n))?ec(t):ec(nx(rJ(n,32)))+32}function t2(n,t){var e;return 0==(e=eR(n,t)).length?(new d).o(t):tl(e,1)}function t4(n,t,e){return n=n.slice(t,e),String.fromCharCode.apply(null,n)}function t3(n,t,e,r){var i;return ih(i=tL(fd,{6:1},-1,t+1,1),n,t,e,r),i}function t6(n){var t,e;return t=tL(fJ,{6:1},-1,e=n.length,1),function(n,t,e,r){var i;for(i=0;it.e&&(c=t,t=e,e=c),e.e<63)?(b=t,l=e,(_=(g=b.e)+(w=l.e),v=b.f!=l.f?-1:1,2==_)?(S=nx(y=iE(ts(e3(b.b[0]),o3),ts(e3(l.b[0]),o3))),0==(C=nx(rU(y,32)))?new t$(v,S):new ti(v,2,tJ(fd,{6:1},-1,[S,C]))):(eq(b.b,g,l.b,w,d=tL(fd,{6:1},-1,_,1)),tW(m=new ti(v,_,d)),m)):(f=(-2&t.e)<<4,a=t.fb(f),h=e.fb(f),i=is(t,a.eb(f)),o=is(e,h.eb(f)),s=n(a,h),r=n(i,o),u=(u=iC(iC(u=n(is(a,i),is(o,h)),s),r)).eb(f),iC(iC(s=s.eb(f<<1),u),r))}(n,t))}function et(n,t){var e;if(t.f<=0)throw new nr(oe);return(e=rF(n,t)).f<0?iC(e,t):e}function ee(n){var t;t=new nz,n.d&&n6(t,new nt(n)),function(n,t){var e=n.f;for(var r in e)if(58==r.charCodeAt(0)){var i=new nB(n,r.substring(1));t.Kb(i)}}(n,t),function(n,t){var e=n.b;for(var r in e){var i=parseInt(r,10);if(r==i)for(var o=e[i],u=0,f=o.length;u0?1:0:(n.d||(n.d=eU(n.g)),n.d).r()}function ed(n){return n.b<54?new tr(-n.g,n.f):new tM((n.d||(n.d=eU(n.g)),n.d).cb(),n.f)}function ep(n,t){if(!isFinite(n)||isNaN(n))throw new nw(os);iP(this,n.toPrecision(20)),ic(this,t)}function e_(n,t){return isNaN(n)?isNaN(t)?0:1:isNaN(t)?-1:nt?1:0}function ev(n,t){return t<2||t>36||n<0||n>=t?0:n<10?48+n&65535:97+n-10&65535}function em(n,t){var e,r;return t?((e=t[oy])||(e=new(r=t.gC(),t9(er(n.b,r)))(t),t[oy]=e),e):null}function ey(n){var t,e;return 32==(e=rH(n.h))?32==(t=rH(n.m))?rH(n.l)+32:t+20-10:e-12}function eC(n){return tm(4194303&n,~~n>>22&4194303,n<0?1048575:0)}function eS(){eS=l,ui=tm(4194303,4194303,524287),uo=tm(0,0,524288),uu=e3(1),e3(2),uf=e3(0)}function eM(n,t){ih(n.b,n.b,n.e,t.b,t.e),n.e=nd(np(n.e,t.e)+1,n.b.length),tW(n),n.c=-2}function ex(n,t){var e;e=~~t>>5,n.e+=e+(rH(n.b[n.e-1])-(31&t)>=0?0:1),rC(n.b,n.b,e,31&t),tW(n),n.c=-2}function eB(n,t){var e,r;e=~~t>>5,n.e>>r:0,tW(n))}function eA(n){var t;return t=n.e>1?ta(rL(e3(n.b[1]),32),ts(e3(n.b[0]),o3)):ts(e3(n.b[0]),o3),iE(e3(n.f),t)}function eN(n,t,e){var r;for(r=e-1;r>=0&&n[r]==t[r];--r);return r<0?0:n_(ts(e3(n[r]),o3),ts(e3(t[r]),o3))?-1:1}function eI(n,t,e){var r,i,o;for(i=0,r=0;i>>31;0!=r&&(n[e]=r)}function eE(n,t,e,r){if(iF=t,n)try{ff(im)()}catch(i){n(t)}else ff(im)()}function eR(n,t){var e,r,i;for(e=0,r=(i=t&&t.stack?t.stack.split("\n"):[]).length;e>5==n.e-1&&n.b[n.e-1]==1<<(31&t))for(e=0;r&&e=0&&t=0?new eo(oz,2147483647):new eo(oz,-2147483648)}function eU(n){return(rK(),n<0)?-1!=n?new ro(-1,-n):uC:n<=10?uM[ei(n)]:new ro(1,n)}function eP(n){var t,e,r;return t=~n.l+1&4194303,e=~n.m+(0==t?1:0)&4194303,r=~n.h+(0==t&&0==e?1:0)&1048575,tm(t,e,r)}function eQ(n){var t,e,r;t=~n.l+1&4194303,e=~n.m+(0==t?1:0)&4194303,r=~n.h+(0==t&&0==e?1:0)&1048575,n.l=t,n.m=e,n.h=r}function eT(n){var t,e,r;for(r=0,e=tL(fC,{6:1},13,n.length,0),t=n.length;r=0;--r)if(n[r]!=i[r]){e=0!=n[r]&&rB(ts(e3(n[r]),o3),ts(e3(i[r]),o3));break}}return u=new ti(1,o+1,n),e&&tE(u,t),tW(u),u}(o,e)}function e$(n,t){var e;return n===t||!!nG(t,17)&&(e=tQ(t,17),n.f==e.f&&n.e==e.e&&function(n,t){var e;for(e=n.e-1;e>=0&&n.b[e]==t[e];--e);return e<0}(n,e.b))}function eV(n){var t,e;return 0==n.f?0:(t=n.e<<5,e=n.b[n.e-1],n.f<0&&eg(n)==n.e-1&&(e=~~(e-1)),t-=rH(e))}function eq(n,t,e,r,i){ib(),0!=t&&0!=r&&(1==t?i[r]=rf(i,e,r,n[0]):1==r?i[t]=rf(i,n,t,e[0]):function(n,t,e,r,i){var o,u,f,c;if(nT(n)===nT(t)&&r==i){io(n,r,e);return}for(f=0;f2147483647))return ei(n);throw new nr("Underflow")}function eK(n,t){if(rj(),n<0)throw new no("Digits < 0");if(!t)throw new nf("null RoundingMode");this.b=n,this.c=t}function eW(n){return(rK(),n_(n,oz))?tv(n,oG)?new ri(-1,eP(n)):uC:rB(n,oZ)?new ri(1,n):uM[nx(n)]}function eZ(n){var t;return n_(n,oz)&&(n=tm(4194303&~n.l,4194303&~n.m,1048575&~n.h)),64-(0!=(t=nx(rJ(n,32)))?rH(t):rH(nx(n))+32)}function eX(n,t){var e,r,i;return e=n.l+t.l,r=n.m+t.m+(~~e>>22),i=n.h+t.h+(~~r>>22),tm(4194303&e,4194303&r,1048575&i)}function eY(n,t){var e,r,i;return e=n.l-t.l,r=n.m-t.m+(~~e>>22),i=n.h-t.h+(~~r>>22),tm(4194303&e,4194303&r,1048575&i)}function e1(n,t){var e;if(e=t-1,n.f>0){for(;!n.gb(e);)--e;return t-1-e}for(;n.gb(e);)--e;return t-1-np(e,n.bb())}function e0(n,t){var e;return n===t||!!nG(t,16)&&(e=tQ(t,16)).f==n.f&&(n.b<54?e.g==n.g:n.d.eQ(e.d))}function e2(n,t,e){var r,i,o;for(o=oz,r=t-1;r>=0;--r)i=r0(eX(rL(o,32),ts(e3(n[r]),o3)),e),o=e3(nx(rJ(i,32)));return nx(o)}function e4(n,t){var e,r,i,o;return e=~~t>>5,t&=31,rC(r=tL(fd,{6:1},-1,i=n.e+e+(0==t?0:1),1),n.b,e,t),tW(o=new ti(n.f,i,r)),o}function e3(n){var t,e;return n>-129&&n<128?(t=n+128,null==o8&&(o8=tL(fE,{6:1},2,256,0)),(e=o8[t])||(e=o8[t]=eC(n)),e):eC(n)}function e6(n){var t,e;return(rK(),n>5)+1,1))[t]=1<<(31&n),new ti(1,t+1,e))}function e5(n){rK(),0==n.length?(this.f=0,this.e=1,this.b=tJ(fd,{6:1},-1,[0])):(this.f=1,this.e=n.length,this.b=n,tW(this))}function e9(n){return 0==n.length||n[0]>iV&&n[n.length-1]>iV?n:n.replace(/^(\s*)/,i$).replace(/\s*$/,i$)}function e7(n){return n-=~~n>>1&1431655765,n=(~~(n=(~~n>>2&858993459)+(858993459&n))>>4)+n&252645135,n+=~~n>>8,63&(n+=~~n>>16)}function e8(n,t,e){if(null!=e){var r;if(n.qI>0&&(r=n.qI,!e.cM||!e.cM[r])||n.qI<0&&(e.tM==l||nH(e,1)))throw new $}return n[t]=e}function rn(n,t){return n.f>t.f?1:n.ft.e?n.f:n.e=0;--o)u=eH(u,u,r,i),(e.b[~~o>>5]&1<<(31&o))!=0&&(u=eH(u,t,r,i));return u}(f,r,t,e,o):function(n,t,e,r,i){var o,u,f,c,s,a,h;for(s=tL(f5,{6:1},17,8,0),a=n,e8(s,0,t),h=eH(t,t,r,i),u=1;u<=7;++u)e8(s,u,eH(s[u-1],h,r,i));for(u=e.ab()-1;u>=0;--u)if((e.b[~~u>>5]&1<<(31&u))!=0){for(c=1,o=u,f=u-3>0?u-3:0;f<=u-1;++f)(e.b[~~f>>5]&1<<(31&f))!=0&&(f>1],a,r,i),u=o}else a=eH(a,a,r,i);return a}(f,r,t,e,o),eH(u,(rK(),uS),e,o)}function rs(n,t){var e,r,i,o;for(e=0,r=n.length;e36)throw new nw("Radix out of range");if(0==n.length)throw new nw("Zero length BigInteger");(function(n,t,e){var r,i,o,u,f,c,s,a,h,b,l,g,w,d;for(s=l=t.length,45==t.charCodeAt(0)?(h=-1,b=1,--l):(h=1,b=0),o=~~(l/(u=(iM(),uU)[e])),0!=(d=l%u)&&++o,c=tL(fd,{6:1},-1,o,1),r=uL[e-2],f=0,g=b+(0==d?u:d),w=b;wr)return 1;if(e=0&&n[i]==t[i];--i);return i<0?0:n_(ts(e3(n[i]),o3),ts(e3(t[i]),o3))?-1:1}function rl(n,t){var e,r,i;for(r=tL(fd,{6:1},-1,i=n.e,1),nd(eg(n),eg(t)),e=0;e999999999)throw new nr(oa);return e=n.f*t,0==n.b&&-1!=n.g?eL(e):new tS((n.d||(n.d=eU(n.g)),n.d).db(t),eJ(e))}function rd(n,t){return t<2||t>36?-1:n>=48&&n<48+(t<10?t:10)?n-48:n>=97&&n=65&&n=0;--n)fo[n]=e,e*=.5;for(n=24,t=1;n>=0;--n)fi[n]=t,t*=.5}function r_(){r_=l,uR=tJ(fJ,{6:1},-1,[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])}function rv(n){var t;return 0!=n.c?n.c:n.b<54?(t=r2(n.g),n.c=nx(ts(t,oG)),n.c=33*n.c+nx(ts(rJ(t,32),oG)),n.c=17*n.c+ei(n.f),n.c):(n.c=17*n.d.hC()+ei(n.f),n.c)}function rm(n,t,e,r){var i,o,u,f,c;return o=(c=n/t)>0?Math.floor(c):Math.ceil(c),u=n%t,f=e_(n*t,0),0!=u&&(i=e_((u<=0?0-u:u)*2,t<=0?0-t:t),o+=r8(1&ei(o),f*(5+i),r)),new tr(o,e)}function ry(n,t,e,r,i){var o,u;for(u=0,o=oz;ue;--i)n[i]|=~~t[i-e-1]>>>o,n[i-1]=t[i-e-1]<>5,n.e-=r,!rO(n.b,n.e,n.b,r,31&t)&&i<0){for(e=0;e>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>t.l:!(0==r||n.h>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>=t.l:!(0==r||n.h-140737488355328&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),e=ei(nU(Math.log(n)/.6931471805599453)),(!t||n!=Math.pow(2,e))&&++e,e):eZ(r2(n))}function rE(n,t){var e,r;return(e=n._(),r=t._(),0==e.r())?r:0==r.r()?e:(1==e.e||2==e.e&&e.b[1]>0)&&(1==r.e||2==r.e&&r.b[1]>0)?eW(rN(eA(e),eA(r))):function(n,t){var e,r,i;e=n.bb(),r=t.bb(),rx(n,e),rx(t,r),1==rn(n,t)&&(i=n,n=t,t=i);do{if(1==t.e||2==t.e&&t.b[1]>0){t=eW(rN(eA(n),eA(t)));break}if(t.e>1.2*n.e)0!=(t=rF(t,n)).r()&&rx(t,t.bb());else do tE(t,n),rx(t,t.bb());while(rn(t,n)>=0)i=t,t=n,n=i}while(0!=i.f)return t.eb(e=r?ex(f,i):(rx(c,r-e0&&ex(f,i-r+e)),e+=i),0!=(i=e1(h,u))&&(ex(h,i),r>=e?ex(c,i):(rx(f,e-r0&&ex(c,i-e+r)),r+=i),s.r()==h.r()?e<=r?(rV(s,h),rV(f,c)):(rV(h,s),rV(c,f)):e<=r?(r$(s,h),r$(f,c)):(r$(h,s),r$(c,f)),0==h.r()||0==s.r())throw new nr(ot);return eO(h,r)&&(f=c,h.r()!=s.r()&&(s=s.cb())),s.gb(u)&&(f=0>f.r()?f.cb():is(t,f)),0>f.r()&&(f=iC(f,t)),f}(n,t);for(o=32*t.e,h=eh(t),u=np((b=eh(n)).e,h.e),c=new ti(1,1,tL(fd,{6:1},-1,u+1,1)),(s=new ti(1,1,tL(fd,{6:1},-1,u+1,1))).b[0]=1,e=0,(r=h.bb())>(i=b.bb())?(rx(h,r),rx(b,i),ex(c,i),e+=r-i):(rx(h,r),rx(b,i),ex(s,r),e+=i-r),c.f=1;b.r()>0;){for(;rn(h,b)>0;)tE(h,b),a=h.bb(),rx(h,a),eM(c,s),ex(s,a),e+=a;for(;0>=rn(h,b)&&(tE(b,h),0!=b.r());)a=b.bb(),rx(b,a),eM(s,c),ex(c,a),e+=a}if(!(1==h.e&&1==h.b[0]))throw new nr(ot);return rn(c,t)>=0&&tE(c,t),c=is(t,c),f=ru(t),e>o&&(c=eH(c,(rK(),uS),t,f),e-=o),c=eH(c,e6(o-e),t,f)}(et(n._(),t),t)).f)throw new nr(ot);return n.f<0?is(t,e):e}function rO(n,t,e,r,i){var o,u,f;for(u=0,o=!0;u>>i|e[u+r+1]<>>i,++u}return o}function rD(n,t){var e;return(e=n.f+t.f,0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)?eL(e):n.b+t.b<54?new tr(n.g*t.g,eJ(e)):new tS(en((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d)),eJ(e))}function rk(n,t){var e;if(t<0)throw new nr("Negative exponent");if(0==t)return uS;if(1==t||n.eQ(uS)||n.eQ(uB))return n;if(!n.gb(0)){for(e=1;!n.gb(e);)++e;return en(e6(e*t),n.fb(e).db(t))}return function(n,t){var e,r;for(ib(),rK(),r=uS,e=n;t>1;t>>=1)(1&t)!=0&&(r=en(r,e)),e=1==e.e?en(e,e):new e5(io(e.b,e.e,tL(fd,{6:1},-1,e.e<<1,1)));return en(r,e)}(n,t)}function rL(n,t){var e,r,i;return(t&=63)<22?(e=n.l<>22-t,i=n.h<>22-t):t<44?(e=0,r=n.l<>44-t):(e=0,r=0,i=n.l<>>t,i=~~n.m>>t|e<<22-t,r=~~n.l>>t|n.m<<22-t):t<44?(o=0,i=~~e>>>t-22,r=~~n.m>>t-22|n.h<<44-t):(o=0,i=0,r=~~e>>>t-44),tm(4194303&r,4194303&i,1048575&o)}function rP(n){switch(iB(),n){case 2:return uZ;case 1:return uX;case 3:return uY;case 5:return u1;case 6:return u0;case 4:return u2;case 7:return u4;case 0:return u3;default:throw new no("Invalid rounding mode")}}function rQ(n,t){var e,r,i;if(0==t)return(1&n.b[0])!=0;if(t<0)throw new nr(ob);if((i=~~t>>5)>=n.e)return n.f<0;if(e=n.b[i],t=1<<(31&t),n.f<0){if(i<(r=eg(n)))return!1;e=r==i?-e:~e}return(e&t)!=0}function rT(n){var t,e;return n.e>0||(t=1,e=1,n.b<54?(n.b>=1&&(e=n.g),t+=Math.log(e<=0?0-e:e)*Math.LOG10E):(t+=(n.b-1)*.3010299956639812,0!=ia((n.d||(n.d=eU(n.g)),n.d),iv(t)).r()&&++t),n.e=ei(t)),n.e}function rj(){rj=l,uP=new eK(34,(iB(),u0)),uQ=new eK(7,u0),uT=new eK(16,u0),uj=new eK(0,u2),uF=tJ(fJ,{6:1},-1,[112,114,101,99,105,115,105,111,110,61]),uH=tJ(fJ,{6:1},-1,[114,111,117,110,100,105,110,103,77,111,100,101,61])}function rF(n,t){var e,r,i,o;if(0==t.f)throw new nr(on);return((o=n.e)!=(e=t.e)?o>e?1:-1:eN(n.b,t.b,o))==-1?n:(r=tL(fd,{6:1},-1,e,1),1==e?r[0]=e2(n.b,o,t.b[0]):r=ik(null,o-e+1,n.b,o,t.b,e),tW(i=new ti(n.f,e,r)),i)}function rH(n){var t,e,r;return n<0?0:0==n?32:(e=16-(t=~~(r=-(~~n>>16))>>16&16)+(t=~~(r=(n=~~n>>t)-256)>>16&8),n<<=t,e+=t=~~(r=n-4096)>>16&4,n<<=t,e+=t=~~(r=n-16384)>>16&2,n<<=t,e+2-(t=(r=~~n>>14)&~(~~r>>1)))}function r$(n,t){if(0==n.f)ix(t.b,0,n.b,0,t.e);else{if(0==t.f)return;n.f==t.f?ih(n.b,n.b,n.e,t.b,t.e):rb(n.b,t.b,n.e,t.e)>0?ry(n.b,n.b,n.e,t.b,t.e):(r5(n.b,n.b,n.e,t.b,t.e),n.f=-n.f)}n.e=np(n.e,t.e)+1,tW(n),n.c=-2}function rV(n,t){var e;e=rn(n,t),0==n.f?(ix(t.b,0,n.b,0,t.e),n.f=-t.f):n.f!=t.f?(ih(n.b,n.b,n.e,t.b,t.e),n.f=e):rb(n.b,t.b,n.e,t.e)>0?ry(n.b,n.b,n.e,t.b,t.e):(r5(n.b,n.b,n.e,t.b,t.e),n.f=-n.f),n.e=np(n.e,t.e)+1,tW(n),n.c=-2}function rq(n,t,e){var r,i,o,u,f,c,s,a,h,b;if(e.f<=0)throw new nr(oe);return(r=n,(1==e.e&&1==e.b[0])|t.f>0&0==r.f)?uB:0==r.f&&0==t.f?uS:(t.f<0&&(r=rR(n,e),t=t.cb()),i=e.gb(0)?rc(r._(),t,e):(o=r._(),u=t,f=e.bb(),a=rc(o,u,c=e.fb(f)),h=function(n,t,e){var r,i,o,u,f;for(rK(),u=uS,i=eh(t),r=eh(n),n.gb(0)&&eB(i,e-1),eB(r,e),o=i.ab()-1;o>=0;--o)eB(f=eh(u),e),u=en(u,f),(i.b[~~o>>5]&1<<(31&o))!=0&&eB(u=en(u,r),e);return eB(u,e),u}(o,u,f),s=function(n,t){var e,r,i,o;for(e=1,(r=new e5(tL(fd,{6:1},-1,1<>5]&1<<(31&o))!=0&&(r.b[~~e>>5]|=1<<(31&e));return r}(c,f),eB(b=en(is(h,a),s),f),b.f<0&&(b=iC(b,e6(f))),iC(a,en(c,b))),r.f<0&&t.gb(0)&&(i=et(en(is(e,uS),i),e)),i)}function rG(n,t){var e,r,i,o,u,f,c;if(i=eg(n),(r=eg(t))>=n.e)return rK(),uB;for(u=tL(fd,{6:1},-1,f=n.e,1),(e=i>r?i:r)==r&&(u[e]=-t.b[e]&n.b[e],++e),o=nd(t.e,n.e);e=t.e)for(;e0?t:0):t>=0?n.b<54?new tr(n.g,eJ(t)):new tS((n.d||(n.d=eU(n.g)),n.d),eJ(t)):-t>t,o=~~n.m>>t|e<<22-t,i=~~n.l>>t|n.m<<22-t):t<44?(u=r?1048575:0,o=~~e>>t-22,i=~~n.m>>t-22|e<<44-t):(u=r?1048575:0,o=r?4194303:0,i=~~e>>t-44),tm(4194303&i,4194303&o,1048575&u)}function rK(){var n;for(n=0,rK=l,uS=new t$(1,1),ux=new t$(1,10),uB=new t$(0,0),uC=new t$(-1,1),uM=tJ(f5,{6:1},17,[uB,uS,new t$(1,2),new t$(1,3),new t$(1,4),new t$(1,5),new t$(1,6),new t$(1,7),new t$(1,8),new t$(1,9),ux]),uA=tL(f5,{6:1},17,32,0);n=t.e)return t;if(r>=n.e)return n;if(o=tL(fd,{6:1},-1,u=nd(n.e,t.e),1),r==i)o[i]=-(-n.b[i]|-t.b[i]),e=i;else{for(e=r;e>5,t&=31,r>=n.e)return n.f<0?(rK(),uC):(rK(),uB);if(rO(i=tL(fd,{6:1},-1,(o=n.e-r)+1,1),o,n.b,r,t),n.f<0){for(e=0;e0&&n.b[e]<<32-t!=0){for(e=0;e0?r=0)return n;return 0!=e?e>0?rS(n,t,e):rS(t,n,-e):np(n.b,t.b)+1<54?new tr(n.g+t.g,n.f):new tM(iC((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d)),n.f)}function r0(n,t){var e,r,i,o,u;return(r=ts(e3(t),o3),rA(n,oz))?(o=iN(n,r,!1),u=n3(n,r)):(o=iN(e=rU(n,1),i=e3(~~t>>>1),!1),u=eX(rL(u=n3(e,i),1),ts(n,oJ)),(1&t)!=0&&(rB(o,u)?rB(eY(o,u),r)?(u=eX(u,eY(rL(r,1),o)),o=eY(o,oK)):(u=eX(u,eY(r,o)),o=eY(o,oJ)):u=eY(u,o))),ta(rL(u,32),ts(o,o3))}function r2(n){var t,e,r,i;return isNaN(n)?(eS(),uf):n<-0x8000000000000000?(eS(),uo):n>=0x7fffffffffffffff?(eS(),ui):(r=!1,n<0&&(r=!0,n=-n),e=0,n>=17592186044416&&(e=ei(n/17592186044416),n-=17592186044416*e),t=0,n>=4194304&&(t=ei(n/4194304),n-=4194304*t),i=tm(ei(n),t,e),r&&eQ(i),i)}function r4(n){var t,e,r,i;if(0==n.l&&0==n.m&&0==n.h)return iK;if(524288==n.h&&0==n.m&&0==n.l)return"-9223372036854775808";if(~~n.h>>19!=0)return iz+r4(eP(n));for(e=n,r=i$;!(0==e.l&&0==e.m&&0==e.h);){if(e=iN(e,e3(1e9),!0),t=i$+nx(o7),!(0==e.l&&0==e.m&&0==e.h))for(i=9-t.length;i>0;--i)t=iK+t;r=t+r}return r}function r3(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_,v,m,y,C,S,M,x;if(0==(i=t.f))throw new nr(on);return(r=t.e,e=t.b,1==r)?(l=e[0],(S=n.b,M=n.e,x=n.f,1==M)?(d=iN(g=ts(e3(S[0]),o3),w=ts(e3(l),o3),!1),v=n3(g,w),x!=i&&(d=eP(d)),x<0&&(v=eP(v)),tJ(f5,{6:1},17,[eW(d),eW(v)])):(_=tL(fd,{6:1},-1,M,1),m=tJ(fd,{6:1},-1,[ir(_,S,M,l)]),y=new ti(x==i?1:-1,M,_),C=new ti(x,1,m),tW(y),tW(C),tJ(f5,{6:1},17,[y,C]))):(a=n.b,((h=n.e)!=r?h>r?1:-1:eN(a,e,h))<0)?tJ(f5,{6:1},17,[uB,n]):(b=n.f,f=ik(o=tL(fd,{6:1},-1,u=h-r+1,1),u,a,h,e,r),c=new ti(b==i?1:-1,u,o),s=new ti(b,r,f),tW(c),tW(s),tJ(f5,{6:1},17,[c,s]))}function r6(n){var t;if(0==n.f||0==n.b&&-1!=n.g)return n.d||(n.d=eU(n.g)),n.d;if(n.f<0)return en((n.d||(n.d=eU(n.g)),n.d),iv(-n.f));if(n.f>(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)||n.f>(n.d||(n.d=eU(n.g)),n.d).bb()||0!=(t=r3((n.d||(n.d=eU(n.g)),n.d),iv(n.f)))[1].r())throw new nr(ol);return t[0]}function r5(n,t,e,r,i){var o,u;if(o=oz,e36)throw new nw("radix "+t+" out of range");for(e=(r=n.length)>0&&45==n.charCodeAt(0)?1:0;e2147483647)throw new nw(oc+n+iq);return i}function r7(n){var t,e;if(0==n.f)return rK(),uC;if(e$(n,(rK(),uC)))return uB;if(e=tL(fd,{6:1},-1,n.e+1,1),n.f>0){if(-1!=n.b[n.e-1])for(t=0;-1==n.b[t];++t);else{for(t=0;t0?0==t?0:t<0?-1:1:0;break;case 3:r=(0==t?0:t<0?-1:1)<0?0==t?0:t<0?-1:1:0;break;case 4:(t<0?-t:t)>=5&&(r=0==t?0:t<0?-1:1);break;case 5:(t<0?-t:t)>5&&(r=0==t?0:t<0?-1:1);break;case 6:(t<0?-t:t)+n>5&&(r=0==t?0:t<0?-1:1)}return r}function it(n,t){var e,r,i,o,u,f,c,s;if(c=0==n.f?1:n.f,u=tL(fd,{6:1},-1,f=np((o=~~t>>5)+1,n.e)+1,1),e=1<<(31&t),ix(n.b,0,u,0,n.e),n.f<0){if(o>=n.e)u[o]=e;else if(o>(r=eg(n)))u[o]^=e;else if(o=0||0==s.f||1==s.e&&1==s.b[0])if(!(1==(a=rq(s,f,n)).e&&1==a.b[0]||a.eQ(u))){for(i=1;i=0;--f)rA(a=ta(rL(s,32),ts(e3(t[f]),o3)),oz)?(c=iN(a,o,!1),s=n3(a,o)):(c=iN(i=rU(a,1),u=e3(~~r>>>1),!1),s=eX(rL(s=n3(i,u),1),ts(a,oJ)),(1&r)!=0&&(rB(c,s)?rB(eY(c,s),o)?(s=eX(s,eY(rL(o,1),c)),c=eY(c,oK)):(s=eX(s,eY(o,c)),c=eY(c,oJ)):s=eY(s,c))),n[f]=nx(ts(c,o3));return nx(s)}function ii(n,t){var e,r,i,o,u,f,c;if(u=tL(fd,{6:1},-1,f=np(n.e,t.e),1),i=eg(n),e=r=eg(t),i==r)u[r]=-n.b[r]^-t.b[r];else{for(u[r]=-t.b[r],o=nd(t.e,i),++e;et.g?1:0:(r=n.f-t.f,(e=(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)-(t.e>0?t.e:nU((t.b-1)*.3010299956639812)+1))>r+1)?i:e0&&(u=en(u,iv(r))),rn(o,u))}function ic(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g;if(o=t.b,!((n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)-o<0||0==o||(r=n.q()-o)<=0)){if(n.b<54){c=n,l=r2(ub[r]),b=eY(r2(c.f),e3(r)),h=iN(g=r2(c.g),l,!1),tv(a=n3(g,l),oz)&&(s=t_(eY(rL(n_(a,oz)?eP(a):a,1),l),oz)?0:n_(eY(rL(n_(a,oz)?eP(a):a,1),l),oz)?-1:1,h=eX(h,e3(r8(1&nx(h),(t_(a,oz)?0:n_(a,oz)?-1:1)*(5+s),t.c))),n8(rr(n_(h,oz)?eP(h):h))>=t.b&&(h=nP(h,oZ),b=eY(b,oJ))),c.f=eJ(rr(b)),c.e=t.b,c.g=rr(h),c.b=eZ(h),c.d=null;return}f=iv(r),i=r3((n.d||(n.d=eU(n.g)),n.d),f),u=n.f-r,0!=i[1].r()&&(e=rn(eF(i[1]._()),f),0!=(e=r8(i[0].gb(0)?1:0,i[1].r()*(5+e),t.c))&&e8(i,0,iC(i[0],eW(e3(e)))),new nk(i[0]).q()>o&&(e8(i,0,ia(i[0],(rK(),ux))),--u)),n.f=eJ(u),n.e=o,tR(n,i[0])}}function is(n,t){var e,r,i,o,u,f,c,s,a,h;if(u=n.f,0==(c=t.f))return n;if(0==u)return t.cb();if((o=n.e)+(f=t.e)==2)return e=ts(e3(n.b[0]),o3),r=ts(e3(t.b[0]),o3),u<0&&(e=eP(e)),c<0&&(r=eP(r)),eW(eY(e,r));if(-1==(i=o!=f?o>f?1:-1:eN(n.b,t.b,o)))h=-c,a=u==c?tz(t.b,f,n.b,o):t3(t.b,f,n.b,o);else if(h=u,u==c){if(0==i)return rK(),uB;a=tz(n.b,o,t.b,f)}else a=t3(n.b,o,t.b,f);return tW(s=new ti(h,a.length,a)),s}function ia(n,t){var e,r,i,o,u,f,c,s,a;if(0==t.f)throw new nr(on);return(i=t.f,1==t.e&&1==t.b[0])?t.f>0?n:n.cb():(s=n.f,(c=n.e)+(r=t.e)==2)?(a=nP(ts(e3(n.b[0]),o3),ts(e3(t.b[0]),o3)),s!=i&&(a=eP(a)),eW(a)):0==(e=c!=r?c>r?1:-1:eN(n.b,t.b,c))?s==i?uS:uC:-1==e?uB:(o=tL(fd,{6:1},-1,u=c-r+1,1),1==r?ir(o,n.b,c,t.b[0]):ik(o,u,n.b,c,t.b,r),tW(f=new ti(s==i?1:-1,u,o)),f)}function ih(n,t,e,r,i){var o,u;if(o=eX(ts(e3(t[0]),o3),ts(e3(r[0]),o3)),n[0]=nx(o),o=rJ(o,32),e>=i){for(u=1;u0){if(i0?u=tP(u,ei(i)):i<0&&(o=tP(o,ei(-i))),iw(o,u,e,r)}function ig(n,t){var e,r,i,o,u,f,c;if(r=eg(t),(i=eg(n))>=t.e)return t;if(u=tL(fd,{6:1},-1,f=t.e,1),rt.ab()?(c=eA(s),o=eA(t),i=t_(eY(rL(n_(c,oz)?eP(c):c,1),n_(o,oz)?eP(o):o),oz)?0:n_(eY(rL(n_(c,oz)?eP(c):c,1),n_(o,oz)?eP(o):o),oz)?-1:1,i=r8(f.gb(0)?1:0,a*(5+i),r)):(i=rn(eF(s._()),t._()),i=r8(f.gb(0)?1:0,a*(5+i),r)),0!=i){if(54>f.ab())return ek(eX(eA(f),e3(i)),e);f=iC(f,eW(e3(i)))}return new tS(f,e)}function id(n){var t,e,r,i,o,u;return null!=n.i?n.i:n.b<32?(n.i=function(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_,v;if(iM(),(u=n_(n,oz))&&(n=eP(n)),t_(n,oz))switch(t){case 0:return iK;case 1:return iZ;case 2:return iX;case 3:return iY;case 4:return i1;case 5:return i0;case 6:return i2;default:return s=new K,t<0?s.b.b+=i3:s.b.b+=i4,b=s.b,b.b+=-2147483648==t?"2147483648":i$+-t,s.b.b}c=tL(fJ,{6:1},-1,19,1),e=18,h=n;do f=h,h=nP(h,oZ),c[--e]=65535&nx(eX(o1,eY(f,iE(h,oZ))));while(tv(h,oz))if(r=eY(eY(eY(oY,e3(e)),e3(t)),oJ),0==t)return u&&(c[--e]=45),tU(c,e,18-e);if(t>0&&rA(r,oq)){if(rA(r,oz)){for(o=17,i=e+nx(r);o>=i;--o)c[o+1]=c[o];return c[++i]=46,u&&(c[--e]=45),tU(c,e,18-e+1)}for(o=2;n_(e3(o),eX(eP(r),oJ));++o)c[--e]=48;return c[--e]=46,c[--e]=48,u&&(c[--e]=45),tU(c,e,18-e)}return(a=e+1,s=new W,u&&(s.b.b+=iz),18-a>=1)?(tI(s,c[e]),s.b.b+=iJ,l=s.b,g=tU(c,e+1,18-e-1),l.b+=g):(w=s.b,d=tU(c,e,18-e),w.b+=d),s.b.b+=of,rB(r,oz)&&(s.b.b+=iG),_=s.b,v=i$+r4(r),_.b+=v,s.b.b}(r2(n.g),ei(n.f)),n.i):(i=ij((n.d||(n.d=eU(n.g)),n.d),0),0==n.f)?i:(t=0>(n.d||(n.d=eU(n.g)),n.d).r()?2:1,e=i.length,r=-n.f+e-t,u=(o=new K).b,u.b+=i,n.f>0&&r>=-6?r>=0?n9(o,e-ei(n.f),iJ):(tt(o.b,t-1,t-1,iW),n9(o,t+1,tU(us,0,-ei(r)-1))):(e-t>=1&&(tt(o.b,t,t,iJ),++e),tt(o.b,e,e,of),r>0&&n9(o,++e,iG),n9(o,++e,i$+r4(r2(r)))),n.i=o.b.b,n.i)}function ip(n,t){var e,r,i,o,u,f;if(i=eg(n),o=eg(t),i>=t.e)return n;if(r=o>i?o:i,0==(e=o>i?-t.b[r]&~n.b[r]:o0){i[o]=u;break}i[o]=u.substring(0,c.index),u=u.substring(c.index+c[0].length,u.length),r.lastIndex=0,f==u&&(i[o]=u.substring(0,1),u=u.substring(1)),f=u,o++}if(0==e&&n.length>0){for(var s=i.length;s>0&&i[s-1]==i$;)--s;s1e6)throw new nr("power of ten too big");if(n<=2147483647)return u$[1].db(t).eb(t);for(i=r=u$[1].db(2147483647),e=r2(n-2147483647),t=ei(n%2147483647);rB(e,o4);)i=en(i,r),e=eY(e,o4);for(i=(i=en(i,u$[1].db(t))).eb(2147483647),e=r2(n-2147483647);rB(e,o4);)i=i.eb(2147483647),e=eY(e,o4);return i.eb(t)}function im(){var n,t;f&&rM("com.iriscouch.gwtapp.client.BigDecimalApp"),nW(new J),nX(new T),nZ(new j),tD(new F),f&&rM("com.google.gwt.user.client.UserAgentAsserter"),n=-1!=(t=r.userAgent.toLowerCase()).indexOf(oQ)?oQ:-1!=t.indexOf("webkit")||function(){if(-1!=t.indexOf("chromeframe"))return!0;if(typeof e.ActiveXObject!=oH)try{var n=new ActiveXObject("ChromeTab.ChromeFrame");if(n)return n.registerBhoIfNeeded(),!0}catch(r){}return!1}()?oj:-1!=t.indexOf(oO)&&u.documentMode>=9?"ie9":-1!=t.indexOf(oO)&&u.documentMode>=8?"ie8":!function(){var n=/msie ([0-9]+)\.([0-9]+)/.exec(t);if(n&&3==n.length)return 1e3*parseInt(n[1])+parseInt(n[2])>=6e3}()?-1!=t.indexOf("gecko")?"gecko1_8":"unknown":"ie6",tj(oj,n)||o.alert("ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ("+n+"). Expect more errors.\n"),f&&rM("com.google.gwt.user.client.DocumentModeAsserter"),function(){var n,t,e;for(e=0,t=u.compatMode,n=tJ(fN,{6:1},1,[oi]);e>5,this.b=tL(fd,{6:1},-1,this.e,1);u=2147483648&&(r-=4294967296),r));this.b[this.e-1]>>>=31&-n,tW(this)}}function iC(n,t){var e,r,i,o,u,f,c,s,a,h,b,l;if(u=n.f,c=t.f,0==u)return t;if(0==c)return n;if((o=n.e)+(f=t.e)==2)return(e=ts(e3(n.b[0]),o3),r=ts(e3(t.b[0]),o3),u==c)?(l=nx(s=eX(e,r)),0==(b=nx(rU(s,32)))?new t$(u,l):new ti(u,2,tJ(fd,{6:1},-1,[l,b]))):eW(u<0?eY(r,e):eY(e,r));if(u==c)h=u,a=o>=f?t3(n.b,o,t.b,f):t3(t.b,f,n.b,o);else{if(0==(i=o!=f?o>f?1:-1:eN(n.b,t.b,o)))return rK(),uB;1==i?(h=u,a=tz(n.b,o,t.b,f)):(h=c,a=tz(t.b,f,n.b,o))}return tW(s=new ti(h,a.length,a)),s}function iS(n){var t,e,r,i;if(rj(),null==n)throw new nf("null string");if((t=t6(n)).length<27||t.length>45)throw new no(oM);for(r=0;rft.length)throw new V;if(o=null,i=null,67==r[0]?(i=uZ,o=u6):68==r[0]?(i=uX,o=u5):70==r[0]?(i=uY,o=u9):72==r[0]?e>6&&(68==r[5]?(i=u1,o=u7):69==r[5]?(i=u0,o=u8):85==r[5]&&(i=u2,o=fn)):85==r[0]&&(80==r[1]?(i=u3,o=fe):78==r[1]&&(i=u4,o=ft)),i&&e==o.length){for(t=1;tl||r+i>s)throw new q;if(((1&h.c)==0||(4&h.c)!=0)&&b!=c){if(a=tQ(n,11),o=tQ(e,11),nT(n)===nT(e)&&tr;)e8(o,f,a[--t]);else for(f=r+i;ra.r()&&(s=s.cb()),c=eJ(e+(o>u?o:u)),s=(i=o-u)>0?(ib(),i>19!=0&&(t=eP(t),c=!0),u=((b=(a=t).l)&b-1)!=0||((l=a.m)&l-1)!=0||((h=a.h)&h-1)!=0||0==h&&0==l&&0==b?-1:0==h&&0==l&&0!=b?ec(b):0==h&&0!=l&&0==b?ec(l)+22:0!=h&&0==l&&0==b?ec(h)+44:-1,o=!1,i=!1,r=!1,524288==n.h&&0==n.m&&0==n.l){if(i=!0,o=!0,-1!=u)return f=rJ(n,u),c&&eQ(f),e&&(o7=tm(0,0,0)),f;n=nQ((eS(),ui)),r=!0,c=!c}else~~n.h>>19!=0&&(o=!0,n=eP(n),r=!0,c=!c);return -1!=u?(g=n,w=c,d=o,_=rJ(g,u),w&&eQ(_),e&&(v=g,u<=22?(m=v.l&(1<=0&&((w=(b=n).h-u.h)<0||(l=b.l-u.l,(w+=~~(g=b.m-u.m+(~~l>>22))>>22)<0||(b.l=4194303&l,b.m=4194303&g,b.h=1048575&w,0))||(c<22?f.l|=1<>>1,u.m=~~a>>>1|(1&h)<<21,u.l=~~s>>>1|(1&a)<<21,--c;return e&&eQ(f),o&&(r?(o7=eP(n),i&&(o7=eY(o7,(eS(),uu)))):o7=tm(n.l,n.m,n.h)),f}(r?n:tm(n.l,n.m,n.h),t,c,o,i,e):(e&&(o7=o?eP(n):tm(n.l,n.m,n.h)),tm(0,0,0))}function iI(n){var t=[];for(var e in n){var r=typeof n[e];r!=oP?t[t.length]=r:n[e]instanceof Array?t[t.length]=oS:o&&o.bigdecimal&&o.bigdecimal.BigInteger&&n[e]instanceof o.bigdecimal.BigInteger?t[t.length]=i8:o&&o.bigdecimal&&o.bigdecimal.BigDecimal&&n[e]instanceof o.bigdecimal.BigDecimal?t[t.length]=i5:o&&o.bigdecimal&&o.bigdecimal.RoundingMode&&n[e]instanceof o.bigdecimal.RoundingMode?t[t.length]=og:o&&o.bigdecimal&&o.bigdecimal.MathContext&&n[e]instanceof o.bigdecimal.MathContext?t[t.length]=oh:t[t.length]=oP}return t.join(iV)}function iE(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_,v,m;return e=8191&n.l,r=~~n.l>>13|(15&n.m)<<9,i=~~n.m>>4&8191,o=~~n.m>>17|(255&n.h)<<5,u=~~(1048320&n.h)>>8,f=8191&t.l,c=~~t.l>>13|(15&t.m)<<9,s=~~t.m>>4&8191,a=~~t.m>>17|(255&t.h)<<5,h=~~(1048320&t.h)>>8,w=e*f,d=r*f,_=i*f,v=o*f,m=u*f,0!=c&&(d+=e*c,_+=r*c,v+=i*c,m+=o*c),0!=s&&(_+=e*s,v+=r*s,m+=i*s),0!=a&&(v+=e*a,m+=r*a),0!=h&&(m+=e*h),b=(4194303&w)+((511&d)<<13),l=(~~w>>22)+(~~d>>9)+((262143&_)<<4)+((31&v)<<17),g=(~~_>>18)+(~~v>>5)+((4095&m)<<8),l+=~~b>>22,b&=4194303,g+=~~l>>22,tm(b,l&=4194303,g&=1048575)}function iR(n,t,e){var r,i,o,u,f,c,s,a;if(a=rr(eX(e3(e.b),oK))+(t.e>0?t.e:nU((t.b-1)*.3010299956639812)+1)-(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1),c=i=n.f-t.f,o=1,f=uv.length-1,s=tJ(f5,{6:1},17,[(n.d||(n.d=eU(n.g)),n.d)]),0==e.b||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return iA(n,t);if(a>0&&(e8(s,0,en((n.d||(n.d=eU(n.g)),n.d),iv(a))),c+=a),u=(s=r3(s[0],(t.d||(t.d=eU(t.g)),t.d)))[0],0!=s[1].r())r=rn(eF(s[1]),(t.d||(t.d=eU(t.g)),t.d)),u=iC(en(u,(rK(),ux)),eW(e3(s[0].r()*(5+r)))),++c;else for(;!u.gb(0);)if(0==(s=r3(u,uv[o]))[1].r()&&c-o>=i)c-=o,o=0)return n;return 0==e?np(n.b,t.b)+1<54?new tr(n.g-t.g,n.f):new tM(is((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d)),n.f):e>0?e0?t.e:nU((t.b-1)*.3010299956639812)+1)+o>(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)+1||0==n.b&&-1!=n.g)rK(),r=uB;else if(0==o)r=ia((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d));else if(o>0)u=iv(o),r=ia((n.d||(n.d=eU(n.g)),n.d),en((t.d||(t.d=eU(t.g)),t.d),u)),r=en(r,u);else{for(u=iv(-o),r=ia(en((n.d||(n.d=eU(n.g)),n.d),u),(t.d||(t.d=eU(t.g)),t.d));!r.gb(0);)if(0==(f=r3(r,uv[e]))[1].r()&&c-e>=o)c-=e,e=0;){if(w[h]==c)s=-1;else if(s=nx(m=r0(eX(rL(ts(e3(w[h]),o3),32),ts(e3(w[h-1]),o3)),c)),v=nx(rJ(m,32)),0!=s){_=!1,++s;do{if(--s,_)break;l=iE(ts(e3(s),o3),ts(e3(d[o-2]),o3)),y=eX(rL(e3(v),32),ts(e3(w[h-2]),o3)),32>rH(nx(rU(g=eX(ts(e3(v),o3),ts(e3(c),o3)),32)))?_=!0:v=nx(g)}while(rB(th(l,o$),th(y,o$)))}if(0!=s&&0!=function(n,t,e,r,i){var o,u,f;for(f=0,o=oz,u=oz;f0)e8(b,0,ia((n.d||(n.d=eU(n.g)),n.d),en((t.d||(t.d=eU(t.g)),t.d),iv(o)))),h=o<(a-l+1>0?a-l+1:0)?o:a-l+1>0?a-l+1:0,e8(b,0,en(b[0],iv(h)));else if(u=-o<(a-i>0?a-i:0)?-o:a-i>0?a-i:0,b=r3(en((n.d||(n.d=eU(n.g)),n.d),iv(u)),(t.d||(t.d=eU(t.g)),t.d)),h+=u,u=-h,0!=b[1].r()&&u>0&&(0==(r=new nk(b[1]).q()+u-t.q())&&(e8(b,1,ia(en(b[1],iv(u)),(t.d||(t.d=eU(t.g)),t.d))),r=(d=b[1].r())<0?-d:d),r>0))throw new nr(ou);if(0==b[0].r())return eL(o);for(w=b[0],g=(c=new nk(b[0])).q(),f=1;!w.gb(0);)if(0==(b=r3(w,uv[f]))[1].r()&&(g-f>=a||h-f>=o))g-=f,h-=f,fa)throw new nr(ou);return c.f=eJ(h),tR(c,w),c}function iT(){var n;for(n=0,iT=l,uz=tJ(fd,{6:1},-1,[0,0,1854,1233,927,747,627,543,480,431,393,361,335,314,295,279,265,253,242,232,223,216,181,169,158,150,145,140,136,132,127,123,119,114,110,105,101,96,92,87,83,78,73,69,64,59,54,49,44,38,32,26,1]),uJ=tL(f5,{6:1},17,(uK=tJ(fd,{6:1},-1,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021])).length,0);n=0;--c)w=function(n){var t,e,r;return rA(n,oz)?(e=nP(n,o2),r=n3(n,o2)):(e=nP(t=rU(n,1),o0),r=eX(rL(r=n3(t,o0),1),ts(n,oJ))),ta(rL(r,32),ts(e,o3))}(eX(rL(y,32),ts(e3(M[c]),o3))),M[c]=nx(w),y=e3(nx(rJ(w,32)));d=nx(y),g=e;do v[--e]=48+d%10&65535;while(0!=(d=~~(d/10))&&0!=e)for(f=0,r=9-g+e;f0;++f)v[--e]=48;for(a=x-1;0==M[a];--a)if(0==a)break n;x=a+1}for(;48==v[e];)++e}if(h=C<0,o=_-e-t-1,0==t)return h&&(v[--e]=45),tU(v,e,_-e);if(t>0&&o>=-6){if(o>=0){for(s=e+o,a=_-1;a>=s;--a)v[a+1]=v[a];return v[++s]=46,h&&(v[--e]=45),tU(v,e,_-e+1)}for(a=2;a<-o+1;++a)v[--e]=48;return v[--e]=46,v[--e]=48,h&&(v[--e]=45),tU(v,e,_-e)}return(S=e+1,m=new W,h&&(m.b.b+=iz),_-S>=1)?(tI(m,v[e]),m.b.b+=iJ,N=m.b,I=tU(v,e+1,_-e-1),N.b+=I):(E=m.b,R=tU(v,e,_-e),E.b+=R),m.b.b+=of,o>0&&(m.b.b+=iG),O=m.b,O.b+=i$+o,m.b.b}f&&f({moduleName:"gwtapp",sessionId:c,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalStart"});var iF,iH,i$="",iV=" ",iq='"',iG="+",iz="-",iJ=".",iK="0",iW="0.",iZ="0.0",iX="0.00",iY="0.000",i1="0.0000",i0="0.00000",i2="0.000000",i4="0E",i3="0E+",i6=":",i5="BigDecimal",i9="BigDecimal MathContext",i7="BigDecimal;",i8="BigInteger",on="BigInteger divide by zero",ot="BigInteger not invertible.",oe="BigInteger: modulus not positive",or="BigInteger;",oi="CSS1Compat",oo="Division by zero",ou="Division impossible",of="E",oc='For input string: "',os="Infinite or NaN",oa="Invalid Operation",oh="MathContext",ob="Negative bit address",ol="Rounding necessary",og="RoundingMode",ow="RoundingMode;",od="String",op="[Lcom.iriscouch.gwtapp.client.",o_="[Ljava.lang.",ov="[Ljava.math.",om="\\.",oy="__gwtex_wrap",oC="anonymous",oS="array",oM="bad string format",ox="bigdecimal",oB="com.google.gwt.core.client.",oA="com.google.gwt.core.client.impl.",oN="com.iriscouch.gwtapp.client.",oI="java.lang.",oE="java.math.",oR="java.util.",oO="msie",oD="null",ok="number",oL="number MathContext",oU="number number",oP="object",oQ="opera",oT="org.timepedia.exporter.client.",oj="safari",oF="string",oH="undefined",o$={l:0,m:0,h:524288},oV={l:0,m:4193280,h:1048575},oq={l:4194298,m:4194303,h:1048575},oG={l:4194303,m:4194303,h:1048575},oz={l:0,m:0,h:0},oJ={l:1,m:0,h:0},oK={l:2,m:0,h:0},oW={l:5,m:0,h:0},oZ={l:10,m:0,h:0},oX={l:11,m:0,h:0},oY={l:18,m:0,h:0},o1={l:48,m:0,h:0},o0={l:877824,m:119,h:0},o2={l:1755648,m:238,h:0},o4={l:4194303,m:511,h:0},o3={l:4194303,m:1023,h:0},o6={l:0,m:1024,h:0};(iH=s.prototype={}).eQ=function(n){return this===n},iH.gC=function(){return fc},iH.hC=function(){return nj(this)},iH.tS=function(){return this.gC().d+"@"+function(n){var t,e;if(t=tL(fJ,{6:1},-1,8,1),r_(),e=7,n>=0)for(;n>15;)t[e--]=uR[15&n],n>>=4;else for(;e>0;)t[e--]=uR[15&n],n>>=4;return t[e]=uR[15&n],t4(t,e,8)}(this.hC())},iH.toString=function(){return this.tS()},iH.tM=l,iH.cM={},(iH=a.prototype=new s).gC=function(){return fa},iH.j=function(){return this.f},iH.tS=function(){var n,t;return n=this.gC().d,null!=(t=this.j())?n+": "+t:n},iH.cM={6:1,15:1},iH.f=null,(iH=h.prototype=new a).gC=function(){return fh},iH.cM={6:1,15:1},(iH=ne.prototype=b.prototype=new h).gC=function(){return fb},iH.cM={6:1,12:1,15:1},(iH=n1.prototype=(function(){}).prototype=new b).gC=function(){return fl},iH.j=function(){var n,t,e,r,i;return null==this.d&&(this.e=null==(e=this.c)?oD:tn(e)?null==(r=t9(e))?null:r.name:nG(e,1)?od:(nF(e)?e.gC():fg).d,this.b=tn(n=this.c)?null==(i=t9(n))?null:i.message:n+i$,this.d="("+this.e+"): "+this.b+(tn(t=this.c)?function(n){var t=i$;try{for(var e in n)if("name"!=e&&"message"!=e&&"toString"!=e)try{t+="\n "+e+": "+n[e]}catch(r){}}catch(i){}return t}(t9(t)):i$)),this.d},iH.cM={6:1,12:1,15:1},iH.b=null,iH.c=null,iH.d=null,iH.e=null,(iH=g.prototype=new s).gC=function(){return fw};var o5=0,o9=0;(iH=w.prototype=(function(){}).prototype=new g).gC=function(){return fv},iH.b=null,iH.c=null,(iH=d.prototype=_.prototype=new s).k=function(){for(var n={},t=[],e=arguments.callee.caller.caller;e;){var r,i,o=this.n(e.toString());t.push(o);var u=i6+o,f=n[u];if(f){for(r=0,i=f.length;r0?i:oC},iH.gC=function(){return fm},iH.o=function(n){return[]},(iH=v.prototype=new _).k=function(){return tl(this.o(tw()),this.p())},iH.gC=function(){return fS},iH.o=function(n){return eR(this,n)},iH.p=function(){return 2},(iH=m.prototype=(function(){}).prototype=new v).k=function(){return es(this)},iH.n=function(n){var t,e;return 0==n.length||(0==(e=e9(n)).indexOf("at ")&&(e=n7(e,3)),-1==(t=e.indexOf("["))&&(t=e.indexOf("(")),-1==t)?oC:(-1!=(t=(e=e9(e.substr(0,t-0))).indexOf("."))&&(e=n7(e,t+1)),e.length>0?e:oC)},iH.gC=function(){return fM},iH.o=function(n){return t2(this,n)},iH.p=function(){return 3},(iH=y.prototype=new s).gC=function(){return fx},(iH=C.prototype=(function(){}).prototype=new y).gC=function(){return fB},iH.b=i$,(iH=S.prototype=(function(){}).prototype=new s).gC=function(){return this.aC},iH.aC=null,iH.qI=0;var o7=null,o8=null;(iH=M.prototype=(function(){}).prototype=new s).gC=function(){return fI},iH.cM={2:1},(iH=x.prototype=new s).gC=function(){return fR},iH.cM={6:1,10:1};var un=null;(iH=eo.prototype=tr.prototype=tM.prototype=tA.prototype=Z.prototype=ep.prototype=eu.prototype=tB.prototype=tx.prototype=ez.prototype=n2.prototype=n4.prototype=te.prototype=tS.prototype=nk.prototype=B.prototype=new x).eQ=function(n){return e0(this,n)},iH.gC=function(){return fO},iH.hC=function(){return rv(this)},iH.q=function(){return rT(this)},iH.r=function(){return ew(this)},iH.tS=function(){return id(this)},iH.cM={6:1,8:1,10:1,16:1},iH.b=0,iH.c=0,iH.d=null,iH.e=0,iH.f=0,iH.g=0,iH.i=null;var ut,ue,ur,ui,uo,uu,uf,uc,us,ua,uh,ub,ul,ug,uw,ud,up,u_=null,uv=null,um=null;(iH=nL.prototype=ng.prototype=(function(){}).prototype=new B).s=function(n){var t,e,r;if((e=iI(n))==i$)t=0>ew(this)?ed(this):this;else if(e==oh)t=0>(r=t7(this,new iS(n[0].toString()))).r()?ed(r):r;else throw new ne("Unknown call signature for interim = super.abs: "+e);return new nL(t)},iH.t=function(n){var t,e;if((e=iI(n))==i5)t=r1(this,new Z(n[0].toString()));else if(e==i9)t=function(n,t,e){var r,i,o,u,f;if(r=n.f-t.f,0==t.b&&-1!=t.g||0==n.b&&-1!=n.g||0==e.b)return t7(r1(n,t),e);if((n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)0?t.e:nU((t.b-1)*.3010299956639812)+1)<-r-1))return t7(r1(n,t),e);i=n,u=t}return e.b>=(i.e>0?i.e:nU((i.b-1)*.3010299956639812)+1)?t7(r1(n,t),e):(f=(o=i.r())==u.r()?iC(rW((i.d||(i.d=eU(i.g)),i.d),10),eW(e3(o))):iC(rW(f=is((i.d||(i.d=eU(i.g)),i.d),eW(e3(o))),10),eW(e3(9*o))),t7(i=new tM(f,i.f+1),e))}(this,new Z(n[0].toString()),new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.add: "+e);return new nL(t)},iH.u=function(){return~~(nx(t8(this,8))<<24)>>24},iH.v=function(n){return iu(this,n)},iH.w=function(n){var t,e,r,i;if((i=iI(n))==i5)e=eb(this,new Z(n[0].toString()));else if(i==i9)e=el(this,new Z(n[0].toString()),new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.divideAndRemainder: "+i);for(t=0,r=tL(fk,{6:1},3,e.length,0);t129?n*=1/0:n=t5(id(this)),n},iH.gC=function(){return fD},iH.hC=function(){return rv(this)},iH.B=function(){var n;return this.f<=-32||this.f>(this.e>0?this.e:nU((this.b-1)*.3010299956639812)+1)?0:(n=new n0(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eU(this.g)),this.d):this.f<0?en((this.d||(this.d=eU(this.g)),this.d),iv(-this.f)):ia((this.d||(this.d=eU(this.g)),this.d),iv(this.f)))).f*n.b[0]},iH.C=function(){return nx(t8(this,32))},iH.D=function(){return nx(t8(this,32))},iH.E=function(){return t5(id(this))},iH.F=function(n){return new nL(iu(this,n)>=0?this:n)},iH.G=function(n){return new nL(0>=iu(this,n)?this:n)},iH.H=function(n){return new nL(rz(this,this.f+n))},iH.I=function(n){return new nL(rz(this,this.f-n))},iH.J=function(n){var t,e;if((e=iI(n))==i5)t=rD(this,new Z(n[0].toString()));else if(e==i9)t=tb(this,new Z(n[0].toString()),new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.multiply: "+e);return new nL(t)},iH.K=function(n){var t,e;if((e=iI(n))==i$)t=ed(this);else if(e==oh)t=ed(t7(this,new iS(n[0].toString())));else throw new ne("Unknown call signature for interim = super.negate: "+e);return new nL(t)},iH.L=function(n){var t,e;if((e=iI(n))==i$)t=this;else if(e==oh)t=t7(this,new iS(n[0].toString()));else throw new ne("Unknown call signature for interim = super.plus: "+e);return new nL(t)},iH.M=function(n){var t,e;if((e=iI(n))==ok)t=rw(this,n[0]);else if(e==oL)t=function(n,t,e){var r,i,o,u,f,c;if(o=t<0?-t:t,u=e.b,i=ei(n8(o))+1,f=e,0==t||0==n.b&&-1!=n.g&&t>0)return rw(n,t);if(o>999999999||0==u&&t<0||u>0&&i>u)throw new nr(oa);for(u>0&&(f=new eK(u+i+1,e.c)),r=t7(n,f),c=~~function(n){var t;if(n<0)return -2147483648;if(0==n)return 0;for(t=1073741824;(t&n)==0;t>>=1);return t}(o)>>1;c>0;)r=tb(r,r,f),(o&c)==c&&(r=tb(r,n,f)),c>>=1;return t<0&&(r=iR(ug,r,f)),ic(r,e),r}(this,n[0],new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.pow: "+e);return new nL(t)},iH.q=function(){return rT(this)},iH.N=function(n){var t,e;if((e=iI(n))==i5)t=eb(this,new Z(n[0].toString()))[1];else if(e==i9)t=el(this,new Z(n[0].toString()),new iS(n[1].toString()))[1];else throw new ne("Unknown call signature for interim = super.remainder: "+e);return new nL(t)},iH.O=function(n){return new nL(t7(this,new iS(ea(n.b))))},iH.P=function(){return ei(this.f)},iH.Q=function(n){var t,e;return new nL((t=this,(e=t.f-n,t.b<54)?0==t.g?eL(e):new tr(t.g,eJ(e)):new tS((t.d||(t.d=eU(t.g)),t.d),eJ(e))))},iH.R=function(n){var t,e;if((e=iI(n))==ok)t=rY(this,n[0],(iB(),u4));else if(e==oU)t=rY(this,n[0],rP(n[1]));else if("number RoundingMode"==e)t=rY(this,n[0],tc(n[1].toString()));else throw new ne("Unknown call signature for interim = super.setScale: "+e);return new nL(t)},iH.S=function(){return~~(nx(t8(this,16))<<16)>>16},iH.r=function(){return ew(this)},iH.T=function(){return new nL(function(n){var t,e,r,i,o;if(t=1,e=uv.length-1,r=n.f,0==n.b&&-1!=n.g)return new Z(iK);for(n.d||(n.d=eU(n.g)),o=n.d;!o.gb(0);)if(0==(i=r3(o,uv[t]))[1].r())r-=t,t0?i.e:nU((i.b-1)*.3010299956639812)+1)0?r.e:nU((r.b-1)*.3010299956639812)+1)?(f=(c=ew(r))!=i.r()?iC(rW((r.d||(r.d=eU(r.g)),r.d),10),eW(e3(c))):iC(rW(f=is((r.d||(r.d=eU(r.g)),r.d),eW(e3(c))),10),eW(e3(9*c))),t7(new tM(f,r.f+1),o)):t7(iO(r,i),o);else throw new ne("Unknown call signature for interim = super.subtract: "+e);return new nL(t)},iH.V=function(){return new n0(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eU(this.g)),this.d):this.f<0?en((this.d||(this.d=eU(this.g)),this.d),iv(-this.f)):ia((this.d||(this.d=eU(this.g)),this.d),iv(this.f)))},iH.W=function(){return new n0(r6(this))},iH.X=function(){return function(n){var t,e,r,i,o,u,f,c;if(u=ij((n.d||(n.d=eU(n.g)),n.d),0),0==n.f)return u;if(t=0>(n.d||(n.d=eU(n.g)),n.d).r()?2:1,r=u.length,i=-n.f+r-t,c=new nV(u),n.f>0&&i>=-6)i>=0?n9(c,r-ei(n.f),iJ):(tt(c.b,t-1,t-1,iW),n9(c,t+1,tU(us,0,-ei(i)-1)));else{if(e=r-t,0!=(f=ei(i%3))&&(0==(n.d||(n.d=eU(n.g)),n.d).r()?i+=f=f<0?-f:3-f:(i-=f=f<0?f+3:f,t+=f),e<3))for(o=f-e;o>0;--o)n9(c,r++,iK);r-t>=1&&(tt(c.b,t,t,iJ),++r),0!=i&&(tt(c.b,r,r,of),i>0&&n9(c,++r,iG),n9(c,++r,i$+r4(r2(i))))}return c.b.b}(this)},iH.Y=function(){return function(n){var t,e,r,i,o,u;if(r=ij((n.d||(n.d=eU(n.g)),n.d),0),0==n.f||0==n.b&&-1!=n.g&&n.f<0)return r;if(t=0>ew(n)?1:0,e=n.f,i=new W(r.length+1+((o=ei(n.f))<0?-o:o)),1==t&&(i.b.b+=iz),n.f>0){if((e-=r.length-t)>=0){for(i.b.b+=iW;e>us.length;e-=us.length)tq(i,us);n5(i,us,ei(e)),nI(i,n7(r,t))}else nI(i,(u=ei(e=t-e),r.substr(t,u-t))),i.b.b+=iJ,nI(i,n7(r,ei(e)))}else{for(nI(i,n7(r,t));e<-us.length;e+=us.length)tq(i,us);n5(i,us,ei(-e))}return i.b.b}(this)},iH.tS=function(){return id(this)},iH.Z=function(){return new nL(new tr(1,this.f))},iH.$=function(){return new n0((this.d||(this.d=eU(this.g)),this.d))},iH.cM={3:1,6:1,8:1,10:1,16:1,24:1},(iH=F.prototype=(function(){}).prototype=new s).gC=function(){return fL};var uy=!1;(iH=ro.prototype=ri.prototype=ti.prototype=e5.prototype=t$.prototype=ra.prototype=nq.prototype=iy.prototype=A.prototype=new x)._=function(){return this.f<0?new ti(1,this.e,this.b):this},iH.ab=function(){return eV(this)},iH.eQ=function(n){return e$(this,n)},iH.gC=function(){return fU},iH.bb=function(){return t1(this)},iH.hC=function(){return eD(this)},iH.cb=function(){return 0==this.f?this:new ti(-this.f,this.e,this.b)},iH.db=function(n){return rk(this,n)},iH.eb=function(n){return tX(this,n)},iH.fb=function(n){return tY(this,n)},iH.r=function(){return this.f},iH.gb=function(n){return rQ(this,n)},iH.tS=function(){return ij(this,0)},iH.cM={6:1,8:1,10:1,17:1},iH.b=null,iH.c=-2,iH.d=0,iH.e=0,iH.f=0;var uC,uS,uM,ux,uB,uA=null;(iH=n0.prototype=nO.prototype=nD.prototype=(function(){}).prototype=new A)._=function(){return new n0(this.f<0?new ti(1,this.e,this.b):this)},iH.hb=function(n){return new n0(iC(this,n))},iH.ib=function(n){return new n0(0==n.f||0==this.f?(rK(),uB):e$(n,(rK(),uC))?this:e$(this,uC)?n:this.f>0?n.f>0?function(n,t){var e,r,i,o;if(i=nd(n.e,t.e),(e=np(eg(n),eg(t)))>=i)return rK(),uB;for(r=tL(fd,{6:1},-1,i,1);e0?rG(n,this):this.e>n.e?ip(this,n):ip(n,this))},iH.jb=function(n){return new n0(0==n.f?this:0==this.f?(rK(),uB):e$(this,(rK(),uC))?new n0(r7(n)):e$(n,uC)?uB:this.f>0?n.f>0?function(n,t){var e,r,i,o;for(i=tL(fd,{6:1},-1,n.e,1),r=nd(n.e,t.e),e=eg(n);e=n.e)return n;for(o=tL(fd,{6:1},-1,u=nd(n.e,t.e),1),e=i;e0?function(n,t){var e,r,i,o,u,f,c;if(i=eg(n),o=eg(t),i>=t.e)return n;if(c=np(n.e,t.e),r=i,o>i){for(f=tL(fd,{6:1},-1,c,1),u=nd(n.e,o);r=t.e)return rK(),uB;if(u=tL(fd,{6:1},-1,f=t.e,1),e=i,i0)for(;e34028234663852886e22?1/0:n<-34028234663852886e22?-1/0:n},iH.qb=function(n){return new n0(rE(this,n))},iH.gC=function(){return fP},iH.bb=function(){return t1(this)},iH.hC=function(){return eD(this)},iH.B=function(){return this.f*this.b[0]},iH.rb=function(n){return function(n,t){var e,r;if(iT(),t<=0||1==n.e&&2==n.b[0])return!0;if(!rQ(n,0))return!1;if(1==n.e&&(-1024&n.b[0])==0)return function(n,t){var e,r,i,o;for(r=0,e=n.length-1;r<=e;)if((o=n[i=r+(~~(e-r)>>1)])t))return i;e=i-1}return-r-1}(uK,n.b[0])>=0;for(r=1;r>1)?r:1+(~~(t-1)>>1))}(new n0(this.f<0?new ti(1,this.e,this.b):this),n)},iH.sb=function(){return t5(ij(this,0))},iH.tb=function(n){return new n0(1==rn(this,n)?this:n)},iH.ub=function(n){return new n0(-1==rn(this,n)?this:n)},iH.vb=function(n){return new n0(et(this,n))},iH.wb=function(n){return new n0(rR(this,n))},iH.xb=function(n,t){return new n0(rq(this,n,t))},iH.yb=function(n){return new n0(en(this,n))},iH.cb=function(){return new n0(0==this.f?this:new ti(-this.f,this.e,this.b))},iH.zb=function(){return new n0(function(n){if(n.f<0)throw new nr("start < 0: "+n);return function(n){var t,e,r,i,o,u,f,c;if(iT(),o=tL(fd,{6:1},-1,uK.length,1),r=tL(f_,{6:1},-1,1024,2),1==n.e&&n.b[0]>=0&&n.b[0]=uK[e];++e);return uJ[e]}for(f=new ti(1,n.e,tL(fd,{6:1},-1,n.e+1,1)),ix(n.b,0,f.b,0,n.e),rQ(n,0)?tK(f,2):f.b[0]|=1,i=f.ab(),t=2;i0?n.f>0?this.e>n.e?rl(this,n):rl(n,this):ig(this,n):n.f>0?ig(n,this):eg(n)>eg(this)?rZ(n,this):rZ(this,n))},iH.db=function(n){return new n0(rk(this,n))},iH.Cb=function(n){return new n0(rF(this,n))},iH.Db=function(n){return new n0(rQ(this,n)?this:it(this,n))},iH.eb=function(n){return new n0(tX(this,n))},iH.fb=function(n){return new n0(tY(this,n))},iH.r=function(){return this.f},iH.Eb=function(n){return new n0(is(this,n))},iH.gb=function(n){return rQ(this,n)},iH.Fb=function(n){var t,e;if((e=iI(n))==i$)t=ij(this,0);else if(e==ok)t=function(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_;if(iM(),g=n.f,s=n.e,u=n.b,0==g)return iK;if(1==s)return _=ts(e3(u[0]),o3),g<0&&(_=eP(_)),function(n,t){var e,r,i;if(10==t||t<2||t>36)return i$+r4(n);if(e=tL(fJ,{6:1},-1,65,1),r_(),r=64,i=e3(t),rA(n,oz)){for(;rA(n,i);)e[r--]=uR[nx(n3(n,i))],n=iN(n,i,!1);e[r]=uR[nx(n)]}else{for(;!rB(n,eP(i));)e[r--]=uR[nx(eP(n3(n,i)))],n=iN(n,i,!1);e[r--]=uR[nx(eP(n))],e[r]=45}return t4(e,r,65)}(_,t);if(10==t||t<2||t>36)return ij(n,0);if(l=tL(fJ,{6:1},-1,b=ei(eV(new n0(n.f<0?new ti(1,n.e,n.b):n))/(Math.log(t)/Math.log(2))+(g<0?1:0))+1,1),i=b,16!=t)for(ix(u,0,w=tL(fd,{6:1},-1,s,1),0,s),d=s,r=uU[t],e=uL[t-2];;){h=ir(w,w,d,e),a=i;do l[--i]=ev(h%t,t);while(0!=(h=~~(h/t))&&0!=i)for(f=0,o=r-a+i;f0;++f)l[--i]=48;for(f=d-1;f>0&&0==w[f];--f);if(1==(d=f+1)&&0==w[0])break}else for(f=0;f0;++c)h=~~u[f]>>(c<<2)&15,l[--i]=ev(h,16);for(;48==l[i];)++i;return -1==g&&(l[--i]=45),tU(l,i,b-i)}(this,n[0]);else throw new ne("Unknown call signature for result = super.toString: "+e);return t},iH.Gb=function(n){return new n0(0==n.f?this:0==this.f?n:e$(n,(rK(),uC))?new n0(r7(this)):e$(this,uC)?new n0(r7(n)):this.f>0?n.f>0?this.e>n.e?rg(this,n):rg(n,this):iL(this,n):n.f>0?iL(n,this):eg(n)>eg(this)?ii(n,this):ii(this,n))},iH.cM={4:1,6:1,8:1,10:1,17:1,24:1},(iH=j.prototype=(function(){}).prototype=new s).gC=function(){return fT};var uN=!1;(iH=nv.prototype=nm.prototype=(function(){}).prototype=new s).gC=function(){return fj},iH.Hb=function(){return this.b.b},iH.Ib=function(){return new Y(this.b.c)},iH.hC=function(){return nM(this.b)},iH.tS=function(){return ea(this.b)},iH.cM={24:1},iH.b=null,(iH=T.prototype=(function(){}).prototype=new s).gC=function(){return fF};var uI=!1;(iH=Y.prototype=ny.prototype=(function(){}).prototype=new s).gC=function(){return fH},iH.Jb=function(){return this.b.b},iH.tS=function(){return this.b.b},iH.cM={5:1,24:1},iH.b=null,(iH=J.prototype=(function(){}).prototype=new s).gC=function(){return fV};var uE=!1;(iH=nr.prototype=(function(){}).prototype=new b).gC=function(){return fq},iH.cM={6:1,12:1,15:1},(iH=ni.prototype=$.prototype=(function(){}).prototype=new b).gC=function(){return fz},iH.cM={6:1,12:1,15:1},(iH=N.prototype=(function(){}).prototype=new s).gC=function(){return fK},iH.tS=function(){return((2&this.c)!=0?"interface ":(1&this.c)!=0?i$:"class ")+this.d},iH.b=null,iH.c=0,iH.d=null,(iH=H.prototype=(function(){}).prototype=new b).gC=function(){return fW},iH.cM={6:1,12:1,15:1},(iH=I.prototype=new s).eQ=function(n){return this===n},iH.gC=function(){return fs},iH.hC=function(){return nj(this)},iH.tS=function(){return this.b},iH.cM={6:1,8:1,9:1},iH.b=null,iH.c=0,(iH=no.prototype=V.prototype=E.prototype=new b).gC=function(){return fZ},iH.cM={6:1,12:1,15:1},(iH=nu.prototype=q.prototype=R.prototype=new b).gC=function(){return fG},iH.cM={6:1,12:1,15:1},(iH=nf.prototype=G.prototype=(function(){}).prototype=new b).gC=function(){return fX},iH.cM={6:1,12:1,15:1},(iH=nw.prototype=(function(){}).prototype=new E).gC=function(){return fY},iH.cM={6:1,12:1,15:1},(iH=to.prototype=(function(){}).prototype=new s).gC=function(){return fy},iH.tS=function(){return this.b+iJ+this.d+"(Unknown Source"+(this.c>=0?i6+this.c:i$)+")"},iH.cM={6:1,13:1},iH.b=null,iH.c=0,iH.d=null,(iH=String.prototype).eQ=function(n){return tj(this,n)},iH.gC=function(){return fA},iH.hC=function(){var n,t;return nJ(),null!=(t=uD[n=i6+this])?t:(null==(t=uO[n])&&(t=function(n){var t,e,r,i;for(t=0,i=(r=n.length)-4,e=0;et?n:t}function n_(n,t){return!rA(n,t)}function nv(n){this.b=new iS(n)}function nm(){this.b=(rj(),uj)}function ny(){this.b=(iB(),u2)}function nC(n,e){var r;nh(),r=t.b,n?function(n,t,e,r){var i=n.b[r];if(i)for(var o=0,u=i.length;o=t&&n.splice(0,t),n}function tg(n){return nG(n,15)?n:new n1(n)}function tw(){try{null.a()}catch(n){return n}}function td(n){var t;return(t=new N).d=i$+n,t.c=1,t}function tp(n,t){return nF(n)?n.eQ(t):n===t}function t_(n,t){return n.l==t.l&&n.m==t.m&&n.h==t.h}function tv(n,t){return n.l!=t.l||n.m!=t.m||n.h!=t.h}function tm(n,t,e){return(iH=new M).l=n,iH.m=t,iH.h=e,iH}function ty(n,t){return nT(n)===nT(t)||null!=n&&tp(n,t)}function tC(n,t){throw new nu("Index: "+n+", Size: "+t)}function tS(n,t){if(!n)throw new G;this.f=t,tR(this,n)}function tM(n,t){if(!n)throw new G;this.f=t,tR(this,n)}function tx(n,t,e,r){ez.call(this,n,t,e),ic(this,r)}function tB(n,t){ez.call(this,n,0,n.length),ic(this,t)}function tA(n,t){ez.call(this,t6(n),0,n.length),ic(this,t)}function tN(n){ne.call(this,"String index out of range: "+n)}function tI(n,t){var e,r;return e=n.b,r=String.fromCharCode(t),e.b+=r,n}function tE(n,t){ry(n.b,n.b,n.e,t.b,t.e),tW(n),n.c=-2}function tR(n,t){n.d=t,n.b=t.ab(),n.b<54&&(n.g=rr(eA(t)))}function tO(){tO=l,ue=[],ur=[],function(n,t,e){var r,i=0;for(var o in n)(r=n[o])&&(t[i]=o,e[i]=r,++i)}(new S,ue,ur)}function tD(){uy||(uy=!0,new T,new j,function(){if(nl(ox,i$),o.bigdecimal.BigDecimal)var n=o.bigdecimal.BigDecimal;o.bigdecimal.BigDecimal=ff(function(){1==arguments.length&&null!=arguments[0]&&arguments[0].gC()==fD?this.__gwt_instance=arguments[0]:0==arguments.length&&(this.__gwt_instance=new ng,nb(this.__gwt_instance,this))});var t=o.bigdecimal.BigDecimal.prototype={};if(n)for(p in n)o.bigdecimal.BigDecimal[p]=n[p];o.bigdecimal.BigDecimal.ROUND_CEILING=2,o.bigdecimal.BigDecimal.ROUND_DOWN=1,o.bigdecimal.BigDecimal.ROUND_FLOOR=3,o.bigdecimal.BigDecimal.ROUND_HALF_DOWN=5,o.bigdecimal.BigDecimal.ROUND_HALF_EVEN=6,o.bigdecimal.BigDecimal.ROUND_HALF_UP=4,o.bigdecimal.BigDecimal.ROUND_UNNECESSARY=7,o.bigdecimal.BigDecimal.ROUND_UP=0,o.bigdecimal.BigDecimal.__init__=ff(function(n){var t=function(n){var t,e;if(iU(),(e=iI(n))==i8)t=new nk(new nq(n[0].toString()));else if("BigInteger number"==e)t=new tS(new nq(n[0].toString()),n[1]);else if("BigInteger number MathContext"==e)t=new te(new nq(n[0].toString()),n[1],new iS(n[2].toString()));else if("BigInteger MathContext"==e)t=new n4(new nq(n[0].toString()),new iS(n[1].toString()));else if(e==oS)t=new n2(t6(n[0].toString()));else if("array number number"==e)t=new ez(t6(n[0].toString()),n[1],n[2]);else if("array number number MathContext"==e)t=new tx(t6(n[0].toString()),n[1],n[2],new iS(n[3].toString()));else if("array MathContext"==e)t=new tB(t6(n[0].toString()),new iS(n[1].toString()));else if(e==ok)t=new eu(n[0]);else if(e==oL)t=new ep(n[0],new iS(n[1].toString()));else if(e==oF)t=new Z(n[0].toString());else if("string MathContext"==e)t=new tA(n[0].toString(),new iS(n[1].toString()));else throw new ne("Unknown call signature for obj = new java.math.BigDecimal: "+e);return new nL(t)}(n);return nE(t)}),t.abs_va=ff(function(n){return nE(this.__gwt_instance.s(n))}),t.add_va=ff(function(n){return nE(this.__gwt_instance.t(n))}),t.byteValueExact=ff(function(){return this.__gwt_instance.u()}),t.compareTo=ff(function(n){return this.__gwt_instance.v(n.__gwt_instance)}),t.divide_va=ff(function(n){return nE(this.__gwt_instance.y(n))}),t.divideToIntegralValue_va=ff(function(n){return nE(this.__gwt_instance.x(n))}),t.doubleValue=ff(function(){return this.__gwt_instance.z()}),t.equals=ff(function(n){return this.__gwt_instance.eQ(n)}),t.floatValue=ff(function(){return this.__gwt_instance.A()}),t.hashCode=ff(function(){return this.__gwt_instance.hC()}),t.intValue=ff(function(){return this.__gwt_instance.B()}),t.intValueExact=ff(function(){return this.__gwt_instance.C()}),t.max=ff(function(n){return nE(this.__gwt_instance.F(n.__gwt_instance))}),t.min=ff(function(n){return nE(this.__gwt_instance.G(n.__gwt_instance))}),t.movePointLeft=ff(function(n){return nE(this.__gwt_instance.H(n))}),t.movePointRight=ff(function(n){return nE(this.__gwt_instance.I(n))}),t.multiply_va=ff(function(n){return nE(this.__gwt_instance.J(n))}),t.negate_va=ff(function(n){return nE(this.__gwt_instance.K(n))}),t.plus_va=ff(function(n){return nE(this.__gwt_instance.L(n))}),t.pow_va=ff(function(n){return nE(this.__gwt_instance.M(n))}),t.precision=ff(function(){return this.__gwt_instance.q()}),t.remainder_va=ff(function(n){return nE(this.__gwt_instance.N(n))}),t.round=ff(function(n){return nE(this.__gwt_instance.O(n.__gwt_instance))}),t.scale=ff(function(){return this.__gwt_instance.P()}),t.scaleByPowerOfTen=ff(function(n){return nE(this.__gwt_instance.Q(n))}),t.setScale_va=ff(function(n){return nE(this.__gwt_instance.R(n))}),t.shortValueExact=ff(function(){return this.__gwt_instance.S()}),t.signum=ff(function(){return this.__gwt_instance.r()}),t.stripTrailingZeros=ff(function(){return nE(this.__gwt_instance.T())}),t.subtract_va=ff(function(n){return nE(this.__gwt_instance.U(n))}),t.toBigInteger=ff(function(){return nE(this.__gwt_instance.V())}),t.toBigIntegerExact=ff(function(){return nE(this.__gwt_instance.W())}),t.toEngineeringString=ff(function(){return this.__gwt_instance.X()}),t.toPlainString=ff(function(){return this.__gwt_instance.Y()}),t.toString=ff(function(){return this.__gwt_instance.tS()}),t.ulp=ff(function(){return nE(this.__gwt_instance.Z())}),t.unscaledValue=ff(function(){return nE(this.__gwt_instance.$())}),t.divideAndRemainder_va=ff(function(n){return nR(this.__gwt_instance.w(n))}),t.longValue=ff(function(){return this.__gwt_instance.E()}),t.longValueExact=ff(function(){return this.__gwt_instance.D()}),o.bigdecimal.BigDecimal.valueOf_va=ff(function(n){var t=function(n){var t,e;if(iU(),(e=iI(n))==ok)t=function(n){if(!isFinite(n)||isNaN(n))throw new nw(os);return new Z(i$+n)}(n[0]);else if(e==ok)t=tZ(e3(n[0]));else if(e==oU)t=ek(e3(n[0]),n[1]);else throw new ne("Unknown call signature for bd = java.math.BigDecimal.valueOf: "+e);return new nL(t)}(n);return nE(t)}),o.bigdecimal.BigDecimal.log=ff(function(n){iU(),typeof console!==oH&&console.log&&console.log(n)}),o.bigdecimal.BigDecimal.logObj=ff(function(n){iU(),typeof console!==oH&&console.log&&typeof JSON!==oH&&JSON.stringify&&console.log("object: "+JSON.stringify(n))}),o.bigdecimal.BigDecimal.ONE=ff(function(){var n=(iU(),new nL(ug));return nE(n)}),o.bigdecimal.BigDecimal.TEN=ff(function(){var n=(iU(),new nL(uw));return nE(n)}),o.bigdecimal.BigDecimal.ZERO=ff(function(){var n=(iU(),new nL(ud));return nE(n)}),nC(fD,o.bigdecimal.BigDecimal)}())}function tk(n,t,e){var r;return(r=new N).d=n+t,r.c=4,r.b=e,r}function tL(n,t,e,r,i){var o;return tJ(n,t,e,o=function(n,t){var e=Array(t);if(3==n)for(var r=0;r0)for(var i=[null,0,!1][n],r=0;rn)throw new tN(e)}(n.length,t,r),t4(n,t,r)}function tP(n,t){return ib(),t=n.c.c)throw new z;return t=n.c,r=e=n.b++,i=t.c,(r<0||r>=i)&&tC(r,i),t.b[e]}function tj(n,t){return!!nG(t,1)&&String(n)==t}function tF(){ne.call(this,"Add not supported on this collection")}function tH(){this.b=[],this.f={},this.d=!1,this.c=null,this.e=0}function t$(n,t){rK(),this.f=n,this.e=1,this.b=tJ(fd,{6:1},-1,[t])}function tV(n,t){var e;return e=n.c,n.c=t,!n.d&&(n.d=!0,++n.e),e}function tq(n,t){var e,r;return e=n.b,r=String.fromCharCode.apply(null,t),e.b+=r,n}function tG(n,t,e,r){var i,o;return null==t&&(t=oD),i=n.b,o=t.substr(e,r-e),i.b+=o,n}function tz(n,t,e,r){var i;return ry(i=tL(fd,{6:1},-1,t,1),n,t,e,r),i}function tJ(n,t,e,r){return tO(),function(n,t,e){tO();for(var r=0,i=t.length;r0&&0==n.b[--n.e];);0==n.b[n.e++]&&(n.f=0)}function tZ(n){return rA(n,oz)&&n_(n,oX)?uc[nx(n)]:new eo(n,0)}function tX(n,t){return 0==t||0==n.f?n:t>0?e4(n,t):rX(n,-t)}function tY(n,t){return 0==t||0==n.f?n:t>0?rX(n,t):e4(n,-t)}function t1(n){var t;return 0==n.f?-1:((t=eg(n))<<5)+ec(n.b[t])}function t0(n){var t;return 0!=(t=nx(n))?ec(t):ec(nx(rJ(n,32)))+32}function t2(n,t){var e;return 0==(e=eR(n,t)).length?(new d).o(t):tl(e,1)}function t4(n,t,e){return n=n.slice(t,e),String.fromCharCode.apply(null,n)}function t3(n,t,e,r){var i;return ih(i=tL(fd,{6:1},-1,t+1,1),n,t,e,r),i}function t6(n){var t,e;return t=tL(fJ,{6:1},-1,e=n.length,1),function(n,t,e,r){var i;for(i=0;it.e&&(c=t,t=e,e=c),e.e<63)?(b=t,l=e,(_=(g=b.e)+(w=l.e),v=b.f!=l.f?-1:1,2==_)?(S=nx(y=iE(ts(e3(b.b[0]),o3),ts(e3(l.b[0]),o3))),0==(C=nx(rU(y,32)))?new t$(v,S):new ti(v,2,tJ(fd,{6:1},-1,[S,C]))):(eq(b.b,g,l.b,w,d=tL(fd,{6:1},-1,_,1)),tW(m=new ti(v,_,d)),m)):(f=(-2&t.e)<<4,a=t.fb(f),h=e.fb(f),i=is(t,a.eb(f)),o=is(e,h.eb(f)),s=n(a,h),r=n(i,o),u=(u=iC(iC(u=n(is(a,i),is(o,h)),s),r)).eb(f),iC(iC(s=s.eb(f<<1),u),r))}(n,t))}function et(n,t){var e;if(t.f<=0)throw new nr(oe);return(e=rF(n,t)).f<0?iC(e,t):e}function ee(n){var t;t=new nz,n.d&&n6(t,new nt(n)),function(n,t){var e=n.f;for(var r in e)if(58==r.charCodeAt(0)){var i=new nB(n,r.substring(1));t.Kb(i)}}(n,t),function(n,t){var e=n.b;for(var r in e){var i=parseInt(r,10);if(r==i)for(var o=e[i],u=0,f=o.length;u0?1:0:(n.d||(n.d=eU(n.g)),n.d).r()}function ed(n){return n.b<54?new tr(-n.g,n.f):new tM((n.d||(n.d=eU(n.g)),n.d).cb(),n.f)}function ep(n,t){if(!isFinite(n)||isNaN(n))throw new nw(os);iP(this,n.toPrecision(20)),ic(this,t)}function e_(n,t){return isNaN(n)?isNaN(t)?0:1:isNaN(t)?-1:nt?1:0}function ev(n,t){return t<2||t>36||n<0||n>=t?0:n<10?48+n&65535:97+n-10&65535}function em(n,t){var e,r;return t?((e=t[oy])||(e=new(r=t.gC(),t9(er(n.b,r)))(t),t[oy]=e),e):null}function ey(n){var t,e;return 32==(e=rH(n.h))?32==(t=rH(n.m))?rH(n.l)+32:t+20-10:e-12}function eC(n){return tm(4194303&n,~~n>>22&4194303,n<0?1048575:0)}function eS(){eS=l,ui=tm(4194303,4194303,524287),uo=tm(0,0,524288),uu=e3(1),e3(2),uf=e3(0)}function eM(n,t){ih(n.b,n.b,n.e,t.b,t.e),n.e=nd(np(n.e,t.e)+1,n.b.length),tW(n),n.c=-2}function ex(n,t){var e;e=~~t>>5,n.e+=e+(rH(n.b[n.e-1])-(31&t)>=0?0:1),rC(n.b,n.b,e,31&t),tW(n),n.c=-2}function eB(n,t){var e,r;e=~~t>>5,n.e>>r:0,tW(n))}function eA(n){var t;return t=n.e>1?ta(rL(e3(n.b[1]),32),ts(e3(n.b[0]),o3)):ts(e3(n.b[0]),o3),iE(e3(n.f),t)}function eN(n,t,e){var r;for(r=e-1;r>=0&&n[r]==t[r];--r);return r<0?0:n_(ts(e3(n[r]),o3),ts(e3(t[r]),o3))?-1:1}function eI(n,t,e){var r,i,o;for(i=0,r=0;i>>31;0!=r&&(n[e]=r)}function eE(n,t,e,r){if(iF=t,n)try{ff(im)()}catch(i){n(t)}else ff(im)()}function eR(n,t){var e,r,i;for(e=0,r=(i=t&&t.stack?t.stack.split("\n"):[]).length;e>5==n.e-1&&n.b[n.e-1]==1<<(31&t))for(e=0;r&&e=0&&t=0?new eo(oz,2147483647):new eo(oz,-2147483648)}function eU(n){return(rK(),n<0)?-1!=n?new ro(-1,-n):uC:n<=10?uM[ei(n)]:new ro(1,n)}function eP(n){var t,e,r;return t=~n.l+1&4194303,e=~n.m+(0==t?1:0)&4194303,r=~n.h+(0==t&&0==e?1:0)&1048575,tm(t,e,r)}function eQ(n){var t,e,r;t=~n.l+1&4194303,e=~n.m+(0==t?1:0)&4194303,r=~n.h+(0==t&&0==e?1:0)&1048575,n.l=t,n.m=e,n.h=r}function eT(n){var t,e,r;for(r=0,e=tL(fC,{6:1},13,n.length,0),t=n.length;r=0;--r)if(n[r]!=i[r]){e=0!=n[r]&&rB(ts(e3(n[r]),o3),ts(e3(i[r]),o3));break}}return u=new ti(1,o+1,n),e&&tE(u,t),tW(u),u}(o,e)}function e$(n,t){var e;return n===t||!!nG(t,17)&&(e=tQ(t,17),n.f==e.f&&n.e==e.e&&function(n,t){var e;for(e=n.e-1;e>=0&&n.b[e]==t[e];--e);return e<0}(n,e.b))}function eV(n){var t,e;return 0==n.f?0:(t=n.e<<5,e=n.b[n.e-1],n.f<0&&eg(n)==n.e-1&&(e=~~(e-1)),t-=rH(e))}function eq(n,t,e,r,i){ib(),0!=t&&0!=r&&(1==t?i[r]=rf(i,e,r,n[0]):1==r?i[t]=rf(i,n,t,e[0]):function(n,t,e,r,i){var o,u,f,c;if(nT(n)===nT(t)&&r==i){io(n,r,e);return}for(f=0;f2147483647))return ei(n);throw new nr("Underflow")}function eK(n,t){if(rj(),n<0)throw new no("Digits < 0");if(!t)throw new nf("null RoundingMode");this.b=n,this.c=t}function eW(n){return(rK(),n_(n,oz))?tv(n,oG)?new ri(-1,eP(n)):uC:rB(n,oZ)?new ri(1,n):uM[nx(n)]}function eZ(n){var t;return n_(n,oz)&&(n=tm(4194303&~n.l,4194303&~n.m,1048575&~n.h)),64-(0!=(t=nx(rJ(n,32)))?rH(t):rH(nx(n))+32)}function eX(n,t){var e,r,i;return e=n.l+t.l,r=n.m+t.m+(~~e>>22),i=n.h+t.h+(~~r>>22),tm(4194303&e,4194303&r,1048575&i)}function eY(n,t){var e,r,i;return e=n.l-t.l,r=n.m-t.m+(~~e>>22),i=n.h-t.h+(~~r>>22),tm(4194303&e,4194303&r,1048575&i)}function e1(n,t){var e;if(e=t-1,n.f>0){for(;!n.gb(e);)--e;return t-1-e}for(;n.gb(e);)--e;return t-1-np(e,n.bb())}function e0(n,t){var e;return n===t||!!nG(t,16)&&(e=tQ(t,16)).f==n.f&&(n.b<54?e.g==n.g:n.d.eQ(e.d))}function e2(n,t,e){var r,i,o;for(o=oz,r=t-1;r>=0;--r)i=r0(eX(rL(o,32),ts(e3(n[r]),o3)),e),o=e3(nx(rJ(i,32)));return nx(o)}function e4(n,t){var e,r,i,o;return e=~~t>>5,t&=31,rC(r=tL(fd,{6:1},-1,i=n.e+e+(0==t?0:1),1),n.b,e,t),tW(o=new ti(n.f,i,r)),o}function e3(n){var t,e;return n>-129&&n<128?(t=n+128,null==o8&&(o8=tL(fE,{6:1},2,256,0)),(e=o8[t])||(e=o8[t]=eC(n)),e):eC(n)}function e6(n){var t,e;return(rK(),n>5)+1,1))[t]=1<<(31&n),new ti(1,t+1,e))}function e5(n){rK(),0==n.length?(this.f=0,this.e=1,this.b=tJ(fd,{6:1},-1,[0])):(this.f=1,this.e=n.length,this.b=n,tW(this))}function e9(n){return 0==n.length||n[0]>iV&&n[n.length-1]>iV?n:n.replace(/^(\s*)/,i$).replace(/\s*$/,i$)}function e7(n){return n-=~~n>>1&1431655765,n=(~~(n=(~~n>>2&858993459)+(858993459&n))>>4)+n&252645135,n+=~~n>>8,63&(n+=~~n>>16)}function e8(n,t,e){if(null!=e){var r;if(n.qI>0&&(r=n.qI,!e.cM||!e.cM[r])||n.qI<0&&(e.tM==l||nH(e,1)))throw new $}return n[t]=e}function rn(n,t){return n.f>t.f?1:n.ft.e?n.f:n.e=0;--o)u=eH(u,u,r,i),(e.b[~~o>>5]&1<<(31&o))!=0&&(u=eH(u,t,r,i));return u}(f,r,t,e,o):function(n,t,e,r,i){var o,u,f,c,s,a,h;for(s=tL(f5,{6:1},17,8,0),a=n,e8(s,0,t),h=eH(t,t,r,i),u=1;u<=7;++u)e8(s,u,eH(s[u-1],h,r,i));for(u=e.ab()-1;u>=0;--u)if((e.b[~~u>>5]&1<<(31&u))!=0){for(c=1,o=u,f=u-3>0?u-3:0;f<=u-1;++f)(e.b[~~f>>5]&1<<(31&f))!=0&&(f>1],a,r,i),u=o}else a=eH(a,a,r,i);return a}(f,r,t,e,o),eH(u,(rK(),uS),e,o)}function rs(n,t){var e,r,i,o;for(e=0,r=n.length;e36)throw new nw("Radix out of range");if(0==n.length)throw new nw("Zero length BigInteger");(function(n,t,e){var r,i,o,u,f,c,s,a,h,b,l,g,w,d;for(s=l=t.length,45==t.charCodeAt(0)?(h=-1,b=1,--l):(h=1,b=0),o=~~(l/(u=(iM(),uU)[e])),0!=(d=l%u)&&++o,c=tL(fd,{6:1},-1,o,1),r=uL[e-2],f=0,g=b+(0==d?u:d),w=b;wr)return 1;if(e=0&&n[i]==t[i];--i);return i<0?0:n_(ts(e3(n[i]),o3),ts(e3(t[i]),o3))?-1:1}function rl(n,t){var e,r,i;for(r=tL(fd,{6:1},-1,i=n.e,1),nd(eg(n),eg(t)),e=0;e999999999)throw new nr(oa);return e=n.f*t,0==n.b&&-1!=n.g?eL(e):new tS((n.d||(n.d=eU(n.g)),n.d).db(t),eJ(e))}function rd(n,t){return t<2||t>36?-1:n>=48&&n<48+(t<10?t:10)?n-48:n>=97&&n=65&&n=0;--n)fo[n]=e,e*=.5;for(n=24,t=1;n>=0;--n)fi[n]=t,t*=.5}function r_(){r_=l,uR=tJ(fJ,{6:1},-1,[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])}function rv(n){var t;return 0!=n.c?n.c:n.b<54?(t=r2(n.g),n.c=nx(ts(t,oG)),n.c=33*n.c+nx(ts(rJ(t,32),oG)),n.c=17*n.c+ei(n.f),n.c):(n.c=17*n.d.hC()+ei(n.f),n.c)}function rm(n,t,e,r){var i,o,u,f,c;return o=(c=n/t)>0?Math.floor(c):Math.ceil(c),u=n%t,f=e_(n*t,0),0!=u&&(i=e_((u<=0?0-u:u)*2,t<=0?0-t:t),o+=r8(1&ei(o),f*(5+i),r)),new tr(o,e)}function ry(n,t,e,r,i){var o,u;for(u=0,o=oz;ue;--i)n[i]|=~~t[i-e-1]>>>o,n[i-1]=t[i-e-1]<>5,n.e-=r,!rO(n.b,n.e,n.b,r,31&t)&&i<0){for(e=0;e>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>t.l:!(0==r||n.h>19,r=~~t.h>>19,0==e?0!=r||n.h>t.h||n.h==t.h&&n.m>t.m||n.h==t.h&&n.m==t.m&&n.l>=t.l:!(0==r||n.h-140737488355328&&n<0x800000000000?0==n?0:((t=n<0)&&(n=-n),e=ei(nU(Math.log(n)/.6931471805599453)),(!t||n!=Math.pow(2,e))&&++e,e):eZ(r2(n))}function rE(n,t){var e,r;return(e=n._(),r=t._(),0==e.r())?r:0==r.r()?e:(1==e.e||2==e.e&&e.b[1]>0)&&(1==r.e||2==r.e&&r.b[1]>0)?eW(rN(eA(e),eA(r))):function(n,t){var e,r,i;e=n.bb(),r=t.bb(),rx(n,e),rx(t,r),1==rn(n,t)&&(i=n,n=t,t=i);do{if(1==t.e||2==t.e&&t.b[1]>0){t=eW(rN(eA(n),eA(t)));break}if(t.e>1.2*n.e)0!=(t=rF(t,n)).r()&&rx(t,t.bb());else do tE(t,n),rx(t,t.bb());while(rn(t,n)>=0)i=t,t=n,n=i}while(0!=i.f)return t.eb(e=r?ex(f,i):(rx(c,r-e0&&ex(f,i-r+e)),e+=i),0!=(i=e1(h,u))&&(ex(h,i),r>=e?ex(c,i):(rx(f,e-r0&&ex(c,i-e+r)),r+=i),s.r()==h.r()?e<=r?(rV(s,h),rV(f,c)):(rV(h,s),rV(c,f)):e<=r?(r$(s,h),r$(f,c)):(r$(h,s),r$(c,f)),0==h.r()||0==s.r())throw new nr(ot);return eO(h,r)&&(f=c,h.r()!=s.r()&&(s=s.cb())),s.gb(u)&&(f=0>f.r()?f.cb():is(t,f)),0>f.r()&&(f=iC(f,t)),f}(n,t);for(o=32*t.e,h=eh(t),u=np((b=eh(n)).e,h.e),c=new ti(1,1,tL(fd,{6:1},-1,u+1,1)),(s=new ti(1,1,tL(fd,{6:1},-1,u+1,1))).b[0]=1,e=0,(r=h.bb())>(i=b.bb())?(rx(h,r),rx(b,i),ex(c,i),e+=r-i):(rx(h,r),rx(b,i),ex(s,r),e+=i-r),c.f=1;b.r()>0;){for(;rn(h,b)>0;)tE(h,b),a=h.bb(),rx(h,a),eM(c,s),ex(s,a),e+=a;for(;0>=rn(h,b)&&(tE(b,h),0!=b.r());)a=b.bb(),rx(b,a),eM(s,c),ex(c,a),e+=a}if(!(1==h.e&&1==h.b[0]))throw new nr(ot);return rn(c,t)>=0&&tE(c,t),c=is(t,c),f=ru(t),e>o&&(c=eH(c,(rK(),uS),t,f),e-=o),c=eH(c,e6(o-e),t,f)}(et(n._(),t),t)).f)throw new nr(ot);return n.f<0?is(t,e):e}function rO(n,t,e,r,i){var o,u,f;for(u=0,o=!0;u>>i|e[u+r+1]<>>i,++u}return o}function rD(n,t){var e;return(e=n.f+t.f,0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)?eL(e):n.b+t.b<54?new tr(n.g*t.g,eJ(e)):new tS(en((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d)),eJ(e))}function rk(n,t){var e;if(t<0)throw new nr("Negative exponent");if(0==t)return uS;if(1==t||n.eQ(uS)||n.eQ(uB))return n;if(!n.gb(0)){for(e=1;!n.gb(e);)++e;return en(e6(e*t),n.fb(e).db(t))}return function(n,t){var e,r;for(ib(),rK(),r=uS,e=n;t>1;t>>=1)(1&t)!=0&&(r=en(r,e)),e=1==e.e?en(e,e):new e5(io(e.b,e.e,tL(fd,{6:1},-1,e.e<<1,1)));return en(r,e)}(n,t)}function rL(n,t){var e,r,i;return(t&=63)<22?(e=n.l<>22-t,i=n.h<>22-t):t<44?(e=0,r=n.l<>44-t):(e=0,r=0,i=n.l<>>t,i=~~n.m>>t|e<<22-t,r=~~n.l>>t|n.m<<22-t):t<44?(o=0,i=~~e>>>t-22,r=~~n.m>>t-22|n.h<<44-t):(o=0,i=0,r=~~e>>>t-44),tm(4194303&r,4194303&i,1048575&o)}function rP(n){switch(iB(),n){case 2:return uZ;case 1:return uX;case 3:return uY;case 5:return u1;case 6:return u0;case 4:return u2;case 7:return u4;case 0:return u3;default:throw new no("Invalid rounding mode")}}function rQ(n,t){var e,r,i;if(0==t)return(1&n.b[0])!=0;if(t<0)throw new nr(ob);if((i=~~t>>5)>=n.e)return n.f<0;if(e=n.b[i],t=1<<(31&t),n.f<0){if(i<(r=eg(n)))return!1;e=r==i?-e:~e}return(e&t)!=0}function rT(n){var t,e;return n.e>0||(t=1,e=1,n.b<54?(n.b>=1&&(e=n.g),t+=Math.log(e<=0?0-e:e)*Math.LOG10E):(t+=(n.b-1)*.3010299956639812,0!=ia((n.d||(n.d=eU(n.g)),n.d),iv(t)).r()&&++t),n.e=ei(t)),n.e}function rj(){rj=l,uP=new eK(34,(iB(),u0)),uQ=new eK(7,u0),uT=new eK(16,u0),uj=new eK(0,u2),uF=tJ(fJ,{6:1},-1,[112,114,101,99,105,115,105,111,110,61]),uH=tJ(fJ,{6:1},-1,[114,111,117,110,100,105,110,103,77,111,100,101,61])}function rF(n,t){var e,r,i,o;if(0==t.f)throw new nr(on);return((o=n.e)!=(e=t.e)?o>e?1:-1:eN(n.b,t.b,o))==-1?n:(r=tL(fd,{6:1},-1,e,1),1==e?r[0]=e2(n.b,o,t.b[0]):r=ik(null,o-e+1,n.b,o,t.b,e),tW(i=new ti(n.f,e,r)),i)}function rH(n){var t,e,r;return n<0?0:0==n?32:(e=16-(t=~~(r=-(~~n>>16))>>16&16)+(t=~~(r=(n=~~n>>t)-256)>>16&8),n<<=t,e+=t=~~(r=n-4096)>>16&4,n<<=t,e+=t=~~(r=n-16384)>>16&2,n<<=t,e+2-(t=(r=~~n>>14)&~(~~r>>1)))}function r$(n,t){if(0==n.f)ix(t.b,0,n.b,0,t.e);else{if(0==t.f)return;n.f==t.f?ih(n.b,n.b,n.e,t.b,t.e):rb(n.b,t.b,n.e,t.e)>0?ry(n.b,n.b,n.e,t.b,t.e):(r5(n.b,n.b,n.e,t.b,t.e),n.f=-n.f)}n.e=np(n.e,t.e)+1,tW(n),n.c=-2}function rV(n,t){var e;e=rn(n,t),0==n.f?(ix(t.b,0,n.b,0,t.e),n.f=-t.f):n.f!=t.f?(ih(n.b,n.b,n.e,t.b,t.e),n.f=e):rb(n.b,t.b,n.e,t.e)>0?ry(n.b,n.b,n.e,t.b,t.e):(r5(n.b,n.b,n.e,t.b,t.e),n.f=-n.f),n.e=np(n.e,t.e)+1,tW(n),n.c=-2}function rq(n,t,e){var r,i,o,u,f,c,s,a,h,b;if(e.f<=0)throw new nr(oe);return(r=n,(1==e.e&&1==e.b[0])|t.f>0&0==r.f)?uB:0==r.f&&0==t.f?uS:(t.f<0&&(r=rR(n,e),t=t.cb()),i=e.gb(0)?rc(r._(),t,e):(o=r._(),u=t,f=e.bb(),a=rc(o,u,c=e.fb(f)),h=function(n,t,e){var r,i,o,u,f;for(rK(),u=uS,i=eh(t),r=eh(n),n.gb(0)&&eB(i,e-1),eB(r,e),o=i.ab()-1;o>=0;--o)eB(f=eh(u),e),u=en(u,f),(i.b[~~o>>5]&1<<(31&o))!=0&&eB(u=en(u,r),e);return eB(u,e),u}(o,u,f),s=function(n,t){var e,r,i,o;for(e=1,(r=new e5(tL(fd,{6:1},-1,1<>5]&1<<(31&o))!=0&&(r.b[~~e>>5]|=1<<(31&e));return r}(c,f),eB(b=en(is(h,a),s),f),b.f<0&&(b=iC(b,e6(f))),iC(a,en(c,b))),r.f<0&&t.gb(0)&&(i=et(en(is(e,uS),i),e)),i)}function rG(n,t){var e,r,i,o,u,f,c;if(i=eg(n),(r=eg(t))>=n.e)return rK(),uB;for(u=tL(fd,{6:1},-1,f=n.e,1),(e=i>r?i:r)==r&&(u[e]=-t.b[e]&n.b[e],++e),o=nd(t.e,n.e);e=t.e)for(;e0?t:0):t>=0?n.b<54?new tr(n.g,eJ(t)):new tS((n.d||(n.d=eU(n.g)),n.d),eJ(t)):-t>t,o=~~n.m>>t|e<<22-t,i=~~n.l>>t|n.m<<22-t):t<44?(u=r?1048575:0,o=~~e>>t-22,i=~~n.m>>t-22|e<<44-t):(u=r?1048575:0,o=r?4194303:0,i=~~e>>t-44),tm(4194303&i,4194303&o,1048575&u)}function rK(){var n;for(n=0,rK=l,uS=new t$(1,1),ux=new t$(1,10),uB=new t$(0,0),uC=new t$(-1,1),uM=tJ(f5,{6:1},17,[uB,uS,new t$(1,2),new t$(1,3),new t$(1,4),new t$(1,5),new t$(1,6),new t$(1,7),new t$(1,8),new t$(1,9),ux]),uA=tL(f5,{6:1},17,32,0);n=t.e)return t;if(r>=n.e)return n;if(o=tL(fd,{6:1},-1,u=nd(n.e,t.e),1),r==i)o[i]=-(-n.b[i]|-t.b[i]),e=i;else{for(e=r;e>5,t&=31,r>=n.e)return n.f<0?(rK(),uC):(rK(),uB);if(rO(i=tL(fd,{6:1},-1,(o=n.e-r)+1,1),o,n.b,r,t),n.f<0){for(e=0;e0&&n.b[e]<<32-t!=0){for(e=0;e0?r=0)return n;return 0!=e?e>0?rS(n,t,e):rS(t,n,-e):np(n.b,t.b)+1<54?new tr(n.g+t.g,n.f):new tM(iC((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d)),n.f)}function r0(n,t){var e,r,i,o,u;return(r=ts(e3(t),o3),rA(n,oz))?(o=iN(n,r,!1),u=n3(n,r)):(o=iN(e=rU(n,1),i=e3(~~t>>>1),!1),u=eX(rL(u=n3(e,i),1),ts(n,oJ)),(1&t)!=0&&(rB(o,u)?rB(eY(o,u),r)?(u=eX(u,eY(rL(r,1),o)),o=eY(o,oK)):(u=eX(u,eY(r,o)),o=eY(o,oJ)):u=eY(u,o))),ta(rL(u,32),ts(o,o3))}function r2(n){var t,e,r,i;return isNaN(n)?(eS(),uf):n<-0x8000000000000000?(eS(),uo):n>=0x7fffffffffffffff?(eS(),ui):(r=!1,n<0&&(r=!0,n=-n),e=0,n>=17592186044416&&(e=ei(n/17592186044416),n-=17592186044416*e),t=0,n>=4194304&&(t=ei(n/4194304),n-=4194304*t),i=tm(ei(n),t,e),r&&eQ(i),i)}function r4(n){var t,e,r,i;if(0==n.l&&0==n.m&&0==n.h)return iK;if(524288==n.h&&0==n.m&&0==n.l)return"-9223372036854775808";if(~~n.h>>19!=0)return iz+r4(eP(n));for(e=n,r=i$;!(0==e.l&&0==e.m&&0==e.h);){if(e=iN(e,e3(1e9),!0),t=i$+nx(o7),!(0==e.l&&0==e.m&&0==e.h))for(i=9-t.length;i>0;--i)t=iK+t;r=t+r}return r}function r3(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_,v,m,y,C,S,M,x;if(0==(i=t.f))throw new nr(on);return(r=t.e,e=t.b,1==r)?(l=e[0],(S=n.b,M=n.e,x=n.f,1==M)?(d=iN(g=ts(e3(S[0]),o3),w=ts(e3(l),o3),!1),v=n3(g,w),x!=i&&(d=eP(d)),x<0&&(v=eP(v)),tJ(f5,{6:1},17,[eW(d),eW(v)])):(_=tL(fd,{6:1},-1,M,1),m=tJ(fd,{6:1},-1,[ir(_,S,M,l)]),y=new ti(x==i?1:-1,M,_),C=new ti(x,1,m),tW(y),tW(C),tJ(f5,{6:1},17,[y,C]))):(a=n.b,((h=n.e)!=r?h>r?1:-1:eN(a,e,h))<0)?tJ(f5,{6:1},17,[uB,n]):(b=n.f,f=ik(o=tL(fd,{6:1},-1,u=h-r+1,1),u,a,h,e,r),c=new ti(b==i?1:-1,u,o),s=new ti(b,r,f),tW(c),tW(s),tJ(f5,{6:1},17,[c,s]))}function r6(n){var t;if(0==n.f||0==n.b&&-1!=n.g)return n.d||(n.d=eU(n.g)),n.d;if(n.f<0)return en((n.d||(n.d=eU(n.g)),n.d),iv(-n.f));if(n.f>(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)||n.f>(n.d||(n.d=eU(n.g)),n.d).bb()||0!=(t=r3((n.d||(n.d=eU(n.g)),n.d),iv(n.f)))[1].r())throw new nr(ol);return t[0]}function r5(n,t,e,r,i){var o,u;if(o=oz,e36)throw new nw("radix "+t+" out of range");for(e=(r=n.length)>0&&45==n.charCodeAt(0)?1:0;e2147483647)throw new nw(oc+n+iq);return i}function r7(n){var t,e;if(0==n.f)return rK(),uC;if(e$(n,(rK(),uC)))return uB;if(e=tL(fd,{6:1},-1,n.e+1,1),n.f>0){if(-1!=n.b[n.e-1])for(t=0;-1==n.b[t];++t);else{for(t=0;t0?0==t?0:t<0?-1:1:0;break;case 3:r=(0==t?0:t<0?-1:1)<0?0==t?0:t<0?-1:1:0;break;case 4:(t<0?-t:t)>=5&&(r=0==t?0:t<0?-1:1);break;case 5:(t<0?-t:t)>5&&(r=0==t?0:t<0?-1:1);break;case 6:(t<0?-t:t)+n>5&&(r=0==t?0:t<0?-1:1)}return r}function it(n,t){var e,r,i,o,u,f,c,s;if(c=0==n.f?1:n.f,u=tL(fd,{6:1},-1,f=np((o=~~t>>5)+1,n.e)+1,1),e=1<<(31&t),ix(n.b,0,u,0,n.e),n.f<0){if(o>=n.e)u[o]=e;else if(o>(r=eg(n)))u[o]^=e;else if(o=0||0==s.f||1==s.e&&1==s.b[0])if(!(1==(a=rq(s,f,n)).e&&1==a.b[0]||a.eQ(u))){for(i=1;i=0;--f)rA(a=ta(rL(s,32),ts(e3(t[f]),o3)),oz)?(c=iN(a,o,!1),s=n3(a,o)):(c=iN(i=rU(a,1),u=e3(~~r>>>1),!1),s=eX(rL(s=n3(i,u),1),ts(a,oJ)),(1&r)!=0&&(rB(c,s)?rB(eY(c,s),o)?(s=eX(s,eY(rL(o,1),c)),c=eY(c,oK)):(s=eX(s,eY(o,c)),c=eY(c,oJ)):s=eY(s,c))),n[f]=nx(ts(c,o3));return nx(s)}function ii(n,t){var e,r,i,o,u,f,c;if(u=tL(fd,{6:1},-1,f=np(n.e,t.e),1),i=eg(n),e=r=eg(t),i==r)u[r]=-n.b[r]^-t.b[r];else{for(u[r]=-t.b[r],o=nd(t.e,i),++e;et.g?1:0:(r=n.f-t.f,(e=(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)-(t.e>0?t.e:nU((t.b-1)*.3010299956639812)+1))>r+1)?i:e0&&(u=en(u,iv(r))),rn(o,u))}function ic(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g;if(o=t.b,!((n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)-o<0||0==o||(r=n.q()-o)<=0)){if(n.b<54){c=n,l=r2(ub[r]),b=eY(r2(c.f),e3(r)),h=iN(g=r2(c.g),l,!1),tv(a=n3(g,l),oz)&&(s=t_(eY(rL(n_(a,oz)?eP(a):a,1),l),oz)?0:n_(eY(rL(n_(a,oz)?eP(a):a,1),l),oz)?-1:1,h=eX(h,e3(r8(1&nx(h),(t_(a,oz)?0:n_(a,oz)?-1:1)*(5+s),t.c))),n8(rr(n_(h,oz)?eP(h):h))>=t.b&&(h=nP(h,oZ),b=eY(b,oJ))),c.f=eJ(rr(b)),c.e=t.b,c.g=rr(h),c.b=eZ(h),c.d=null;return}f=iv(r),i=r3((n.d||(n.d=eU(n.g)),n.d),f),u=n.f-r,0!=i[1].r()&&(e=rn(eF(i[1]._()),f),0!=(e=r8(i[0].gb(0)?1:0,i[1].r()*(5+e),t.c))&&e8(i,0,iC(i[0],eW(e3(e)))),new nk(i[0]).q()>o&&(e8(i,0,ia(i[0],(rK(),ux))),--u)),n.f=eJ(u),n.e=o,tR(n,i[0])}}function is(n,t){var e,r,i,o,u,f,c,s,a,h;if(u=n.f,0==(c=t.f))return n;if(0==u)return t.cb();if((o=n.e)+(f=t.e)==2)return e=ts(e3(n.b[0]),o3),r=ts(e3(t.b[0]),o3),u<0&&(e=eP(e)),c<0&&(r=eP(r)),eW(eY(e,r));if(-1==(i=o!=f?o>f?1:-1:eN(n.b,t.b,o)))h=-c,a=u==c?tz(t.b,f,n.b,o):t3(t.b,f,n.b,o);else if(h=u,u==c){if(0==i)return rK(),uB;a=tz(n.b,o,t.b,f)}else a=t3(n.b,o,t.b,f);return tW(s=new ti(h,a.length,a)),s}function ia(n,t){var e,r,i,o,u,f,c,s,a;if(0==t.f)throw new nr(on);return(i=t.f,1==t.e&&1==t.b[0])?t.f>0?n:n.cb():(s=n.f,(c=n.e)+(r=t.e)==2)?(a=nP(ts(e3(n.b[0]),o3),ts(e3(t.b[0]),o3)),s!=i&&(a=eP(a)),eW(a)):0==(e=c!=r?c>r?1:-1:eN(n.b,t.b,c))?s==i?uS:uC:-1==e?uB:(o=tL(fd,{6:1},-1,u=c-r+1,1),1==r?ir(o,n.b,c,t.b[0]):ik(o,u,n.b,c,t.b,r),tW(f=new ti(s==i?1:-1,u,o)),f)}function ih(n,t,e,r,i){var o,u;if(o=eX(ts(e3(t[0]),o3),ts(e3(r[0]),o3)),n[0]=nx(o),o=rJ(o,32),e>=i){for(u=1;u0){if(i0?u=tP(u,ei(i)):i<0&&(o=tP(o,ei(-i))),iw(o,u,e,r)}function ig(n,t){var e,r,i,o,u,f,c;if(r=eg(t),(i=eg(n))>=t.e)return t;if(u=tL(fd,{6:1},-1,f=t.e,1),rt.ab()?(c=eA(s),o=eA(t),i=t_(eY(rL(n_(c,oz)?eP(c):c,1),n_(o,oz)?eP(o):o),oz)?0:n_(eY(rL(n_(c,oz)?eP(c):c,1),n_(o,oz)?eP(o):o),oz)?-1:1,i=r8(f.gb(0)?1:0,a*(5+i),r)):(i=rn(eF(s._()),t._()),i=r8(f.gb(0)?1:0,a*(5+i),r)),0!=i){if(54>f.ab())return ek(eX(eA(f),e3(i)),e);f=iC(f,eW(e3(i)))}return new tS(f,e)}function id(n){var t,e,r,i,o,u;return null!=n.i?n.i:n.b<32?(n.i=function(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_,v;if(iM(),(u=n_(n,oz))&&(n=eP(n)),t_(n,oz))switch(t){case 0:return iK;case 1:return iZ;case 2:return iX;case 3:return iY;case 4:return i1;case 5:return i0;case 6:return i2;default:return s=new K,t<0?s.b.b+=i3:s.b.b+=i4,b=s.b,b.b+=-2147483648==t?"2147483648":i$+-t,s.b.b}c=tL(fJ,{6:1},-1,19,1),e=18,h=n;do f=h,h=nP(h,oZ),c[--e]=65535&nx(eX(o1,eY(f,iE(h,oZ))));while(tv(h,oz))if(r=eY(eY(eY(oY,e3(e)),e3(t)),oJ),0==t)return u&&(c[--e]=45),tU(c,e,18-e);if(t>0&&rA(r,oq)){if(rA(r,oz)){for(o=17,i=e+nx(r);o>=i;--o)c[o+1]=c[o];return c[++i]=46,u&&(c[--e]=45),tU(c,e,18-e+1)}for(o=2;n_(e3(o),eX(eP(r),oJ));++o)c[--e]=48;return c[--e]=46,c[--e]=48,u&&(c[--e]=45),tU(c,e,18-e)}return(a=e+1,s=new W,u&&(s.b.b+=iz),18-a>=1)?(tI(s,c[e]),s.b.b+=iJ,l=s.b,g=tU(c,e+1,18-e-1),l.b+=g):(w=s.b,d=tU(c,e,18-e),w.b+=d),s.b.b+=of,rB(r,oz)&&(s.b.b+=iG),_=s.b,v=i$+r4(r),_.b+=v,s.b.b}(r2(n.g),ei(n.f)),n.i):(i=ij((n.d||(n.d=eU(n.g)),n.d),0),0==n.f)?i:(t=0>(n.d||(n.d=eU(n.g)),n.d).r()?2:1,e=i.length,r=-n.f+e-t,u=(o=new K).b,u.b+=i,n.f>0&&r>=-6?r>=0?n9(o,e-ei(n.f),iJ):(tt(o.b,t-1,t-1,iW),n9(o,t+1,tU(us,0,-ei(r)-1))):(e-t>=1&&(tt(o.b,t,t,iJ),++e),tt(o.b,e,e,of),r>0&&n9(o,++e,iG),n9(o,++e,i$+r4(r2(r)))),n.i=o.b.b,n.i)}function ip(n,t){var e,r,i,o,u,f;if(i=eg(n),o=eg(t),i>=t.e)return n;if(r=o>i?o:i,0==(e=o>i?-t.b[r]&~n.b[r]:o0){i[o]=u;break}i[o]=u.substring(0,c.index),u=u.substring(c.index+c[0].length,u.length),r.lastIndex=0,f==u&&(i[o]=u.substring(0,1),u=u.substring(1)),f=u,o++}if(0==e&&n.length>0){for(var s=i.length;s>0&&i[s-1]==i$;)--s;s1e6)throw new nr("power of ten too big");if(n<=2147483647)return u$[1].db(t).eb(t);for(i=r=u$[1].db(2147483647),e=r2(n-2147483647),t=ei(n%2147483647);rB(e,o4);)i=en(i,r),e=eY(e,o4);for(i=(i=en(i,u$[1].db(t))).eb(2147483647),e=r2(n-2147483647);rB(e,o4);)i=i.eb(2147483647),e=eY(e,o4);return i.eb(t)}function im(){var n,t;f&&rM("com.iriscouch.gwtapp.client.BigDecimalApp"),nW(new J),nX(new T),nZ(new j),tD(new F),f&&rM("com.google.gwt.user.client.UserAgentAsserter"),n=-1!=(t=r.userAgent.toLowerCase()).indexOf(oQ)?oQ:-1!=t.indexOf("webkit")||function(){if(-1!=t.indexOf("chromeframe"))return!0;if(typeof e.ActiveXObject!=oH)try{var n=new ActiveXObject("ChromeTab.ChromeFrame");if(n)return n.registerBhoIfNeeded(),!0}catch(r){}return!1}()?oj:-1!=t.indexOf(oO)&&u.documentMode>=9?"ie9":-1!=t.indexOf(oO)&&u.documentMode>=8?"ie8":!function(){var n=/msie ([0-9]+)\.([0-9]+)/.exec(t);if(n&&3==n.length)return 1e3*parseInt(n[1])+parseInt(n[2])>=6e3}()?-1!=t.indexOf("gecko")?"gecko1_8":"unknown":"ie6",tj(oj,n)||o.alert("ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (safari) does not match the runtime user.agent value ("+n+"). Expect more errors.\n"),f&&rM("com.google.gwt.user.client.DocumentModeAsserter"),function(){var n,t,e;for(e=0,t=u.compatMode,n=tJ(fN,{6:1},1,[oi]);e>5,this.b=tL(fd,{6:1},-1,this.e,1);u=2147483648&&(r-=4294967296),r));this.b[this.e-1]>>>=31&-n,tW(this)}}function iC(n,t){var e,r,i,o,u,f,c,s,a,h,b,l;if(u=n.f,c=t.f,0==u)return t;if(0==c)return n;if((o=n.e)+(f=t.e)==2)return(e=ts(e3(n.b[0]),o3),r=ts(e3(t.b[0]),o3),u==c)?(l=nx(s=eX(e,r)),0==(b=nx(rU(s,32)))?new t$(u,l):new ti(u,2,tJ(fd,{6:1},-1,[l,b]))):eW(u<0?eY(r,e):eY(e,r));if(u==c)h=u,a=o>=f?t3(n.b,o,t.b,f):t3(t.b,f,n.b,o);else{if(0==(i=o!=f?o>f?1:-1:eN(n.b,t.b,o)))return rK(),uB;1==i?(h=u,a=tz(n.b,o,t.b,f)):(h=c,a=tz(t.b,f,n.b,o))}return tW(s=new ti(h,a.length,a)),s}function iS(n){var t,e,r,i;if(rj(),null==n)throw new nf("null string");if((t=t6(n)).length<27||t.length>45)throw new no(oM);for(r=0;rft.length)throw new V;if(o=null,i=null,67==r[0]?(i=uZ,o=u6):68==r[0]?(i=uX,o=u5):70==r[0]?(i=uY,o=u9):72==r[0]?e>6&&(68==r[5]?(i=u1,o=u7):69==r[5]?(i=u0,o=u8):85==r[5]&&(i=u2,o=fn)):85==r[0]&&(80==r[1]?(i=u3,o=fe):78==r[1]&&(i=u4,o=ft)),i&&e==o.length){for(t=1;tl||r+i>s)throw new q;if(((1&h.c)==0||(4&h.c)!=0)&&b!=c){if(a=tQ(n,11),o=tQ(e,11),nT(n)===nT(e)&&tr;)e8(o,f,a[--t]);else for(f=r+i;ra.r()&&(s=s.cb()),c=eJ(e+(o>u?o:u)),s=(i=o-u)>0?(ib(),i>19!=0&&(t=eP(t),c=!0),u=((b=(a=t).l)&b-1)!=0||((l=a.m)&l-1)!=0||((h=a.h)&h-1)!=0||0==h&&0==l&&0==b?-1:0==h&&0==l&&0!=b?ec(b):0==h&&0!=l&&0==b?ec(l)+22:0!=h&&0==l&&0==b?ec(h)+44:-1,o=!1,i=!1,r=!1,524288==n.h&&0==n.m&&0==n.l){if(i=!0,o=!0,-1!=u)return f=rJ(n,u),c&&eQ(f),e&&(o7=tm(0,0,0)),f;n=nQ((eS(),ui)),r=!0,c=!c}else~~n.h>>19!=0&&(o=!0,n=eP(n),r=!0,c=!c);return -1!=u?(g=n,w=c,d=o,_=rJ(g,u),w&&eQ(_),e&&(v=g,u<=22?(m=v.l&(1<=0&&((w=(b=n).h-u.h)<0||(l=b.l-u.l,(w+=~~(g=b.m-u.m+(~~l>>22))>>22)<0||(b.l=4194303&l,b.m=4194303&g,b.h=1048575&w,0))||(c<22?f.l|=1<>>1,u.m=~~a>>>1|(1&h)<<21,u.l=~~s>>>1|(1&a)<<21,--c;return e&&eQ(f),o&&(r?(o7=eP(n),i&&(o7=eY(o7,(eS(),uu)))):o7=tm(n.l,n.m,n.h)),f}(r?n:tm(n.l,n.m,n.h),t,c,o,i,e):(e&&(o7=o?eP(n):tm(n.l,n.m,n.h)),tm(0,0,0))}function iI(n){var t=[];for(var e in n){var r=typeof n[e];r!=oP?t[t.length]=r:n[e]instanceof Array?t[t.length]=oS:o&&o.bigdecimal&&o.bigdecimal.BigInteger&&n[e]instanceof o.bigdecimal.BigInteger?t[t.length]=i8:o&&o.bigdecimal&&o.bigdecimal.BigDecimal&&n[e]instanceof o.bigdecimal.BigDecimal?t[t.length]=i5:o&&o.bigdecimal&&o.bigdecimal.RoundingMode&&n[e]instanceof o.bigdecimal.RoundingMode?t[t.length]=og:o&&o.bigdecimal&&o.bigdecimal.MathContext&&n[e]instanceof o.bigdecimal.MathContext?t[t.length]=oh:t[t.length]=oP}return t.join(iV)}function iE(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_,v,m;return e=8191&n.l,r=~~n.l>>13|(15&n.m)<<9,i=~~n.m>>4&8191,o=~~n.m>>17|(255&n.h)<<5,u=~~(1048320&n.h)>>8,f=8191&t.l,c=~~t.l>>13|(15&t.m)<<9,s=~~t.m>>4&8191,a=~~t.m>>17|(255&t.h)<<5,h=~~(1048320&t.h)>>8,w=e*f,d=r*f,_=i*f,v=o*f,m=u*f,0!=c&&(d+=e*c,_+=r*c,v+=i*c,m+=o*c),0!=s&&(_+=e*s,v+=r*s,m+=i*s),0!=a&&(v+=e*a,m+=r*a),0!=h&&(m+=e*h),b=(4194303&w)+((511&d)<<13),l=(~~w>>22)+(~~d>>9)+((262143&_)<<4)+((31&v)<<17),g=(~~_>>18)+(~~v>>5)+((4095&m)<<8),l+=~~b>>22,b&=4194303,g+=~~l>>22,tm(b,l&=4194303,g&=1048575)}function iR(n,t,e){var r,i,o,u,f,c,s,a;if(a=rr(eX(e3(e.b),oK))+(t.e>0?t.e:nU((t.b-1)*.3010299956639812)+1)-(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1),c=i=n.f-t.f,o=1,f=uv.length-1,s=tJ(f5,{6:1},17,[(n.d||(n.d=eU(n.g)),n.d)]),0==e.b||0==n.b&&-1!=n.g||0==t.b&&-1!=t.g)return iA(n,t);if(a>0&&(e8(s,0,en((n.d||(n.d=eU(n.g)),n.d),iv(a))),c+=a),u=(s=r3(s[0],(t.d||(t.d=eU(t.g)),t.d)))[0],0!=s[1].r())r=rn(eF(s[1]),(t.d||(t.d=eU(t.g)),t.d)),u=iC(en(u,(rK(),ux)),eW(e3(s[0].r()*(5+r)))),++c;else for(;!u.gb(0);)if(0==(s=r3(u,uv[o]))[1].r()&&c-o>=i)c-=o,o=0)return n;return 0==e?np(n.b,t.b)+1<54?new tr(n.g-t.g,n.f):new tM(is((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d)),n.f):e>0?e0?t.e:nU((t.b-1)*.3010299956639812)+1)+o>(n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)+1||0==n.b&&-1!=n.g)rK(),r=uB;else if(0==o)r=ia((n.d||(n.d=eU(n.g)),n.d),(t.d||(t.d=eU(t.g)),t.d));else if(o>0)u=iv(o),r=ia((n.d||(n.d=eU(n.g)),n.d),en((t.d||(t.d=eU(t.g)),t.d),u)),r=en(r,u);else{for(u=iv(-o),r=ia(en((n.d||(n.d=eU(n.g)),n.d),u),(t.d||(t.d=eU(t.g)),t.d));!r.gb(0);)if(0==(f=r3(r,uv[e]))[1].r()&&c-e>=o)c-=e,e=0;){if(w[h]==c)s=-1;else if(s=nx(m=r0(eX(rL(ts(e3(w[h]),o3),32),ts(e3(w[h-1]),o3)),c)),v=nx(rJ(m,32)),0!=s){_=!1,++s;do{if(--s,_)break;l=iE(ts(e3(s),o3),ts(e3(d[o-2]),o3)),y=eX(rL(e3(v),32),ts(e3(w[h-2]),o3)),32>rH(nx(rU(g=eX(ts(e3(v),o3),ts(e3(c),o3)),32)))?_=!0:v=nx(g)}while(rB(th(l,o$),th(y,o$)))}if(0!=s&&0!=function(n,t,e,r,i){var o,u,f;for(f=0,o=oz,u=oz;f0)e8(b,0,ia((n.d||(n.d=eU(n.g)),n.d),en((t.d||(t.d=eU(t.g)),t.d),iv(o)))),h=o<(a-l+1>0?a-l+1:0)?o:a-l+1>0?a-l+1:0,e8(b,0,en(b[0],iv(h)));else if(u=-o<(a-i>0?a-i:0)?-o:a-i>0?a-i:0,b=r3(en((n.d||(n.d=eU(n.g)),n.d),iv(u)),(t.d||(t.d=eU(t.g)),t.d)),h+=u,u=-h,0!=b[1].r()&&u>0&&(0==(r=new nk(b[1]).q()+u-t.q())&&(e8(b,1,ia(en(b[1],iv(u)),(t.d||(t.d=eU(t.g)),t.d))),r=(d=b[1].r())<0?-d:d),r>0))throw new nr(ou);if(0==b[0].r())return eL(o);for(w=b[0],g=(c=new nk(b[0])).q(),f=1;!w.gb(0);)if(0==(b=r3(w,uv[f]))[1].r()&&(g-f>=a||h-f>=o))g-=f,h-=f,fa)throw new nr(ou);return c.f=eJ(h),tR(c,w),c}function iT(){var n;for(n=0,iT=l,uz=tJ(fd,{6:1},-1,[0,0,1854,1233,927,747,627,543,480,431,393,361,335,314,295,279,265,253,242,232,223,216,181,169,158,150,145,140,136,132,127,123,119,114,110,105,101,96,92,87,83,78,73,69,64,59,54,49,44,38,32,26,1]),uJ=tL(f5,{6:1},17,(uK=tJ(fd,{6:1},-1,[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021])).length,0);n=0;--c)w=function(n){var t,e,r;return rA(n,oz)?(e=nP(n,o2),r=n3(n,o2)):(e=nP(t=rU(n,1),o0),r=eX(rL(r=n3(t,o0),1),ts(n,oJ))),ta(rL(r,32),ts(e,o3))}(eX(rL(y,32),ts(e3(M[c]),o3))),M[c]=nx(w),y=e3(nx(rJ(w,32)));d=nx(y),g=e;do v[--e]=48+d%10&65535;while(0!=(d=~~(d/10))&&0!=e)for(f=0,r=9-g+e;f0;++f)v[--e]=48;for(a=x-1;0==M[a];--a)if(0==a)break n;x=a+1}for(;48==v[e];)++e}if(h=C<0,o=_-e-t-1,0==t)return h&&(v[--e]=45),tU(v,e,_-e);if(t>0&&o>=-6){if(o>=0){for(s=e+o,a=_-1;a>=s;--a)v[a+1]=v[a];return v[++s]=46,h&&(v[--e]=45),tU(v,e,_-e+1)}for(a=2;a<-o+1;++a)v[--e]=48;return v[--e]=46,v[--e]=48,h&&(v[--e]=45),tU(v,e,_-e)}return(S=e+1,m=new W,h&&(m.b.b+=iz),_-S>=1)?(tI(m,v[e]),m.b.b+=iJ,N=m.b,I=tU(v,e+1,_-e-1),N.b+=I):(E=m.b,R=tU(v,e,_-e),E.b+=R),m.b.b+=of,o>0&&(m.b.b+=iG),O=m.b,O.b+=i$+o,m.b.b}f&&f({moduleName:"gwtapp",sessionId:c,subSystem:"startup",evtGroup:"moduleStartup",millis:new Date().getTime(),type:"moduleEvalStart"});var iF,iH,i$="",iV=" ",iq='"',iG="+",iz="-",iJ=".",iK="0",iW="0.",iZ="0.0",iX="0.00",iY="0.000",i1="0.0000",i0="0.00000",i2="0.000000",i4="0E",i3="0E+",i6=":",i5="BigDecimal",i9="BigDecimal MathContext",i7="BigDecimal;",i8="BigInteger",on="BigInteger divide by zero",ot="BigInteger not invertible.",oe="BigInteger: modulus not positive",or="BigInteger;",oi="CSS1Compat",oo="Division by zero",ou="Division impossible",of="E",oc='For input string: "',os="Infinite or NaN",oa="Invalid Operation",oh="MathContext",ob="Negative bit address",ol="Rounding necessary",og="RoundingMode",ow="RoundingMode;",od="String",op="[Lcom.iriscouch.gwtapp.client.",o_="[Ljava.lang.",ov="[Ljava.math.",om="\\.",oy="__gwtex_wrap",oC="anonymous",oS="array",oM="bad string format",ox="bigdecimal",oB="com.google.gwt.core.client.",oA="com.google.gwt.core.client.impl.",oN="com.iriscouch.gwtapp.client.",oI="java.lang.",oE="java.math.",oR="java.util.",oO="msie",oD="null",ok="number",oL="number MathContext",oU="number number",oP="object",oQ="opera",oT="org.timepedia.exporter.client.",oj="safari",oF="string",oH="undefined",o$={l:0,m:0,h:524288},oV={l:0,m:4193280,h:1048575},oq={l:4194298,m:4194303,h:1048575},oG={l:4194303,m:4194303,h:1048575},oz={l:0,m:0,h:0},oJ={l:1,m:0,h:0},oK={l:2,m:0,h:0},oW={l:5,m:0,h:0},oZ={l:10,m:0,h:0},oX={l:11,m:0,h:0},oY={l:18,m:0,h:0},o1={l:48,m:0,h:0},o0={l:877824,m:119,h:0},o2={l:1755648,m:238,h:0},o4={l:4194303,m:511,h:0},o3={l:4194303,m:1023,h:0},o6={l:0,m:1024,h:0};(iH=s.prototype={}).eQ=function(n){return this===n},iH.gC=function(){return fc},iH.hC=function(){return nj(this)},iH.tS=function(){return this.gC().d+"@"+function(n){var t,e;if(t=tL(fJ,{6:1},-1,8,1),r_(),e=7,n>=0)for(;n>15;)t[e--]=uR[15&n],n>>=4;else for(;e>0;)t[e--]=uR[15&n],n>>=4;return t[e]=uR[15&n],t4(t,e,8)}(this.hC())},iH.toString=function(){return this.tS()},iH.tM=l,iH.cM={},(iH=a.prototype=new s).gC=function(){return fa},iH.j=function(){return this.f},iH.tS=function(){var n,t;return n=this.gC().d,null!=(t=this.j())?n+": "+t:n},iH.cM={6:1,15:1},iH.f=null,(iH=h.prototype=new a).gC=function(){return fh},iH.cM={6:1,15:1},(iH=ne.prototype=b.prototype=new h).gC=function(){return fb},iH.cM={6:1,12:1,15:1},(iH=n1.prototype=(function(){}).prototype=new b).gC=function(){return fl},iH.j=function(){var n,t,e,r,i;return null==this.d&&(this.e=null==(e=this.c)?oD:tn(e)?null==(r=t9(e))?null:r.name:nG(e,1)?od:(nF(e)?e.gC():fg).d,this.b=tn(n=this.c)?null==(i=t9(n))?null:i.message:n+i$,this.d="("+this.e+"): "+this.b+(tn(t=this.c)?function(n){var t=i$;try{for(var e in n)if("name"!=e&&"message"!=e&&"toString"!=e)try{t+="\n "+e+": "+n[e]}catch(r){}}catch(i){}return t}(t9(t)):i$)),this.d},iH.cM={6:1,12:1,15:1},iH.b=null,iH.c=null,iH.d=null,iH.e=null,(iH=g.prototype=new s).gC=function(){return fw};var o5=0,o9=0;(iH=w.prototype=(function(){}).prototype=new g).gC=function(){return fv},iH.b=null,iH.c=null,(iH=d.prototype=_.prototype=new s).k=function(){for(var n={},t=[],e=arguments.callee.caller.caller;e;){var r,i,o=this.n(e.toString());t.push(o);var u=i6+o,f=n[u];if(f){for(r=0,i=f.length;r0?i:oC},iH.gC=function(){return fm},iH.o=function(n){return[]},(iH=v.prototype=new _).k=function(){return tl(this.o(tw()),this.p())},iH.gC=function(){return fS},iH.o=function(n){return eR(this,n)},iH.p=function(){return 2},(iH=m.prototype=(function(){}).prototype=new v).k=function(){return es(this)},iH.n=function(n){var t,e;return 0==n.length||(0==(e=e9(n)).indexOf("at ")&&(e=n7(e,3)),-1==(t=e.indexOf("["))&&(t=e.indexOf("(")),-1==t)?oC:(-1!=(t=(e=e9(e.substr(0,t-0))).indexOf("."))&&(e=n7(e,t+1)),e.length>0?e:oC)},iH.gC=function(){return fM},iH.o=function(n){return t2(this,n)},iH.p=function(){return 3},(iH=y.prototype=new s).gC=function(){return fx},(iH=C.prototype=(function(){}).prototype=new y).gC=function(){return fB},iH.b=i$,(iH=S.prototype=(function(){}).prototype=new s).gC=function(){return this.aC},iH.aC=null,iH.qI=0;var o7=null,o8=null;(iH=M.prototype=(function(){}).prototype=new s).gC=function(){return fI},iH.cM={2:1},(iH=x.prototype=new s).gC=function(){return fR},iH.cM={6:1,10:1};var un=null;(iH=eo.prototype=tr.prototype=tM.prototype=tA.prototype=Z.prototype=ep.prototype=eu.prototype=tB.prototype=tx.prototype=ez.prototype=n2.prototype=n4.prototype=te.prototype=tS.prototype=nk.prototype=B.prototype=new x).eQ=function(n){return e0(this,n)},iH.gC=function(){return fO},iH.hC=function(){return rv(this)},iH.q=function(){return rT(this)},iH.r=function(){return ew(this)},iH.tS=function(){return id(this)},iH.cM={6:1,8:1,10:1,16:1},iH.b=0,iH.c=0,iH.d=null,iH.e=0,iH.f=0,iH.g=0,iH.i=null;var ut,ue,ur,ui,uo,uu,uf,uc,us,ua,uh,ub,ul,ug,uw,ud,up,u_=null,uv=null,um=null;(iH=nL.prototype=ng.prototype=(function(){}).prototype=new B).s=function(n){var t,e,r;if((e=iI(n))==i$)t=0>ew(this)?ed(this):this;else if(e==oh)t=0>(r=t7(this,new iS(n[0].toString()))).r()?ed(r):r;else throw new ne("Unknown call signature for interim = super.abs: "+e);return new nL(t)},iH.t=function(n){var t,e;if((e=iI(n))==i5)t=r1(this,new Z(n[0].toString()));else if(e==i9)t=function(n,t,e){var r,i,o,u,f;if(r=n.f-t.f,0==t.b&&-1!=t.g||0==n.b&&-1!=n.g||0==e.b)return t7(r1(n,t),e);if((n.e>0?n.e:nU((n.b-1)*.3010299956639812)+1)0?t.e:nU((t.b-1)*.3010299956639812)+1)<-r-1))return t7(r1(n,t),e);i=n,u=t}return e.b>=(i.e>0?i.e:nU((i.b-1)*.3010299956639812)+1)?t7(r1(n,t),e):(f=(o=i.r())==u.r()?iC(rW((i.d||(i.d=eU(i.g)),i.d),10),eW(e3(o))):iC(rW(f=is((i.d||(i.d=eU(i.g)),i.d),eW(e3(o))),10),eW(e3(9*o))),t7(i=new tM(f,i.f+1),e))}(this,new Z(n[0].toString()),new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.add: "+e);return new nL(t)},iH.u=function(){return~~(nx(t8(this,8))<<24)>>24},iH.v=function(n){return iu(this,n)},iH.w=function(n){var t,e,r,i;if((i=iI(n))==i5)e=eb(this,new Z(n[0].toString()));else if(i==i9)e=el(this,new Z(n[0].toString()),new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.divideAndRemainder: "+i);for(t=0,r=tL(fk,{6:1},3,e.length,0);t129?n*=1/0:n=t5(id(this)),n},iH.gC=function(){return fD},iH.hC=function(){return rv(this)},iH.B=function(){var n;return this.f<=-32||this.f>(this.e>0?this.e:nU((this.b-1)*.3010299956639812)+1)?0:(n=new n0(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eU(this.g)),this.d):this.f<0?en((this.d||(this.d=eU(this.g)),this.d),iv(-this.f)):ia((this.d||(this.d=eU(this.g)),this.d),iv(this.f)))).f*n.b[0]},iH.C=function(){return nx(t8(this,32))},iH.D=function(){return nx(t8(this,32))},iH.E=function(){return t5(id(this))},iH.F=function(n){return new nL(iu(this,n)>=0?this:n)},iH.G=function(n){return new nL(0>=iu(this,n)?this:n)},iH.H=function(n){return new nL(rz(this,this.f+n))},iH.I=function(n){return new nL(rz(this,this.f-n))},iH.J=function(n){var t,e;if((e=iI(n))==i5)t=rD(this,new Z(n[0].toString()));else if(e==i9)t=tb(this,new Z(n[0].toString()),new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.multiply: "+e);return new nL(t)},iH.K=function(n){var t,e;if((e=iI(n))==i$)t=ed(this);else if(e==oh)t=ed(t7(this,new iS(n[0].toString())));else throw new ne("Unknown call signature for interim = super.negate: "+e);return new nL(t)},iH.L=function(n){var t,e;if((e=iI(n))==i$)t=this;else if(e==oh)t=t7(this,new iS(n[0].toString()));else throw new ne("Unknown call signature for interim = super.plus: "+e);return new nL(t)},iH.M=function(n){var t,e;if((e=iI(n))==ok)t=rw(this,n[0]);else if(e==oL)t=function(n,t,e){var r,i,o,u,f,c;if(o=t<0?-t:t,u=e.b,i=ei(n8(o))+1,f=e,0==t||0==n.b&&-1!=n.g&&t>0)return rw(n,t);if(o>999999999||0==u&&t<0||u>0&&i>u)throw new nr(oa);for(u>0&&(f=new eK(u+i+1,e.c)),r=t7(n,f),c=~~function(n){var t;if(n<0)return -2147483648;if(0==n)return 0;for(t=1073741824;(t&n)==0;t>>=1);return t}(o)>>1;c>0;)r=tb(r,r,f),(o&c)==c&&(r=tb(r,n,f)),c>>=1;return t<0&&(r=iR(ug,r,f)),ic(r,e),r}(this,n[0],new iS(n[1].toString()));else throw new ne("Unknown call signature for interim = super.pow: "+e);return new nL(t)},iH.q=function(){return rT(this)},iH.N=function(n){var t,e;if((e=iI(n))==i5)t=eb(this,new Z(n[0].toString()))[1];else if(e==i9)t=el(this,new Z(n[0].toString()),new iS(n[1].toString()))[1];else throw new ne("Unknown call signature for interim = super.remainder: "+e);return new nL(t)},iH.O=function(n){return new nL(t7(this,new iS(ea(n.b))))},iH.P=function(){return ei(this.f)},iH.Q=function(n){var t,e;return new nL((t=this,(e=t.f-n,t.b<54)?0==t.g?eL(e):new tr(t.g,eJ(e)):new tS((t.d||(t.d=eU(t.g)),t.d),eJ(e))))},iH.R=function(n){var t,e;if((e=iI(n))==ok)t=rY(this,n[0],(iB(),u4));else if(e==oU)t=rY(this,n[0],rP(n[1]));else if("number RoundingMode"==e)t=rY(this,n[0],tc(n[1].toString()));else throw new ne("Unknown call signature for interim = super.setScale: "+e);return new nL(t)},iH.S=function(){return~~(nx(t8(this,16))<<16)>>16},iH.r=function(){return ew(this)},iH.T=function(){return new nL(function(n){var t,e,r,i,o;if(t=1,e=uv.length-1,r=n.f,0==n.b&&-1!=n.g)return new Z(iK);for(n.d||(n.d=eU(n.g)),o=n.d;!o.gb(0);)if(0==(i=r3(o,uv[t]))[1].r())r-=t,t0?i.e:nU((i.b-1)*.3010299956639812)+1)0?r.e:nU((r.b-1)*.3010299956639812)+1)?(f=(c=ew(r))!=i.r()?iC(rW((r.d||(r.d=eU(r.g)),r.d),10),eW(e3(c))):iC(rW(f=is((r.d||(r.d=eU(r.g)),r.d),eW(e3(c))),10),eW(e3(9*c))),t7(new tM(f,r.f+1),o)):t7(iO(r,i),o);else throw new ne("Unknown call signature for interim = super.subtract: "+e);return new nL(t)},iH.V=function(){return new n0(0==this.f||0==this.b&&-1!=this.g?(this.d||(this.d=eU(this.g)),this.d):this.f<0?en((this.d||(this.d=eU(this.g)),this.d),iv(-this.f)):ia((this.d||(this.d=eU(this.g)),this.d),iv(this.f)))},iH.W=function(){return new n0(r6(this))},iH.X=function(){return function(n){var t,e,r,i,o,u,f,c;if(u=ij((n.d||(n.d=eU(n.g)),n.d),0),0==n.f)return u;if(t=0>(n.d||(n.d=eU(n.g)),n.d).r()?2:1,r=u.length,i=-n.f+r-t,c=new nV(u),n.f>0&&i>=-6)i>=0?n9(c,r-ei(n.f),iJ):(tt(c.b,t-1,t-1,iW),n9(c,t+1,tU(us,0,-ei(i)-1)));else{if(e=r-t,0!=(f=ei(i%3))&&(0==(n.d||(n.d=eU(n.g)),n.d).r()?i+=f=f<0?-f:3-f:(i-=f=f<0?f+3:f,t+=f),e<3))for(o=f-e;o>0;--o)n9(c,r++,iK);r-t>=1&&(tt(c.b,t,t,iJ),++r),0!=i&&(tt(c.b,r,r,of),i>0&&n9(c,++r,iG),n9(c,++r,i$+r4(r2(i))))}return c.b.b}(this)},iH.Y=function(){return function(n){var t,e,r,i,o,u;if(r=ij((n.d||(n.d=eU(n.g)),n.d),0),0==n.f||0==n.b&&-1!=n.g&&n.f<0)return r;if(t=0>ew(n)?1:0,e=n.f,i=new W(r.length+1+((o=ei(n.f))<0?-o:o)),1==t&&(i.b.b+=iz),n.f>0){if((e-=r.length-t)>=0){for(i.b.b+=iW;e>us.length;e-=us.length)tq(i,us);n5(i,us,ei(e)),nI(i,n7(r,t))}else nI(i,(u=ei(e=t-e),r.substr(t,u-t))),i.b.b+=iJ,nI(i,n7(r,ei(e)))}else{for(nI(i,n7(r,t));e<-us.length;e+=us.length)tq(i,us);n5(i,us,ei(-e))}return i.b.b}(this)},iH.tS=function(){return id(this)},iH.Z=function(){return new nL(new tr(1,this.f))},iH.$=function(){return new n0((this.d||(this.d=eU(this.g)),this.d))},iH.cM={3:1,6:1,8:1,10:1,16:1,24:1},(iH=F.prototype=(function(){}).prototype=new s).gC=function(){return fL};var uy=!1;(iH=ro.prototype=ri.prototype=ti.prototype=e5.prototype=t$.prototype=ra.prototype=nq.prototype=iy.prototype=A.prototype=new x)._=function(){return this.f<0?new ti(1,this.e,this.b):this},iH.ab=function(){return eV(this)},iH.eQ=function(n){return e$(this,n)},iH.gC=function(){return fU},iH.bb=function(){return t1(this)},iH.hC=function(){return eD(this)},iH.cb=function(){return 0==this.f?this:new ti(-this.f,this.e,this.b)},iH.db=function(n){return rk(this,n)},iH.eb=function(n){return tX(this,n)},iH.fb=function(n){return tY(this,n)},iH.r=function(){return this.f},iH.gb=function(n){return rQ(this,n)},iH.tS=function(){return ij(this,0)},iH.cM={6:1,8:1,10:1,17:1},iH.b=null,iH.c=-2,iH.d=0,iH.e=0,iH.f=0;var uC,uS,uM,ux,uB,uA=null;(iH=n0.prototype=nO.prototype=nD.prototype=(function(){}).prototype=new A)._=function(){return new n0(this.f<0?new ti(1,this.e,this.b):this)},iH.hb=function(n){return new n0(iC(this,n))},iH.ib=function(n){return new n0(0==n.f||0==this.f?(rK(),uB):e$(n,(rK(),uC))?this:e$(this,uC)?n:this.f>0?n.f>0?function(n,t){var e,r,i,o;if(i=nd(n.e,t.e),(e=np(eg(n),eg(t)))>=i)return rK(),uB;for(r=tL(fd,{6:1},-1,i,1);e0?rG(n,this):this.e>n.e?ip(this,n):ip(n,this))},iH.jb=function(n){return new n0(0==n.f?this:0==this.f?(rK(),uB):e$(this,(rK(),uC))?new n0(r7(n)):e$(n,uC)?uB:this.f>0?n.f>0?function(n,t){var e,r,i,o;for(i=tL(fd,{6:1},-1,n.e,1),r=nd(n.e,t.e),e=eg(n);e=n.e)return n;for(o=tL(fd,{6:1},-1,u=nd(n.e,t.e),1),e=i;e0?function(n,t){var e,r,i,o,u,f,c;if(i=eg(n),o=eg(t),i>=t.e)return n;if(c=np(n.e,t.e),r=i,o>i){for(f=tL(fd,{6:1},-1,c,1),u=nd(n.e,o);r=t.e)return rK(),uB;if(u=tL(fd,{6:1},-1,f=t.e,1),e=i,i0)for(;e34028234663852886e22?1/0:n<-34028234663852886e22?-1/0:n},iH.qb=function(n){return new n0(rE(this,n))},iH.gC=function(){return fP},iH.bb=function(){return t1(this)},iH.hC=function(){return eD(this)},iH.B=function(){return this.f*this.b[0]},iH.rb=function(n){return function(n,t){var e,r;if(iT(),t<=0||1==n.e&&2==n.b[0])return!0;if(!rQ(n,0))return!1;if(1==n.e&&(-1024&n.b[0])==0)return function(n,t){var e,r,i,o;for(r=0,e=n.length-1;r<=e;)if((o=n[i=r+(~~(e-r)>>1)])t))return i;e=i-1}return-r-1}(uK,n.b[0])>=0;for(r=1;r>1)?r:1+(~~(t-1)>>1))}(new n0(this.f<0?new ti(1,this.e,this.b):this),n)},iH.sb=function(){return t5(ij(this,0))},iH.tb=function(n){return new n0(1==rn(this,n)?this:n)},iH.ub=function(n){return new n0(-1==rn(this,n)?this:n)},iH.vb=function(n){return new n0(et(this,n))},iH.wb=function(n){return new n0(rR(this,n))},iH.xb=function(n,t){return new n0(rq(this,n,t))},iH.yb=function(n){return new n0(en(this,n))},iH.cb=function(){return new n0(0==this.f?this:new ti(-this.f,this.e,this.b))},iH.zb=function(){return new n0(function(n){if(n.f<0)throw new nr("start < 0: "+n);return function(n){var t,e,r,i,o,u,f,c;if(iT(),o=tL(fd,{6:1},-1,uK.length,1),r=tL(f_,{6:1},-1,1024,2),1==n.e&&n.b[0]>=0&&n.b[0]=uK[e];++e);return uJ[e]}for(f=new ti(1,n.e,tL(fd,{6:1},-1,n.e+1,1)),ix(n.b,0,f.b,0,n.e),rQ(n,0)?tK(f,2):f.b[0]|=1,i=f.ab(),t=2;i0?n.f>0?this.e>n.e?rl(this,n):rl(n,this):ig(this,n):n.f>0?ig(n,this):eg(n)>eg(this)?rZ(n,this):rZ(this,n))},iH.db=function(n){return new n0(rk(this,n))},iH.Cb=function(n){return new n0(rF(this,n))},iH.Db=function(n){return new n0(rQ(this,n)?this:it(this,n))},iH.eb=function(n){return new n0(tX(this,n))},iH.fb=function(n){return new n0(tY(this,n))},iH.r=function(){return this.f},iH.Eb=function(n){return new n0(is(this,n))},iH.gb=function(n){return rQ(this,n)},iH.Fb=function(n){var t,e;if((e=iI(n))==i$)t=ij(this,0);else if(e==ok)t=function(n,t){var e,r,i,o,u,f,c,s,a,h,b,l,g,w,d,_;if(iM(),g=n.f,s=n.e,u=n.b,0==g)return iK;if(1==s)return _=ts(e3(u[0]),o3),g<0&&(_=eP(_)),function(n,t){var e,r,i;if(10==t||t<2||t>36)return i$+r4(n);if(e=tL(fJ,{6:1},-1,65,1),r_(),r=64,i=e3(t),rA(n,oz)){for(;rA(n,i);)e[r--]=uR[nx(n3(n,i))],n=iN(n,i,!1);e[r]=uR[nx(n)]}else{for(;!rB(n,eP(i));)e[r--]=uR[nx(eP(n3(n,i)))],n=iN(n,i,!1);e[r--]=uR[nx(eP(n))],e[r]=45}return t4(e,r,65)}(_,t);if(10==t||t<2||t>36)return ij(n,0);if(l=tL(fJ,{6:1},-1,b=ei(eV(new n0(n.f<0?new ti(1,n.e,n.b):n))/(Math.log(t)/Math.log(2))+(g<0?1:0))+1,1),i=b,16!=t)for(ix(u,0,w=tL(fd,{6:1},-1,s,1),0,s),d=s,r=uU[t],e=uL[t-2];;){h=ir(w,w,d,e),a=i;do l[--i]=ev(h%t,t);while(0!=(h=~~(h/t))&&0!=i)for(f=0,o=r-a+i;f0;++f)l[--i]=48;for(f=d-1;f>0&&0==w[f];--f);if(1==(d=f+1)&&0==w[0])break}else for(f=0;f0;++c)h=~~u[f]>>(c<<2)&15,l[--i]=ev(h,16);for(;48==l[i];)++i;return -1==g&&(l[--i]=45),tU(l,i,b-i)}(this,n[0]);else throw new ne("Unknown call signature for result = super.toString: "+e);return t},iH.Gb=function(n){return new n0(0==n.f?this:0==this.f?n:e$(n,(rK(),uC))?new n0(r7(this)):e$(this,uC)?new n0(r7(n)):this.f>0?n.f>0?this.e>n.e?rg(this,n):rg(n,this):iL(this,n):n.f>0?iL(n,this):eg(n)>eg(this)?ii(n,this):ii(this,n))},iH.cM={4:1,6:1,8:1,10:1,17:1,24:1},(iH=j.prototype=(function(){}).prototype=new s).gC=function(){return fT};var uN=!1;(iH=nv.prototype=nm.prototype=(function(){}).prototype=new s).gC=function(){return fj},iH.Hb=function(){return this.b.b},iH.Ib=function(){return new Y(this.b.c)},iH.hC=function(){return nM(this.b)},iH.tS=function(){return ea(this.b)},iH.cM={24:1},iH.b=null,(iH=T.prototype=(function(){}).prototype=new s).gC=function(){return fF};var uI=!1;(iH=Y.prototype=ny.prototype=(function(){}).prototype=new s).gC=function(){return fH},iH.Jb=function(){return this.b.b},iH.tS=function(){return this.b.b},iH.cM={5:1,24:1},iH.b=null,(iH=J.prototype=(function(){}).prototype=new s).gC=function(){return fV};var uE=!1;(iH=nr.prototype=(function(){}).prototype=new b).gC=function(){return fq},iH.cM={6:1,12:1,15:1},(iH=ni.prototype=$.prototype=(function(){}).prototype=new b).gC=function(){return fz},iH.cM={6:1,12:1,15:1},(iH=N.prototype=(function(){}).prototype=new s).gC=function(){return fK},iH.tS=function(){return((2&this.c)!=0?"interface ":(1&this.c)!=0?i$:"class ")+this.d},iH.b=null,iH.c=0,iH.d=null,(iH=H.prototype=(function(){}).prototype=new b).gC=function(){return fW},iH.cM={6:1,12:1,15:1},(iH=I.prototype=new s).eQ=function(n){return this===n},iH.gC=function(){return fs},iH.hC=function(){return nj(this)},iH.tS=function(){return this.b},iH.cM={6:1,8:1,9:1},iH.b=null,iH.c=0,(iH=no.prototype=V.prototype=E.prototype=new b).gC=function(){return fZ},iH.cM={6:1,12:1,15:1},(iH=nu.prototype=q.prototype=R.prototype=new b).gC=function(){return fG},iH.cM={6:1,12:1,15:1},(iH=nf.prototype=G.prototype=(function(){}).prototype=new b).gC=function(){return fX},iH.cM={6:1,12:1,15:1},(iH=nw.prototype=(function(){}).prototype=new E).gC=function(){return fY},iH.cM={6:1,12:1,15:1},(iH=to.prototype=(function(){}).prototype=new s).gC=function(){return fy},iH.tS=function(){return this.b+iJ+this.d+"(Unknown Source"+(this.c>=0?i6+this.c:i$)+")"},iH.cM={6:1,13:1},iH.b=null,iH.c=0,iH.d=null,(iH=String.prototype).eQ=function(n){return tj(this,n)},iH.gC=function(){return fA},iH.hC=function(){var n,t;return nJ(),null!=(t=uD[n=i6+this])?t:(null==(t=uO[n])&&(t=function(n){var t,e,r,i;for(t=0,i=(r=n.length)-4,e=0;e{ + bitField += B.encode(curValue); + range.push(i); + ranges.push(range); + }), retrString += '.' + C.encode(ranges); + } +} +console.log(Deno.encode()); diff --git a/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js b/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js index 224103044413..9008f5c7edf2 100644 --- a/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js +++ b/crates/swc_ecma_minifier/tests/projects/output/jquery.mobile-1.4.2.js @@ -2121,7 +2121,7 @@ }, _create: function() { var listviewClasses = ""; - listviewClasses += this.options.inset ? " ui-listview-inset" : "", this.options.inset && (listviewClasses = (this.options.corners ? " ui-corner-all" : "") + (this.options.shadow ? " ui-shadow" : "")), this.element.addClass(" ui-listview" + listviewClasses), this.refresh(!0); + listviewClasses += this.options.inset ? " ui-listview-inset" : "", this.options.inset && (listviewClasses += (this.options.corners ? " ui-corner-all" : "") + (this.options.shadow ? " ui-shadow" : "")), this.element.addClass(" ui-listview" + listviewClasses), this.refresh(!0); }, _findFirstElementByTagName: function(ele, nextProp, lcName, ucName) { var dict = {}; diff --git a/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js b/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js index 7b88af265ce9..e5e8e6c5b412 100644 --- a/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js +++ b/crates/swc_ecma_minifier/tests/projects/output/react-dom-17.0.2.js @@ -6848,7 +6848,7 @@ var styleValue = styles[styleName]; if (null != styleValue) { var isCustomProperty = 0 === styleName.indexOf("--"); - serialized = delimiter + (isCustomProperty ? styleName : styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-")) + ":" + dangerousStyleValue(styleName, styleValue, isCustomProperty), delimiter = ";"; + serialized += delimiter + (isCustomProperty ? styleName : styleName.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-")) + ":" + dangerousStyleValue(styleName, styleValue, isCustomProperty), delimiter = ";"; } } return serialized || null;