2012-02-20 21:47:14 +00:00
|
|
|
/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
|
2009-04-09 18:50:49 +00:00
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#include "dictdfiles.hh"
|
|
|
|
#include "btreeidx.hh"
|
|
|
|
#include "folding.hh"
|
|
|
|
#include "utf8.hh"
|
|
|
|
#include "dictzip.h"
|
|
|
|
#include "htmlescape.hh"
|
|
|
|
#include "fsencoding.hh"
|
2009-05-05 22:45:02 +00:00
|
|
|
#include "langcoder.hh"
|
2009-04-09 18:50:49 +00:00
|
|
|
#include <map>
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <list>
|
|
|
|
#include <wctype.h>
|
|
|
|
#include <stdlib.h>
|
2011-06-19 18:50:11 +00:00
|
|
|
#include "dprintf.hh"
|
2009-04-09 18:50:49 +00:00
|
|
|
|
2009-04-29 23:18:26 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#include <stub_msvc.h>
|
|
|
|
#endif
|
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
namespace DictdFiles {
|
|
|
|
|
|
|
|
using std::map;
|
|
|
|
using std::multimap;
|
|
|
|
using std::pair;
|
|
|
|
using std::set;
|
|
|
|
using std::string;
|
2009-04-18 17:20:12 +00:00
|
|
|
using gd::wstring;
|
2009-04-09 18:50:49 +00:00
|
|
|
using std::vector;
|
|
|
|
using std::list;
|
|
|
|
|
|
|
|
using BtreeIndexing::WordArticleLink;
|
|
|
|
using BtreeIndexing::IndexedWords;
|
2009-04-14 16:35:47 +00:00
|
|
|
using BtreeIndexing::IndexInfo;
|
2009-04-09 18:50:49 +00:00
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
DEF_EX_STR( exCantReadFile, "Can't read file", Dictionary::Ex )
|
|
|
|
DEF_EX( exFailedToReadLineFromIndex, "Failed to read line from index file", Dictionary::Ex )
|
|
|
|
DEF_EX( exMalformedIndexFileLine, "Malformed index file line encountered", Dictionary::Ex )
|
|
|
|
DEF_EX( exInvalidBase64, "Invalid base64 sequence encountered", Dictionary::Ex )
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
Signature = 0x58444344, // DCDX on little-endian, XDCD on big-endian
|
2009-05-05 22:45:02 +00:00
|
|
|
CurrentFormatVersion = 3 + BtreeIndexing::FormatVersion + Folding::Version
|
2009-04-09 18:50:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct IdxHeader
|
|
|
|
{
|
|
|
|
uint32_t signature; // First comes the signature, DCDX
|
|
|
|
uint32_t formatVersion; // File format version (CurrentFormatVersion)
|
|
|
|
uint32_t wordCount; // Total number of words
|
2009-04-14 16:35:47 +00:00
|
|
|
uint32_t indexBtreeMaxElements; // Two fields from IndexInfo
|
|
|
|
uint32_t indexRootOffset;
|
2009-05-05 22:45:02 +00:00
|
|
|
uint32_t langFrom; // Source language
|
|
|
|
uint32_t langTo; // Target language
|
|
|
|
}
|
2009-04-29 23:18:26 +00:00
|
|
|
#ifndef _MSC_VER
|
|
|
|
__attribute__((packed))
|
|
|
|
#endif
|
|
|
|
;
|
2009-04-09 18:50:49 +00:00
|
|
|
|
|
|
|
bool indexIsOldOrBad( string const & indexFile )
|
|
|
|
{
|
|
|
|
File::Class idx( indexFile, "rb" );
|
|
|
|
|
|
|
|
IdxHeader header;
|
|
|
|
|
|
|
|
return idx.readRecords( &header, sizeof( header ), 1 ) != 1 ||
|
|
|
|
header.signature != Signature ||
|
|
|
|
header.formatVersion != CurrentFormatVersion;
|
|
|
|
}
|
|
|
|
|
|
|
|
class DictdDictionary: public BtreeIndexing::BtreeDictionary
|
|
|
|
{
|
|
|
|
Mutex idxMutex;
|
|
|
|
File::Class idx, indexFile; // The later is .index file
|
|
|
|
IdxHeader idxHeader;
|
|
|
|
dictData * dz;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
DictdDictionary( string const & id, string const & indexFile,
|
|
|
|
vector< string > const & dictionaryFiles );
|
|
|
|
|
|
|
|
~DictdDictionary();
|
|
|
|
|
|
|
|
virtual string getName() throw();
|
|
|
|
|
|
|
|
virtual map< Dictionary::Property, string > getProperties() throw()
|
|
|
|
{ return map< Dictionary::Property, string >(); }
|
|
|
|
|
|
|
|
virtual unsigned long getArticleCount() throw()
|
|
|
|
{ return idxHeader.wordCount; }
|
|
|
|
|
|
|
|
virtual unsigned long getWordCount() throw()
|
|
|
|
{ return idxHeader.wordCount; }
|
|
|
|
|
2013-01-31 23:53:45 +00:00
|
|
|
virtual void loadIcon() throw();
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-05-05 22:45:02 +00:00
|
|
|
inline virtual quint32 getLangFrom() const
|
|
|
|
{ return idxHeader.langFrom; }
|
|
|
|
|
|
|
|
inline virtual quint32 getLangTo() const
|
|
|
|
{ return idxHeader.langTo; }
|
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
virtual sptr< Dictionary::DataRequest > getArticle( wstring const &,
|
2009-05-29 19:48:50 +00:00
|
|
|
vector< wstring > const & alts,
|
|
|
|
wstring const & )
|
2009-04-09 18:50:49 +00:00
|
|
|
throw( std::exception );
|
|
|
|
};
|
|
|
|
|
|
|
|
DictdDictionary::DictdDictionary( string const & id,
|
|
|
|
string const & indexFile,
|
|
|
|
vector< string > const & dictionaryFiles ):
|
|
|
|
BtreeDictionary( id, dictionaryFiles ),
|
|
|
|
idx( indexFile, "rb" ),
|
|
|
|
indexFile( dictionaryFiles[ 0 ], "rb" ),
|
|
|
|
idxHeader( idx.read< IdxHeader >() )
|
|
|
|
{
|
|
|
|
// Open the .dict file
|
|
|
|
|
|
|
|
dz = dict_data_open( dictionaryFiles[ 1 ].c_str(), 0 );
|
|
|
|
|
|
|
|
if ( !dz )
|
|
|
|
throw exCantReadFile( dictionaryFiles[ 1 ] );
|
|
|
|
|
|
|
|
// Initialize the index
|
|
|
|
|
2009-04-14 16:35:47 +00:00
|
|
|
openIndex( IndexInfo( idxHeader.indexBtreeMaxElements,
|
|
|
|
idxHeader.indexRootOffset ),
|
|
|
|
idx, idxMutex );
|
2009-04-09 18:50:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DictdDictionary::~DictdDictionary()
|
|
|
|
{
|
|
|
|
if ( dz )
|
|
|
|
dict_data_close( dz );
|
|
|
|
}
|
|
|
|
|
|
|
|
string nameFromFileName( string const & indexFileName )
|
|
|
|
{
|
|
|
|
if ( indexFileName.empty() )
|
|
|
|
return string();
|
|
|
|
|
|
|
|
char const * sep = strrchr( indexFileName.c_str(), FsEncoding::separator() );
|
|
|
|
|
|
|
|
if ( !sep )
|
|
|
|
sep = indexFileName.c_str();
|
|
|
|
|
|
|
|
char const * dot = strrchr( sep, '.' );
|
|
|
|
|
|
|
|
if ( !dot )
|
|
|
|
dot = indexFileName.c_str() + indexFileName.size();
|
|
|
|
|
|
|
|
return Utf8::encode( FsEncoding::decode( string( sep + 1, dot - sep - 1 ) ) );
|
|
|
|
}
|
|
|
|
|
2013-01-31 23:53:45 +00:00
|
|
|
void DictdDictionary::loadIcon() throw()
|
|
|
|
{
|
|
|
|
if ( dictionaryIconLoaded )
|
|
|
|
return;
|
|
|
|
|
|
|
|
QString fileName =
|
|
|
|
QDir::fromNativeSeparators( FsEncoding::decode( getDictionaryFilenames()[ 0 ].c_str() ) );
|
|
|
|
|
|
|
|
// Remove the extension
|
|
|
|
fileName.chop( 5 );
|
|
|
|
|
|
|
|
if( !loadIconFromFile( fileName ) )
|
|
|
|
{
|
|
|
|
// Load failed -- use default icons
|
|
|
|
dictionaryNativeIcon = dictionaryIcon = QIcon(":/icons/icon32_dictd.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
dictionaryIconLoaded = true;
|
|
|
|
}
|
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
string DictdDictionary::getName() throw()
|
|
|
|
{
|
|
|
|
return nameFromFileName( getDictionaryFilenames()[ 0 ] );
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t decodeBase64( string const & str )
|
|
|
|
{
|
|
|
|
static char const digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
|
|
|
|
|
|
uint32_t number = 0;
|
|
|
|
|
|
|
|
for( char const * next = str.c_str(); *next; ++next )
|
|
|
|
{
|
|
|
|
char const * d = strchr( digits, *next );
|
|
|
|
|
|
|
|
if ( !d )
|
|
|
|
throw exInvalidBase64();
|
|
|
|
|
|
|
|
number = number * 64 + ( d - digits );
|
|
|
|
}
|
|
|
|
|
|
|
|
return number;
|
|
|
|
}
|
|
|
|
|
|
|
|
sptr< Dictionary::DataRequest > DictdDictionary::getArticle( wstring const & word,
|
2009-05-29 19:48:50 +00:00
|
|
|
vector< wstring > const & alts,
|
|
|
|
wstring const & )
|
2009-04-09 18:50:49 +00:00
|
|
|
throw( std::exception )
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
vector< WordArticleLink > chain = findArticles( word );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
for( unsigned x = 0; x < alts.size(); ++x )
|
|
|
|
{
|
|
|
|
/// Make an additional query for each alt
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
vector< WordArticleLink > altChain = findArticles( alts[ x ] );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
chain.insert( chain.end(), altChain.begin(), altChain.end() );
|
|
|
|
}
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
multimap< wstring, string > mainArticles, alternateArticles;
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
set< uint32_t > articlesIncluded; // Some synonyms make it that the articles
|
|
|
|
// appear several times. We combat this
|
|
|
|
// by only allowing them to appear once.
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
wstring wordCaseFolded = Folding::applySimpleCaseOnly( word );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
char buf[ 16384 ];
|
|
|
|
|
|
|
|
for( unsigned x = 0; x < chain.size(); ++x )
|
|
|
|
{
|
|
|
|
if ( articlesIncluded.find( chain[ x ].articleOffset ) != articlesIncluded.end() )
|
|
|
|
continue; // We already have this article in the body.
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
// Now load that article
|
|
|
|
|
|
|
|
indexFile.seek( chain[ x ].articleOffset );
|
|
|
|
|
|
|
|
if ( !indexFile.gets( buf, sizeof( buf ), true ) )
|
|
|
|
throw exFailedToReadLineFromIndex();
|
|
|
|
|
|
|
|
char * tab1 = strchr( buf, '\t' );
|
|
|
|
|
|
|
|
if ( !tab1 )
|
|
|
|
throw exMalformedIndexFileLine();
|
|
|
|
|
|
|
|
char * tab2 = strchr( tab1 + 1, '\t' );
|
|
|
|
|
|
|
|
if ( !tab2 )
|
|
|
|
throw exMalformedIndexFileLine();
|
|
|
|
|
|
|
|
// After tab1 should be article offset, after tab2 -- article size
|
|
|
|
|
|
|
|
uint32_t articleOffset = decodeBase64( string( tab1 + 1, tab2 - tab1 - 1 ) );
|
|
|
|
uint32_t articleSize = decodeBase64( tab2 + 1 );
|
|
|
|
|
|
|
|
char * articleBody = dict_data_read_( dz, articleOffset, articleSize, 0, 0 );
|
|
|
|
|
|
|
|
if ( !articleBody )
|
|
|
|
throw exCantReadFile( getDictionaryFilenames()[ 1 ] );
|
|
|
|
|
|
|
|
//sprintf( buf, "Offset: %u, Size: %u\n", articleOffset, articleSize );
|
|
|
|
|
|
|
|
string articleText = string( "<div class=\"dictd_article\">" ) +
|
|
|
|
Html::preformat( articleBody ) + "</div>";
|
|
|
|
|
|
|
|
free( articleBody );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
// Ok. Now, does it go to main articles, or to alternate ones? We list
|
|
|
|
// main ones first, and alternates after.
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
// We do the case-folded comparison here.
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
wstring headwordStripped =
|
|
|
|
Folding::applySimpleCaseOnly( Utf8::decode( chain[ x ].word ) );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
|
|
|
multimap< wstring, string > & mapToUse =
|
2009-04-09 18:50:49 +00:00
|
|
|
( wordCaseFolded == headwordStripped ) ?
|
|
|
|
mainArticles : alternateArticles;
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
mapToUse.insert( pair< wstring, string >(
|
|
|
|
Folding::applySimpleCaseOnly( Utf8::decode( chain[ x ].word ) ),
|
|
|
|
articleText ) );
|
|
|
|
|
|
|
|
articlesIncluded.insert( chain[ x ].articleOffset );
|
|
|
|
}
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
if ( mainArticles.empty() && alternateArticles.empty() )
|
|
|
|
return new Dictionary::DataRequestInstant( false );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
string result;
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
multimap< wstring, string >::const_iterator i;
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
for( i = mainArticles.begin(); i != mainArticles.end(); ++i )
|
|
|
|
result += i->second;
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
for( i = alternateArticles.begin(); i != alternateArticles.end(); ++i )
|
|
|
|
result += i->second;
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
sptr< Dictionary::DataRequestInstant > ret =
|
|
|
|
new Dictionary::DataRequestInstant( true );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
ret->getData().resize( result.size() );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
memcpy( &(ret->getData().front()), result.data(), result.size() );
|
2009-04-21 20:09:02 +00:00
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
catch( std::exception & e )
|
|
|
|
{
|
|
|
|
return new Dictionary::DataRequestInstant( QString( e.what() ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // anonymous namespace
|
|
|
|
|
|
|
|
vector< sptr< Dictionary::Class > > makeDictionaries(
|
|
|
|
vector< string > const & fileNames,
|
|
|
|
string const & indicesDir,
|
|
|
|
Dictionary::Initializing & initializing )
|
|
|
|
throw( std::exception )
|
|
|
|
{
|
|
|
|
vector< sptr< Dictionary::Class > > dictionaries;
|
|
|
|
|
|
|
|
for( vector< string >::const_iterator i = fileNames.begin(); i != fileNames.end();
|
|
|
|
++i )
|
|
|
|
{
|
|
|
|
// Only allow .index suffixes
|
|
|
|
|
|
|
|
if ( i->size() < 6 ||
|
|
|
|
strcasecmp( i->c_str() + ( i->size() - 6 ), ".index" ) != 0 )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
vector< string > dictFiles( 1, *i );
|
|
|
|
|
|
|
|
// Check if there is an 'abrv' file present
|
|
|
|
string baseName( *i, 0, i->size() - 5 );
|
|
|
|
|
|
|
|
dictFiles.push_back( string() );
|
|
|
|
|
2012-01-30 13:11:41 +00:00
|
|
|
if ( !File::tryPossibleName( baseName + "dict", dictFiles[ 1 ] ) &&
|
|
|
|
!File::tryPossibleName( baseName + "dict.dz", dictFiles[ 1 ] ) )
|
2009-04-09 18:50:49 +00:00
|
|
|
{
|
|
|
|
// No corresponding .dict file, skipping
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
string dictId = Dictionary::makeDictionaryId( dictFiles );
|
|
|
|
|
|
|
|
string indexFile = indicesDir + dictId;
|
|
|
|
|
|
|
|
if ( Dictionary::needToRebuildIndex( dictFiles, indexFile ) ||
|
|
|
|
indexIsOldOrBad( indexFile ) )
|
|
|
|
{
|
|
|
|
// Building the index
|
|
|
|
initializing.indexingDictionary( nameFromFileName( dictFiles[ 0 ] ) );
|
|
|
|
|
|
|
|
File::Class idx( indexFile, "wb" );
|
|
|
|
|
|
|
|
IdxHeader idxHeader;
|
|
|
|
|
|
|
|
memset( &idxHeader, 0, sizeof( idxHeader ) );
|
|
|
|
|
|
|
|
// We write a dummy header first. At the end of the process the header
|
|
|
|
// will be rewritten with the right values.
|
|
|
|
|
|
|
|
idx.write( idxHeader );
|
|
|
|
|
|
|
|
IndexedWords indexedWords;
|
|
|
|
|
2009-04-11 14:02:31 +00:00
|
|
|
File::Class indexFile( dictFiles[ 0 ], "rb" );
|
2009-04-09 18:50:49 +00:00
|
|
|
|
|
|
|
// Read words from index until none's left.
|
|
|
|
|
|
|
|
char buf[ 16384 ];
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
uint32_t curOffset = indexFile.tell();
|
|
|
|
|
|
|
|
if ( !indexFile.gets( buf, sizeof( buf ), true ) )
|
|
|
|
break;
|
|
|
|
|
|
|
|
// Check that there are exactly two tabs in the record.
|
|
|
|
|
|
|
|
char * tab = strchr( buf, '\t' );
|
|
|
|
|
|
|
|
if ( !tab || ! ( tab = strchr( tab + 1, '\t' ) ) || strchr( tab + 1, '\t' ) )
|
|
|
|
{
|
2011-06-19 18:50:11 +00:00
|
|
|
DPRINTF( "Warning: incorrect amount of tabs in a line, skipping: %s\n", buf );
|
2009-04-09 18:50:49 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
indexedWords.addWord( Utf8::decode( string( buf, strchr( buf, '\t' ) - buf ) ), curOffset );
|
|
|
|
|
|
|
|
++idxHeader.wordCount;
|
|
|
|
|
|
|
|
} while( !indexFile.eof() );
|
|
|
|
|
|
|
|
// Build index
|
|
|
|
|
2009-04-14 16:35:47 +00:00
|
|
|
IndexInfo idxInfo = BtreeIndexing::buildIndex( indexedWords, idx );
|
|
|
|
|
|
|
|
idxHeader.indexBtreeMaxElements = idxInfo.btreeMaxElements;
|
|
|
|
idxHeader.indexRootOffset = idxInfo.rootOffset;
|
2009-04-09 18:50:49 +00:00
|
|
|
|
|
|
|
// That concludes it. Update the header.
|
|
|
|
|
|
|
|
idxHeader.signature = Signature;
|
|
|
|
idxHeader.formatVersion = CurrentFormatVersion;
|
|
|
|
|
2009-05-05 22:45:02 +00:00
|
|
|
// read languages
|
|
|
|
QPair<quint32,quint32> langs =
|
|
|
|
LangCoder::findIdsForFilename( QString::fromStdString( dictFiles[ 0 ] ) );
|
|
|
|
|
|
|
|
// if no languages found, try dictionary's name
|
|
|
|
if ( langs.first == 0 || langs.second == 0 )
|
|
|
|
{
|
|
|
|
langs =
|
|
|
|
LangCoder::findIdsForFilename( QString::fromStdString( nameFromFileName( dictFiles[ 0 ] ) ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
idxHeader.langFrom = langs.first;
|
|
|
|
idxHeader.langTo = langs.second;
|
|
|
|
|
2009-04-09 18:50:49 +00:00
|
|
|
idx.rewind();
|
|
|
|
|
|
|
|
idx.write( &idxHeader, sizeof( idxHeader ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
dictionaries.push_back( new DictdDictionary( dictId,
|
|
|
|
indexFile,
|
|
|
|
dictFiles ) );
|
|
|
|
}
|
|
|
|
catch( std::exception & e )
|
|
|
|
{
|
2011-06-19 20:29:11 +00:00
|
|
|
FDPRINTF( stderr, "Dictd dictionary reading failed: %s, error: %s\n",
|
2009-04-09 18:50:49 +00:00
|
|
|
i->c_str(), e.what() );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return dictionaries;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|