FlutterViewController.mm 19.1 KB
Newer Older
1
// Copyright 2016 The Chromium Authors. All rights reserved.
C
Chinmay Garde 已提交
2 3 4
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

5
#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterViewController.h"
C
Chinmay Garde 已提交
6

A
Adam Barth 已提交
7 8
#include <memory>

9 10 11
#include "base/mac/scoped_block.h"
#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
A
Adam Barth 已提交
12
#include "flutter/common/threads.h"
13 14 15
#include "flutter/shell/gpu/gpu_rasterizer.h"
#include "flutter/shell/gpu/gpu_surface_gl.h"
#include "flutter/shell/platform/darwin/common/platform_mac.h"
16
#include "flutter/shell/platform/darwin/common/string_conversions.h"
17
#include "flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject_Internal.h"
18
#include "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.h"
19 20
#include "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputDelegate.h"
#include "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h"
21
#include "flutter/shell/platform/darwin/ios/framework/Source/flutter_touch_mapper.h"
22
#include "flutter/shell/platform/darwin/ios/platform_view_ios.h"
A
Adam Barth 已提交
23
#include "lib/ftl/functional/make_copyable.h"
24
#include "lib/ftl/time/time_delta.h"
25

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
namespace {

typedef void (^PlatformMessageResponseCallback)(NSString*);

class PlatformMessageResponseDarwin : public blink::PlatformMessageResponse {
  FRIEND_MAKE_REF_COUNTED(PlatformMessageResponseDarwin);

 public:
  void Complete(std::vector<uint8_t> data) override {
    ftl::RefPtr<PlatformMessageResponseDarwin> self(this);
    blink::Threads::Platform()->PostTask(
        ftl::MakeCopyable([ self, data = std::move(data) ]() mutable {
          self->callback_.get()(shell::GetNSStringFromVector(data));
        }));
  }

  void CompleteWithError() override { Complete(std::vector<uint8_t>()); }

 private:
45 46
  explicit PlatformMessageResponseDarwin(
      PlatformMessageResponseCallback callback)
47 48 49 50 51 52 53
      : callback_(callback, base::scoped_policy::RETAIN) {}

  base::mac::ScopedBlock<PlatformMessageResponseCallback> callback_;
};

}  // namespace

54 55
@interface FlutterViewController ()<UIAlertViewDelegate,
                                    FlutterTextInputDelegate>
56 57
@end

58 59 60
void FlutterInit(int argc, const char* argv[]) {
  NSBundle* bundle = [NSBundle bundleForClass:[FlutterViewController class]];
  NSString* icuDataPath = [bundle pathForResource:@"icudtl" ofType:@"dat"];
61 62 63 64
  NSString* libraryName =
      [[NSBundle mainBundle] objectForInfoDictionaryKey:@"FLTLibraryPath"];
  shell::PlatformMacMain(argc, argv, icuDataPath.UTF8String,
                         libraryName != nil ? libraryName.UTF8String : "");
65 66
}

67
@implementation FlutterViewController {
68
  base::scoped_nsprotocol<FlutterDartProject*> _dartProject;
69
  UIInterfaceOrientationMask _orientationPreferences;
70
  UIStatusBarStyle _statusBarStyle;
71
  blink::ViewportMetrics _viewportMetrics;
72 73
  shell::TouchMapper _touchMapper;
  std::unique_ptr<shell::PlatformViewIOS> _platformView;
74
  base::scoped_nsprotocol<FlutterPlatformPlugin*> _platformPlugin;
75
  base::scoped_nsprotocol<FlutterTextInputPlugin*> _textInputPlugin;
76

77
  BOOL _initialized;
78 79
}

80 81
#pragma mark - Manage and override all designated initializers

82 83 84 85
- (instancetype)initWithProject:(FlutterDartProject*)project
                        nibName:(NSString*)nibNameOrNil
                         bundle:(NSBundle*)nibBundleOrNil {
  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
86

87
  if (self) {
88
    if (project == nil)
89 90
      _dartProject.reset(
          [[FlutterDartProject alloc] initFromDefaultSourceForConfiguration]);
91 92
    else
      _dartProject.reset([project retain]);
93 94

    [self performCommonViewControllerInitialization];
95
  }
96

97
  return self;
C
Chinmay Garde 已提交
98 99
}

100 101
- (instancetype)initWithNibName:(NSString*)nibNameOrNil
                         bundle:(NSBundle*)nibBundleOrNil {
102
  return [self initWithProject:nil nibName:nil bundle:nil];
C
Chinmay Garde 已提交
103 104
}

105
- (instancetype)initWithCoder:(NSCoder*)aDecoder {
106
  return [self initWithProject:nil nibName:nil bundle:nil];
107 108
}

109
#pragma mark - Common view controller initialization tasks
C
Chinmay Garde 已提交
110

111
- (void)performCommonViewControllerInitialization {
112
  if (_initialized)
113 114
    return;
  _initialized = YES;
C
Chinmay Garde 已提交
115

116
  _orientationPreferences = UIInterfaceOrientationMaskAll;
117
  _statusBarStyle = UIStatusBarStyleDefault;
A
Adam Barth 已提交
118
  _platformView = std::make_unique<shell::PlatformViewIOS>(
119 120
      reinterpret_cast<CAEAGLLayer*>(self.view.layer));
  _platformView->SetupResourceContextOnIOThread();
C
Chinmay Garde 已提交
121

122 123 124
  _platformPlugin.reset([[FlutterPlatformPlugin alloc] init]);
  [self addMessageListener:_platformPlugin.get()];

125 126 127 128
  _textInputPlugin.reset([[FlutterTextInputPlugin alloc] init]);
  _textInputPlugin.get().textInputDelegate = self;
  [self addMessageListener:_textInputPlugin.get()];

129
  [self setupNotificationCenterObservers];
C
Chinmay Garde 已提交
130

131
  [self connectToEngineAndLoad];
C
Chinmay Garde 已提交
132 133
}

134 135 136 137
- (void)setupNotificationCenterObservers {
  NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
  [center addObserver:self
             selector:@selector(onOrientationPreferencesUpdated:)
A
Adam Barth 已提交
138
                 name:@(shell::kOrientationUpdateNotificationName)
139 140
               object:nil];

141 142
  [center addObserver:self
             selector:@selector(onPreferredStatusBarStyleUpdated:)
A
Adam Barth 已提交
143
                 name:@(shell::kOverlayStyleUpdateNotificationName)
144 145
               object:nil];

146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
  [center addObserver:self
             selector:@selector(applicationBecameActive:)
                 name:UIApplicationDidBecomeActiveNotification
               object:nil];

  [center addObserver:self
             selector:@selector(applicationWillResignActive:)
                 name:UIApplicationWillResignActiveNotification
               object:nil];

  [center addObserver:self
             selector:@selector(keyboardWasShown:)
                 name:UIKeyboardDidShowNotification
               object:nil];

  [center addObserver:self
             selector:@selector(keyboardWillBeHidden:)
                 name:UIKeyboardWillHideNotification
               object:nil];

  [center addObserver:self
             selector:@selector(onLocaleUpdated:)
                 name:NSCurrentLocaleDidChangeNotification
               object:nil];
170 171 172 173 174

  [center addObserver:self
             selector:@selector(onVoiceOverChanged:)
                 name:UIAccessibilityVoiceOverStatusChanged
               object:nil];
C
Chinmay Garde 已提交
175 176
}

177
#pragma mark - Initializing the engine
178

179
- (void)alertView:(UIAlertView*)alertView
180
    clickedButtonAtIndex:(NSInteger)buttonIndex {
181 182 183
  exit(0);
}

184
- (void)connectToEngineAndLoad {
C
Chinmay Garde 已提交
185
  TRACE_EVENT0("flutter", "connectToEngineAndLoad");
186

187
  // We ask the VM to check what it supports.
188 189
  const enum VMType type =
      Dart_IsPrecompiledRuntime() ? VMTypePrecompilation : VMTypeInterpreter;
190

A
Adam Barth 已提交
191
  [_dartProject launchInEngine:&_platformView->engine()
192 193 194 195 196 197
                embedderVMType:type
                        result:^(BOOL success, NSString* message) {
                          if (!success) {
                            UIAlertView* alert = [[UIAlertView alloc]
                                    initWithTitle:@"Launch Error"
                                          message:message
198
                                         delegate:self
199 200 201 202 203 204
                                cancelButtonTitle:@"OK"
                                otherButtonTitles:nil];
                            [alert show];
                            [alert release];
                          }
                        }];
205 206 207 208 209
}

#pragma mark - Loading the view

- (void)loadView {
210
  FlutterView* view = [[FlutterView alloc] init];
211

212
  self.view = view;
213 214 215 216
  self.view.multipleTouchEnabled = YES;
  self.view.autoresizingMask =
      UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

217
  [view release];
218 219 220 221 222
}

#pragma mark - Application lifecycle notifications

- (void)applicationBecameActive:(NSNotification*)notification {
223 224
  [self sendString:@"AppLifecycleState.resumed"
      withMessageName:@"flutter/lifecycle"];
225 226 227
}

- (void)applicationWillResignActive:(NSNotification*)notification {
228 229
  [self sendString:@"AppLifecycleState.paused"
      withMessageName:@"flutter/lifecycle"];
230 231 232 233 234 235 236 237 238 239
}

#pragma mark - Touch event handling

enum MapperPhase {
  Accessed,
  Added,
  Removed,
};

240 241
using PointerChangeMapperPhase =
    std::pair<blink::PointerData::Change, MapperPhase>;
A
Adam Barth 已提交
242
static inline PointerChangeMapperPhase PointerChangePhaseFromUITouchPhase(
243 244 245
    UITouchPhase phase) {
  switch (phase) {
    case UITouchPhaseBegan:
A
Adam Barth 已提交
246 247
      return PointerChangeMapperPhase(blink::PointerData::Change::kDown,
                                      MapperPhase::Added);
248 249 250 251
    case UITouchPhaseMoved:
    case UITouchPhaseStationary:
      // There is no EVENT_TYPE_POINTER_STATIONARY. So we just pass a move type
      // with the same coordinates
A
Adam Barth 已提交
252 253
      return PointerChangeMapperPhase(blink::PointerData::Change::kMove,
                                      MapperPhase::Accessed);
254
    case UITouchPhaseEnded:
A
Adam Barth 已提交
255 256
      return PointerChangeMapperPhase(blink::PointerData::Change::kUp,
                                      MapperPhase::Removed);
257
    case UITouchPhaseCancelled:
A
Adam Barth 已提交
258 259
      return PointerChangeMapperPhase(blink::PointerData::Change::kCancel,
                                      MapperPhase::Removed);
260 261
  }

A
Adam Barth 已提交
262 263
  return PointerChangeMapperPhase(blink::PointerData::Change::kCancel,
                                  MapperPhase::Accessed);
264
}
C
Chinmay Garde 已提交
265 266

- (void)dispatchTouches:(NSSet*)touches phase:(UITouchPhase)phase {
A
Adam Barth 已提交
267
  auto eventTypePhase = PointerChangePhaseFromUITouchPhase(phase);
C
Chinmay Garde 已提交
268
  const CGFloat scale = [UIScreen mainScreen].scale;
A
Adam Barth 已提交
269
  auto packet = std::make_unique<blink::PointerDataPacket>(touches.count);
C
Chinmay Garde 已提交
270

A
Adam Barth 已提交
271
  int i = 0;
C
Chinmay Garde 已提交
272
  for (UITouch* touch in touches) {
273
    int device_id = 0;
274 275 276

    switch (eventTypePhase.second) {
      case Accessed:
277
        device_id = _touchMapper.identifierOf(touch);
278 279
        break;
      case Added:
280
        device_id = _touchMapper.registerTouch(touch);
281 282
        break;
      case Removed:
283
        device_id = _touchMapper.unregisterTouch(touch);
284 285
        break;
    }
286

287
    DCHECK(device_id != 0);
C
Chinmay Garde 已提交
288
    CGPoint windowCoordinates = [touch locationInView:nil];
289

A
Adam Barth 已提交
290 291 292
    blink::PointerData pointer_data;
    pointer_data.Clear();

293 294
    constexpr int kMicrosecondsPerSecond = 1000 * 1000;
    pointer_data.time_stamp = touch.timestamp * kMicrosecondsPerSecond;
A
Adam Barth 已提交
295 296
    pointer_data.change = eventTypePhase.first;
    pointer_data.kind = blink::PointerData::DeviceKind::kTouch;
297
    pointer_data.device = device_id;
A
Adam Barth 已提交
298 299 300 301 302 303
    pointer_data.physical_x = windowCoordinates.x * scale;
    pointer_data.physical_y = windowCoordinates.y * scale;
    pointer_data.pressure = 1.0;
    pointer_data.pressure_max = 1.0;

    packet->SetPointerData(i++, pointer_data);
C
Chinmay Garde 已提交
304
  }
305

A
Adam Barth 已提交
306
  blink::Threads::UI()->PostTask(ftl::MakeCopyable([
307 308 309 310 311
    engine = _platformView->engine().GetWeakPtr(), packet = std::move(packet)
  ] {
    if (engine.get())
      engine->DispatchPointerDataPacket(*packet);
  }));
C
Chinmay Garde 已提交
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
}

- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
  [self dispatchTouches:touches phase:UITouchPhaseBegan];
}

- (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
  [self dispatchTouches:touches phase:UITouchPhaseMoved];
}

- (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event {
  [self dispatchTouches:touches phase:UITouchPhaseEnded];
}

- (void)touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event {
  [self dispatchTouches:touches phase:UITouchPhaseCancelled];
}

330
#pragma mark - Handle view resizing
331

332 333
- (void)updateViewportMetrics {
  blink::Threads::UI()->PostTask([
334
    weak_platform_view = _platformView->GetWeakPtr(), metrics = _viewportMetrics
335
  ] {
336 337 338 339 340
    if (!weak_platform_view) {
      return;
    }
    weak_platform_view->UpdateSurfaceSize();
    weak_platform_view->engine().SetViewportMetrics(metrics);
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
- (bool)isWindowFullscreen {
  UIWindow *window = self.view.window;
  return CGRectEqualToRect(window.frame, window.screen.bounds);
}

- (CGFloat)statusBarPadding {
  // If we're a child of a containing view, let the container apply padding.
  if (self.parentViewController != nil) {
    return 0.0;
  }

  // If not fullscreen, assume we don't want padding.
  if (![self isWindowFullscreen]) {
    return 0.0;
  }

  UIScreen *screen = self.view.window.screen;
  CGRect statusFrame = [UIApplication sharedApplication].statusBarFrame;
  CGRect viewFrame = [self.view convertRect:self.view.bounds
                          toCoordinateSpace:screen.coordinateSpace];
  CGFloat padding = statusFrame.origin.y + statusFrame.size.height - viewFrame.origin.y;
  return MAX(padding, 0.0);
}

368
- (void)viewDidLayoutSubviews {
369
  CGSize viewSize = self.view.bounds.size;
370 371
  CGFloat scale = [UIScreen mainScreen].scale;

372
  _viewportMetrics.device_pixel_ratio = scale;
373 374
  _viewportMetrics.physical_width = viewSize.width * scale;
  _viewportMetrics.physical_height = viewSize.height * scale;
375
  _viewportMetrics.physical_padding_top = [self statusBarPadding] * scale;
376
  [self updateViewportMetrics];
377 378
}

379
#pragma mark - Keyboard events
380

381 382 383 384 385
- (void)keyboardWasShown:(NSNotification*)notification {
  NSDictionary* info = [notification userInfo];
  CGFloat bottom = CGRectGetHeight(
      [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue]);
  CGFloat scale = [UIScreen mainScreen].scale;
386 387
  _viewportMetrics.physical_padding_bottom = bottom * scale;
  [self updateViewportMetrics];
388 389
}

390
- (void)keyboardWillBeHidden:(NSNotification*)notification {
391 392
  _viewportMetrics.physical_padding_bottom = 0;
  [self updateViewportMetrics];
393 394
}

395 396 397
#pragma mark - Text input delegate

- (void)updateEditingClient:(int)client withState:(NSDictionary*)state {
398 399 400 401 402
  NSDictionary* message = @{
    @"method" : @"TextInputClient.updateEditingState",
    @"args" : @[ @(client), state ],
  };
  [self sendJSON:message withMessageName:@"flutter/textinputclient"];
403 404
}

405 406 407 408 409 410 411
#pragma mark - Orientation updates

- (void)onOrientationPreferencesUpdated:(NSNotification*)notification {
  // Notifications may not be on the iOS UI thread
  dispatch_async(dispatch_get_main_queue(), ^{
    NSDictionary* info = notification.userInfo;

412
    NSNumber* update = info[@(shell::kOrientationUpdateNotificationKey)];
413 414 415 416 417 418 419 420 421 422 423 424

    if (update == nil) {
      return;
    }

    NSUInteger new_preferences = update.unsignedIntegerValue;

    if (new_preferences != _orientationPreferences) {
      _orientationPreferences = new_preferences;
      [UIViewController attemptRotationToDeviceOrientation];
    }
  });
425 426
}

427 428
- (BOOL)shouldAutorotate {
  return YES;
429 430
}

431 432 433 434
- (NSUInteger)supportedInterfaceOrientations {
  return _orientationPreferences;
}

435 436 437 438 439 440 441
#pragma mark - Accessibility

- (void)onVoiceOverChanged:(NSNotification*)notification {
#if TARGET_OS_SIMULATOR
  // There doesn't appear to be any way to determine whether the accessibility
  // inspector is enabled on the simulator. We conservatively always turn on the
  // accessibility bridge in the simulator.
442
  bool enabled = true;
443
#else
444
  bool enabled = UIAccessibilityIsVoiceOverRunning();
445
#endif
446
  _platformView->ToggleAccessibility(self.view, enabled);
447 448
}

449 450 451 452 453 454
#pragma mark - Locale updates

- (void)onLocaleUpdated:(NSNotification*)notification {
  NSLocale* currentLocale = [NSLocale currentLocale];
  NSString* languageCode = [currentLocale objectForKey:NSLocaleLanguageCode];
  NSString* countryCode = [currentLocale objectForKey:NSLocaleCountryCode];
455 456 457 458
  NSDictionary* message =
      @{ @"method" : @"setLocale",
         @"args" : @[ languageCode, countryCode ] };
  [self sendJSON:message withMessageName:@"flutter/localization"];
459 460 461 462 463
}

#pragma mark - Surface creation and teardown updates

- (void)surfaceUpdated:(BOOL)appeared {
464
  CHECK(_platformView != nullptr);
465 466

  if (appeared) {
467 468
    _platformView->NotifyCreated(
        std::make_unique<shell::GPUSurfaceGL>(_platformView.get()));
469
  } else {
470
    _platformView->NotifyDestroyed();
471 472 473
  }
}

474 475
- (void)viewDidAppear:(BOOL)animated {
  [self surfaceUpdated:YES];
476 477
  [self onLocaleUpdated:nil];
  [self onVoiceOverChanged:nil];
478 479

  [super viewWillAppear:animated];
480
}
C
Chinmay Garde 已提交
481

482 483
- (void)viewWillDisappear:(BOOL)animated {
  [self surfaceUpdated:NO];
484 485

  [super viewWillDisappear:animated];
486 487
}

C
Chinmay Garde 已提交
488
- (void)dealloc {
489
  [[NSNotificationCenter defaultCenter] removeObserver:self];
490 491
  [super dealloc];
}
492

493 494 495 496 497 498 499 500 501 502 503
#pragma mark - Status bar style

- (UIStatusBarStyle)preferredStatusBarStyle {
  return _statusBarStyle;
}

- (void)onPreferredStatusBarStyleUpdated:(NSNotification*)notification {
  // Notifications may not be on the iOS UI thread
  dispatch_async(dispatch_get_main_queue(), ^{
    NSDictionary* info = notification.userInfo;

504
    NSNumber* update = info[@(shell::kOverlayStyleUpdateNotificationKey)];
505 506 507 508 509 510 511 512 513 514 515 516 517 518

    if (update == nil) {
      return;
    }

    NSInteger style = update.integerValue;

    if (style != _statusBarStyle) {
      _statusBarStyle = static_cast<UIStatusBarStyle>(style);
      [self setNeedsStatusBarAppearanceUpdate];
    }
  });
}

519
#pragma mark - Application Messages
520

521
- (void)sendString:(NSString*)message withMessageName:(NSString*)channel {
522
  NSAssert(message, @"The message must not be null");
523 524 525
  NSAssert(channel, @"The channel must not be null");
  _platformView->DispatchPlatformMessage(
      ftl::MakeRefCounted<blink::PlatformMessage>(
526
          channel.UTF8String, shell::GetVectorFromNSString(message), nullptr));
527 528 529
}

- (void)sendString:(NSString*)message
530
    withMessageName:(NSString*)channel
531
           callback:(void (^)(NSString*))callback {
532
  NSAssert(message, @"The message must not be null");
533
  NSAssert(channel, @"The channel must not be null");
534
  NSAssert(callback, @"The callback must not be null");
535 536
  _platformView->DispatchPlatformMessage(
      ftl::MakeRefCounted<blink::PlatformMessage>(
537
          channel.UTF8String, shell::GetVectorFromNSString(message),
538
          ftl::MakeRefCounted<PlatformMessageResponseDarwin>(callback)));
539 540
}

541
- (void)sendJSON:(NSDictionary*)message withMessageName:(NSString*)channel {
542 543
  NSData* data =
      [NSJSONSerialization dataWithJSONObject:message options:0 error:nil];
544 545
  if (!data)
    return;
546
  const uint8_t* bytes = static_cast<const uint8_t*>(data.bytes);
547 548
  _platformView->DispatchPlatformMessage(
      ftl::MakeRefCounted<blink::PlatformMessage>(
549
          channel.UTF8String, std::vector<uint8_t>(bytes, bytes + data.length),
550 551 552
          nullptr));
}

553
- (void)addMessageListener:(NSObject<FlutterMessageListener>*)listener {
554
  NSAssert(listener, @"The listener must not be null");
555 556
  NSString* channel = listener.messageName;
  NSAssert(channel, @"The channel must not be null");
557 558
  _platformView->platform_message_router().SetMessageListener(
      channel.UTF8String, listener);
559 560
}

561
- (void)removeMessageListener:(NSObject<FlutterMessageListener>*)listener {
562
  NSAssert(listener, @"The listener must not be null");
563 564
  NSString* channel = listener.messageName;
  NSAssert(channel, @"The channel must not be null");
565 566
  _platformView->platform_message_router().SetMessageListener(
      channel.UTF8String, nil);
567 568
}

569 570
- (void)addAsyncMessageListener:
    (NSObject<FlutterAsyncMessageListener>*)listener {
571 572 573
  NSAssert(listener, @"The listener must not be null");
  NSString* messageName = listener.messageName;
  NSAssert(messageName, @"The messageName must not be null");
574
  _platformView->platform_message_router().SetAsyncMessageListener(
575
      messageName.UTF8String, listener);
576 577
}

578 579
- (void)removeAsyncMessageListener:
    (NSObject<FlutterAsyncMessageListener>*)listener {
580 581 582
  NSAssert(listener, @"The listener must not be null");
  NSString* messageName = listener.messageName;
  NSAssert(messageName, @"The messageName must not be null");
583
  _platformView->platform_message_router().SetAsyncMessageListener(
584
      messageName.UTF8String, nil);
C
Chinmay Garde 已提交
585 586 587
}

@end