@p4ulcristian/iris-layout 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/cljs-runtime/cljs.core.js +38746 -0
  2. package/dist/cljs-runtime/cljs.core.js.map +1 -0
  3. package/dist/cljs-runtime/cljs.pprint.js +8400 -0
  4. package/dist/cljs-runtime/cljs.pprint.js.map +1 -0
  5. package/dist/cljs-runtime/cljs.stacktrace.js +561 -0
  6. package/dist/cljs-runtime/cljs.stacktrace.js.map +1 -0
  7. package/dist/cljs-runtime/cljs_env.js +1286 -0
  8. package/dist/cljs-runtime/clojure.data.js +295 -0
  9. package/dist/cljs-runtime/clojure.data.js.map +1 -0
  10. package/dist/cljs-runtime/clojure.set.js +382 -0
  11. package/dist/cljs-runtime/clojure.set.js.map +1 -0
  12. package/dist/cljs-runtime/clojure.string.js +480 -0
  13. package/dist/cljs-runtime/clojure.string.js.map +1 -0
  14. package/dist/cljs-runtime/clojure.walk.js +132 -0
  15. package/dist/cljs-runtime/clojure.walk.js.map +1 -0
  16. package/dist/cljs-runtime/devtools.async.js +90 -0
  17. package/dist/cljs-runtime/devtools.async.js.map +1 -0
  18. package/dist/cljs-runtime/devtools.context.js +11 -0
  19. package/dist/cljs-runtime/devtools.context.js.map +1 -0
  20. package/dist/cljs-runtime/devtools.core.js +175 -0
  21. package/dist/cljs-runtime/devtools.core.js.map +1 -0
  22. package/dist/cljs-runtime/devtools.defaults.js +20 -0
  23. package/dist/cljs-runtime/devtools.defaults.js.map +1 -0
  24. package/dist/cljs-runtime/devtools.format.js +631 -0
  25. package/dist/cljs-runtime/devtools.format.js.map +1 -0
  26. package/dist/cljs-runtime/devtools.formatters.budgeting.js +182 -0
  27. package/dist/cljs-runtime/devtools.formatters.budgeting.js.map +1 -0
  28. package/dist/cljs-runtime/devtools.formatters.core.js +220 -0
  29. package/dist/cljs-runtime/devtools.formatters.core.js.map +1 -0
  30. package/dist/cljs-runtime/devtools.formatters.helpers.js +228 -0
  31. package/dist/cljs-runtime/devtools.formatters.helpers.js.map +1 -0
  32. package/dist/cljs-runtime/devtools.formatters.js +261 -0
  33. package/dist/cljs-runtime/devtools.formatters.js.map +1 -0
  34. package/dist/cljs-runtime/devtools.formatters.markup.js +1174 -0
  35. package/dist/cljs-runtime/devtools.formatters.markup.js.map +1 -0
  36. package/dist/cljs-runtime/devtools.formatters.printing.js +313 -0
  37. package/dist/cljs-runtime/devtools.formatters.printing.js.map +1 -0
  38. package/dist/cljs-runtime/devtools.formatters.state.js +325 -0
  39. package/dist/cljs-runtime/devtools.formatters.state.js.map +1 -0
  40. package/dist/cljs-runtime/devtools.formatters.templating.js +666 -0
  41. package/dist/cljs-runtime/devtools.formatters.templating.js.map +1 -0
  42. package/dist/cljs-runtime/devtools.hints.js +193 -0
  43. package/dist/cljs-runtime/devtools.hints.js.map +1 -0
  44. package/dist/cljs-runtime/devtools.munging.js +1058 -0
  45. package/dist/cljs-runtime/devtools.munging.js.map +1 -0
  46. package/dist/cljs-runtime/devtools.prefs.js +87 -0
  47. package/dist/cljs-runtime/devtools.prefs.js.map +1 -0
  48. package/dist/cljs-runtime/devtools.preload.js +11 -0
  49. package/dist/cljs-runtime/devtools.preload.js.map +1 -0
  50. package/dist/cljs-runtime/devtools.protocols.js +98 -0
  51. package/dist/cljs-runtime/devtools.protocols.js.map +1 -0
  52. package/dist/cljs-runtime/devtools.reporter.js +81 -0
  53. package/dist/cljs-runtime/devtools.reporter.js.map +1 -0
  54. package/dist/cljs-runtime/devtools.toolbox.js +141 -0
  55. package/dist/cljs-runtime/devtools.toolbox.js.map +1 -0
  56. package/dist/cljs-runtime/devtools.util.js +517 -0
  57. package/dist/cljs-runtime/devtools.util.js.map +1 -0
  58. package/dist/cljs-runtime/devtools.version.js +9 -0
  59. package/dist/cljs-runtime/devtools.version.js.map +1 -0
  60. package/dist/cljs-runtime/goog.array.array.js +659 -0
  61. package/dist/cljs-runtime/goog.array.array.js.map +9 -0
  62. package/dist/cljs-runtime/goog.asserts.asserts.js +133 -0
  63. package/dist/cljs-runtime/goog.asserts.asserts.js.map +9 -0
  64. package/dist/cljs-runtime/goog.asserts.dom.js +90 -0
  65. package/dist/cljs-runtime/goog.asserts.dom.js.map +9 -0
  66. package/dist/cljs-runtime/goog.async.nexttick.js +93 -0
  67. package/dist/cljs-runtime/goog.async.nexttick.js.map +9 -0
  68. package/dist/cljs-runtime/goog.base.js +1261 -0
  69. package/dist/cljs-runtime/goog.base.js.map +9 -0
  70. package/dist/cljs-runtime/goog.collections.maps.js +82 -0
  71. package/dist/cljs-runtime/goog.collections.maps.js.map +9 -0
  72. package/dist/cljs-runtime/goog.debug.entrypointregistry.js +44 -0
  73. package/dist/cljs-runtime/goog.debug.entrypointregistry.js.map +9 -0
  74. package/dist/cljs-runtime/goog.debug.error.js +30 -0
  75. package/dist/cljs-runtime/goog.debug.error.js.map +9 -0
  76. package/dist/cljs-runtime/goog.dom.asserts.js +40 -0
  77. package/dist/cljs-runtime/goog.dom.asserts.js.map +9 -0
  78. package/dist/cljs-runtime/goog.dom.browserfeature.js +21 -0
  79. package/dist/cljs-runtime/goog.dom.browserfeature.js.map +9 -0
  80. package/dist/cljs-runtime/goog.dom.dom.js +1087 -0
  81. package/dist/cljs-runtime/goog.dom.dom.js.map +9 -0
  82. package/dist/cljs-runtime/goog.dom.element.js +69 -0
  83. package/dist/cljs-runtime/goog.dom.element.js.map +9 -0
  84. package/dist/cljs-runtime/goog.dom.htmlelement.js +7 -0
  85. package/dist/cljs-runtime/goog.dom.htmlelement.js.map +9 -0
  86. package/dist/cljs-runtime/goog.dom.nodetype.js +6 -0
  87. package/dist/cljs-runtime/goog.dom.nodetype.js.map +9 -0
  88. package/dist/cljs-runtime/goog.dom.safe.js +277 -0
  89. package/dist/cljs-runtime/goog.dom.safe.js.map +9 -0
  90. package/dist/cljs-runtime/goog.dom.tagname.js +147 -0
  91. package/dist/cljs-runtime/goog.dom.tagname.js.map +9 -0
  92. package/dist/cljs-runtime/goog.dom.tags.js +10 -0
  93. package/dist/cljs-runtime/goog.dom.tags.js.map +9 -0
  94. package/dist/cljs-runtime/goog.flags.flags.js +12 -0
  95. package/dist/cljs-runtime/goog.flags.flags.js.map +9 -0
  96. package/dist/cljs-runtime/goog.fs.blob.js +38 -0
  97. package/dist/cljs-runtime/goog.fs.blob.js.map +9 -0
  98. package/dist/cljs-runtime/goog.fs.url.js +37 -0
  99. package/dist/cljs-runtime/goog.fs.url.js.map +9 -0
  100. package/dist/cljs-runtime/goog.functions.functions.js +211 -0
  101. package/dist/cljs-runtime/goog.functions.functions.js.map +9 -0
  102. package/dist/cljs-runtime/goog.html.safehtml.js +321 -0
  103. package/dist/cljs-runtime/goog.html.safehtml.js.map +9 -0
  104. package/dist/cljs-runtime/goog.html.safescript.js +65 -0
  105. package/dist/cljs-runtime/goog.html.safescript.js.map +9 -0
  106. package/dist/cljs-runtime/goog.html.safestyle.js +175 -0
  107. package/dist/cljs-runtime/goog.html.safestyle.js.map +9 -0
  108. package/dist/cljs-runtime/goog.html.safestylesheet.js +99 -0
  109. package/dist/cljs-runtime/goog.html.safestylesheet.js.map +9 -0
  110. package/dist/cljs-runtime/goog.html.safeurl.js +231 -0
  111. package/dist/cljs-runtime/goog.html.safeurl.js.map +9 -0
  112. package/dist/cljs-runtime/goog.html.trustedresourceurl.js +123 -0
  113. package/dist/cljs-runtime/goog.html.trustedresourceurl.js.map +9 -0
  114. package/dist/cljs-runtime/goog.html.trustedtypes.js +16 -0
  115. package/dist/cljs-runtime/goog.html.trustedtypes.js.map +9 -0
  116. package/dist/cljs-runtime/goog.html.uncheckedconversions.js +52 -0
  117. package/dist/cljs-runtime/goog.html.uncheckedconversions.js.map +9 -0
  118. package/dist/cljs-runtime/goog.labs.useragent.browser.js +352 -0
  119. package/dist/cljs-runtime/goog.labs.useragent.browser.js.map +9 -0
  120. package/dist/cljs-runtime/goog.labs.useragent.engine.js +73 -0
  121. package/dist/cljs-runtime/goog.labs.useragent.engine.js.map +9 -0
  122. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js +14 -0
  123. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js.map +9 -0
  124. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js +74 -0
  125. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js.map +9 -0
  126. package/dist/cljs-runtime/goog.labs.useragent.platform.js +147 -0
  127. package/dist/cljs-runtime/goog.labs.useragent.platform.js.map +9 -0
  128. package/dist/cljs-runtime/goog.labs.useragent.useragent.js +21 -0
  129. package/dist/cljs-runtime/goog.labs.useragent.useragent.js.map +9 -0
  130. package/dist/cljs-runtime/goog.labs.useragent.util.js +81 -0
  131. package/dist/cljs-runtime/goog.labs.useragent.util.js.map +9 -0
  132. package/dist/cljs-runtime/goog.math.coordinate.js +97 -0
  133. package/dist/cljs-runtime/goog.math.coordinate.js.map +9 -0
  134. package/dist/cljs-runtime/goog.math.integer.js +445 -0
  135. package/dist/cljs-runtime/goog.math.integer.js.map +9 -0
  136. package/dist/cljs-runtime/goog.math.long.js +437 -0
  137. package/dist/cljs-runtime/goog.math.long.js.map +9 -0
  138. package/dist/cljs-runtime/goog.math.math.js +158 -0
  139. package/dist/cljs-runtime/goog.math.math.js.map +9 -0
  140. package/dist/cljs-runtime/goog.math.size.js +76 -0
  141. package/dist/cljs-runtime/goog.math.size.js.map +9 -0
  142. package/dist/cljs-runtime/goog.object.object.js +284 -0
  143. package/dist/cljs-runtime/goog.object.object.js.map +9 -0
  144. package/dist/cljs-runtime/goog.reflect.reflect.js +32 -0
  145. package/dist/cljs-runtime/goog.reflect.reflect.js.map +9 -0
  146. package/dist/cljs-runtime/goog.string.const.js +35 -0
  147. package/dist/cljs-runtime/goog.string.const.js.map +9 -0
  148. package/dist/cljs-runtime/goog.string.internal.js +119 -0
  149. package/dist/cljs-runtime/goog.string.internal.js.map +9 -0
  150. package/dist/cljs-runtime/goog.string.string.js +462 -0
  151. package/dist/cljs-runtime/goog.string.string.js.map +9 -0
  152. package/dist/cljs-runtime/goog.string.stringbuffer.js +32 -0
  153. package/dist/cljs-runtime/goog.string.stringbuffer.js.map +9 -0
  154. package/dist/cljs-runtime/goog.string.typedstring.js +9 -0
  155. package/dist/cljs-runtime/goog.string.typedstring.js.map +9 -0
  156. package/dist/cljs-runtime/goog.structs.structs.js +199 -0
  157. package/dist/cljs-runtime/goog.structs.structs.js.map +9 -0
  158. package/dist/cljs-runtime/goog.uri.uri.js +628 -0
  159. package/dist/cljs-runtime/goog.uri.uri.js.map +9 -0
  160. package/dist/cljs-runtime/goog.uri.utils.js +326 -0
  161. package/dist/cljs-runtime/goog.uri.utils.js.map +9 -0
  162. package/dist/cljs-runtime/goog.useragent.useragent.js +139 -0
  163. package/dist/cljs-runtime/goog.useragent.useragent.js.map +9 -0
  164. package/dist/cljs-runtime/iris_layout.components.entity_card_group.js +202 -0
  165. package/dist/cljs-runtime/iris_layout.components.entity_card_group.js.map +1 -0
  166. package/dist/cljs-runtime/iris_layout.components.entity_tile.js +295 -0
  167. package/dist/cljs-runtime/iris_layout.components.entity_tile.js.map +1 -0
  168. package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js +33 -0
  169. package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js.map +1 -0
  170. package/dist/cljs-runtime/iris_layout.components.resizer.js +91 -0
  171. package/dist/cljs-runtime/iris_layout.components.resizer.js.map +1 -0
  172. package/dist/cljs-runtime/iris_layout.components.touch_drag.js +399 -0
  173. package/dist/cljs-runtime/iris_layout.components.touch_drag.js.map +1 -0
  174. package/dist/cljs-runtime/iris_layout.core.js +1372 -0
  175. package/dist/cljs-runtime/iris_layout.core.js.map +1 -0
  176. package/dist/cljs-runtime/iris_layout.layout.js +328 -0
  177. package/dist/cljs-runtime/iris_layout.layout.js.map +1 -0
  178. package/dist/cljs-runtime/reagent.core.js +993 -0
  179. package/dist/cljs-runtime/reagent.core.js.map +1 -0
  180. package/dist/cljs-runtime/reagent.debug.js +75 -0
  181. package/dist/cljs-runtime/reagent.debug.js.map +1 -0
  182. package/dist/cljs-runtime/reagent.impl.batching.js +270 -0
  183. package/dist/cljs-runtime/reagent.impl.batching.js.map +1 -0
  184. package/dist/cljs-runtime/reagent.impl.component.js +758 -0
  185. package/dist/cljs-runtime/reagent.impl.component.js.map +1 -0
  186. package/dist/cljs-runtime/reagent.impl.input.js +175 -0
  187. package/dist/cljs-runtime/reagent.impl.input.js.map +1 -0
  188. package/dist/cljs-runtime/reagent.impl.protocols.js +99 -0
  189. package/dist/cljs-runtime/reagent.impl.protocols.js.map +1 -0
  190. package/dist/cljs-runtime/reagent.impl.template.js +660 -0
  191. package/dist/cljs-runtime/reagent.impl.template.js.map +1 -0
  192. package/dist/cljs-runtime/reagent.impl.util.js +748 -0
  193. package/dist/cljs-runtime/reagent.impl.util.js.map +1 -0
  194. package/dist/cljs-runtime/reagent.ratom.js +1668 -0
  195. package/dist/cljs-runtime/reagent.ratom.js.map +1 -0
  196. package/dist/cljs-runtime/shadow.esm.esm_import$react.js +5 -0
  197. package/dist/cljs-runtime/shadow.module.iris-layout.append.js +2 -0
  198. package/dist/cljs-runtime/shadow.module.iris-layout.prepend.js +2 -0
  199. package/dist/iris-layout.js +375 -355
  200. package/dist/styles.css +287 -9
  201. package/package.json +1 -1
@@ -0,0 +1,437 @@
1
+ import "./cljs_env.js";
2
+ import "./goog.asserts.asserts.js";
3
+ import "./goog.reflect.reflect.js";
4
+ goog.loadModule(function(exports) {
5
+ function getCachedIntValue_(value) {
6
+ return reflect.cache(IntCache_, value, function(val) {
7
+ return new Long(val, val < 0 ? -1 : 0);
8
+ });
9
+ }
10
+ "use strict";
11
+ goog.module("goog.math.Long");
12
+ goog.module.declareLegacyNamespace();
13
+ const asserts = goog.require("goog.asserts");
14
+ const reflect = goog.require("goog.reflect");
15
+ class Long {
16
+ constructor(low, high) {
17
+ this.low_ = low | 0;
18
+ this.high_ = high | 0;
19
+ }
20
+ toInt() {
21
+ return this.low_;
22
+ }
23
+ toNumber() {
24
+ return this.high_ * TWO_PWR_32_DBL_ + this.getLowBitsUnsigned();
25
+ }
26
+ isSafeInteger() {
27
+ var top11Bits = this.high_ >> 21;
28
+ return top11Bits == 0 || top11Bits == -1 && !(this.low_ == 0 && this.high_ == (4292870144 | 0));
29
+ }
30
+ toString(opt_radix) {
31
+ var radix = opt_radix || 10;
32
+ if (radix < 2 || 36 < radix) {
33
+ throw new Error("radix out of range: " + radix);
34
+ }
35
+ if (this.isSafeInteger()) {
36
+ var asNumber = this.toNumber();
37
+ return radix == 10 ? "" + asNumber : asNumber.toString(radix);
38
+ }
39
+ var safeDigits = 14 - (radix >> 2);
40
+ var radixPowSafeDigits = Math.pow(radix, safeDigits);
41
+ var radixToPower = Long.fromBits(radixPowSafeDigits, radixPowSafeDigits / TWO_PWR_32_DBL_);
42
+ var remDiv = this.div(radixToPower);
43
+ var val = Math.abs(this.subtract(remDiv.multiply(radixToPower)).toNumber());
44
+ var digits = radix == 10 ? "" + val : val.toString(radix);
45
+ if (digits.length < safeDigits) {
46
+ digits = "0000000000000".slice(digits.length - safeDigits) + digits;
47
+ }
48
+ val = remDiv.toNumber();
49
+ return (radix == 10 ? val : val.toString(radix)) + digits;
50
+ }
51
+ toUnsignedString(opt_radix) {
52
+ if (this.high_ >= 0) {
53
+ return this.toString(opt_radix);
54
+ }
55
+ var radix = opt_radix || 10;
56
+ if (radix < 2 || 36 < radix) {
57
+ throw new Error("radix out of range: " + radix);
58
+ }
59
+ var longRadix = Long.fromInt(radix);
60
+ var quotient = this.shiftRightUnsigned(1).div(longRadix).shiftLeft(1);
61
+ var remainder = this.subtract(quotient.multiply(longRadix));
62
+ if (remainder.greaterThanOrEqual(longRadix)) {
63
+ quotient = quotient.add(Long.getOne());
64
+ remainder = this.subtract(quotient.multiply(longRadix));
65
+ }
66
+ return quotient.toString(radix) + remainder.toString(radix);
67
+ }
68
+ getHighBits() {
69
+ return this.high_;
70
+ }
71
+ getLowBits() {
72
+ return this.low_;
73
+ }
74
+ getLowBitsUnsigned() {
75
+ return this.low_ >>> 0;
76
+ }
77
+ getNumBitsAbs() {
78
+ if (this.isNegative()) {
79
+ if (this.equals(Long.getMinValue())) {
80
+ return 64;
81
+ } else {
82
+ return this.negate().getNumBitsAbs();
83
+ }
84
+ } else {
85
+ var val = this.high_ != 0 ? this.high_ : this.low_;
86
+ var bit = 31;
87
+ for (; bit > 0; bit--) {
88
+ if ((val & 1 << bit) != 0) {
89
+ break;
90
+ }
91
+ }
92
+ return this.high_ != 0 ? bit + 33 : bit + 1;
93
+ }
94
+ }
95
+ isZero() {
96
+ return this.low_ == 0 && this.high_ == 0;
97
+ }
98
+ isNegative() {
99
+ return this.high_ < 0;
100
+ }
101
+ isOdd() {
102
+ return (this.low_ & 1) == 1;
103
+ }
104
+ hashCode() {
105
+ return this.getLowBits() ^ this.getHighBits();
106
+ }
107
+ equals(other) {
108
+ return this.low_ == other.low_ && this.high_ == other.high_;
109
+ }
110
+ notEquals(other) {
111
+ return !this.equals(other);
112
+ }
113
+ lessThan(other) {
114
+ return this.compare(other) < 0;
115
+ }
116
+ lessThanOrEqual(other) {
117
+ return this.compare(other) <= 0;
118
+ }
119
+ greaterThan(other) {
120
+ return this.compare(other) > 0;
121
+ }
122
+ greaterThanOrEqual(other) {
123
+ return this.compare(other) >= 0;
124
+ }
125
+ compare(other) {
126
+ if (this.high_ == other.high_) {
127
+ if (this.low_ == other.low_) {
128
+ return 0;
129
+ }
130
+ return this.getLowBitsUnsigned() > other.getLowBitsUnsigned() ? 1 : -1;
131
+ }
132
+ return this.high_ > other.high_ ? 1 : -1;
133
+ }
134
+ negate() {
135
+ var negLow = ~this.low_ + 1 | 0;
136
+ var overflowFromLow = !negLow;
137
+ var negHigh = ~this.high_ + overflowFromLow | 0;
138
+ return Long.fromBits(negLow, negHigh);
139
+ }
140
+ add(other) {
141
+ var a48 = this.high_ >>> 16;
142
+ var a32 = this.high_ & 65535;
143
+ var a16 = this.low_ >>> 16;
144
+ var a00 = this.low_ & 65535;
145
+ var b48 = other.high_ >>> 16;
146
+ var b32 = other.high_ & 65535;
147
+ var b16 = other.low_ >>> 16;
148
+ var b00 = other.low_ & 65535;
149
+ var c48 = 0;
150
+ var c32 = 0;
151
+ var c16 = 0;
152
+ var c00 = 0;
153
+ c00 = c00 + (a00 + b00);
154
+ c16 = c16 + (c00 >>> 16);
155
+ c00 = c00 & 65535;
156
+ c16 = c16 + (a16 + b16);
157
+ c32 = c32 + (c16 >>> 16);
158
+ c16 = c16 & 65535;
159
+ c32 = c32 + (a32 + b32);
160
+ c48 = c48 + (c32 >>> 16);
161
+ c32 = c32 & 65535;
162
+ c48 = c48 + (a48 + b48);
163
+ c48 = c48 & 65535;
164
+ return Long.fromBits(c16 << 16 | c00, c48 << 16 | c32);
165
+ }
166
+ subtract(other) {
167
+ return this.add(other.negate());
168
+ }
169
+ multiply(other) {
170
+ if (this.isZero()) {
171
+ return this;
172
+ }
173
+ if (other.isZero()) {
174
+ return other;
175
+ }
176
+ var a48 = this.high_ >>> 16;
177
+ var a32 = this.high_ & 65535;
178
+ var a16 = this.low_ >>> 16;
179
+ var a00 = this.low_ & 65535;
180
+ var b48 = other.high_ >>> 16;
181
+ var b32 = other.high_ & 65535;
182
+ var b16 = other.low_ >>> 16;
183
+ var b00 = other.low_ & 65535;
184
+ var c48 = 0;
185
+ var c32 = 0;
186
+ var c16 = 0;
187
+ var c00 = 0;
188
+ c00 = c00 + a00 * b00;
189
+ c16 = c16 + (c00 >>> 16);
190
+ c00 = c00 & 65535;
191
+ c16 = c16 + a16 * b00;
192
+ c32 = c32 + (c16 >>> 16);
193
+ c16 = c16 & 65535;
194
+ c16 = c16 + a00 * b16;
195
+ c32 = c32 + (c16 >>> 16);
196
+ c16 = c16 & 65535;
197
+ c32 = c32 + a32 * b00;
198
+ c48 = c48 + (c32 >>> 16);
199
+ c32 = c32 & 65535;
200
+ c32 = c32 + a16 * b16;
201
+ c48 = c48 + (c32 >>> 16);
202
+ c32 = c32 & 65535;
203
+ c32 = c32 + a00 * b32;
204
+ c48 = c48 + (c32 >>> 16);
205
+ c32 = c32 & 65535;
206
+ c48 = c48 + (a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48);
207
+ c48 = c48 & 65535;
208
+ return Long.fromBits(c16 << 16 | c00, c48 << 16 | c32);
209
+ }
210
+ div(other) {
211
+ if (other.isZero()) {
212
+ throw new Error("division by zero");
213
+ }
214
+ if (this.isNegative()) {
215
+ if (this.equals(Long.getMinValue())) {
216
+ if (other.equals(Long.getOne()) || other.equals(Long.getNegOne())) {
217
+ return Long.getMinValue();
218
+ }
219
+ if (other.equals(Long.getMinValue())) {
220
+ return Long.getOne();
221
+ }
222
+ var halfThis = this.shiftRight(1);
223
+ var approx = halfThis.div(other).shiftLeft(1);
224
+ if (approx.equals(Long.getZero())) {
225
+ return other.isNegative() ? Long.getOne() : Long.getNegOne();
226
+ }
227
+ var rem = this.subtract(other.multiply(approx));
228
+ var result = approx.add(rem.div(other));
229
+ return result;
230
+ }
231
+ if (other.isNegative()) {
232
+ return this.negate().div(other.negate());
233
+ }
234
+ return this.negate().div(other).negate();
235
+ }
236
+ if (this.isZero()) {
237
+ return Long.getZero();
238
+ }
239
+ if (other.isNegative()) {
240
+ if (other.equals(Long.getMinValue())) {
241
+ return Long.getZero();
242
+ }
243
+ return this.div(other.negate()).negate();
244
+ }
245
+ var res = Long.getZero();
246
+ rem = this;
247
+ for (; rem.greaterThanOrEqual(other);) {
248
+ approx = Math.max(1, Math.floor(rem.toNumber() / other.toNumber()));
249
+ var log2 = Math.ceil(Math.log(approx) / Math.LN2);
250
+ var delta = log2 <= 48 ? 1 : Math.pow(2, log2 - 48);
251
+ var approxRes = Long.fromNumber(approx);
252
+ var approxRem = approxRes.multiply(other);
253
+ for (; approxRem.isNegative() || approxRem.greaterThan(rem);) {
254
+ approx = approx - delta;
255
+ approxRes = Long.fromNumber(approx);
256
+ approxRem = approxRes.multiply(other);
257
+ }
258
+ if (approxRes.isZero()) {
259
+ approxRes = Long.getOne();
260
+ }
261
+ res = res.add(approxRes);
262
+ rem = rem.subtract(approxRem);
263
+ }
264
+ return res;
265
+ }
266
+ modulo(other) {
267
+ return this.subtract(this.div(other).multiply(other));
268
+ }
269
+ not() {
270
+ return Long.fromBits(~this.low_, ~this.high_);
271
+ }
272
+ and(other) {
273
+ return Long.fromBits(this.low_ & other.low_, this.high_ & other.high_);
274
+ }
275
+ or(other) {
276
+ return Long.fromBits(this.low_ | other.low_, this.high_ | other.high_);
277
+ }
278
+ xor(other) {
279
+ return Long.fromBits(this.low_ ^ other.low_, this.high_ ^ other.high_);
280
+ }
281
+ shiftLeft(numBits) {
282
+ numBits = numBits & 63;
283
+ if (numBits == 0) {
284
+ return this;
285
+ } else {
286
+ var low = this.low_;
287
+ if (numBits < 32) {
288
+ var high = this.high_;
289
+ return Long.fromBits(low << numBits, high << numBits | low >>> 32 - numBits);
290
+ } else {
291
+ return Long.fromBits(0, low << numBits - 32);
292
+ }
293
+ }
294
+ }
295
+ shiftRight(numBits) {
296
+ numBits = numBits & 63;
297
+ if (numBits == 0) {
298
+ return this;
299
+ } else {
300
+ var high = this.high_;
301
+ if (numBits < 32) {
302
+ var low = this.low_;
303
+ return Long.fromBits(low >>> numBits | high << 32 - numBits, high >> numBits);
304
+ } else {
305
+ return Long.fromBits(high >> numBits - 32, high >= 0 ? 0 : -1);
306
+ }
307
+ }
308
+ }
309
+ shiftRightUnsigned(numBits) {
310
+ numBits = numBits & 63;
311
+ if (numBits == 0) {
312
+ return this;
313
+ } else {
314
+ var high = this.high_;
315
+ if (numBits < 32) {
316
+ var low = this.low_;
317
+ return Long.fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits);
318
+ } else if (numBits == 32) {
319
+ return Long.fromBits(high, 0);
320
+ } else {
321
+ return Long.fromBits(high >>> numBits - 32, 0);
322
+ }
323
+ }
324
+ }
325
+ static fromInt(value) {
326
+ var intValue = value | 0;
327
+ asserts.assert(value === intValue, "value should be a 32-bit integer");
328
+ if (-128 <= intValue && intValue < 128) {
329
+ return getCachedIntValue_(intValue);
330
+ } else {
331
+ return new Long(intValue, intValue < 0 ? -1 : 0);
332
+ }
333
+ }
334
+ static fromNumber(value) {
335
+ if (value > 0) {
336
+ if (value >= TWO_PWR_63_DBL_) {
337
+ return Long.getMaxValue();
338
+ }
339
+ return new Long(value, value / TWO_PWR_32_DBL_);
340
+ } else if (value < 0) {
341
+ if (value <= -TWO_PWR_63_DBL_) {
342
+ return Long.getMinValue();
343
+ }
344
+ return (new Long(-value, -value / TWO_PWR_32_DBL_)).negate();
345
+ } else {
346
+ return Long.getZero();
347
+ }
348
+ }
349
+ static fromBits(lowBits, highBits) {
350
+ return new Long(lowBits, highBits);
351
+ }
352
+ static fromString(str, opt_radix) {
353
+ if (str.charAt(0) == "-") {
354
+ return Long.fromString(str.substring(1), opt_radix).negate();
355
+ }
356
+ var numberValue = parseInt(str, opt_radix || 10);
357
+ if (numberValue <= MAX_SAFE_INTEGER_) {
358
+ return new Long(numberValue % TWO_PWR_32_DBL_ | 0, numberValue / TWO_PWR_32_DBL_ | 0);
359
+ }
360
+ if (str.length == 0) {
361
+ throw new Error("number format error: empty string");
362
+ }
363
+ if (str.indexOf("-") >= 0) {
364
+ throw new Error('number format error: interior "-" character: ' + str);
365
+ }
366
+ var radix = opt_radix || 10;
367
+ if (radix < 2 || 36 < radix) {
368
+ throw new Error("radix out of range: " + radix);
369
+ }
370
+ var radixToPower = Long.fromNumber(Math.pow(radix, 8));
371
+ var result = Long.getZero();
372
+ var i = 0;
373
+ for (; i < str.length; i = i + 8) {
374
+ var size = Math.min(8, str.length - i);
375
+ var value = parseInt(str.substring(i, i + size), radix);
376
+ if (size < 8) {
377
+ var power = Long.fromNumber(Math.pow(radix, size));
378
+ result = result.multiply(power).add(Long.fromNumber(value));
379
+ } else {
380
+ result = result.multiply(radixToPower);
381
+ result = result.add(Long.fromNumber(value));
382
+ }
383
+ }
384
+ return result;
385
+ }
386
+ static isStringInRange(str, opt_radix) {
387
+ var radix = opt_radix || 10;
388
+ if (radix < 2 || 36 < radix) {
389
+ throw new Error("radix out of range: " + radix);
390
+ }
391
+ var extremeValue = str.charAt(0) == "-" ? MIN_VALUE_FOR_RADIX_[radix] : MAX_VALUE_FOR_RADIX_[radix];
392
+ if (str.length < extremeValue.length) {
393
+ return true;
394
+ } else if (str.length == extremeValue.length && str <= extremeValue) {
395
+ return true;
396
+ } else {
397
+ return false;
398
+ }
399
+ }
400
+ static getZero() {
401
+ return ZERO_;
402
+ }
403
+ static getOne() {
404
+ return ONE_;
405
+ }
406
+ static getNegOne() {
407
+ return NEG_ONE_;
408
+ }
409
+ static getMaxValue() {
410
+ return MAX_VALUE_;
411
+ }
412
+ static getMinValue() {
413
+ return MIN_VALUE_;
414
+ }
415
+ static getTwoPwr24() {
416
+ return TWO_PWR_24_;
417
+ }
418
+ }
419
+ exports = Long;
420
+ const IntCache_ = {};
421
+ const MAX_VALUE_FOR_RADIX_ = ["", "", "111111111111111111111111111111111111111111111111111111111111111", "2021110011022210012102010021220101220221", "13333333333333333333333333333333", "1104332401304422434310311212", "1540241003031030222122211", "22341010611245052052300", "777777777777777777777", "67404283172107811827", "9223372036854775807", "1728002635214590697", "41a792678515120367", "10b269549075433c37", "4340724c6c71dc7a7", "160e2ad3246366807", "7fffffffffffffff", "33d3d8307b214008", "16agh595df825fa7",
422
+ "ba643dci0ffeehh", "5cbfjia3fh26ja7", "2heiciiie82dh97", "1adaibb21dckfa7", "i6k448cf4192c2", "acd772jnc9l0l7", "64ie1focnn5g77", "3igoecjbmca687", "27c48l5b37oaop", "1bk39f3ah3dmq7", "q1se8f0m04isb", "hajppbc1fc207", "bm03i95hia437", "7vvvvvvvvvvvv", "5hg4ck9jd4u37", "3tdtk1v8j6tpp", "2pijmikexrxp7", "1y2p0ij32e8e7"];
423
+ const MIN_VALUE_FOR_RADIX_ = ["", "", "-1000000000000000000000000000000000000000000000000000000000000000", "-2021110011022210012102010021220101220222", "-20000000000000000000000000000000", "-1104332401304422434310311213", "-1540241003031030222122212", "-22341010611245052052301", "-1000000000000000000000", "-67404283172107811828", "-9223372036854775808", "-1728002635214590698", "-41a792678515120368", "-10b269549075433c38", "-4340724c6c71dc7a8", "-160e2ad3246366808", "-8000000000000000", "-33d3d8307b214009",
424
+ "-16agh595df825fa8", "-ba643dci0ffeehi", "-5cbfjia3fh26ja8", "-2heiciiie82dh98", "-1adaibb21dckfa8", "-i6k448cf4192c3", "-acd772jnc9l0l8", "-64ie1focnn5g78", "-3igoecjbmca688", "-27c48l5b37oaoq", "-1bk39f3ah3dmq8", "-q1se8f0m04isc", "-hajppbc1fc208", "-bm03i95hia438", "-8000000000000", "-5hg4ck9jd4u38", "-3tdtk1v8j6tpq", "-2pijmikexrxp8", "-1y2p0ij32e8e8"];
425
+ const MAX_SAFE_INTEGER_ = 9007199254740991;
426
+ const TWO_PWR_32_DBL_ = 4294967296;
427
+ const TWO_PWR_63_DBL_ = 0x7fffffffffffffff;
428
+ const ZERO_ = Long.fromBits(0, 0);
429
+ const ONE_ = Long.fromBits(1, 0);
430
+ const NEG_ONE_ = Long.fromBits(-1, -1);
431
+ const MAX_VALUE_ = Long.fromBits(4294967295, 2147483647);
432
+ const MIN_VALUE_ = Long.fromBits(0, 2147483648);
433
+ const TWO_PWR_24_ = Long.fromBits(1 << 24, 0);
434
+ return exports;
435
+ });
436
+
437
+ //# sourceMappingURL=goog.math.long.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version":3,
3
+ "file":"goog.math.long.js",
4
+ "lineCount":433,
5
+ "mappings":"AAAA,IAAA,CAAA,UAAA,CAAA,QAAA,CAAA,OAAA,CAAA;AAywBAA,UAASA,mBAAkB,CAACC,KAAD,CAAQ;AACjC,WAAOC,OAAQC,CAAAA,KAAR,CAAcC,SAAd,EAAyBH,KAAzB,EAAgC,QAAQ,CAACI,GAAD,CAAM;AACnD,aAAO,IAAIC,IAAJ,CAASD,GAAT,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B3B,oBAhB2B,EAiB3B,mBAjB2B,EAkB3B,mBAlB2B;AAmB3B,qBAnB2B,EAoB3B,kBApB2B,EAqB3B,kBArB2B,EAsB3B,kBAtB2B,EAuB3B,kBAvB2B,EAwB3B,iBAxB2B,EAyB3B,iBAzB2B,EA0B3B,iBA1B2B,EA2B3B,iBA3B2B,EA4B3B,iBA5B2B,EA6B3B,iBA7B2B,EA8B3B,gBA9B2B,EA+B3B,gBA/B2B,EAgC3B,gBAhC2B,EAiC3B,gBAjC2B,EAkC3B,gBAlC2B,EAmC3B,gBAnC2B,EAoC3B,gBApC2B,EAqC3B,gBArC2B,CAA7B;AA8CA,QAAMR,oBAAoB,gBAA1B;AAWA,QAAMrG,kBAAkB,UAAxB;AAOA,QAAM2F,kBAAkB,kBAAxB;AAMA,QAAMoB,QAAQ5H,IAAK2B,CAAAA,QAAL,CAAc,CAAd,EAAiB,CAAjB,CAAd;AAMA,QAAMkG,OAAO7H,IAAK2B,CAAAA,QAAL,CAAc,CAAd,EAAiB,CAAjB,CAAb;AAKA,QAAMmG,WAAW9H,IAAK2B,CAAAA,QAAL,CAAc,CAAC,CAAf,EAAkB,CAAC,CAAnB,CAAjB;AAKA,QAAMoG,aAAa/H,IAAK2B,CAAAA,QAAL,CAAc,UAAd,EAA0B,UAA1B,CAAnB;AAKA,QAAMqG,aAAahI,IAAK2B,CAAAA,QAAL,CAAc,CAAd,EAAiB,UAAjB,CAAnB;AAKA,QAAMuG,cAAclI,IAAK2B,CAAAA,QAAL,CAAc,CAAd,IAAmB,EAAnB,EAAuB,CAAvB,CAApB;AAl6BA,SAAA,OAAA;AAAA,CAAA,CAAA;;",
6
+ "sources":["goog/math/long.js"],
7
+ "sourcesContent":["/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Defines a Long class for representing a 64-bit two's-complement\n * integer value, which faithfully simulates the behavior of a Java \"long\". This\n * implementation is derived from LongLib in GWT.\n */\n\ngoog.module('goog.math.Long');\ngoog.module.declareLegacyNamespace();\n\nconst asserts = goog.require('goog.asserts');\nconst reflect = goog.require('goog.reflect');\n\n/**\n * Represents a 64-bit two's-complement integer, given its low and high 32-bit\n * values as *signed* integers. See the from* functions below for more\n * convenient ways of constructing Longs.\n *\n * The internal representation of a long is the two given signed, 32-bit values.\n * We use 32-bit pieces because these are the size of integers on which\n * JavaScript performs bit-operations. For operations like addition and\n * multiplication, we split each number into 16-bit pieces, which can easily be\n * multiplied within JavaScript's floating-point representation without overflow\n * or change in sign.\n *\n * In the algorithms below, we frequently reduce the negative case to the\n * positive case by negating the input(s) and then post-processing the result.\n * Note that we must ALWAYS check specially whether those values are MIN_VALUE\n * (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as\n * a positive number, it overflows back into a negative). Not handling this\n * case would often result in infinite recursion.\n * @final\n */\nclass Long {\n /**\n * @param {number} low The low (signed) 32 bits of the long.\n * @param {number} high The high (signed) 32 bits of the long.\n */\n constructor(low, high) {\n /**\n * @const {number}\n * @private\n */\n this.low_ = low | 0; // force into 32 signed bits.\n\n /**\n * @const {number}\n * @private\n */\n this.high_ = high | 0; // force into 32 signed bits.\n }\n\n /** @return {number} The value, assuming it is a 32-bit integer. */\n toInt() {\n return this.low_;\n }\n\n /**\n * @return {number} The closest floating-point representation to this value.\n */\n toNumber() {\n return this.high_ * TWO_PWR_32_DBL_ + this.getLowBitsUnsigned();\n }\n\n /**\n * @return {boolean} if can be exactly represented using number (i.e.\n * abs(value) < 2^53).\n */\n isSafeInteger() {\n var top11Bits = this.high_ >> 21;\n // If top11Bits are all 0s, then the number is between [0, 2^53-1]\n return top11Bits == 0\n // If top11Bits are all 1s, then the number is between [-1, -2^53]\n || (top11Bits == -1\n // and exclude -2^53\n && !(this.low_ == 0 && this.high_ == (0xffe00000 | 0)));\n }\n\n /**\n * @param {number=} opt_radix The radix in which the text should be written.\n * @return {string} The textual representation of this value.\n * @override\n */\n toString(opt_radix) {\n var radix = opt_radix || 10;\n if (radix < 2 || 36 < radix) {\n throw new Error('radix out of range: ' + radix);\n }\n\n // We can avoid very expensive division based code path for some common\n // cases.\n if (this.isSafeInteger()) {\n var asNumber = this.toNumber();\n // Shortcutting for radix 10 (common case) to avoid boxing via toString:\n // https://jsperf.com/tostring-vs-vs-if\n return radix == 10 ? ('' + asNumber) : asNumber.toString(radix);\n }\n\n // We need to split 64bit integer into: `a * radix**safeDigits + b` where\n // neither `a` nor `b` exceeds 53 bits, meaning that safeDigits can be any\n // number in a range: [(63 - 53) / log2(radix); 53 / log2(radix)].\n\n // Other options that need to be benchmarked:\n // 11..16 - (radix >> 2);\n // 10..13 - (radix >> 3);\n // 10..11 - (radix >> 4);\n var safeDigits = 14 - (radix >> 2);\n\n var radixPowSafeDigits = Math.pow(radix, safeDigits);\n var radixToPower =\n Long.fromBits(radixPowSafeDigits, radixPowSafeDigits / TWO_PWR_32_DBL_);\n\n var remDiv = this.div(radixToPower);\n var val = Math.abs(this.subtract(remDiv.multiply(radixToPower)).toNumber());\n var digits = radix == 10 ? ('' + val) : val.toString(radix);\n\n if (digits.length < safeDigits) {\n // Up to 13 leading 0s we might need to insert as the greatest safeDigits\n // value is 14 (for radix 2).\n digits = '0000000000000'.slice(digits.length - safeDigits) + digits;\n }\n\n val = remDiv.toNumber();\n return (radix == 10 ? val : val.toString(radix)) + digits;\n }\n\n /**\n * @param {number=} opt_radix The radix in which the text should be written.\n * @return {string} The unsigned textual representation of this value.\n */\n toUnsignedString(opt_radix) {\n // If the sign bit isn't even set just use the normal flow\n if (this.high_ >= 0) {\n return this.toString(opt_radix);\n }\n\n var radix = opt_radix || 10;\n if (radix < 2 || 36 < radix) {\n throw new Error('radix out of range: ' + radix);\n }\n // Use fromInt() to get the 64-bit representation of the radix as the entire\n // radix range should be cached.\n var longRadix = Long.fromInt(radix);\n // Divide as unsigned 64-bit numbers.\n var quotient = this.shiftRightUnsigned(1).div(longRadix).shiftLeft(1);\n var remainder = this.subtract(quotient.multiply(longRadix));\n // Check if we need to sign adjust the quotient.\n if (remainder.greaterThanOrEqual(longRadix)) {\n quotient = quotient.add(Long.getOne());\n remainder = this.subtract(quotient.multiply(longRadix));\n }\n return quotient.toString(radix) + remainder.toString(radix);\n }\n\n /** @return {number} The high 32-bits as a signed value. */\n getHighBits() {\n return this.high_;\n }\n\n /** @return {number} The low 32-bits as a signed value. */\n getLowBits() {\n return this.low_;\n }\n\n /** @return {number} The low 32-bits as an unsigned value. */\n getLowBitsUnsigned() {\n // The right shifting fixes negative values in the case when\n // intval >= 2^31; for more details see\n // https://github.com/google/closure-library/pull/498\n return this.low_ >>> 0;\n }\n\n /**\n * @return {number} Returns the number of bits needed to represent the\n * absolute value of this Long.\n */\n getNumBitsAbs() {\n if (this.isNegative()) {\n if (this.equals(Long.getMinValue())) {\n return 64;\n } else {\n return this.negate().getNumBitsAbs();\n }\n } else {\n var val = this.high_ != 0 ? this.high_ : this.low_;\n for (var bit = 31; bit > 0; bit--) {\n if ((val & (1 << bit)) != 0) {\n break;\n }\n }\n return this.high_ != 0 ? bit + 33 : bit + 1;\n }\n }\n\n /** @return {boolean} Whether this value is zero. */\n isZero() {\n // Check low part first as there is high chance it's not 0.\n return this.low_ == 0 && this.high_ == 0;\n }\n\n /** @return {boolean} Whether this value is negative. */\n isNegative() {\n return this.high_ < 0;\n }\n\n /** @return {boolean} Whether this value is odd. */\n isOdd() {\n return (this.low_ & 1) == 1;\n }\n\n /**\n * Returns a hash code for this long object that similar java.lang.Long one.\n *\n * @return {number} 32 bit hash code for this object.\n */\n hashCode() {\n return this.getLowBits() ^ this.getHighBits();\n }\n\n /**\n * @param {?Long} other Long to compare against.\n * @return {boolean} Whether this Long equals the other.\n */\n equals(other) {\n // Compare low parts first as there is higher chance they are different.\n return (this.low_ == other.low_) && (this.high_ == other.high_);\n }\n\n /**\n * @param {?Long} other Long to compare against.\n * @return {boolean} Whether this Long does not equal the other.\n */\n notEquals(other) {\n return !this.equals(other);\n }\n\n /**\n * @param {?Long} other Long to compare against.\n * @return {boolean} Whether this Long is less than the other.\n */\n lessThan(other) {\n return this.compare(other) < 0;\n }\n\n /**\n * @param {?Long} other Long to compare against.\n * @return {boolean} Whether this Long is less than or equal to the other.\n */\n lessThanOrEqual(other) {\n return this.compare(other) <= 0;\n }\n\n /**\n * @param {?Long} other Long to compare against.\n * @return {boolean} Whether this Long is greater than the other.\n */\n greaterThan(other) {\n return this.compare(other) > 0;\n }\n\n /**\n * @param {?Long} other Long to compare against.\n * @return {boolean} Whether this Long is greater than or equal to the other.\n */\n greaterThanOrEqual(other) {\n return this.compare(other) >= 0;\n }\n\n /**\n * Compares this Long with the given one.\n * @param {?Long} other Long to compare against.\n * @return {number} 0 if they are the same, 1 if the this is greater, and -1\n * if the given one is greater.\n */\n compare(other) {\n if (this.high_ == other.high_) {\n if (this.low_ == other.low_) {\n return 0;\n }\n return this.getLowBitsUnsigned() > other.getLowBitsUnsigned() ? 1 : -1;\n }\n return this.high_ > other.high_ ? 1 : -1;\n }\n\n /** @return {!Long} The negation of this value. */\n negate() {\n var negLow = (~this.low_ + 1) | 0;\n var overflowFromLow = !negLow;\n var negHigh = (~this.high_ + overflowFromLow) | 0;\n return Long.fromBits(negLow, negHigh);\n }\n\n /**\n * Returns the sum of this and the given Long.\n * @param {?Long} other Long to add to this one.\n * @return {!Long} The sum of this and the given Long.\n */\n add(other) {\n // Divide each number into 4 chunks of 16 bits, and then sum the chunks.\n\n var a48 = this.high_ >>> 16;\n var a32 = this.high_ & 0xFFFF;\n var a16 = this.low_ >>> 16;\n var a00 = this.low_ & 0xFFFF;\n\n var b48 = other.high_ >>> 16;\n var b32 = other.high_ & 0xFFFF;\n var b16 = other.low_ >>> 16;\n var b00 = other.low_ & 0xFFFF;\n\n var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\n c00 += a00 + b00;\n c16 += c00 >>> 16;\n c00 &= 0xFFFF;\n c16 += a16 + b16;\n c32 += c16 >>> 16;\n c16 &= 0xFFFF;\n c32 += a32 + b32;\n c48 += c32 >>> 16;\n c32 &= 0xFFFF;\n c48 += a48 + b48;\n c48 &= 0xFFFF;\n return Long.fromBits((c16 << 16) | c00, (c48 << 16) | c32);\n }\n\n /**\n * Returns the difference of this and the given Long.\n * @param {?Long} other Long to subtract from this.\n * @return {!Long} The difference of this and the given Long.\n */\n subtract(other) {\n return this.add(other.negate());\n }\n\n /**\n * Returns the product of this and the given long.\n * @param {?Long} other Long to multiply with this.\n * @return {!Long} The product of this and the other.\n */\n multiply(other) {\n if (this.isZero()) {\n return this;\n }\n if (other.isZero()) {\n return other;\n }\n\n // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.\n // We can skip products that would overflow.\n\n var a48 = this.high_ >>> 16;\n var a32 = this.high_ & 0xFFFF;\n var a16 = this.low_ >>> 16;\n var a00 = this.low_ & 0xFFFF;\n\n var b48 = other.high_ >>> 16;\n var b32 = other.high_ & 0xFFFF;\n var b16 = other.low_ >>> 16;\n var b00 = other.low_ & 0xFFFF;\n\n var c48 = 0, c32 = 0, c16 = 0, c00 = 0;\n c00 += a00 * b00;\n c16 += c00 >>> 16;\n c00 &= 0xFFFF;\n c16 += a16 * b00;\n c32 += c16 >>> 16;\n c16 &= 0xFFFF;\n c16 += a00 * b16;\n c32 += c16 >>> 16;\n c16 &= 0xFFFF;\n c32 += a32 * b00;\n c48 += c32 >>> 16;\n c32 &= 0xFFFF;\n c32 += a16 * b16;\n c48 += c32 >>> 16;\n c32 &= 0xFFFF;\n c32 += a00 * b32;\n c48 += c32 >>> 16;\n c32 &= 0xFFFF;\n c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;\n c48 &= 0xFFFF;\n return Long.fromBits((c16 << 16) | c00, (c48 << 16) | c32);\n }\n\n /**\n * Returns this Long divided by the given one.\n * @param {?Long} other Long by which to divide.\n * @return {!Long} This Long divided by the given one.\n */\n div(other) {\n if (other.isZero()) {\n throw new Error('division by zero');\n }\n if (this.isNegative()) {\n if (this.equals(Long.getMinValue())) {\n if (other.equals(Long.getOne()) || other.equals(Long.getNegOne())) {\n return Long.getMinValue(); // recall -MIN_VALUE == MIN_VALUE\n }\n if (other.equals(Long.getMinValue())) {\n return Long.getOne();\n }\n // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.\n var halfThis = this.shiftRight(1);\n var approx = halfThis.div(other).shiftLeft(1);\n if (approx.equals(Long.getZero())) {\n return other.isNegative() ? Long.getOne() : Long.getNegOne();\n }\n var rem = this.subtract(other.multiply(approx));\n var result = approx.add(rem.div(other));\n return result;\n }\n if (other.isNegative()) {\n return this.negate().div(other.negate());\n }\n return this.negate().div(other).negate();\n }\n if (this.isZero()) {\n return Long.getZero();\n }\n if (other.isNegative()) {\n if (other.equals(Long.getMinValue())) {\n return Long.getZero();\n }\n return this.div(other.negate()).negate();\n }\n\n // Repeat the following until the remainder is less than other: find a\n // floating-point that approximates remainder / other *from below*, add this\n // into the result, and subtract it from the remainder. It is critical that\n // the approximate value is less than or equal to the real value so that the\n // remainder never becomes negative.\n var res = Long.getZero();\n var rem = this;\n while (rem.greaterThanOrEqual(other)) {\n // Approximate the result of division. This may be a little greater or\n // smaller than the actual value.\n var approx = Math.max(1, Math.floor(rem.toNumber() / other.toNumber()));\n\n // We will tweak the approximate result by changing it in the 48-th digit\n // or the smallest non-fractional digit, whichever is larger.\n var log2 = Math.ceil(Math.log(approx) / Math.LN2);\n var delta = (log2 <= 48) ? 1 : Math.pow(2, log2 - 48);\n\n // Decrease the approximation until it is smaller than the remainder. Note\n // that if it is too large, the product overflows and is negative.\n var approxRes = Long.fromNumber(approx);\n var approxRem = approxRes.multiply(other);\n while (approxRem.isNegative() || approxRem.greaterThan(rem)) {\n approx -= delta;\n approxRes = Long.fromNumber(approx);\n approxRem = approxRes.multiply(other);\n }\n\n // We know the answer can't be zero... and actually, zero would cause\n // infinite recursion since we would make no progress.\n if (approxRes.isZero()) {\n approxRes = Long.getOne();\n }\n\n res = res.add(approxRes);\n rem = rem.subtract(approxRem);\n }\n return res;\n }\n\n /**\n * Returns this Long modulo the given one.\n * @param {?Long} other Long by which to mod.\n * @return {!Long} This Long modulo the given one.\n */\n modulo(other) {\n return this.subtract(this.div(other).multiply(other));\n }\n\n /** @return {!Long} The bitwise-NOT of this value. */\n not() {\n return Long.fromBits(~this.low_, ~this.high_);\n }\n\n /**\n * Returns the bitwise-AND of this Long and the given one.\n * @param {?Long} other The Long with which to AND.\n * @return {!Long} The bitwise-AND of this and the other.\n */\n and(other) {\n return Long.fromBits(this.low_ & other.low_, this.high_ & other.high_);\n }\n\n /**\n * Returns the bitwise-OR of this Long and the given one.\n * @param {?Long} other The Long with which to OR.\n * @return {!Long} The bitwise-OR of this and the other.\n */\n or(other) {\n return Long.fromBits(this.low_ | other.low_, this.high_ | other.high_);\n }\n\n /**\n * Returns the bitwise-XOR of this Long and the given one.\n * @param {?Long} other The Long with which to XOR.\n * @return {!Long} The bitwise-XOR of this and the other.\n */\n xor(other) {\n return Long.fromBits(this.low_ ^ other.low_, this.high_ ^ other.high_);\n }\n\n /**\n * Returns this Long with bits shifted to the left by the given amount.\n * @param {number} numBits The number of bits by which to shift.\n * @return {!Long} This shifted to the left by the given amount.\n */\n shiftLeft(numBits) {\n numBits &= 63;\n if (numBits == 0) {\n return this;\n } else {\n var low = this.low_;\n if (numBits < 32) {\n var high = this.high_;\n return Long.fromBits(\n low << numBits, (high << numBits) | (low >>> (32 - numBits)));\n } else {\n return Long.fromBits(0, low << (numBits - 32));\n }\n }\n }\n\n /**\n * Returns this Long with bits shifted to the right by the given amount.\n * The new leading bits match the current sign bit.\n * @param {number} numBits The number of bits by which to shift.\n * @return {!Long} This shifted to the right by the given amount.\n */\n shiftRight(numBits) {\n numBits &= 63;\n if (numBits == 0) {\n return this;\n } else {\n var high = this.high_;\n if (numBits < 32) {\n var low = this.low_;\n return Long.fromBits(\n (low >>> numBits) | (high << (32 - numBits)), high >> numBits);\n } else {\n return Long.fromBits(high >> (numBits - 32), high >= 0 ? 0 : -1);\n }\n }\n }\n\n /**\n * Returns this Long with bits shifted to the right by the given amount, with\n * zeros placed into the new leading bits.\n * @param {number} numBits The number of bits by which to shift.\n * @return {!Long} This shifted to the right by the given amount,\n * with zeros placed into the new leading bits.\n */\n shiftRightUnsigned(numBits) {\n numBits &= 63;\n if (numBits == 0) {\n return this;\n } else {\n var high = this.high_;\n if (numBits < 32) {\n var low = this.low_;\n return Long.fromBits(\n (low >>> numBits) | (high << (32 - numBits)), high >>> numBits);\n } else if (numBits == 32) {\n return Long.fromBits(high, 0);\n } else {\n return Long.fromBits(high >>> (numBits - 32), 0);\n }\n }\n }\n\n /**\n * Returns a Long representing the given (32-bit) integer value.\n * @param {number} value The 32-bit integer in question.\n * @return {!Long} The corresponding Long value.\n */\n static fromInt(value) {\n var intValue = value | 0;\n asserts.assert(value === intValue, 'value should be a 32-bit integer');\n\n if (-128 <= intValue && intValue < 128) {\n return getCachedIntValue_(intValue);\n } else {\n return new Long(intValue, intValue < 0 ? -1 : 0);\n }\n }\n\n /**\n * Returns a Long representing the given value.\n * NaN will be returned as zero. Infinity is converted to max value and\n * -Infinity to min value.\n * @param {number} value The number in question.\n * @return {!Long} The corresponding Long value.\n */\n static fromNumber(value) {\n if (value > 0) {\n if (value >= TWO_PWR_63_DBL_) {\n return Long.getMaxValue();\n }\n return new Long(value, value / TWO_PWR_32_DBL_);\n } else if (value < 0) {\n if (value <= -TWO_PWR_63_DBL_) {\n return Long.getMinValue();\n }\n return new Long(-value, -value / TWO_PWR_32_DBL_).negate();\n } else {\n // NaN or 0.\n return Long.getZero();\n }\n }\n\n /**\n * Returns a Long representing the 64-bit integer that comes by concatenating\n * the given high and low bits. Each is assumed to use 32 bits.\n * @param {number} lowBits The low 32-bits.\n * @param {number} highBits The high 32-bits.\n * @return {!Long} The corresponding Long value.\n */\n static fromBits(lowBits, highBits) {\n return new Long(lowBits, highBits);\n }\n\n /**\n * Returns a Long representation of the given string, written using the given\n * radix.\n * @param {string} str The textual representation of the Long.\n * @param {number=} opt_radix The radix in which the text is written.\n * @return {!Long} The corresponding Long value.\n */\n static fromString(str, opt_radix) {\n if (str.charAt(0) == '-') {\n return Long.fromString(str.substring(1), opt_radix).negate();\n }\n\n // We can avoid very expensive multiply based code path for some common\n // cases.\n var numberValue = parseInt(str, opt_radix || 10);\n if (numberValue <= MAX_SAFE_INTEGER_) {\n return new Long(\n (numberValue % TWO_PWR_32_DBL_) | 0,\n (numberValue / TWO_PWR_32_DBL_) | 0);\n }\n\n if (str.length == 0) {\n throw new Error('number format error: empty string');\n }\n if (str.indexOf('-') >= 0) {\n throw new Error('number format error: interior \"-\" character: ' + str);\n }\n\n var radix = opt_radix || 10;\n if (radix < 2 || 36 < radix) {\n throw new Error('radix out of range: ' + radix);\n }\n\n // Do several (8) digits each time through the loop, so as to\n // minimize the calls to the very expensive emulated multiply.\n var radixToPower = Long.fromNumber(Math.pow(radix, 8));\n\n var result = Long.getZero();\n for (var i = 0; i < str.length; i += 8) {\n var size = Math.min(8, str.length - i);\n var value = parseInt(str.substring(i, i + size), radix);\n if (size < 8) {\n var power = Long.fromNumber(Math.pow(radix, size));\n result = result.multiply(power).add(Long.fromNumber(value));\n } else {\n result = result.multiply(radixToPower);\n result = result.add(Long.fromNumber(value));\n }\n }\n return result;\n }\n\n /**\n * Returns the boolean value of whether the input string is within a Long's\n * range. Assumes an input string containing only numeric characters with an\n * optional preceding '-'.\n * @param {string} str The textual representation of the Long.\n * @param {number=} opt_radix The radix in which the text is written.\n * @return {boolean} Whether the string is within the range of a Long.\n */\n static isStringInRange(str, opt_radix) {\n var radix = opt_radix || 10;\n if (radix < 2 || 36 < radix) {\n throw new Error('radix out of range: ' + radix);\n }\n\n var extremeValue = (str.charAt(0) == '-') ? MIN_VALUE_FOR_RADIX_[radix] :\n MAX_VALUE_FOR_RADIX_[radix];\n\n if (str.length < extremeValue.length) {\n return true;\n } else if (str.length == extremeValue.length && str <= extremeValue) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @return {!Long}\n * @public\n */\n static getZero() {\n return ZERO_;\n }\n\n /**\n * @return {!Long}\n * @public\n */\n static getOne() {\n return ONE_;\n }\n\n /**\n * @return {!Long}\n * @public\n */\n static getNegOne() {\n return NEG_ONE_;\n }\n\n /**\n * @return {!Long}\n * @public\n */\n static getMaxValue() {\n return MAX_VALUE_;\n }\n\n /**\n * @return {!Long}\n * @public\n */\n static getMinValue() {\n return MIN_VALUE_;\n }\n\n /**\n * @return {!Long}\n * @public\n */\n static getTwoPwr24() {\n return TWO_PWR_24_;\n }\n}\n\nexports = Long;\n\n// NOTE: Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the\n// from* methods on which they depend.\n\n\n/**\n * A cache of the Long representations of small integer values.\n * @type {!Object<number, !Long>}\n * @private @const\n */\nconst IntCache_ = {};\n\n\n/**\n * Returns a cached long number representing the given (32-bit) integer value.\n * @param {number} value The 32-bit integer in question.\n * @return {!Long} The corresponding Long value.\n * @private\n */\nfunction getCachedIntValue_(value) {\n return reflect.cache(IntCache_, value, function(val) {\n return new Long(val, val < 0 ? -1 : 0);\n });\n}\n\n/**\n * The array of maximum values of a Long in string representation for a given\n * radix between 2 and 36, inclusive.\n * @private @const {!Array<string>}\n */\nconst MAX_VALUE_FOR_RADIX_ = [\n '', '', // unused\n '111111111111111111111111111111111111111111111111111111111111111',\n // base 2\n '2021110011022210012102010021220101220221', // base 3\n '13333333333333333333333333333333', // base 4\n '1104332401304422434310311212', // base 5\n '1540241003031030222122211', // base 6\n '22341010611245052052300', // base 7\n '777777777777777777777', // base 8\n '67404283172107811827', // base 9\n '9223372036854775807', // base 10\n '1728002635214590697', // base 11\n '41a792678515120367', // base 12\n '10b269549075433c37', // base 13\n '4340724c6c71dc7a7', // base 14\n '160e2ad3246366807', // base 15\n '7fffffffffffffff', // base 16\n '33d3d8307b214008', // base 17\n '16agh595df825fa7', // base 18\n 'ba643dci0ffeehh', // base 19\n '5cbfjia3fh26ja7', // base 20\n '2heiciiie82dh97', // base 21\n '1adaibb21dckfa7', // base 22\n 'i6k448cf4192c2', // base 23\n 'acd772jnc9l0l7', // base 24\n '64ie1focnn5g77', // base 25\n '3igoecjbmca687', // base 26\n '27c48l5b37oaop', // base 27\n '1bk39f3ah3dmq7', // base 28\n 'q1se8f0m04isb', // base 29\n 'hajppbc1fc207', // base 30\n 'bm03i95hia437', // base 31\n '7vvvvvvvvvvvv', // base 32\n '5hg4ck9jd4u37', // base 33\n '3tdtk1v8j6tpp', // base 34\n '2pijmikexrxp7', // base 35\n '1y2p0ij32e8e7' // base 36\n];\n\n\n/**\n * The array of minimum values of a Long in string representation for a given\n * radix between 2 and 36, inclusive.\n * @private @const {!Array<string>}\n */\nconst MIN_VALUE_FOR_RADIX_ = [\n '', '', // unused\n '-1000000000000000000000000000000000000000000000000000000000000000',\n // base 2\n '-2021110011022210012102010021220101220222', // base 3\n '-20000000000000000000000000000000', // base 4\n '-1104332401304422434310311213', // base 5\n '-1540241003031030222122212', // base 6\n '-22341010611245052052301', // base 7\n '-1000000000000000000000', // base 8\n '-67404283172107811828', // base 9\n '-9223372036854775808', // base 10\n '-1728002635214590698', // base 11\n '-41a792678515120368', // base 12\n '-10b269549075433c38', // base 13\n '-4340724c6c71dc7a8', // base 14\n '-160e2ad3246366808', // base 15\n '-8000000000000000', // base 16\n '-33d3d8307b214009', // base 17\n '-16agh595df825fa8', // base 18\n '-ba643dci0ffeehi', // base 19\n '-5cbfjia3fh26ja8', // base 20\n '-2heiciiie82dh98', // base 21\n '-1adaibb21dckfa8', // base 22\n '-i6k448cf4192c3', // base 23\n '-acd772jnc9l0l8', // base 24\n '-64ie1focnn5g78', // base 25\n '-3igoecjbmca688', // base 26\n '-27c48l5b37oaoq', // base 27\n '-1bk39f3ah3dmq8', // base 28\n '-q1se8f0m04isc', // base 29\n '-hajppbc1fc208', // base 30\n '-bm03i95hia438', // base 31\n '-8000000000000', // base 32\n '-5hg4ck9jd4u38', // base 33\n '-3tdtk1v8j6tpq', // base 34\n '-2pijmikexrxp8', // base 35\n '-1y2p0ij32e8e8' // base 36\n];\n\n/**\n * TODO(goktug): Replace with Number.MAX_SAFE_INTEGER when polyfil is guaranteed\n * to be removed.\n * @type {number}\n * @private @const\n */\nconst MAX_SAFE_INTEGER_ = 0x1fffffffffffff;\n\n// NOTE: the compiler should inline these constant values below and then remove\n// these variables, so there should be no runtime penalty for these.\n\n/**\n * Number used repeated below in calculations. This must appear before the\n * first call to any from* function above.\n * @const {number}\n * @private\n */\nconst TWO_PWR_32_DBL_ = 0x100000000;\n\n\n/**\n * @const {number}\n * @private\n */\nconst TWO_PWR_63_DBL_ = 0x8000000000000000;\n\n\n/**\n * @private @const {!Long}\n */\nconst ZERO_ = Long.fromBits(0, 0);\n\n\n/**\n * @private @const {!Long}\n */\nconst ONE_ = Long.fromBits(1, 0);\n\n/**\n * @private @const {!Long}\n */\nconst NEG_ONE_ = Long.fromBits(-1, -1);\n\n/**\n * @private @const {!Long}\n */\nconst MAX_VALUE_ = Long.fromBits(0xFFFFFFFF, 0x7FFFFFFF);\n\n/**\n * @private @const {!Long}\n */\nconst MIN_VALUE_ = Long.fromBits(0, 0x80000000);\n\n/**\n * @private @const {!Long}\n */\nconst TWO_PWR_24_ = Long.fromBits(1 << 24, 0);\n"],
8
+ "names":["getCachedIntValue_","value","reflect","cache","IntCache_","val","Long","goog","module","declareLegacyNamespace","asserts","require","constructor","low","high","low_","high_","toInt","toNumber","TWO_PWR_32_DBL_","getLowBitsUnsigned","isSafeInteger","top11Bits","toString","opt_radix","radix","Error","asNumber","safeDigits","radixPowSafeDigits","Math","pow","radixToPower","fromBits","remDiv","div","abs","subtract","multiply","digits","length","slice","toUnsignedString","longRadix","fromInt","quotient","shiftRightUnsigned","shiftLeft","remainder","greaterThanOrEqual","add","getOne","getHighBits","getLowBits","getNumBitsAbs","isNegative","equals","getMinValue","negate","bit","isZero","isOdd","hashCode","other","notEquals","lessThan","compare","lessThanOrEqual","greaterThan","negLow","overflowFromLow","negHigh","a48","a32","a16","a00","b48","b32","b16","b00","c48","c32","c16","c00","getNegOne","halfThis","shiftRight","approx","getZero","rem","result","res","max","floor","log2","ceil","log","LN2","delta","approxRes","fromNumber","approxRem","modulo","not","and","or","xor","numBits","intValue","assert","TWO_PWR_63_DBL_","getMaxValue","lowBits","highBits","fromString","str","charAt","substring","numberValue","parseInt","MAX_SAFE_INTEGER_","indexOf","i","size","min","power","isStringInRange","extremeValue","MIN_VALUE_FOR_RADIX_","MAX_VALUE_FOR_RADIX_","ZERO_","ONE_","NEG_ONE_","MAX_VALUE_","MIN_VALUE_","getTwoPwr24","TWO_PWR_24_","exports"]
9
+ }