summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2015-04-29 16:44:19 +0300
committerPekka Hyvönen <pekka@vaadin.com>2015-04-30 10:50:40 +0300
commitbbf30fff168fd4a9552d23c8341e27aa1821884b (patch)
tree6a8b0dc7f71ce2ec0b5cd9136624243650668e1e
parent98f22b3a664034b655c08f7c20dbe4219052865b (diff)
downloadvaadin-framework-bbf30fff168fd4a9552d23c8341e27aa1821884b.tar.gz
vaadin-framework-bbf30fff168fd4a9552d23c8341e27aa1821884b.zip
Details row decorator and border positioning and sizes (#17423)
IE8 still isn't pixel perfect, but you can't have 'em all. Change-Id: I1780441f130032503d783657103066f502dce570
-rw-r--r--WebContent/VAADIN/themes/base/escalator/escalator.scss12
-rw-r--r--WebContent/VAADIN/themes/base/grid/grid.scss3
-rw-r--r--client/src/com/vaadin/client/WidgetUtil.java120
-rw-r--r--client/src/com/vaadin/client/widgets/Escalator.java60
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java10
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/GridDetailsLocationTest.java101
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridDetailsClientTest.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorSpacerTest.java2
8 files changed, 246 insertions, 63 deletions
diff --git a/WebContent/VAADIN/themes/base/escalator/escalator.scss b/WebContent/VAADIN/themes/base/escalator/escalator.scss
index bae95b299c..73d45854b9 100644
--- a/WebContent/VAADIN/themes/base/escalator/escalator.scss
+++ b/WebContent/VAADIN/themes/base/escalator/escalator.scss
@@ -136,20 +136,14 @@
.#{$primaryStyleName}-spacer {
position: absolute;
display: block;
-
+
background-color: $background-color;
-
+
> td {
width: 100%;
height: 100%;
+ @include box-sizing(border-box);
}
- .v-ie8 &, .v-ie9 & {
- // The inline style of margin-top from the <tbody> to offset the
- // header's dimension is, for some strange reason, inherited into each
- // contained <tr>. We need to cancel it:
-
- margin-top: 0;
- }
}
}
diff --git a/WebContent/VAADIN/themes/base/grid/grid.scss b/WebContent/VAADIN/themes/base/grid/grid.scss
index ee503822b9..531abb1ff1 100644
--- a/WebContent/VAADIN/themes/base/grid/grid.scss
+++ b/WebContent/VAADIN/themes/base/grid/grid.scss
@@ -456,8 +456,9 @@ $v-grid-details-border-bottom-stripe: 1px solid darken($v-grid-row-background-co
}
.#{$primaryStyleName}-spacer-deco-container {
+ border-top: $v-grid-border-size solid transparent; // same size as table wrapper border
position: relative;
- top: $v-grid-border-size;
+ top: 0; // escalator will override top for scrolling and margin-top for header offset.
z-index: 5;
}
diff --git a/client/src/com/vaadin/client/WidgetUtil.java b/client/src/com/vaadin/client/WidgetUtil.java
index 5f88f6da46..a9cd23c841 100644
--- a/client/src/com/vaadin/client/WidgetUtil.java
+++ b/client/src/com/vaadin/client/WidgetUtil.java
@@ -1459,4 +1459,124 @@ public class WidgetUtil {
return Logger.getLogger(WidgetUtil.class.getName());
}
+ /**
+ * Returns the thickness of the given element's top border.
+ * <p>
+ * The value is determined using computed style when available and
+ * calculated otherwise.
+ *
+ * @since
+ * @param element
+ * the element to measure
+ * @return the top border thickness
+ */
+ public static double getBorderTopThickness(Element element) {
+ return getBorderThickness(element, new String[] { "borderTopWidth" });
+ }
+
+ /**
+ * Returns the thickness of the given element's bottom border.
+ * <p>
+ * The value is determined using computed style when available and
+ * calculated otherwise.
+ *
+ * @since
+ * @param element
+ * the element to measure
+ * @return the bottom border thickness
+ */
+ public static double getBorderBottomThickness(Element element) {
+ return getBorderThickness(element, new String[] { "borderBottomWidth" });
+ }
+
+ /**
+ * Returns the combined thickness of the given element's top and bottom
+ * borders.
+ * <p>
+ * The value is determined using computed style when available and
+ * calculated otherwise.
+ *
+ * @since
+ * @param element
+ * the element to measure
+ * @return the top and bottom border thickness
+ */
+ public static double getBorderTopAndBottomThickness(Element element) {
+ return getBorderThickness(element, new String[] { "borderTopWidth",
+ "borderBottomWidth" });
+ }
+
+ /**
+ * Returns the thickness of the given element's left border.
+ * <p>
+ * The value is determined using computed style when available and
+ * calculated otherwise.
+ *
+ * @since
+ * @param element
+ * the element to measure
+ * @return the left border thickness
+ */
+ public static double getBorderLeftThickness(Element element) {
+ return getBorderThickness(element, new String[] { "borderLeftWidth" });
+ }
+
+ /**
+ * Returns the thickness of the given element's right border.
+ * <p>
+ * The value is determined using computed style when available and
+ * calculated otherwise.
+ *
+ * @since
+ * @param element
+ * the element to measure
+ * @return the right border thickness
+ */
+ public static double getBorderRightThickness(Element element) {
+ return getBorderThickness(element, new String[] { "borderRightWidth" });
+ }
+
+ /**
+ * Returns the thickness of the given element's left and right borders.
+ * <p>
+ * The value is determined using computed style when available and
+ * calculated otherwise.
+ *
+ * @since
+ * @param element
+ * the element to measure
+ * @return the top border thickness
+ */
+ public static double getBorderLeftAndRightThickness(Element element) {
+ return getBorderThickness(element, new String[] { "borderLeftWidth",
+ "borderRightWidth" });
+ }
+
+ private static native double getBorderThickness(
+ com.google.gwt.dom.client.Element element, String[] borderNames)
+ /*-{
+ if (typeof $wnd.getComputedStyle === 'function') {
+ var computedStyle = $wnd.getComputedStyle(element);
+ var width = 0;
+ for (i=0; i< borderNames.length; i++) {
+ var borderWidth = computedStyle[borderNames[i]];
+ width += parseFloat(borderWidth);
+ }
+ return width;
+ } else {
+ var parentElement = element.offsetParent;
+ var cloneElement = element.cloneNode(false);
+ cloneElement.style.boxSizing ="content-box";
+ parentElement.appendChild(cloneElement);
+ cloneElement.style.height = "10px"; // IE8 wants the height to be set to something...
+ var heightWithBorder = cloneElement.offsetHeight;
+ for (i=0; i< borderNames.length; i++) {
+ cloneElement.style[borderNames[i]] = "0";
+ }
+ var heightWithoutBorder = cloneElement.offsetHeight;
+ parentElement.removeChild(cloneElement);
+
+ return heightWithBorder - heightWithoutBorder;
+ }
+ }-*/;
}
diff --git a/client/src/com/vaadin/client/widgets/Escalator.java b/client/src/com/vaadin/client/widgets/Escalator.java
index 17236c5e30..0cd59ce7ed 100644
--- a/client/src/com/vaadin/client/widgets/Escalator.java
+++ b/client/src/com/vaadin/client/widgets/Escalator.java
@@ -4580,6 +4580,7 @@ public class Escalator extends Widget implements RequiresResize,
private double height = -1;
private boolean domHasBeenSetup = false;
private double decoHeight;
+ private double defaultCellBorderBottomSize = -1;
public SpacerImpl(int rowIndex) {
this.rowIndex = rowIndex;
@@ -4620,7 +4621,12 @@ public class Escalator extends Widget implements RequiresResize,
public void setPosition(double x, double y) {
positions.set(getRootElement(), x, y);
- positions.set(getDecoElement(), 0, y);
+ positions
+ .set(getDecoElement(), 0, y - getSpacerDecoTopOffset());
+ }
+
+ private double getSpacerDecoTopOffset() {
+ return getBody().getDefaultRowHeight();
}
public void setStylePrimaryName(String style) {
@@ -4637,7 +4643,18 @@ public class Escalator extends Widget implements RequiresResize,
final double oldHeight = this.height;
this.height = height;
- root.getStyle().setHeight(height, Unit.PX);
+
+ // since the spacer might be rendered on top of the previous
+ // rows border (done with css), need to increase height the
+ // amount of the border thickness
+ if (defaultCellBorderBottomSize < 0) {
+ defaultCellBorderBottomSize = WidgetUtil
+ .getBorderBottomThickness(body.getRowElement(
+ getVisibleRowRange().getStart())
+ .getFirstChildElement());
+ }
+ root.getStyle().setHeight(height + defaultCellBorderBottomSize,
+ Unit.PX);
// move the visible spacers getRow row onwards.
shiftSpacerPositionsAfterRow(getRow(), heightDiff);
@@ -4722,34 +4739,9 @@ public class Escalator extends Widget implements RequiresResize,
private void updateDecoratorGeometry(double detailsHeight) {
Style style = deco.getStyle();
decoHeight = detailsHeight + getBody().getDefaultRowHeight();
-
- style.setTop(
- -(getBody().getDefaultRowHeight() - getBorderTopHeight(getElement())),
- Unit.PX);
style.setHeight(decoHeight, Unit.PX);
}
- private native double getBorderTopHeight(Element spacerCell)
- /*-{
- if (typeof $wnd.getComputedStyle === 'function') {
- var computedStyle = $wnd.getComputedStyle(spacerCell);
- var borderTopWidth = computedStyle['borderTopWidth'];
- var width = parseFloat(borderTopWidth);
- return width;
- } else {
- var spacerRow = spacerCell.offsetParent;
- var cloneCell = spacerCell.cloneNode(false);
- spacerRow.appendChild(cloneCell);
- cloneCell.style.height = "10px"; // IE8 wants the height to be set to something...
- var heightWithBorder = cloneCell.offsetHeight;
- cloneCell.style.borderTopWidth = "0";
- var heightWithoutBorder = cloneCell.offsetHeight;
- spacerRow.removeChild(cloneCell);
-
- return heightWithBorder - heightWithoutBorder;
- }
- }-*/;
-
@Override
public Element getElement() {
return spacerElement;
@@ -4807,10 +4799,12 @@ public class Escalator extends Widget implements RequiresResize,
public void show() {
getRootElement().getStyle().clearDisplay();
+ getDecoElement().getStyle().clearDisplay();
}
public void hide() {
getRootElement().getStyle().setDisplay(Display.NONE);
+ getDecoElement().getStyle().setDisplay(Display.NONE);
}
/**
@@ -4832,9 +4826,10 @@ public class Escalator extends Widget implements RequiresResize,
final double topClip = Math.max(0.0D, bodyTop - top);
final double bottomClip = decoHeight
- Math.max(0.0D, bottom - bodyBottom);
+ // TODO [optimize] not sure how GWT compiles this
final String clip = new StringBuilder("rect(")
.append(topClip).append("px,").append(decoWidth)
- .append("px,").append(bottomClip).append("px,0")
+ .append("px,").append(bottomClip).append("px,0)")
.toString();
deco.getStyle().setProperty("clip", clip);
} else {
@@ -5258,16 +5253,21 @@ public class Escalator extends Widget implements RequiresResize,
spacerScrollerRegistration = addScrollHandler(spacerScroller);
}
- SpacerImpl spacer = new SpacerImpl(rowIndex);
+ final SpacerImpl spacer = new SpacerImpl(rowIndex);
rowIndexToSpacer.put(rowIndex, spacer);
- spacer.setPosition(getScrollLeft(), calculateSpacerTop(rowIndex));
+ // set the position before adding it to DOM
+ positions.set(spacer.getRootElement(), getScrollLeft(),
+ calculateSpacerTop(rowIndex));
TableRowElement spacerRoot = spacer.getRootElement();
spacerRoot.getStyle().setWidth(
columnConfiguration.calculateRowWidth(), Unit.PX);
body.getElement().appendChild(spacerRoot);
spacer.setupDom(height);
+ // set the deco position, requires that spacer is in the DOM
+ positions.set(spacer.getDecoElement(), 0,
+ spacer.getTop() - spacer.getSpacerDecoTopOffset());
spacerDecoContainer.appendChild(spacer.getDecoElement());
if (spacerDecoContainer.getParentElement() == null) {
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 08a86fe6a7..4951997995 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -2899,9 +2899,17 @@ public class Grid<T> extends ResizeComposite implements
/*
* Once we have the content properly inside the DOM, we should
* re-measure it to make sure that it's the correct height.
+ *
+ * This is rather tricky, since the row (tr) will get the
+ * height, but the spacer cell (td) has the borders, which
+ * should go on top of the previous row and next row.
*/
- double measuredHeight = WidgetUtil
+ double requiredHeightBoundingClientRectDouble = WidgetUtil
.getRequiredHeightBoundingClientRectDouble(element);
+ double borderTopAndBottomHeight = WidgetUtil
+ .getBorderTopAndBottomThickness(spacerElement);
+ double measuredHeight = requiredHeightBoundingClientRectDouble
+ + borderTopAndBottomHeight;
assert getElement().isOrHasChild(spacerElement) : "The spacer element wasn't in the DOM during measurement, but was assumed to be.";
spacerHeight = measuredHeight;
}
diff --git a/uitest/src/com/vaadin/tests/components/grid/GridDetailsLocationTest.java b/uitest/src/com/vaadin/tests/components/grid/GridDetailsLocationTest.java
index 06e79ac509..c14503fb8d 100644
--- a/uitest/src/com/vaadin/tests/components/grid/GridDetailsLocationTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/GridDetailsLocationTest.java
@@ -28,6 +28,7 @@ import org.openqa.selenium.Keys;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
+import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.ExpectedCondition;
import com.vaadin.testbench.TestBenchElement;
@@ -35,6 +36,7 @@ import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.CheckBoxElement;
import com.vaadin.testbench.elements.GridElement.GridRowElement;
import com.vaadin.testbench.elements.TextFieldElement;
+import com.vaadin.testbench.parallel.Browser;
import com.vaadin.testbench.parallel.TestCategory;
import com.vaadin.tests.components.grid.basicfeatures.element.CustomGridElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
@@ -42,8 +44,9 @@ import com.vaadin.tests.tb3.MultiBrowserTest;
@TestCategory("grid")
public class GridDetailsLocationTest extends MultiBrowserTest {
- private static final int decoratorDefaultHeight = 50;
- private static final int decoratorDefinedHeight = 30;
+ private static final int detailsDefaultHeight = 51;
+ private static final int detailsDefinedHeight = 33;
+ private static final int detailsDefinedHeightIE8 = 31;
private static class Param {
private final int rowIndex;
@@ -81,16 +84,9 @@ public class GridDetailsLocationTest extends MultiBrowserTest {
public static Collection<Param> parameters() {
List<Param> data = new ArrayList<Param>();
- int[][] params = new int[][] {// @formatter:off
- // row, top+noGen, top+gen
- { 0, decoratorDefaultHeight, decoratorDefinedHeight },
- { 500, decoratorDefaultHeight, decoratorDefinedHeight },
- { 999, decoratorDefaultHeight, decoratorDefinedHeight},
- };
- // @formatter:on
+ int[] params = new int[] { 0, 500, 999 };
- for (int i[] : params) {
- int rowIndex = i[0];
+ for (int rowIndex : params) {
data.add(new Param(rowIndex, false, false));
data.add(new Param(rowIndex, true, false));
@@ -144,29 +140,72 @@ public class GridDetailsLocationTest extends MultiBrowserTest {
}
@Test
- public void testDecoratorHeightWithNoGenerator() {
+ public void testDetailsHeightWithNoGenerator() {
openTestURL();
toggleAndScroll(5);
- verifyDetailsRowHeight(5, decoratorDefaultHeight);
+ verifyDetailsRowHeight(5, detailsDefaultHeight, 0);
+ verifyDetailsDecoratorLocation(5, 0, 0);
+
+ toggleAndScroll(0);
+
+ verifyDetailsRowHeight(0, detailsDefaultHeight, 0);
+ verifyDetailsDecoratorLocation(0, 0, 1);
+
+ verifyDetailsRowHeight(5, detailsDefaultHeight, 1);
+ verifyDetailsDecoratorLocation(5, 1, 0);
}
@Test
- public void testDecoratorHeightWithGenerator() {
+ public void testDetailsHeightWithGenerator() {
openTestURL();
useGenerator(true);
toggleAndScroll(5);
- verifyDetailsRowHeight(5, decoratorDefinedHeight);
+ verifyDetailsRowHeight(5, getDefinedHeight(), 0);
+ verifyDetailsDecoratorLocation(5, 0, 0);
+
+ toggleAndScroll(0);
+
+ verifyDetailsRowHeight(0, getDefinedHeight(), 0);
+ // decorator elements are in DOM in the order they have been added
+ verifyDetailsDecoratorLocation(0, 0, 1);
+
+ verifyDetailsRowHeight(5, getDefinedHeight(), 1);
+ verifyDetailsDecoratorLocation(5, 1, 0);
+ }
+
+ private int getDefinedHeight() {
+ boolean ie8 = isIE8();
+ return ie8 ? detailsDefinedHeightIE8 : detailsDefinedHeight;
}
- private void verifyDetailsRowHeight(int rowIndex, int expectedHeight) {
+ private void verifyDetailsRowHeight(int rowIndex, int expectedHeight,
+ int visibleIndexOfSpacer) {
waitForDetailsVisible();
- WebElement details = getDetailsElement();
+ WebElement details = getDetailsElement(visibleIndexOfSpacer);
Assert.assertEquals("Wrong details row height", expectedHeight, details
.getSize().getHeight());
}
+ private void verifyDetailsDecoratorLocation(int row,
+ int visibleIndexOfSpacer, int visibleIndexOfDeco) {
+ WebElement detailsElement = getDetailsElement(visibleIndexOfSpacer);
+ WebElement detailsDecoElement = getDetailsDecoElement(visibleIndexOfDeco);
+ GridRowElement rowElement = getGrid().getRow(row);
+
+ Assert.assertEquals(
+ "Details deco top position does not match row top pos",
+ rowElement.getLocation().getY(), detailsDecoElement
+ .getLocation().getY());
+ Assert.assertEquals(
+ "Details deco bottom position does not match details bottom pos",
+ detailsElement.getLocation().getY()
+ + detailsElement.getSize().getHeight(),
+ detailsDecoElement.getLocation().getY()
+ + detailsDecoElement.getSize().getHeight());
+ }
+
private void verifyLocation(Param param) {
Assert.assertFalse("Notification was present",
isElementPresent(By.className("v-Notification")));
@@ -193,6 +232,11 @@ public class GridDetailsLocationTest extends MultiBrowserTest {
+ bottomBoundary + " decoratorBotton:" + detailsBottom,
detailsBottom, bottomBoundary);
+ verifyDetailsRowHeight(param.getRowIndex(),
+ param.useGenerator() ? getDefinedHeight()
+ : detailsDefaultHeight, 0);
+ verifyDetailsDecoratorLocation(param.getRowIndex(), 0, 0);
+
Assert.assertFalse("Notification was present",
isElementPresent(By.className("v-Notification")));
}
@@ -200,7 +244,15 @@ public class GridDetailsLocationTest extends MultiBrowserTest {
private final By locator = By.className("v-grid-spacer");
private WebElement getDetailsElement() {
- return findElement(locator);
+ return getDetailsElement(0);
+ }
+
+ private WebElement getDetailsElement(int index) {
+ return findElements(locator).get(index);
+ }
+
+ private WebElement getDetailsDecoElement(int index) {
+ return findElements(By.className("v-grid-spacer-deco")).get(index);
}
private void waitForDetailsVisible() {
@@ -242,6 +294,16 @@ public class GridDetailsLocationTest extends MultiBrowserTest {
}
}
+ private boolean isIE8() {
+ DesiredCapabilities desiredCapabilities = getDesiredCapabilities();
+ DesiredCapabilities ie8Capabilities = Browser.IE8
+ .getDesiredCapabilities();
+ return desiredCapabilities.getBrowserName().equals(
+ ie8Capabilities.getBrowserName())
+ && desiredCapabilities.getVersion().equals(
+ ie8Capabilities.getVersion());
+ }
+
@SuppressWarnings("boxing")
private boolean isCheckedValo(CheckBoxElement checkBoxElement) {
WebElement checkbox = checkBoxElement.findElement(By.tagName("input"));
@@ -296,5 +358,4 @@ public class GridDetailsLocationTest extends MultiBrowserTest {
By.className("v-grid-scroller-horizontal"));
return scrollBar;
}
-
-}
+} \ No newline at end of file
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridDetailsClientTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridDetailsClientTest.java
index 619033226c..88158c7f6f 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridDetailsClientTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridDetailsClientTest.java
@@ -182,7 +182,6 @@ public class GridDetailsClientTest extends GridBasicClientFeaturesTest {
getGridElement().getDetails(1);
}
-
@Test
public void rowElementClassNames() {
toggleDetailsFor(0);
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorSpacerTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorSpacerTest.java
index e044c192f7..66c131255f 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorSpacerTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorSpacerTest.java
@@ -417,7 +417,7 @@ public class EscalatorSpacerTest extends EscalatorBasicClientFeaturesTest {
public void spacersAreInCorrectDomPositionAfterScroll() {
selectMenuPath(FEATURES, SPACERS, ROW_1, SET_100PX);
- scrollVerticallyTo(30); // roughly one row's worth
+ scrollVerticallyTo(32); // roughly one row's worth
WebElement tbody = getEscalator().findElement(By.tagName("tbody"));
WebElement spacer = getChild(tbody, 1);
stable28 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/tests/TrashbinTest.php
blob: 3b1fff31fe1a67de354bc30a2e127550c52ed4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706