2016-10-02 22:22:29 +00:00
|
|
|
use Printer;
|
2017-10-11 18:35:18 +00:00
|
|
|
use With;
|
2016-07-15 03:27:15 +00:00
|
|
|
use direction::Direction;
|
2016-10-02 22:22:29 +00:00
|
|
|
use event::{Event, EventResult};
|
|
|
|
use std::any::Any;
|
2017-10-11 18:35:18 +00:00
|
|
|
use std::ops::Deref;
|
2016-10-02 22:22:29 +00:00
|
|
|
use theme::ColorStyle;
|
2015-05-18 18:51:30 +00:00
|
|
|
use vec::Vec2;
|
2017-12-15 07:45:14 +00:00
|
|
|
use view::{Offset, Position, Selector, View, ViewWrapper};
|
2017-01-24 02:54:33 +00:00
|
|
|
use views::{Layer, ShadowView};
|
2015-05-15 01:38:58 +00:00
|
|
|
|
2015-05-15 00:41:17 +00:00
|
|
|
/// Simple stack of views.
|
|
|
|
/// Only the top-most view is active and can receive input.
|
|
|
|
pub struct StackView {
|
2017-12-18 17:18:23 +00:00
|
|
|
// Store layers from back to front.
|
2017-01-24 02:54:33 +00:00
|
|
|
layers: Vec<Child>,
|
2016-07-20 07:30:00 +00:00
|
|
|
last_size: Vec2,
|
2015-05-15 23:06:48 +00:00
|
|
|
}
|
|
|
|
|
2017-01-24 02:54:33 +00:00
|
|
|
enum Placement {
|
|
|
|
Floating(Position),
|
|
|
|
Fullscreen,
|
|
|
|
}
|
|
|
|
|
2017-12-18 17:18:23 +00:00
|
|
|
/// Identifies a layer in a `StackView`.
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
|
|
pub enum LayerPosition {
|
|
|
|
/// Starts from the back (bottom) of the stack.
|
|
|
|
FromBack(usize),
|
|
|
|
/// Starts from the front (top) of the stack.
|
|
|
|
FromFront(usize),
|
|
|
|
}
|
|
|
|
|
2017-01-24 02:54:33 +00:00
|
|
|
impl Placement {
|
2017-10-11 18:35:18 +00:00
|
|
|
pub fn compute_offset<S, A, P>(
|
|
|
|
&self, size: S, available: A, parent: P
|
|
|
|
) -> Vec2
|
|
|
|
where
|
|
|
|
S: Into<Vec2>,
|
|
|
|
A: Into<Vec2>,
|
|
|
|
P: Into<Vec2>,
|
2017-01-24 02:54:33 +00:00
|
|
|
{
|
|
|
|
match *self {
|
|
|
|
Placement::Floating(ref position) => {
|
|
|
|
position.compute_offset(size, available, parent)
|
|
|
|
}
|
|
|
|
Placement::Fullscreen => Vec2::zero(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-15 07:19:18 +00:00
|
|
|
// A child view can be wrapped in multiple ways.
|
|
|
|
enum ChildWrapper<T: View> {
|
|
|
|
// Some views include a shadow around.
|
|
|
|
Shadow(ShadowView<Layer<T>>),
|
|
|
|
// Some views don't (fullscreen views mostly)
|
|
|
|
Plain(Layer<T>),
|
|
|
|
}
|
|
|
|
|
2017-12-15 07:45:14 +00:00
|
|
|
impl<T: View> ChildWrapper<T> {
|
|
|
|
fn unwrap(self) -> T {
|
|
|
|
match self {
|
|
|
|
// ShadowView::into_inner and Layer::into_inner can never fail.
|
|
|
|
ChildWrapper::Shadow(shadow) => {
|
|
|
|
shadow.into_inner().ok().unwrap().into_inner().ok().unwrap()
|
|
|
|
}
|
|
|
|
ChildWrapper::Plain(layer) => layer.into_inner().ok().unwrap(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-12-15 07:19:18 +00:00
|
|
|
|
2017-12-15 07:45:14 +00:00
|
|
|
// TODO: use macros to make this less ugly?
|
|
|
|
impl<T: View> View for ChildWrapper<T> {
|
2018-01-22 17:20:32 +00:00
|
|
|
view_any!();
|
|
|
|
|
2017-12-15 07:19:18 +00:00
|
|
|
fn draw(&self, printer: &Printer) {
|
|
|
|
match *self {
|
|
|
|
ChildWrapper::Shadow(ref v) => v.draw(printer),
|
|
|
|
ChildWrapper::Plain(ref v) => v.draw(printer),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn on_event(&mut self, event: Event) -> EventResult {
|
|
|
|
match *self {
|
|
|
|
ChildWrapper::Shadow(ref mut v) => v.on_event(event),
|
|
|
|
ChildWrapper::Plain(ref mut v) => v.on_event(event),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn layout(&mut self, size: Vec2) {
|
|
|
|
match *self {
|
|
|
|
ChildWrapper::Shadow(ref mut v) => v.layout(size),
|
|
|
|
ChildWrapper::Plain(ref mut v) => v.layout(size),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn required_size(&mut self, size: Vec2) -> Vec2 {
|
|
|
|
match *self {
|
|
|
|
ChildWrapper::Shadow(ref mut v) => v.required_size(size),
|
|
|
|
ChildWrapper::Plain(ref mut v) => v.required_size(size),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn take_focus(&mut self, source: Direction) -> bool {
|
|
|
|
match *self {
|
|
|
|
ChildWrapper::Shadow(ref mut v) => v.take_focus(source),
|
|
|
|
ChildWrapper::Plain(ref mut v) => v.take_focus(source),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn call_on_any<'a>(
|
2017-12-15 07:45:14 +00:00
|
|
|
&mut self, selector: &Selector, callback: Box<FnMut(&mut Any) + 'a>
|
2017-12-15 07:19:18 +00:00
|
|
|
) {
|
|
|
|
match *self {
|
2017-12-15 07:45:14 +00:00
|
|
|
ChildWrapper::Shadow(ref mut v) => {
|
|
|
|
v.call_on_any(selector, callback)
|
|
|
|
}
|
|
|
|
ChildWrapper::Plain(ref mut v) => {
|
|
|
|
v.call_on_any(selector, callback)
|
|
|
|
}
|
2017-12-15 07:19:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn focus_view(&mut self, selector: &Selector) -> Result<(), ()> {
|
|
|
|
match *self {
|
|
|
|
ChildWrapper::Shadow(ref mut v) => v.focus_view(selector),
|
|
|
|
ChildWrapper::Plain(ref mut v) => v.focus_view(selector),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-24 02:54:33 +00:00
|
|
|
struct Child {
|
2017-12-15 07:19:18 +00:00
|
|
|
view: ChildWrapper<Box<View>>,
|
2015-05-15 23:06:48 +00:00
|
|
|
size: Vec2,
|
2017-01-24 02:54:33 +00:00
|
|
|
placement: Placement,
|
|
|
|
|
|
|
|
// We cannot call `take_focus` until we've called `layout()`
|
2017-10-11 18:51:46 +00:00
|
|
|
// (for instance, a textView must know it will scroll to be focusable).
|
|
|
|
// So we want to call `take_focus` right after the first call to `layout`.
|
|
|
|
// This flag remembers when we've done that.
|
2015-05-31 04:53:25 +00:00
|
|
|
virgin: bool,
|
2015-05-15 00:41:17 +00:00
|
|
|
}
|
|
|
|
|
2016-07-17 00:28:42 +00:00
|
|
|
new_default!(StackView);
|
2016-06-28 05:40:11 +00:00
|
|
|
|
2015-05-15 00:41:17 +00:00
|
|
|
impl StackView {
|
|
|
|
/// Creates a new empty StackView
|
|
|
|
pub fn new() -> Self {
|
2016-07-20 07:30:00 +00:00
|
|
|
StackView {
|
|
|
|
layers: Vec::new(),
|
|
|
|
last_size: Vec2::zero(),
|
|
|
|
}
|
2015-05-15 00:41:17 +00:00
|
|
|
}
|
2015-05-15 00:48:24 +00:00
|
|
|
|
2017-01-24 02:54:33 +00:00
|
|
|
/// Adds a new full-screen layer on top of the stack.
|
|
|
|
///
|
|
|
|
/// Fullscreen layers have no shadow.
|
|
|
|
pub fn add_fullscreen_layer<T>(&mut self, view: T)
|
2017-10-11 18:35:18 +00:00
|
|
|
where
|
|
|
|
T: 'static + View,
|
2017-01-24 02:54:33 +00:00
|
|
|
{
|
2017-12-15 07:19:18 +00:00
|
|
|
let boxed: Box<View> = Box::new(view);
|
2017-01-24 02:54:33 +00:00
|
|
|
self.layers.push(Child {
|
2017-12-15 07:19:18 +00:00
|
|
|
view: ChildWrapper::Plain(Layer::new(boxed)),
|
2017-01-24 02:54:33 +00:00
|
|
|
size: Vec2::zero(),
|
|
|
|
placement: Placement::Fullscreen,
|
|
|
|
virgin: true,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-07-02 02:19:43 +00:00
|
|
|
/// Adds new view on top of the stack in the center of the screen.
|
2017-01-24 02:54:33 +00:00
|
|
|
pub fn add_layer<T>(&mut self, view: T)
|
2017-10-11 18:35:18 +00:00
|
|
|
where
|
|
|
|
T: 'static + View,
|
2017-01-24 02:54:33 +00:00
|
|
|
{
|
2016-07-02 02:19:43 +00:00
|
|
|
self.add_layer_at(Position::center(), view);
|
|
|
|
}
|
|
|
|
|
2017-04-03 17:41:18 +00:00
|
|
|
/// Adds new view on top of the stack in the center of the screen.
|
|
|
|
///
|
|
|
|
/// Chainable variant.
|
|
|
|
pub fn layer<T>(self, view: T) -> Self
|
2017-10-11 18:35:18 +00:00
|
|
|
where
|
|
|
|
T: 'static + View,
|
2017-04-03 17:41:18 +00:00
|
|
|
{
|
|
|
|
self.with(|s| s.add_layer(view))
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Adds a new full-screen layer on top of the stack.
|
|
|
|
///
|
|
|
|
/// Chainable variant.
|
|
|
|
pub fn fullscreen_layer<T>(self, view: T) -> Self
|
2017-10-11 18:35:18 +00:00
|
|
|
where
|
|
|
|
T: 'static + View,
|
2017-04-03 17:41:18 +00:00
|
|
|
{
|
|
|
|
self.with(|s| s.add_fullscreen_layer(view))
|
|
|
|
}
|
|
|
|
|
2016-07-02 02:19:43 +00:00
|
|
|
/// Adds a view on top of the stack.
|
2017-01-24 02:54:33 +00:00
|
|
|
pub fn add_layer_at<T>(&mut self, position: Position, view: T)
|
2017-10-11 18:35:18 +00:00
|
|
|
where
|
|
|
|
T: 'static + View,
|
2017-01-24 02:54:33 +00:00
|
|
|
{
|
2017-12-15 07:19:18 +00:00
|
|
|
let boxed: Box<View> = Box::new(view);
|
2017-01-24 02:54:33 +00:00
|
|
|
self.layers.push(Child {
|
2016-07-03 02:46:23 +00:00
|
|
|
// Skip padding for absolute/parent-placed views
|
2017-12-15 07:19:18 +00:00
|
|
|
view: ChildWrapper::Shadow(
|
|
|
|
ShadowView::new(Layer::new(boxed))
|
2017-10-11 18:35:18 +00:00
|
|
|
.top_padding(position.y == Offset::Center)
|
|
|
|
.left_padding(position.x == Offset::Center),
|
|
|
|
),
|
2016-03-15 22:37:57 +00:00
|
|
|
size: Vec2::new(0, 0),
|
2017-01-24 02:54:33 +00:00
|
|
|
placement: Placement::Floating(position),
|
2015-05-31 04:53:25 +00:00
|
|
|
virgin: true,
|
2015-05-15 23:06:48 +00:00
|
|
|
});
|
2015-05-15 01:38:58 +00:00
|
|
|
}
|
|
|
|
|
2017-04-03 17:41:18 +00:00
|
|
|
/// Adds a view on top of the stack.
|
|
|
|
///
|
|
|
|
/// Chainable variant.
|
|
|
|
pub fn layer_at<T>(self, position: Position, view: T) -> Self
|
2017-10-11 18:35:18 +00:00
|
|
|
where
|
|
|
|
T: 'static + View,
|
2017-04-03 17:41:18 +00:00
|
|
|
{
|
|
|
|
self.with(|s| s.add_layer_at(position, view))
|
|
|
|
}
|
|
|
|
|
2015-05-15 01:38:58 +00:00
|
|
|
/// Remove the top-most layer.
|
2017-12-15 07:45:14 +00:00
|
|
|
pub fn pop_layer(&mut self) -> Option<Box<View>> {
|
|
|
|
self.layers.pop().map(|child| child.view.unwrap())
|
2015-05-15 00:48:24 +00:00
|
|
|
}
|
2016-07-20 07:30:00 +00:00
|
|
|
|
|
|
|
/// Computes the offset of the current top view.
|
|
|
|
pub fn offset(&self) -> Vec2 {
|
|
|
|
let mut previous = Vec2::zero();
|
|
|
|
for layer in &self.layers {
|
2017-10-11 18:35:18 +00:00
|
|
|
let offset = layer.placement.compute_offset(
|
|
|
|
layer.size,
|
|
|
|
self.last_size,
|
|
|
|
previous,
|
|
|
|
);
|
2016-07-20 07:30:00 +00:00
|
|
|
previous = offset;
|
|
|
|
}
|
|
|
|
previous
|
|
|
|
}
|
2016-10-12 00:12:00 +00:00
|
|
|
|
|
|
|
/// Returns the size for each layer in this view.
|
|
|
|
pub fn layer_sizes(&self) -> Vec<Vec2> {
|
|
|
|
self.layers.iter().map(|layer| layer.size).collect()
|
|
|
|
}
|
2017-12-18 17:18:23 +00:00
|
|
|
|
|
|
|
fn get_index(&self, pos: LayerPosition) -> usize {
|
|
|
|
match pos {
|
|
|
|
LayerPosition::FromBack(i) => i,
|
|
|
|
LayerPosition::FromFront(i) => self.layers.len() - i - 1,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Moves a layer to a new position in the stack.
|
2017-12-30 22:03:42 +00:00
|
|
|
///
|
2017-12-18 17:18:23 +00:00
|
|
|
/// This only affects the elevation of a layer (whether it is drawn over
|
|
|
|
/// or under other views).
|
|
|
|
pub fn move_layer(&mut self, from: LayerPosition, to: LayerPosition) {
|
|
|
|
// Convert relative positions to indices in the array
|
|
|
|
let from_i = self.get_index(from);
|
|
|
|
let to_i = self.get_index(to);
|
|
|
|
|
|
|
|
let removed = self.layers.remove(from_i);
|
|
|
|
|
|
|
|
// Shift the position if needed
|
2017-12-30 22:03:42 +00:00
|
|
|
let to_i = if to_i > from_i { to_i - 1 } else { to_i };
|
2017-12-18 17:18:23 +00:00
|
|
|
|
|
|
|
self.layers.insert(to_i, removed);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Brings the given view to the front of the stack.
|
|
|
|
pub fn move_to_front(&mut self, layer: LayerPosition) {
|
|
|
|
self.move_layer(layer, LayerPosition::FromFront(0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/// Pushes the given view to the back of the stack.
|
|
|
|
pub fn move_to_back(&mut self, layer: LayerPosition) {
|
|
|
|
self.move_layer(layer, LayerPosition::FromBack(0));
|
|
|
|
}
|
2015-05-15 00:41:17 +00:00
|
|
|
}
|
|
|
|
|
2017-10-11 18:35:18 +00:00
|
|
|
struct StackPositionIterator<R: Deref<Target = Child>, I: Iterator<Item = R>> {
|
|
|
|
inner: I,
|
|
|
|
previous: Vec2,
|
|
|
|
total_size: Vec2,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<R: Deref<Target = Child>, I: Iterator<Item = R>>
|
|
|
|
StackPositionIterator<R, I> {
|
|
|
|
/// Returns a new StackPositionIterator
|
|
|
|
pub fn new(inner: I, total_size: Vec2) -> Self {
|
|
|
|
let previous = Vec2::zero();
|
|
|
|
StackPositionIterator {
|
|
|
|
inner,
|
|
|
|
previous,
|
|
|
|
total_size,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<R: Deref<Target = Child>, I: Iterator<Item = R>> Iterator
|
|
|
|
for StackPositionIterator<R, I> {
|
|
|
|
type Item = (R, Vec2);
|
|
|
|
|
|
|
|
fn next(&mut self) -> Option<(R, Vec2)> {
|
|
|
|
self.inner.next().map(|v| {
|
|
|
|
let offset = v.placement.compute_offset(
|
|
|
|
v.size,
|
|
|
|
self.total_size,
|
|
|
|
self.previous,
|
|
|
|
);
|
|
|
|
|
|
|
|
self.previous = offset;
|
|
|
|
|
2017-10-12 23:41:45 +00:00
|
|
|
// eprintln!("{:?}", offset);
|
2017-10-11 18:35:18 +00:00
|
|
|
(v, offset)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-15 00:41:17 +00:00
|
|
|
impl View for StackView {
|
2018-01-22 17:20:32 +00:00
|
|
|
view_any!();
|
|
|
|
|
2016-07-16 06:44:38 +00:00
|
|
|
fn draw(&self, printer: &Printer) {
|
2015-05-31 04:53:25 +00:00
|
|
|
let last = self.layers.len();
|
2018-01-17 17:35:57 +00:00
|
|
|
printer.with_color(ColorStyle::primary(), |printer| {
|
2017-10-11 18:35:18 +00:00
|
|
|
for (i, (v, offset)) in
|
|
|
|
StackPositionIterator::new(self.layers.iter(), printer.size)
|
|
|
|
.enumerate()
|
|
|
|
{
|
2017-12-30 22:03:42 +00:00
|
|
|
v.view.draw(&printer.sub_printer(
|
|
|
|
offset,
|
|
|
|
v.size,
|
|
|
|
i + 1 == last,
|
|
|
|
));
|
2016-06-30 00:36:20 +00:00
|
|
|
}
|
|
|
|
});
|
2015-05-15 00:41:17 +00:00
|
|
|
}
|
2015-05-15 01:38:58 +00:00
|
|
|
|
2015-05-28 01:04:33 +00:00
|
|
|
fn on_event(&mut self, event: Event) -> EventResult {
|
2017-10-11 18:35:18 +00:00
|
|
|
// Use the stack position iterator to get the offset of the top layer.
|
|
|
|
// TODO: save it instead when drawing?
|
|
|
|
match StackPositionIterator::new(
|
|
|
|
self.layers.iter_mut(),
|
|
|
|
self.last_size,
|
|
|
|
).last()
|
|
|
|
{
|
2015-05-15 01:38:58 +00:00
|
|
|
None => EventResult::Ignored,
|
2017-10-11 18:35:18 +00:00
|
|
|
Some((v, offset)) => v.view.on_event(event.relativized(offset)),
|
2015-05-15 23:06:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn layout(&mut self, size: Vec2) {
|
2016-07-20 07:30:00 +00:00
|
|
|
self.last_size = size;
|
|
|
|
|
2016-07-02 02:19:43 +00:00
|
|
|
// The call has been made, we can't ask for more space anymore.
|
|
|
|
// Let's make do with what we have.
|
|
|
|
|
2016-06-28 05:40:11 +00:00
|
|
|
for layer in &mut self.layers {
|
2016-07-02 02:19:43 +00:00
|
|
|
// Give each guy what he asks for, within the budget constraints.
|
2017-01-24 06:52:29 +00:00
|
|
|
let size = Vec2::min(size, layer.view.required_size(size));
|
2016-10-02 22:33:55 +00:00
|
|
|
layer.size = size;
|
2015-05-15 23:06:48 +00:00
|
|
|
layer.view.layout(layer.size);
|
2016-07-02 02:19:43 +00:00
|
|
|
|
2017-01-24 00:51:48 +00:00
|
|
|
// We need to call `layout()` on the view before giving it focus
|
|
|
|
// for the first time. Otherwise it will not be properly set up.
|
|
|
|
// Ex: examples/lorem.rs: the text view takes focus because it's
|
|
|
|
// scrolling, but it only knows that after a call to `layout()`.
|
2015-05-31 04:53:25 +00:00
|
|
|
if layer.virgin {
|
2016-07-15 03:27:15 +00:00
|
|
|
layer.view.take_focus(Direction::none());
|
2015-05-31 04:53:25 +00:00
|
|
|
layer.virgin = false;
|
|
|
|
}
|
2015-05-15 01:38:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-01-24 06:52:29 +00:00
|
|
|
fn required_size(&mut self, size: Vec2) -> Vec2 {
|
2015-05-15 01:38:58 +00:00
|
|
|
// The min size is the max of all children's
|
|
|
|
|
2016-07-02 07:47:38 +00:00
|
|
|
self.layers
|
2016-07-10 01:23:58 +00:00
|
|
|
.iter_mut()
|
2017-01-24 06:52:29 +00:00
|
|
|
.map(|layer| layer.view.required_size(size))
|
2016-07-02 07:47:38 +00:00
|
|
|
.fold(Vec2::new(1, 1), Vec2::max)
|
2015-05-15 01:38:58 +00:00
|
|
|
}
|
2015-05-19 22:54:11 +00:00
|
|
|
|
2016-07-15 03:27:15 +00:00
|
|
|
fn take_focus(&mut self, source: Direction) -> bool {
|
2015-05-19 22:54:11 +00:00
|
|
|
match self.layers.last_mut() {
|
|
|
|
None => false,
|
2017-08-14 22:13:32 +00:00
|
|
|
Some(v) => v.view.take_focus(source),
|
2015-05-19 22:54:11 +00:00
|
|
|
}
|
|
|
|
}
|
2015-05-23 17:33:29 +00:00
|
|
|
|
2017-10-11 18:35:18 +00:00
|
|
|
fn call_on_any<'a>(
|
|
|
|
&mut self, selector: &Selector,
|
|
|
|
mut callback: Box<FnMut(&mut Any) + 'a>,
|
|
|
|
) {
|
2017-02-07 02:18:17 +00:00
|
|
|
for layer in &mut self.layers {
|
2017-10-11 18:35:18 +00:00
|
|
|
layer
|
|
|
|
.view
|
|
|
|
.call_on_any(selector, Box::new(|any| callback(any)));
|
2017-02-07 02:18:17 +00:00
|
|
|
}
|
2015-05-23 17:33:29 +00:00
|
|
|
}
|
2017-03-25 21:50:52 +00:00
|
|
|
|
|
|
|
fn focus_view(&mut self, selector: &Selector) -> Result<(), ()> {
|
|
|
|
for layer in &mut self.layers {
|
|
|
|
if layer.view.focus_view(selector).is_ok() {
|
|
|
|
return Ok(());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Err(())
|
|
|
|
}
|
2015-05-15 00:41:17 +00:00
|
|
|
}
|