/*

  OpenLayers.js -- OpenLayers Map Viewer Library

  Copyright 2005-2011 OpenLayers Contributors, released under the FreeBSD
  license. Please see http://svn.openlayers.org/trunk/openlayers/license.txt
  for the full text of the license.

  Includes compressed code under the following licenses:

  (For uncompressed versions of the code used please see the
  OpenLayers SVN repository: <http://openlayers.org/>)

*/

/* Contains portions of Prototype.js:
 *
 * Prototype JavaScript framework, version 1.4.0
 *  (c) 2005 Sam Stephenson <sam@conio.net>
 *
 *  Prototype is freely distributable under the terms of an MIT-style license.
 *  For details, see the Prototype web site: http://prototype.conio.net/
 *
 *--------------------------------------------------------------------------*/

/**
*
*  Contains portions of Rico <http://openrico.org/>
*
*  Copyright 2005 Sabre Airline Solutions
*
*  Licensed under the Apache License, Version 2.0 (the "License"); you
*  may not use this file except in compliance with the License. You
*  may obtain a copy of the License at
*
*         http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
*  implied. See the License for the specific language governing
*  permissions and limitations under the License.
*
**/

/**
 * Contains XMLHttpRequest.js <http://code.google.com/p/xmlhttprequest/>
 * Copyright 2007 Sergey Ilinsky (http://www.ilinsky.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 */

/**
 * Contains portions of Gears <http://code.google.com/apis/gears/>
 *
 * Copyright 2007, Google Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *  1. Redistributions of source code must retain the above copyright notice,
 *     this list of conditions and the following disclaimer.
 *  2. Redistributions in binary form must reproduce the above copyright notice,
 *     this list of conditions and the following disclaimer in the documentation
 *     and/or other materials provided with the distribution.
 *  3. Neither the name of Google Inc. nor the names of its contributors may be
 *     used to endorse or promote products derived from this software without
 *     specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * Sets up google.gears.*, which is *the only* supported way to access Gears.
 *
 * Circumvent this file at your own risk!
 *
 * In the future, Gears may automatically define google.gears.* without this
 * file. Gears may use these objects to transparently fix bugs and compatibility
 * issues. Applications that use the code below will continue to work seamlessly
 * when that happens.
 */

/**
 * OpenLayers.Util.pagePosition is based on Yahoo's getXY method, which is
 * Copyright (c) 2006, Yahoo! Inc.
 * All rights reserved.
 *
 * Redistribution and use of this software in source and binary forms, with or
 * without modification, are permitted provided that the following conditions
 * are met:
 *
 * * Redistributions of source code must retain the above copyright notice,
 *   this list of conditions and the following disclaimer.
 *
 * * Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 *
 * * Neither the name of Yahoo! Inc. nor the names of its contributors may be
 *   used to endorse or promote products derived from this software without
 *   specific prior written permission of Yahoo! Inc.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
(function(){function a(a,b){var c=document.createElement("script");c.charset="utf-8";c.src=a;c.onreadystatechange=c.onload=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")c.onreadystatechange=c.onload=null,b()};document.getElementsByTagName("head")[0].appendChild(c)}function b(a){var b=document.createElement("link");b.rel="stylesheet";b.type="text/css";b.href=a;document.getElementsByTagName("head")[0].appendChild(b)}function c(b,d){if(b.length==0)d();else{var e=
b.shift();a(e,function(){f?window.setTimeout(function(){c(b,d)},0):c(b,d)})}}if(!window.qx)window.qx={};qx.$$start=new Date;if(!qx.$$environment)qx.$$environment={};var d={"qx.application":"atr.Application","qx.debug":false,"qx.debug.databinding":false,"qx.debug.dispose":false,"qx.optimization.basecalls":true,"qx.optimization.privates":true,"qx.optimization.strings":true,"qx.optimization.variables":true,"qx.revision":"","qx.theme":"qx.theme.Modern","qx.version":"1.6.1"},e;for(e in d)qx.$$environment[e]=
d[e];if(!qx.$$libraries)qx.$$libraries={};d={__out__:{sourceUri:"script"},arskom:{resourceUri:"resource",sourceUri:"script"},atr:{resourceUri:"resource",sourceUri:"script"},qx:{resourceUri:"resource",sourceUri:"script"},soap:{resourceUri:"resource",sourceUri:"script"}};for(e in d)qx.$$libraries[e]=d[e];qx.$$resources={};qx.$$translations={C:null,en:null,tr:null};qx.$$locales={C:null,en:null,tr:null};qx.$$packageData={};qx.$$loader={parts:{boot:[0]},packages:{0:{uris:["__out__:atr.6d17add94967.js"]}},
urisBefore:[],cssBefore:[],boot:"boot",closureParts:{},bootIsInline:true,addNoCacheParam:false,decodeUris:function(a){for(var b=qx.$$libraries,c=[],d=0;d<a.length;d++){var e=a[d].split(":"),e=e.length==2&&e[0]in b?b[e[0]].sourceUri+"/"+e[1]:a[d];qx.$$loader.addNoCacheParam&&(e+="?nocache="+Math.random());c.push(e)}return c}};var f=/AppleWebKit\/([^ ]+)/.test(navigator.userAgent),g=function(){qx.$$domReady=true;document.removeEventListener("DOMContentLoaded",g,false)};document.addEventListener&&document.addEventListener("DOMContentLoaded",
g,false);qx.$$loader.importPackageData=function(a,b){if(a.resources){var c=a.resources,d;for(d in c)qx.$$resources[d]=c[d]}if(a.locales){var c=a.locales,e=qx.$$locales,f;for(f in c)if(e[f])for(d in c[f])e[f][d]=c[f][d];else e[f]=c[f]}if(a.translations)for(f in c=a.translations,e=qx.$$translations,c)if(e[f])for(d in c[f])e[f][d]=c[f][d];else e[f]=c[f];b&&b(a)};qx.$$loader.signalStartup=function(){qx.$$loader.scriptLoaded=true;window.qx&&qx.event&&qx.event.handler&&qx.event.handler.Application?(qx.event.handler.Application.onScriptLoaded(),
qx.$$loader.applicationHandlerReady=true):qx.$$loader.applicationHandlerReady=false};qx.$$loader.init=function(){var a=qx.$$loader;if(a.cssBefore.length>0)for(var d=0,e=a.cssBefore.length;d<e;d++)b(a.cssBefore[d]);a.urisBefore.length>0?c(a.urisBefore,function(){a.initUris()}):a.initUris()};qx.$$loader.initUris=function(){var a=qx.$$loader,b=a.parts[a.boot][0];a.bootIsInline?(a.importPackageData(qx.$$packageData[b]),a.signalStartup()):c(a.decodeUris(a.packages[a.parts[a.boot][0]].uris),function(){window.setTimeout(function(){a.importPackageData(qx.$$packageData[b]||
{});a.signalStartup()},0)})}})();
qx.$$packageData["0"]={locales:{C:{alternateQuotationEnd:"\u2019",alternateQuotationStart:"\u2018",cldr_am:"AM",cldr_date_format_full:"EEEE, MMMM d, y",cldr_date_format_long:"MMMM d, y",cldr_date_format_medium:"MMM d, y",cldr_date_format_short:"M/d/yy",cldr_date_time_format_EEEd:"d EEE",cldr_date_time_format_Hm:"HH:mm",cldr_date_time_format_Hms:"HH:mm:ss",cldr_date_time_format_M:"L",cldr_date_time_format_MEd:"E, M/d",cldr_date_time_format_MMM:"LLL",cldr_date_time_format_MMMEd:"E, MMM d",cldr_date_time_format_MMMd:"MMM d",
cldr_date_time_format_Md:"M/d",cldr_date_time_format_d:"d",cldr_date_time_format_hm:"h:mm a",cldr_date_time_format_hms:"h:mm:ss a",cldr_date_time_format_ms:"mm:ss",cldr_date_time_format_y:"y",cldr_date_time_format_yM:"M/y",cldr_date_time_format_yMEd:"EEE, M/d/y",cldr_date_time_format_yMMM:"MMM y",cldr_date_time_format_yMMMEd:"EEE, MMM d, y",cldr_date_time_format_yMMMd:"MMM d, y",cldr_date_time_format_yMd:"M/d/y",cldr_date_time_format_yQ:"Q y",cldr_date_time_format_yQQQ:"QQQ y",cldr_day_format_abbreviated_fri:"Fri",
cldr_day_format_abbreviated_mon:"Mon",cldr_day_format_abbreviated_sat:"Sat",cldr_day_format_abbreviated_sun:"Sun",cldr_day_format_abbreviated_thu:"Thu",cldr_day_format_abbreviated_tue:"Tue",cldr_day_format_abbreviated_wed:"Wed",cldr_day_format_wide_fri:"Friday",cldr_day_format_wide_mon:"Monday",cldr_day_format_wide_sat:"Saturday",cldr_day_format_wide_sun:"Sunday",cldr_day_format_wide_thu:"Thursday",cldr_day_format_wide_tue:"Tuesday",cldr_day_format_wide_wed:"Wednesday","cldr_day_stand-alone_narrow_fri":"F",
"cldr_day_stand-alone_narrow_mon":"M","cldr_day_stand-alone_narrow_sat":"S","cldr_day_stand-alone_narrow_sun":"S","cldr_day_stand-alone_narrow_thu":"T","cldr_day_stand-alone_narrow_tue":"T","cldr_day_stand-alone_narrow_wed":"W",cldr_month_format_abbreviated_1:"Jan",cldr_month_format_abbreviated_10:"Oct",cldr_month_format_abbreviated_11:"Nov",cldr_month_format_abbreviated_12:"Dec",cldr_month_format_abbreviated_2:"Feb",cldr_month_format_abbreviated_3:"Mar",cldr_month_format_abbreviated_4:"Apr",cldr_month_format_abbreviated_5:"May",
cldr_month_format_abbreviated_6:"Jun",cldr_month_format_abbreviated_7:"Jul",cldr_month_format_abbreviated_8:"Aug",cldr_month_format_abbreviated_9:"Sep",cldr_month_format_wide_1:"January",cldr_month_format_wide_10:"October",cldr_month_format_wide_11:"November",cldr_month_format_wide_12:"December",cldr_month_format_wide_2:"February",cldr_month_format_wide_3:"March",cldr_month_format_wide_4:"April",cldr_month_format_wide_5:"May",cldr_month_format_wide_6:"June",cldr_month_format_wide_7:"July",cldr_month_format_wide_8:"August",
cldr_month_format_wide_9:"September","cldr_month_stand-alone_narrow_1":"J","cldr_month_stand-alone_narrow_10":"O","cldr_month_stand-alone_narrow_11":"N","cldr_month_stand-alone_narrow_12":"D","cldr_month_stand-alone_narrow_2":"F","cldr_month_stand-alone_narrow_3":"M","cldr_month_stand-alone_narrow_4":"A","cldr_month_stand-alone_narrow_5":"M","cldr_month_stand-alone_narrow_6":"J","cldr_month_stand-alone_narrow_7":"J","cldr_month_stand-alone_narrow_8":"A","cldr_month_stand-alone_narrow_9":"S",cldr_number_decimal_separator:".",
cldr_number_group_separator:",",cldr_number_percent_format:"#,##0%",cldr_pm:"PM",cldr_time_format_full:"h:mm:ss a zzzz",cldr_time_format_long:"h:mm:ss a z",cldr_time_format_medium:"h:mm:ss a",cldr_time_format_short:"h:mm a",day:"Day",dayperiod:"AM/PM",era:"Era",hour:"Hour",minute:"Minute",month:"Month",quotationEnd:"\u201d",quotationStart:"\u201c",second:"Second",week:"Week",weekday:"Day of the Week",year:"Year",zone:"Time Zone"},en:{alternateQuotationEnd:"\u2019",alternateQuotationStart:"\u2018",
cldr_am:"AM",cldr_date_format_full:"EEEE, MMMM d, y",cldr_date_format_long:"MMMM d, y",cldr_date_format_medium:"MMM d, y",cldr_date_format_short:"M/d/yy",cldr_date_time_format_EEEd:"d EEE",cldr_date_time_format_Hm:"HH:mm",cldr_date_time_format_Hms:"HH:mm:ss",cldr_date_time_format_M:"L",cldr_date_time_format_MEd:"E, M/d",cldr_date_time_format_MMM:"LLL",cldr_date_time_format_MMMEd:"E, MMM d",cldr_date_time_format_MMMd:"MMM d",cldr_date_time_format_Md:"M/d",cldr_date_time_format_d:"d",cldr_date_time_format_hm:"h:mm a",
cldr_date_time_format_hms:"h:mm:ss a",cldr_date_time_format_ms:"mm:ss",cldr_date_time_format_y:"y",cldr_date_time_format_yM:"M/y",cldr_date_time_format_yMEd:"EEE, M/d/y",cldr_date_time_format_yMMM:"MMM y",cldr_date_time_format_yMMMEd:"EEE, MMM d, y",cldr_date_time_format_yMMMd:"MMM d, y",cldr_date_time_format_yMd:"M/d/y",cldr_date_time_format_yQ:"Q y",cldr_date_time_format_yQQQ:"QQQ y",cldr_day_format_abbreviated_fri:"Fri",cldr_day_format_abbreviated_mon:"Mon",cldr_day_format_abbreviated_sat:"Sat",
cldr_day_format_abbreviated_sun:"Sun",cldr_day_format_abbreviated_thu:"Thu",cldr_day_format_abbreviated_tue:"Tue",cldr_day_format_abbreviated_wed:"Wed",cldr_day_format_wide_fri:"Friday",cldr_day_format_wide_mon:"Monday",cldr_day_format_wide_sat:"Saturday",cldr_day_format_wide_sun:"Sunday",cldr_day_format_wide_thu:"Thursday",cldr_day_format_wide_tue:"Tuesday",cldr_day_format_wide_wed:"Wednesday","cldr_day_stand-alone_narrow_fri":"F","cldr_day_stand-alone_narrow_mon":"M","cldr_day_stand-alone_narrow_sat":"S",
"cldr_day_stand-alone_narrow_sun":"S","cldr_day_stand-alone_narrow_thu":"T","cldr_day_stand-alone_narrow_tue":"T","cldr_day_stand-alone_narrow_wed":"W",cldr_month_format_abbreviated_1:"Jan",cldr_month_format_abbreviated_10:"Oct",cldr_month_format_abbreviated_11:"Nov",cldr_month_format_abbreviated_12:"Dec",cldr_month_format_abbreviated_2:"Feb",cldr_month_format_abbreviated_3:"Mar",cldr_month_format_abbreviated_4:"Apr",cldr_month_format_abbreviated_5:"May",cldr_month_format_abbreviated_6:"Jun",cldr_month_format_abbreviated_7:"Jul",
cldr_month_format_abbreviated_8:"Aug",cldr_month_format_abbreviated_9:"Sep",cldr_month_format_wide_1:"January",cldr_month_format_wide_10:"October",cldr_month_format_wide_11:"November",cldr_month_format_wide_12:"December",cldr_month_format_wide_2:"February",cldr_month_format_wide_3:"March",cldr_month_format_wide_4:"April",cldr_month_format_wide_5:"May",cldr_month_format_wide_6:"June",cldr_month_format_wide_7:"July",cldr_month_format_wide_8:"August",cldr_month_format_wide_9:"September","cldr_month_stand-alone_narrow_1":"J",
"cldr_month_stand-alone_narrow_10":"O","cldr_month_stand-alone_narrow_11":"N","cldr_month_stand-alone_narrow_12":"D","cldr_month_stand-alone_narrow_2":"F","cldr_month_stand-alone_narrow_3":"M","cldr_month_stand-alone_narrow_4":"A","cldr_month_stand-alone_narrow_5":"M","cldr_month_stand-alone_narrow_6":"J","cldr_month_stand-alone_narrow_7":"J","cldr_month_stand-alone_narrow_8":"A","cldr_month_stand-alone_narrow_9":"S",cldr_number_decimal_separator:".",cldr_number_group_separator:",",cldr_number_percent_format:"#,##0%",
cldr_pm:"PM",cldr_time_format_full:"h:mm:ss a zzzz",cldr_time_format_long:"h:mm:ss a z",cldr_time_format_medium:"h:mm:ss a",cldr_time_format_short:"h:mm a",day:"Day",dayperiod:"AM/PM",era:"Era",hour:"Hour",minute:"Minute",month:"Month",quotationEnd:"\u201d",quotationStart:"\u201c",second:"Second",week:"Week",weekday:"Day of the Week",year:"Year",zone:"Time Zone"},tr:{alternateQuotationEnd:"\u2019",alternateQuotationStart:"\u2018",cldr_am:"AM",cldr_date_format_full:"d MMMM y EEEE",cldr_date_format_long:"d MMMM y",
cldr_date_format_medium:"d MMM y",cldr_date_format_short:"dd.MM.yyyy",cldr_date_time_format_EEEd:"d EEE",cldr_date_time_format_Ed:"d E",cldr_date_time_format_H:"HH",cldr_date_time_format_Hm:"HH:mm",cldr_date_time_format_Hms:"HH:mm:ss",cldr_date_time_format_M:"L",cldr_date_time_format_MEd:"dd/MM E",cldr_date_time_format_MMM:"LLL",cldr_date_time_format_MMMEd:"d MMMM E",cldr_date_time_format_MMMMEd:"dd MMMM E",cldr_date_time_format_MMMMd:"dd MMMM",cldr_date_time_format_MMMd:"d MMMM",cldr_date_time_format_Md:"dd/MM",
cldr_date_time_format_d:"d",cldr_date_time_format_hm:"h:mm a",cldr_date_time_format_hms:"h:mm:ss a",cldr_date_time_format_mmss:"mm:ss",cldr_date_time_format_ms:"mm:ss",cldr_date_time_format_y:"y",cldr_date_time_format_yM:"MM/yy",cldr_date_time_format_yMEd:"dd.MM.yyyy EEE",cldr_date_time_format_yMMM:"MMM y",cldr_date_time_format_yMMMEd:"d MMM y EEE",cldr_date_time_format_yMMMM:"MMMM y",cldr_date_time_format_yMMMd:"dd MMM y",cldr_date_time_format_yMd:"dd.MM.yyyy",cldr_date_time_format_yQ:"y-Q",cldr_date_time_format_yQQQ:"y-QQQ",
cldr_date_time_format_yyMM:"MM/yy",cldr_date_time_format_yyMMM:"MMM yy",cldr_date_time_format_yyQ:"Q yy",cldr_date_time_format_yyQQQQ:"QQQQ yy",cldr_date_time_format_yyyy:"y",cldr_day_format_abbreviated_fri:"Cum",cldr_day_format_abbreviated_mon:"Pzt",cldr_day_format_abbreviated_sat:"Cmt",cldr_day_format_abbreviated_sun:"Paz",cldr_day_format_abbreviated_thu:"Per",cldr_day_format_abbreviated_tue:"Sal",cldr_day_format_abbreviated_wed:"\u00c7ar",cldr_day_format_narrow_fri:"C",cldr_day_format_narrow_mon:"P",
cldr_day_format_narrow_sat:"C",cldr_day_format_narrow_sun:"P",cldr_day_format_narrow_thu:"P",cldr_day_format_narrow_tue:"S",cldr_day_format_narrow_wed:"\u00c7",cldr_day_format_wide_fri:"Cuma",cldr_day_format_wide_mon:"Pazartesi",cldr_day_format_wide_sat:"Cumartesi",cldr_day_format_wide_sun:"Pazar",cldr_day_format_wide_thu:"Per\u015fembe",cldr_day_format_wide_tue:"Sal\u0131",cldr_day_format_wide_wed:"\u00c7ar\u015famba","cldr_day_stand-alone_abbreviated_fri":"Cum","cldr_day_stand-alone_abbreviated_mon":"Pzt",
"cldr_day_stand-alone_abbreviated_sat":"Cmt","cldr_day_stand-alone_abbreviated_sun":"Paz","cldr_day_stand-alone_abbreviated_thu":"Per","cldr_day_stand-alone_abbreviated_tue":"Sal","cldr_day_stand-alone_abbreviated_wed":"\u00c7ar","cldr_day_stand-alone_narrow_fri":"C","cldr_day_stand-alone_narrow_mon":"P","cldr_day_stand-alone_narrow_sat":"C","cldr_day_stand-alone_narrow_sun":"P","cldr_day_stand-alone_narrow_thu":"P","cldr_day_stand-alone_narrow_tue":"S","cldr_day_stand-alone_narrow_wed":"\u00c7",
"cldr_day_stand-alone_wide_fri":"Cuma","cldr_day_stand-alone_wide_mon":"Pazartesi","cldr_day_stand-alone_wide_sat":"Cumartesi","cldr_day_stand-alone_wide_sun":"Pazar","cldr_day_stand-alone_wide_thu":"Per\u015fembe","cldr_day_stand-alone_wide_tue":"Sal\u0131","cldr_day_stand-alone_wide_wed":"\u00c7ar\u015famba",cldr_month_format_abbreviated_1:"Oca",cldr_month_format_abbreviated_10:"Eki",cldr_month_format_abbreviated_11:"Kas",cldr_month_format_abbreviated_12:"Ara",cldr_month_format_abbreviated_2:"\u015eub",
cldr_month_format_abbreviated_3:"Mar",cldr_month_format_abbreviated_4:"Nis",cldr_month_format_abbreviated_5:"May",cldr_month_format_abbreviated_6:"Haz",cldr_month_format_abbreviated_7:"Tem",cldr_month_format_abbreviated_8:"A\u011fu",cldr_month_format_abbreviated_9:"Eyl",cldr_month_format_narrow_1:"O",cldr_month_format_narrow_10:"E",cldr_month_format_narrow_11:"K",cldr_month_format_narrow_12:"A",cldr_month_format_narrow_2:"\u015e",cldr_month_format_narrow_3:"M",cldr_month_format_narrow_4:"N",cldr_month_format_narrow_5:"M",
cldr_month_format_narrow_6:"H",cldr_month_format_narrow_7:"T",cldr_month_format_narrow_8:"A",cldr_month_format_narrow_9:"E",cldr_month_format_wide_1:"Ocak",cldr_month_format_wide_10:"Ekim",cldr_month_format_wide_11:"Kas\u0131m",cldr_month_format_wide_12:"Aral\u0131k",cldr_month_format_wide_2:"\u015eubat",cldr_month_format_wide_3:"Mart",cldr_month_format_wide_4:"Nisan",cldr_month_format_wide_5:"May\u0131s",cldr_month_format_wide_6:"Haziran",cldr_month_format_wide_7:"Temmuz",cldr_month_format_wide_8:"A\u011fustos",
cldr_month_format_wide_9:"Eyl\u00fcl","cldr_month_stand-alone_abbreviated_1":"Oca","cldr_month_stand-alone_abbreviated_10":"Eki","cldr_month_stand-alone_abbreviated_11":"Kas","cldr_month_stand-alone_abbreviated_12":"Ara","cldr_month_stand-alone_abbreviated_2":"\u015eub","cldr_month_stand-alone_abbreviated_3":"Mar","cldr_month_stand-alone_abbreviated_4":"Nis","cldr_month_stand-alone_abbreviated_5":"May","cldr_month_stand-alone_abbreviated_6":"Haz","cldr_month_stand-alone_abbreviated_7":"Tem","cldr_month_stand-alone_abbreviated_8":"A\u011fu",
"cldr_month_stand-alone_abbreviated_9":"Eyl","cldr_month_stand-alone_narrow_1":"O","cldr_month_stand-alone_narrow_10":"E","cldr_month_stand-alone_narrow_11":"K","cldr_month_stand-alone_narrow_12":"A","cldr_month_stand-alone_narrow_2":"\u015e","cldr_month_stand-alone_narrow_3":"M","cldr_month_stand-alone_narrow_4":"N","cldr_month_stand-alone_narrow_5":"M","cldr_month_stand-alone_narrow_6":"H","cldr_month_stand-alone_narrow_7":"T","cldr_month_stand-alone_narrow_8":"A","cldr_month_stand-alone_narrow_9":"E",
"cldr_month_stand-alone_wide_1":"Ocak","cldr_month_stand-alone_wide_10":"Ekim","cldr_month_stand-alone_wide_11":"Kas\u0131m","cldr_month_stand-alone_wide_12":"Aral\u0131k","cldr_month_stand-alone_wide_2":"\u015eubat","cldr_month_stand-alone_wide_3":"Mart","cldr_month_stand-alone_wide_4":"Nisan","cldr_month_stand-alone_wide_5":"May\u0131s","cldr_month_stand-alone_wide_6":"Haziran","cldr_month_stand-alone_wide_7":"Temmuz","cldr_month_stand-alone_wide_8":"A\u011fustos","cldr_month_stand-alone_wide_9":"Eyl\u00fcl",
cldr_number_decimal_separator:",",cldr_number_group_separator:".",cldr_number_percent_format:"%#,##0",cldr_pm:"PM",cldr_time_format_full:"HH:mm:ss zzzz",cldr_time_format_long:"HH:mm:ss z",cldr_time_format_medium:"HH:mm:ss",cldr_time_format_short:"HH:mm",day:"G\u00fcn",dayperiod:"AM/PM",era:"Miladi D\u00f6nem",hour:"Saat",minute:"Dakika",month:"Ay",quotationEnd:"\u201d",quotationStart:"\u201c",second:"Saniye",week:"Hafta",weekday:"Haftan\u0131n G\u00fcn\u00fc",year:"Y\u0131l",zone:"Saat Dilimi"}},
resources:{"arskom/icons/16x16/search-database-icon.png":[16,16,"png","arskom"],"arskom/icons/22x22/add.png":[22,22,"png","arskom"],"arskom/icons/22x22/adobe-reader.png":[22,22,"png","arskom"],"arskom/icons/22x22/button-ok.png":[22,22,"png","arskom"],"arskom/icons/22x22/check.png":[22,22,"png","arskom"],"arskom/icons/22x22/delete2.png":[22,22,"png","arskom"],"arskom/icons/22x22/dictionary.png":[22,22,"png","arskom"],"arskom/icons/22x22/edit-clear.png":[22,22,"png","arskom"],"arskom/icons/22x22/edit_pen.png":[22,
22,"png","arskom"],"arskom/icons/22x22/error.png":[22,22,"png","arskom"],"arskom/icons/22x22/excel.png":[22,22,"png","arskom"],"arskom/icons/22x22/exit.png":[22,22,"png","arskom"],"arskom/icons/22x22/go-last.png":[22,22,"png","arskom"],"arskom/icons/22x22/help-about.png":[22,22,"png","arskom"],"arskom/icons/22x22/idea.png":[22,22,"png","arskom"],"arskom/icons/22x22/list-add.png":[22,22,"png","arskom"],"arskom/icons/22x22/list-remove.png":[22,22,"png","arskom"],"arskom/icons/22x22/mail-forward.png":[22,
22,"png","arskom"],"arskom/icons/22x22/mail-mark-junk.png":[22,22,"png","arskom"],"arskom/icons/22x22/mail-message-new.png":[22,22,"png","arskom"],"arskom/icons/22x22/office-spreadsheet.png":[22,22,"png","arskom"],"arskom/icons/22x22/office-web.png":[22,22,"png","arskom"],"arskom/icons/22x22/ok.png":[22,22,"png","arskom"],"arskom/icons/22x22/search-database-icon.png":[32,32,"png","arskom"],"arskom/icons/22x22/view-refresh.png":[22,22,"png","arskom"],"arskom/icons/22x22/wait.gif":[64,64,"gif","arskom"],
"arskom/icons/34x34/dictionary.png":[22,22,"png","arskom"],"arskom/icons/34x34/search-database-icon.png":[24,24,"png","arskom"],"arskom/icons/34x34/view-refresh.png":[22,22,"png","arskom"],"atr/OpenLayers/OpenLayers.js":"atr","atr/OpenLayers/img/blank.gif":[1,1,"gif","atr"],"atr/OpenLayers/img/cloud-popup-relative.png":[1276,736,"png","atr"],"atr/OpenLayers/img/drag-rectangle-off.png":[27,27,"png","atr"],"atr/OpenLayers/img/drag-rectangle-on.png":[28,28,"png","atr"],"atr/OpenLayers/img/east-mini.png":[18,
18,"png","atr"],"atr/OpenLayers/img/layer-switcher-maximize.png":[18,18,"png","atr"],"atr/OpenLayers/img/layer-switcher-minimize.png":[18,18,"png","atr"],"atr/OpenLayers/img/marker-blue.png":[21,25,"png","atr"],"atr/OpenLayers/img/marker-gold.png":[21,25,"png","atr"],"atr/OpenLayers/img/marker-green.png":[21,25,"png","atr"],"atr/OpenLayers/img/marker.png":[21,25,"png","atr"],"atr/OpenLayers/img/measuring-stick-off.png":[28,28,"png","atr"],"atr/OpenLayers/img/measuring-stick-on.png":[28,28,"png","atr"],
"atr/OpenLayers/img/north-mini.png":[18,18,"png","atr"],"atr/OpenLayers/img/panning-hand-off.png":[28,28,"png","atr"],"atr/OpenLayers/img/panning-hand-on.png":[28,28,"png","atr"],"atr/OpenLayers/img/slider.png":[20,9,"png","atr"],"atr/OpenLayers/img/south-mini.png":[18,18,"png","atr"],"atr/OpenLayers/img/west-mini.png":[18,18,"png","atr"],"atr/OpenLayers/img/zoom-minus-mini.png":[18,18,"png","atr"],"atr/OpenLayers/img/zoom-plus-mini.png":[18,18,"png","atr"],"atr/OpenLayers/img/zoom-world-mini.png":[18,
18,"png","atr"],"atr/OpenLayers/img/zoombar.png":[18,264,"png","atr"],"atr/OpenLayers/theme/default/framedCloud.css":"atr","atr/OpenLayers/theme/default/google.css":"atr","atr/OpenLayers/theme/default/google.tidy.css":"atr","atr/OpenLayers/theme/default/ie6-style.css":"atr","atr/OpenLayers/theme/default/ie6-style.tidy.css":"atr","atr/OpenLayers/theme/default/img/add_point_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/add_point_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/blank.gif":[1,
1,"gif","atr"],"atr/OpenLayers/theme/default/img/close.gif":[17,17,"gif","atr"],"atr/OpenLayers/theme/default/img/drag-rectangle-off.png":[27,27,"png","atr"],"atr/OpenLayers/theme/default/img/drag-rectangle-on.png":[28,28,"png","atr"],"atr/OpenLayers/theme/default/img/draw_line_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/draw_line_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/draw_point_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/draw_point_on.png":[24,
22,"png","atr"],"atr/OpenLayers/theme/default/img/draw_polygon_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/draw_polygon_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/editing_tool_bar.png":[152,47,"png","atr"],"atr/OpenLayers/theme/default/img/move_feature_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/move_feature_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/navigation_history.png":[48,48,"png","atr"],"atr/OpenLayers/theme/default/img/overview_replacement.gif":[15,
15,"gif","atr"],"atr/OpenLayers/theme/default/img/pan-panel-NOALPHA.png":[36,36,"png","atr"],"atr/OpenLayers/theme/default/img/pan-panel.png":[36,36,"png","atr"],"atr/OpenLayers/theme/default/img/pan_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/pan_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/panning-hand-off.png":[28,28,"png","atr"],"atr/OpenLayers/theme/default/img/panning-hand-on.png":[28,28,"png","atr"],"atr/OpenLayers/theme/default/img/remove_point_off.png":[24,
22,"png","atr"],"atr/OpenLayers/theme/default/img/remove_point_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/ruler.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/save_features_off.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/save_features_on.png":[24,22,"png","atr"],"atr/OpenLayers/theme/default/img/view_next_off.png":[24,24,"png","atr"],"atr/OpenLayers/theme/default/img/view_next_on.png":[24,24,"png","atr"],"atr/OpenLayers/theme/default/img/view_previous_off.png":[24,
24,"png","atr"],"atr/OpenLayers/theme/default/img/view_previous_on.png":[24,24,"png","atr"],"atr/OpenLayers/theme/default/img/zoom-panel-NOALPHA.png":[18,54,"png","atr"],"atr/OpenLayers/theme/default/img/zoom-panel.png":[18,54,"png","atr"],"atr/OpenLayers/theme/default/style.css":"atr","atr/OpenLayers/theme/default/style.tidy.css":"atr","atr/icons/16x16/events/sgen.png":[16,16,"png","atr"],"atr/icons/16x16/events/sgex.png":[16,16,"png","atr"],"atr/icons/16x16/events/stad.png":[16,16,"png","atr"],
"atr/icons/16x16/events/stae.png":[16,16,"png","atr"],"atr/icons/16x16/events/stam.png":[16,16,"png","atr"],"atr/icons/16x16/events/stod.png":[16,16,"png","atr"],"atr/icons/16x16/events/stoe.png":[16,16,"png","atr"],"atr/icons/16x16/events/stom.png":[16,16,"png","atr"],"atr/icons/16x16/events/t.png":[16,16,"png","atr"],"atr/icons/22x22/csv.png":[24,24,"png","atr"],"atr/icons/22x22/edit-clear.png":[22,22,"png","atr"],"atr/icons/22x22/go-last.png":[22,22,"png","atr"],"atr/icons/22x22/help-about.png":[22,
22,"png","atr"],"atr/icons/22x22/list-add.png":[22,22,"png","atr"],"atr/icons/22x22/list-remove.png":[22,22,"png","atr"],"atr/icons/22x22/mail-forward.png":[22,22,"png","atr"],"atr/icons/22x22/mail-mark-junk.png":[22,22,"png","atr"],"atr/icons/22x22/mail-message-new.png":[22,22,"png","atr"],"atr/icons/22x22/office-spreadsheet.png":[22,22,"png","atr"],"atr/icons/22x22/office-web.png":[22,22,"png","atr"],"atr/icons/22x22/rule.png":[22,22,"png","atr"],"atr/icons/22x22/view-refresh.png":[22,22,"png",
"atr"],"atr/icons/56x56/arrows/blue/000.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/001.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/002.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/003.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/004.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/005.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/006.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/007.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/008.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/009.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/010.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/011.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/012.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/013.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/014.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/015.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/016.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/017.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/018.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/019.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/020.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/021.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/022.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/023.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/024.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/025.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/026.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/027.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/028.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/029.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/030.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/031.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/032.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/033.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/034.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/035.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/036.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/037.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/038.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/039.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/040.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/041.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/042.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/043.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/044.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/045.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/046.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/047.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/048.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/049.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/050.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/051.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/052.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/053.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/054.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/055.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/056.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/057.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/058.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/059.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/060.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/061.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/062.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/063.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/064.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/065.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/066.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/067.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/068.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/069.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/070.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/071.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/072.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/073.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/074.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/075.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/076.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/077.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/078.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/079.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/080.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/081.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/082.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/083.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/084.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/085.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/086.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/087.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/088.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/089.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/090.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/091.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/092.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/093.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/094.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/095.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/096.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/097.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/098.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/099.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/100.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/101.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/102.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/103.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/104.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/105.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/106.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/107.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/108.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/109.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/110.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/111.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/112.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/113.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/114.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/115.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/116.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/117.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/118.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/119.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/120.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/121.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/122.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/123.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/124.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/125.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/126.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/127.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/128.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/129.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/130.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/131.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/132.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/133.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/134.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/135.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/136.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/137.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/138.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/139.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/140.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/141.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/142.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/143.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/144.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/145.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/146.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/147.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/148.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/149.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/150.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/151.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/152.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/153.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/154.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/155.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/156.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/157.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/158.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/159.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/160.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/161.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/162.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/163.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/164.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/165.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/166.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/167.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/168.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/169.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/170.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/171.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/172.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/173.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/174.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/175.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/176.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/177.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/178.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/179.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/180.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/181.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/182.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/183.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/184.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/185.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/186.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/187.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/188.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/189.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/190.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/191.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/192.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/193.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/194.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/195.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/196.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/197.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/198.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/199.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/200.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/201.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/202.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/203.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/204.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/205.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/206.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/207.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/208.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/209.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/210.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/211.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/212.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/213.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/214.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/215.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/216.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/217.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/218.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/219.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/220.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/221.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/222.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/223.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/224.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/225.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/226.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/227.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/228.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/229.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/230.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/231.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/232.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/233.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/234.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/235.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/236.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/237.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/238.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/239.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/240.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/241.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/242.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/243.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/244.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/245.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/246.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/247.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/248.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/249.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/250.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/251.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/252.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/253.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/254.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/255.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/256.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/257.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/258.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/259.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/260.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/261.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/262.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/263.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/264.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/265.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/266.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/267.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/268.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/269.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/270.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/271.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/272.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/273.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/274.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/275.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/276.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/277.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/278.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/279.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/280.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/281.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/282.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/283.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/284.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/285.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/286.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/287.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/288.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/289.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/290.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/291.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/292.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/293.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/294.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/295.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/296.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/297.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/298.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/299.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/300.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/301.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/302.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/303.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/304.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/305.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/306.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/307.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/308.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/309.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/310.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/311.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/312.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/313.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/314.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/315.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/316.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/317.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/318.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/319.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/320.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/321.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/322.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/323.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/324.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/325.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/326.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/327.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/328.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/329.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/330.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/331.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/332.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/333.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/334.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/335.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/336.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/337.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/338.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/339.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/340.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/341.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/342.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/343.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/344.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/345.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/346.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/347.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/348.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/349.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/350.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/blue/351.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/352.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/353.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/354.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/355.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/356.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/357.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/358.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/blue/359.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/000.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/001.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/002.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/003.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/004.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/005.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/006.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/007.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/008.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/009.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/010.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/011.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/012.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/013.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/014.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/015.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/016.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/017.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/018.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/019.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/020.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/021.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/022.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/023.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/024.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/025.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/026.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/027.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/028.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/029.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/030.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/031.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/032.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/033.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/034.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/035.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/036.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/037.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/038.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/039.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/040.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/041.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/042.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/043.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/044.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/045.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/046.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/047.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/048.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/049.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/050.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/051.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/052.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/053.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/054.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/055.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/056.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/057.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/058.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/059.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/060.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/061.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/062.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/063.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/064.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/065.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/066.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/067.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/068.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/069.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/070.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/071.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/072.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/073.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/074.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/075.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/076.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/077.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/078.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/079.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/080.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/081.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/082.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/083.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/084.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/085.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/086.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/087.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/088.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/089.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/090.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/091.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/092.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/093.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/094.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/095.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/096.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/097.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/098.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/099.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/100.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/101.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/102.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/103.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/104.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/105.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/106.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/107.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/108.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/109.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/110.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/111.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/112.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/113.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/114.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/115.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/116.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/117.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/118.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/119.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/120.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/121.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/122.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/123.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/124.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/125.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/126.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/127.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/128.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/129.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/130.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/131.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/132.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/133.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/134.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/135.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/136.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/137.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/138.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/139.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/140.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/141.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/142.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/143.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/144.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/145.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/146.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/147.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/148.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/149.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/150.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/151.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/152.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/153.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/154.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/155.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/156.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/157.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/158.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/159.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/160.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/161.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/162.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/163.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/164.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/165.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/166.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/167.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/168.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/169.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/170.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/171.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/172.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/173.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/174.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/175.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/176.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/177.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/178.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/179.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/180.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/181.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/182.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/183.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/184.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/185.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/186.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/187.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/188.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/189.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/190.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/191.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/192.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/193.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/194.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/195.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/196.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/197.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/198.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/199.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/200.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/201.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/202.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/203.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/204.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/205.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/206.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/207.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/208.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/209.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/210.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/211.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/212.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/213.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/214.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/215.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/216.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/217.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/218.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/219.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/220.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/221.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/222.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/223.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/224.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/225.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/226.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/227.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/228.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/229.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/230.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/231.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/232.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/233.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/234.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/235.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/236.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/237.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/238.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/239.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/240.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/241.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/242.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/243.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/244.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/245.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/246.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/247.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/248.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/249.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/250.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/251.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/252.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/253.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/254.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/255.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/256.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/257.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/258.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/259.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/260.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/261.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/262.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/263.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/264.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/265.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/266.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/267.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/268.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/269.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/270.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/271.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/272.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/273.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/274.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/275.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/276.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/277.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/278.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/279.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/280.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/281.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/282.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/283.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/284.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/285.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/286.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/287.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/288.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/289.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/290.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/291.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/292.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/293.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/294.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/295.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/296.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/297.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/298.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/299.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/300.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/301.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/302.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/303.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/304.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/305.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/306.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/307.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/308.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/309.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/310.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/311.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/312.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/313.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/314.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/315.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/316.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/317.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/318.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/319.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/320.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/321.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/322.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/323.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/324.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/325.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/326.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/327.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/328.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/329.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/330.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/331.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/332.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/333.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/334.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/335.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/336.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/337.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/338.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/339.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/340.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/341.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/342.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/343.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/344.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/345.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/346.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/347.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/348.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/349.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/350.png":[56,
56,"png","atr"],"atr/icons/56x56/arrows/red/351.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/352.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/353.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/354.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/355.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/356.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/357.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/358.png":[56,56,"png","atr"],"atr/icons/56x56/arrows/red/359.png":[56,
56,"png","atr"],"atr/icons/circle/000000/0.png":[17,17,"png","atr"],"atr/icons/circle/000000/1.png":[17,17,"png","atr"],"atr/icons/circle/000000/2.png":[17,17,"png","atr"],"atr/icons/circle/000000/3.png":[17,17,"png","atr"],"atr/icons/circle/000000/4.png":[17,17,"png","atr"],"atr/icons/circle/000000/5.png":[17,17,"png","atr"],"atr/icons/circle/000000/6.png":[17,17,"png","atr"],"atr/icons/circle/000000/7.png":[17,17,"png","atr"],"atr/icons/circle/000000/8.png":[17,17,"png","atr"],"atr/icons/circle/000000/9.png":[17,
17,"png","atr"],"atr/icons/circle/000000/A.png":[17,17,"png","atr"],"atr/icons/circle/000000/B.png":[17,17,"png","atr"],"atr/icons/circle/000000/C.png":[17,17,"png","atr"],"atr/icons/circle/000000/D.png":[17,17,"png","atr"],"atr/icons/circle/000000/E.png":[17,17,"png","atr"],"atr/icons/circle/000000/F.png":[17,17,"png","atr"],"atr/icons/circle/000000/G.png":[17,17,"png","atr"],"atr/icons/circle/000000/H.png":[17,17,"png","atr"],"atr/icons/circle/000000/I.png":[17,17,"png","atr"],"atr/icons/circle/000000/J.png":[17,
17,"png","atr"],"atr/icons/circle/000000/K.png":[17,17,"png","atr"],"atr/icons/circle/000000/L.png":[17,17,"png","atr"],"atr/icons/circle/000000/M.png":[17,17,"png","atr"],"atr/icons/circle/000000/N.png":[17,17,"png","atr"],"atr/icons/circle/000000/O.png":[17,17,"png","atr"],"atr/icons/circle/000000/P.png":[17,17,"png","atr"],"atr/icons/circle/000000/Q.png":[17,17,"png","atr"],"atr/icons/circle/000000/R.png":[17,17,"png","atr"],"atr/icons/circle/000000/S.png":[17,17,"png","atr"],"atr/icons/circle/000000/T.png":[17,
17,"png","atr"],"atr/icons/circle/000000/U.png":[17,17,"png","atr"],"atr/icons/circle/000000/V.png":[17,17,"png","atr"],"atr/icons/circle/000000/W.png":[17,17,"png","atr"],"atr/icons/circle/000000/X.png":[17,17,"png","atr"],"atr/icons/circle/000000/Y.png":[17,17,"png","atr"],"atr/icons/circle/000000/Z.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/0.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/1.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/2.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/3.png":[17,
17,"png","atr"],"atr/icons/circle/0000ff/4.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/5.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/6.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/7.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/8.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/9.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/A.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/B.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/C.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/D.png":[17,
17,"png","atr"],"atr/icons/circle/0000ff/E.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/F.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/G.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/H.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/I.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/J.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/K.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/L.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/M.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/N.png":[17,
17,"png","atr"],"atr/icons/circle/0000ff/O.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/P.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/Q.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/R.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/S.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/T.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/U.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/V.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/W.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/X.png":[17,
17,"png","atr"],"atr/icons/circle/0000ff/Y.png":[17,17,"png","atr"],"atr/icons/circle/0000ff/Z.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/0.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/1.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/2.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/3.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/4.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/5.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/6.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/7.png":[17,
17,"png","atr"],"atr/icons/circle/00ff00/8.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/9.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/A.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/B.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/C.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/D.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/E.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/F.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/G.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/H.png":[17,
17,"png","atr"],"atr/icons/circle/00ff00/I.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/J.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/K.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/L.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/M.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/N.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/O.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/P.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/Q.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/R.png":[17,
17,"png","atr"],"atr/icons/circle/00ff00/S.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/T.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/U.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/V.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/W.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/X.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/Y.png":[17,17,"png","atr"],"atr/icons/circle/00ff00/Z.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/0.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/1.png":[17,
17,"png","atr"],"atr/icons/circle/00ffff/2.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/3.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/4.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/5.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/6.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/7.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/8.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/9.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/A.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/B.png":[17,
17,"png","atr"],"atr/icons/circle/00ffff/C.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/D.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/E.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/F.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/G.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/H.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/I.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/J.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/K.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/L.png":[17,
17,"png","atr"],"atr/icons/circle/00ffff/M.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/N.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/O.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/P.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/Q.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/R.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/S.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/T.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/U.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/V.png":[17,
17,"png","atr"],"atr/icons/circle/00ffff/W.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/X.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/Y.png":[17,17,"png","atr"],"atr/icons/circle/00ffff/Z.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/0.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/1.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/2.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/3.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/4.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/5.png":[17,
17,"png","atr"],"atr/icons/circle/ff0000/6.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/7.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/8.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/9.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/A.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/B.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/C.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/D.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/E.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/F.png":[17,
17,"png","atr"],"atr/icons/circle/ff0000/G.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/H.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/I.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/J.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/K.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/L.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/M.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/N.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/O.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/P.png":[17,
17,"png","atr"],"atr/icons/circle/ff0000/Q.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/R.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/S.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/T.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/U.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/V.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/W.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/X.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/Y.png":[17,17,"png","atr"],"atr/icons/circle/ff0000/Z.png":[17,
17,"png","atr"],"atr/icons/circle/ff00ff/0.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/1.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/2.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/3.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/4.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/5.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/6.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/7.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/8.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/9.png":[17,
17,"png","atr"],"atr/icons/circle/ff00ff/A.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/B.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/C.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/D.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/E.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/F.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/G.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/H.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/I.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/J.png":[17,
17,"png","atr"],"atr/icons/circle/ff00ff/K.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/L.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/M.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/N.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/O.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/P.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/Q.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/R.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/S.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/T.png":[17,
17,"png","atr"],"atr/icons/circle/ff00ff/U.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/V.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/W.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/X.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/Y.png":[17,17,"png","atr"],"atr/icons/circle/ff00ff/Z.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/0.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/1.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/2.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/3.png":[17,
17,"png","atr"],"atr/icons/circle/ff776b/4.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/5.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/6.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/7.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/8.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/9.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/A.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/B.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/C.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/D.png":[17,
17,"png","atr"],"atr/icons/circle/ff776b/E.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/F.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/G.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/H.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/I.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/J.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/K.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/L.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/M.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/N.png":[17,
17,"png","atr"],"atr/icons/circle/ff776b/O.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/P.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/Q.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/R.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/S.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/T.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/U.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/V.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/W.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/X.png":[17,
17,"png","atr"],"atr/icons/circle/ff776b/Y.png":[17,17,"png","atr"],"atr/icons/circle/ff776b/Z.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/0.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/1.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/2.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/3.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/4.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/5.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/6.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/7.png":[17,
17,"png","atr"],"atr/icons/circle/ffff00/8.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/9.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/A.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/B.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/C.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/D.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/E.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/F.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/G.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/H.png":[17,
17,"png","atr"],"atr/icons/circle/ffff00/I.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/J.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/K.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/L.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/M.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/N.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/O.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/P.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/Q.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/R.png":[17,
17,"png","atr"],"atr/icons/circle/ffff00/S.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/T.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/U.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/V.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/W.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/X.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/Y.png":[17,17,"png","atr"],"atr/icons/circle/ffff00/Z.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/0.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/1.png":[17,
17,"png","atr"],"atr/icons/circle/ffffff/2.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/3.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/4.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/5.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/6.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/7.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/8.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/9.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/A.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/B.png":[17,
17,"png","atr"],"atr/icons/circle/ffffff/C.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/D.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/E.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/F.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/G.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/H.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/I.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/J.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/K.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/L.png":[17,
17,"png","atr"],"atr/icons/circle/ffffff/M.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/N.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/O.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/P.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/Q.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/R.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/S.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/T.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/U.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/V.png":[17,
17,"png","atr"],"atr/icons/circle/ffffff/W.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/X.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/Y.png":[17,17,"png","atr"],"atr/icons/circle/ffffff/Z.png":[17,17,"png","atr"],"atr/icons/marker/000000/0.png":[20,34,"png","atr"],"atr/icons/marker/000000/1.png":[20,34,"png","atr"],"atr/icons/marker/000000/2.png":[20,34,"png","atr"],"atr/icons/marker/000000/3.png":[20,34,"png","atr"],"atr/icons/marker/000000/4.png":[20,34,"png","atr"],"atr/icons/marker/000000/5.png":[20,
34,"png","atr"],"atr/icons/marker/000000/6.png":[20,34,"png","atr"],"atr/icons/marker/000000/7.png":[20,34,"png","atr"],"atr/icons/marker/000000/8.png":[20,34,"png","atr"],"atr/icons/marker/000000/9.png":[20,34,"png","atr"],"atr/icons/marker/000000/A.png":[20,34,"png","atr"],"atr/icons/marker/000000/B.png":[20,34,"png","atr"],"atr/icons/marker/000000/C.png":[20,34,"png","atr"],"atr/icons/marker/000000/D.png":[20,34,"png","atr"],"atr/icons/marker/000000/E.png":[20,34,"png","atr"],"atr/icons/marker/000000/F.png":[20,
34,"png","atr"],"atr/icons/marker/000000/G.png":[20,34,"png","atr"],"atr/icons/marker/000000/H.png":[20,34,"png","atr"],"atr/icons/marker/000000/I.png":[20,34,"png","atr"],"atr/icons/marker/000000/J.png":[20,34,"png","atr"],"atr/icons/marker/000000/K.png":[20,34,"png","atr"],"atr/icons/marker/000000/L.png":[20,34,"png","atr"],"atr/icons/marker/000000/M.png":[20,34,"png","atr"],"atr/icons/marker/000000/N.png":[20,34,"png","atr"],"atr/icons/marker/000000/O.png":[20,34,"png","atr"],"atr/icons/marker/000000/P.png":[20,
34,"png","atr"],"atr/icons/marker/000000/Q.png":[20,34,"png","atr"],"atr/icons/marker/000000/R.png":[20,34,"png","atr"],"atr/icons/marker/000000/S.png":[20,34,"png","atr"],"atr/icons/marker/000000/T.png":[20,34,"png","atr"],"atr/icons/marker/000000/U.png":[20,34,"png","atr"],"atr/icons/marker/000000/V.png":[20,34,"png","atr"],"atr/icons/marker/000000/W.png":[20,34,"png","atr"],"atr/icons/marker/000000/X.png":[20,34,"png","atr"],"atr/icons/marker/000000/Y.png":[20,34,"png","atr"],"atr/icons/marker/000000/Z.png":[20,
34,"png","atr"],"atr/icons/marker/0000ff/0.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/1.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/2.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/3.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/4.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/5.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/6.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/7.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/8.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/9.png":[20,
34,"png","atr"],"atr/icons/marker/0000ff/A.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/B.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/C.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/D.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/E.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/F.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/G.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/H.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/I.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/J.png":[20,
34,"png","atr"],"atr/icons/marker/0000ff/K.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/L.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/M.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/N.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/O.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/P.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/Q.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/R.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/S.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/T.png":[20,
34,"png","atr"],"atr/icons/marker/0000ff/U.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/V.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/W.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/X.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/Y.png":[20,34,"png","atr"],"atr/icons/marker/0000ff/Z.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/0.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/1.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/2.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/3.png":[20,
34,"png","atr"],"atr/icons/marker/00ff00/4.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/5.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/6.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/7.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/8.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/9.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/A.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/B.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/C.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/D.png":[20,
34,"png","atr"],"atr/icons/marker/00ff00/E.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/F.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/G.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/H.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/I.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/J.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/K.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/L.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/M.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/N.png":[20,
34,"png","atr"],"atr/icons/marker/00ff00/O.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/P.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/Q.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/R.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/S.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/T.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/U.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/V.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/W.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/X.png":[20,
34,"png","atr"],"atr/icons/marker/00ff00/Y.png":[20,34,"png","atr"],"atr/icons/marker/00ff00/Z.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/0.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/1.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/2.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/3.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/4.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/5.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/6.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/7.png":[20,
34,"png","atr"],"atr/icons/marker/00ffff/8.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/9.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/A.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/B.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/C.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/D.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/E.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/F.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/G.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/H.png":[20,
34,"png","atr"],"atr/icons/marker/00ffff/I.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/J.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/K.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/L.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/M.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/N.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/O.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/P.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/Q.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/R.png":[20,
34,"png","atr"],"atr/icons/marker/00ffff/S.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/T.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/U.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/V.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/W.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/X.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/Y.png":[20,34,"png","atr"],"atr/icons/marker/00ffff/Z.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/0.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/1.png":[20,
34,"png","atr"],"atr/icons/marker/ff0000/2.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/3.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/4.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/5.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/6.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/7.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/8.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/9.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/A.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/B.png":[20,
34,"png","atr"],"atr/icons/marker/ff0000/C.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/D.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/E.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/F.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/G.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/H.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/I.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/J.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/K.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/L.png":[20,
34,"png","atr"],"atr/icons/marker/ff0000/M.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/N.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/O.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/P.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/Q.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/R.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/S.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/T.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/U.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/V.png":[20,
34,"png","atr"],"atr/icons/marker/ff0000/W.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/X.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/Y.png":[20,34,"png","atr"],"atr/icons/marker/ff0000/Z.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/0.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/1.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/2.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/3.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/4.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/5.png":[20,
34,"png","atr"],"atr/icons/marker/ff00ff/6.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/7.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/8.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/9.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/A.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/B.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/C.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/D.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/E.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/F.png":[20,
34,"png","atr"],"atr/icons/marker/ff00ff/G.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/H.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/I.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/J.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/K.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/L.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/M.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/N.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/O.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/P.png":[20,
34,"png","atr"],"atr/icons/marker/ff00ff/Q.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/R.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/S.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/T.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/U.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/V.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/W.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/X.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/Y.png":[20,34,"png","atr"],"atr/icons/marker/ff00ff/Z.png":[20,
34,"png","atr"],"atr/icons/marker/ff776b/0.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/1.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/2.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/3.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/4.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/5.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/6.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/7.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/8.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/9.png":[20,
34,"png","atr"],"atr/icons/marker/ff776b/A.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/B.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/C.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/D.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/E.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/F.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/G.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/H.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/I.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/J.png":[20,
34,"png","atr"],"atr/icons/marker/ff776b/K.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/L.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/M.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/N.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/O.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/P.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/Q.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/R.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/S.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/T.png":[20,
34,"png","atr"],"atr/icons/marker/ff776b/U.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/V.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/W.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/X.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/Y.png":[20,34,"png","atr"],"atr/icons/marker/ff776b/Z.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/0.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/1.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/2.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/3.png":[20,
34,"png","atr"],"atr/icons/marker/ffff00/4.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/5.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/6.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/7.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/8.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/9.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/A.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/B.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/C.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/D.png":[20,
34,"png","atr"],"atr/icons/marker/ffff00/E.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/F.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/G.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/H.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/I.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/J.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/K.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/L.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/M.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/N.png":[20,
34,"png","atr"],"atr/icons/marker/ffff00/O.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/P.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/Q.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/R.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/S.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/T.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/U.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/V.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/W.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/X.png":[20,
34,"png","atr"],"atr/icons/marker/ffff00/Y.png":[20,34,"png","atr"],"atr/icons/marker/ffff00/Z.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/0.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/1.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/2.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/3.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/4.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/5.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/6.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/7.png":[20,
34,"png","atr"],"atr/icons/marker/ffffff/8.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/9.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/A.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/B.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/C.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/D.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/E.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/F.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/G.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/H.png":[20,
34,"png","atr"],"atr/icons/marker/ffffff/I.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/J.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/K.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/L.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/M.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/N.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/O.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/P.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/Q.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/R.png":[20,
34,"png","atr"],"atr/icons/marker/ffffff/S.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/T.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/U.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/V.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/W.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/X.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/Y.png":[20,34,"png","atr"],"atr/icons/marker/ffffff/Z.png":[20,34,"png","atr"],"atr/icons/marker/maritime/000000/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/1.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/106.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/113.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/120.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/128.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/135.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/142.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/15.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/157.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/164.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/171.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/179.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/186.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/193.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/20.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/207.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/214.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/221.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/229.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/236.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/243.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/250.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/258.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/265.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/272.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/28.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/287.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/294.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/300.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/308.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/315.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/322.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/33.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/337.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/344.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/351.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/359.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/42.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/000000/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/5.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/000000/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/58.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/65.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/000000/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/72.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/000000/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/80.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/000000/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/88.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/000000/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/95.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/000000/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/000000/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/101.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/109.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/116.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/123.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/130.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/138.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/145.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/152.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/16.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/167.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/174.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/181.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/189.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/196.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/202.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/21.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/217.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/224.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/231.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/239.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/246.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/253.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/260.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/268.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/275.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/282.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/29.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/297.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/303.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/310.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/318.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/325.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/332.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/34.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/347.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/354.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/38.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/45.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/0000ff/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/52.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/0000ff/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/60.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/68.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/0000ff/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/75.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/0000ff/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/83.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/0000ff/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/90.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/0000ff/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/0000ff/98.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/0000ff/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/104.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/111.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/119.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/126.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/133.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/140.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/148.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/155.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/162.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/17.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/177.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/184.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/191.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/199.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/205.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/212.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/22.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/227.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/234.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/241.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/249.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/256.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/263.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/270.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/278.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/285.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/292.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/3.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/306.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/313.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/320.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/328.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/335.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/342.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/35.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/357.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/40.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/00ff00/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/48.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/00ff00/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/56.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/63.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/00ff00/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/70.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/00ff00/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/79.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ff00/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/86.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/00ff00/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/93.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/00ff00/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ff00/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/10.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/107.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/114.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/121.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/129.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/136.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/143.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/150.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/158.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/165.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/172.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/18.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/187.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/194.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/200.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/208.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/215.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/222.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/23.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/237.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/244.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/251.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/259.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/266.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/273.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/280.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/288.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/295.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/301.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/309.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/316.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/323.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/330.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/338.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/345.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/352.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/36.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/43.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/00ffff/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/50.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/00ffff/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/59.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/66.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/00ffff/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/73.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/00ffff/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/81.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/00ffff/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/89.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/00ffff/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/96.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/00ffff/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/00ffff/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/102.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/11.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/117.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/124.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/131.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/139.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/146.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/153.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/160.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/168.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/175.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/182.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/19.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/197.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/203.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/210.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/218.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/225.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/232.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/24.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/247.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/254.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/261.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/269.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/276.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/283.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/290.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/298.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/304.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/311.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/319.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/326.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/333.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/340.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/348.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/355.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/39.png":[28,28,
"png","atr"],"atr/icons/marker/maritime/ff0000/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/46.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff0000/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/53.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff0000/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/61.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/69.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff0000/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/76.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff0000/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/84.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff0000/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/91.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff0000/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff0000/99.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff00ff/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/105.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/112.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/12.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/127.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/134.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/141.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/149.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/156.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/163.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/170.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/178.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/185.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/192.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/2.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/206.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/213.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/220.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/228.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/235.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/242.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/25.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/257.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/264.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/271.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/279.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/286.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/293.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/30.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/307.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/314.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/321.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/329.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/336.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/343.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/350.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/358.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/41.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff00ff/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/49.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff00ff/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/57.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/64.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff00ff/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/71.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff00ff/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/8.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff00ff/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/87.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff00ff/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/94.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff00ff/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff00ff/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/100.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/108.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/115.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/122.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/13.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/137.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/144.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/151.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/159.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/166.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/173.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/180.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/188.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/195.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/201.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/209.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/216.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/223.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/230.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/238.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/245.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/252.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/26.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/267.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/274.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/281.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/289.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/296.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/302.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/31.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/317.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/324.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/331.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/339.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/346.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/353.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/37.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/44.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff776b/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/51.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff776b/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/6.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/67.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff776b/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/74.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff776b/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/82.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ff776b/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/9.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ff776b/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/97.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ff776b/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ff776b/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/0.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/103.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/105.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/110.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/112.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/118.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/12.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/125.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/127.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/132.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/134.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/14.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/141.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/147.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/149.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/154.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/156.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/161.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/163.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/169.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/170.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/176.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/178.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/183.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/185.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/190.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/192.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/198.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/2.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/204.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/206.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/211.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/213.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/219.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/220.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/226.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/228.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/233.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/235.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/240.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/242.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/248.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/25.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/255.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/257.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/262.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/264.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/27.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/271.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/277.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/279.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/284.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/286.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/291.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/293.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/299.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/30.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/305.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/307.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/312.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/314.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/32.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/321.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/327.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/329.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/334.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/336.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/341.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/343.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/349.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/350.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/356.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/358.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/4.png":[28,28,
"png","atr"],"atr/icons/marker/maritime/ffff00/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/42.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/47.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ffff00/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/5.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/54.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffff00/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/57.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/62.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/65.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/7.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ffff00/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/72.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/77.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffff00/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/8.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/85.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffff00/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/88.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/92.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ffff00/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/95.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffff00/99.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/0.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/1.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/10.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/100.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/101.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/102.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/103.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/104.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/105.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/106.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/107.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/108.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/109.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/11.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/110.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/111.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/112.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/113.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/114.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/115.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/116.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/117.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/118.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/119.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/12.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/120.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/121.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/122.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/123.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/124.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/125.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/126.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/127.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/128.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/129.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/13.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/130.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/131.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/132.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/133.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/134.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/135.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/136.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/137.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/138.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/139.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/14.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/140.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/141.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/142.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/143.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/144.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/145.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/146.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/147.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/148.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/149.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/15.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/150.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/151.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/152.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/153.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/154.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/155.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/156.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/157.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/158.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/159.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/16.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/160.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/161.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/162.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/163.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/164.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/165.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/166.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/167.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/168.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/169.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/17.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/170.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/171.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/172.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/173.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/174.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/175.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/176.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/177.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/178.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/179.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/18.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/180.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/181.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/182.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/183.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/184.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/185.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/186.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/187.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/188.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/189.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/19.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/190.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/191.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/192.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/193.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/194.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/195.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/196.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/197.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/198.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/199.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/2.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/20.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/200.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/201.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/202.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/203.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/204.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/205.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/206.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/207.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/208.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/209.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/21.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/210.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/211.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/212.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/213.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/214.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/215.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/216.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/217.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/218.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/219.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/22.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/220.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/221.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/222.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/223.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/224.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/225.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/226.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/227.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/228.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/229.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/23.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/230.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/231.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/232.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/233.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/234.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/235.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/236.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/237.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/238.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/239.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/24.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/240.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/241.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/242.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/243.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/244.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/245.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/246.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/247.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/248.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/249.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/25.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/250.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/251.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/252.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/253.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/254.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/255.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/256.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/257.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/258.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/259.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/26.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/260.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/261.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/262.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/263.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/264.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/265.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/266.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/267.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/268.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/269.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/27.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/270.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/271.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/272.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/273.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/274.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/275.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/276.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/277.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/278.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/279.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/28.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/280.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/281.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/282.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/283.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/284.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/285.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/286.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/287.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/288.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/289.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/29.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/290.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/291.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/292.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/293.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/294.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/295.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/296.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/297.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/298.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/299.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/3.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/30.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/300.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/301.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/302.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/303.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/304.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/305.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/306.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/307.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/308.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/309.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/31.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/310.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/311.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/312.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/313.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/314.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/315.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/316.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/317.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/318.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/319.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/32.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/320.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/321.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/322.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/323.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/324.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/325.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/326.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/327.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/328.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/329.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/33.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/330.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/331.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/332.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/333.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/334.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/335.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/336.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/337.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/338.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/339.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/34.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/340.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/341.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/342.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/343.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/344.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/345.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/346.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/347.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/348.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/349.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/35.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/350.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/351.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/352.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/353.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/354.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/355.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/356.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/357.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/358.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/359.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/36.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/37.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/38.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/39.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/4.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/40.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/41.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/42.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffffff/43.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/44.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/45.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/46.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/47.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/48.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/49.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/5.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ffffff/50.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/51.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/52.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/53.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/54.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/55.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/56.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/57.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/58.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/59.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/6.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/60.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/61.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/62.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/63.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/64.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/65.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffffff/66.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/67.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/68.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/69.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/7.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/70.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/71.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/72.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ffffff/73.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/74.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/75.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/76.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/77.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/78.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/79.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/8.png":[28,28,"png","atr"],
"atr/icons/marker/maritime/ffffff/80.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/81.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/82.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/83.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/84.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/85.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/86.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/87.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/88.png":[28,
28,"png","atr"],"atr/icons/marker/maritime/ffffff/89.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/9.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/90.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/91.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/92.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/93.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/94.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/95.png":[28,28,"png",
"atr"],"atr/icons/marker/maritime/ffffff/96.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/97.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/98.png":[28,28,"png","atr"],"atr/icons/marker/maritime/ffffff/99.png":[28,28,"png","atr"],"qx/decoration/Modern/app-header.png":[110,20,"png","qx"],"qx/decoration/Modern/arrows-combined.png":[87,8,"png","qx"],"qx/decoration/Modern/arrows/down-invert.png":[8,5,"png","qx","qx/decoration/Modern/arrows-combined.png",-74,0],"qx/decoration/Modern/arrows/down-small-invert.png":[5,
3,"png","qx","qx/decoration/Modern/arrows-combined.png",-69,0],"qx/decoration/Modern/arrows/down-small.png":[5,3,"png","qx","qx/decoration/Modern/arrows-combined.png",-49,0],"qx/decoration/Modern/arrows/down.png":[8,5,"png","qx","qx/decoration/Modern/arrows-combined.png",-20,0],"qx/decoration/Modern/arrows/forward.png":[10,8,"png","qx","qx/decoration/Modern/arrows-combined.png",-59,0],"qx/decoration/Modern/arrows/left-invert.png":[5,8,"png","qx","qx/decoration/Modern/arrows-combined.png",0,0],"qx/decoration/Modern/arrows/left.png":[5,
8,"png","qx","qx/decoration/Modern/arrows-combined.png",-44,0],"qx/decoration/Modern/arrows/rewind.png":[10,8,"png","qx","qx/decoration/Modern/arrows-combined.png",-10,0],"qx/decoration/Modern/arrows/right-invert.png":[5,8,"png","qx","qx/decoration/Modern/arrows-combined.png",-5,0],"qx/decoration/Modern/arrows/right.png":[5,8,"png","qx","qx/decoration/Modern/arrows-combined.png",-54,0],"qx/decoration/Modern/arrows/up-invert.png":[8,5,"png","qx","qx/decoration/Modern/arrows-combined.png",-28,0],"qx/decoration/Modern/arrows/up-small.png":[5,
3,"png","qx","qx/decoration/Modern/arrows-combined.png",-82,0],"qx/decoration/Modern/arrows/up.png":[8,5,"png","qx","qx/decoration/Modern/arrows-combined.png",-36,0],"qx/decoration/Modern/button-lr-combined.png":[72,52,"png","qx"],"qx/decoration/Modern/button-tb-combined.png":[4,216,"png","qx"],"qx/decoration/Modern/checkradio-combined.png":[504,14,"png","qx"],"qx/decoration/Modern/colorselector-combined.gif":[46,11,"gif","qx"],"qx/decoration/Modern/colorselector/brightness-field.png":[19,256,"png",
"qx"],"qx/decoration/Modern/colorselector/brightness-handle.gif":[35,11,"gif","qx","qx/decoration/Modern/colorselector-combined.gif",0,0],"qx/decoration/Modern/colorselector/huesaturation-field.jpg":[256,256,"jpeg","qx"],"qx/decoration/Modern/colorselector/huesaturation-handle.gif":[11,11,"gif","qx","qx/decoration/Modern/colorselector-combined.gif",-35,0],"qx/decoration/Modern/cursors-combined.gif":[71,20,"gif","qx"],"qx/decoration/Modern/cursors/alias.gif":[19,15,"gif","qx","qx/decoration/Modern/cursors-combined.gif",
-52,0],"qx/decoration/Modern/cursors/copy.gif":[19,15,"gif","qx","qx/decoration/Modern/cursors-combined.gif",-33,0],"qx/decoration/Modern/cursors/move.gif":[13,9,"gif","qx","qx/decoration/Modern/cursors-combined.gif",-20,0],"qx/decoration/Modern/cursors/nodrop.gif":[20,20,"gif","qx","qx/decoration/Modern/cursors-combined.gif",0,0],"qx/decoration/Modern/form/button-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-72],"qx/decoration/Modern/form/button-bl.png":[4,4,"png","qx",
"qx/decoration/Modern/button-tb-combined.png",0,-204],"qx/decoration/Modern/form/button-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-188],"qx/decoration/Modern/form/button-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-checked-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-36],"qx/decoration/Modern/form/button-checked-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-84],"qx/decoration/Modern/form/button-checked-br.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-184],"qx/decoration/Modern/form/button-checked-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-checked-focused-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-156],"qx/decoration/Modern/form/button-checked-focused-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-208],"qx/decoration/Modern/form/button-checked-focused-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",
0,-160],"qx/decoration/Modern/form/button-checked-focused-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-checked-focused-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-40,0],"qx/decoration/Modern/form/button-checked-focused-r.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-32,0],"qx/decoration/Modern/form/button-checked-focused-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-28],"qx/decoration/Modern/form/button-checked-focused-tl.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-24],"qx/decoration/Modern/form/button-checked-focused-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-48],"qx/decoration/Modern/form/button-checked-focused.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-checked-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-16,0],"qx/decoration/Modern/form/button-checked-r.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-60,
0],"qx/decoration/Modern/form/button-checked-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-140],"qx/decoration/Modern/form/button-checked-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-56],"qx/decoration/Modern/form/button-checked-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-112],"qx/decoration/Modern/form/button-checked.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-disabled-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",
0,-40],"qx/decoration/Modern/form/button-disabled-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-136],"qx/decoration/Modern/form/button-disabled-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-16],"qx/decoration/Modern/form/button-disabled-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-disabled-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-68,0],"qx/decoration/Modern/form/button-disabled-r.png":[4,52,"png","qx",
"qx/decoration/Modern/button-lr-combined.png",-4,0],"qx/decoration/Modern/form/button-disabled-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-116],"qx/decoration/Modern/form/button-disabled-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-168],"qx/decoration/Modern/form/button-disabled-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-60],"qx/decoration/Modern/form/button-disabled.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-focused-b.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-68],"qx/decoration/Modern/form/button-focused-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-144],"qx/decoration/Modern/form/button-focused-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-8],"qx/decoration/Modern/form/button-focused-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-focused-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-24,0],"qx/decoration/Modern/form/button-focused-r.png":[4,
52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-44,0],"qx/decoration/Modern/form/button-focused-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-192],"qx/decoration/Modern/form/button-focused-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-148],"qx/decoration/Modern/form/button-focused-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-104],"qx/decoration/Modern/form/button-focused.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-hovered-b.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-108],"qx/decoration/Modern/form/button-hovered-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-32],"qx/decoration/Modern/form/button-hovered-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-128],"qx/decoration/Modern/form/button-hovered-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-hovered-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-20,0],"qx/decoration/Modern/form/button-hovered-r.png":[4,
52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-48,0],"qx/decoration/Modern/form/button-hovered-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-44],"qx/decoration/Modern/form/button-hovered-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-76],"qx/decoration/Modern/form/button-hovered-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-88],"qx/decoration/Modern/form/button-hovered.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-l.png":[4,
52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-56,0],"qx/decoration/Modern/form/button-preselected-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-124],"qx/decoration/Modern/form/button-preselected-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-176],"qx/decoration/Modern/form/button-preselected-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-200],"qx/decoration/Modern/form/button-preselected-c.png":[40,52,"png",
"qx"],"qx/decoration/Modern/form/button-preselected-focused-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,0],"qx/decoration/Modern/form/button-preselected-focused-bl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-4],"qx/decoration/Modern/form/button-preselected-focused-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-152],"qx/decoration/Modern/form/button-preselected-focused-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-preselected-focused-l.png":[4,
52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-28,0],"qx/decoration/Modern/form/button-preselected-focused-r.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-36,0],"qx/decoration/Modern/form/button-preselected-focused-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-196],"qx/decoration/Modern/form/button-preselected-focused-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-164],"qx/decoration/Modern/form/button-preselected-focused-tr.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-212],"qx/decoration/Modern/form/button-preselected-focused.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-preselected-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-8,0],"qx/decoration/Modern/form/button-preselected-r.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-64,0],"qx/decoration/Modern/form/button-preselected-t.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",
0,-96],"qx/decoration/Modern/form/button-preselected-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-80],"qx/decoration/Modern/form/button-preselected-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-132],"qx/decoration/Modern/form/button-preselected.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-pressed-b.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-12],"qx/decoration/Modern/form/button-pressed-bl.png":[4,4,"png",
"qx","qx/decoration/Modern/button-tb-combined.png",0,-52],"qx/decoration/Modern/form/button-pressed-br.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-20],"qx/decoration/Modern/form/button-pressed-c.png":[40,52,"png","qx"],"qx/decoration/Modern/form/button-pressed-l.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-52,0],"qx/decoration/Modern/form/button-pressed-r.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",-12,0],"qx/decoration/Modern/form/button-pressed-t.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-100],"qx/decoration/Modern/form/button-pressed-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-172],"qx/decoration/Modern/form/button-pressed-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-64],"qx/decoration/Modern/form/button-pressed.png":[80,60,"png","qx"],"qx/decoration/Modern/form/button-r.png":[4,52,"png","qx","qx/decoration/Modern/button-lr-combined.png",0,0],"qx/decoration/Modern/form/button-t.png":[4,
4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-92],"qx/decoration/Modern/form/button-tl.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-120],"qx/decoration/Modern/form/button-tr.png":[4,4,"png","qx","qx/decoration/Modern/button-tb-combined.png",0,-180],"qx/decoration/Modern/form/button.png":[80,60,"png","qx"],"qx/decoration/Modern/form/checkbox-checked-disabled.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-126,0],"qx/decoration/Modern/form/checkbox-checked-focused-invalid.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-322,0],"qx/decoration/Modern/form/checkbox-checked-focused.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-294,0],"qx/decoration/Modern/form/checkbox-checked-hovered-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-364,0],"qx/decoration/Modern/form/checkbox-checked-hovered.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-490,0],"qx/decoration/Modern/form/checkbox-checked-invalid.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-224,0],"qx/decoration/Modern/form/checkbox-checked-pressed-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-378,0],"qx/decoration/Modern/form/checkbox-checked-pressed.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-84,0],"qx/decoration/Modern/form/checkbox-checked.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-182,0],"qx/decoration/Modern/form/checkbox-disabled.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-42,0],"qx/decoration/Modern/form/checkbox-focused-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-392,0],"qx/decoration/Modern/form/checkbox-focused.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-210,0],"qx/decoration/Modern/form/checkbox-hovered-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-14,0],"qx/decoration/Modern/form/checkbox-hovered.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-238,0],"qx/decoration/Modern/form/checkbox-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-462,0],"qx/decoration/Modern/form/checkbox-pressed-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-112,0],"qx/decoration/Modern/form/checkbox-pressed.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-448,0],"qx/decoration/Modern/form/checkbox-undetermined-disabled.png":[14,
14,"png","qx"],"qx/decoration/Modern/form/checkbox-undetermined-focused-invalid.png":[14,14,"png","qx"],"qx/decoration/Modern/form/checkbox-undetermined-focused.png":[14,14,"png","qx"],"qx/decoration/Modern/form/checkbox-undetermined-hovered-invalid.png":[14,14,"png","qx"],"qx/decoration/Modern/form/checkbox-undetermined-hovered.png":[14,14,"png","qx"],"qx/decoration/Modern/form/checkbox-undetermined-invalid.png":[14,14,"png","qx"],"qx/decoration/Modern/form/checkbox-undetermined.png":[14,14,"png",
"qx"],"qx/decoration/Modern/form/checkbox.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-140,0],"qx/decoration/Modern/form/checked-disabled.png":[6,6,"png","qx"],"qx/decoration/Modern/form/checked.png":[6,6,"png","qx"],"qx/decoration/Modern/form/input-focused.png":[40,12,"png","qx"],"qx/decoration/Modern/form/input.png":[84,12,"png","qx"],"qx/decoration/Modern/form/radiobutton-checked-disabled.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-196,0],"qx/decoration/Modern/form/radiobutton-checked-focused-invalid.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-168,0],"qx/decoration/Modern/form/radiobutton-checked-focused.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-98,0],"qx/decoration/Modern/form/radiobutton-checked-hovered-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-308,0],"qx/decoration/Modern/form/radiobutton-checked-hovered.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-406,0],"qx/decoration/Modern/form/radiobutton-checked-invalid.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-28,0],"qx/decoration/Modern/form/radiobutton-checked-pressed-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-350,0],"qx/decoration/Modern/form/radiobutton-checked-pressed.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-266,0],"qx/decoration/Modern/form/radiobutton-checked.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-252,0],"qx/decoration/Modern/form/radiobutton-disabled.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-336,0],"qx/decoration/Modern/form/radiobutton-focused-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-476,0],"qx/decoration/Modern/form/radiobutton-focused.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-420,0],"qx/decoration/Modern/form/radiobutton-hovered-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-56,0],"qx/decoration/Modern/form/radiobutton-hovered.png":[14,
14,"png","qx","qx/decoration/Modern/checkradio-combined.png",0,0],"qx/decoration/Modern/form/radiobutton-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-154,0],"qx/decoration/Modern/form/radiobutton-pressed-invalid.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-434,0],"qx/decoration/Modern/form/radiobutton-pressed.png":[14,14,"png","qx","qx/decoration/Modern/checkradio-combined.png",-280,0],"qx/decoration/Modern/form/radiobutton.png":[14,14,"png",
"qx","qx/decoration/Modern/checkradio-combined.png",-70,0],"qx/decoration/Modern/form/tooltip-error-arrow.png":[11,14,"png","qx"],"qx/decoration/Modern/form/tooltip-error-b.png":[6,6,"png","qx","qx/decoration/Modern/tooltip-error-tb-combined.png",0,-30],"qx/decoration/Modern/form/tooltip-error-bl.png":[6,6,"png","qx","qx/decoration/Modern/tooltip-error-tb-combined.png",0,-24],"qx/decoration/Modern/form/tooltip-error-br.png":[6,6,"png","qx","qx/decoration/Modern/tooltip-error-tb-combined.png",0,0],
"qx/decoration/Modern/form/tooltip-error-c.png":[40,18,"png","qx"],"qx/decoration/Modern/form/tooltip-error-l.png":[6,18,"png","qx","qx/decoration/Modern/tooltip-error-lr-combined.png",-6,0],"qx/decoration/Modern/form/tooltip-error-r.png":[6,18,"png","qx","qx/decoration/Modern/tooltip-error-lr-combined.png",0,0],"qx/decoration/Modern/form/tooltip-error-t.png":[6,6,"png","qx","qx/decoration/Modern/tooltip-error-tb-combined.png",0,-6],"qx/decoration/Modern/form/tooltip-error-tl.png":[6,6,"png","qx",
"qx/decoration/Modern/tooltip-error-tb-combined.png",0,-18],"qx/decoration/Modern/form/tooltip-error-tr.png":[6,6,"png","qx","qx/decoration/Modern/tooltip-error-tb-combined.png",0,-12],"qx/decoration/Modern/form/tooltip-error.png":[127,30,"png","qx"],"qx/decoration/Modern/form/undetermined-disabled.png":[6,2,"png","qx"],"qx/decoration/Modern/form/undetermined.png":[6,2,"png","qx"],"qx/decoration/Modern/group-item.png":[110,20,"png","qx"],"qx/decoration/Modern/groupbox-lr-combined.png":[8,51,"png",
"qx"],"qx/decoration/Modern/groupbox-tb-combined.png":[4,24,"png","qx"],"qx/decoration/Modern/groupbox/groupbox-b.png":[4,4,"png","qx","qx/decoration/Modern/groupbox-tb-combined.png",0,-12],"qx/decoration/Modern/groupbox/groupbox-bl.png":[4,4,"png","qx","qx/decoration/Modern/groupbox-tb-combined.png",0,-16],"qx/decoration/Modern/groupbox/groupbox-br.png":[4,4,"png","qx","qx/decoration/Modern/groupbox-tb-combined.png",0,-8],"qx/decoration/Modern/groupbox/groupbox-c.png":[40,51,"png","qx"],"qx/decoration/Modern/groupbox/groupbox-l.png":[4,
51,"png","qx","qx/decoration/Modern/groupbox-lr-combined.png",-4,0],"qx/decoration/Modern/groupbox/groupbox-r.png":[4,51,"png","qx","qx/decoration/Modern/groupbox-lr-combined.png",0,0],"qx/decoration/Modern/groupbox/groupbox-t.png":[4,4,"png","qx","qx/decoration/Modern/groupbox-tb-combined.png",0,-4],"qx/decoration/Modern/groupbox/groupbox-tl.png":[4,4,"png","qx","qx/decoration/Modern/groupbox-tb-combined.png",0,0],"qx/decoration/Modern/groupbox/groupbox-tr.png":[4,4,"png","qx","qx/decoration/Modern/groupbox-tb-combined.png",
0,-20],"qx/decoration/Modern/groupbox/groupbox.png":[255,59,"png","qx"],"qx/decoration/Modern/menu-background-combined.png":[80,49,"png","qx"],"qx/decoration/Modern/menu-checkradio-combined.gif":[64,7,"gif","qx"],"qx/decoration/Modern/menu/background.png":[40,49,"png","qx","qx/decoration/Modern/menu-background-combined.png",-40,0],"qx/decoration/Modern/menu/bar-background.png":[40,20,"png","qx","qx/decoration/Modern/menu-background-combined.png",0,0],"qx/decoration/Modern/menu/checkbox-invert.gif":[16,
7,"gif","qx","qx/decoration/Modern/menu-checkradio-combined.gif",-16,0],"qx/decoration/Modern/menu/checkbox.gif":[16,7,"gif","qx","qx/decoration/Modern/menu-checkradio-combined.gif",-48,0],"qx/decoration/Modern/menu/radiobutton-invert.gif":[16,5,"gif","qx","qx/decoration/Modern/menu-checkradio-combined.gif",-32,0],"qx/decoration/Modern/menu/radiobutton.gif":[16,5,"gif","qx","qx/decoration/Modern/menu-checkradio-combined.gif",0,0],"qx/decoration/Modern/pane-lr-combined.png":[12,238,"png","qx"],"qx/decoration/Modern/pane-tb-combined.png":[6,
36,"png","qx"],"qx/decoration/Modern/pane/pane-b.png":[6,6,"png","qx","qx/decoration/Modern/pane-tb-combined.png",0,-30],"qx/decoration/Modern/pane/pane-bl.png":[6,6,"png","qx","qx/decoration/Modern/pane-tb-combined.png",0,-18],"qx/decoration/Modern/pane/pane-br.png":[6,6,"png","qx","qx/decoration/Modern/pane-tb-combined.png",0,-12],"qx/decoration/Modern/pane/pane-c.png":[40,238,"png","qx"],"qx/decoration/Modern/pane/pane-l.png":[6,238,"png","qx","qx/decoration/Modern/pane-lr-combined.png",0,0],"qx/decoration/Modern/pane/pane-r.png":[6,
238,"png","qx","qx/decoration/Modern/pane-lr-combined.png",-6,0],"qx/decoration/Modern/pane/pane-t.png":[6,6,"png","qx","qx/decoration/Modern/pane-tb-combined.png",0,0],"qx/decoration/Modern/pane/pane-tl.png":[6,6,"png","qx","qx/decoration/Modern/pane-tb-combined.png",0,-24],"qx/decoration/Modern/pane/pane-tr.png":[6,6,"png","qx","qx/decoration/Modern/pane-tb-combined.png",0,-6],"qx/decoration/Modern/pane/pane.png":[185,250,"png","qx"],"qx/decoration/Modern/scrollbar-combined.png":[54,12,"png","qx"],
"qx/decoration/Modern/scrollbar/scrollbar-bg-horizontal.png":[76,15,"png","qx"],"qx/decoration/Modern/scrollbar/scrollbar-bg-pressed-horizontal.png":[19,10,"png","qx"],"qx/decoration/Modern/scrollbar/scrollbar-bg-pressed-vertical.png":[10,19,"png","qx"],"qx/decoration/Modern/scrollbar/scrollbar-bg-vertical.png":[15,76,"png","qx"],"qx/decoration/Modern/scrollbar/scrollbar-button-bg-horizontal.png":[12,10,"png","qx","qx/decoration/Modern/scrollbar-combined.png",-34,0],"qx/decoration/Modern/scrollbar/scrollbar-button-bg-vertical.png":[10,
12,"png","qx","qx/decoration/Modern/scrollbar-combined.png",-6,0],"qx/decoration/Modern/scrollbar/scrollbar-down.png":[6,4,"png","qx","qx/decoration/Modern/scrollbar-combined.png",-28,0],"qx/decoration/Modern/scrollbar/scrollbar-left.png":[4,6,"png","qx","qx/decoration/Modern/scrollbar-combined.png",-50,0],"qx/decoration/Modern/scrollbar/scrollbar-right.png":[4,6,"png","qx","qx/decoration/Modern/scrollbar-combined.png",-46,0],"qx/decoration/Modern/scrollbar/scrollbar-up.png":[6,4,"png","qx","qx/decoration/Modern/scrollbar-combined.png",
0,0],"qx/decoration/Modern/scrollbar/slider-knob-background.png":[12,10,"png","qx","qx/decoration/Modern/scrollbar-combined.png",-16,0],"qx/decoration/Modern/selection.png":[110,20,"png","qx"],"qx/decoration/Modern/shadow-lr-combined.png":[30,382,"png","qx"],"qx/decoration/Modern/shadow-small-lr-combined.png":[10,136,"png","qx"],"qx/decoration/Modern/shadow-small-tb-combined.png":[5,30,"png","qx"],"qx/decoration/Modern/shadow-tb-combined.png":[15,90,"png","qx"],"qx/decoration/Modern/shadow/shadow-b.png":[15,
15,"png","qx","qx/decoration/Modern/shadow-tb-combined.png",0,-30],"qx/decoration/Modern/shadow/shadow-bl.png":[15,15,"png","qx","qx/decoration/Modern/shadow-tb-combined.png",0,-15],"qx/decoration/Modern/shadow/shadow-br.png":[15,15,"png","qx","qx/decoration/Modern/shadow-tb-combined.png",0,-45],"qx/decoration/Modern/shadow/shadow-c.png":[40,382,"png","qx"],"qx/decoration/Modern/shadow/shadow-l.png":[15,382,"png","qx","qx/decoration/Modern/shadow-lr-combined.png",0,0],"qx/decoration/Modern/shadow/shadow-r.png":[15,
382,"png","qx","qx/decoration/Modern/shadow-lr-combined.png",-15,0],"qx/decoration/Modern/shadow/shadow-small-b.png":[5,5,"png","qx","qx/decoration/Modern/shadow-small-tb-combined.png",0,-20],"qx/decoration/Modern/shadow/shadow-small-bl.png":[5,5,"png","qx","qx/decoration/Modern/shadow-small-tb-combined.png",0,-15],"qx/decoration/Modern/shadow/shadow-small-br.png":[5,5,"png","qx","qx/decoration/Modern/shadow-small-tb-combined.png",0,-10],"qx/decoration/Modern/shadow/shadow-small-c.png":[40,136,"png",
"qx"],"qx/decoration/Modern/shadow/shadow-small-l.png":[5,136,"png","qx","qx/decoration/Modern/shadow-small-lr-combined.png",0,0],"qx/decoration/Modern/shadow/shadow-small-r.png":[5,136,"png","qx","qx/decoration/Modern/shadow-small-lr-combined.png",-5,0],"qx/decoration/Modern/shadow/shadow-small-t.png":[5,5,"png","qx","qx/decoration/Modern/shadow-small-tb-combined.png",0,-5],"qx/decoration/Modern/shadow/shadow-small-tl.png":[5,5,"png","qx","qx/decoration/Modern/shadow-small-tb-combined.png",0,0],
"qx/decoration/Modern/shadow/shadow-small-tr.png":[5,5,"png","qx","qx/decoration/Modern/shadow-small-tb-combined.png",0,-25],"qx/decoration/Modern/shadow/shadow-small.png":[114,146,"png","qx"],"qx/decoration/Modern/shadow/shadow-t.png":[15,15,"png","qx","qx/decoration/Modern/shadow-tb-combined.png",0,-60],"qx/decoration/Modern/shadow/shadow-tl.png":[15,15,"png","qx","qx/decoration/Modern/shadow-tb-combined.png",0,-75],"qx/decoration/Modern/shadow/shadow-tr.png":[15,15,"png","qx","qx/decoration/Modern/shadow-tb-combined.png",
0,0],"qx/decoration/Modern/shadow/shadow.png":[381,412,"png","qx"],"qx/decoration/Modern/splitpane-knobs-combined.png":[8,9,"png","qx"],"qx/decoration/Modern/splitpane/knob-horizontal.png":[1,8,"png","qx","qx/decoration/Modern/splitpane-knobs-combined.png",0,-1],"qx/decoration/Modern/splitpane/knob-vertical.png":[8,1,"png","qx","qx/decoration/Modern/splitpane-knobs-combined.png",0,0],"qx/decoration/Modern/table-combined.png":[94,18,"png","qx"],"qx/decoration/Modern/table/ascending.png":[8,5,"png",
"qx","qx/decoration/Modern/table-combined.png",0,0],"qx/decoration/Modern/table/boolean-false.png":[14,14,"png","qx","qx/decoration/Modern/table-combined.png",-80,0],"qx/decoration/Modern/table/boolean-true.png":[14,14,"png","qx","qx/decoration/Modern/table-combined.png",-26,0],"qx/decoration/Modern/table/descending.png":[8,5,"png","qx","qx/decoration/Modern/table-combined.png",-18,0],"qx/decoration/Modern/table/header-cell.png":[40,18,"png","qx","qx/decoration/Modern/table-combined.png",-40,0],"qx/decoration/Modern/table/select-column-order.png":[10,
9,"png","qx","qx/decoration/Modern/table-combined.png",-8,0],"qx/decoration/Modern/tabview-button-bottom-active-lr-combined.png":[10,14,"png","qx"],"qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png":[5,30,"png","qx"],"qx/decoration/Modern/tabview-button-bottom-inactive-b-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-button-bottom-inactive-lr-combined.png":[6,15,"png","qx"],"qx/decoration/Modern/tabview-button-bottom-inactive-t-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-button-left-active-lr-combined.png":[10,
37,"png","qx"],"qx/decoration/Modern/tabview-button-left-active-tb-combined.png":[5,30,"png","qx"],"qx/decoration/Modern/tabview-button-left-inactive-b-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-button-left-inactive-lr-combined.png":[6,39,"png","qx"],"qx/decoration/Modern/tabview-button-left-inactive-t-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-button-right-active-lr-combined.png":[10,37,"png","qx"],"qx/decoration/Modern/tabview-button-right-active-tb-combined.png":[5,
30,"png","qx"],"qx/decoration/Modern/tabview-button-right-inactive-b-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-button-right-inactive-lr-combined.png":[6,39,"png","qx"],"qx/decoration/Modern/tabview-button-right-inactive-t-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-button-top-active-lr-combined.png":[10,12,"png","qx"],"qx/decoration/Modern/tabview-button-top-active-tb-combined.png":[5,30,"png","qx"],"qx/decoration/Modern/tabview-button-top-inactive-b-combined.png":[3,
9,"png","qx"],"qx/decoration/Modern/tabview-button-top-inactive-lr-combined.png":[6,15,"png","qx"],"qx/decoration/Modern/tabview-button-top-inactive-t-combined.png":[3,9,"png","qx"],"qx/decoration/Modern/tabview-pane-lr-combined.png":[60,2,"png","qx"],"qx/decoration/Modern/tabview-pane-tb-combined.png":[30,180,"png","qx"],"qx/decoration/Modern/tabview/tab-button-bottom-active-b.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png",0,-10],"qx/decoration/Modern/tabview/tab-button-bottom-active-bl.png":[5,
5,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png",0,-15],"qx/decoration/Modern/tabview/tab-button-bottom-active-br.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png",0,-5],"qx/decoration/Modern/tabview/tab-button-bottom-active-c.png":[40,14,"png","qx"],"qx/decoration/Modern/tabview/tab-button-bottom-active-l.png":[5,14,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-bottom-active-r.png":[5,
14,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-lr-combined.png",-5,0],"qx/decoration/Modern/tabview/tab-button-bottom-active-t.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png",0,-20],"qx/decoration/Modern/tabview/tab-button-bottom-active-tl.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png",0,-25],"qx/decoration/Modern/tabview/tab-button-bottom-active-tr.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-bottom-active-tb-combined.png",
0,0],"qx/decoration/Modern/tabview/tab-button-bottom-active.png":[49,24,"png","qx"],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-b.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-b-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-bl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-b-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-br.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-b-combined.png",
0,-3],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-c.png":[40,15,"png","qx"],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-l.png":[3,15,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-lr-combined.png",-3,0],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-r.png":[3,15,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-t.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-t-combined.png",
0,-3],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-tl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-t-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-bottom-inactive-tr.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-bottom-inactive-t-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-bottom-inactive.png":[45,21,"png","qx"],"qx/decoration/Modern/tabview/tab-button-left-active-b.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-left-active-tb-combined.png",
0,-5],"qx/decoration/Modern/tabview/tab-button-left-active-bl.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-left-active-tb-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-left-active-br.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-left-active-tb-combined.png",0,-25],"qx/decoration/Modern/tabview/tab-button-left-active-c.png":[40,37,"png","qx"],"qx/decoration/Modern/tabview/tab-button-left-active-l.png":[5,37,"png","qx","qx/decoration/Modern/tabview-button-left-active-lr-combined.png",
0,0],"qx/decoration/Modern/tabview/tab-button-left-active-r.png":[5,37,"png","qx","qx/decoration/Modern/tabview-button-left-active-lr-combined.png",-5,0],"qx/decoration/Modern/tabview/tab-button-left-active-t.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-left-active-tb-combined.png",0,-15],"qx/decoration/Modern/tabview/tab-button-left-active-tl.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-left-active-tb-combined.png",0,-10],"qx/decoration/Modern/tabview/tab-button-left-active-tr.png":[5,
5,"png","qx","qx/decoration/Modern/tabview-button-left-active-tb-combined.png",0,-20],"qx/decoration/Modern/tabview/tab-button-left-active.png":[22,47,"png","qx"],"qx/decoration/Modern/tabview/tab-button-left-inactive-b.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-b-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-left-inactive-bl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-b-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-left-inactive-br.png":[3,
3,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-b-combined.png",0,-3],"qx/decoration/Modern/tabview/tab-button-left-inactive-c.png":[40,39,"png","qx"],"qx/decoration/Modern/tabview/tab-button-left-inactive-l.png":[3,39,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-lr-combined.png",-3,0],"qx/decoration/Modern/tabview/tab-button-left-inactive-r.png":[3,39,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-left-inactive-t.png":[3,
3,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-t-combined.png",0,-3],"qx/decoration/Modern/tabview/tab-button-left-inactive-tl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-t-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-left-inactive-tr.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-left-inactive-t-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-left-inactive.png":[20,45,"png","qx"],"qx/decoration/Modern/tabview/tab-button-right-active-b.png":[5,
5,"png","qx","qx/decoration/Modern/tabview-button-right-active-tb-combined.png",0,-25],"qx/decoration/Modern/tabview/tab-button-right-active-bl.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-right-active-tb-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-right-active-br.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-right-active-tb-combined.png",0,-20],"qx/decoration/Modern/tabview/tab-button-right-active-c.png":[40,37,"png","qx"],"qx/decoration/Modern/tabview/tab-button-right-active-l.png":[5,
37,"png","qx","qx/decoration/Modern/tabview-button-right-active-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-right-active-r.png":[5,37,"png","qx","qx/decoration/Modern/tabview-button-right-active-lr-combined.png",-5,0],"qx/decoration/Modern/tabview/tab-button-right-active-t.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-right-active-tb-combined.png",0,-5],"qx/decoration/Modern/tabview/tab-button-right-active-tl.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-right-active-tb-combined.png",
0,-15],"qx/decoration/Modern/tabview/tab-button-right-active-tr.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-right-active-tb-combined.png",0,-10],"qx/decoration/Modern/tabview/tab-button-right-active.png":[22,47,"png","qx"],"qx/decoration/Modern/tabview/tab-button-right-inactive-b.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-b-combined.png",0,-3],"qx/decoration/Modern/tabview/tab-button-right-inactive-bl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-b-combined.png",
0,0],"qx/decoration/Modern/tabview/tab-button-right-inactive-br.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-b-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-right-inactive-c.png":[40,39,"png","qx"],"qx/decoration/Modern/tabview/tab-button-right-inactive-l.png":[3,39,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-right-inactive-r.png":[3,39,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-lr-combined.png",
-3,0],"qx/decoration/Modern/tabview/tab-button-right-inactive-t.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-t-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-right-inactive-tl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-t-combined.png",0,-3],"qx/decoration/Modern/tabview/tab-button-right-inactive-tr.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-right-inactive-t-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-right-inactive.png":[20,
45,"png","qx"],"qx/decoration/Modern/tabview/tab-button-top-active-b.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-top-active-tb-combined.png",0,-20],"qx/decoration/Modern/tabview/tab-button-top-active-bl.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-top-active-tb-combined.png",0,-15],"qx/decoration/Modern/tabview/tab-button-top-active-br.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-top-active-tb-combined.png",0,-10],"qx/decoration/Modern/tabview/tab-button-top-active-c.png":[40,
14,"png","qx"],"qx/decoration/Modern/tabview/tab-button-top-active-l.png":[5,12,"png","qx","qx/decoration/Modern/tabview-button-top-active-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-top-active-r.png":[5,12,"png","qx","qx/decoration/Modern/tabview-button-top-active-lr-combined.png",-5,0],"qx/decoration/Modern/tabview/tab-button-top-active-t.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-top-active-tb-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-top-active-tl.png":[5,
5,"png","qx","qx/decoration/Modern/tabview-button-top-active-tb-combined.png",0,-25],"qx/decoration/Modern/tabview/tab-button-top-active-tr.png":[5,5,"png","qx","qx/decoration/Modern/tabview-button-top-active-tb-combined.png",0,-5],"qx/decoration/Modern/tabview/tab-button-top-active.png":[48,22,"png","qx"],"qx/decoration/Modern/tabview/tab-button-top-inactive-b.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-b-combined.png",0,-6],"qx/decoration/Modern/tabview/tab-button-top-inactive-bl.png":[3,
3,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-b-combined.png",0,-3],"qx/decoration/Modern/tabview/tab-button-top-inactive-br.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-b-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-top-inactive-c.png":[40,15,"png","qx"],"qx/decoration/Modern/tabview/tab-button-top-inactive-l.png":[3,15,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-top-inactive-r.png":[3,
15,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-lr-combined.png",-3,0],"qx/decoration/Modern/tabview/tab-button-top-inactive-t.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-t-combined.png",0,-3],"qx/decoration/Modern/tabview/tab-button-top-inactive-tl.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-t-combined.png",0,0],"qx/decoration/Modern/tabview/tab-button-top-inactive-tr.png":[3,3,"png","qx","qx/decoration/Modern/tabview-button-top-inactive-t-combined.png",
0,-6],"qx/decoration/Modern/tabview/tab-button-top-inactive.png":[45,21,"png","qx"],"qx/decoration/Modern/tabview/tabview-pane-b.png":[30,30,"png","qx","qx/decoration/Modern/tabview-pane-tb-combined.png",0,-60],"qx/decoration/Modern/tabview/tabview-pane-bl.png":[30,30,"png","qx","qx/decoration/Modern/tabview-pane-tb-combined.png",0,0],"qx/decoration/Modern/tabview/tabview-pane-br.png":[30,30,"png","qx","qx/decoration/Modern/tabview-pane-tb-combined.png",0,-120],"qx/decoration/Modern/tabview/tabview-pane-c.png":[40,
120,"png","qx"],"qx/decoration/Modern/tabview/tabview-pane-l.png":[30,2,"png","qx","qx/decoration/Modern/tabview-pane-lr-combined.png",0,0],"qx/decoration/Modern/tabview/tabview-pane-r.png":[30,2,"png","qx","qx/decoration/Modern/tabview-pane-lr-combined.png",-30,0],"qx/decoration/Modern/tabview/tabview-pane-t.png":[30,30,"png","qx","qx/decoration/Modern/tabview-pane-tb-combined.png",0,-150],"qx/decoration/Modern/tabview/tabview-pane-tl.png":[30,30,"png","qx","qx/decoration/Modern/tabview-pane-tb-combined.png",
0,-30],"qx/decoration/Modern/tabview/tabview-pane-tr.png":[30,30,"png","qx","qx/decoration/Modern/tabview-pane-tb-combined.png",0,-90],"qx/decoration/Modern/tabview/tabview-pane.png":[185,250,"png","qx"],"qx/decoration/Modern/toolbar-combined.png":[80,130,"png","qx"],"qx/decoration/Modern/toolbar/toolbar-gradient-blue.png":[40,130,"png","qx","qx/decoration/Modern/toolbar-combined.png",-40,0],"qx/decoration/Modern/toolbar/toolbar-gradient.png":[40,130,"png","qx","qx/decoration/Modern/toolbar-combined.png",
0,0],"qx/decoration/Modern/toolbar/toolbar-handle-knob.gif":[1,8,"gif","qx"],"qx/decoration/Modern/toolbar/toolbar-part.gif":[7,1,"gif","qx"],"qx/decoration/Modern/tooltip-error-lr-combined.png":[12,18,"png","qx"],"qx/decoration/Modern/tooltip-error-tb-combined.png":[6,36,"png","qx"],"qx/decoration/Modern/tree-combined.png":[32,8,"png","qx"],"qx/decoration/Modern/tree/closed-selected.png":[8,8,"png","qx","qx/decoration/Modern/tree-combined.png",-24,0],"qx/decoration/Modern/tree/closed.png":[8,8,"png",
"qx","qx/decoration/Modern/tree-combined.png",-16,0],"qx/decoration/Modern/tree/open-selected.png":[8,8,"png","qx","qx/decoration/Modern/tree-combined.png",-8,0],"qx/decoration/Modern/tree/open.png":[8,8,"png","qx","qx/decoration/Modern/tree-combined.png",0,0],"qx/decoration/Modern/window-captionbar-buttons-combined.png":[108,9,"png","qx"],"qx/decoration/Modern/window-captionbar-lr-active-combined.png":[12,9,"png","qx"],"qx/decoration/Modern/window-captionbar-lr-inactive-combined.png":[12,9,"png",
"qx"],"qx/decoration/Modern/window-captionbar-tb-active-combined.png":[6,36,"png","qx"],"qx/decoration/Modern/window-captionbar-tb-inactive-combined.png":[6,36,"png","qx"],"qx/decoration/Modern/window-statusbar-lr-combined.png":[8,7,"png","qx"],"qx/decoration/Modern/window-statusbar-tb-combined.png":[4,24,"png","qx"],"qx/decoration/Modern/window/captionbar-active-b.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-active-combined.png",0,-18],"qx/decoration/Modern/window/captionbar-active-bl.png":[6,
6,"png","qx","qx/decoration/Modern/window-captionbar-tb-active-combined.png",0,-24],"qx/decoration/Modern/window/captionbar-active-br.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-active-combined.png",0,-12],"qx/decoration/Modern/window/captionbar-active-c.png":[40,9,"png","qx"],"qx/decoration/Modern/window/captionbar-active-l.png":[6,9,"png","qx","qx/decoration/Modern/window-captionbar-lr-active-combined.png",-6,0],"qx/decoration/Modern/window/captionbar-active-r.png":[6,9,"png",
"qx","qx/decoration/Modern/window-captionbar-lr-active-combined.png",0,0],"qx/decoration/Modern/window/captionbar-active-t.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-active-combined.png",0,-6],"qx/decoration/Modern/window/captionbar-active-tl.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-active-combined.png",0,0],"qx/decoration/Modern/window/captionbar-active-tr.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-active-combined.png",0,-30],"qx/decoration/Modern/window/captionbar-active.png":[69,
21,"png","qx"],"qx/decoration/Modern/window/captionbar-inactive-b.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-inactive-combined.png",0,-24],"qx/decoration/Modern/window/captionbar-inactive-bl.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-inactive-combined.png",0,-6],"qx/decoration/Modern/window/captionbar-inactive-br.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-inactive-combined.png",0,-30],"qx/decoration/Modern/window/captionbar-inactive-c.png":[40,
9,"png","qx"],"qx/decoration/Modern/window/captionbar-inactive-l.png":[6,9,"png","qx","qx/decoration/Modern/window-captionbar-lr-inactive-combined.png",0,0],"qx/decoration/Modern/window/captionbar-inactive-r.png":[6,9,"png","qx","qx/decoration/Modern/window-captionbar-lr-inactive-combined.png",-6,0],"qx/decoration/Modern/window/captionbar-inactive-t.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-inactive-combined.png",0,0],"qx/decoration/Modern/window/captionbar-inactive-tl.png":[6,
6,"png","qx","qx/decoration/Modern/window-captionbar-tb-inactive-combined.png",0,-12],"qx/decoration/Modern/window/captionbar-inactive-tr.png":[6,6,"png","qx","qx/decoration/Modern/window-captionbar-tb-inactive-combined.png",0,-18],"qx/decoration/Modern/window/captionbar-inactive.png":[69,21,"png","qx"],"qx/decoration/Modern/window/close-active-hovered.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-27,0],"qx/decoration/Modern/window/close-active.png":[9,9,"png",
"qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-9,0],"qx/decoration/Modern/window/close-inactive.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-90,0],"qx/decoration/Modern/window/maximize-active-hovered.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-18,0],"qx/decoration/Modern/window/maximize-active.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-81,0],"qx/decoration/Modern/window/maximize-inactive.png":[9,
9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-54,0],"qx/decoration/Modern/window/minimize-active-hovered.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-63,0],"qx/decoration/Modern/window/minimize-active.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-72,0],"qx/decoration/Modern/window/minimize-inactive.png":[9,9,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-36,0],"qx/decoration/Modern/window/restore-active-hovered.png":[9,
8,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",0,0],"qx/decoration/Modern/window/restore-active.png":[9,8,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-99,0],"qx/decoration/Modern/window/restore-inactive.png":[9,8,"png","qx","qx/decoration/Modern/window-captionbar-buttons-combined.png",-45,0],"qx/decoration/Modern/window/statusbar-b.png":[4,4,"png","qx","qx/decoration/Modern/window-statusbar-tb-combined.png",0,-16],"qx/decoration/Modern/window/statusbar-bl.png":[4,
4,"png","qx","qx/decoration/Modern/window-statusbar-tb-combined.png",0,-20],"qx/decoration/Modern/window/statusbar-br.png":[4,4,"png","qx","qx/decoration/Modern/window-statusbar-tb-combined.png",0,-4],"qx/decoration/Modern/window/statusbar-c.png":[40,7,"png","qx"],"qx/decoration/Modern/window/statusbar-l.png":[4,7,"png","qx","qx/decoration/Modern/window-statusbar-lr-combined.png",-4,0],"qx/decoration/Modern/window/statusbar-r.png":[4,7,"png","qx","qx/decoration/Modern/window-statusbar-lr-combined.png",
0,0],"qx/decoration/Modern/window/statusbar-t.png":[4,4,"png","qx","qx/decoration/Modern/window-statusbar-tb-combined.png",0,0],"qx/decoration/Modern/window/statusbar-tl.png":[4,4,"png","qx","qx/decoration/Modern/window-statusbar-tb-combined.png",0,-8],"qx/decoration/Modern/window/statusbar-tr.png":[4,4,"png","qx","qx/decoration/Modern/window-statusbar-tb-combined.png",0,-12],"qx/decoration/Modern/window/statusbar.png":[369,15,"png","qx"],"qx/icon/Tango/16/actions/dialog-cancel.png":[16,16,"png",
"qx"],"qx/icon/Tango/16/actions/dialog-ok.png":[16,16,"png","qx"],"qx/icon/Tango/16/actions/view-refresh.png":[16,16,"png","qx"],"qx/icon/Tango/16/actions/window-close.png":[16,16,"png","qx"],"qx/icon/Tango/16/apps/office-calendar.png":[16,16,"png","qx"],"qx/icon/Tango/16/apps/utilities-color-chooser.png":[16,16,"png","qx"],"qx/icon/Tango/16/mimetypes/office-document.png":[16,16,"png","qx"],"qx/icon/Tango/16/places/folder-open.png":[16,16,"png","qx"],"qx/icon/Tango/16/places/folder.png":[16,16,"png",
"qx"],"qx/icon/Tango/22/mimetypes/office-document.png":[22,22,"png","qx"],"qx/icon/Tango/22/places/folder-open.png":[22,22,"png","qx"],"qx/icon/Tango/22/places/folder.png":[22,22,"png","qx"],"qx/icon/Tango/32/mimetypes/office-document.png":[32,32,"png","qx"],"qx/icon/Tango/32/places/folder-open.png":[32,32,"png","qx"],"qx/icon/Tango/32/places/folder.png":[32,32,"png","qx"],"qx/static/blank.gif":[1,1,"gif","qx"]},translations:{C:{},en:{Corporations:"Corporations","Event Id":"Event Id","Event Type":"Event Type",
"Evt. Type":"Evt. Type",Geometry:"Geometry",Heading:"Heading",Icon:"Icon",Id:"Id","Id:":"Id:","Last Activity":"Last Activity","Last Event:":"Last Event:","Manage Users":"Manage Users","Open like Window":"Undock",Pos:"Pos","Record Id":"Record Id",SoM:"SoM",Speed:"Speed",Turkce:"T\u00fcrk\u00e7e"},tr:{Active:"Aktif","Activity Archive":"Etkinlik Ar\u015fivi",Add:"Ekle","Add Fleet":"Filo Ekle",Address:"Adres",Administration:"Y\u00f6netim","Administrative Contact":"Y\u00f6netici \u0130rtibat",Africa:"Afrika",
All:"Hepsi",America:"Amerika",Antarctica:"Antarktika",Arctic:"Arktik","Are you sure that you want to delete selected record?":"Se\u00e7ili kayd\u0131 silmek istedi\u011finizden emin misiniz?",Asia:"Asya","Assign Fleets":"Atamalar\u0131 Onayla",Atlantic:"Atlantik",Australia:"Avustralya","Auto / Man":"Oto. / Elle",Avenue:"Cadde",Blue:"Mavi",Both:"\u0130kisi de","Building Name":"Bina Ad\u0131","Building Number":"Bina No","Change Password":"\u015eifre De\u011fi\u015ftir",City:"\u015eehir",Classic:"Klasik",
Clear:"Temizle",Client:"M\u00fc\u015fteri",Close:"Kapat",Code:"Kod","Code should be specified!":"Kod belirtilmeli!",Color:"Renk",Comments:"A\u00e7\u0131klamalar","Company Type module has not been implemented yet!":"\u015eirket tipi mod\u00fcl\u00fc hen\u00fcz tamamlanmad\u0131!",Contact:"\u0130rtibat",Context:"Ba\u011flam",Corporation:"\u015eirket","Corporation - Detail":"\u015eirket - Detay","Corporation ID":"Firma No",Corporations:"\u015eirketler","Corporations ":"Firmalar",Countries:"\u00dclkeler",
Country:"\u00dclke","Country - Detail":"\u00dclke - Detay","Currency Code":"Para Birimi Kodu","Currency Desc.":"Para Birimi A\u00e7\u0131.","Currency ID":"Para Birimi ID","Currency Type":"Parabirimi Tipi","Currency Type - Detail":"Para Birimi - Detay","Currency Types":"Para Birimi Tipleri","Current Password":"Mevcut \u015eifre","Current Password should be specified!":"\u015eu anki \u015fifrenin do\u011fru girilmesi laz\u0131m!","Day: ":"G\u00fcn: ",Delete:"Sil",Description:"A\u00e7\u0131klama",Details:"Detaylar",
"Device ID":"Cihaz No","Device Make/Model":"Cihaz Marka/Model","Device Type":"Cihaz Tipi",Device_Type:"Ara\u00e7 t\u00fcr\u00fc",District:"B\u00f6lge",Domain:"Alan","Domain Name":"Alan Ad\u0131","Domain Name: ":"Alan Ad\u0131: ","Domain Password":"Alan \u015eifresi","Door Number":"Kap\u0131 No","E-Mail":"E-Posta","E-Mail: ":"E-Posta: ",Edit:"D\u00fczenle","End Date: ":"Biti\u015f Tarihi: ",English:"English","Entity: ":"Olay T\u00fcr\u00fc: ",Europe:"Avrupa","Event ID":"Olay No","Event Id":"Olay No.",
"Event Type":"Olay T\u00fcr\u00fc","Event: ":"Olay: ",Events:"Olaylar","Evt. Type":"Olay T\u00fcr\u00fc",Export:"\u0130ndir","First Event Time":"\u0130lk Olay Zaman\u0131",Fleet:"Filo","Fleet - Detail":"Filo - Detay","Fleet ID":"Filo No","Fleet Id":"Filo No","Fleet Name":"Filo \u0130smi","Fleet name should be specified!":"Filo ismi belirtilmeli!",Fleets:"Filolar","For Domain":"Alan i\u00e7in","For Fleet":"Filo i\u00e7in","For Vehicle":"Ara\u00e7 i\u00e7in",General:"Genel","Geo-Fence":"B\u00f6lge",
"Geo-Fences":"B\u00f6lgeler","Geo-fence name: ":"B\u00f6lge Ad\u0131:",Geofences:"B\u00f6lgeler",Geometry:"Geometri",Green:"Ye\u015fil",Heading:"Y\u00f6n",Hide:"Gizle",ID:"ID","IMEI: ":"IMEI: ","Iccat Number":"Iccat No",Icon:"Simge",Id:"No.","Id:":"No.:","Invalid Credentials":"Giri\u015f Ba\u015far\u0131s\u0131z",Language:"Dil","Last Activity":"Son Olay","Last Event Time":"Son Olay Zaman\u0131","Last Event:":"Son Olay","Last Login Date: ":"Son Giri\u015f Tarihi: ","Last Update":"Son G\u00fcncelleme",
Login:"Giri\u015f",Logout:"\u00c7\u0131k\u0131\u015f","Manage Users":"Kullan\u0131c\u0131lar\u0131 Y\u00f6net","Map refresh: Auto":"Har. G\u00fcncelleme: Otomatik","Map refresh: Manual":"Har. G\u00fcncelleme: Elle",Maritime:"Denizsel","Member Number":"\u00dcye Numaras\u0131",Message:"Mesaj","Message: ":"\u0130leti: ","Mobile Number":"Mobil No.",Name:"\u0130sim","Name: ":"\u0130sim: ","New Password":"Yeni \u015eifre","New Password (again)":"Yeni \u015eifre (tekrar)","No Device Communications":"Cihaz ileti\u015fimi yok",
"No Geo-Fence was marked!":"Bir Geo-Fence \u00e7izilmedi!","No POI was marked!":"Bir nokta i\u015faretlenmedi!","Num. of Updates":"G\u00fcncellenme Say\u0131s\u0131","Object type is not an instance of 'CurrencyType'":"Veri 'CurrencyType' tipinde de\u011fil.","Ocean Region":"Okyanus B\u00f6lgesi",Office:"Ofis","On Enter":"Giri\u015fte","On Exit":"\u00c7\u0131k\u0131\u015fta","On entry to geofence id":"Nolu B\u00f6lgeye Girince","On exit from geofence id":"Nolu B\u00f6lgeden \u00c7\u0131k\u0131nca",
"Open like Window":"Pencerede G\u00f6ster",Pacific:"Pasifik","Password (again): ":"\u015eifre (tekrar): ","Password: ":"\u015eifre: ","Passwords do not match!":"\u015eifreler uyu\u015fmuyor!","Per Page: ":"Sayfa Ba\u015f\u0131na",Phone:"Telefon","Please enter a password at with least 6 characters.":"L\u00fctfen en az 6 karakter uzunlu\u011funda bir \u015fifre giriniz","Please select a device!":"L\u00fctfen bir cihaz se\u00e7in!","Please select a geofence":"L\u00fctfen bir b\u00f6lge se\u00e7iniz",
"Please select a role":"L\u00fctfen bir rol se\u00e7iniz.","Please select a vehicle":"L\u00fctfen bir ara\u00e7 se\u00e7iniz","Please select an entry":"L\u00fctfen bir giri\u015f se\u00e7iniz","Please wait...":"L\u00fctfen Bekleyin...",Poi:"Nokta","Poi Name: ":"\u00d6TY Ad\u0131: ","Points of Interest":"Yer Tan\u0131mlama","Port module has not been implemented yet!":"Liman tipi mod\u00fcl\u00fc hen\u00fcz tamamlanmad\u0131!",Pos:"Konum","Record Id":"Kay\u0131t No:",Red:"K\u0131rm\u0131z\u0131",Refresh:"Yenile",
"Refresh Map":"Haritay\u0131 G\u00fcncelle","Register Number":"Kay\u0131t no","Registration Number":"Kay\u0131t No","Remember Me":"Beni Hat\u0131rla",Remove:"Sil",Reset:"S\u0131f\u0131rla","Reset Password":"\u015eifre Yenileme","Reset Rassword":"\u015eifre Yenileme","Role Detail":"Rol Detay\u0131","Role Name":"Rol Ad\u0131","Role State":"Rol Durumu",Rule:"Kural","SIM Number":"SIM No.",Save:"Kaydet",Search:"Ara",Select:"Se\u00e7","Selected Fleets":"Se\u00e7ili Filolar",Send:"G\u00f6nder","Service Region":"Hizmet B\u00f6lgesi",
"Show On Map":"Haritada G\u00f6ster","Signup Date":"Kay\u0131t Tarihi",SoM:"H.\u00dc.G.","Soft Geofence Entry":"Merkezi Denetimli B\u00f6lge Giri\u015fi","Soft Geofence Exit":"Merkezi Denetimli B\u00f6lge \u00c7\u0131k\u0131\u015f\u0131","Soft Geofences":"Merkezdeki B\u00f6lgeler",Speed:"H\u0131z","Start / Stop":"Ba\u015flat / Durdur","Start Date: ":"Ba\u015flang\u0131\u00e7 Tarihi: ","Start Device":"Cihaz\u0131n A\u00e7\u0131lmas\u0131","Start Engine":"Konta\u011f\u0131n A\u00e7\u0131lmas\u0131",
"Start Moving":"Harekete Ge\u00e7i\u015f",Station:"\u0130stasyon",Status:"Durum","Stop Device":"Cihaz\u0131n Kapanmas\u0131","Stop Engine":"Konta\u011f\u0131n Kapanmas\u0131","Stop Moving":"Duru\u015f",Street:"Sokak","Sub Address":"Alt Adres","Surname: ":"Soyad: ","Switch to":"Se\u00e7ili olana ge\u00e7","Tag the event":"Olay\u0131 i\u015faretleyin","Tax Authority":"Vergi Dairesi","Tax Number":"Vergi No","Technical Contact":"Teknik \u0130rtibat",Terrestrial:"Karasal","This field is required":"Bu alan gereklidir",
Time:"Zaman","Time Zone":"Saat Dilimi",Tip:"\u0130pucu",Turkce:"T\u00fcrk\u00e7e",Type:"T\u00fcr","User - Detail":"Kullan\u0131c\u0131 - Detay","User - Preferences":"Kullan\u0131c\u0131 - Ayarlar","User Count":"Kullan\u0131c\u0131 Say\u0131s\u0131","User Name":"Kullan\u0131c\u0131 Ad\u0131","User Name: ":"Kullan\u0131c\u0131 Ad\u0131: ","User Password":"Kullan\u0131c\u0131 \u015eifresi","User Preferences":"Kullan\u0131c\u0131 Ayarlar\u0131",Users:"Kullan\u0131c\u0131lar","Validating...":"Do\u011frulan\u0131yor...",
Vehicle:"Ara\u00e7","Vehicle - List":"Ara\u00e7 - Liste","Vehicle Detail":"Ara\u00e7 Detay\u0131","Vehicle Id":"Ara\u00e7 No",Vehicles:"Ara\u00e7lar","Vessel Type module has not been implemented yet!":"Gemi tipi mod\u00fcl\u00fc hen\u00fcz tamamlanmad\u0131!",Webpage:"Web","You may use the top-right buttons on the map to mark Geo-Fences":"Haritan\u0131n sa\u011f-\u00fcst taraf\u0131nda bulunan butonlar yard\u0131m\u0131yla sanal \u00e7it \u00e7izebilirsiniz.","You may use the top-right buttons on the map to mark a point of interest.":"Haritan\u0131n sa\u011f-\u00fcst taraf\u0131nda bulunan d\u00fc\u011fmeler yard\u0131m\u0131yla \u00f6zel tan\u0131ml\u0131 yer i\u015faretleyebilirsiniz.",
"You must select a domain from the list.":"Listeden bir alan ad\u0131 se\u00e7melisiniz.","You should mark a Geo-Fence on the map before clicking 'Save' button":"'Kaydet' butonuna t\u0131klamadan \u00f6nce sanal \u00e7itinizi harita \u00fczerinde \u00e7izmelisiniz.","You should mark a point of interest on the map before clicking 'Save' button.":"'Kaydet' butonuna t\u0131klamadan \u00f6nce \u00f6zel tan\u0131ml\u0131 yeri harita \u00fczerinde i\u015faretlemelisiniz.",Zipcode:"Posta Kodu","[ All Fleets ]":"[ B\u00fct\u00fcn Filolar ]",
"[ Select ]":"[ Se\u00e7iniz ]","[Select]":"[Se\u00e7iniz]",id:"no",or:"veya"}}};
(function(){if(!window.qx)window.qx={};qx.Bootstrap={genericToString:function(){return"[Class "+this.classname+"]"},createNamespace:function(a,b){for(var c=a.split("."),d=window,e=c[0],f=0,g=c.length-1;f<g;f++,e=c[f])d=d[e]?d[e]:d[e]={};d[e]=b;return e},setDisplayName:function(a,b,c){a.displayName=b+"."+c+"()"},setDisplayNames:function(a,b){for(var c in a){var d=a[c];if(d instanceof Function)d.displayName=b+"."+c+"()"}},define:function(a,b){b||(b={statics:{}});var c,d=null;qx.Bootstrap.setDisplayNames(b.statics,
a);if(b.members||b.extend){qx.Bootstrap.setDisplayNames(b.members,a+".prototype");c=b.construct||new Function;b.extend&&this.extendClass(c,c,b.extend,a,e);for(var d=b.statics||{},e=0,f=qx.Bootstrap.getKeys(d),g=f.length;e<g;e++){var h=f[e];c[h]=d[h]}for(var d=c.prototype,i=b.members||{},e=0,f=qx.Bootstrap.getKeys(i),g=f.length;e<g;e++)h=f[e],d[h]=i[h]}else c=b.statics||{};var e=this.createNamespace(a,c);c.name=c.classname=a;c.basename=e;c.$$type="Class";if(!c.hasOwnProperty("toString"))c.toString=
this.genericToString;b.defer&&b.defer(c,d);return qx.Bootstrap.$$registry[a]=c}};qx.Bootstrap.define("qx.Bootstrap",{statics:{LOADSTART:qx.$$start||new Date,DEBUG:function(){var a=true;qx.$$environment&&qx.$$environment["qx.debug"]===false&&(a=false);return a}(),getEnvironmentSetting:function(a){if(qx.$$environment)return qx.$$environment[a]},setEnvironmentSetting:function(a,b){if(!qx.$$environment)qx.$$environment={};qx.$$environment[a]===void 0&&(qx.$$environment[a]=b)},createNamespace:qx.Bootstrap.createNamespace,
define:qx.Bootstrap.define,setDisplayName:qx.Bootstrap.setDisplayName,setDisplayNames:qx.Bootstrap.setDisplayNames,genericToString:qx.Bootstrap.genericToString,extendClass:function(a,b,c,d,e){var f=c.prototype,g=new Function;g.prototype=f;f=new g;a.prototype=f;f.name=f.classname=d;f.basename=e;b.base=a.superclass=c;b.self=a.constructor=f.constructor=a},getByName:function(a){return qx.Bootstrap.$$registry[a]},$$registry:{},objectGetLength:function(a){var b=0,c;for(c in a)b++;return b},objectMergeWith:function(a,
b,c){c===void 0&&(c=true);for(var d in b)if(c||a[d]===void 0)a[d]=b[d];return a},__a:"isPrototypeOf,hasOwnProperty,toLocaleString,toString,valueOf,constructor".split(","),getKeys:{ES5:Object.keys,BROKEN_IE:function(a){var b=[],c=Object.prototype.hasOwnProperty,d;for(d in a)c.call(a,d)&&b.push(d);d=0;for(var e=qx.Bootstrap.__a,f=e.length;d<f;d++)c.call(a,e[d])&&b.push(e[d]);return b},"default":function(a){var b=[],c=Object.prototype.hasOwnProperty,d;for(d in a)c.call(a,d)&&b.push(d);return b}}[typeof Object.keys==
"function"?"ES5":function(){for(var a in{toString:1})return a}()!=="toString"?"BROKEN_IE":"default"],getKeysAsString:function(a){a=qx.Bootstrap.getKeys(a);return a.length==0?"":'"'+a.join('", "')+'"'},__b:{"[object String]":"String","[object Array]":"Array","[object Object]":"Object","[object RegExp]":"RegExp","[object Number]":"Number","[object Boolean]":"Boolean","[object Date]":"Date","[object Function]":"Function","[object Error]":"Error"},bind:function(a,b,c){var d=Array.prototype.slice.call(arguments,
2,arguments.length);return function(){var c=Array.prototype.slice.call(arguments,0,arguments.length);return a.apply(b,d.concat(c))}},firstUp:function(a){return a.charAt(0).toUpperCase()+a.substr(1)},firstLow:function(a){return a.charAt(0).toLowerCase()+a.substr(1)},getClass:function(a){a=Object.prototype.toString.call(a);return qx.Bootstrap.__b[a]||a.slice(8,-1)},isString:function(a){return a!==null&&(typeof a==="string"||qx.Bootstrap.getClass(a)=="String"||a instanceof String||!!a&&!!a.$$isString)},
isArray:function(a){return a!==null&&(a instanceof Array||a&&qx.data&&qx.data.IListData&&qx.util.OOUtil.hasInterface(a.constructor,qx.data.IListData)||qx.Bootstrap.getClass(a)=="Array"||!!a&&!!a.$$isArray)},isObject:function(a){return a!==void 0&&a!==null&&qx.Bootstrap.getClass(a)=="Object"},isFunction:function(a){return qx.Bootstrap.getClass(a)=="Function"},classIsDefined:function(a){return qx.Bootstrap.getByName(a)!==void 0},getPropertyDefinition:function(a,b){for(;a;){if(a.$$properties&&a.$$properties[b])return a.$$properties[b];
a=a.superclass}return null},hasProperty:function(a,b){return!!qx.Bootstrap.getPropertyDefinition(a,b)},getEventType:function(a,b){for(a=a.constructor;a.superclass;){if(a.$$events&&a.$$events[b]!==void 0)return a.$$events[b];a=a.superclass}return null},supportsEvent:function(a,b){return!!qx.Bootstrap.getEventType(a,b)},getByInterface:function(a,b){for(var c,d,e;a;){if(a.$$implements){c=a.$$flatImplements;for(d=0,e=c.length;d<e;d++)if(c[d]===b)return a}a=a.superclass}return null},hasInterface:function(a,
b){return!!qx.Bootstrap.getByInterface(a,b)},getMixins:function(a){for(var b=[];a;)a.$$includes&&b.push.apply(b,a.$$flatIncludes),a=a.superclass;return b},$$logs:[],debug:function(a,b){qx.Bootstrap.$$logs.push(["debug",arguments])},info:function(a,b){qx.Bootstrap.$$logs.push(["info",arguments])},warn:function(a,b){qx.Bootstrap.$$logs.push(["warn",arguments])},error:function(a,b){qx.Bootstrap.$$logs.push(["error",arguments])},trace:function(){}}})})();
(function(){qx.Bootstrap.define("qx.util.OOUtil",{statics:{classIsDefined:qx.Bootstrap.classIsDefined,getPropertyDefinition:qx.Bootstrap.getPropertyDefinition,hasProperty:qx.Bootstrap.hasProperty,getEventType:qx.Bootstrap.getEventType,supportsEvent:qx.Bootstrap.supportsEvent,getByInterface:qx.Bootstrap.getByInterface,hasInterface:qx.Bootstrap.hasInterface,getMixins:qx.Bootstrap.getMixins}})})();
(function(){qx.Bootstrap.define("qx.core.Environment",{statics:{_checks:{},_asyncChecks:{},__c:{},_checksMap:{"engine.version":"qx.bom.client.Engine.getVersion","engine.name":"qx.bom.client.Engine.getName","browser.name":"qx.bom.client.Browser.getName","browser.version":"qx.bom.client.Browser.getVersion","browser.documentmode":"qx.bom.client.Browser.getDocumentMode","browser.quirksmode":"qx.bom.client.Browser.getQuirksMode","runtime.name":"qx.bom.client.Runtime.getName","device.name":"qx.bom.client.Device.getName",
locale:"qx.bom.client.Locale.getLocale","locale.variant":"qx.bom.client.Locale.getVariant","os.name":"qx.bom.client.OperatingSystem.getName","os.version":"qx.bom.client.OperatingSystem.getVersion","os.scrollBarOverlayed":"qx.bom.client.Scroll.scrollBarOverlayed","plugin.gears":"qx.bom.client.Plugin.getGears","plugin.activex":"qx.bom.client.Plugin.getActiveX","plugin.quicktime":"qx.bom.client.Plugin.getQuicktime","plugin.quicktime.version":"qx.bom.client.Plugin.getQuicktimeVersion","plugin.windowsmedia":"qx.bom.client.Plugin.getWindowsMedia",
"plugin.windowsmedia.version":"qx.bom.client.Plugin.getWindowsMediaVersion","plugin.divx":"qx.bom.client.Plugin.getDivX","plugin.divx.version":"qx.bom.client.Plugin.getDivXVersion","plugin.silverlight":"qx.bom.client.Plugin.getSilverlight","plugin.silverlight.version":"qx.bom.client.Plugin.getSilverlightVersion","plugin.flash":"qx.bom.client.Flash.isAvailable","plugin.flash.version":"qx.bom.client.Flash.getVersion","plugin.flash.express":"qx.bom.client.Flash.getExpressInstall","plugin.flash.strictsecurity":"qx.bom.client.Flash.getStrictSecurityModel",
"plugin.pdf":"qx.bom.client.Plugin.getPdf","plugin.pdf.version":"qx.bom.client.Plugin.getPdfVersion","io.maxrequests":"qx.bom.client.Transport.getMaxConcurrentRequestCount","io.ssl":"qx.bom.client.Transport.getSsl","io.xhr":"qx.bom.client.Transport.getXmlHttpRequest","event.touch":"qx.bom.client.Event.getTouch","event.pointer":"qx.bom.client.Event.getPointer","event.help":"qx.bom.client.Event.getHelp","event.hashchange":"qx.bom.client.Event.getHashChange","ecmascript.objectcount":"qx.bom.client.EcmaScript.getObjectCount",
"ecmascript.stacktrace":"qx.bom.client.EcmaScript.getStackTrace","html.webworker":"qx.bom.client.Html.getWebWorker","html.filereader":"qx.bom.client.Html.getFileReader","html.geolocation":"qx.bom.client.Html.getGeoLocation","html.audio":"qx.bom.client.Html.getAudio","html.audio.ogg":"qx.bom.client.Html.getAudioOgg","html.audio.mp3":"qx.bom.client.Html.getAudioMp3","html.audio.wav":"qx.bom.client.Html.getAudioWav","html.audio.au":"qx.bom.client.Html.getAudioAu","html.audio.aif":"qx.bom.client.Html.getAudioAif",
"html.video":"qx.bom.client.Html.getVideo","html.video.ogg":"qx.bom.client.Html.getVideoOgg","html.video.h264":"qx.bom.client.Html.getVideoH264","html.video.webm":"qx.bom.client.Html.getVideoWebm","html.storage.local":"qx.bom.client.Html.getLocalStorage","html.storage.session":"qx.bom.client.Html.getSessionStorage","html.classlist":"qx.bom.client.Html.getClassList","html.xpath":"qx.bom.client.Html.getXPath","html.xul":"qx.bom.client.Html.getXul","html.canvas":"qx.bom.client.Html.getCanvas","html.svg":"qx.bom.client.Html.getSvg",
"html.vml":"qx.bom.client.Html.getVml","html.dataset":"qx.bom.client.Html.getDataset","html.dataurl":"qx.bom.client.Html.getDataUrl","html.console":"qx.bom.client.Html.getConsole","html.stylesheet.createstylesheet":"qx.bom.client.Stylesheet.getCreateStyleSheet","html.stylesheet.insertrule":"qx.bom.client.Stylesheet.getInsertRule","html.stylesheet.deleterule":"qx.bom.client.Stylesheet.getDeleteRule","html.stylesheet.addimport":"qx.bom.client.Stylesheet.getAddImport","html.stylesheet.removeimport":"qx.bom.client.Stylesheet.getRemoveImport",
"html.element.contains":"qx.bom.client.Html.getContains","html.element.compareDocumentPosition":"qx.bom.client.Html.getCompareDocumentPosition","html.element.textcontent":"qx.bom.client.Html.getTextContent","html.image.naturaldimensions":"qx.bom.client.Html.getNaturalDimensions",json:"qx.bom.client.Json.getJson","css.textoverflow":"qx.bom.client.Css.getTextOverflow","css.placeholder":"qx.bom.client.Css.getPlaceholder","css.borderradius":"qx.bom.client.Css.getBorderRadius","css.borderimage":"qx.bom.client.Css.getBorderImage",
"css.boxshadow":"qx.bom.client.Css.getBoxShadow","css.gradients":"qx.bom.client.Css.getGradients","css.gradient.linear":"qx.bom.client.Css.getLinearGradient","css.gradient.radial":"qx.bom.client.Css.getRadialGradient","css.boxmodel":"qx.bom.client.Css.getBoxModel","css.rgba":"qx.bom.client.Css.getRgba","css.userselect":"qx.bom.client.Css.getUserSelect","css.userselect.none":"qx.bom.client.Css.getUserSelectNone","css.usermodify":"qx.bom.client.Css.getUserModify","css.appearance":"qx.bom.client.Css.getAppearance",
"css.float":"qx.bom.client.Css.getFloat","css.boxsizing":"qx.bom.client.Css.getBoxSizing","css.translate3d":"qx.bom.client.CssTransform.get3D","css.animation":"qx.bom.client.CssAnimation.getSupport","css.transform":"qx.bom.client.CssTransform.getSupport","css.transform.3d":"qx.bom.client.CssTransform.get3D","css.inlineblock":"qx.bom.client.Css.getInlineBlock","css.opacity":"qx.bom.client.Css.getOpacity","css.overflowxy":"qx.bom.client.Css.getOverflowXY",phonegap:"qx.bom.client.PhoneGap.getPhoneGap",
"phonegap.notification":"qx.bom.client.PhoneGap.getNotification","xml.implementation":"qx.bom.client.Xml.getImplementation","xml.domparser":"qx.bom.client.Xml.getDomParser","xml.selectsinglenode":"qx.bom.client.Xml.getSelectSingleNode","xml.selectnodes":"qx.bom.client.Xml.getSelectNodes","xml.getelementsbytagnamens":"qx.bom.client.Xml.getElementsByTagNameNS","xml.domproperties":"qx.bom.client.Xml.getDomProperties","xml.attributens":"qx.bom.client.Xml.getAttributeNS","xml.createnode":"qx.bom.client.Xml.getCreateNode",
"xml.getqualifieditem":"qx.bom.client.Xml.getQualifiedItem","xml.createelementns":"qx.bom.client.Xml.getCreateElementNS"},get:function(a){if(qx.Bootstrap.DEBUG){var b={"css.translate3d":"css.transform.3d","css.gradients":"css.gradient.linear","ecmascript.objectcount":null};a in b&&qx.Bootstrap.warn("The key '"+a+"' is deprecated."+(b[a]?" Please use '"+b[a]+"' instead.":""))}if(this.__c[a]!=void 0)return this.__c[a];if(b=this._checks[a])return b=b(),this.__c[a]=b;b=this._getClassNameFromEnvKey(a);
if(b[0]!=void 0)return b=b[0][b[1]](),this.__c[a]=b;qx.Bootstrap.DEBUG&&(qx.Bootstrap.warn(a+" is not a valid key. Please see the API-doc of qx.core.Environment for a list of predefined keys."),qx.Bootstrap.trace(this))},_getClassNameFromEnvKey:function(a){var b=this._checksMap;if(b[a]!=void 0){var b=b[a],c=b.lastIndexOf(".");if(c>-1&&(a=b.slice(0,c),b=b.slice(c+1),a=qx.Bootstrap.getByName(a),a!=void 0))return[a,b]}return[void 0,void 0]},getAsync:function(a,b,c){var d=this;if(this.__c[a]!=void 0)window.setTimeout(function(){b.call(c,
d.__c[a])},0);else{var e=this._asyncChecks[a];if(e)e(function(e){d.__c[a]=e;b.call(c,e)});else if(e=this._getClassNameFromEnvKey(a),e[0]!=void 0)e[0][e[1]](function(e){d.__c[a]=e;b.call(c,e)});else qx.Bootstrap.DEBUG&&(qx.Bootstrap.warn(a+" is not a valid key. Please see the API-doc of qx.core.Environment for a list of predefined keys."),qx.Bootstrap.trace(this))}},select:function(a,b){return this.__d(this.get(a),b)},selectAsync:function(a,b,c){this.getAsync(a,function(d){this.__d(a,b).call(c,d)},
this)},__d:function(a,b){var c=b[a];if(b.hasOwnProperty(a))return c;for(var d in b)if(d.indexOf("|")!=-1)for(var c=d.split("|"),e=0;e<c.length;e++)if(c[e]==a)return b[d];if(b["default"]!==void 0)return b["default"];if(qx.Bootstrap.DEBUG)throw Error('No match for variant "'+a+'" ('+typeof a+" type) in variants ["+qx.Bootstrap.getKeysAsString(b)+'] found, and no default ("default") given');},filter:function(a){var b=[],c;for(c in a)this.get(c)&&b.push(a[c]);return b},invalidateCacheKey:function(a){delete this.__c[a]},
add:function(a,b){this._checks[a]==void 0&&(this._checks[a]=b instanceof Function?b:this.__g(b))},addAsync:function(a,b){this._checks[a]==void 0&&(this._asyncChecks[a]=b)},getChecks:function(){return this._checks},getAsyncChecks:function(){return this._asyncChecks},_initDefaultQxValues:function(){this.add("qx.allowUrlSettings",function(){return false});this.add("qx.allowUrlVariants",function(){return false});this.add("qx.propertyDebugLevel",function(){return 0});this.add("qx.debug",function(){return true});
this.add("qx.aspects",function(){return false});this.add("qx.dynlocale",function(){return true});this.add("qx.mobile.emulatetouch",function(){return false});this.add("qx.mobile.nativescroll",function(){return false});this.add("qx.dynamicmousewheel",function(){return true});this.add("qx.debug.databinding",function(){return false});this.add("qx.debug.dispose",function(){return false});this.add("qx.optimization.basecalls",function(){return false});this.add("qx.optimization.comments",function(){return false});
this.add("qx.optimization.privates",function(){return false});this.add("qx.optimization.strings",function(){return false});this.add("qx.optimization.variables",function(){return false});this.add("qx.optimization.variants",function(){return false});this.add("module.databinding",function(){return true});this.add("module.logger",function(){return true});this.add("module.property",function(){return true});this.add("module.events",function(){return true})},__e:function(){if(qx&&qx.$$environment)for(var a in qx.$$environment)this._checks[a]=
this.__g(qx.$$environment[a])},__f:function(){if(window.document&&window.document.location)for(var a=window.document.location.search.slice(1).split("&"),b=0;b<a.length;b++){var c=a[b].split(":");if(!(c.length!=3||c[0]!="qxenv")){var d=c[1],c=decodeURIComponent(c[2]);c=="true"?c=true:c=="false"?c=false:/^(\d|\.)+$/.test(c)&&(c=parseFloat(c));this._checks[d]=this.__g(c)}}},__g:function(a){return qx.Bootstrap.bind(function(a){return a},null,a)}},defer:function(a){a._initDefaultQxValues();a.__e();a.get("qx.allowUrlSettings")===
true&&a.__f()}})})();
(function(){qx.Bootstrap.define("qx.Mixin",{statics:{define:function(a,b){if(b){if(b.include&&qx.Bootstrap.getClass(b.include)!=="Array")b.include=[b.include];qx.core.Environment.get("qx.debug")&&this.__i(a,b);var c=b.statics?b.statics:{};qx.Bootstrap.setDisplayNames(c,a);for(var d in c)if(c[d]instanceof Function)c[d].$$mixin=c;if(b.construct)c.$$constructor=b.construct,qx.Bootstrap.setDisplayName(b.construct,a,"constructor");if(b.include)c.$$includes=b.include;if(b.properties)c.$$properties=b.properties;
if(b.members)c.$$members=b.members,qx.Bootstrap.setDisplayNames(b.members,a+".prototype");for(d in c.$$members)if(c.$$members[d]instanceof Function)c.$$members[d].$$mixin=c;if(b.events)c.$$events=b.events;if(b.destruct)c.$$destructor=b.destruct,qx.Bootstrap.setDisplayName(b.destruct,a,"destruct")}else c={};c.$$type="Mixin";c.name=a;c.toString=this.genericToString;c.basename=qx.Bootstrap.createNamespace(a,c);return this.$$registry[a]=c},checkCompatibility:function(a){var a=this.flatten(a),b=a.length;
if(b<2)return true;for(var c={},d={},e={},f,g=0;g<b;g++){f=a[g];for(var h in f.events){if(e[h])throw Error('Conflict between mixin "'+f.name+'" and "'+e[h]+'" in member "'+h+'"!');e[h]=f.name}for(h in f.properties){if(c[h])throw Error('Conflict between mixin "'+f.name+'" and "'+c[h]+'" in property "'+h+'"!');c[h]=f.name}for(h in f.members){if(d[h])throw Error('Conflict between mixin "'+f.name+'" and "'+d[h]+'" in member "'+h+'"!');d[h]=f.name}}return true},isCompatible:function(a,b){var c=qx.util.OOUtil.getMixins(b);
c.push(a);return qx.Mixin.checkCompatibility(c)},getByName:function(a){return this.$$registry[a]},isDefined:function(a){return this.getByName(a)!==void 0},getTotalNumber:function(){return qx.Bootstrap.objectGetLength(this.$$registry)},flatten:function(a){if(!a)return[];for(var b=a.concat(),c=0,d=a.length;c<d;c++)a[c].$$includes&&b.push.apply(b,this.flatten(a[c].$$includes));return b},genericToString:function(){return"[Mixin "+this.name+"]"},$$registry:{},__h:qx.core.Environment.select("qx.debug",
{"true":{include:"object",statics:"object",members:"object",properties:"object",events:"object",destruct:"function",construct:"function"},"default":null}),__i:qx.core.Environment.select("qx.debug",{"true":function(a,b){var c=this.__h,d;for(d in b){if(!c[d])throw Error('The configuration key "'+d+'" in mixin "'+a+'" is not allowed!');if(b[d]==null)throw Error('Invalid key "'+d+'" in mixin "'+a+'"! The value is undefined/null!');if(c[d]!==null&&typeof b[d]!==c[d])throw Error('Invalid type of key "'+
d+'" in mixin "'+a+'"! The type of the key must be "'+c[d]+'"!');}for(var e=["statics","members","properties","events"],c=0,f=e.length;c<f;c++)if(d=e[c],b[d]!==void 0&&(["Array","RegExp","Date"].indexOf(qx.Bootstrap.getClass(b[d]))!=-1||b[d].classname!==void 0))throw Error('Invalid key "'+d+'" in mixin "'+a+'"! The value needs to be a map!');if(b.include){c=0;d=b.include;for(f=d.length;c<f;c++){if(d[c]==null)throw Error("Includes of mixins must be mixins. The include number '"+(c+1)+"' in mixin '"+
a+"'is undefined/null!");if(d[c].$$type!=="Mixin")throw Error("Includes of mixins must be mixins. The include number '"+(c+1)+"' in mixin '"+a+"'is not a mixin!");}this.checkCompatibility(b.include)}},"default":function(){}})}})})();
(function(){qx.Bootstrap.define("qx.core.Aspect",{statics:{__j:[],wrap:function(a,b,c){for(var d=[],e=[],f=this.__j,g,h=0;h<f.length;h++)if(g=f[h],(g.type==null||c==g.type||g.type=="*")&&(g.name==null||a.match(g.name)))g.pos==-1?d.push(g.fcn):e.push(g.fcn);if(d.length===0&&e.length===0)return b;f=function(){for(var f=0;f<d.length;f++)d[f].call(this,a,b,c,arguments);for(var g=b.apply(this,arguments),f=0;f<e.length;f++)e[f].call(this,a,b,c,arguments,g);return g};if(c!=="static")f.self=b.self,f.base=
b.base;b.wrapper=f;f.original=b;return f},addAdvice:function(a,b,c,d){this.__j.push({fcn:a,pos:b==="before"?-1:1,type:c,name:d})}}})})();
(function(){qx.Bootstrap.define("qx.Interface",{statics:{define:function(a,b){if(b){if(b.extend&&qx.Bootstrap.getClass(b.extend)!=="Array")b.extend=[b.extend];qx.core.Environment.get("qx.debug")&&this.__i(a,b);var c=b.statics?b.statics:{};if(b.extend)c.$$extends=b.extend;if(b.properties)c.$$properties=b.properties;if(b.members)c.$$members=b.members;if(b.events)c.$$events=b.events}else c={};c.$$type="Interface";c.name=a;c.toString=this.genericToString;c.basename=qx.Bootstrap.createNamespace(a,c);return qx.Interface.$$registry[a]=
c},getByName:function(a){return this.$$registry[a]},isDefined:function(a){return this.getByName(a)!==void 0},getTotalNumber:function(){return qx.Bootstrap.objectGetLength(this.$$registry)},flatten:function(a){if(!a)return[];for(var b=a.concat(),c=0,d=a.length;c<d;c++)a[c].$$extends&&b.push.apply(b,this.flatten(a[c].$$extends));return b},__k:function(a,b,c,d){var e=c.$$members;if(e)for(var f in e)if(qx.Bootstrap.isFunction(e[f])){var g=this.__l(b,f);if(!g&&!qx.Bootstrap.isFunction(a[f]))throw Error('Implementation of method "'+
f+'" is missing in class "'+b.classname+'" required by interface "'+c.name+'"');d===true&&!g&&!qx.util.OOUtil.hasInterface(b,c)&&(a[f]=this.__o(c,a[f],f,e[f]))}else if(typeof a[f]===void 0&&typeof a[f]!=="function")throw Error('Implementation of member "'+f+'" is missing in class "'+b.classname+'" required by interface "'+c.name+'"');},__l:function(a,b){var c=b.match(/^(is|toggle|get|set|reset)(.*)$/);if(!c)return false;var d=qx.Bootstrap.firstLow(c[2]);return!qx.util.OOUtil.getPropertyDefinition(a,
d)?false:c[0]=="is"||c[0]=="toggle"?qx.util.OOUtil.getPropertyDefinition(a,d).check=="Boolean":true},__m:function(a,b){if(b.$$properties)for(var c in b.$$properties)if(!qx.util.OOUtil.getPropertyDefinition(a,c))throw Error('The property "'+c+'" is not supported by Class "'+a.classname+'"!');},__n:function(a,b){if(b.$$events)for(var c in b.$$events)if(!qx.util.OOUtil.supportsEvent(a,c))throw Error('The event "'+c+'" is not supported by Class "'+a.classname+'"!');},assertObject:function(a,b){var c=
a.constructor;this.__k(a,c,b,false);this.__m(c,b);this.__n(c,b);if(c=b.$$extends)for(var d=0,e=c.length;d<e;d++)this.assertObject(a,c[d])},assert:function(a,b,c){this.__k(a.prototype,a,b,c);this.__m(a,b);this.__n(a,b);if(b=b.$$extends)for(var d=0,e=b.length;d<e;d++)this.assert(a,b[d],c)},genericToString:function(){return"[Interface "+this.name+"]"},$$registry:{},__o:qx.core.Environment.select("qx.debug",{"true":function(a,b,c,d){function e(){d.apply(this,arguments);return b.apply(this,arguments)}
return b.wrapper=e},"default":function(){}}),__h:qx.core.Environment.select("qx.debug",{"true":{extend:"object",statics:"object",members:"object",properties:"object",events:"object"},"default":null}),__i:qx.core.Environment.select("qx.debug",{"true":function(a,b){if(qx.core.Environment.get("qx.debug")){var c=this.__h,d;for(d in b){if(c[d]===void 0)throw Error('The configuration key "'+d+'" in class "'+a+'" is not allowed!');if(b[d]==null)throw Error("Invalid key '"+d+"' in interface '"+a+"'! The value is undefined/null!");
if(c[d]!==null&&typeof b[d]!==c[d])throw Error('Invalid type of key "'+d+'" in interface "'+a+'"! The type of the key must be "'+c[d]+'"!');}for(var e=["statics","members","properties","events"],c=0,f=e.length;c<f;c++)if(d=e[c],b[d]!==void 0&&(["Array","RegExp","Date"].indexOf(qx.Bootstrap.getClass(b[d]))!=-1||b[d].classname!==void 0))throw Error('Invalid key "'+d+'" in interface "'+a+'"! The value needs to be a map!');if(b.extend){c=0;e=b.extend;for(f=e.length;c<f;c++){if(e[c]==null)throw Error("Extends of interfaces must be interfaces. The extend number '"+
c+1+"' in interface '"+a+"' is undefined/null!");if(e[c].$$type!=="Interface")throw Error("Extends of interfaces must be interfaces. The extend number '"+c+1+"' in interface '"+a+"' is not an interface!");}}if(b.statics)for(d in b.statics){if(d.toUpperCase()!==d)throw Error('Invalid key "'+d+'" in interface "'+a+'"! Static constants must be all uppercase.');switch(typeof b.statics[d]){case "boolean":case "string":case "number":break;default:throw Error('Invalid key "'+d+'" in interface "'+a+'"! Static constants must be all of a primitive type.');
}}}},"default":function(){}})}})})();
(function(){qx.Bootstrap.define("qx.lang.Core",{statics:{errorToString:{"native":Error.prototype.toString,emulated:function(){return this.message}}[!Error.prototype.toString||Error.prototype.toString()=="[object Error]"?"emulated":"native"],arrayIndexOf:{"native":Array.prototype.indexOf,emulated:function(a,b){b==null?b=0:b<0&&(b=Math.max(0,this.length+b));for(var c=b;c<this.length;c++)if(this[c]===a)return c;return-1}}[Array.prototype.indexOf?"native":"emulated"],arrayLastIndexOf:{"native":Array.prototype.lastIndexOf,
emulated:function(a,b){b==null?b=this.length-1:b<0&&(b=Math.max(0,this.length+b));for(var c=b;c>=0;c--)if(this[c]===a)return c;return-1}}[Array.prototype.lastIndexOf?"native":"emulated"],arrayForEach:{"native":Array.prototype.forEach,emulated:function(a,b){for(var c=this.length,d=0;d<c;d++){var e=this[d];e!==void 0&&a.call(b||window,e,d,this)}}}[Array.prototype.forEach?"native":"emulated"],arrayFilter:{"native":Array.prototype.filter,emulated:function(a,b){for(var c=[],d=this.length,e=0;e<d;e++){var f=
this[e];f!==void 0&&a.call(b||window,f,e,this)&&c.push(this[e])}return c}}[Array.prototype.filter?"native":"emulated"],arrayMap:{"native":Array.prototype.map,emulated:function(a,b){for(var c=[],d=this.length,e=0;e<d;e++){var f=this[e];f!==void 0&&(c[e]=a.call(b||window,f,e,this))}return c}}[Array.prototype.map?"native":"emulated"],arraySome:{"native":Array.prototype.some,emulated:function(a,b){for(var c=this.length,d=0;d<c;d++){var e=this[d];if(e!==void 0&&a.call(b||window,e,d,this))return true}return false}}[Array.prototype.some?
"native":"emulated"],arrayEvery:{"native":Array.prototype.every,emulated:function(a,b){for(var c=this.length,d=0;d<c;d++){var e=this[d];if(e!==void 0&&!a.call(b||window,e,d,this))return false}return true}}[Array.prototype.every?"native":"emulated"],stringQuote:{"native":String.prototype.quote,emulated:function(){return'"'+this.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"'}}[String.prototype.quote?"native":"emulated"]}});if(!Error.prototype.toString||Error.prototype.toString()=="[object Error]")Error.prototype.toString=
qx.lang.Core.errorToString;if(!Array.prototype.indexOf)Array.prototype.indexOf=qx.lang.Core.arrayIndexOf;if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=qx.lang.Core.arrayLastIndexOf;if(!Array.prototype.forEach)Array.prototype.forEach=qx.lang.Core.arrayForEach;if(!Array.prototype.filter)Array.prototype.filter=qx.lang.Core.arrayFilter;if(!Array.prototype.map)Array.prototype.map=qx.lang.Core.arrayMap;if(!Array.prototype.some)Array.prototype.some=qx.lang.Core.arraySome;if(!Array.prototype.every)Array.prototype.every=
qx.lang.Core.arrayEvery;if(!String.prototype.quote)String.prototype.quote=qx.lang.Core.stringQuote})();
(function(){qx.Bootstrap.define("qx.core.Property",{statics:{__p:function(){qx.core.Environment.get("module.events")},__q:{Boolean:"qx.core.Assert.assertBoolean(value, msg) || true",String:"qx.core.Assert.assertString(value, msg) || true",Number:"qx.core.Assert.assertNumber(value, msg) || true",Integer:"qx.core.Assert.assertInteger(value, msg) || true",PositiveNumber:"qx.core.Assert.assertPositiveNumber(value, msg) || true",PositiveInteger:"qx.core.Assert.assertPositiveInteger(value, msg) || true",
Error:"qx.core.Assert.assertInstance(value, Error, msg) || true",RegExp:"qx.core.Assert.assertInstance(value, RegExp, msg) || true",Object:"qx.core.Assert.assertObject(value, msg) || true",Array:"qx.core.Assert.assertArray(value, msg) || true",Map:"qx.core.Assert.assertMap(value, msg) || true",Function:"qx.core.Assert.assertFunction(value, msg) || true",Date:"qx.core.Assert.assertInstance(value, Date, msg) || true",Node:"value !== null && value.nodeType !== undefined",Element:"value !== null && value.nodeType === 1 && value.attributes",
Document:"value !== null && value.nodeType === 9 && value.documentElement",Window:"value !== null && value.document",Event:"value !== null && value.type !== undefined",Class:'value !== null && value.$$type === "Class"',Mixin:'value !== null && value.$$type === "Mixin"',Interface:'value !== null && value.$$type === "Interface"',Theme:'value !== null && value.$$type === "Theme"',Color:"qx.lang.Type.isString(value) && qx.util.ColorUtil.isValidPropertyValue(value)",Decorator:"value !== null && qx.theme.manager.Decoration.getInstance().isValidPropertyValue(value)",
Font:"value !== null && qx.theme.manager.Font.getInstance().isDynamic(value)"},__r:{Node:true,Element:true,Document:true,Window:true,Event:true},$$inherit:"inherit",$$store:{runtime:{},user:{},theme:{},inherit:{},init:{},useinit:{}},$$method:{get:{},set:{},reset:{},init:{},refresh:{},setRuntime:{},resetRuntime:{},setThemed:{},resetThemed:{}},$$allowedKeys:{name:"string",dereference:"boolean",inheritable:"boolean",nullable:"boolean",themeable:"boolean",refine:"boolean",init:null,apply:"string",event:"string",
check:null,transform:"string",deferredInit:"boolean",validate:null},$$allowedGroupKeys:{name:"string",group:"object",mode:"string",themeable:"boolean"},$$inheritable:{},__s:function(a){var b=this.__t(a),b=b.length?this.__u(b):function(){};a.prototype.$$refreshInheritables=b},__t:function(a){for(var b=[];a;){var c=a.$$properties;if(c)for(var d in this.$$inheritable)c[d]&&c[d].inheritable&&b.push(d);a=a.superclass}return b},__u:function(a){for(var b=this.$$store.inherit,c=this.$$store.init,d=this.$$method.refresh,
e=["var parent = this.getLayoutParent();","if (!parent) return;"],f=0,g=a.length;f<g;f++){var h=a[f];e.push("var value = parent.",b[h],";","if (value===undefined) value = parent.",c[h],";","this.",d[h],"(value);")}return new Function(e.join(""))},attachRefreshInheritables:function(a){a.prototype.$$refreshInheritables=function(){qx.core.Property.__s(a);return this.$$refreshInheritables()}},attachMethods:function(a,b,c){c.group?this.__v(a,c,b):this.__w(a,c,b)},__v:function(a,b,c){var d=qx.Bootstrap.firstUp(c),
a=a.prototype,e=b.themeable===true;qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.propertyDebugLevel")>1&&qx.Bootstrap.debug("Generating property group: "+c);var f=[],g=[];if(e)var h=[],i=[];f.push("var a=arguments[0] instanceof Array?arguments[0]:arguments;");e&&h.push("var a=arguments[0] instanceof Array?arguments[0]:arguments;");b.mode=="shorthand"&&(f.push("a=qx.lang.Array.fromShortHand(qx.lang.Array.fromArguments(a));"),e&&h.push("a=qx.lang.Array.fromShortHand(qx.lang.Array.fromArguments(a));"));
for(var j=0,b=b.group,k=b.length;j<k;j++){if(qx.core.Environment.get("qx.debug")&&(!this.$$method.set[b[j]]||!this.$$method.reset[b[j]]))throw Error("Cannot create property group '"+c+"' including non-existing property '"+b[j]+"'!");f.push("this.",this.$$method.set[b[j]],"(a[",j,"]);");g.push("this.",this.$$method.reset[b[j]],"();");if(e){if(qx.core.Environment.get("qx.debug")&&!this.$$method.setThemed[b[j]])throw Error("Cannot add the non themable property '"+b[j]+"' to the themable property group '"+
c+"'");h.push("this.",this.$$method.setThemed[b[j]],"(a[",j,"]);");i.push("this.",this.$$method.resetThemed[b[j]],"();")}}this.$$method.set[c]="set"+d;a[this.$$method.set[c]]=new Function(f.join(""));this.$$method.reset[c]="reset"+d;a[this.$$method.reset[c]]=new Function(g.join(""));e&&(this.$$method.setThemed[c]="setThemed"+d,a[this.$$method.setThemed[c]]=new Function(h.join("")),this.$$method.resetThemed[c]="resetThemed"+d,a[this.$$method.resetThemed[c]]=new Function(i.join("")))},__w:function(a,
b,c){var d=qx.Bootstrap.firstUp(c),e=a.prototype;qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.propertyDebugLevel")>1&&qx.Bootstrap.debug("Generating property wrappers: "+c);if(b.dereference===void 0&&typeof b.check==="string")b.dereference=this.__x(b.check);var f=this.$$method,g=this.$$store;g.runtime[c]="$$runtime_"+c;g.user[c]="$$user_"+c;g.theme[c]="$$theme_"+c;g.init[c]="$$init_"+c;g.inherit[c]="$$inherit_"+c;g.useinit[c]="$$useinit_"+c;f.get[c]="get"+d;e[f.get[c]]=function(){return qx.core.Property.executeOptimizedGetter(this,
a,c,"get")};f.set[c]="set"+d;e[f.set[c]]=function(b){return qx.core.Property.executeOptimizedSetter(this,a,c,"set",arguments)};f.reset[c]="reset"+d;e[f.reset[c]]=function(){return qx.core.Property.executeOptimizedSetter(this,a,c,"reset")};if(b.inheritable||b.apply||b.event||b.deferredInit)f.init[c]="init"+d,e[f.init[c]]=function(b){return qx.core.Property.executeOptimizedSetter(this,a,c,"init",arguments)};b.inheritable&&(f.refresh[c]="refresh"+d,e[f.refresh[c]]=function(b){return qx.core.Property.executeOptimizedSetter(this,
a,c,"refresh",arguments)});f.setRuntime[c]="setRuntime"+d;e[f.setRuntime[c]]=function(b){return qx.core.Property.executeOptimizedSetter(this,a,c,"setRuntime",arguments)};f.resetRuntime[c]="resetRuntime"+d;e[f.resetRuntime[c]]=function(){return qx.core.Property.executeOptimizedSetter(this,a,c,"resetRuntime")};b.themeable&&(f.setThemed[c]="setThemed"+d,e[f.setThemed[c]]=function(b){return qx.core.Property.executeOptimizedSetter(this,a,c,"setThemed",arguments)},f.resetThemed[c]="resetThemed"+d,e[f.resetThemed[c]]=
function(){return qx.core.Property.executeOptimizedSetter(this,a,c,"resetThemed")});b.check==="Boolean"&&(e["toggle"+d]=new Function("return this."+f.set[c]+"(!this."+f.get[c]+"())"),e["is"+d]=new Function("return this."+f.get[c]+"()"))},__x:function(a){return!!this.__r[a]},__y:function(a){return this.__r[a]||qx.util.OOUtil.classIsDefined(a)||qx.Interface&&qx.Interface.isDefined(a)},__z:{0:"Could not change or apply init value after constructing phase!",1:"Requires exactly one argument!",2:"Undefined value is not allowed!",
3:"Does not allow any arguments!",4:"Null value is not allowed!",5:"Is invalid!"},error:function(a,b,c,d,e){throw Error("Error in property "+c+" of class "+a.constructor.classname+" in method "+this.$$method[d][c]+" with incoming value '"+e+"': "+(this.__z[b]||"Unknown reason: "+b));},__A:function(a,b,c,d,e,f){var g=this.$$method[d][c];if(qx.core.Environment.get("qx.debug")){qx.core.Environment.get("qx.propertyDebugLevel")>1&&qx.Bootstrap.debug("Code["+this.$$method[d][c]+"]: "+e.join(""));try{b[g]=
new Function("value",e.join(""))}catch(h){throw Error("Malformed generated code to unwrap method: "+this.$$method[d][c]+"\n"+e.join(""));}}else b[g]=new Function("value",e.join(""));qx.core.Environment.get("qx.aspects")&&(b[g]=qx.core.Aspect.wrap(a.classname+"."+g,b[g],"property"));qx.Bootstrap.setDisplayName(b[g],a.classname+".prototype",g);return f===void 0?a[g]():qx.core.Environment.get("qx.debug")?a[g].apply(a,f):a[g](f[0])},executeOptimizedGetter:function(a,b,c,d){var e=b.$$properties[c],f=b.prototype,
g=[],h=this.$$store;g.push("if(this.",h.runtime[c],"!==undefined)");g.push("return this.",h.runtime[c],";");e.inheritable&&(g.push("else if(this.",h.inherit[c],"!==undefined)"),g.push("return this.",h.inherit[c],";"),g.push("else "));g.push("if(this.",h.user[c],"!==undefined)");g.push("return this.",h.user[c],";");e.themeable&&(g.push("else if(this.",h.theme[c],"!==undefined)"),g.push("return this.",h.theme[c],";"));e.deferredInit&&e.init===void 0&&(g.push("else if(this.",h.init[c],"!==undefined)"),
g.push("return this.",h.init[c],";"));g.push("else ");e.init!==void 0?e.inheritable?(g.push("var init=this.",h.init[c],";"),e.nullable?g.push("if(init==qx.core.Property.$$inherit)init=null;"):e.init!==void 0?g.push("return this.",h.init[c],";"):g.push('if(init==qx.core.Property.$$inherit)throw new Error("Inheritable property ',c," of an instance of ",b.classname,' is not (yet) ready!");'),g.push("return init;")):g.push("return this.",h.init[c],";"):e.inheritable||e.nullable?g.push("return null;"):
g.push('throw new Error("Property ',c," of an instance of ",b.classname,' is not (yet) ready!");');return this.__A(a,f,c,d,g)},executeOptimizedSetter:function(a,b,c,d,e){var f=b.$$properties[c],g=b.prototype,h=[],i=d==="set"||d==="setThemed"||d==="setRuntime"||d==="init"&&f.init===void 0,j=f.apply||f.event||f.inheritable,k=this.__B(d,c);this.__C(h,f,c,d,i);i&&this.__D(h,b,f,c);j&&this.__E(h,i,k,d);f.inheritable&&h.push("var inherit=prop.$$inherit;");qx.core.Environment.get("qx.debug")&&i&&this.__F(h,
f,b,c,d);j?this.__H(h,f,c,d,i):this.__G(h,c,d,i);f.inheritable?this.__I(h,f,c,d):j&&this.__J(h,f,c,d);j&&(this.__K(h,f,c),f.inheritable&&g._getChildren&&this.__L(h,c));i&&h.push("return value;");return this.__A(a,g,c,d,h,e)},__B:function(a,b){return a==="setRuntime"||a==="resetRuntime"?this.$$store.runtime[b]:a==="setThemed"||a==="resetThemed"?this.$$store.theme[b]:a==="init"?this.$$store.init[b]:this.$$store.user[b]},__C:function(a,b,c,d,e){qx.core.Environment.get("qx.debug")?(a.push("var prop=qx.core.Property;"),
d==="init"&&a.push('if(this.$$initialized)prop.error(this,0,"',c,'","',d,'",value);'),d!=="refresh"&&(e?(a.push('if(arguments.length!==1)prop.error(this,1,"',c,'","',d,'",value);'),a.push('if(value===undefined)prop.error(this,2,"',c,'","',d,'",value);')):a.push('if(arguments.length!==0)prop.error(this,3,"',c,'","',d,'",value);'))):((!b.nullable||b.check||b.inheritable)&&a.push("var prop=qx.core.Property;"),d==="set"&&a.push('if(value===undefined)prop.error(this,2,"',c,'","',d,'",value);'))},__D:function(a,
b,c,d){c.transform&&a.push("value=this.",c.transform,"(value);");c.validate&&(typeof c.validate==="string"?a.push("this.",c.validate,"(value);"):c.validate instanceof Function&&(a.push(b.classname,".$$properties.",d),a.push(".validate.call(this, value);")))},__E:function(a,b,c,d){d=d==="reset"||d==="resetThemed"||d==="resetRuntime";b?a.push("if(this.",c,"===value)return value;"):d&&a.push("if(this.",c,"===undefined)return;")},__F:qx.core.Environment.select("qx.debug",{"true":function(a,b,c,d,e){b.nullable||
a.push('if(value===null)prop.error(this,4,"',d,'","',e,'",value);');if(b.check!==void 0){a.push("var msg = \"Invalid incoming value for property '"+d+"' of class '"+c.classname+"'\";");b.nullable&&a.push("if(value!==null)");b.inheritable&&a.push("if(value!==inherit)");a.push("if(");if(this.__q[b.check]!==void 0)a.push("!(",this.__q[b.check],")");else if(qx.Class.isDefined(b.check))a.push('qx.core.Assert.assertInstance(value, qx.Class.getByName("',b.check,'"), msg)');else if(qx.Interface&&qx.Interface.isDefined(b.check))a.push('qx.core.Assert.assertInterface(value, qx.Interface.getByName("',
b.check,'"), msg)');else if(typeof b.check==="function")a.push("!",c.classname,".$$properties.",d),a.push(".check.call(this, value)");else if(typeof b.check==="string")a.push("!(",b.check,")");else if(b.check instanceof Array)a.push("qx.core.Assert.assertInArray(value, ",c.classname,".$$properties.",d,".check, msg)");else throw Error("Could not add check to property "+d+" of class "+c.classname);a.push(')prop.error(this,5,"',d,'","',e,'",value);')}},"false":void 0}),__G:function(a,b,c,d){c==="setRuntime"?
a.push("this.",this.$$store.runtime[b],"=value;"):c==="resetRuntime"?(a.push("if(this.",this.$$store.runtime[b],"!==undefined)"),a.push("delete this.",this.$$store.runtime[b],";")):c==="set"?a.push("this.",this.$$store.user[b],"=value;"):c==="reset"?(a.push("if(this.",this.$$store.user[b],"!==undefined)"),a.push("delete this.",this.$$store.user[b],";")):c==="setThemed"?a.push("this.",this.$$store.theme[b],"=value;"):c==="resetThemed"?(a.push("if(this.",this.$$store.theme[b],"!==undefined)"),a.push("delete this.",
this.$$store.theme[b],";")):c==="init"&&d&&a.push("this.",this.$$store.init[b],"=value;")},__H:function(a,b,c,d,e){b.inheritable?a.push("var computed, old=this.",this.$$store.inherit[c],";"):a.push("var computed, old;");a.push("if(this.",this.$$store.runtime[c],"!==undefined){");d==="setRuntime"?a.push("computed=this.",this.$$store.runtime[c],"=value;"):d==="resetRuntime"?(a.push("delete this.",this.$$store.runtime[c],";"),a.push("if(this.",this.$$store.user[c],"!==undefined)"),a.push("computed=this.",
this.$$store.user[c],";"),a.push("else if(this.",this.$$store.theme[c],"!==undefined)"),a.push("computed=this.",this.$$store.theme[c],";"),a.push("else if(this.",this.$$store.init[c],"!==undefined){"),a.push("computed=this.",this.$$store.init[c],";"),a.push("this.",this.$$store.useinit[c],"=true;"),a.push("}")):(a.push("old=computed=this.",this.$$store.runtime[c],";"),d==="set"?a.push("this.",this.$$store.user[c],"=value;"):d==="reset"?a.push("delete this.",this.$$store.user[c],";"):d==="setThemed"?
a.push("this.",this.$$store.theme[c],"=value;"):d==="resetThemed"?a.push("delete this.",this.$$store.theme[c],";"):d==="init"&&e&&a.push("this.",this.$$store.init[c],"=value;"));a.push("}");a.push("else if(this.",this.$$store.user[c],"!==undefined){");d==="set"?(b.inheritable||a.push("old=this.",this.$$store.user[c],";"),a.push("computed=this.",this.$$store.user[c],"=value;")):d==="reset"?(b.inheritable||a.push("old=this.",this.$$store.user[c],";"),a.push("delete this.",this.$$store.user[c],";"),
a.push("if(this.",this.$$store.runtime[c],"!==undefined)"),a.push("computed=this.",this.$$store.runtime[c],";"),a.push("if(this.",this.$$store.theme[c],"!==undefined)"),a.push("computed=this.",this.$$store.theme[c],";"),a.push("else if(this.",this.$$store.init[c],"!==undefined){"),a.push("computed=this.",this.$$store.init[c],";"),a.push("this.",this.$$store.useinit[c],"=true;"),a.push("}")):(d==="setRuntime"?a.push("computed=this.",this.$$store.runtime[c],"=value;"):b.inheritable?a.push("computed=this.",
this.$$store.user[c],";"):a.push("old=computed=this.",this.$$store.user[c],";"),d==="setThemed"?a.push("this.",this.$$store.theme[c],"=value;"):d==="resetThemed"?a.push("delete this.",this.$$store.theme[c],";"):d==="init"&&e&&a.push("this.",this.$$store.init[c],"=value;"));a.push("}");b.themeable&&(a.push("else if(this.",this.$$store.theme[c],"!==undefined){"),b.inheritable||a.push("old=this.",this.$$store.theme[c],";"),d==="setRuntime"?a.push("computed=this.",this.$$store.runtime[c],"=value;"):d===
"set"?a.push("computed=this.",this.$$store.user[c],"=value;"):d==="setThemed"?a.push("computed=this.",this.$$store.theme[c],"=value;"):d==="resetThemed"?(a.push("delete this.",this.$$store.theme[c],";"),a.push("if(this.",this.$$store.init[c],"!==undefined){"),a.push("computed=this.",this.$$store.init[c],";"),a.push("this.",this.$$store.useinit[c],"=true;"),a.push("}")):d==="init"?(e&&a.push("this.",this.$$store.init[c],"=value;"),a.push("computed=this.",this.$$store.theme[c],";")):d==="refresh"&&
a.push("computed=this.",this.$$store.theme[c],";"),a.push("}"));a.push("else if(this.",this.$$store.useinit[c],"){");b.inheritable||a.push("old=this.",this.$$store.init[c],";");if(d==="init")e?a.push("computed=this.",this.$$store.init[c],"=value;"):a.push("computed=this.",this.$$store.init[c],";");else if(d==="set"||d==="setRuntime"||d==="setThemed"||d==="refresh")a.push("delete this.",this.$$store.useinit[c],";"),d==="setRuntime"?a.push("computed=this.",this.$$store.runtime[c],"=value;"):d==="set"?
a.push("computed=this.",this.$$store.user[c],"=value;"):d==="setThemed"?a.push("computed=this.",this.$$store.theme[c],"=value;"):d==="refresh"&&a.push("computed=this.",this.$$store.init[c],";");a.push("}");if(d==="set"||d==="setRuntime"||d==="setThemed"||d==="init")a.push("else{"),d==="setRuntime"?a.push("computed=this.",this.$$store.runtime[c],"=value;"):d==="set"?a.push("computed=this.",this.$$store.user[c],"=value;"):d==="setThemed"?a.push("computed=this.",this.$$store.theme[c],"=value;"):d===
"init"&&(e?a.push("computed=this.",this.$$store.init[c],"=value;"):a.push("computed=this.",this.$$store.init[c],";"),a.push("this.",this.$$store.useinit[c],"=true;")),a.push("}")},__I:function(a,b,c,d){a.push("if(computed===undefined||computed===inherit){");d==="refresh"?a.push("computed=value;"):a.push("var pa=this.getLayoutParent();if(pa)computed=pa.",this.$$store.inherit[c],";");a.push("if((computed===undefined||computed===inherit)&&");a.push("this.",this.$$store.init[c],"!==undefined&&");a.push("this.",
this.$$store.init[c],"!==inherit){");a.push("computed=this.",this.$$store.init[c],";");a.push("this.",this.$$store.useinit[c],"=true;");a.push("}else{");a.push("delete this.",this.$$store.useinit[c],";}");a.push("}");a.push("if(old===computed)return value;");a.push("if(computed===inherit){");a.push("computed=undefined;delete this.",this.$$store.inherit[c],";");a.push("}");a.push("else if(computed===undefined)");a.push("delete this.",this.$$store.inherit[c],";");a.push("else this.",this.$$store.inherit[c],
"=computed;");a.push("var backup=computed;");b.init!==void 0&&d!=="init"?a.push("if(old===undefined)old=this.",this.$$store.init[c],";"):a.push("if(old===undefined)old=null;");a.push("if(computed===undefined||computed==inherit)computed=null;")},__J:function(a,b,c,d){d!=="set"&&d!=="setRuntime"&&d!=="setThemed"&&a.push("if(computed===undefined)computed=null;");a.push("if(old===computed)return value;");b.init!==void 0&&d!=="init"?a.push("if(old===undefined)old=this.",this.$$store.init[c],";"):a.push("if(old===undefined)old=null;")},
__K:function(a,b,c){b.apply&&a.push("this.",b.apply,'(computed, old, "',c,'");');b.event&&a.push("var reg=qx.event.Registration;","if(reg.hasListener(this, '",b.event,"')){","reg.fireEvent(this, '",b.event,"', qx.event.type.Data, [computed, old]",")}")},__L:function(a,b){a.push("var a=this._getChildren();if(a)for(var i=0,l=a.length;i<l;i++){");a.push("if(a[i].",this.$$method.refresh[b],")a[i].",this.$$method.refresh[b],"(backup);");a.push("}")}},defer:function(a){var b=navigator.userAgent.indexOf("MSIE 6.0")!=
-1,c=navigator.userAgent.indexOf("rv:1.8.1")!=-1;if(b||c)a.__x=a.__y}})})();
(function(){qx.Bootstrap.define("qx.Class",{statics:{__M:qx.core.Environment.get("module.property")?qx.core.Property:null,define:function(a,b){b||(b={});if(b.include&&qx.Bootstrap.getClass(b.include)!=="Array")b.include=[b.include];if(b.implement&&qx.Bootstrap.getClass(b.implement)!=="Array")b.implement=[b.implement];var c=false;if(!b.hasOwnProperty("extend")&&!b.type)b.type="static",c=true;if(qx.core.Environment.get("qx.debug"))try{this.__i(a,b)}catch(d){if(c)d.message='Assumed static class because no "extend" key was found. '+
d.message;throw d;}var e=this.__P(a,b.type,b.extend,b.statics,b.construct,b.destruct,b.include);if(b.extend&&(b.properties&&this.__R(e,b.properties,true),b.members&&this.__T(e,b.members,true,true,false),b.events&&this.__Q(e,b.events,true),b.include))for(var c=0,f=b.include.length;c<f;c++)this.__X(e,b.include[c],false);if(b.environment)for(var g in b.environment)qx.core.Environment.add(g,b.environment[g]);if(b.implement){c=0;for(f=b.implement.length;c<f;c++)this.__V(e,b.implement[c])}qx.core.Environment.get("qx.debug")&&
this.__O(e);if(b.defer)b.defer.self=e,b.defer(e,e.prototype,{add:function(a,b){var c={};c[a]=b;qx.Class.__R(e,c,true)}});return e},undefine:function(a){delete this.$$registry[a];for(var a=a.split("."),b=[window],c=0;c<a.length;c++)b.push(b[c][a[c]]);for(c=b.length-1;c>=1;c--){var d=b[c],e=b[c-1];if(qx.Bootstrap.isFunction(d)||qx.Bootstrap.objectGetLength(d)===0)delete e[a[c-1]];else break}},isDefined:qx.util.OOUtil.classIsDefined,getTotalNumber:function(){return qx.Bootstrap.objectGetLength(this.$$registry)},
getByName:qx.Bootstrap.getByName,include:function(a,b){if(qx.core.Environment.get("qx.debug")){if(!b)throw Error("The mixin to include into class '"+a.classname+"' is undefined/null!");qx.Mixin.isCompatible(b,a)}qx.Class.__X(a,b,false)},patch:function(a,b){if(qx.core.Environment.get("qx.debug")){if(!b)throw Error("The mixin to patch class '"+a.classname+"' is undefined/null!");qx.Mixin.isCompatible(b,a)}qx.Class.__X(a,b,true)},isSubClassOf:function(a,b){return!a?false:a==b?true:a.prototype instanceof
b?true:false},getPropertyDefinition:qx.util.OOUtil.getPropertyDefinition,getProperties:function(a){for(var b=[];a;)a.$$properties&&b.push.apply(b,qx.Bootstrap.getKeys(a.$$properties)),a=a.superclass;return b},getByProperty:function(a,b){for(;a;){if(a.$$properties&&a.$$properties[b])return a;a=a.superclass}return null},hasProperty:qx.util.OOUtil.hasProperty,getEventType:qx.util.OOUtil.getEventType,supportsEvent:qx.util.OOUtil.supportsEvent,hasOwnMixin:function(a,b){return a.$$includes&&a.$$includes.indexOf(b)!==
-1},getByMixin:function(a,b){for(var c,d,e;a;){if(a.$$includes){c=a.$$flatIncludes;for(d=0,e=c.length;d<e;d++)if(c[d]===b)return a}a=a.superclass}return null},getMixins:qx.util.OOUtil.getMixins,hasMixin:function(a,b){return!!this.getByMixin(a,b)},hasOwnInterface:function(a,b){return a.$$implements&&a.$$implements.indexOf(b)!==-1},getByInterface:qx.util.OOUtil.getByInterface,getInterfaces:function(a){for(var b=[];a;)a.$$implements&&b.push.apply(b,a.$$flatImplements),a=a.superclass;return b},hasInterface:qx.util.OOUtil.hasInterface,
implementsInterface:function(a,b){var c=a.constructor;if(this.hasInterface(c,b))return true;try{return qx.Interface.assertObject(a,b),true}catch(d){}try{return qx.Interface.assert(c,b,false),true}catch(e){}return false},getInstance:function(){if(!this.$$instance)this.$$allowconstruct=true,this.$$instance=new this,delete this.$$allowconstruct;return this.$$instance},genericToString:function(){return"[Class "+this.classname+"]"},$$registry:qx.Bootstrap.$$registry,__h:qx.core.Environment.select("qx.debug",
{"true":{type:"string",extend:"function",implement:"object",include:"object",construct:"function",statics:"object",properties:"object",members:"object",environment:"object",events:"object",defer:"function",destruct:"function"},"default":null}),__N:qx.core.Environment.select("qx.debug",{"true":{type:"string",statics:"object",environment:"object",defer:"function"},"default":null}),__i:qx.core.Environment.select("qx.debug",{"true":function(a,b){if(b.type&&!(b.type==="static"||b.type==="abstract"||b.type===
"singleton"))throw Error('Invalid type "'+b.type+'" definition for class "'+a+'"!');if(b.type&&b.type!=="static"&&!b.extend)throw Error('Invalid config in class "'+a+'"! Every non-static class has to extend at least the "qx.core.Object" class.');var c=b.type==="static"?this.__N:this.__h,d;for(d in b){if(!c[d])throw Error('The configuration key "'+d+'" in class "'+a+'" is not allowed!');if(b[d]==null)throw Error('Invalid key "'+d+'" in class "'+a+'"! The value is undefined/null!');if(typeof b[d]!==
c[d])throw Error('Invalid type of key "'+d+'" in class "'+a+'"! The type of the key must be "'+c[d]+'"!');}for(var e="statics,properties,members,environment,settings,variants,events".split(","),c=0,f=e.length;c<f;c++)if(d=e[c],b[d]!==void 0&&(b[d].$$hash!==void 0||!qx.Bootstrap.isObject(b[d])))throw Error('Invalid key "'+d+'" in class "'+a+'"! The value needs to be a map!');if(b.include)if(qx.Bootstrap.getClass(b.include)==="Array"){c=0;e=b.include;for(f=e.length;c<f;c++)if(e[c]==null||e[c].$$type!==
"Mixin")throw Error('The include definition in class "'+a+'" contains an invalid mixin at position '+c+": "+e[c]);}else throw Error('Invalid include definition in class "'+a+'"! Only mixins and arrays of mixins are allowed!');if(b.implement)if(qx.Bootstrap.getClass(b.implement)==="Array"){c=0;e=b.implement;for(f=e.length;c<f;c++)if(e[c]==null||e[c].$$type!=="Interface")throw Error('The implement definition in class "'+a+'" contains an invalid interface at position '+c+": "+e[c]);}else throw Error('Invalid implement definition in class "'+
a+'"! Only interfaces and arrays of interfaces are allowed!');if(b.include)try{qx.Mixin.checkCompatibility(b.include)}catch(g){throw Error('Error in include definition of class "'+a+'"! '+g.message);}if(b.environment)for(d in b.environment)if(d.substr(0,d.indexOf("."))!=a.substr(0,a.indexOf(".")))throw Error('Forbidden environment setting "'+d+'" found in "'+a+'". It is forbidden to define a environment setting for an external namespace!');if(b.settings)for(d in b.settings)if(d.substr(0,d.indexOf("."))!=
a.substr(0,a.indexOf(".")))throw Error('Forbidden setting "'+d+'" found in "'+a+'". It is forbidden to define a default setting for an external namespace!');if(b.variants)for(d in b.variants)if(d.substr(0,d.indexOf("."))!=a.substr(0,a.indexOf(".")))throw Error('Forbidden variant "'+d+'" found in "'+a+'". It is forbidden to define a variant for an external namespace!');},"default":function(){}}),__O:qx.core.Environment.select("qx.debug",{"true":function(a){for(var b=a.superclass;b;){if(b.$$classtype!==
"abstract")break;var c=b.$$implements;if(c)for(var d=0;d<c.length;d++)qx.Interface.assert(a,c[d],true);b=b.superclass}},"default":function(){}}),__P:function(a,b,c,d,e,f,g){var h;if(!c&&qx.core.Environment.get("qx.aspects")==false)h=d||{},qx.Bootstrap.setDisplayNames(h,a);else{h={};if(c){e||(e=this.__Y());h=this.__bb(c,g)?this.__bc(e,a,b):e;if(b==="singleton")h.getInstance=this.getInstance;qx.Bootstrap.setDisplayName(e,a,"constructor")}if(d){qx.Bootstrap.setDisplayNames(d,a);for(var i=0,j=qx.Bootstrap.getKeys(d),
k=j.length;i<k;i++){var g=j[i],l=d[g];qx.core.Environment.get("qx.aspects")&&l instanceof Function&&(l=qx.core.Aspect.wrap(a+"."+g,l,"static"));h[g]=l}}}d=qx.Bootstrap.createNamespace(a,h);h.name=h.classname=a;h.basename=d;h.$$type="Class";if(b)h.$$classtype=b;if(!h.hasOwnProperty("toString"))h.toString=this.genericToString;if(c&&(qx.Bootstrap.extendClass(h,e,c,a,d),f))qx.core.Environment.get("qx.aspects")&&(f=qx.core.Aspect.wrap(a,f,"destructor")),h.$$destructor=f,qx.Bootstrap.setDisplayName(f,a,
"destruct");return this.$$registry[a]=h},__Q:function(a,b,c){if(qx.core.Environment.get("qx.debug")){if(typeof b!=="object"||qx.Bootstrap.getClass(b)==="Array")throw Error(a.classname+": the events must be defined as map!");for(var d in b)if(typeof b[d]!=="string")throw Error(a.classname+"/"+d+": the event value needs to be a string with the class name of the event object which will be fired.");if(a.$$events&&c!==true)for(d in b)if(a.$$events[d]!==void 0&&a.$$events[d]!==b[d])throw Error(a.classname+
"/"+d+": the event value/type cannot be changed from "+a.$$events[d]+" to "+b[d]);}if(a.$$events)for(d in b)a.$$events[d]=b[d];else a.$$events=b},__R:function(a,b,c){if(!qx.core.Environment.get("module.property"))throw Error("Property module disabled.");var d;c===void 0&&(c=false);var e=a.prototype,f;for(f in b){d=b[f];qx.core.Environment.get("qx.debug")&&this.__S(a,f,d,c);d.name=f;if(!d.refine){if(a.$$properties===void 0)a.$$properties={};a.$$properties[f]=d}if(d.init!==void 0)a.prototype["$$init_"+
f]=d.init;if(d.event!==void 0){if(!qx.core.Environment.get("module.events"))throw Error("Events module not enabled.");var g={};g[d.event]="qx.event.type.Data";this.__Q(a,g,c)}d.inheritable&&(this.__M.$$inheritable[f]=true,e.$$refreshInheritables||this.__M.attachRefreshInheritables(a));d.refine||this.__M.attachMethods(a,f,d)}},__S:qx.core.Environment.select("qx.debug",{"true":function(a,b,c,d){if(!qx.core.Environment.get("module.property"))throw Error("Property module disabled.");var e=this.hasProperty(a,
b);if(e){var f=this.getPropertyDefinition(a,b);if(c.refine&&f.init===void 0)throw Error("Could not refine an init value if there was previously no init value defined. Property '"+b+"' of class '"+a.classname+"'.");}if(!e&&c.refine)throw Error("Could not refine non-existent property: '"+b+"' of class: '"+a.classname+"'!");if(e&&!d)throw Error("Class "+a.classname+" already has a property: "+b+"!");if(e&&d){if(!c.refine)throw Error('Could not refine property "'+b+'" without a "refine" flag in the property definition! This class: '+
a.classname+", original class: "+this.getByProperty(a,b).classname+".");for(var g in c)if(g!=="init"&&g!=="refine")throw Error("Class "+a.classname+" could not refine property: "+b+"! Key: "+g+" could not be refined!");}d=c.group?this.__M.$$allowedGroupKeys:this.__M.$$allowedKeys;for(g in c){if(d[g]===void 0)throw Error('The configuration key "'+g+'" of property "'+b+'" in class "'+a.classname+'" is not allowed!');if(c[g]===void 0)throw Error('Invalid key "'+g+'" of property "'+b+'" in class "'+a.classname+
'"! The value is undefined: '+c[g]);if(d[g]!==null&&typeof c[g]!==d[g])throw Error('Invalid type of key "'+g+'" of property "'+b+'" in class "'+a.classname+'"! The type of the key must be "'+d[g]+'"!');}if(c.transform!=null&&typeof c.transform!="string")throw Error('Invalid transform definition of property "'+b+'" in class "'+a.classname+'"! Needs to be a String.');if(c.check!=null&&!qx.Bootstrap.isString(c.check)&&!qx.Bootstrap.isArray(c.check)&&!qx.Bootstrap.isFunction(c.check))throw Error('Invalid check definition of property "'+
b+'" in class "'+a.classname+'"! Needs to be a String, Array or Function.');},"default":null}),__T:function(a,b,c,d,e){var f=a.prototype,g,h;qx.Bootstrap.setDisplayNames(b,a.classname+".prototype");for(var i=0,j=qx.Bootstrap.getKeys(b),k=j.length;i<k;i++){g=j[i];h=b[g];if(qx.core.Environment.get("qx.debug")){if(f[g]!==void 0&&g.charAt(0)=="_"&&g.charAt(1)=="_")throw Error('Overwriting private member "'+g+'" of Class "'+a.classname+'" is not allowed!');if(c!==true&&f.hasOwnProperty(g))throw Error('Overwriting member "'+
g+'" of Class "'+a.classname+'" is not allowed!');}if(d!==false&&h instanceof Function&&h.$$type==null){if(e==true)h=this.__U(h,f[g]);else{if(f[g])h.base=f[g];h.self=a}qx.core.Environment.get("qx.aspects")&&(h=qx.core.Aspect.wrap(a.classname+"."+g,h,"member"))}f[g]=h}},__U:function(a,b){return b?function(){var c=a.base;a.base=b;var d=a.apply(this,arguments);a.base=c;return d}:a},__V:function(a,b){if(qx.core.Environment.get("qx.debug")){if(!a||!b)throw Error("Incomplete parameters!");if(this.hasOwnInterface(a,
b))throw Error('Interface "'+b.name+'" is already used by Class "'+a.classname+"!");a.$$classtype!=="abstract"&&qx.Interface.assert(a,b,true)}var c=qx.Interface.flatten([b]);a.$$implements?(a.$$implements.push(b),a.$$flatImplements.push.apply(a.$$flatImplements,c)):(a.$$implements=[b],a.$$flatImplements=c)},__W:function(a){for(var b=a.classname,c=this.__bc(a,b,a.$$classtype),d=0,e=qx.Bootstrap.getKeys(a),f=e.length;d<f;d++)h=e[d],c[h]=a[h];for(var g=c.prototype=a.prototype,d=0,e=qx.Bootstrap.getKeys(g),
f=e.length;d<f;d++){var h=e[d],i=g[h];if(i&&i.self==a)i.self=c}for(var h in this.$$registry)if(d=this.$$registry[h]){if(d.base==a)d.base=c;if(d.superclass==a)d.superclass=c;if(d.$$original){if(d.$$original.base==a)d.$$original.base=c;if(d.$$original.superclass==a)d.$$original.superclass=c}}qx.Bootstrap.createNamespace(b,c);return this.$$registry[b]=c},__X:function(a,b,c){if(qx.core.Environment.get("qx.debug")&&(!a||!b))throw Error("Incomplete parameters!");if(!this.hasMixin(a,b)){var d=a.$$original;
b.$$constructor&&!d&&(a=this.__W(a));for(var d=qx.Mixin.flatten([b]),e,f=0,g=d.length;f<g;f++)e=d[f],e.$$events&&this.__Q(a,e.$$events,c),e.$$properties&&this.__R(a,e.$$properties,c),e.$$members&&this.__T(a,e.$$members,c,c,c);a.$$includes?(a.$$includes.push(b),a.$$flatIncludes.push.apply(a.$$flatIncludes,d)):(a.$$includes=[b],a.$$flatIncludes=d)}},__Y:function(){function a(){a.base.apply(this,arguments)}return a},__ba:function(){return function(){}},__bb:function(a,b){if(qx.core.Environment.get("qx.debug"))return true;
if(a&&a.$$includes)for(var c=a.$$flatIncludes,d=0,e=c.length;d<e;d++)if(c[d].$$constructor)return true;if(b){c=qx.Mixin.flatten(b);d=0;for(e=c.length;d<e;d++)if(c[d].$$constructor)return true}return false},__bc:function(a,b,c){var d=function(){var a=d;if(qx.core.Environment.get("qx.debug")){if(!(this instanceof a))throw Error("Please initialize '"+b+"' objects using the new keyword!");if(c==="abstract"){if(this.classname===b)throw Error("The class ',"+b+"' is abstract! It is not possible to instantiate it.");
}else if(c==="singleton"&&!a.$$allowconstruct)throw Error("The class '"+b+"' is a singleton! It is not possible to instantiate it directly. Use the static getInstance() method instead.");}var e=a.$$original.apply(this,arguments);if(a.$$includes)for(var a=a.$$flatIncludes,h=0,i=a.length;h<i;h++)a[h].$$constructor&&a[h].$$constructor.apply(this,arguments);if(qx.core.Environment.get("qx.debug")&&this.classname===b)this.$$initialized=true;return e};if(qx.core.Environment.get("qx.aspects")){var e=qx.core.Aspect.wrap(b,
d,"constructor");d.$$original=a;d=d.constructor=e}d.$$original=a;return a.wrapper=d}},defer:function(){if(qx.core.Environment.get("qx.aspects"))for(var a in qx.Bootstrap.$$registry){var b=qx.Bootstrap.$$registry[a],c;for(c in b)b[c]instanceof Function&&(b[c]=qx.core.Aspect.wrap(a+"."+c,b[c],"static"))}}})})();
(function(){qx.Class.define("qx.lang.Generics",{statics:{__bd:{Array:"join,reverse,sort,push,pop,shift,unshift,splice,concat,slice,indexOf,lastIndexOf,forEach,map,filter,some,every".split(","),String:"quote,substring,toLowerCase,toUpperCase,charAt,charCodeAt,indexOf,lastIndexOf,toLocaleLowerCase,toLocaleUpperCase,localeCompare,match,search,replace,split,substr,concat,slice".split(",")},__be:function(a,b){return function(c){return a.prototype[b].apply(c,Array.prototype.slice.call(arguments,1))}},__bf:function(){var a=
qx.lang.Generics.__bd,b;for(b in a)for(var c=window[b],d=a[b],e=0,f=d.length;e<f;e++){var g=d[e];c[g]||(c[g]=qx.lang.Generics.__be(c,g))}}},defer:function(a){a.__bf()}})})();(function(){qx.Mixin.define("qx.data.MBinding",{members:{bind:function(a,b,c,d){return qx.data.SingleValueBinding.bind(this,a,b,c,d)},removeBinding:function(a){qx.data.SingleValueBinding.removeBindingFromObject(this,a)},removeAllBindings:function(){qx.data.SingleValueBinding.removeAllBindingsForObject(this)},getBindings:function(){return qx.data.SingleValueBinding.getAllBindingsForObject(this)}}})})();
(function(){qx.Class.define("qx.data.SingleValueBinding",{statics:{__bg:{},bind:function(a,b,c,d,e){var f=this.__bi(a,b,c,d,e),g=b.split("."),h=this.__bo(g),i=[],j=[],k=[],l=[],m=a;try{for(var n=0;n<g.length;n++){h[n]!==""?l.push("change"):l.push(this.__bj(m,g[n]));i[n]=m;if(n==g.length-1)if(h[n]!==""){var o=m.getItem(h[n]==="last"?m.length-1:h[n]);this.__bn(o,c,d,e,a);k[n]=this.__bp(m,l[n],c,d,e,h[n])}else g[n]!=null&&m["get"+qx.lang.String.firstUp(g[n])]!=null&&(o=m["get"+qx.lang.String.firstUp(g[n])](),
this.__bn(o,c,d,e,a)),k[n]=this.__bp(m,l[n],c,d,e);else{var r=qx.lang.Function.bind(this.__bh,this,{index:n,propertyNames:g,sources:i,listenerIds:k,arrayIndexValues:h,targetObject:c,targetPropertyChain:d,options:e,listeners:j});j.push(r);k[n]=m.addListener(l[n],r)}m=m["get"+qx.lang.String.firstUp(g[n])]==null?null:h[n]!==""?m["get"+qx.lang.String.firstUp(g[n])](h[n]):m["get"+qx.lang.String.firstUp(g[n])]();if(!m)break}}catch(q){for(n=0;n<i.length;n++)i[n]&&k[n]&&i[n].removeListenerById(k[n]);a=f.targets;
b=f.listenerIds[n];for(n=0;n<a.length;n++)a[n]&&b[n]&&a[n].removeListenerById(b[n]);throw q;}n={type:"deepBinding",listenerIds:k,sources:i,targetListenerIds:f.listenerIds,targets:f.targets};this.__bq(n,a,b,c,d);return n},__bh:function(a){if(a.options&&a.options.onUpdate)a.options.onUpdate(a.sources[a.index],a.targetObject);for(var b=a.index+1;b<a.propertyNames.length;b++){var c=a.sources[b];a.sources[b]=null;c&&c.removeListenerById(a.listenerIds[b])}c=a.sources[a.index];for(b=a.index+1;b<a.propertyNames.length;b++){c=
a.arrayIndexValues[b-1]!==""?c["get"+qx.lang.String.firstUp(a.propertyNames[b-1])](a.arrayIndexValues[b-1]):c["get"+qx.lang.String.firstUp(a.propertyNames[b-1])]();a.sources[b]=c;if(!c){this.__bk(a.targetObject,a.targetPropertyChain);break}if(b==a.propertyNames.length-1)if(qx.Class.implementsInterface(c,qx.data.IListData)){var d=c.getItem(a.arrayIndexValues[b]==="last"?c.length-1:a.arrayIndexValues[b]);this.__bn(d,a.targetObject,a.targetPropertyChain,a.options,a.sources[a.index]);a.listenerIds[b]=
this.__bp(c,"change",a.targetObject,a.targetPropertyChain,a.options,a.arrayIndexValues[b])}else a.propertyNames[b]!=null&&c["get"+qx.lang.String.firstUp(a.propertyNames[b])]!=null&&(d=c["get"+qx.lang.String.firstUp(a.propertyNames[b])](),this.__bn(d,a.targetObject,a.targetPropertyChain,a.options,a.sources[a.index])),d=this.__bj(c,a.propertyNames[b]),a.listenerIds[b]=this.__bp(c,d,a.targetObject,a.targetPropertyChain,a.options);else a.listeners[b]==null&&(d=qx.lang.Function.bind(this.__bh,this,a),
a.listeners.push(d)),d=qx.Class.implementsInterface(c,qx.data.IListData)?"change":this.__bj(c,a.propertyNames[b]),a.listenerIds[b]=c.addListener(d,a.listeners[b])}},__bi:function(a,b,c,d,e){for(var f=d.split("."),g=this.__bo(f),h=[],i=[],j=[],k=[],l=c,m=0;m<f.length-1;m++){if(g[m]!=="")k.push("change");else try{k.push(this.__bj(l,f[m]))}catch(n){break}h[m]=l;var o=function(){for(var k=m+1;k<f.length-1;k++){var l=h[k];h[k]=null;l&&l.removeListenerById(j[k])}l=h[m];for(k=m+1;k<f.length-1;k++){var n=
qx.lang.String.firstUp(f[k-1]);if(g[k-1]!=="")var u=g[k-1]==="last"?l.getLength()-1:g[k-1],l=l["get"+n](u);else l=l["get"+n]();h[k]=l;i[k]==null&&i.push(o);if(qx.Class.implementsInterface(l,qx.data.IListData))var v="change";else try{v=qx.data.SingleValueBinding.__bj(l,f[k])}catch(r){break}j[k]=l.addListener(v,i[k])}qx.data.SingleValueBinding.updateTarget(a,b,c,d,e)};i.push(o);j[m]=l.addListener(k[m],o);var r=qx.lang.String.firstUp(f[m]),l=l["get"+r]==null?null:g[m]!==""?l["get"+r](g[m]):l["get"+r]();
if(!l)break}return{listenerIds:j,targets:h}},updateTarget:function(a,b,c,d,e){b=this.getValueFromObject(a,b);b=qx.data.SingleValueBinding.__br(b,c,d,e,a);this.__bl(c,d,b)},getValueFromObject:function(a,b){var c=this.__bm(a,b),d;if(c!=null){var e=b.substring(b.lastIndexOf(".")+1,b.length);if(e.charAt(e.length-1)=="]"){var f=e.substring(e.lastIndexOf("[")+1,e.length-1),e=e.substring(0,e.lastIndexOf("[")),c=c["get"+qx.lang.String.firstUp(e)]();f=="last"&&(f=c.length-1);c!=null&&(d=c.getItem(f))}else d=
c["get"+qx.lang.String.firstUp(e)]()}return d},__bj:function(a,b){var c=this.__bs(a,b);if(c==null)if(qx.Class.supportsEvent(a.constructor,b))c=b;else if(qx.Class.supportsEvent(a.constructor,"change"+qx.lang.String.firstUp(b)))c="change"+qx.lang.String.firstUp(b);else throw new qx.core.AssertionError("Binding property "+b+" of object "+a+" not possible: No event available. ");return c},__bk:function(a,b){var c=this.__bm(a,b);if(c!=null){var d=b.substring(b.lastIndexOf(".")+1,b.length);if(d.charAt(d.length-
1)=="]")this.__bl(a,b,null);else if(c["reset"+qx.lang.String.firstUp(d)]!=void 0)c["reset"+qx.lang.String.firstUp(d)]();else c["set"+qx.lang.String.firstUp(d)](null)}},__bl:function(a,b,c){var d=this.__bm(a,b);if(d!=null){var e=b.substring(b.lastIndexOf(".")+1,b.length);if(e.charAt(e.length-1)=="]")b=e.substring(e.lastIndexOf("[")+1,e.length-1),e=e.substring(0,e.lastIndexOf("[")),qx.Class.implementsInterface(a,qx.data.IListData)||(a=d["get"+qx.lang.String.firstUp(e)]()),b=="last"&&(b=a.length-1),
a!=null&&a.setItem(b,c);else d["set"+qx.lang.String.firstUp(e)](c)}},__bm:function(a,b){for(var c=b.split("."),d=a,e=0;e<c.length-1;e++)try{var f=c[e];if(f.indexOf("]")==f.length-1)var g=f.substring(f.indexOf("[")+1,f.length-1),f=f.substring(0,f.indexOf("["));f!=""&&(d=d["get"+qx.lang.String.firstUp(f)]());g!=null&&(g=="last"&&(g=d.length-1),d=d.getItem(g),g=null)}catch(h){return null}return d},__bn:function(a,b,c,d,e){a=this.__br(a,b,c,d,e);a===void 0&&this.__bk(b,c);if(a!==void 0)try{if(this.__bl(b,
c,a),d&&d.onUpdate)d.onUpdate(e,b,a)}catch(f){if(!(f instanceof qx.core.ValidationError))throw f;if(d&&d.onSetFail)d.onSetFail(f);else qx.log.Logger.warn("Failed so set value "+a+" on "+b+". Error message: "+f)}},__bo:function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];if(qx.lang.String.endsWith(d,"]")){var e=d.substring(d.indexOf("[")+1,d.indexOf("]"));if(d.indexOf("]")!=d.length-1)throw Error("Please use only one array at a time: "+d+" does not work.");if(e!=="last"&&(e==""||isNaN(parseInt(e,
10))))throw Error("No number or 'last' value hast been given in an array binding: "+d+" does not work.");d.indexOf("[")!=0?(a[c]=d.substring(0,d.indexOf("[")),b[c]="",b[c+1]=e,a.splice(c+1,0,"item"),c++):(b[c]=e,a.splice(c,1,"item"))}else b[c]=""}return b},__bp:function(a,b,c,d,e,f){if(qx.core.Environment.get("qx.debug")){var g=qx.Class.getEventType(a.constructor,b);qx.core.Assert.assertEquals("qx.event.type.Data",g,b+" is not an data (qx.event.type.Data) event on "+a+".")}f||(f="");f=qx.lang.Function.bind(function(f,
g){if(f!==""){f==="last"&&(f=a.length-1);var j=a.getItem(f);j===void 0&&qx.data.SingleValueBinding.__bk(c,d);var k=g.getData().start,l=g.getData().end;if(f<k||f>l)return}else j=g.getData();qx.core.Environment.get("qx.debug.databinding")&&(qx.log.Logger.debug("Binding executed from "+a+" by "+b+" to "+c+" ("+d+")"),qx.log.Logger.debug("Data before conversion: "+j));j=qx.data.SingleValueBinding.__br(j,c,d,e,a);qx.core.Environment.get("qx.debug.databinding")&&qx.log.Logger.debug("Data after conversion: "+
j);try{if(j!==void 0?qx.data.SingleValueBinding.__bl(c,d,j):qx.data.SingleValueBinding.__bk(c,d),e&&e.onUpdate)e.onUpdate(a,c,j)}catch(m){if(!(m instanceof qx.core.ValidationError))throw m;if(e&&e.onSetFail)e.onSetFail(m);else qx.log.Logger.warn("Failed so set value "+j+" on "+c+". Error message: "+m)}},a,f);return a.addListener(b,f)},__bq:function(a,b,c,d,e){this.__bg[b.toHashCode()]===void 0&&(this.__bg[b.toHashCode()]=[]);this.__bg[b.toHashCode()].push([a,b,c,d,e])},__br:function(a,b,c,d,e){if(d&&
d.converter){var f;b.getModel&&(f=b.getModel());return d.converter(a,f,e,b)}else{b=this.__bm(b,c);c=c.substring(c.lastIndexOf(".")+1,c.length);if(b==null)return a;c=qx.Class.getPropertyDefinition(b.constructor,c);return this.__bt(a,c==null?"":c.check)}},__bs:function(a,b){var c=qx.Class.getPropertyDefinition(a.constructor,b);return c==null?null:c.event},__bt:function(a,b){var c=qx.lang.Type.getClass(a);if((c=="Number"||c=="String")&&(b=="Integer"||b=="PositiveInteger"))a=parseInt(a,10);if((c=="Boolean"||
c=="Number"||c=="Date")&&b=="String")a+="";if((c=="Number"||c=="String")&&(b=="Number"||b=="PositiveNumber"))a=parseFloat(a);return a},removeBindingFromObject:function(a,b){if(b.type=="deepBinding"){for(var c=0;c<b.sources.length;c++)b.sources[c]&&b.sources[c].removeListenerById(b.listenerIds[c]);for(c=0;c<b.targets.length;c++)b.targets[c]&&b.targets[c].removeListenerById(b.targetListenerIds[c])}else a.removeListenerById(b);var d=this.__bg[a.toHashCode()];if(d!=void 0)for(c=0;c<d.length;c++)if(d[c][0]==
b){qx.lang.Array.remove(d,d[c]);return}throw Error("Binding could not be found!");},removeAllBindingsForObject:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertNotNull(a,"Can not remove the bindings for null object!");var b=this.__bg[a.toHashCode()];if(b!=void 0)for(var c=b.length-1;c>=0;c--)this.removeBindingFromObject(a,b[c][0])},getAllBindingsForObject:function(a){this.__bg[a.toHashCode()]===void 0&&(this.__bg[a.toHashCode()]=[]);return this.__bg[a.toHashCode()]},removeAllBindings:function(){for(var a in this.__bg){var b=
qx.core.ObjectRegistry.fromHashCode(a);b==null?delete this.__bg[a]:this.removeAllBindingsForObject(b)}this.__bg={}},getAllBindings:function(){return this.__bg},showBindingInLog:function(a,b){for(var c,d=0;d<this.__bg[a.toHashCode()].length;d++)if(this.__bg[a.toHashCode()][d][0]==b){c=this.__bg[a.toHashCode()][d];break}qx.log.Logger.debug(c===void 0?"Binding does not exist!":"Binding from '"+c[1]+"' ("+c[2]+") to the object '"+c[3]+"' ("+c[4]+").")},showAllBindingsInLog:function(){for(var a in this.__bg)for(var b=
qx.core.ObjectRegistry.fromHashCode(a),c=0;c<this.__bg[a].length;c++)this.showBindingInLog(b,this.__bg[a][c][0])}}})})();
(function(){qx.Bootstrap.define("qx.lang.String",{statics:{__bu:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",__bv:null,
__bw:{},camelCase:function(a){var b=this.__bw[a];b||(b=a.replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}));return b},hyphenate:function(a){var b=this.__bw[a];b||(b=a.replace(/[A-Z]/g,function(a){return"-"+a.charAt(0).toLowerCase()}));return b},capitalize:function(a){if(this.__bv===null)this.__bv=RegExp("(^|[^"+this.__bu.replace(/[0-9A-F]{4}/g,function(a){return"\\u"+a})+"])["+this.__bu.replace(/[0-9A-F]{4}/g,function(a){return"\\u"+a})+"]","g");return a.replace(this.__bv,function(a){return a.toUpperCase()})},
clean:function(a){return this.trim(a.replace(/\s+/g," "))},trimLeft:function(a){return a.replace(/^\s+/,"")},trimRight:function(a){return a.replace(/\s+$/,"")},trim:function(a){return a.replace(/^\s+|\s+$/g,"")},startsWith:function(a,b){return a.indexOf(b)===0},endsWith:function(a,b){return a.substring(a.length-b.length,a.length)===b},repeat:function(a,b){return a.length>0?Array(b+1).join(a):""},pad:function(a,b,c){b-=a.length;return b>0?(typeof c==="undefined"&&(c="0"),this.repeat(c,b)+a):a},firstUp:qx.Bootstrap.firstUp,
firstLow:qx.Bootstrap.firstLow,contains:function(a,b){return a.indexOf(b)!=-1},format:function(a,b){for(var c=a,d=b.length;d--;)c=c.replace(RegExp("%"+(d+1),"g"),b[d]+"");return c},escapeRegexpChars:function(a){return a.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},toArray:function(a){return a.split(/\B|\b/g)},stripTags:function(a){return a.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(a,b){var c="",d=a.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(a,b){c+=b+"\n";return""});b===true&&qx.lang.Function.globalEval(c);
return d}}})})();
(function(){qx.Bootstrap.define("qx.lang.Array",{statics:{toArray:function(a,b){return this.cast(a,Array,b)},cast:function(a,b,c){if(a.constructor===b)return a;qx.data&&qx.data.IListData&&qx.Class&&qx.Class.hasInterface(a,qx.data.IListData)&&(a=a.toArray());b=new b;if(qx.core.Environment.get("engine.name")=="mshtml"&&a.item){for(var c=c||0,d=a.length;c<d;c++)b.push(a[c]);return b}Object.prototype.toString.call(a)==="[object Array]"&&c==null?b.push.apply(b,a):b.push.apply(b,Array.prototype.slice.call(a,c||
0));return b},fromArguments:function(a,b){return Array.prototype.slice.call(a,b||0)},fromCollection:function(a){if(qx.core.Environment.get("engine.name")=="mshtml"&&a.item){for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}return Array.prototype.slice.call(a,0)},fromShortHand:function(a){var b=a.length,a=qx.lang.Array.clone(a);switch(b){case 1:a[1]=a[2]=a[3]=a[0];break;case 2:a[2]=a[0];case 3:a[3]=a[1]}return a},clone:function(a){return a.concat()},insertAt:function(a,b,c){a.splice(c,0,b);return a},
insertBefore:function(a,b,c){c=a.indexOf(c);c==-1?a.push(b):a.splice(c,0,b);return a},insertAfter:function(a,b,c){c=a.indexOf(c);c==-1||c==a.length-1?a.push(b):a.splice(c+1,0,b);return a},removeAt:function(a,b){return a.splice(b,1)[0]},removeAll:function(a){a.length=0;return this},append:function(a,b){qx.core.Environment.get("qx.debug")&&(qx.core.Assert&&qx.core.Assert.assertArray(a,"The first parameter must be an array."),qx.core.Assert&&qx.core.Assert.assertArray(b,"The second parameter must be an array."));
Array.prototype.push.apply(a,b);return a},exclude:function(a,b){qx.core.Environment.get("qx.debug")&&(qx.core.Assert&&qx.core.Assert.assertArray(a,"The first parameter must be an array."),qx.core.Assert&&qx.core.Assert.assertArray(b,"The second parameter must be an array."));for(var c=0,d=b.length,e;c<d;c++)e=a.indexOf(b[c]),e!=-1&&a.splice(e,1);return a},remove:function(a,b){var c=a.indexOf(b);if(c!=-1)return a.splice(c,1),b},contains:function(a,b){return a.indexOf(b)!==-1},equals:function(a,b){var c=
a.length;if(c!==b.length)return false;for(var d=0;d<c;d++)if(a[d]!==b[d])return false;return true},sum:function(a){for(var b=0,c=0,d=a.length;c<d;c++)b+=a[c];return b},max:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertArray(a,"Parameter must be an array.");var b,c=a.length,d=a[0];for(b=1;b<c;b++)a[b]>d&&(d=a[b]);return d===void 0?null:d},min:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertArray(a,"Parameter must be an array.");
var b,c=a.length,d=a[0];for(b=1;b<c;b++)a[b]<d&&(d=a[b]);return d===void 0?null:d},unique:function(a){for(var b=[],c={},d={},e={},f,g=0,h="qx"+qx.lang.Date.now(),i=false,j=false,k=false,l=0,m=a.length;l<m;l++)if(f=a[l],f===null)i||(i=true,b.push(f));else if(f!==void 0)if(f===false)j||(j=true,b.push(f));else if(f===true)k||(k=true,b.push(f));else if(typeof f==="string")c[f]||(c[f]=1,b.push(f));else if(typeof f==="number")d[f]||(d[f]=1,b.push(f));else{var n=f[h];n==null&&(n=f[h]=g++);e[n]||(e[n]=f,
b.push(f))}for(n in e)try{delete e[n][h]}catch(o){try{e[n][h]=null}catch(r){throw Error("Cannot clean-up map entry doneObjects["+n+"]["+h+"]");}}return b}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Engine",{statics:{getVersion:function(){var a=window.navigator.userAgent,b="";if(qx.bom.client.Engine.__bx())/Opera[\s\/]([0-9]+)\.([0-9])([0-9]*)/.test(a)&&(a.indexOf("Version/")!=-1?(a=a.match(/Version\/(\d+)\.(\d+)/),b=a[1]+"."+a[2].charAt(0)+"."+a[2].substring(1,a[2].length)):(b=RegExp.$1+"."+RegExp.$2,RegExp.$3!=""&&(b+="."+RegExp.$3)));else if(qx.bom.client.Engine.__by()){if(/AppleWebKit\/([^ ]+)/.test(a))b=RegExp.$1,(a=/[^\.0-9]/.exec(b))&&(b=
b.slice(0,a.index))}else if(qx.bom.client.Engine.__bA()||qx.bom.client.Engine.__bz()){if(/rv\:([^\);]+)(\)|;)/.test(a))b=RegExp.$1}else if(qx.bom.client.Engine.__bB()){if(/MSIE\s+([^\);]+)(\)|;)/.test(a))b=RegExp.$1,b<8&&/Trident\/([^\);]+)(\)|;)/.test(a)&&(RegExp.$1=="4.0"?b="8.0":RegExp.$1=="5.0"&&(b="9.0"))}else(b=window.qxFail)&&typeof b==="function"?b=b().FULLVERSION:(b="1.9.0.0",qx.Bootstrap.warn("Unsupported client: "+a+"! Assumed gecko version 1.9.0.0 (Firefox 3.0)."));return b},getName:function(){var a;
qx.bom.client.Engine.__bx()?a="opera":qx.bom.client.Engine.__by()?a="webkit":qx.bom.client.Engine.__bA()||qx.bom.client.Engine.__bz()?a="gecko":qx.bom.client.Engine.__bB()?a="mshtml":(a=window.qxFail)&&typeof a==="function"?a=a().NAME:(a="gecko",qx.Bootstrap.warn("Unsupported client: "+window.navigator.userAgent+"! Assumed gecko version 1.9.0.0 (Firefox 3.0)."));return a},__bx:function(){return window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]"},__by:function(){return window.navigator.userAgent.indexOf("AppleWebKit/")!=
-1},__bz:function(){return window.navigator.userAgent.indexOf("Maple")!=-1},__bA:function(){return window.controllers&&window.navigator.product==="Gecko"&&window.navigator.userAgent.indexOf("Maple")==-1},__bB:function(){return window.navigator.cpuClass&&/MSIE\s+([^\);]+)(\)|;)/.test(window.navigator.userAgent)}},defer:function(a){qx.core.Environment.add("engine.version",a.getVersion);qx.core.Environment.add("engine.name",a.getName)}})})();
(function(){qx.Bootstrap.define("qx.lang.Type",{statics:{getClass:qx.Bootstrap.getClass,isString:qx.Bootstrap.isString,isArray:qx.Bootstrap.isArray,isObject:qx.Bootstrap.isObject,isFunction:qx.Bootstrap.isFunction,isRegExp:function(a){return this.getClass(a)=="RegExp"},isNumber:function(a){return a!==null&&(this.getClass(a)=="Number"||a instanceof Number)},isBoolean:function(a){return a!==null&&(this.getClass(a)=="Boolean"||a instanceof Boolean)},isDate:function(a){return a!==null&&(this.getClass(a)==
"Date"||a instanceof Date)},isError:function(a){return a!==null&&(this.getClass(a)=="Error"||a instanceof Error)}}})})();
(function(){qx.Class.define("qx.core.Assert",{statics:{__bC:true,__bD:function(a,b){for(var c="",d=1,e=arguments.length;d<e;d++)c+=this.__bE(arguments[d]);d="";d="Assertion error! "+(c?a+": "+c:a);if(qx.Class.isDefined("qx.core.AssertionError"))throw c=new qx.core.AssertionError(a,c),this.__bC&&qx.Bootstrap.error(d+"\n Stack trace: \n"+c.getStackTrace()),c;else throw this.__bC&&qx.Bootstrap.error(d),Error(d);},__bE:function(a){var b;if(a===null)b="null";else if(qx.lang.Type.isArray(a)&&a.length>10)b=
"Array["+a.length+"]";else if(a instanceof Object&&a.toString==null)b=qx.lang.Json.stringify(a,null,2);else try{b=a.toString()}catch(c){b=""}return b},assert:function(a,b){a==true||this.__bD(b||"","Called assert with 'false'")},fail:function(a,b){this.__bD(a||"",b?"":"Called fail().")},assertTrue:function(a,b){a===true||this.__bD(b||"","Called assertTrue with '",a,"'")},assertFalse:function(a,b){a===false||this.__bD(b||"","Called assertFalse with '",a,"'")},assertEquals:function(a,b,c){a==b||this.__bD(c||
"","Expected '",a,"' but found '",b,"'!")},assertNotEquals:function(a,b,c){a!=b||this.__bD(c||"","Expected '",a,"' to be not equal with '",b,"'!")},assertIdentical:function(a,b,c){a===b||this.__bD(c||"","Expected '",a,"' (identical) but found '",b,"'!")},assertNotIdentical:function(a,b,c){a!==b||this.__bD(c||"","Expected '",a,"' to be not identical with '",b,"'!")},assertNotUndefined:function(a,b){a!==void 0||this.__bD(b||"","Expected value not to be undefined but found undefined!")},assertUndefined:function(a,
b){a===void 0||this.__bD(b||"","Expected value to be undefined but found ",a,"!")},assertNotNull:function(a,b){a!==null||this.__bD(b||"","Expected value not to be null but found null!")},assertNull:function(a,b){a===null||this.__bD(b||"","Expected value to be null but found ",a,"!")},assertJsonEquals:function(a,b,c){this.assertEquals(qx.lang.Json.stringify(a),qx.lang.Json.stringify(b),c)},assertMatch:function(a,b,c){this.assertString(a);this.assert(qx.lang.Type.isRegExp(b)||qx.lang.Type.isString(b),
"The parameter 're' must be a string or a regular expression.");a.search(b)>=0||this.__bD(c||"","The String '",a,"' does not match the regular expression '",b.toString(),"'!")},assertArgumentsCount:function(a,b,c,d){var e=a.length;e>=b&&e<=c||this.__bD(d||"","Wrong number of arguments given. Expected '",b,"' to '",c,"' arguments but found '",arguments.length,"' arguments.")},assertEventFired:function(a,b,c,d,e){var f=false,g;try{g=a.addListener(b,function(b){d&&d.call(a,b);f=true},a),c.call()}catch(h){throw h;
}finally{try{a.removeListenerById(g)}catch(i){}}f===true||this.__bD(e||"","Event (",b,") not fired.")},assertEventNotFired:function(a,b,c,d){var e=false,f=a.addListener(b,function(){e=true},a);c.call();e===false||this.__bD(d||"","Event (",b,") was fired.");a.removeListenerById(f)},assertException:function(a,b,c,d){var b=b||Error,e;try{this.__bC=false,a()}catch(f){e=f}finally{this.__bC=true}e==null&&this.__bD(d||"","The function did not raise an exception!");e instanceof b||this.__bD(d||"","The raised exception does not have the expected type! ",
b," != ",e);c&&this.assertMatch(e.toString(),c,d)},assertInArray:function(a,b,c){b.indexOf(a)!==-1||this.__bD(c||"","The value '",a,"' must have any of the values defined in the array '",b,"'")},assertArrayEquals:function(a,b,c){this.assertArray(a,c);this.assertArray(b,c);c=c||"Expected ["+a.join(", ")+"], but found ["+b.join(", ")+"]";a.length!==b.length&&this.fail(c,true);for(var d=0;d<a.length;d++)a[d]!==b[d]&&this.fail(c,true)},assertKeyInMap:function(a,b,c){b[a]!==void 0||this.__bD(c||"","The value '",
a,"' must must be a key of the map '",b,"'")},assertFunction:function(a,b){qx.lang.Type.isFunction(a)||this.__bD(b||"","Expected value to be typeof function but found ",a,"!")},assertString:function(a,b){qx.lang.Type.isString(a)||this.__bD(b||"","Expected value to be a string but found ",a,"!")},assertBoolean:function(a,b){qx.lang.Type.isBoolean(a)||this.__bD(b||"","Expected value to be a boolean but found ",a,"!")},assertNumber:function(a,b){qx.lang.Type.isNumber(a)&&isFinite(a)||this.__bD(b||"",
"Expected value to be a number but found ",a,"!")},assertPositiveNumber:function(a,b){qx.lang.Type.isNumber(a)&&isFinite(a)&&a>=0||this.__bD(b||"","Expected value to be a number >= 0 but found ",a,"!")},assertInteger:function(a,b){qx.lang.Type.isNumber(a)&&isFinite(a)&&a%1===0||this.__bD(b||"","Expected value to be an integer but found ",a,"!")},assertPositiveInteger:function(a,b){qx.lang.Type.isNumber(a)&&isFinite(a)&&a%1===0&&a>=0||this.__bD(b||"","Expected value to be an integer >= 0 but found ",
a,"!")},assertInRange:function(a,b,c,d){a>=b&&a<=c||this.__bD(d||"",qx.lang.String.format("Expected value '%1' to be in the range '%2'..'%3'!",[a,b,c]))},assertObject:function(a,b){a!==null&&(qx.lang.Type.isObject(a)||typeof a==="object")||this.__bD(b||"","Expected value to be typeof object but found ",a,"!")},assertArray:function(a,b){qx.lang.Type.isArray(a)||this.__bD(b||"","Expected value to be an array but found ",a,"!")},assertMap:function(a,b){qx.lang.Type.isObject(a)||this.__bD(b||"","Expected value to be a map but found ",
a,"!")},assertRegExp:function(a,b){qx.lang.Type.isRegExp(a)||this.__bD(b||"","Expected value to be a regular expression but found ",a,"!")},assertType:function(a,b,c){this.assertString(b,"Invalid argument 'type'");typeof a===b||this.__bD(c||"","Expected value to be typeof '",b,"' but found ",a,"!")},assertInstance:function(a,b,c){var d=b.classname||b+"";a instanceof b||this.__bD(c||"","Expected value to be instanceof '",d,"' but found ",a,"!")},assertInterface:function(a,b,c){qx.Class.implementsInterface(a,
b)||this.__bD(c||"","Expected object '",a,"' to implement the interface '",b,"'!")},assertCssColor:function(a,b,c){var d=qx.Class.getByName("qx.util.ColorUtil");if(!d)throw Error("qx.util.ColorUtil not available! Your code must have a dependency on 'qx.util.ColorUtil'");var e=d.stringToRgb(a);try{var f=d.stringToRgb(b)}catch(g){this.__bD(c||"","Expected value to be the CSS color '",a,"' (rgb(",e.join(","),")), but found value '",b,"', which cannot be converted to a CSS color!")}e[0]==f[0]&&e[1]==
f[1]&&e[2]==f[2]||this.__bD(c||"","Expected value to be the CSS color '",e,"' (rgb(",e.join(","),")), but found value '",b,"' (rgb(",f.join(","),"))!")},assertElement:function(a,b){a&&a.nodeType===1||this.__bD(b||"","Expected value to be a DOM element but found  '",a,"'!")},assertQxObject:function(a,b){this.__bF(a,"qx.core.Object")||this.__bD(b||"","Expected value to be a qooxdoo object but found ",a,"!")},assertQxWidget:function(a,b){this.__bF(a,"qx.ui.core.Widget")||this.__bD(b||"","Expected value to be a qooxdoo widget but found ",
a,"!")},__bF:function(a,b){if(!a)return false;for(var c=a.constructor;c;){if(c.classname===b)return true;c=c.superclass}return false}}})})();(function(){qx.Class.define("qx.type.BaseError",{extend:Error,construct:function(a,b){Error.call(this,b);this.__bG=a||"";this.message=b||qx.type.BaseError.DEFAULTMESSAGE},statics:{DEFAULTMESSAGE:"error"},members:{__bG:null,message:null,getComment:function(){return this.__bG},toString:function(){return this.__bG+(this.message?": "+this.message:"")}}})})();
(function(){qx.Class.define("qx.core.AssertionError",{extend:qx.type.BaseError,construct:function(a,b){qx.type.BaseError.call(this,a,b);this.__bH=qx.dev.StackTrace.getStackTrace()},members:{__bH:null,getStackTrace:function(){return this.__bH}}})})();
(function(){qx.Bootstrap.define("qx.dev.StackTrace",{statics:{FILENAME_TO_CLASSNAME:null,FORMAT_STACKTRACE:null,getStackTrace:qx.core.Environment.select("engine.name",{gecko:function(){try{throw Error();}catch(a){var b=this.getStackTraceFromError(a);qx.lang.Array.removeAt(b,0);for(var c=this.getStackTraceFromCaller(arguments),d=c.length>b.length?c:b,e=0;e<Math.min(c.length,b.length);e++){var f=c[e];if(!(f.indexOf("anonymous")>=0)){var g=f.split(":");if(g.length==2){var f=g[0],g=g[1],h=b[e].split(":"),
i=h[0],h=h[1],f=(qx.Class.getByName(i)?i:f)+":";g&&(f+=g+":");f+=h;d[e]=f}}}return d}},"mshtml|webkit":function(){return this.getStackTraceFromCaller(arguments)},opera:function(){try{(void 0).bar()}catch(a){var b=this.getStackTraceFromError(a);qx.lang.Array.removeAt(b,0);return b}return[]}}),getStackTraceFromCaller:function(a){for(var b=[],a=qx.lang.Function.getCaller(a),c={};a;){var d=qx.lang.Function.getName(a);b.push(d);try{a=a.caller}catch(e){break}if(!a)break;d=qx.core.ObjectRegistry.toHashCode(a);
if(c[d]){b.push("...");break}c[d]=a}return b},getStackTraceFromError:function(a){var b=[];if(qx.core.Environment.get("ecmascript.stacktrace")==="stack"){if(!a.stack)return b;for(var c=/@(.+):(\d+)$/gm,d;(d=c.exec(a.stack))!=null;){var e=d[1],f=d[2];d=this.__bI(e);b.push(d+":"+f)}if(b.length>0)return this.__bK(b);c=/at (.*)/gm;f=/\((.*?)(:[^\/].*)\)/;for(e=/(.*?)(:[^\/].*)/;(d=c.exec(a.stack))!=null;){var g=f.exec(d[1]);g||(g=e.exec(d[1]));g?(d=this.__bI(g[1]),b.push(d+g[2])):b.push(d[1])}}else if(qx.core.Environment.get("ecmascript.stacktrace")===
"stacktrace"){a=a.stacktrace;if(!a)return b;a.indexOf("Error created at")>=0&&(a=a.split("Error created at")[0]);for(c=/line\ (\d+?),\ column\ (\d+?)\ in\ (?:.*?)\ in\ (.*?):[^\/]/gm;(d=c.exec(a))!=null;)f=d[1],g=d[2],e=d[3],d=this.__bI(e),b.push(d+":"+f+":"+g);if(b.length>0)return this.__bK(b);for(c=/Line\ (\d+?)\ of\ linked\ script\ (.*?)$/gm;(d=c.exec(a))!=null;)f=d[1],e=d[2],d=this.__bI(e),b.push(d+":"+f)}else if(a.message&&a.message.indexOf("Backtrace:")>=0){c=qx.lang.String.trim(a.message.split("Backtrace:")[1]).split("\n");
for(d=0;d<c.length;d++)if((a=c[d].match(/\s*Line ([0-9]+) of.* (\S.*)/))&&a.length>=2)f=a[1],a=this.__bI(a[2]),b.push(a+":"+f)}else a.sourceURL&&a.line&&b.push(this.__bI(a.sourceURL)+":"+a.line);return this.__bK(b)},__bI:function(a){if(typeof qx.dev.StackTrace.FILENAME_TO_CLASSNAME=="function"){a=qx.dev.StackTrace.FILENAME_TO_CLASSNAME(a);if(qx.core.Environment.get("qx.debug")&&!qx.lang.Type.isString(a))throw Error("FILENAME_TO_CLASSNAME must return a string!");return a}return qx.dev.StackTrace.__bJ(a)},
__bJ:function(a){var b=a.indexOf("/source/class/"),c=a.indexOf("?");c>=0&&(a=a.substring(0,c));return b==-1?a:a.substring(b+14).replace(/\//g,".").replace(/\.js$/,"")},__bK:function(a){if(typeof qx.dev.StackTrace.FORMAT_STACKTRACE=="function"&&(a=qx.dev.StackTrace.FORMAT_STACKTRACE(a),qx.core.Environment.get("qx.debug")&&!qx.lang.Type.isArray(a)))throw Error("FORMAT_STACKTRACE must return an array of strings!");return a}}})})();
(function(){qx.Bootstrap.define("qx.lang.Function",{statics:{getCaller:function(a){return a.caller?a.caller.callee:a.callee.caller},getName:function(a){if(a.displayName)return a.displayName;if(a.$$original||a.wrapper||a.classname)return a.classname+".constructor()";if(a.$$mixin){for(var b in a.$$mixin.$$members)if(a.$$mixin.$$members[b]==a)return a.$$mixin.name+".prototype."+b+"()";for(b in a.$$mixin)if(a.$$mixin[b]==a)return a.$$mixin.name+"."+b+"()"}if(a.self){var c=a.self.constructor;if(c){for(b in c.prototype)if(c.prototype[b]==
a)return c.classname+".prototype."+b+"()";for(b in c)if(c[b]==a)return c.classname+"."+b+"()"}}return(a=a.toString().match(/function\s*(\w*)\s*\(.*/))&&a.length>=1&&a[1]?a[1]+"()":"anonymous()"},globalEval:function(a){return window.execScript?window.execScript(a):eval.call(window,a)},empty:function(){},returnTrue:function(){return true},returnFalse:function(){return false},returnNull:function(){return null},returnThis:function(){return this},returnZero:function(){return 0},create:function(a,b){qx.core.Environment.get("qx.debug")&&
qx.core.Assert&&qx.core.Assert.assertFunction(a,"Invalid parameter 'func'.");return!b?a:!b.self&&!b.args&&!(b.delay!=null||b.periodical!=null||b.attempt)?a:function(c){qx.core.Environment.get("qx.debug")&&qx.core&&qx.core.Object&&b.self instanceof qx.core.Object&&qx.core.Assert&&qx.core.Assert.assertFalse(b.self.isDisposed(),"Trying to call a bound function with a disposed object as context: "+b.self.toString()+" :: "+qx.lang.Function.getName(a));var d=qx.lang.Array.fromArguments(arguments);b.args&&
(d=b.args.concat(d));if(b.delay||b.periodical){var e=qx.event.GlobalError.observeMethod(function(){return a.apply(b.self||this,d)});if(b.delay)return window.setTimeout(e,b.delay);if(b.periodical)return window.setInterval(e,b.periodical)}else if(b.attempt){e=false;try{e=a.apply(b.self||this,d)}catch(f){}return e}else return a.apply(b.self||this,d)}},bind:function(a,b,c){return this.create(a,{self:b,args:arguments.length>2?qx.lang.Array.fromArguments(arguments,2):null})},curry:function(a,b){return this.create(a,
{args:arguments.length>1?qx.lang.Array.fromArguments(arguments,1):null})},listener:function(a,b,c){if(arguments.length<3)return function(c){return a.call(b||this,c||window.event)};else{var d=qx.lang.Array.fromArguments(arguments,2);return function(c){c=[c||window.event];c.push.apply(c,d);a.apply(b||this,c)}}},attempt:function(a,b,c){return this.create(a,{self:b,attempt:true,args:arguments.length>2?qx.lang.Array.fromArguments(arguments,2):null})()},delay:function(a,b,c,d){return this.create(a,{delay:b,
self:c,args:arguments.length>3?qx.lang.Array.fromArguments(arguments,3):null})()},periodical:function(a,b,c,d){return this.create(a,{periodical:b,self:c,args:arguments.length>3?qx.lang.Array.fromArguments(arguments,3):null})()}}})})();
(function(){qx.Bootstrap.define("qx.event.GlobalError",{statics:{__bL:function(){return qx.core&&qx.core.Environment?qx.core.Environment.get("qx.globalErrorHandling"):!!qx.Bootstrap.getEnvironmentSetting("qx.globalErrorHandling")},setErrorHandler:function(a,b){this.__bM=a||null;this.__bN=b||window;if(this.__bL()){if(a&&window.onerror){var c=qx.Bootstrap.bind(this.__bP,this);if(this.__bO==null)this.__bO=window.onerror;var d=this;window.onerror=function(a,b,g){d.__bO(a,b,g);c(a,b,g)}}if(a&&!window.onerror)window.onerror=
qx.Bootstrap.bind(this.__bP,this);if(this.__bM==null)this.__bO!=null?(window.onerror=this.__bO,this.__bO=null):window.onerror=null}},__bP:function(a,b,c){if(this.__bM)return this.handleError(new qx.core.WindowError(a,b,c)),true},observeMethod:function(a){if(this.__bL()){var b=this;return function(){if(!b.__bM)return a.apply(this,arguments);try{return a.apply(this,arguments)}catch(c){b.handleError(new qx.core.GlobalError(c,arguments))}}}else return a},handleError:function(a){this.__bM&&this.__bM.call(this.__bN,
a)}},defer:function(a){qx.core&&qx.core.Environment?qx.core.Environment.add("qx.globalErrorHandling",true):qx.Bootstrap.setEnvironmentSetting("qx.globalErrorHandling",true);a.setErrorHandler(null,null)}})})();(function(){qx.Bootstrap.define("qx.core.WindowError",{extend:Error,construct:function(a,b,c){Error.call(this,a);this.__bQ=a;this.__bR=b||"";this.__bS=c===void 0?-1:c},members:{__bQ:null,__bR:null,__bS:null,toString:function(){return this.__bQ},getUri:function(){return this.__bR},getLineNumber:function(){return this.__bS}}})})();
(function(){qx.Bootstrap.define("qx.core.GlobalError",{extend:Error,construct:function(a,b){qx.Bootstrap.DEBUG&&qx.core.Assert.assertNotUndefined(a);this.__bQ="GlobalError: "+(a&&a.message?a.message:a);Error.call(this,this.__bQ);this.__bT=b;this.__bU=a},members:{__bU:null,__bT:null,__bQ:null,toString:function(){return this.__bQ},getArguments:function(){return this.__bT},getSourceException:function(){return this.__bU}},destruct:function(){this.__bQ=this.__bT=this.__bU=null}})})();
(function(){qx.Class.define("qx.core.ObjectRegistry",{statics:{inShutDown:false,__j:{},__bV:0,__bW:[],__bX:"",__bY:{},register:function(a){var b=this.__j;if(b){var c=a.$$hash;if(c==null)c=this.__bW,c=c.length>0&&!qx.core.Environment.get("qx.debug.dispose")?c.pop():this.__bV++ +this.__bX,a.$$hash=c,qx.core.Environment.get("qx.debug.dispose")&&qx.dev&&qx.dev.Debug&&qx.dev.Debug.disposeProfilingActive&&(this.__bY[c]=qx.dev.StackTrace.getStackTrace());if(qx.core.Environment.get("qx.debug")&&!a.dispose)throw Error("Invalid object: "+
a);b[c]=a}},unregister:function(a){var b=a.$$hash;if(b!=null){var c=this.__j;c&&c[b]&&(delete c[b],this.__bW.push(b));try{delete a.$$hash}catch(d){a.removeAttribute&&a.removeAttribute("$$hash")}}},toHashCode:function(a){if(qx.core.Environment.get("qx.debug")&&a==null)throw Error("Invalid object: "+a);var b=a.$$hash;if(b!=null)return b;b=this.__bW;b=b.length>0?b.pop():this.__bV++ +this.__bX;return a.$$hash=b},clearHashCode:function(a){if(qx.core.Environment.get("qx.debug")&&a==null)throw Error("Invalid object: "+
a);var b=a.$$hash;if(b!=null){this.__bW.push(b);try{delete a.$$hash}catch(c){a.removeAttribute&&a.removeAttribute("$$hash")}}},fromHashCode:function(a){return this.__j[a]||null},shutdown:function(){this.inShutDown=true;var a=this.__j,b=[],c;for(c in a)b.push(c);b.sort(function(a,b){return parseInt(b,10)-parseInt(a,10)});for(var d,e=0,f=b.length;;){try{for(;e<f;e++)c=b[e],(d=a[c])&&d.dispose&&d.dispose()}catch(g){if(qx.Bootstrap.error(this,"Could not dispose object "+d.toString()+": "+g,g),e!==f){e++;
continue}}break}qx.Bootstrap.debug(this,"Disposed "+f+" objects");delete this.__j},getRegistry:function(){return this.__j},getNextHash:function(){return this.__bV},getPostId:function(){return this.__bX},getStackTraces:function(){return this.__bY}},defer:function(a){if(window&&window.top)for(var b=window.top.frames,c=0;c<b.length;c++)if(b[c]===window){a.__bX="-"+(c+1);return}a.__bX="-0"}})})();
(function(){qx.Bootstrap.define("qx.bom.client.EcmaScript",{statics:{getObjectCount:function(){return{}.__count__==0},getStackTrace:function(){var a=Error();return a.stacktrace?"stacktrace":a.stack?"stack":null}},defer:function(a){qx.core.Environment.add("ecmascript.objectcount",a.getObjectCount);qx.core.Environment.add("ecmascript.stacktrace",a.getStackTrace)}})})();
(function(){qx.Class.define("qx.lang.JsonImpl",{extend:Object,construct:function(){this.stringify=qx.lang.Function.bind(this.stringify,this);this.parse=qx.lang.Function.bind(this.parse,this)},members:{__ca:null,__cb:null,__cc:null,__cd:null,stringify:function(a,b,c){this.__cb=this.__ca="";this.__cd=[];if(qx.lang.Type.isNumber(c))for(var c=Math.min(10,Math.floor(c)),d=0;d<c;d+=1)this.__cb+=" ";else if(qx.lang.Type.isString(c))c.length>10&&(c=c.slice(0,10)),this.__cb=c;this.__cc=b&&(qx.lang.Type.isFunction(b)||
qx.lang.Type.isArray(b))?b:null;return this.__ce("",{"":a})},__ce:function(a,b){var c=this.__ca,d,e=b[a];e&&qx.lang.Type.isFunction(e.toJSON)?e=e.toJSON(a):qx.lang.Type.isDate(e)&&(e=this.dateToJSON(e));typeof this.__cc==="function"&&(e=this.__cc.call(b,a,e));if(e===null)return"null";if(e!==void 0)switch(qx.lang.Type.getClass(e)){case "String":return this.__cf(e);case "Number":return isFinite(e)?String(e):"null";case "Boolean":return String(e);case "Array":this.__ca+=this.__cb;d=[];if(this.__cd.indexOf(e)!==
-1)throw new TypeError("Cannot stringify a recursive object.");this.__cd.push(e);for(var f=e.length,g=0;g<f;g+=1)d[g]=this.__ce(g,e)||"null";this.__cd.pop();d=d.length===0?"[]":this.__ca?"[\n"+this.__ca+d.join(",\n"+this.__ca)+"\n"+c+"]":"["+d.join(",")+"]";this.__ca=c;return d;case "Object":this.__ca+=this.__cb;d=[];if(this.__cd.indexOf(e)!==-1)throw new TypeError("Cannot stringify a recursive object.");this.__cd.push(e);if(this.__cc&&typeof this.__cc==="object"){f=this.__cc.length;for(g=0;g<f;g+=
1){var h=this.__cc[g];if(typeof h==="string"){var i=this.__ce(h,e);i&&d.push(this.__cf(h)+(this.__ca?": ":":")+i)}}}else for(h in e)Object.hasOwnProperty.call(e,h)&&(i=this.__ce(h,e))&&d.push(this.__cf(h)+(this.__ca?": ":":")+i);this.__cd.pop();d=d.length===0?"{}":this.__ca?"{\n"+this.__ca+d.join(",\n"+this.__ca)+"\n"+c+"}":"{"+d.join(",")+"}";this.__ca=c;return d}},dateToJSON:function(a){var b=function(a){return a<10?"0"+a:a},c=function(a){var c=b(a);return a<100?"0"+c:c};return isFinite(a.valueOf())?
a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())+"."+c(a.getUTCMilliseconds())+"Z":null},__cf:function(a){var b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;c.lastIndex=0;return c.test(a)?'"'+a.replace(c,function(a){var c=b[a];return typeof c===
"string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'},parse:function(a,b){var c=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;c.lastIndex=0;c.test(a)&&(a=a.replace(c,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
"")))return c=eval("("+a+")"),typeof b==="function"?this.__cg({"":c},"",b):c;throw new SyntaxError("JSON.parse");},__cg:function(a,b,c){var d=a[b];if(d&&typeof d==="object")for(var e in d)if(Object.hasOwnProperty.call(d,e)){var f=this.__cg(d,e,c);f!==void 0?d[e]=f:delete d[e]}return c.call(a,b,d)}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Json",{statics:{getJson:function(){return qx.Bootstrap.getClass(window.JSON)=="JSON"&&JSON.parse('{"x":1}').x===1&&JSON.stringify({prop:"val"},function(a,b){return a==="prop"?"repl":b}).indexOf("repl")>0}},defer:function(a){qx.core.Environment.add("json",a.getJson)}})})();
(function(){qx.Class.define("qx.lang.Json",{statics:{JSON:qx.core.Environment.get("json")?window.JSON:new qx.lang.JsonImpl,stringify:null,parse:null},defer:function(a){a.stringify=a.JSON.stringify;a.parse=a.JSON.parse}})})();(function(){qx.Class.define("qx.lang.Date",{statics:{now:function(){return+new Date}}})})();
(function(){qx.Interface.define("qx.data.IListData",{events:{change:"qx.event.type.Data",changeLength:"qx.event.type.Event"},members:{getItem:function(){},setItem:function(){},splice:function(){},contains:function(){},getLength:function(){},toArray:function(){}}})})();(function(){qx.Class.define("qx.core.ValidationError",{extend:qx.type.BaseError})})();
(function(){qx.Class.define("qx.lang.RingBuffer",{extend:Object,construct:function(a){this.setMaxEntries(a||50)},members:{__ch:0,__ci:0,__cj:false,__ck:0,__cl:null,__cm:null,setMaxEntries:function(a){this.__cm=a;this.clear()},getMaxEntries:function(){return this.__cm},addEntry:function(a){this.__cl[this.__ch]=a;this.__ch=this.__cn(this.__ch,1);a=this.getMaxEntries();this.__ci<a&&this.__ci++;this.__cj&&this.__ck<a&&this.__ck++},mark:function(){this.__cj=true;this.__ck=0},clearMark:function(){this.__cj=
false},getAllEntries:function(){return this.getEntries(this.getMaxEntries(),false)},getEntries:function(a,b){if(a>this.__ci)a=this.__ci;if(b&&this.__cj&&a>this.__ck)a=this.__ck;if(a>0)var c=this.__cn(this.__ch,-1),d=this.__cn(c,-a+1),c=d<=c?this.__cl.slice(d,c+1):this.__cl.slice(d,this.__ci).concat(this.__cl.slice(0,c+1));else c=[];return c},clear:function(){this.__cl=Array(this.getMaxEntries());this.__ch=this.__ck=this.__ci=0},__cn:function(a,b){var c=this.getMaxEntries(),d=(a+b)%c;d<0&&(d+=c);return d}}})})();
(function(){qx.Class.define("qx.log.appender.RingBuffer",{extend:qx.lang.RingBuffer,construct:function(a){this.setMaxMessages(a||50)},members:{setMaxMessages:function(a){this.setMaxEntries(a)},getMaxMessages:function(){return this.getMaxEntries()},process:function(a){this.addEntry(a)},getAllLogEvents:function(){return this.getAllEntries()},retrieveLogEvents:function(a,b){return this.getEntries(a,b)},clearHistory:function(){this.clear()}}})})();
(function(){qx.Class.define("qx.log.Logger",{statics:{__co:"debug",setLevel:function(a){this.__co=a},getLevel:function(){return this.__co},setTreshold:function(a){this.__cr.setMaxMessages(a)},getTreshold:function(){return this.__cr.getMaxMessages()},__cp:{},__cq:0,register:function(a){if(!a.$$id){var b=this.__cq++;this.__cp[b]=a;a.$$id=b;for(var b=this.__cs,c=this.__cr.getAllLogEvents(),d=0,e=c.length;d<e;d++)b[c[d].level]>=b[this.__co]&&a.process(c[d])}},unregister:function(a){var b=a.$$id;b!=null&&
(delete this.__cp[b],delete a.$$id)},debug:function(a,b){qx.log.Logger.__ct("debug",arguments)},info:function(a,b){qx.log.Logger.__ct("info",arguments)},warn:function(a,b){qx.log.Logger.__ct("warn",arguments)},error:function(a,b){qx.log.Logger.__ct("error",arguments)},trace:function(a){qx.log.Logger.__ct("info",[a,qx.dev.StackTrace.getStackTrace().join("\n")])},deprecatedMethodWarning:function(a,b){qx.core.Environment.get("qx.debug")&&(this.warn("The method '"+qx.lang.Function.getName(a)+"' is deprecated: "+
(b||"Please consult the API documentation of this method for alternatives.")),this.trace())},deprecatedClassWarning:function(a,b){qx.core.Environment.get("qx.debug")&&(this.warn("The class '"+(a.classname||"unknown")+"' is deprecated: "+(b||"Please consult the API documentation of this class for alternatives.")),this.trace())},deprecatedEventWarning:function(a,b,c){qx.core.Environment.get("qx.debug")&&(this.warn("The event '"+(b||"unknown")+"' from class '"+(a.self?a.self.classname:"unknown")+"' is deprecated: "+
(c||"Please consult the API documentation of this class for alternatives.")),this.trace())},deprecatedMixinWarning:function(a,b){qx.core.Environment.get("qx.debug")&&(this.warn("The mixin '"+(a?a.name:"unknown")+"' is deprecated: "+(b||"Please consult the API documentation of this class for alternatives.")),this.trace())},deprecatedConstantWarning:function(a,b,c){if(qx.core.Environment.get("qx.debug")&&a.__defineGetter__){var d=this,e=a[b];a.__defineGetter__(b,function(){d.warn("The constant '"+b+
"' is deprecated: "+(c||"Please consult the API documentation for alternatives."));d.trace();return e})}},deprecateMethodOverriding:function(a,b,c,d){if(qx.core.Environment.get("qx.debug"))for(var e=a.constructor;e.classname!==b.classname;){if(e.prototype.hasOwnProperty(c)){this.warn("The method '"+qx.lang.Function.getName(a[c])+"' overrides a deprecated method: "+(d||"Please consult the API documentation for alternatives."));this.trace();break}e=e.superclass}},clear:function(){this.__cr.clearHistory()},
__cr:new qx.log.appender.RingBuffer(50),__cs:{debug:0,info:1,warn:2,error:3},__ct:function(a,b){var c=this.__cs;if(!(c[a]<c[this.__co])){for(var c=b.length<2?null:b[0],d=[],e=c?1:0,f=b.length;e<f;e++)d.push(this.__cv(b[e],true));e=new Date;d={time:e,offset:e-qx.Bootstrap.LOADSTART,level:a,items:d,win:window};if(c)if(c.$$hash!==void 0)d.object=c.$$hash;else if(c.$$type)d.clazz=c;this.__cr.process(d);var c=this.__cp,g;for(g in c)c[g].process(d)}},__cu:function(a){if(a===void 0)return"undefined";else if(a===
null)return"null";if(a.$$type)return"class";var b=typeof a;if(b==="function"||b=="string"||b==="number"||b==="boolean")return b;else if(b==="object")return a.nodeType?"node":a.classname?"instance":a instanceof Array?"array":a instanceof Error?"error":a instanceof Date?"date":"map";return a.toString?"stringify":"unknown"},__cv:function(a,b){var c=this.__cu(a),d="unknown",e=[];switch(c){case "null":case "undefined":d=c;break;case "string":case "number":case "boolean":case "date":d=a;break;case "node":a.nodeType===
9?d="document":a.nodeType===3?d="text["+a.nodeValue+"]":a.nodeType===1?(d=a.nodeName.toLowerCase(),a.id&&(d+="#"+a.id)):d="node";break;case "function":d=qx.lang.Function.getName(a)||c;break;case "instance":d=a.basename+"["+a.$$hash+"]";break;case "class":case "stringify":d=a.toString();break;case "error":e=qx.dev.StackTrace.getStackTraceFromError(a);d=a.toString();break;case "array":if(b)for(var d=[],f=0,g=a.length;f<g;f++){if(d.length>20){d.push("...(+"+(g-f)+")");break}d.push(this.__cv(a[f],false))}else d=
"[...("+a.length+")]";break;case "map":if(b){var h,i=[],j;for(j in a)i.push(j);i.sort();d=[];f=0;for(g=i.length;f<g;f++){if(d.length>20){d.push("...(+"+(g-f)+")");break}j=i[f];h=this.__cv(a[j],false);h.key=j;d.push(h)}}else{d=0;for(j in a)d++;d="{...("+d+")}"}}return{type:c,text:d,trace:e}}},defer:function(a){for(var b=qx.Bootstrap.$$logs,c=0;c<b.length;c++)a.__ct(b[c][0],b[c][1]);qx.Bootstrap.debug=a.debug;qx.Bootstrap.info=a.info;qx.Bootstrap.warn=a.warn;qx.Bootstrap.error=a.error;qx.Bootstrap.trace=
a.trace}})})();(function(){qx.Mixin.define("qx.core.MLogging",{members:{__cw:qx.log.Logger,debug:function(a){this.__cx("debug",arguments)},info:function(a){this.__cx("info",arguments)},warn:function(a){this.__cx("warn",arguments)},error:function(a){this.__cx("error",arguments)},trace:function(){this.__cw.trace(this)},__cx:function(a,b){var c=qx.lang.Array.fromArguments(b);c.unshift(this);this.__cw[a].apply(this.__cw,c)}}})})();
(function(){qx.Class.define("qx.dom.Node",{statics:{ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12,getDocument:function(a){return a.nodeType===this.DOCUMENT?a:a.ownerDocument||a.document},getWindow:function(a){if(a.nodeType==null)return a;if(a.nodeType!==this.DOCUMENT)a=a.ownerDocument;return a.defaultView||a.parentWindow},getDocumentElement:function(a){return this.getDocument(a).documentElement},
getBodyElement:function(a){return this.getDocument(a).body},isNode:function(a){return!!(a&&a.nodeType!=null)},isElement:function(a){return!!(a&&a.nodeType===this.ELEMENT)},isDocument:function(a){return!!(a&&a.nodeType===this.DOCUMENT)},isText:function(a){return!!(a&&a.nodeType===this.TEXT)},isWindow:function(a){return!(!a||!a.history||!a.location||!a.document)},isNodeName:function(a,b){return!b||!a||!a.nodeName?false:b.toLowerCase()==qx.dom.Node.getName(a)},getName:function(a){return!a||!a.nodeName?
null:a.nodeName.toLowerCase()},getText:function(a){if(!a||!a.nodeType)return null;switch(a.nodeType){case 1:for(var b=[],c=a.childNodes,d=c.length,a=0;a<d;a++)b[a]=this.getText(c[a]);return b.join("");case 2:case 3:case 4:return a.nodeValue}return null},isBlockNode:function(a){if(!qx.dom.Node.isElement(a))return false;a=qx.dom.Node.getName(a);return/^(body|form|textarea|fieldset|ul|ol|dl|dt|dd|li|div|hr|p|h[1-6]|quote|pre|table|thead|tbody|tfoot|tr|td|th|iframe|address|blockquote)$/.test(a)}}})})();
(function(){qx.Bootstrap.define("qx.bom.Event",{statics:{addNativeListener:function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent?a.attachEvent("on"+b,c):typeof a["on"+b]!="undefined"?a["on"+b]=c:qx.core.Environment.get("qx.debug")&&qx.log.Logger.warn("No method available to add native listener to "+a)},removeNativeListener:function(a,b,c,d){if(a.removeEventListener)a.removeEventListener(b,c,!!d);else if(a.detachEvent)try{a.detachEvent("on"+b,c)}catch(e){if(e.number!==-2146828218)throw e;
}else typeof a["on"+b]!="undefined"?a["on"+b]=null:qx.core.Environment.get("qx.debug")&&qx.log.Logger.warn("No method available to remove native listener from "+a)},getTarget:function(a){return a.target||a.srcElement},getRelatedTarget:function(a){return a.relatedTarget!==void 0?(qx.core.Environment.get("engine.name"),a.relatedTarget):a.fromElement!==void 0&&a.type==="mouseover"?a.fromElement:a.toElement!==void 0?a.toElement:null},preventDefault:function(a){if(a.preventDefault){if(!(qx.core.Environment.get("engine.name")==
"gecko"&&parseFloat(qx.core.Environment.get("engine.version"))>=1.9&&a.type=="mousedown"&&a.button==2)&&(a.preventDefault(),qx.core.Environment.get("engine.name")=="gecko"&&parseFloat(qx.core.Environment.get("engine.version"))<1.9))try{a.keyCode=0}catch(b){}}else{try{a.keyCode=0}catch(c){}a.returnValue=false}},stopPropagation:function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=true},fire:function(a,b){if(document.createEvent){var c=document.createEvent("HTMLEvents");c.initEvent(b,true,
true);return!a.dispatchEvent(c)}else return c=document.createEventObject(),a.fireEvent("on"+b,c)},supportsEvent:function(a,b){var c="on"+b,d=c in a;d||(d=typeof a[c]=="function",!d&&a.setAttribute&&(a.setAttribute(c,"return;"),d=typeof a[c]=="function",a.removeAttribute(c)));return d}}})})();
(function(){qx.Class.define("qx.event.Manager",{extend:Object,construct:function(a,b){this.__cy=a;this.__cz=qx.core.ObjectRegistry.toHashCode(a);this.__cA=b;if(a.qx!==qx){var c=this;qx.bom.Event.addNativeListener(a,"unload",qx.event.GlobalError.observeMethod(function(){qx.bom.Event.removeNativeListener(a,"unload",arguments.callee);c.dispose()}))}this.__cB={};this.__cC={};this.__cD={};this.__cE={}},statics:{__cF:0,getNextUniqueId:function(){return this.__cF++ +""}},members:{__cA:null,__cB:null,__cD:null,
__cG:null,__cC:null,__cE:null,__cy:null,__cz:null,getWindow:function(){return this.__cy},getWindowId:function(){return this.__cz},getHandler:function(a){var b=this.__cC[a.classname];return b?b:this.__cC[a.classname]=new a(this)},getDispatcher:function(a){var b=this.__cD[a.classname];return b?b:this.__cD[a.classname]=new a(this,this.__cA)},getListeners:function(a,b,c){a=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)];return!a?null:(b=a[b+(c?"|capture":"|bubble")])?b.concat():null},getAllListeners:function(){return this.__cB},
serializeListeners:function(a){var a=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)],b=[];if(a){var c,d,e,f,g;for(g in a){c=g.indexOf("|");d=g.substring(0,c);c=g.charAt(c+1)=="c";e=a[g];for(var h=0,i=e.length;h<i;h++)f=e[h],b.push({self:f.context,handler:f.handler,type:d,capture:c})}}return b},toggleAttachedEvents:function(a,b){var c=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)];if(c){var d,e,f;for(f in c)d=f.indexOf("|"),e=f.substring(0,d),d=f.charCodeAt(d+1)===99,b?this.__cH(a,
e,d):this.__cI(a,e,d)}},hasListener:function(a,b,c){if(qx.core.Environment.get("qx.debug")&&a==null)throw qx.log.Logger.trace(this),Error("Invalid object: "+a);a=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)];if(!a)return false;b=a[b+(c?"|capture":"|bubble")];return!!(b&&b.length>0)},importListeners:function(a,b){if(qx.core.Environment.get("qx.debug")&&a==null)throw qx.log.Logger.trace(this),Error("Invalid object: "+a);var c=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)]={},
d=qx.event.Manager,e;for(e in b){var f=b[e],g=f.type+(f.capture?"|capture":"|bubble"),h=c[g];h||(h=c[g]=[],this.__cH(a,f.type,f.capture));h.push({handler:f.listener,context:f.self,unique:f.unique||d.__cF++ +""})}},addListener:function(a,b,c,d,e){if(qx.core.Environment.get("qx.debug")){var f="Failed to add event listener for type '"+b+"' to the target '"+a.classname+"': ";qx.core.Assert.assertObject(a,f+"Invalid Target.");qx.core.Assert.assertString(b,f+"Invalid event type.");qx.core.Assert.assertFunction(c,
f+"Invalid callback function");e!==void 0&&qx.core.Assert.assertBoolean(e,"Invalid capture flag.")}var g=a.$$hash||qx.core.ObjectRegistry.toHashCode(a);(f=this.__cB[g])||(f=this.__cB[g]={});var g=b+(e?"|capture":"|bubble"),h=f[g];h||(h=f[g]=[]);h.length===0&&this.__cH(a,b,e);a=qx.event.Manager.__cF++ +"";h.push({handler:c,context:d,unique:a});return g+"|"+a},findHandler:function(a,b){var c=false,d=false,e=false,f=false,g;a.nodeType===1?(c=true,g="DOM_"+a.tagName.toLowerCase()+"_"+b):a.nodeType===
9?(f=true,g="DOCUMENT_"+b):a==this.__cy?(d=true,g="WIN_"+b):a.classname?(e=true,g="QX_"+a.classname+"_"+b):g="UNKNOWN_"+a+"_"+b;var h=this.__cE;if(h[g])return h[g];for(var i=this.__cA.getHandlers(),j=qx.event.IEventHandler,k,l,m=0,n=i.length;m<n;m++)if(k=i[m],l=k.SUPPORTED_TYPES,!l||l[b]){if(l=k.TARGET_CHECK){var o=false;c&&(l&j.TARGET_DOMNODE)!=0?o=true:d&&(l&j.TARGET_WINDOW)!=0?o=true:e&&(l&j.TARGET_OBJECT)!=0?o=true:f&&(l&j.TARGET_DOCUMENT)!=0&&(o=true);if(!o)continue}l=this.getHandler(i[m]);if(k.IGNORE_CAN_HANDLE||
l.canHandleEvent(a,b))return h[g]=l}return null},__cH:function(a,b,c){var d=this.findHandler(a,b);d?d.registerEvent(a,b,c):qx.core.Environment.get("qx.debug")&&qx.log.Logger.warn(this,"There is no event handler for the event '"+b+"' on target '"+a+"'!")},removeListener:function(a,b,c,d,e){if(qx.core.Environment.get("qx.debug")){var f="Failed to remove event listener for type '"+b+"' from the target '"+a.classname+"': ";qx.core.Assert.assertObject(a,f+"Invalid Target.");qx.core.Assert.assertString(b,
f+"Invalid event type.");qx.core.Assert.assertFunction(c,f+"Invalid callback function");d!==void 0&&qx.core.Assert.assertObject(d,"Invalid context for callback.");e!==void 0&&qx.core.Assert.assertBoolean(e,"Invalid capture flag.")}f=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)];if(!f)return false;f=f[b+(e?"|capture":"|bubble")];if(!f)return false;for(var g,h=0,i=f.length;h<i;h++)if(g=f[h],g.handler===c&&g.context===d)return qx.lang.Array.removeAt(f,h),f.length==0&&this.__cI(a,b,e),true;
return false},removeListenerById:function(a,b){if(qx.core.Environment.get("qx.debug")){var c="Failed to remove event listener for id '"+b+"' from the target '"+a.classname+"': ";qx.core.Assert.assertObject(a,c+"Invalid Target.");qx.core.Assert.assertString(b,c+"Invalid id type.")}var d=b.split("|"),c=d[0],e=d[1].charCodeAt(0)==99,d=d[2],f=this.__cB[a.$$hash||qx.core.ObjectRegistry.toHashCode(a)];if(!f)return false;f=f[c+(e?"|capture":"|bubble")];if(!f)return false;for(var g,h=0,i=f.length;h<i;h++)if(g=
f[h],g.unique===d)return qx.lang.Array.removeAt(f,h),f.length==0&&this.__cI(a,c,e),true;return false},removeAllListeners:function(a){var b=a.$$hash||qx.core.ObjectRegistry.toHashCode(a),c=this.__cB[b];if(!c)return false;var d,e,f;for(f in c)c[f].length>0&&(d=f.split("|"),e=d[0],d=d[1]==="capture",this.__cI(a,e,d));delete this.__cB[b];return true},deleteAllListeners:function(a){delete this.__cB[a]},__cI:function(a,b,c){var d=this.findHandler(a,b);d?d.unregisterEvent(a,b,c):qx.core.Environment.get("qx.debug")&&
qx.log.Logger.warn(this,"There is no event handler for the event '"+b+"' on target '"+a+"'!")},dispatchEvent:function(a,b){if(qx.core.Environment.get("qx.debug")){var c="Could not dispatch event '"+b+"' on target '"+a.classname+"': ";qx.core.Assert.assertNotUndefined(a,c+"Invalid event target.");qx.core.Assert.assertNotNull(a,c+"Invalid event target.");qx.core.Assert.assertInstance(b,qx.event.type.Event,c+"Invalid event object.")}c=b.getType();if(!b.getBubbles()&&!this.hasListener(a,c))return qx.event.Pool.getInstance().poolObject(b),
true;b.getTarget()||b.setTarget(a);for(var d=this.__cA.getDispatchers(),e,f=false,g=0,h=d.length;g<h;g++)if(e=this.getDispatcher(d[g]),e.canDispatchEvent(a,b,c)){e.dispatchEvent(a,b,c);f=true;break}if(!f)return qx.core.Environment.get("qx.debug")&&qx.log.Logger.error(this,"No dispatcher can handle event of type "+c+" on "+a),true;c=b.getDefaultPrevented();qx.event.Pool.getInstance().poolObject(b);return!c},dispose:function(){this.__cA.removeManager(this);qx.util.DisposeUtil.disposeMap(this,"__cC");
qx.util.DisposeUtil.disposeMap(this,"__cD");this.__cA=this.__cE=this.__cB=this.__cy=this.__cG=null}}})})();(function(){qx.Interface.define("qx.event.IEventHandler",{statics:{TARGET_DOMNODE:1,TARGET_WINDOW:2,TARGET_OBJECT:4,TARGET_DOCUMENT:8},members:{canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){}}})})();
(function(){qx.Class.define("qx.event.Registration",{statics:{__cJ:{},getManager:function(a){a==null?(qx.core.Environment.get("qx.debug")&&(qx.log.Logger.error("qx.event.Registration.getManager(null) was called!"),qx.log.Logger.trace(this)),a=window):a.nodeType?a=qx.dom.Node.getWindow(a):qx.dom.Node.isWindow(a)||(a=window);var b=a.$$hash||qx.core.ObjectRegistry.toHashCode(a),c=this.__cJ[b];c||(c=new qx.event.Manager(a,this),this.__cJ[b]=c);return c},removeManager:function(a){delete this.__cJ[a.getWindowId()]},
addListener:function(a,b,c,d,e){return this.getManager(a).addListener(a,b,c,d,e)},removeListener:function(a,b,c,d,e){return this.getManager(a).removeListener(a,b,c,d,e)},removeListenerById:function(a,b){return this.getManager(a).removeListenerById(a,b)},removeAllListeners:function(a){return this.getManager(a).removeAllListeners(a)},deleteAllListeners:function(a){var b=a.$$hash;b&&this.getManager(a).deleteAllListeners(b)},hasListener:function(a,b,c){return this.getManager(a).hasListener(a,b,c)},serializeListeners:function(a){return this.getManager(a).serializeListeners(a)},
createEvent:function(a,b,c){if(qx.core.Environment.get("qx.debug")&&arguments.length>1&&b===void 0)throw Error("Create event of type "+a+" with undefined class. Please use null to explicit fallback to default event type!");if(b==null)b=qx.event.type.Event;var d=qx.event.Pool.getInstance().getObject(b);c?d.init.apply(d,c):d.init();a&&d.setType(a);return d},dispatchEvent:function(a,b){return this.getManager(a).dispatchEvent(a,b)},fireEvent:function(a,b,c,d){if(qx.core.Environment.get("qx.debug")){if(arguments.length>
2&&c===void 0&&d!==void 0)throw Error("Create event of type "+b+" with undefined class. Please use null to explicit fallback to default event type!");var e="Could not fire event '"+b+"' on target '"+(a?a.classname:"undefined")+"': ";qx.core.Assert.assertNotUndefined(a,e+"Invalid event target.");qx.core.Assert.assertNotNull(a,e+"Invalid event target.")}e=this.createEvent(b,c||null,d);return this.getManager(a).dispatchEvent(a,e)},fireNonBubblingEvent:function(a,b,c,d){if(qx.core.Environment.get("qx.debug")&&
arguments.length>2&&c===void 0&&d!==void 0)throw Error("Create event of type "+b+" with undefined class. Please use null to explicit fallback to default event type!");var e=this.getManager(a);if(!e.hasListener(a,b,false))return true;var f=this.createEvent(b,c||null,d);return e.dispatchEvent(a,f)},PRIORITY_FIRST:-32E3,PRIORITY_NORMAL:0,PRIORITY_LAST:32E3,__cC:[],addHandler:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertInterface(a,qx.event.IEventHandler,"Invalid event handler.");
this.__cC.push(a);this.__cC.sort(function(a,c){return a.PRIORITY-c.PRIORITY})},getHandlers:function(){return this.__cC},__cD:[],addDispatcher:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertInterface(a,qx.event.IEventDispatcher,"Invalid event dispatcher!");this.__cD.push(a);this.__cD.sort(function(a,c){return a.PRIORITY-c.PRIORITY})},getDispatchers:function(){return this.__cD}}})})();
(function(){qx.Mixin.define("qx.core.MEvents",{members:{__cK:qx.event.Registration,addListener:function(a,b,c,d){return!this.$$disposed?this.__cK.addListener(this,a,b,c,d):null},addListenerOnce:function(a,b,c,d){var e=function(f){this.removeListener(a,e,this,d);b.call(c||this,f)};return this.addListener(a,e,this,d)},removeListener:function(a,b,c,d){return!this.$$disposed?this.__cK.removeListener(this,a,b,c,d):false},removeListenerById:function(a){return!this.$$disposed?this.__cK.removeListenerById(this,
a):false},hasListener:function(a,b){return this.__cK.hasListener(this,a,b)},dispatchEvent:function(a){return!this.$$disposed?this.__cK.dispatchEvent(this,a):true},fireEvent:function(a,b,c){return!this.$$disposed?this.__cK.fireEvent(this,a,b,c):true},fireNonBubblingEvent:function(a,b,c){return!this.$$disposed?this.__cK.fireNonBubblingEvent(this,a,b,c):true},fireDataEvent:function(a,b,c,d){return!this.$$disposed?(c===void 0&&(c=null),this.__cK.fireNonBubblingEvent(this,a,qx.event.type.Data,[b,c,!!d])):
true}}})})();(function(){qx.Interface.define("qx.event.IEventDispatcher",{members:{canDispatchEvent:function(a,b,c){this.assertInstance(b,qx.event.type.Event);this.assertString(c)},dispatchEvent:function(a,b,c){this.assertInstance(b,qx.event.type.Event);this.assertString(c)}}})})();
(function(){qx.Mixin.define("qx.core.MProperty",{members:{set:function(a,b){var c=qx.core.Property.$$method.set;if(qx.Bootstrap.isString(a)){if(!this[c[a]]){if(this["set"+qx.Bootstrap.firstUp(a)]!=void 0)return this["set"+qx.Bootstrap.firstUp(a)](b),this;if(qx.core.Environment.get("qx.debug"))return qx.Bootstrap.error(Error("No such property: "+a)),this}return this[c[a]](b)}else{for(var d in a){if(!this[c[d]]){if(this["set"+qx.Bootstrap.firstUp(d)]!=void 0){this["set"+qx.Bootstrap.firstUp(d)](a[d]);
continue}if(qx.core.Environment.get("qx.debug")){qx.Bootstrap.error(Error("No such property: "+d));break}}this[c[d]](a[d])}return this}},get:function(a){var b=qx.core.Property.$$method.get;if(!this[b[a]]){if(this["get"+qx.Bootstrap.firstUp(a)]!=void 0)return this["get"+qx.Bootstrap.firstUp(a)]();if(qx.core.Environment.get("qx.debug"))return qx.Bootstrap.error(Error("No such property: "+a)),this}return this[b[a]]()},reset:function(a){var b=qx.core.Property.$$method.reset;if(!this[b[a]]){if(this["reset"+
qx.Bootstrap.firstUp(a)]!=void 0){this["reset"+qx.Bootstrap.firstUp(a)]();return}if(qx.core.Environment.get("qx.debug")){qx.Bootstrap.error(Error("No such property: "+a));return}}this[b[a]]()}}})})();
(function(){qx.Mixin.define("qx.core.MAssert",{members:{assert:function(a,b){qx.core.Assert.assert(a,b)},fail:function(a,b){qx.core.Assert.fail(a,b)},assertTrue:function(a,b){qx.core.Assert.assertTrue(a,b)},assertFalse:function(a,b){qx.core.Assert.assertFalse(a,b)},assertEquals:function(a,b,c){qx.core.Assert.assertEquals(a,b,c)},assertNotEquals:function(a,b,c){qx.core.Assert.assertNotEquals(a,b,c)},assertIdentical:function(a,b,c){qx.core.Assert.assertIdentical(a,b,c)},assertNotIdentical:function(a,
b,c){qx.core.Assert.assertNotIdentical(a,b,c)},assertNotUndefined:function(a,b){qx.core.Assert.assertNotUndefined(a,b)},assertUndefined:function(a,b){qx.core.Assert.assertUndefined(a,b)},assertNotNull:function(a,b){qx.core.Assert.assertNotNull(a,b)},assertNull:function(a,b){qx.core.Assert.assertNull(a,b)},assertJsonEquals:function(a,b,c){qx.core.Assert.assertJsonEquals(a,b,c)},assertMatch:function(a,b,c){qx.core.Assert.assertMatch(a,b,c)},assertArgumentsCount:function(a,b,c,d){qx.core.Assert.assertArgumentsCount(a,
b,c,d)},assertEventFired:function(a,b,c,d,e){qx.core.Assert.assertEventFired(a,b,c,d,e)},assertEventNotFired:function(a,b,c,d){qx.core.Assert.assertEventNotFired(a,b,c,d)},assertException:function(a,b,c,d){qx.core.Assert.assertException(a,b,c,d)},assertInArray:function(a,b,c){qx.core.Assert.assertInArray(a,b,c)},assertArrayEquals:function(a,b,c){qx.core.Assert.assertArrayEquals(a,b,c)},assertKeyInMap:function(a,b,c){qx.core.Assert.assertKeyInMap(a,b,c)},assertFunction:function(a,b){qx.core.Assert.assertFunction(a,
b)},assertString:function(a,b){qx.core.Assert.assertString(a,b)},assertBoolean:function(a,b){qx.core.Assert.assertBoolean(a,b)},assertNumber:function(a,b){qx.core.Assert.assertNumber(a,b)},assertPositiveNumber:function(a,b){qx.core.Assert.assertPositiveNumber(a,b)},assertInteger:function(a,b){qx.core.Assert.assertInteger(a,b)},assertPositiveInteger:function(a,b){qx.core.Assert.assertPositiveInteger(a,b)},assertInRange:function(a,b,c,d){qx.core.Assert.assertInRange(a,b,c,d)},assertObject:function(a,
b){qx.core.Assert.assertObject(a,b)},assertArray:function(a,b){qx.core.Assert.assertArray(a,b)},assertMap:function(a,b){qx.core.Assert.assertMap(a,b)},assertRegExp:function(a,b){qx.core.Assert.assertRegExp(a,b)},assertType:function(a,b,c){qx.core.Assert.assertType(a,b,c)},assertInstance:function(a,b,c){qx.core.Assert.assertInstance(a,b,c)},assertInterface:function(a,b,c){qx.core.Assert.assertInterface(a,b,c)},assertCssColor:function(a,b,c){qx.core.Assert.assertCssColor(a,b,c)},assertElement:function(a,
b){qx.core.Assert.assertElement(a,b)},assertQxObject:function(a,b){qx.core.Assert.assertQxObject(a,b)},assertQxWidget:function(a,b){qx.core.Assert.assertQxWidget(a,b)}}})})();
(function(){qx.Class.define("qx.core.Object",{extend:Object,include:qx.core.Environment.filter({"module.databinding":qx.data.MBinding,"module.logger":qx.core.MLogging,"module.events":qx.core.MEvents,"module.property":qx.core.MProperty,"qx.debug":qx.core.MAssert}),construct:function(){qx.core.ObjectRegistry.register(this)},statics:{$$type:"Object"},members:{__M:qx.core.Environment.get("module.property")?qx.core.Property:null,toHashCode:function(){return this.$$hash},toString:function(){return this.classname+
"["+this.$$hash+"]"},base:function(a,b){if(qx.core.Environment.get("qx.debug")&&!qx.Bootstrap.isFunction(a.callee.base))throw Error("Cannot call super class. Method is not derived: "+a.callee.displayName);return arguments.length===1?a.callee.base.call(this):a.callee.base.apply(this,Array.prototype.slice.call(arguments,1))},self:function(a){return a.callee.self},clone:function(){if(!qx.core.Environment.get("module.property"))throw Error("Cloning only possible with properties.");for(var a=this.constructor,
b=new a,a=qx.Class.getProperties(a),c=this.__M.$$store.user,d=this.__M.$$method.set,e,f=0,g=a.length;f<g;f++)if(e=a[f],this.hasOwnProperty(c[e]))b[d[e]](this[c[e]]);return b},__cL:null,setUserData:function(a,b){if(!this.__cL)this.__cL={};this.__cL[a]=b},getUserData:function(a){if(!this.__cL)return null;a=this.__cL[a];return a===void 0?null:a},isDisposed:function(){return this.$$disposed||false},dispose:function(){if(!this.$$disposed){this.$$disposed=true;this.$$allowconstruct=this.$$instance=null;
qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.disposerDebugLevel")>2&&qx.Bootstrap.debug(this,"Disposing "+this.classname+"["+this.toHashCode()+"]");for(var a=this.constructor,b;a.superclass;){a.$$destructor&&a.$$destructor.call(this);if(a.$$includes){b=a.$$flatIncludes;for(var c=0,d=b.length;c<d;c++)b[c].$$destructor&&b[c].$$destructor.call(this)}a=a.superclass}this.__cM&&this.__cM();if(qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.disposerDebugLevel")>0)for(var e in this)if(a=
this[e],a!==null&&typeof a==="object"&&!qx.Bootstrap.isString(a)&&this.constructor.prototype[e]==null)if(b=navigator.userAgent.indexOf("rv:1.8.1")!=-1,c=navigator.userAgent.indexOf("MSIE 6.0")!=-1,b||c){if(a instanceof qx.core.Object||qx.core.Environment.get("qx.disposerDebugLevel")>1)qx.Bootstrap.warn(this,"Missing destruct definition for '"+e+"' in "+this.classname+"["+this.toHashCode()+"]: "+a),delete this[e]}else qx.core.Environment.get("qx.disposerDebugLevel")>1&&(qx.Bootstrap.warn(this,"Missing destruct definition for '"+
e+"' in "+this.classname+"["+this.toHashCode()+"]: "+a),delete this[e])}},__cM:null,__cN:function(){for(var a=qx.Class.getProperties(this.constructor),b=0,c=a.length;b<c;b++)delete this["$$user_"+a[b]]},_disposeObjects:function(a){qx.util.DisposeUtil.disposeObjects(this,arguments)},_disposeSingletonObjects:function(a){qx.util.DisposeUtil.disposeObjects(this,arguments,true)},_disposeArray:function(a){qx.util.DisposeUtil.disposeArray(this,a)},_disposeMap:function(a){qx.util.DisposeUtil.disposeMap(this,
a)}},environment:{"qx.disposerDebugLevel":0},defer:function(a,b){var c=navigator.userAgent.indexOf("MSIE 6.0")!=-1,d=navigator.userAgent.indexOf("rv:1.8.1")!=-1;if(c||d)b.__cM=b.__cN},destruct:function(){qx.core.Environment.get("module.events")&&(qx.core.ObjectRegistry.inShutDown?qx.event.Registration.deleteAllListeners(this):qx.event.Registration.removeAllListeners(this));qx.core.ObjectRegistry.unregister(this);this.__cL=null;if(qx.core.Environment.get("module.property")){var a=this.constructor,
b;b=this.__M.$$store;for(var c=b.user,d=b.theme,e=b.inherit,f=b.useinit,g=b.init;a;){if(b=a.$$properties)for(var h in b)b[h].dereference&&(this[c[h]]=this[d[h]]=this[e[h]]=this[f[h]]=this[g[h]]=void 0);a=a.superclass}}}})})();
(function(){qx.Class.define("qx.util.DisposeUtil",{statics:{disposeObjects:function(a,b,c){for(var d,e=0,f=b.length;e<f;e++)if(d=b[e],a[d]!=null&&a.hasOwnProperty(d)){if(!qx.core.ObjectRegistry.inShutDown)if(a[d].dispose)if(!c&&a[d].constructor.$$instance)throw Error("The object stored in key "+d+" is a singleton! Please use disposeSingleton instead.");else a[d].dispose();else throw Error("Has no disposable object under key: "+d+"!");a[d]=null}},disposeArray:function(a,b){var c=a[b];if(c){if(!qx.core.ObjectRegistry.inShutDown){try{for(var d,
e=c.length-1;e>=0;e--)(d=c[e])&&d.dispose()}catch(f){throw Error("The array field: "+b+" of object: "+a+" has non disposable entries: "+f);}c.length=0}a[b]=null}},disposeMap:function(a,b){var c=a[b];if(c){if(!qx.core.ObjectRegistry.inShutDown)try{var d,e;for(e in c)d=c[e],c.hasOwnProperty(e)&&d&&d.dispose()}catch(f){throw Error("The map field: "+b+" of object: "+a+" has non disposable entries: "+f);}a[b]=null}},disposeTriggeredBy:function(a,b){var c=b.dispose;b.dispose=function(){c.call(b);a.dispose()}}}})})();
(function(){qx.Class.define("qx.event.type.Event",{extend:qx.core.Object,statics:{CAPTURING_PHASE:1,AT_TARGET:2,BUBBLING_PHASE:3},members:{init:function(a,b){qx.core.Environment.get("qx.debug")&&(a!==void 0&&qx.core.Assert.assertBoolean(a,"Invalid argument value 'canBubble'."),b!==void 0&&qx.core.Assert.assertBoolean(b,"Invalid argument value 'cancelable'."));this._originalTarget=this._relatedTarget=this._currentTarget=this._target=this._type=null;this._preventDefault=this._stopPropagation=false;
this._bubbles=!!a;this._cancelable=!!b;this._timeStamp=(new Date).getTime();this._eventPhase=null;return this},clone:function(a){a=a?a:qx.event.Pool.getInstance().getObject(this.constructor);a._type=this._type;a._target=this._target;a._currentTarget=this._currentTarget;a._relatedTarget=this._relatedTarget;a._originalTarget=this._originalTarget;a._stopPropagation=this._stopPropagation;a._bubbles=this._bubbles;a._preventDefault=this._preventDefault;a._cancelable=this._cancelable;return a},stop:function(){this._bubbles&&
this.stopPropagation();this._cancelable&&this.preventDefault()},stopPropagation:function(){qx.core.Environment.get("qx.debug")&&this.assertTrue(this._bubbles,"Cannot stop propagation on a non bubbling event: "+this.getType());this._stopPropagation=true},getPropagationStopped:function(){return!!this._stopPropagation},preventDefault:function(){qx.core.Environment.get("qx.debug")&&this.assertTrue(this._cancelable,"Cannot prevent default action on a non cancelable event: "+this.getType());this._preventDefault=
true},getDefaultPrevented:function(){return!!this._preventDefault},getType:function(){return this._type},setType:function(a){this._type=a},getEventPhase:function(){return this._eventPhase},setEventPhase:function(a){this._eventPhase=a},getTimeStamp:function(){return this._timeStamp},getTarget:function(){return this._target},setTarget:function(a){this._target=a},getCurrentTarget:function(){return this._currentTarget||this._target},setCurrentTarget:function(a){this._currentTarget=a},getRelatedTarget:function(){return this._relatedTarget},
setRelatedTarget:function(a){this._relatedTarget=a},getOriginalTarget:function(){return this._originalTarget},setOriginalTarget:function(a){this._originalTarget=a},getBubbles:function(){return this._bubbles},setBubbles:function(a){this._bubbles=a},isCancelable:function(){return this._cancelable},setCancelable:function(a){this._cancelable=a}},destruct:function(){this._target=this._currentTarget=this._relatedTarget=this._originalTarget=null}})})();
(function(){qx.Class.define("qx.util.ObjectPool",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this.__cO={};a!=null&&this.setSize(a)},properties:{size:{check:"Integer",init:Infinity}},members:{__cO:null,getObject:function(a){if(this.$$disposed)return new a;if(!a)throw Error("Class needs to be defined!");var b=null,c=this.__cO[a.classname];c&&(b=c.pop());b?b.$$pooled=false:b=new a;return b},poolObject:function(a){if(this.__cO){var b=a.classname,c=this.__cO[b];if(a.$$pooled)throw Error("Object is already pooled: "+
a);c||(this.__cO[b]=c=[]);c.length>this.getSize()?a.destroy?a.destroy():a.dispose():(a.$$pooled=true,c.push(a))}}},destruct:function(){var a=this.__cO,b,c,d,e;for(b in a){c=a[b];for(d=0,e=c.length;d<e;d++)c[d].dispose()}delete this.__cO}})})();(function(){qx.Class.define("qx.event.Pool",{extend:qx.util.ObjectPool,type:"singleton",construct:function(){qx.util.ObjectPool.call(this,30)}})})();
(function(){qx.Class.define("qx.event.dispatch.Direct",{extend:qx.core.Object,implement:qx.event.IEventDispatcher,construct:function(a){this._manager=a},statics:{PRIORITY:qx.event.Registration.PRIORITY_LAST},members:{canDispatchEvent:function(a,b){return!b.getBubbles()},dispatchEvent:function(a,b,c){if(qx.core.Environment.get("qx.debug")&&a instanceof qx.core.Object){var d=qx.Class.getEventType(a.constructor,c),e=qx.Class.getByName(d);e?b instanceof e||this.error("Expected event type to be instanceof '"+
d+"' but found '"+b.classname+"'"):this.error("The event type '"+c+"' declared in the class '"+a.constructor+" is not an available class': "+d)}b.setEventPhase(qx.event.type.Event.AT_TARGET);if(d=this._manager.getListeners(a,c,false))for(var e=0,f=d.length;e<f;e++){var g=d[e].context||a;qx.core.Environment.get("qx.debug")&&g&&g.isDisposed&&g.isDisposed()&&this.warn("The context object '"+g+"' for the event '"+c+"' of '"+a+"'is already disposed.");d[e].handler.call(g,b)}}},defer:function(a){qx.event.Registration.addDispatcher(a)}})})();
(function(){qx.Class.define("qx.event.handler.Object",{extend:qx.core.Object,implement:qx.event.IEventHandler,statics:{PRIORITY:qx.event.Registration.PRIORITY_LAST,SUPPORTED_TYPES:null,TARGET_CHECK:qx.event.IEventHandler.TARGET_OBJECT,IGNORE_CAN_HANDLE:false},members:{canHandleEvent:function(a,b){return qx.Class.supportsEvent(a.constructor,b)},registerEvent:function(){},unregisterEvent:function(){}},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.type.Data",{extend:qx.event.type.Event,members:{__cP:null,__cQ:null,init:function(a,b,c){qx.event.type.Event.prototype.init.call(this,false,c);this.__cP=a;this.__cQ=b;return this},clone:function(a){a=qx.event.type.Event.prototype.clone.call(this,a);a.__cP=this.__cP;a.__cQ=this.__cQ;return a},getData:function(){return this.__cP},getOldData:function(){return this.__cQ}},destruct:function(){this.__cP=this.__cQ=null}})})();
(function(){qx.Mixin.define("qx.locale.MTranslation",{members:{tr:function(a,b){var c=qx.locale.Manager;if(c)return c.tr.apply(c,arguments);throw Error("To enable localization please include qx.locale.Manager into your build!");},trn:function(a,b,c,d){var e=qx.locale.Manager;if(e)return e.trn.apply(e,arguments);throw Error("To enable localization please include qx.locale.Manager into your build!");},trc:function(a,b,c){var d=qx.locale.Manager;if(d)return d.trc.apply(d,arguments);throw Error("To enable localization please include qx.locale.Manager into your build!");
},marktr:function(a){var b=qx.locale.Manager;if(b)return b.marktr.apply(b,arguments);throw Error("To enable localization please include qx.locale.Manager into your build!");}}})})();(function(){qx.Interface.define("qx.application.IApplication",{members:{main:function(){},finalize:function(){},close:function(){},terminate:function(){}}})})();
(function(){qx.Class.define("qx.core.BaseInit",{statics:{getApplication:function(){return this.__cR||null},ready:function(){if(!this.__cR){qx.core.Environment.get("engine.name")==""&&qx.log.Logger.warn("Could not detect engine!");qx.core.Environment.get("engine.version")==""&&qx.log.Logger.warn("Could not detect the version of the engine!");qx.core.Environment.get("os.name")==""&&qx.log.Logger.warn("Could not detect operating system!");qx.log.Logger.debug(this,"Load runtime: "+(new Date-qx.Bootstrap.LOADSTART)+
"ms");var a=qx.core.Environment.get("qx.application"),b=qx.Class.getByName(a);b?(this.__cR=new b,a=new Date,this.__cR.main(),qx.log.Logger.debug(this,"Main runtime: "+(new Date-a)+"ms"),a=new Date,this.__cR.finalize(),qx.log.Logger.debug(this,"Finalize runtime: "+(new Date-a)+"ms")):qx.log.Logger.warn("Missing application class: "+a)}},__cS:function(){var a=this.__cR;a&&a.close()},__cT:function(){var a=this.__cR;a&&a.terminate();qx.core.ObjectRegistry.shutdown()}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.OperatingSystem",{statics:{getName:function(){if(!navigator)return"";var a=navigator.platform||"",b=navigator.userAgent||"";if(a.indexOf("Windows")!=-1||a.indexOf("Win32")!=-1||a.indexOf("Win64")!=-1)return"win";else if(a.indexOf("Macintosh")!=-1||a.indexOf("MacPPC")!=-1||a.indexOf("MacIntel")!=-1||a.indexOf("Mac OS X")!=-1)return"osx";else if(b.indexOf("RIM Tablet OS")!=-1)return"rim_tabletos";else if(b.indexOf("webOS")!=-1)return"webos";else if(a.indexOf("iPod")!=
-1||a.indexOf("iPhone")!=-1||a.indexOf("iPad")!=-1)return"ios";else if(b.indexOf("Android")!=-1)return"android";else if(a.indexOf("Linux")!=-1)return"linux";else if(a.indexOf("X11")!=-1||a.indexOf("BSD")!=-1||a.indexOf("Darwin")!=-1)return"unix";else if(a.indexOf("SymbianOS")!=-1)return"symbian";else if(a.indexOf("BlackBerry")!=-1)return"blackberry";return""},__cU:{"Windows NT 6.1":"7","Windows NT 6.0":"vista","Windows NT 5.2":"2003","Windows NT 5.1":"xp","Windows NT 5.0":"2000","Windows 2000":"2000",
"Windows NT 4.0":"nt4","Win 9x 4.90":"me","Windows CE":"ce","Windows 98":"98",Win98:"98","Windows 95":"95",Win95:"95","Mac OS X 10_7":"10.7","Mac OS X 10.7":"10.7","Mac OS X 10_6":"10.6","Mac OS X 10.6":"10.6","Mac OS X 10_5":"10.5","Mac OS X 10.5":"10.5","Mac OS X 10_4":"10.4","Mac OS X 10.4":"10.4","Mac OS X 10_3":"10.3","Mac OS X 10.3":"10.3","Mac OS X 10_2":"10.2","Mac OS X 10.2":"10.2","Mac OS X 10_1":"10.1","Mac OS X 10.1":"10.1","Mac OS X 10_0":"10.0","Mac OS X 10.0":"10.0"},getVersion:function(){var a=
[],b;for(b in qx.bom.client.OperatingSystem.__cU)a.push(b);return(a=RegExp("("+a.join("|").replace(/\./g,".")+")","g").exec(navigator.userAgent))&&a[1]?qx.bom.client.OperatingSystem.__cU[a[1]]:""}},defer:function(a){qx.core.Environment.add("os.name",a.getName);qx.core.Environment.add("os.version",a.getVersion)}})})();
(function(){qx.Class.define("qx.event.type.Native",{extend:qx.event.type.Event,members:{init:function(a,b,c,d,e){qx.event.type.Event.prototype.init.call(this,d,e);this._target=b||qx.bom.Event.getTarget(a);this._relatedTarget=c||qx.bom.Event.getRelatedTarget(a);if(a.timeStamp)this._timeStamp=a.timeStamp;this._native=a;this._returnValue=null;return this},clone:function(a){a=qx.event.type.Event.prototype.clone.call(this,a);a._native=this._cloneNativeEvent(this._native,{});a._returnValue=this._returnValue;
return a},_cloneNativeEvent:function(a,b){b.preventDefault=qx.lang.Function.empty;return b},preventDefault:function(){qx.event.type.Event.prototype.preventDefault.call(this);qx.bom.Event.preventDefault(this._native)},getNativeEvent:function(){return this._native},setReturnValue:function(a){this._returnValue=a},getReturnValue:function(){return this._returnValue}},destruct:function(){this._native=this._returnValue=null}})})();
(function(){qx.Class.define("qx.event.handler.Window",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this._manager=a;this._window=a.getWindow();this._initWindowObserver()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{error:1,load:1,beforeunload:1,unload:1,resize:1,scroll:1,beforeshutdown:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{canHandleEvent:function(){},registerEvent:function(){},
unregisterEvent:function(){},_initWindowObserver:function(){this._onNativeWrapper=qx.lang.Function.listener(this._onNative,this);var a=qx.event.handler.Window.SUPPORTED_TYPES,b;for(b in a)qx.bom.Event.addNativeListener(this._window,b,this._onNativeWrapper)},_stopWindowObserver:function(){var a=qx.event.handler.Window.SUPPORTED_TYPES,b;for(b in a)qx.bom.Event.removeNativeListener(this._window,b,this._onNativeWrapper)},_onNative:qx.event.GlobalError.observeMethod(function(a){if(!this.isDisposed()){var b=
this._window;try{var c=b.document}catch(d){return}var e=c.documentElement,f=qx.bom.Event.getTarget(a);if(f==null||f===b||f===c||f===e)if(c=qx.event.Registration.createEvent(a.type,qx.event.type.Native,[a,b]),qx.event.Registration.dispatchEvent(b,c),b=c.getReturnValue(),b!=null)return a.returnValue=b}})},destruct:function(){this._stopWindowObserver();this._manager=this._window=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.handler.Application",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this._window=a.getWindow();this.__cY=this.__cX=this.__cW=this.__cV=false;this._initObserver();qx.event.handler.Application.$$instance=this},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{ready:1,shutdown:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true,onScriptLoaded:function(){var a=
qx.event.handler.Application.$$instance;a&&a.__da()}},members:{canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){},__cX:null,__cV:null,__cW:null,__cY:null,__da:function(){if(!this.__cX&&this.__cV&&qx.$$loader.scriptLoaded)if(qx.core.Environment.get("engine.name")=="mshtml"){if(qx.event.Registration.hasListener(this._window,"ready"))this.__cX=true,qx.event.Registration.fireEvent(this._window,"ready")}else this.__cX=true,qx.event.Registration.fireEvent(this._window,"ready")},
isApplicationReady:function(){return this.__cX},_initObserver:function(){if(qx.$$domReady||document.readyState=="complete"||document.readyState=="ready")this.__cV=true,this.__da();else{this._onNativeLoadWrapped=qx.lang.Function.bind(this._onNativeLoad,this);if(qx.core.Environment.get("engine.name")=="gecko"||qx.core.Environment.get("engine.name")=="opera"||qx.core.Environment.get("engine.name")=="webkit")qx.bom.Event.addNativeListener(this._window,"DOMContentLoaded",this._onNativeLoadWrapped);else if(qx.core.Environment.get("engine.name")==
"mshtml"){var a=this,b=function(){try{document.documentElement.doScroll("left"),document.body&&a._onNativeLoadWrapped()}catch(c){window.setTimeout(b,100)}};b()}qx.bom.Event.addNativeListener(this._window,"load",this._onNativeLoadWrapped)}this._onNativeUnloadWrapped=qx.lang.Function.bind(this._onNativeUnload,this);qx.bom.Event.addNativeListener(this._window,"unload",this._onNativeUnloadWrapped)},_stopObserver:function(){this._onNativeLoadWrapped&&qx.bom.Event.removeNativeListener(this._window,"load",
this._onNativeLoadWrapped);qx.bom.Event.removeNativeListener(this._window,"unload",this._onNativeUnloadWrapped);this._onNativeUnloadWrapped=this._onNativeLoadWrapped=null},_onNativeLoad:qx.event.GlobalError.observeMethod(function(){this.__cV=true;this.__da()}),_onNativeUnload:qx.event.GlobalError.observeMethod(function(){if(!this.__cY){this.__cY=true;try{qx.event.Registration.fireEvent(this._window,"shutdown")}catch(a){throw a;}finally{qx.core.ObjectRegistry.shutdown()}}})},destruct:function(){this._stopObserver();
this._window=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.core.Init",{statics:{getApplication:qx.core.BaseInit.getApplication,ready:qx.core.BaseInit.ready,__cS:function(a){var b=this.getApplication();b&&a.setReturnValue(b.close())},__cT:function(){var a=this.getApplication();a&&a.terminate()}},defer:function(a){qx.event.Registration.addListener(window,"ready",a.ready,a);qx.event.Registration.addListener(window,"shutdown",a.__cT,a);qx.event.Registration.addListener(window,"beforeunload",a.__cS,a)}})})();
(function(){qx.Class.define("qx.application.AbstractGui",{type:"abstract",extend:qx.core.Object,implement:[qx.application.IApplication],include:qx.locale.MTranslation,members:{__db:null,_createRootWidget:function(){throw Error("Abstract method call");},getRoot:function(){return this.__db},main:function(){qx.theme.manager.Meta.getInstance().initialize();qx.ui.tooltip.Manager.getInstance();this.__db=this._createRootWidget()},finalize:function(){this.render()},render:function(){qx.ui.core.queue.Manager.flush()},
close:function(){},terminate:function(){}},destruct:function(){this.__db=null}})})();
(function(){qx.Class.define("qx.theme.manager.Meta",{type:"singleton",extend:qx.core.Object,properties:{theme:{check:"Theme",nullable:true,apply:"_applyTheme"}},members:{_applyTheme:function(a){var b=null,c=null,d=null,e=null,f=null;a&&(b=a.meta.color||null,c=a.meta.decoration||null,d=a.meta.font||null,e=a.meta.icon||null,f=a.meta.appearance||null);var a=qx.theme.manager.Color.getInstance(),g=qx.theme.manager.Decoration.getInstance(),h=qx.theme.manager.Font.getInstance(),i=qx.theme.manager.Icon.getInstance(),
j=qx.theme.manager.Appearance.getInstance();a.setTheme(b);g.setTheme(c);h.setTheme(d);i.setTheme(e);j.setTheme(f)},initialize:function(){var a,b;if(a=qx.core.Environment.get("qx.theme")){b=qx.Theme.getByName(a);if(!b)throw Error("The theme to use is not available: "+a);this.setTheme(b)}}},environment:{"qx.theme":"qx.theme.Modern"}})})();
(function(){qx.Class.define("qx.util.ValueManager",{type:"abstract",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this._dynamic={}},members:{_dynamic:null,resolveDynamic:function(a){return this._dynamic[a]},isDynamic:function(a){return!!this._dynamic[a]},resolve:function(a){return a&&this._dynamic[a]?this._dynamic[a]:a},_setDynamic:function(a){this._dynamic=a},_getDynamic:function(){return this._dynamic}},destruct:function(){this._dynamic=null}})})();
(function(){qx.Class.define("qx.theme.manager.Color",{type:"singleton",extend:qx.util.ValueManager,properties:{theme:{check:"Theme",nullable:true,apply:"_applyTheme",event:"changeTheme"}},members:{_applyTheme:function(a){var b={};if(a){var a=a.colors,c=qx.util.ColorUtil,d,e;for(e in a){d=a[e];if(typeof d==="string"){if(!c.isCssString(d))throw Error("Could not parse color: "+d);}else if(d instanceof Array)d=c.rgbToRgbString(d);else throw Error("Could not parse color: "+d);b[e]=d}}this._setDynamic(b)},
resolve:function(a){var b=this._dynamic,c=b[a];if(c)return c;c=this.getTheme();return c!==null&&c.colors[a]?b[a]=c.colors[a]:a},isDynamic:function(a){var b=this._dynamic;if(a&&b[a]!==void 0)return true;var c=this.getTheme();return c!==null&&a&&c.colors[a]!==void 0?(b[a]=c.colors[a],true):false}}})})();
(function(){qx.Class.define("qx.util.ColorUtil",{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/,rgba:/^rgba\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},SYSTEM:{activeborder:true,
activecaption:true,appworkspace:true,background:true,buttonface:true,buttonhighlight:true,buttonshadow:true,buttontext:true,captiontext:true,graytext:true,highlight:true,highlighttext:true,inactiveborder:true,inactivecaption:true,inactivecaptiontext:true,infobackground:true,infotext:true,menu:true,menutext:true,scrollbar:true,threeddarkshadow:true,threedface:true,threedhighlight:true,threedlightshadow:true,threedshadow:true,window:true,windowframe:true,windowtext:true},NAMED:{black:[0,0,0],silver:[192,
192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:[-1,-1,-1],magenta:[255,0,255],orange:[255,165,0],brown:[165,42,42]},isNamedColor:function(a){return this.NAMED[a]!==void 0},isSystemColor:function(a){return this.SYSTEM[a]!==void 0},supportsThemes:function(){return qx.Class.isDefined("qx.theme.manager.Color")},
isThemedColor:function(a){return!this.supportsThemes()?false:qx.theme.manager.Color.getInstance().isDynamic(a)},stringToRgb:function(a){this.supportsThemes()&&this.isThemedColor(a)&&(a=qx.theme.manager.Color.getInstance().resolveDynamic(a));if(this.isNamedColor(a))return this.NAMED[a];else if(this.isSystemColor(a))throw Error("Could not convert system colors to RGB: "+a);else if(this.isRgbString(a))return this.__dc();else if(this.isHex3String(a))return this.__de();else if(this.isHex6String(a))return this.__df();
throw Error("Could not parse color: "+a);},cssStringToRgb:function(a){if(this.isNamedColor(a))return this.NAMED[a];else if(this.isSystemColor(a))throw Error("Could not convert system colors to RGB: "+a);else if(this.isRgbString(a))return this.__dc();else if(this.isRgbaString(a))return this.__dd();else if(this.isHex3String(a))return this.__de();else if(this.isHex6String(a))return this.__df();throw Error("Could not parse color: "+a);},stringToRgbString:function(a){return this.rgbToRgbString(this.stringToRgb(a))},
rgbToRgbString:function(a){return"rgb("+a[0]+","+a[1]+","+a[2]+")"},rgbToHexString:function(a){return qx.lang.String.pad(a[0].toString(16).toUpperCase(),2)+qx.lang.String.pad(a[1].toString(16).toUpperCase(),2)+qx.lang.String.pad(a[2].toString(16).toUpperCase(),2)},isValidPropertyValue:function(a){return this.isThemedColor(a)||this.isNamedColor(a)||this.isHex3String(a)||this.isHex6String(a)||this.isRgbString(a)||this.isRgbaString(a)},isCssString:function(a){return this.isSystemColor(a)||this.isNamedColor(a)||
this.isHex3String(a)||this.isHex6String(a)||this.isRgbString(a)||this.isRgbaString(a)},isHex3String:function(a){return this.REGEXP.hex3.test(a)},isHex6String:function(a){return this.REGEXP.hex6.test(a)},isRgbString:function(a){return this.REGEXP.rgb.test(a)},isRgbaString:function(a){return this.REGEXP.rgba.test(a)},__dc:function(){var a=parseInt(RegExp.$1,10),b=parseInt(RegExp.$2,10),c=parseInt(RegExp.$3,10);return[a,b,c]},__dd:function(){var a=parseInt(RegExp.$1,10),b=parseInt(RegExp.$2,10),c=parseInt(RegExp.$3,
10);return[a,b,c]},__de:function(){var a=parseInt(RegExp.$1,16)*17,b=parseInt(RegExp.$2,16)*17,c=parseInt(RegExp.$3,16)*17;return[a,b,c]},__df:function(){var a=parseInt(RegExp.$1,16)*16+parseInt(RegExp.$2,16),b=parseInt(RegExp.$3,16)*16+parseInt(RegExp.$4,16),c=parseInt(RegExp.$5,16)*16+parseInt(RegExp.$6,16);return[a,b,c]},hex3StringToRgb:function(a){if(this.isHex3String(a))return this.__de(a);throw Error("Invalid hex3 value: "+a);},hex6StringToRgb:function(a){if(this.isHex6String(a))return this.__df(a);
throw Error("Invalid hex6 value: "+a);},hexStringToRgb:function(a){if(this.isHex3String(a))return this.__de(a);if(this.isHex6String(a))return this.__df(a);throw Error("Invalid hex value: "+a);},rgbToHsb:function(a){var b,c;b=a[0];var d=a[1],e=a[2],f=b>d?b:d;e>f&&(f=e);var g=b<d?b:d;e<g&&(g=e);c=f/255;a=f!=0?(f-g)/f:0;if(a==0)b=0;else{var h=(f-b)/(f-g),i=(f-d)/(f-g),e=(f-e)/(f-g);b=b==f?e-i:d==f?2+h-e:4+i-h;b/=6;b<0&&(b+=1)}return[Math.round(b*360),Math.round(a*100),Math.round(c*100)]},hsbToRgb:function(a){var b,
c,d,e;c=a[0]/360;e=a[1]/100;a=a[2]/100;c>=1&&(c%=1);e>1&&(e=1);a>1&&(a=1);var f=Math.floor(255*a),g,h,i;if(e==0)g=h=i=f;else switch(c*=6,a=Math.floor(c),b=c-a,c=Math.floor(f*(1-e)),d=Math.floor(f*(1-e*b)),e=Math.floor(f*(1-e*(1-b))),a){case 0:g=f;h=e;i=c;break;case 1:g=d;h=f;i=c;break;case 2:g=c;h=f;i=e;break;case 3:g=c;h=d;i=f;break;case 4:g=e;h=c;i=f;break;case 5:g=f,h=c,i=d}return[g,h,i]},randomColor:function(){var a=Math.round(Math.random()*255),b=Math.round(Math.random()*255),c=Math.round(Math.random()*
255);return this.rgbToRgbString([a,b,c])}}})})();
(function(){qx.Class.define("qx.theme.manager.Decoration",{type:"singleton",extend:qx.core.Object,properties:{theme:{check:"Theme",nullable:true,apply:"_applyTheme",event:"changeTheme"}},members:{__dg:null,resolve:function(a){if(!a)return null;if(typeof a==="object")return a;var b=this.getTheme();if(!b)return null;var c=this.__dg;if(!c)c=this.__dg={};var d=c[a];if(d)return d;d=b.decorations[a];if(!d)return null;if(!d.style)d.style={};for(var e=d;e.include;){e=b.decorations[e.include];if(!d.decorator&&
e.decorator)d.decorator=e.decorator;if(e.style)for(var f in e.style)d.style[f]==void 0&&(d.style[f]=e.style[f])}b=d.decorator;if(b==null)throw Error("Missing definition of which decorator to use in entry: "+a+"!");if(b instanceof Array){f=b.concat([]);for(e=0;e<f.length;e++)f[e]=f[e].basename.replace(".","");f="qx.ui.decoration."+f.join("_");qx.Class.getByName(f)||qx.Class.define(f,{extend:qx.ui.decoration.DynamicDecorator,include:b});b=qx.Class.getByName(f)}return c[a]=(new b).set(d.style)},isValidPropertyValue:function(a){if(typeof a===
"string")return this.isDynamic(a);else if(typeof a==="object")return qx.Class.hasInterface(a.constructor,qx.ui.decoration.IDecorator);return false},isDynamic:function(a){if(!a)return false;var b=this.getTheme();return!b?false:!!b.decorations[a]},isCached:function(a){return!this.__dg?false:qx.lang.Object.contains(this.__dg,a)},_applyTheme:function(a,b){var c=qx.util.AliasManager.getInstance();if(b)for(var d in b.aliases)c.remove(d);if(a)for(d in a.aliases)c.add(d,a.aliases[d]);if(!a)this.__dg={}}},
destruct:function(){this._disposeMap("__dg")}})})();(function(){qx.Interface.define("qx.ui.decoration.IDecorator",{members:{getMarkup:function(){},resize:function(){},tint:function(){},getInsets:function(){}}})})();
(function(){qx.Class.define("qx.ui.decoration.Abstract",{extend:qx.core.Object,implement:[qx.ui.decoration.IDecorator],type:"abstract",properties:{insetLeft:{check:"Number",nullable:true,apply:"_applyInsets"},insetRight:{check:"Number",nullable:true,apply:"_applyInsets"},insetBottom:{check:"Number",nullable:true,apply:"_applyInsets"},insetTop:{check:"Number",nullable:true,apply:"_applyInsets"},insets:{group:["insetTop","insetRight","insetBottom","insetLeft"],mode:"shorthand"}},members:{__dh:null,
_getDefaultInsets:function(){throw Error("Abstract method called.");},_isInitialized:function(){throw Error("Abstract method called.");},_resetInsets:function(){this.__dh=null},getInsets:function(){if(this.__dh)return this.__dh;var a=this._getDefaultInsets();return this.__dh={left:this.getInsetLeft()==null?a.left:this.getInsetLeft(),right:this.getInsetRight()==null?a.right:this.getInsetRight(),bottom:this.getInsetBottom()==null?a.bottom:this.getInsetBottom(),top:this.getInsetTop()==null?a.top:this.getInsetTop()}},
_applyInsets:function(){if(qx.core.Environment.get("qx.debug")&&this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");this.__dh=null}},destruct:function(){this.__dh=null}})})();
(function(){qx.Class.define("qx.ui.decoration.DynamicDecorator",{extend:qx.ui.decoration.Abstract,type:"abstract",members:{getStyles:function(){var a={},b=this._getStyles(),c;for(c in b)a[qx.lang.String.camelCase(c)]=b[c];return a},_getStyles:function(){var a={},b;for(b in this)if(b.indexOf("_style")==0&&this[b]instanceof Function)this[b](a);return a},getMarkup:function(){if(this._markup)return this._markup;var a=this._getStyles();if(this._generateMarkup)b=this._generateMarkup(a);else{var b=['<div style="'];
b.push(qx.bom.element.Style.compile(a));b.push('"></div>');b=b.join("")}return this._markup=b},resize:function(a,b,c){var d,e,f,g,h,i;for(i in this)if(i.indexOf("_resize")==0&&this[i]instanceof Function){var j=this[i](a,b,c);if(d==void 0)d=j.left,e=j.top;if(f==void 0)f=j.width,g=j.height;if(j.elementToApplyDimensions)h=j.elementToApplyDimensions;d=j.left<d?j.left:d;e=j.top<e?j.top:e;f=j.width>f?j.width:f;g=j.height>g?j.height:g}if(d!=void 0)a.style.left=d+"px",a.style.top=e+"px";if(f!=void 0)f<0&&
(f=0),g<0&&(g=0),h&&(a=h),a.style.width=f+"px",a.style.height=g+"px"},tint:function(a,b){for(var c in this)if(c.indexOf("_tint")==0&&this[c]instanceof Function)this[c](a,b,a.style)},_isInitialized:function(){return!!this._markup},_getDefaultInsets:function(){var a=["top","right","bottom","left"],b={},c;for(c in this)if(c.indexOf("_getDefaultInsetsFor")==0&&this[c]instanceof Function)for(var d=this[c](),e=0;e<a.length;e++){var f=a[e];b[f]==void 0&&(b[f]=d[f]);d[f]<b[f]&&(b[f]=d[f])}return b.top!=void 0?
b:{top:0,right:0,bottom:0,left:0}}}})})();
(function(){qx.Bootstrap.define("qx.bom.Style",{statics:{VENDOR_PREFIXES:["Webkit","Moz","O","ms","Khtml"],getPropertyName:function(a){for(var b=document.documentElement.style,c=0,d=this.VENDOR_PREFIXES.length;c<d;c++){var e=this.VENDOR_PREFIXES[c]+qx.lang.String.firstUp(a);if(b[e]!==void 0)return e}return b[a]!==void 0?a:null},getAppliedStyle:function(a,b,c,d){for(var d=d!==false?[null].concat(this.VENDOR_PREFIXES):[null],e=0,f=d.length;e<f;e++){var g=d[e]?"-"+d[e].toLowerCase()+"-"+c:c;try{if(a.style[b]=
g,typeof a.style[b]=="string"&&a.style[b]!=="")return g}catch(h){}}return null}}})})();
(function(){qx.Class.define("qx.bom.element.Cursor",{statics:{__bd:qx.core.Environment.select("engine.name",{mshtml:{cursor:"hand","ew-resize":"e-resize","ns-resize":"n-resize","nesw-resize":"ne-resize","nwse-resize":"nw-resize"},opera:{"col-resize":"e-resize","row-resize":"n-resize","ew-resize":"e-resize","ns-resize":"n-resize","nesw-resize":"ne-resize","nwse-resize":"nw-resize"},"default":{}}),compile:function(a){return"cursor:"+(this.__bd[a]||a)+";"},get:function(a,b){return qx.bom.element.Style.get(a,
"cursor",b,false)},set:function(a,b){a.style.cursor=this.__bd[b]||b},reset:function(a){a.style.cursor=""}}})})();
(function(){qx.Class.define("qx.lang.Object",{statics:{empty:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'map'");for(var b in a)a.hasOwnProperty(b)&&delete a[b]},isEmpty:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'map'");for(var b in a)return false;return true},hasMinLength:function(a,b){qx.core.Environment.get("qx.debug")&&(qx.core.Assert&&qx.core.Assert.assertMap(a,
"Invalid argument 'map'"),qx.core.Assert&&qx.core.Assert.assertInteger(b,"Invalid argument 'minLength'"));if(b<=0)return true;var c=0,d;for(d in a)if(++c>=b)return true;return false},getLength:qx.Bootstrap.objectGetLength,getKeys:qx.Bootstrap.getKeys,getKeysAsString:qx.Bootstrap.getKeysAsString,getValues:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'map'");for(var b=[],c=this.getKeys(a),d=0,e=c.length;d<e;d++)b.push(a[c[d]]);return b},
mergeWith:qx.Bootstrap.objectMergeWith,carefullyMergeWith:function(a,b){qx.core.Environment.get("qx.debug")&&(qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'target'"),qx.core.Assert&&qx.core.Assert.assertMap(b,"Invalid argument 'source'"));return qx.lang.Object.mergeWith(a,b,false)},merge:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'target'");for(var c=arguments.length,d=1;d<c;d++)qx.lang.Object.mergeWith(a,arguments[d]);
return a},clone:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'source'");var b={},c;for(c in a)b[c]=a[c];return b},invert:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'map'");var b={},c;for(c in a)b[a[c].toString()]=c;return b},getKeyFromValue:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'map'");for(var c in a)if(a.hasOwnProperty(c)&&
a[c]===b)return c;return null},contains:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(a,"Invalid argument 'map'");return this.getKeyFromValue(a,b)!==null},select:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertMap(b,"Invalid argument 'map'");return b[a]},fromArray:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Assert&&qx.core.Assert.assertArray(a,"Invalid argument 'array'");for(var b={},c=0,d=a.length;c<
d;c++){if(qx.core.Environment.get("qx.debug"))switch(typeof a[c]){case "object":case "function":case "undefined":throw Error("Could not convert complex objects like "+a[c]+" at array index "+c+" to map syntax");}b[a[c].toString()]=true}return b},toUriParameter:function(a,b){var c,d=[];for(c in a)if(a.hasOwnProperty(c)){var e=a[c];if(e instanceof Array)for(var f=0;f<e.length;f++)this.__An(c,e[f],d,b);else this.__An(c,e,d,b)}return d.join("&")},__An:function(a,b,c,d){var e=window.encodeURIComponent;
d?c.push(e(a).replace(/%20/g,"+")+"="+e(b).replace(/%20/g,"+")):c.push(e(a)+"="+e(b))}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Css",{statics:{__di:null,getBoxModel:function(){return qx.bom.client.Engine.getName()!=="mshtml"||!qx.bom.client.Browser.getQuirksMode()?"content":"border"},getTextOverflow:function(){return qx.bom.Style.getPropertyName("textOverflow")},getPlaceholder:function(){return"placeholder"in document.createElement("input")},getAppearance:function(){return qx.bom.Style.getPropertyName("appearance")},getBorderRadius:function(){return qx.bom.Style.getPropertyName("borderRadius")},
getBoxShadow:function(){return qx.bom.Style.getPropertyName("boxShadow")},getBorderImage:function(){return qx.bom.Style.getPropertyName("borderImage")},getUserSelect:function(){return qx.bom.Style.getPropertyName("userSelect")},getUserSelectNone:function(){var a=qx.bom.client.Css.getUserSelect();if(a){var b=document.createElement("span");b.style[a]="-moz-none";return b.style[a]==="-moz-none"?"-moz-none":"none"}return null},getUserModify:function(){return qx.bom.Style.getPropertyName("userModify")},
getFloat:function(){var a=document.documentElement.style;return a.cssFloat!==void 0?"cssFloat":a.styleFloat!==void 0?"styleFloat":null},getTranslate3d:function(){return"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix},getGradients:function(){return!!qx.bom.client.Css.getLinearGradient()},getLinearGradient:function(){qx.bom.client.Css.__di=false;var a="linear-gradient(0deg, #fff, #000)",b=document.createElement("div"),a=qx.bom.Style.getAppliedStyle(b,"backgroundImage",a);if(!a&&(a=qx.bom.Style.getAppliedStyle(b,
"backgroundImage","-webkit-gradient(linear,0% 0%,100% 100%,from(white), to(red))",false)))qx.bom.client.Css.__di=true;return!a?null:(b=/(.*?)\(/.exec(a))?b[1]:null},getRadialGradient:function(){var a=document.createElement("div"),a=qx.bom.Style.getAppliedStyle(a,"backgroundImage","radial-gradient(0px 0px, cover, red 50%, blue 100%)");return!a?null:(a=/(.*?)\(/.exec(a))?a[1]:null},getLegacyWebkitGradient:function(){qx.bom.client.Css.__di===null&&qx.bom.client.Css.getLinearGradient();return qx.bom.client.Css.__di},
getRgba:function(){var a;try{a=document.createElement("div")}catch(b){a=document.createElement()}try{if(a.style.color="rgba(1, 2, 3, 0.5)",a.style.color.indexOf("rgba")!=-1)return true}catch(c){}return false},getBoxSizing:function(){return qx.bom.Style.getPropertyName("boxSizing")},getInlineBlock:function(){var a=document.createElement("span");a.style.display="inline-block";if(a.style.display=="inline-block")return"inline-block";a.style.display="-moz-inline-box";return a.style.display!=="-moz-inline-box"?
"-moz-inline-box":null},getOpacity:function(){return typeof document.documentElement.style.opacity=="string"},getOverflowXY:function(){return typeof document.documentElement.style.overflowX=="string"&&typeof document.documentElement.style.overflowY=="string"}},defer:function(a){qx.core.Environment.add("css.textoverflow",a.getTextOverflow);qx.core.Environment.add("css.placeholder",a.getPlaceholder);qx.core.Environment.add("css.borderradius",a.getBorderRadius);qx.core.Environment.add("css.boxshadow",
a.getBoxShadow);qx.core.Environment.add("css.gradients",a.getGradients);qx.core.Environment.add("css.gradient.linear",a.getLinearGradient);qx.core.Environment.add("css.gradient.radial",a.getRadialGradient);qx.core.Environment.add("css.gradient.legacywebkit",a.getLegacyWebkitGradient);qx.core.Environment.add("css.boxmodel",a.getBoxModel);qx.core.Environment.add("css.rgba",a.getRgba);qx.core.Environment.add("css.borderimage",a.getBorderImage);qx.core.Environment.add("css.usermodify",a.getUserModify);
qx.core.Environment.add("css.userselect",a.getUserSelect);qx.core.Environment.add("css.userselect.none",a.getUserSelectNone);qx.core.Environment.add("css.appearance",a.getAppearance);qx.core.Environment.add("css.float",a.getFloat);qx.core.Environment.add("css.boxsizing",a.getBoxSizing);qx.core.Environment.add("css.inlineblock",a.getInlineBlock);qx.core.Environment.add("css.opacity",a.getOpacity);qx.core.Environment.add("css.overflowxy",a.getOverflowXY)}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Browser",{statics:{getName:function(){var a=navigator.userAgent,b=a.match(RegExp("("+qx.bom.client.Browser.__dj+")(/| )([0-9]+.[0-9])"));if(!b)return"";var b=b[1].toLowerCase(),c=qx.bom.client.Engine.getName();if(c==="webkit")if(b==="android")b="mobile chrome";else{if(a.indexOf("Mobile Safari")!==-1||a.indexOf("Mobile/")!==-1)b="mobile safari"}else c==="mshtml"?b==="msie"&&(b="ie",qx.bom.client.OperatingSystem.getVersion()==="ce"&&(b="iemobile")):c===
"opera"?b==="opera mobi"?b="operamobile":b==="opera mini"&&(b="operamini"):c==="gecko"&&a.indexOf("Maple")!==-1&&(b="maple");return b},getVersion:function(){var a=navigator.userAgent,b=RegExp("("+qx.bom.client.Browser.__dj+")(/| )([0-9]+.[0-9])"),c=a.match(b);if(!c)return"";b=c[1].toLowerCase();c=c[3];if(a.match(/Version(\/| )([0-9]+\.[0-9])/))c=RegExp.$2;qx.bom.client.Engine.getName()=="mshtml"&&(c=qx.bom.client.Engine.getVersion(),b==="msie"&&qx.bom.client.OperatingSystem.getVersion()=="ce"&&(c=
"5.0"));if(qx.bom.client.Browser.getName()=="maple"){b=/(Maple )([0-9]+.[0-9]+.[0-9]*)/;c=a.match(b);if(!c)return"";c=c[2]}return c},getDocumentMode:function(){return document.documentMode?document.documentMode:0},getQuirksMode:function(){return qx.bom.client.Engine.getName()=="mshtml"&&parseFloat(qx.bom.client.Engine.getVersion())>=8?qx.bom.client.Engine.DOCUMENT_MODE===5:document.compatMode!=="CSS1Compat"},__dj:{webkit:"AdobeAIR|Titanium|Fluid|Chrome|Android|Epiphany|Konqueror|iCab|OmniWeb|Maxthon|Pre|Mobile Safari|Safari",
gecko:"prism|Fennec|Camino|Kmeleon|Galeon|Netscape|SeaMonkey|Namoroka|Firefox",mshtml:"IEMobile|Maxthon|MSIE",opera:"Opera Mini|Opera Mobi|Opera"}[qx.bom.client.Engine.getName()]},defer:function(a){qx.core.Environment.add("browser.name",a.getName);qx.core.Environment.add("browser.version",a.getVersion);qx.core.Environment.add("browser.documentmode",a.getDocumentMode);qx.core.Environment.add("browser.quirksmode",a.getQuirksMode)}})})();
(function(){qx.Class.define("qx.bom.element.Opacity",{statics:{SUPPORT_CSS3_OPACITY:false,compile:qx.core.Environment.select("engine.name",{mshtml:function(a){a>=1&&(a=1);a<1.0E-5&&(a=0);return qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY?"opacity:"+a+";":"zoom:1;filter:alpha(opacity="+a*100+");"},gecko:function(a){a>=1&&(a=0.999999);return"opacity:"+a+";"},"default":function(a){return a>=1?"":"opacity:"+a+";"}}),set:qx.core.Environment.select("engine.name",{mshtml:function(a,b){if(qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY)b>=
1&&(b=""),a.style.opacity=b;else{var c=qx.bom.element.Style.get(a,"filter",qx.bom.element.Style.COMPUTED_MODE,false);b>=1&&(b=1);b<1.0E-5&&(b=0);if(!a.currentStyle||!a.currentStyle.hasLayout)a.style.zoom=1;a.style.filter=c.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+b*100+")"}},gecko:function(a,b){b>=1&&(b=0.999999);qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY?a.style.opacity=b:a.style.MozOpacity=b},"default":function(a,b){b>=1&&(b="");a.style.opacity=b}}),reset:qx.core.Environment.select("engine.name",
{mshtml:function(a){if(qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY)a.style.opacity="";else{var b=qx.bom.element.Style.get(a,"filter",qx.bom.element.Style.COMPUTED_MODE,false);a.style.filter=b.replace(/alpha\([^\)]*\)/gi,"")}},gecko:function(a){qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY?a.style.opacity="":a.style.MozOpacity=""},"default":function(a){a.style.opacity=""}}),get:qx.core.Environment.select("engine.name",{mshtml:function(a,b){if(qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY){var c=qx.bom.element.Style.get(a,
"opacity",b,false);return c!=null?parseFloat(c):1}else{if(c=qx.bom.element.Style.get(a,"filter",b,false))if((c=c.match(/alpha\(opacity=(.*)\)/))&&c[1])return parseFloat(c[1])/100;return 1}},gecko:function(a,b){var c=qx.bom.element.Style.get(a,!qx.bom.element.Opacity.SUPPORT_CSS3_OPACITY?"MozOpacity":"opacity",b,false);c==0.999999&&(c=1);return c!=null?parseFloat(c):1},"default":function(a,b){var c=qx.bom.element.Style.get(a,"opacity",b,false);return c!=null?parseFloat(c):1}})},defer:function(a){a.SUPPORT_CSS3_OPACITY=
qx.core.Environment.get("css.opacity")}})})();
(function(){qx.Class.define("qx.bom.element.Overflow",{statics:{DEFAULT_SCROLLBAR_WIDTH:14,__dk:null,getScrollbarWidth:function(){if(this.__dk!==null)return this.__dk;var a=qx.bom.element.Style,b=function(b){return a.get(b,"borderRightStyle")=="none"?0:parseInt(a.get(b,"borderRightWidth"),10)||0},c=qx.core.Environment.select("engine.name",{mshtml:function(c){return a.get(c,"overflowY")=="hidden"||c.clientWidth==0?b(c):Math.max(0,c.offsetWidth-c.clientLeft-c.clientWidth)},"default":function(c){if(c.clientWidth==
0){var d=a.get(c,"overflow");return Math.max(0,b(c)+(d=="scroll"||d=="-moz-scrollbars-vertical"?16:0))}return Math.max(0,c.offsetWidth-c.clientWidth-(a.get(c,"borderLeftStyle")=="none"?0:parseInt(a.get(c,"borderLeftWidth"),10)||0))}}),d=document.createElement("div"),e=d.style;e.height=e.width="100px";e.overflow="scroll";document.body.appendChild(d);this.__dk=c(d)-b(d);document.body.removeChild(d);return this.__dk},_compile:function(a,b){qx.core.Environment.get("css.overflowxy")||(a="overflow:",qx.core.Environment.get("engine.name")===
"gecko"&&b=="hidden"&&(b="-moz-scrollbars-none"));return a+":"+b+";"},compileX:function(a){return this._compile("overflow-x",a)},compileY:function(a){return this._compile("overflow-y",a)},getX:function(a,b){if(qx.core.Environment.get("css.overflowxy"))return qx.bom.element.Style.get(a,"overflowX",b,false);var c=qx.bom.element.Style.get(a,"overflow",b,false);c==="-moz-scrollbars-none"&&(c="hidden");return c},setX:function(a,b){qx.core.Environment.get("css.overflowxy")?a.style.overflowX=b:(b==="hidden"&&
qx.core.Environment.get("engine.name")==="gecko"&&parseFloat(qx.core.Environment.get("engine.version"))<1.8&&(b="-moz-scrollbars-none"),a.style.overflow=b)},resetX:function(a){qx.core.Environment.get("css.overflowxy")?a.style.overflowX="":a.style.overflow=""},getY:function(a,b){if(qx.core.Environment.get("css.overflowxy"))return qx.bom.element.Style.get(a,"overflowY",b,false);var c=qx.bom.element.Style.get(a,"overflow",b,false);c==="-moz-scrollbars-none"&&(c="hidden");return c},setY:function(a,b){qx.core.Environment.get("css.overflowxy")?
a.style.overflowY=b:(b==="hidden"&&qx.core.Environment.get("engine.name")==="gecko"&&parseFloat(qx.core.Environment.get("engine.version"))<1.8&&(b="-moz-scrollbars-none"),a.style.overflow=b)},resetY:function(a){qx.core.Environment.get("css.overflowxy")?a.style.overflowY="":a.style.overflow=""}}})})();
(function(){qx.Class.define("qx.bom.element.Clip",{statics:{compile:function(a){if(!a)return"clip:auto;";var b=a.left,c=a.top,d=a.width,a=a.height;b==null?(d=d==null?"auto":d+"px",b="auto"):(d=d==null?"auto":b+d+"px",b+="px");c==null?(a=a==null?"auto":a+"px",c="auto"):(a=a==null?"auto":c+a+"px",c+="px");return"clip:rect("+c+","+d+","+a+","+b+");"},get:function(a,b){var c=qx.bom.element.Style.get(a,"clip",b,false),d,e,f,g,h;if(typeof c==="string"&&c!=="auto"&&c!=="")if(c=qx.lang.String.trim(c),/\((.*)\)/.test(c))e=
RegExp.$1,d=/,/.test(e)?e.split(","):e.split(" "),e=qx.lang.String.trim(d[0]),c=qx.lang.String.trim(d[1]),h=qx.lang.String.trim(d[2]),d=qx.lang.String.trim(d[3]),d==="auto"&&(d=null),e==="auto"&&(e=null),c==="auto"&&(c=null),h==="auto"&&(h=null),e!=null&&(e=parseInt(e,10)),c!=null&&(c=parseInt(c,10)),h!=null&&(h=parseInt(h,10)),d!=null&&(d=parseInt(d,10)),c!=null&&d!=null?f=c-d:c!=null&&(f=c),h!=null&&e!=null?g=h-e:h!=null&&(g=h);else throw Error("Could not parse clip string: "+c);return{left:d||
null,top:e||null,width:f||null,height:g||null}},set:function(a,b){if(b){var c=b.left,d=b.top,e=b.width,f=b.height;c==null?(e=e==null?"auto":e+"px",c="auto"):(e=e==null?"auto":c+e+"px",c+="px");d==null?(f=f==null?"auto":f+"px",d="auto"):(f=f==null?"auto":d+f+"px",d+="px");a.style.clip="rect("+d+","+e+","+f+","+c+")"}else a.style.clip="rect(auto,auto,auto,auto)"},reset:function(a){a.style.clip="rect(auto, auto, auto, auto)"}}})})();
(function(){qx.Class.define("qx.bom.element.BoxSizing",{statics:{__dl:{tags:{button:true,select:true},types:{search:true,button:true,submit:true,reset:true,checkbox:true,radio:true}},__dm:function(a){var b=this.__dl;return b.tags[a.tagName.toLowerCase()]||b.types[a.type]},compile:function(a){if(qx.core.Environment.get("css.boxsizing"))return qx.lang.String.hyphenate(qx.core.Environment.get("css.boxsizing"))+":"+a+";";else qx.log.Logger.warn(this,"This client does not support dynamic modification of the boxSizing property."),
qx.log.Logger.trace()},get:function(a){return qx.core.Environment.get("css.boxsizing")?qx.bom.element.Style.get(a,"boxSizing",null,false)||"":qx.bom.Document.isStandardMode(qx.dom.Node.getWindow(a))&&!this.__dm(a)?"content-box":"border-box"},set:function(a,b){if(qx.core.Environment.get("css.boxsizing"))try{a.style[qx.core.Environment.get("css.boxsizing")]=b}catch(c){qx.log.Logger.warn(this,"This client does not support the boxSizing value",b)}else qx.log.Logger.warn(this,"This client does not support dynamic modification of the boxSizing property.")},
reset:function(a){this.set(a,"")}}})})();
(function(){qx.Class.define("qx.bom.element.Style",{statics:{__dn:function(){var a={appearance:qx.core.Environment.get("css.appearance"),userSelect:qx.core.Environment.get("css.userselect"),textOverflow:qx.core.Environment.get("css.textoverflow"),borderImage:qx.core.Environment.get("css.borderimage"),"float":qx.core.Environment.get("css.float"),userModify:qx.core.Environment.get("css.usermodify"),boxSizing:qx.core.Environment.get("css.boxsizing")};this.__do={};for(var b in qx.lang.Object.clone(a))a[b]?
this.__do[b]=b=="float"?"float":qx.lang.String.hyphenate(a[b]):delete a[b];this.__dp=a},__dq:{width:"pixelWidth",height:"pixelHeight",left:"pixelLeft",right:"pixelRight",top:"pixelTop",bottom:"pixelBottom"},__dr:{clip:qx.bom.element.Clip,cursor:qx.bom.element.Cursor,opacity:qx.bom.element.Opacity,boxSizing:qx.bom.element.BoxSizing,overflowX:{set:qx.lang.Function.bind(qx.bom.element.Overflow.setX,qx.bom.element.Overflow),get:qx.lang.Function.bind(qx.bom.element.Overflow.getX,qx.bom.element.Overflow),
reset:qx.lang.Function.bind(qx.bom.element.Overflow.resetX,qx.bom.element.Overflow),compile:qx.lang.Function.bind(qx.bom.element.Overflow.compileX,qx.bom.element.Overflow)},overflowY:{set:qx.lang.Function.bind(qx.bom.element.Overflow.setY,qx.bom.element.Overflow),get:qx.lang.Function.bind(qx.bom.element.Overflow.getY,qx.bom.element.Overflow),reset:qx.lang.Function.bind(qx.bom.element.Overflow.resetY,qx.bom.element.Overflow),compile:qx.lang.Function.bind(qx.bom.element.Overflow.compileY,qx.bom.element.Overflow)}},
compile:function(a){var b=[],c=this.__dr,d=this.__do,e,f;for(e in a)f=a[e],f!=null&&(e=d[e]||e,c[e]?b.push(c[e].compile(f)):b.push(qx.lang.String.hyphenate(e),":",f,";"));return b.join("")},setCss:function(a,b){qx.core.Environment.get("engine.name")==="mshtml"&&parseInt(qx.core.Environment.get("browser.documentmode"),10)<8?a.style.cssText=b:a.setAttribute("style",b)},getCss:function(a){return qx.core.Environment.get("engine.name")==="mshtml"&&parseInt(qx.core.Environment.get("browser.documentmode"),
10)<8?a.style.cssText.toLowerCase():a.getAttribute("style")},isPropertySupported:function(a){return this.__dr[a]||this.__dp[a]||a in document.documentElement.style},COMPUTED_MODE:1,CASCADED_MODE:2,LOCAL_MODE:3,set:function(a,b,c,d){qx.core.Environment.get("qx.debug")&&(qx.core.Assert.assertElement(a,"Invalid argument 'element'"),qx.core.Assert.assertString(b,"Invalid argument 'name'"),d!==void 0&&qx.core.Assert.assertBoolean(d,"Invalid argument 'smart'"));b=this.__dp[b]||b;if(d!==false&&this.__dr[b])return this.__dr[b].set(a,
c);else a.style[b]=c!==null?c:""},setStyles:function(a,b,c){qx.core.Environment.get("qx.debug")&&(qx.core.Assert.assertElement(a,"Invalid argument 'element'"),qx.core.Assert.assertMap(b,"Invalid argument 'styles'"),c!==void 0&&qx.core.Assert.assertBoolean(c,"Invalid argument 'smart'"));var d=this.__dp,e=this.__dr,f=a.style,g;for(g in b){var h=b[g],i=d[g]||g;h===void 0?c!==false&&e[i]?e[i].reset(a):f[i]="":c!==false&&e[i]?e[i].set(a,h):f[i]=h!==null?h:""}},reset:function(a,b,c){b=this.__dp[b]||b;if(c!==
false&&this.__dr[b])return this.__dr[b].reset(a);else a.style[b]=""},get:qx.core.Environment.select("engine.name",{mshtml:function(a,b,c,d){b=this.__dp[b]||b;if(d!==false&&this.__dr[b])return this.__dr[b].get(a,c);if(!a.currentStyle)return a.style[b]||"";switch(c){case this.LOCAL_MODE:return a.style[b]||"";case this.CASCADED_MODE:return a.currentStyle[b]||"";default:d=a.currentStyle[b]||"";if(/^-?[\.\d]+(px)?$/i.test(d))return d;var e=this.__dq[b];if(e)return c=a.style[b],a.style[b]=d||0,d=a.style[e]+
"px",a.style[b]=c,d;if(/^-?[\.\d]+(em|pt|%)?$/i.test(d))throw Error("Untranslated computed property value: "+b+". Only pixel values work well across different clients.");return d}},"default":function(a,b,c,d){b=this.__dp[b]||b;if(d!==false&&this.__dr[b])return this.__dr[b].get(a,c);switch(c){case this.LOCAL_MODE:return a.style[b]||"";case this.CASCADED_MODE:if(a.currentStyle)return a.currentStyle[b]||"";throw Error("Cascaded styles are not supported in this browser!");default:return(a=qx.dom.Node.getDocument(a).defaultView.getComputedStyle(a,
null))?a[b]:""}}})},defer:function(a){a.__dn()}})})();
(function(){qx.Class.define("qx.bom.Document",{statics:{isQuirksMode:qx.core.Environment.select("engine.name",{mshtml:function(a){return qx.core.Environment.get("engine.version")>=8?(a||window).document.documentMode===5:(a||window).document.compatMode!=="CSS1Compat"},webkit:function(a){return document.compatMode===void 0?(a=(a||window).document.createElement("div"),a.style.cssText="position:absolute;width:0;height:0;width:1",a.style.width==="1px"?true:false):(a||window).document.compatMode!=="CSS1Compat"},
"default":function(a){return(a||window).document.compatMode!=="CSS1Compat"}}),isStandardMode:function(a){return!this.isQuirksMode(a)},getWidth:function(a){var b=(a||window).document,c=qx.bom.Viewport.getWidth(a),a=this.isStandardMode(a)?b.documentElement.scrollWidth:b.body.scrollWidth;return Math.max(a,c)},getHeight:function(a){var b=(a||window).document,c=qx.bom.Viewport.getHeight(a),a=this.isStandardMode(a)?b.documentElement.scrollHeight:b.body.scrollHeight;return Math.max(a,c)}}})})();
(function(){qx.Class.define("qx.bom.Viewport",{statics:{getWidth:qx.core.Environment.select("engine.name",{opera:function(a){if(parseFloat(qx.core.Environment.get("engine.version"))<9.5)return(a||window).document.body.clientWidth;else{var b=(a||window).document;return qx.bom.Document.isStandardMode(a)?b.documentElement.clientWidth:b.body.clientWidth}},webkit:function(a){if(parseFloat(qx.core.Environment.get("engine.version"))<523.15)return(a||window).innerWidth;else{var b=(a||window).document;return qx.bom.Document.isStandardMode(a)?
b.documentElement.clientWidth:b.body.clientWidth}},"default":function(a){var b=(a||window).document;return qx.bom.Document.isStandardMode(a)?b.documentElement.clientWidth:b.body.clientWidth}}),getHeight:qx.core.Environment.select("engine.name",{opera:function(a){if(parseFloat(qx.core.Environment.get("engine.version"))<9.5)return(a||window).document.body.clientHeight;else{var b=(a||window).document;return qx.bom.Document.isStandardMode(a)?b.documentElement.clientHeight:b.body.clientHeight}},webkit:function(a){if(parseFloat(qx.core.Environment.get("engine.version"))<
523.15)return(a||window).innerHeight;else{var b=(a||window).document;return qx.bom.Document.isStandardMode(a)?b.documentElement.clientHeight:b.body.clientHeight}},"default":function(a){var b=(a||window).document;return qx.bom.Document.isStandardMode(a)?b.documentElement.clientHeight:b.body.clientHeight}}),getScrollLeft:function(a){var b=(a||window).document;return(a||window).pageXOffset||b.documentElement.scrollLeft||b.body.scrollLeft},getScrollTop:function(a){var b=(a||window).document;return(a||
window).pageYOffset||b.documentElement.scrollTop||b.body.scrollTop},__ds:function(){var a=this.getWidth()>this.getHeight()?90:0,b=window.orientation;return b==null||Math.abs(b%180)==a?{"-270":90,"-180":180,"-90":-90,0:0,90:90,180:180,270:-90}:{"-270":180,"-180":-90,"-90":0,0:90,90:180,180:-90,270:0}},__dt:null,getOrientation:function(a){var b=(a||window).orientation;return b=b==null?this.getWidth(a)>this.getHeight(a)?90:0:this.__dt[b]},isLandscape:function(a){return Math.abs(this.getOrientation(a))==
90},isPortrait:function(a){return Math.abs(this.getOrientation(a))!==90}},defer:function(a){a.__dt=a.__ds()}})})();
(function(){qx.Class.define("qx.util.AliasManager",{type:"singleton",extend:qx.util.ValueManager,construct:function(){qx.util.ValueManager.call(this);this.__du={};this.add("static","qx/static")},members:{__du:null,_preprocess:function(a){var b=this._getDynamic();if(b[a]!==false&&b[a]===void 0){if(a.charAt(0)==="/"||a.charAt(0)==="."||a.indexOf("http://")===0||a.indexOf("https://")==="0"||a.indexOf("file://")===0)return b[a]=false,a;if(this.__du[a])return this.__du[a];var c=a.substring(0,a.indexOf("/")),
d=this.__du[c];d!==void 0&&(b[a]=d+a.substring(c.length))}return a},add:function(a,b){this.__du[a]=b;var c=this._getDynamic(),d;for(d in c)d.substring(0,d.indexOf("/"))===a&&(c[d]=b+d.substring(a.length))},remove:function(a){delete this.__du[a]},resolve:function(a){var b=this._getDynamic();a!=null&&(a=this._preprocess(a));return b[a]||a},getAliases:function(){var a={},b;for(b in this.__du)a[b]=this.__du[b];return a}},destruct:function(){this.__du=null}})})();
(function(){qx.Class.define("qx.theme.manager.Font",{type:"singleton",extend:qx.util.ValueManager,properties:{theme:{check:"Theme",nullable:true,apply:"_applyTheme",event:"changeTheme"}},members:{resolveDynamic:function(a){var b=this._dynamic;return a instanceof qx.bom.Font?a:b[a]},resolve:function(a){var b=this._dynamic,c=b[a];if(c)return c;c=this.getTheme();if(c!==null&&c.fonts[a]){var d=this.__dw(c.fonts[a]);return b[a]=(new d).set(c.fonts[a])}return a},isDynamic:function(a){var b=this._dynamic;
if(a&&(a instanceof qx.bom.Font||b[a]!==void 0))return true;var c=this.getTheme();if(c!==null&&a&&c.fonts[a]){var d=this.__dw(c.fonts[a]);b[a]=(new d).set(c.fonts[a]);return true}return false},__dv:function(a,b){if(a[b].include){var c=a[a[b].include];a[b].include=null;delete a[b].include;a[b]=qx.lang.Object.mergeWith(a[b],c,false);this.__dv(a,b)}},_applyTheme:function(a){var b=this._getDynamic(),c;for(c in b)b[c].themed&&(b[c].dispose(),delete b[c]);if(a)for(c in a=a.fonts,a){a[c].include&&a[a[c].include]&&
this.__dv(a,c);var d=this.__dw(a[c]);b[c]=(new d).set(a[c]);b[c].themed=true}this._setDynamic(b)},__dw:function(a){return a.sources?qx.bom.webfonts.WebFont:qx.bom.Font}},destruct:function(){this._disposeMap("_dynamic")}})})();
(function(){qx.Class.define("qx.bom.Font",{extend:qx.core.Object,construct:function(a,b){qx.core.Object.call(this);this.__dx={fontFamily:"",fontSize:null,fontWeight:null,fontStyle:null,textDecoration:null,lineHeight:null,color:null};a!==void 0&&this.setSize(a);b!==void 0&&this.setFamily(b)},statics:{fromString:function(a){for(var b=new qx.bom.Font,a=a.split(/\s+/),c=[],d,e=0;e<a.length;e++)switch(d=a[e]){case "bold":b.setBold(true);break;case "italic":b.setItalic(true);break;case "underline":b.setDecoration("underline");
break;default:var f=parseInt(d,10);f==d||qx.lang.String.contains(d,"px")?b.setSize(f):c.push(d)}c.length>0&&b.setFamily(c);return b},fromConfig:function(a){var b=new qx.bom.Font;b.set(a);return b},__dy:{fontFamily:"",fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",lineHeight:1.2,color:""},getDefaultStyles:function(){return this.__dy}},properties:{size:{check:"Integer",nullable:true,apply:"_applySize"},lineHeight:{check:"Number",nullable:true,apply:"_applyLineHeight"},family:{check:"Array",
nullable:true,apply:"_applyFamily"},bold:{check:"Boolean",nullable:true,apply:"_applyBold"},italic:{check:"Boolean",nullable:true,apply:"_applyItalic"},decoration:{check:["underline","line-through","overline"],nullable:true,apply:"_applyDecoration"},color:{check:"Color",nullable:true,apply:"_applyColor"}},members:{__dx:null,_applySize:function(a){this.__dx.fontSize=a===null?null:a+"px"},_applyLineHeight:function(a){this.__dx.lineHeight=a===null?null:a},_applyFamily:function(a){for(var b="",c=0,d=
a.length;c<d;c++)b+=a[c].indexOf(" ")>0?'"'+a[c]+'"':a[c],c!==d-1&&(b+=",");this.__dx.fontFamily=b},_applyBold:function(a){this.__dx.fontWeight=a===null?null:a?"bold":"normal"},_applyItalic:function(a){this.__dx.fontStyle=a===null?null:a?"italic":"normal"},_applyDecoration:function(a){this.__dx.textDecoration=a===null?null:a},_applyColor:function(a){this.__dx.color=a===null?null:a},getStyles:function(){return this.__dx}}})})();
(function(){qx.Class.define("qx.bom.webfonts.WebFont",{extend:qx.bom.Font,events:{changeStatus:"qx.event.type.Data"},properties:{sources:{nullable:true,apply:"_applySources"}},members:{__dz:null,_applySources:function(a){for(var b=[],c=0,d=a.length;c<d;c++){var e=this._quoteFontFamily(a[c].family);b.push(e);var f=a[c].source;qx.bom.webfonts.Manager.getInstance().require(e,f,this._onWebFontChangeStatus,this)}this.setFamily(b.concat(this.getFamily()))},_onWebFontChangeStatus:function(a){a=a.getData();
this.fireDataEvent("changeStatus",a);qx.core.Environment.get("qx.debug")&&a.valid===false&&this.warn("WebFont "+a.family+" was not applied, perhaps the source file could not be loaded.")},_quoteFontFamily:function(a){a=a.replace(/["']/g,"");a.indexOf(" ")>0&&(a="'"+a+"'");return a}}})})();
(function(){qx.Class.define("qx.bom.webfonts.Manager",{extend:qx.core.Object,type:"singleton",construct:function(){qx.core.Object.call(this);this.__dA=[];this.__dB={};this.__dC=[];this.__dD=this.getPreferredFormats()},statics:{FONT_FORMATS:["eot","woff","ttf","svg"],VALIDATION_TIMEOUT:5E3},members:{__dA:null,__dE:null,__dB:null,__dD:null,__dC:null,__dF:null,require:function(a,b,c,d){for(var e=[],f=0,g=b.length;f<g;f++){var h=b[f].split("#"),i=qx.util.ResourceManager.getInstance().toUri(h[0]);h.length>
1&&(i=i+"#"+h[1]);e.push(i)}if(qx.core.Environment.get("browser.name")=="ie"&&qx.bom.client.Browser.getVersion()<9){if(!this.__dF)this.__dF=new qx.event.Timer(100),this.__dF.addListener("interval",this.__dH,this);this.__dF.isEnabled()||this.__dF.start();this.__dC.push([a,e,c,d])}else this.__dG(a,e,c,d)},remove:function(a){for(var b=null,c=0,d=this.__dA.length;c<d;c++)if(this.__dA[c]==a){b=c;this.__dN(a);break}b&&qx.lang.Array.removeAt(this.__dA,b);a in this.__dB&&(this.__dB[a].dispose(),delete this.__dB[a])},
getPreferredFormats:function(){var a=[],b=qx.core.Environment.get("browser.name"),c=qx.core.Environment.get("browser.version"),d=qx.core.Environment.get("os.name"),e=qx.core.Environment.get("os.version");(b=="ie"&&c>=9||b=="firefox"&&c>=3.6||b=="chrome"&&c>=6)&&a.push("woff");(b=="opera"&&c>=10||b=="safari"&&c>=3.1||b=="firefox"&&c>=3.5||b=="chrome"&&c>=4||b=="mobile safari"&&d=="ios"&&e>=4.2)&&a.push("ttf");b=="ie"&&c>=4&&a.push("eot");b=="mobileSafari"&&d=="ios"&&e>=4.1&&a.push("svg");return a},
removeStyleSheet:function(){this.__dA=[];if(this.__dE){var a=this.__dE.ownerNode?this.__dE.ownerNode:this.__dE.owningElement;qx.dom.Element.removeChild(a,a.parentNode)}this.__dE=null},__dG:function(a,b,c,d){if(!qx.lang.Array.contains(this.__dA,a)){b=this.__dJ(b);b=this.__dK(a,b);if(!b)throw Error("Couldn't create @font-face rule for WebFont "+a+"!");if(!this.__dE)this.__dE=qx.bom.Stylesheet.createElement();try{this.__dM(b)}catch(e){if(qx.core.Environment.get("qx.debug")){this.warn("Error while adding @font-face rule:",
e.message);return}}this.__dA.push(a)}this.__dB[a]||(this.__dB[a]=new qx.bom.webfonts.Validator(a),this.__dB[a].setTimeout(qx.bom.webfonts.Manager.VALIDATION_TIMEOUT),this.__dB[a].addListenerOnce("changeStatus",this.__dI,this));c&&this.__dB[a].addListenerOnce("changeStatus",c,d||window);this.__dB[a].validate()},__dH:function(){this.__dC.length==0?this.__dF.stop():this.__dG.apply(this,this.__dC.shift())},__dI:function(a){var b=a.getData();if(b.valid===false)qx.event.Timer.once(function(){this.remove(b.family)},
this,250)},__dJ:function(a){for(var b=qx.bom.webfonts.Manager.FONT_FORMATS,c={},d=0,e=a.length;d<e;d++){for(var f=null,g=0;g<b.length;g++){var h=RegExp(".("+b[g]+")").exec(a[d]);h&&(f=h[1])}f&&(c[f]=a[d])}return c},__dK:function(a,b){for(var c=[],d=this.__dD.length>0?this.__dD:qx.bom.webfonts.Manager.FONT_FORMATS,e=0,f=d.length;e<f;e++){var g=d[e];b[g]&&c.push(this.__dL(g,b[g]))}c="src: "+c.join(",\n")+";";c="font-family: "+a+";\n"+c;c+="\nfont-style: normal;\nfont-weight: normal;";return c},__dL:function(a,
b){switch(a){case "eot":return"url('"+b+"?#iefix') format('eot')";case "woff":return"url('"+b+"') format('woff')";case "ttf":return"url('"+b+"') format('truetype')";case "svg":return"url('"+b+"') format('svg')";default:return null}},__dM:function(a){a="@font-face {"+a+"}\n";if(qx.core.Environment.get("browser.name")=="ie"&&qx.core.Environment.get("browser.version")<9){var b=this.__dO(this.__dE.cssText);b+=a;this.__dE.cssText=b}else this.__dE.insertRule(a,this.__dE.cssRules.length)},__dN:function(a){for(var a=
RegExp("@font-face.*?"+a,"m"),b=0,c=document.styleSheets.length;b<c;b++){var d=document.styleSheets[b];if(d.cssText){var e=d.cssText.replace(/\n/g,"").replace(/\r/g,""),e=this.__dO(e);a.exec(e)&&(e=e.replace(a,""));d.cssText=e}else if(d.cssRules)for(var f=0,g=d.cssRules.length;f<g;f++)if(e=d.cssRules[f].cssText.replace(/\n/g,"").replace(/\r/g,""),a.exec(e)){this.__dE.deleteRule(f);return}}},__dO:function(a){return a.replace("'eot)","'eot')")}},destruct:function(){delete this.__dA;this.removeStyleSheet();
for(var a in this.__dB)this.__dB[a].dispose();qx.bom.webfonts.Validator.removeDefaultHelperElements()}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Transport",{statics:{getMaxConcurrentRequestCount:function(){var a=qx.bom.client.Engine.getVersion().split("."),b=0,c=0,d=0;a[0]&&(b=a[0]);a[1]&&(c=a[1]);a[2]&&(d=a[2]);return window.maxConnectionsPerServer?window.maxConnectionsPerServer:qx.bom.client.Engine.getName()=="opera"?8:qx.bom.client.Engine.getName()=="webkit"?4:qx.bom.client.Engine.getName()=="gecko"&&(b>1||b==1&&c>9||b==1&&c==9&&d>=1)?6:2},getSsl:function(){return window.location.protocol===
"https:"},getXmlHttpRequest:function(){var a;if(window.ActiveXObject)a:{if(window.location.protocol!=="file:")try{new window.XMLHttpRequest;a="xhr";break a}catch(b){}try{new window.ActiveXObject("Microsoft.XMLHTTP");a="activex";break a}catch(c){}a=void 0}else a:{try{new window.XMLHttpRequest;a="xhr";break a}catch(d){}a=void 0}return a||""}},defer:function(a){qx.core.Environment.add("io.maxrequests",a.getMaxConcurrentRequestCount);qx.core.Environment.add("io.ssl",a.getSsl);qx.core.Environment.add("io.xhr",
a.getXmlHttpRequest)}})})();
(function(){qx.Class.define("qx.util.ResourceManager",{extend:qx.core.Object,type:"singleton",construct:function(){qx.core.Object.call(this)},statics:{__j:qx.$$resources||{},__dP:{}},members:{has:function(a){return!!this.self(arguments).__j[a]},getData:function(a){return this.self(arguments).__j[a]||null},getImageWidth:function(a){var b=this.self(arguments).__j[a];return b?b[0]:null},getImageHeight:function(a){var b=this.self(arguments).__j[a];return b?b[1]:null},getImageFormat:function(a){var b=this.self(arguments).__j[a];
return b?b[2]:null},getCombinedFormat:function(a){var b="",c=this.self(arguments).__j[a];c&&c.length>4&&typeof c[4]=="string"&&this.constructor.__j[c[4]]&&(b=this.constructor.__j[c[4]][2]);return b},toUri:function(a){if(a==null)return a;var b=this.self(arguments).__j[a];if(!b)return a;if(typeof b!=="string"&&(b=b[3],!b))return a;var c="";qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("io.ssl")&&(c=this.self(arguments).__dP[b]);return c+qx.$$libraries[b].resourceUri+"/"+
a},toDataUri:function(a){var b=this.constructor.__j[this.constructor.__j[a][4]];b?(a=b[4][a],a="data:image/"+a.type+";"+a.encoding+","+a.data):a=this.toUri(a);return a}},defer:function(a){if(qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("io.ssl"))for(var b in qx.$$libraries){var c;qx.$$libraries[b].resourceUri?(c=qx.$$libraries[b].resourceUri,c.match(/^\/\//)!=null?a.__dP[b]=window.location.protocol:c.match(/^\//)!=null?a.__dP[b]=window.location.protocol+"//"+window.location.host:
c.match(/^\.\//)!=null?(c=document.URL,a.__dP[b]=c.substring(0,c.lastIndexOf("/")+1)):c.match(/^http/)!=null?a.__dP[b]="":(c=window.location.href.indexOf("?"),c=c==-1?window.location.href:window.location.href.substring(0,c),a.__dP[b]=c.substring(0,c.lastIndexOf("/")+1))):a.__dP[b]=""}}})})();
(function(){qx.Class.define("qx.event.Timer",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this.setEnabled(false);a!=null&&this.setInterval(a);var b=this;this.__dQ=function(){b._oninterval.call(b)}},events:{interval:"qx.event.type.Event"},statics:{once:function(a,b,c){qx.core.Environment.get("qx.debug")&&(qx.core.Assert.assertFunction(a,"func is not a function"),qx.core.Assert.assertNotUndefined(c,"No timeout given"));var d=new qx.event.Timer(c);d.__dR=a;d.addListener("interval",
function(c){d.stop();a.call(b,c);d.dispose();b=null},b);d.start();return d}},properties:{enabled:{init:true,check:"Boolean",apply:"_applyEnabled"},interval:{check:"Integer",init:1E3,apply:"_applyInterval"}},members:{__dS:null,__dQ:null,_applyInterval:function(){this.getEnabled()&&this.restart()},_applyEnabled:function(a,b){if(b)window.clearInterval(this.__dS),this.__dS=null;else if(a)this.__dS=window.setInterval(this.__dQ,this.getInterval())},start:function(){this.setEnabled(true)},startWith:function(a){this.setInterval(a);
this.start()},stop:function(){this.setEnabled(false)},restart:function(){this.stop();this.start()},restartWith:function(a){this.stop();this.startWith(a)},_oninterval:qx.event.GlobalError.observeMethod(function(){this.$$disposed||this.getEnabled()&&this.fireEvent("interval")})},destruct:function(){this.__dS&&window.clearInterval(this.__dS);this.__dS=this.__dQ=null}})})();
(function(){qx.Class.define("qx.dom.Element",{statics:{hasChild:function(a,b){return b.parentNode===a},hasChildren:function(a){return!!a.firstChild},hasChildElements:function(a){for(a=a.firstChild;a;){if(a.nodeType===1)return true;a=a.nextSibling}return false},getParentElement:function(a){return a.parentNode},isInDom:function(a,b){b||(b=window);for(var c=b.document.getElementsByTagName(a.nodeName),d=0,e=c.length;d<e;d++)if(c[d]===a)return true;return false},insertAt:function(a,b,c){(c=b.childNodes[c])?
b.insertBefore(a,c):b.appendChild(a);return true},insertBegin:function(a,b){b.firstChild?this.insertBefore(a,b.firstChild):b.appendChild(a)},insertEnd:function(a,b){b.appendChild(a)},insertBefore:function(a,b){b.parentNode.insertBefore(a,b);return true},insertAfter:function(a,b){var c=b.parentNode;if(b==c.lastChild)c.appendChild(a);else return this.insertBefore(a,b.nextSibling);return true},remove:function(a){if(!a.parentNode)return false;a.parentNode.removeChild(a);return true},removeChild:function(a,
b){if(a.parentNode!==b)return false;b.removeChild(a);return true},removeChildAt:function(a,b){var c=b.childNodes[a];if(!c)return false;b.removeChild(c);return true},replaceChild:function(a,b){if(!b.parentNode)return false;b.parentNode.replaceChild(a,b);return true},replaceAt:function(a,b,c){b=c.childNodes[b];if(!b)return false;c.replaceChild(a,b);return true}}})})();
(function(){qx.Bootstrap.define("qx.bom.Stylesheet",{statics:{includeFile:function(a,b){b||(b=document);var c=b.createElement("link");c.type="text/css";c.rel="stylesheet";var d=qx.util.ResourceManager.getInstance().toUri(a);d!==a&&qx.log.Logger.warn("qx.bom.Stylesheet.includeFile: Resource IDs will no longer be resolved, please call this method with a valid URI as the first argument!");c.href=d;b.getElementsByTagName("head")[0].appendChild(c)},createElement:function(a){if(qx.core.Environment.get("html.stylesheet.createstylesheet")){var b=
document.createStyleSheet();if(a)b.cssText=a;return b}else return b=document.createElement("style"),b.type="text/css",a&&b.appendChild(document.createTextNode(a)),document.getElementsByTagName("head")[0].appendChild(b),b.sheet},addRule:function(a,b,c){qx.core.Environment.get("html.stylesheet.insertrule")?a.insertRule(b+"{"+c+"}",a.cssRules.length):a.addRule(b,c)},removeRule:function(a,b){if(qx.core.Environment.get("html.stylesheet.deleterule")){var c=a.cssRules,d=c.length;for(d-=1;d>=0;--d)c[d].selectorText==
b&&a.deleteRule(d)}else{c=a.rules;d=c.length;for(d-=1;d>=0;--d)c[d].selectorText==b&&a.removeRule(d)}},removeAllRules:function(a){if(qx.core.Environment.get("html.stylesheet.deleterule")){var b=a.cssRules,b=b.length;for(b-=1;b>=0;b--)a.deleteRule(b)}else{b=a.rules;b=b.length;for(b-=1;b>=0;b--)a.removeRule(b)}},addImport:function(a,b){qx.core.Environment.get("html.stylesheet.addimport")?a.addImport(b):a.insertRule('@import "'+b+'";',a.cssRules.length)},removeImport:function(a,b){if(qx.core.Environment.get("html.stylesheet.removeimport")){var c=
a.imports,d=c.length;for(d-=1;d>=0;d--)(c[d].href==b||c[d].href==qx.util.Uri.getAbsolute(b))&&a.removeImport(d)}else{c=a.cssRules;d=c.length;for(d-=1;d>=0;d--)c[d].href==b&&a.deleteRule(d)}},removeAllImports:function(a){if(qx.core.Environment.get("html.stylesheet.removeimport")){var b=a.imports.length;for(b-=1;b>=0;b--)a.removeImport(b)}else{var c=a.cssRules,b=c.length;for(b-=1;b>=0;b--)c[b].type==c[b].IMPORT_RULE&&a.deleteRule(b)}}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Stylesheet",{statics:{__dT:function(){if(!qx.bom.client.Stylesheet.__dU)qx.bom.client.Stylesheet.__dU=qx.bom.Stylesheet.createElement();return qx.bom.client.Stylesheet.__dU},getCreateStyleSheet:function(){return typeof document.createStyleSheet==="object"},getInsertRule:function(){return typeof qx.bom.client.Stylesheet.__dT().insertRule==="function"},getDeleteRule:function(){return typeof qx.bom.client.Stylesheet.__dT().deleteRule==="function"},getAddImport:function(){return typeof qx.bom.client.Stylesheet.__dT().addImport===
"object"},getRemoveImport:function(){return typeof qx.bom.client.Stylesheet.__dT().removeImport==="object"}},defer:function(a){qx.core.Environment.add("html.stylesheet.createstylesheet",a.getCreateStyleSheet);qx.core.Environment.add("html.stylesheet.insertrule",a.getInsertRule);qx.core.Environment.add("html.stylesheet.deleterule",a.getDeleteRule);qx.core.Environment.add("html.stylesheet.addimport",a.getAddImport);qx.core.Environment.add("html.stylesheet.removeimport",a.getRemoveImport)}})})();
(function(){qx.Class.define("qx.util.Uri",{statics:{parseUri:function(a,b){for(var c="source,protocol,authority,userInfo,user,password,host,port,relative,path,directory,file,query,anchor".split(","),d={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}[b?
"strict":"loose"].exec(a),e={},f=14;f--;)e[c[f]]=d[f]||"";e.queryKey={};e[c[12]].replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,b,c){b&&(e.queryKey[b]=c)});return e},appendParamsToUrl:function(a,b){if(b===void 0)return a;if(qx.core.Environment.get("qx.debug")&&!qx.lang.Type.isString(b)&&!qx.lang.Type.isObject(b))throw Error("params must be either string or object");qx.lang.Type.isObject(b)&&(b=qx.lang.Object.toUriParameter(b));return!b?a:a+(/\?/.test(a)?"&"+b:"?"+b)},getAbsolute:function(a){var b=
document.createElement("div");b.innerHTML='<a href="'+a+'">0</a>';return b.firstChild.href}}})})();
(function(){qx.Class.define("qx.bom.webfonts.Validator",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);a&&this.setFontFamily(a);this.__dV=this._getRequestedHelpers()},statics:{COMPARISON_FONTS:{sans:["Arial","Helvetica","sans-serif"],serif:["Times New Roman","Georgia","serif"]},HELPER_CSS:{position:"absolute",margin:"0",padding:"0",top:"-1000px",left:"-1000px",fontSize:"350px",width:"auto",height:"auto",lineHeight:"normal",fontVariant:"normal"},COMPARISON_STRING:"WEei",__dW:null,
__dX:null,removeDefaultHelperElements:function(){var a=qx.bom.webfonts.Validator.__dX;if(a)for(var b in a)document.body.removeChild(a[b]);delete qx.bom.webfonts.Validator.__dX}},properties:{fontFamily:{nullable:true,init:null,apply:"_applyFontFamily"},timeout:{check:"Integer",init:5E3}},events:{changeStatus:"qx.event.type.Data"},members:{__dV:null,__dY:null,__ea:null,validate:function(){this.__ea=(new Date).getTime();this.__dY?this.__dY.restart():(this.__dY=new qx.event.Timer(100),this.__dY.addListener("interval",
this.__eb,this),qx.event.Timer.once(function(){this.__dY.start()},this,0))},_reset:function(){if(this.__dV){for(var a in this.__dV)document.body.removeChild(this.__dV[a]);this.__dV=null}},_isFontValid:function(){qx.bom.webfonts.Validator.__dW||this.__bf();if(!this.__dV)this.__dV=this._getRequestedHelpers();var a=qx.bom.element.Dimension.getWidth(this.__dV.sans),b=qx.bom.element.Dimension.getWidth(this.__dV.serif),c=qx.bom.webfonts.Validator;return a!==c.__dW.sans&&b!==c.__dW.serif?true:false},_getRequestedHelpers:function(){var a=
[this.getFontFamily()].concat(qx.bom.webfonts.Validator.COMPARISON_FONTS.sans),b=[this.getFontFamily()].concat(qx.bom.webfonts.Validator.COMPARISON_FONTS.serif);return{sans:this._getHelperElement(a),serif:this._getHelperElement(b)}},_getHelperElement:function(a){var b=qx.lang.Object.clone(qx.bom.webfonts.Validator.HELPER_CSS);if(a)b.fontFamily?b.fontFamily+=","+a.join(","):b.fontFamily=a.join(",");a=document.createElement("span");a.innerHTML=qx.bom.webfonts.Validator.COMPARISON_STRING;qx.bom.element.Style.setStyles(a,
b);document.body.appendChild(a);return a},_applyFontFamily:function(a,b){a!==b&&this._reset()},__bf:function(){var a=qx.bom.webfonts.Validator;if(!a.__dX)a.__dX={sans:this._getHelperElement(a.COMPARISON_FONTS.sans),serif:this._getHelperElement(a.COMPARISON_FONTS.serif)};a.__dW={sans:qx.bom.element.Dimension.getWidth(a.__dX.sans),serif:qx.bom.element.Dimension.getWidth(a.__dX.serif)}},__eb:function(){this._isFontValid()?(this.__dY.stop(),this._reset(),this.fireDataEvent("changeStatus",{family:this.getFontFamily(),
valid:true})):(new Date).getTime()-this.__ea>=this.getTimeout()&&(this.__dY.stop(),this._reset(),this.fireDataEvent("changeStatus",{family:this.getFontFamily(),valid:false}))}},destruct:function(){this._reset();this.__dY.stop();this.__dY.removeListener("interval",this.__eb,this);this._disposeObjects(this.__dY)}})})();
(function(){qx.Class.define("qx.bom.element.Dimension",{statics:{getWidth:qx.core.Environment.select("engine.name",{gecko:function(a){return a.getBoundingClientRect?(a=a.getBoundingClientRect(),Math.round(a.right)-Math.round(a.left)):a.offsetWidth},"default":function(a){return a.offsetWidth}}),getHeight:qx.core.Environment.select("engine.name",{gecko:function(a){return a.getBoundingClientRect?(a=a.getBoundingClientRect(),Math.round(a.bottom)-Math.round(a.top)):a.offsetHeight},"default":function(a){return a.offsetHeight}}),
getSize:function(a){return{width:this.getWidth(a),height:this.getHeight(a)}},__ec:{visible:true,hidden:true},getContentWidth:function(a){var b=qx.bom.element.Style,c=qx.bom.element.Overflow.getX(a),d=parseInt(b.get(a,"paddingLeft")||"0px",10),b=parseInt(b.get(a,"paddingRight")||"0px",10);if(this.__ec[c]){c=a.clientWidth;if(qx.core.Environment.get("engine.name")=="opera"||qx.dom.Node.isBlockNode(a))c=c-d-b;return c}else return a.clientWidth>=a.scrollWidth?Math.max(a.clientWidth,a.scrollWidth)-d-b:
(a=a.scrollWidth-d,qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("engine.version")>=6&&(a-=b),a)},getContentHeight:function(a){var b=qx.bom.element.Style,c=qx.bom.element.Overflow.getY(a),d=parseInt(b.get(a,"paddingTop")||"0px",10),b=parseInt(b.get(a,"paddingBottom")||"0px",10);return this.__ec[c]?a.clientHeight-d-b:a.clientHeight>=a.scrollHeight?Math.max(a.clientHeight,a.scrollHeight)-d-b:(a=a.scrollHeight-d,qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("engine.version")==
6&&(a-=b),a)},getContentSize:function(a){return{width:this.getContentWidth(a),height:this.getContentHeight(a)}}}})})();(function(){qx.Class.define("qx.theme.manager.Icon",{type:"singleton",extend:qx.core.Object,properties:{theme:{check:"Theme",nullable:true,apply:"_applyTheme",event:"changeTheme"}},members:{_applyTheme:function(a,b){var c=qx.util.AliasManager.getInstance();if(b)for(var d in b.aliases)c.remove(d);if(a)for(d in a.aliases)c.add(d,a.aliases[d])}}})})();
(function(){qx.Class.define("qx.theme.manager.Appearance",{type:"singleton",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__ed={};this.__ee={}},properties:{theme:{check:"Theme",nullable:true,event:"changeTheme",apply:"_applyTheme"}},members:{__ef:{},__ed:null,__ee:null,_applyTheme:function(){this.__ee={};this.__ed={}},__eg:function(a,b,c){var d=b.appearances,e=d[a];if(e)if(typeof e==="string")return this.__eg(e,b,c);else{if(e.include&&!e.style)return this.__eg(e.include,
b,c)}else{for(var f=[],a=a.split("/"),g;!e&&a.length>0;)if(f.unshift(a.pop()),e=a.join("/"),e=d[e])if(g=e.alias||e,typeof g==="string")return this.__eg(g+"/"+f.join("/"),b,c);for(d=0;d<f.length-1;d++)if(f.shift(),e=f.join("/"),e=this.__eg(e,b))return e;return c!=null?this.__eg(c,b):null}return a},styleFrom:function(a,b,c,d){c||(c=this.getTheme());var e=this.__ee,f=e[a];f||(f=e[a]=this.__eg(a,c,d));e=c.appearances[f];if(!e)return this.warn("Missing appearance: "+a),null;if(!e.style)return null;a=f;
if(b){var g=e.$$bits;if(!g)g=e.$$bits={},e.$$length=0;var h=0,i;for(i in b)b[i]&&(g[i]==null&&(g[i]=1<<e.$$length++),h+=g[i]);h>0&&(a+=":"+h)}i=this.__ed;if(i[a]!==void 0)return i[a];if(!b)b=this.__ef;if(e.include||e.base){var j;e.include&&(j=this.styleFrom(e.include,b,c,d));g=e.style(b,j);c={};if(e.base)if(b=this.styleFrom(f,b,e.base,d),e.include)for(var k in b)!j.hasOwnProperty(k)&&!g.hasOwnProperty(k)&&(c[k]=b[k]);else for(k in b)g.hasOwnProperty(k)||(c[k]=b[k]);if(e.include)for(k in j)g.hasOwnProperty(k)||
(c[k]=j[k]);for(k in g)c[k]=g[k]}else c=e.style(b);return i[a]=c||null}},destruct:function(){this.__ed=this.__ee=null}})})();
(function(){qx.Bootstrap.define("qx.Theme",{statics:{define:function(a,b){b||(b={});b.include=this.__eh(b.include);b.patch=this.__eh(b.patch);qx.core.Environment.get("qx.debug")&&this.__i(a,b);var c={$$type:"Theme",name:a,title:b.title,toString:this.genericToString};if(b.extend)c.supertheme=b.extend;c.basename=qx.Bootstrap.createNamespace(a,c);this.__ek(c,b);this.__ei(c,b);this.$$registry[a]=c;for(var d=0,e=b.include,f=e.length;d<f;d++)this.include(c,e[d]);d=0;e=b.patch;for(f=e.length;d<f;d++)this.patch(c,
e[d])},__eh:function(a){return!a?[]:qx.Bootstrap.isArray(a)?a:[a]},__ei:function(a,b){var c=b.aliases||{};b.extend&&b.extend.aliases&&qx.Bootstrap.objectMergeWith(c,b.extend.aliases,false);a.aliases=c},getAll:function(){return this.$$registry},getByName:function(a){return this.$$registry[a]},isDefined:function(a){return this.getByName(a)!==void 0},getTotalNumber:function(){return qx.Bootstrap.objectGetLength(this.$$registry)},genericToString:function(){return"[Theme "+this.name+"]"},__ej:function(a){for(var b=
0,c=this.__el,d=c.length;b<d;b++)if(a[c[b]])return c[b]},__ek:function(a,b){var c=this.__ej(b);if(b.extend&&!c)c=b.extend.type;a.type=c||"other";var d=function(){};if(b.extend)d.prototype=new b.extend.$$clazz;var e=d.prototype,f=b[c],g;for(g in f)if(e[g]=f[g],e[g].base){if(qx.core.Environment.get("qx.debug")&&!b.extend)throw Error("Found base flag in entry '"+g+"' of theme '"+b.name+"'. Base flags are not allowed for themes without a valid super theme!");e[g].base=b.extend}a.$$clazz=d;a[c]=new d},
$$registry:{},__el:"colors,borders,decorations,fonts,icons,widgets,appearances,meta".split(","),__h:qx.core.Environment.select("qx.debug",{"true":{title:"string",aliases:"object",type:"string",extend:"object",colors:"object",borders:"object",decorations:"object",fonts:"object",icons:"object",widgets:"object",appearances:"object",meta:"object",include:"object",patch:"object"},"default":null}),__em:qx.core.Environment.select("qx.debug",{"true":{color:"object",border:"object",decoration:"object",font:"object",
icon:"object",appearance:"object",widget:"object"},"default":null}),__i:qx.core.Environment.select("qx.debug",{"true":function(a,b){var c=this.__h,d;for(d in b){if(c[d]===void 0)throw Error('The configuration key "'+d+'" in theme "'+a+'" is not allowed!');if(b[d]==null)throw Error('Invalid key "'+d+'" in theme "'+a+'"! The value is undefined/null!');if(c[d]!==null&&typeof b[d]!==c[d])throw Error('Invalid type of key "'+d+'" in theme "'+a+'"! The type of the key must be "'+c[d]+'"!');}for(var c="colors,borders,decorations,fonts,icons,widgets,appearances,meta".split(","),
e=0,f=c.length;e<f;e++)if(d=c[e],b[d]!==void 0&&(b[d]instanceof Array||b[d]instanceof RegExp||b[d]instanceof Date||b[d].classname!==void 0))throw Error('Invalid key "'+d+'" in theme "'+a+'"! The value needs to be a map!');for(var g=0,e=0,f=c.length;e<f;e++)if(d=c[e],b[d]&&g++,g>1)throw Error("You can only define one theme category per file! Invalid theme: "+a);if(b.meta)for(d in b.meta){c=b.meta[d];if(this.__em[d]===void 0)throw Error('The key "'+d+'" is not allowed inside a meta theme block.');if(typeof c!==
this.__em[d])throw Error('The type of the key "'+d+'" inside the meta block is wrong.');if(!(typeof c==="object"&&c!==null&&c.$$type==="Theme"))throw Error('The content of a meta theme must reference to other themes. The value for "'+d+'" in theme "'+a+'" is invalid: '+c);}if(b.extend&&b.extend.$$type!=="Theme")throw Error('Invalid extend in theme "'+a+'": '+b.extend);if(b.include){e=0;for(f=b.include.length;e<f;e++)if(typeof b.include[e]=="undefined"||b.include[e].$$type!=="Theme")throw Error('Invalid include in theme "'+
a+'": '+b.include[e]);}if(b.patch){e=0;for(f=b.patch.length;e<f;e++)if(typeof b.patch[e]=="undefined"||b.patch[e].$$type!=="Theme")throw Error('Invalid patch in theme "'+a+'": '+b.patch[e]);}},"default":function(){}}),patch:function(a,b){this.__en(b);var c=this.__ej(b);if(c!==this.__ej(a))throw Error("The mixins '"+a.name+"' are not compatible '"+b.name+"'!");var c=b[c],d=a.$$clazz.prototype,e;for(e in c)d[e]=c[e]},include:function(a,b){this.__en(b);var c=b.type;if(c!==a.type)throw Error("The mixins '"+
a.name+"' are not compatible '"+b.name+"'!");var c=b[c],d=a.$$clazz.prototype,e;for(e in c)d[e]===void 0&&(d[e]=c[e])},__en:function(a){if(typeof a==="undefined"||a==null){a=Error("Mixin theme is not a valid theme!");if(qx.core.Environment.get("qx.debug")){var b=qx.dev.StackTrace.getStackTraceFromError(a);qx.Bootstrap.error(this,b)}throw a;}}}})})();
(function(){qx.Class.define("qx.ui.tooltip.Manager",{type:"singleton",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);qx.event.Registration.addListener(document.body,"mouseover",this.__ey,this,true);this.__eo=new qx.event.Timer;this.__eo.addListener("interval",this.__ev,this);this.__ep=new qx.event.Timer;this.__ep.addListener("interval",this.__ew,this);this.__eq={left:0,top:0}},properties:{current:{check:"qx.ui.tooltip.ToolTip",nullable:true,apply:"_applyCurrent"},showInvalidToolTips:{check:"Boolean",
init:true},showToolTips:{check:"Boolean",init:true}},members:{__eq:null,__ep:null,__eo:null,__er:null,__es:null,__et:function(){if(!this.__er)this.__er=(new qx.ui.tooltip.ToolTip).set({rich:true});return this.__er},__eu:function(){if(!this.__es)this.__es=(new qx.ui.tooltip.ToolTip).set({appearance:"tooltip-error"}),this.__es.syncAppearance();return this.__es},_applyCurrent:function(a,b){if(!b||!qx.ui.core.Widget.contains(b,a)){b&&(b.isDisposed()||b.exclude(),this.__eo.stop(),this.__ep.stop());var c=
qx.event.Registration,d=document.body;a?(this.__eo.startWith(a.getShowTimeout()),c.addListener(d,"mouseout",this.__ez,this,true),c.addListener(d,"focusout",this.__eA,this,true),c.addListener(d,"mousemove",this.__ex,this,true)):(c.removeListener(d,"mouseout",this.__ez,this,true),c.removeListener(d,"focusout",this.__eA,this,true),c.removeListener(d,"mousemove",this.__ex,this,true))}},__ev:function(){var a=this.getCurrent();a&&!a.isDisposed()&&(this.__ep.startWith(a.getHideTimeout()),a.getPlaceMethod()==
"widget"?a.placeToWidget(a.getOpener()):a.placeToPoint(this.__eq),a.show());this.__eo.stop()},__ew:function(){var a=this.getCurrent();a&&!a.isDisposed()&&a.exclude();this.__ep.stop();this.resetCurrent()},__ex:function(a){var b=this.__eq;b.left=a.getDocumentLeft();b.top=a.getDocumentTop()},__ey:function(a){if(a=qx.ui.core.Widget.getWidgetByElement(a.getTarget())){for(var b,c,d,e;a!=null;){b=a.getToolTip();c=a.getToolTipText()||null;d=a.getToolTipIcon()||null;qx.Class.hasInterface(a.constructor,qx.ui.form.IForm)&&
!a.isValid()&&(e=a.getInvalidMessage());if(b||c||d||e)break;a=a.getLayoutParent()}if(a&&a.getEnabled()&&!a.isBlockToolTip()&&!(!e&&!this.getShowToolTips()||e&&!this.getShowInvalidToolTips()))e&&(b=this.__eu().set({label:e})),b||(b=this.__et().set({label:c,icon:d})),this.setCurrent(b),b.setOpener(a)}},__ez:function(a){var b=qx.ui.core.Widget.getWidgetByElement(a.getTarget());if(b&&(a=qx.ui.core.Widget.getWidgetByElement(a.getRelatedTarget()))){var c=this.getCurrent();if(!c||!(a==c||qx.ui.core.Widget.contains(c,
a)))if(!a||!b||!qx.ui.core.Widget.contains(b,a))c&&!a?this.setCurrent(null):this.resetCurrent()}},__eA:function(a){if(a=qx.ui.core.Widget.getWidgetByElement(a.getTarget())){var b=this.getCurrent();b&&b==a.getToolTip()&&this.setCurrent(null)}}},destruct:function(){qx.event.Registration.removeListener(document.body,"mouseover",this.__ey,this,true);this._disposeObjects("__eo","__ep","__er");this.__eq=null}})})();
(function(){qx.Mixin.define("qx.ui.core.MLayoutHandling",{members:{setLayout:function(a){return this._setLayout(a)},getLayout:function(){return this._getLayout()}},statics:{remap:function(a){a.getLayout=a._getLayout;a.setLayout=a._setLayout}}})})();
(function(){qx.Class.define("qx.ui.core.LayoutItem",{type:"abstract",extend:qx.core.Object,properties:{minWidth:{check:"Integer",nullable:true,apply:"_applyDimension",init:null,themeable:true},width:{check:"Integer",nullable:true,apply:"_applyDimension",init:null,themeable:true},maxWidth:{check:"Integer",nullable:true,apply:"_applyDimension",init:null,themeable:true},minHeight:{check:"Integer",nullable:true,apply:"_applyDimension",init:null,themeable:true},height:{check:"Integer",nullable:true,apply:"_applyDimension",
init:null,themeable:true},maxHeight:{check:"Integer",nullable:true,apply:"_applyDimension",init:null,themeable:true},allowGrowX:{check:"Boolean",apply:"_applyStretching",init:true,themeable:true},allowShrinkX:{check:"Boolean",apply:"_applyStretching",init:true,themeable:true},allowGrowY:{check:"Boolean",apply:"_applyStretching",init:true,themeable:true},allowShrinkY:{check:"Boolean",apply:"_applyStretching",init:true,themeable:true},allowStretchX:{group:["allowGrowX","allowShrinkX"],mode:"shorthand",
themeable:true},allowStretchY:{group:["allowGrowY","allowShrinkY"],mode:"shorthand",themeable:true},marginTop:{check:"Integer",init:0,apply:"_applyMargin",themeable:true},marginRight:{check:"Integer",init:0,apply:"_applyMargin",themeable:true},marginBottom:{check:"Integer",init:0,apply:"_applyMargin",themeable:true},marginLeft:{check:"Integer",init:0,apply:"_applyMargin",themeable:true},margin:{group:["marginTop","marginRight","marginBottom","marginLeft"],mode:"shorthand",themeable:true},alignX:{check:["left",
"center","right"],nullable:true,apply:"_applyAlign",themeable:true},alignY:{check:["top","middle","bottom","baseline"],nullable:true,apply:"_applyAlign",themeable:true}},members:{__eB:null,__eC:null,__eD:null,__eE:null,__eF:null,__eG:null,__eH:null,getBounds:function(){return this.__eG||this.__eC||null},clearSeparators:function(){},renderSeparator:function(){},renderLayout:function(a,b,c,d){if(qx.core.Environment.get("qx.debug")){var e="Something went wrong with the layout of "+this.toString()+"!";
this.assertInteger(a,"Wrong 'left' argument. "+e);this.assertInteger(b,"Wrong 'top' argument. "+e);this.assertInteger(c,"Wrong 'width' argument. "+e);this.assertInteger(d,"Wrong 'height' argument. "+e)}e=null;this.getHeight()==null&&this._hasHeightForWidth()&&(e=this._getHeightForWidth(c));if(e!=null&&e!==this.__eB)return this.__eB=e,qx.ui.core.queue.Layout.add(this),null;e=this.__eC;if(!e)e=this.__eC={};var f={};if(a!==e.left||b!==e.top)f.position=true,e.left=a,e.top=b;if(c!==e.width||d!==e.height)f.size=
true,e.width=c,e.height=d;if(this.__eD)f.local=true,delete this.__eD;if(this.__eF)f.margin=true,delete this.__eF;return f},isExcluded:function(){return false},hasValidLayout:function(){return!this.__eD},scheduleLayoutUpdate:function(){qx.ui.core.queue.Layout.add(this)},invalidateLayoutCache:function(){this.__eD=true;this.__eE=null},getSizeHint:function(a){var b=this.__eE;if(b)return b;if(a===false)return null;b=this.__eE=this._computeSizeHint();if(this._hasHeightForWidth()&&this.__eB&&this.getHeight()==
null)b.height=this.__eB;if(b.minWidth>b.width)b.width=b.minWidth;if(b.maxWidth<b.width)b.width=b.maxWidth;if(!this.getAllowGrowX())b.maxWidth=b.width;if(!this.getAllowShrinkX())b.minWidth=b.width;if(b.minHeight>b.height)b.height=b.minHeight;if(b.maxHeight<b.height)b.height=b.maxHeight;if(!this.getAllowGrowY())b.maxHeight=b.height;if(!this.getAllowShrinkY())b.minHeight=b.height;return b},_computeSizeHint:function(){var a=this.getMinWidth()||0,b=this.getMinHeight()||0,c=this.getWidth()||a,d=this.getHeight()||
b,e=this.getMaxWidth()||Infinity,f=this.getMaxHeight()||Infinity;return{minWidth:a,width:c,maxWidth:e,minHeight:b,height:d,maxHeight:f}},_hasHeightForWidth:function(){var a=this._getLayout();return a?a.hasHeightForWidth():false},_getHeightForWidth:function(a){var b=this._getLayout();return b&&b.hasHeightForWidth()?b.getHeightForWidth(a):null},_getLayout:function(){return null},_applyMargin:function(){this.__eF=true;var a=this.$$parent;a&&a.updateLayoutProperties()},_applyAlign:function(){var a=this.$$parent;
a&&a.updateLayoutProperties()},_applyDimension:function(){qx.ui.core.queue.Layout.add(this)},_applyStretching:function(){qx.ui.core.queue.Layout.add(this)},hasUserBounds:function(){return!!this.__eG},setUserBounds:function(a,b,c,d){this.__eG={left:a,top:b,width:c,height:d};qx.ui.core.queue.Layout.add(this)},resetUserBounds:function(){delete this.__eG;qx.ui.core.queue.Layout.add(this)},__eI:{},setLayoutProperties:function(a){if(a!=null){var b=this.__eH;if(!b)b=this.__eH={};var c=this.getLayoutParent();
c&&c.updateLayoutProperties(a);for(var d in a)a[d]==null?delete b[d]:b[d]=a[d]}},getLayoutProperties:function(){return this.__eH||this.__eI},clearLayoutProperties:function(){delete this.__eH},updateLayoutProperties:function(a){var b=this._getLayout();if(b){if(qx.core.Environment.get("qx.debug")&&a)for(var c in a)a[c]!==null&&b.verifyLayoutProperty(this,c,a[c]);b.invalidateChildrenCache()}qx.ui.core.queue.Layout.add(this)},getApplicationRoot:function(){return qx.core.Init.getApplication().getRoot()},
getLayoutParent:function(){return this.$$parent||null},setLayoutParent:function(a){if(this.$$parent!==a)this.$$parent=a||null,qx.ui.core.queue.Visibility.add(this)},isRootWidget:function(){return false},_getRoot:function(){for(var a=this;a;){if(a.isRootWidget())return a;a=a.$$parent}return null},clone:function(){var a=qx.core.Object.prototype.clone.call(this),b=this.__eH;if(b)a.__eH=qx.lang.Object.clone(b);return a}},destruct:function(){this.$$parent=this.$$subparent=this.__eH=this.__eC=this.__eG=
this.__eE=null}})})();
(function(){qx.Class.define("qx.ui.core.queue.Layout",{statics:{__dC:{},remove:function(a){delete this.__dC[a.$$hash]},add:function(a){this.__dC[a.$$hash]=a;qx.ui.core.queue.Manager.scheduleFlush("layout")},isScheduled:function(a){return!!this.__dC[a.$$hash]},flush:function(){for(var a=this.__eL(),b=a.length-1;b>=0;b--){var c=a[b];if(!c.hasValidLayout())if(c.isRootWidget()&&!c.hasUserBounds()){var d=c.getSizeHint();c.renderLayout(0,0,d.width,d.height)}else d=c.getBounds(),c.renderLayout(d.left,d.top,
d.width,d.height)}},getNestingLevel:function(a){for(var b=this.__eK,c=0,d=a;;){if(b[d.$$hash]!=null){c+=b[d.$$hash];break}if(!d.$$parent)break;d=d.$$parent;c+=1}for(var e=c;a&&a!==d;)b[a.$$hash]=e--,a=a.$$parent;return c},__eJ:function(){var a=qx.ui.core.queue.Visibility;this.__eK={};var b=[],c=this.__dC,d,e,f;for(f in c)d=c[f],a.isVisible(d)&&(e=this.getNestingLevel(d),b[e]||(b[e]={}),b[e][f]=d,delete c[f]);return b},__eL:function(){for(var a=[],b=this.__eJ(),c=b.length-1;c>=0;c--)if(b[c])for(var d in b[c]){var e=
b[c][d];if(c==0||e.isRootWidget()||e.hasUserBounds())a.push(e),e.invalidateLayoutCache();else{var f=e.getSizeHint(false);if(f){e.invalidateLayoutCache();var g=e.getSizeHint(),f=!e.getBounds()||f.minWidth!==g.minWidth||f.width!==g.width||f.maxWidth!==g.maxWidth||f.minHeight!==g.minHeight||f.height!==g.height||f.maxHeight!==g.maxHeight}else f=true;f?(e=e.getLayoutParent(),b[c-1]||(b[c-1]={}),b[c-1][e.$$hash]=e):a.push(e)}}return a}}})})();
(function(){qx.Class.define("qx.util.DeferredCallManager",{extend:qx.core.Object,type:"singleton",construct:function(){this.__eM={};this.__eN=qx.lang.Function.bind(this.__eR,this);this.__eO=false},members:{__eP:null,__eQ:null,__eM:null,__eO:null,__eN:null,schedule:function(a){if(this.__eP==null)this.__eP=window.setTimeout(this.__eN,0);var b=a.toHashCode();if(!this.__eQ||!this.__eQ[b])this.__eM[b]=a,this.__eO=true},cancel:function(a){a=a.toHashCode();if(this.__eQ&&this.__eQ[a])this.__eQ[a]=null;else if(delete this.__eM[a],
qx.lang.Object.isEmpty(this.__eM)&&this.__eP!=null)window.clearTimeout(this.__eP),this.__eP=null},__eR:qx.event.GlobalError.observeMethod(function(){for(this.__eP=null;this.__eO;){this.__eQ=qx.lang.Object.clone(this.__eM);this.__eM={};this.__eO=false;for(var a in this.__eQ){var b=this.__eQ[a];b&&(this.__eQ[a]=null,b.call())}}this.__eQ=null})},destruct:function(){this.__eP!=null&&window.clearTimeout(this.__eP);this.__eN=this.__eM=null}})})();
(function(){qx.Class.define("qx.util.DeferredCall",{extend:qx.core.Object,construct:function(a,b){qx.core.Object.call(this);this.__bM=a;this.__bN=b||null;this.__eS=qx.util.DeferredCallManager.getInstance()},members:{__bM:null,__bN:null,__eS:null,cancel:function(){this.__eS.cancel(this)},schedule:function(){this.__eS.schedule(this)},call:function(){if(qx.core.Environment.get("qx.debug")){var a=this.__bN;a&&a.isDisposed&&a.isDisposed()&&this.warn("The context object '"+a+"' of the defered call '"+this+
"'is already disposed.")}this.__bN?this.__bM.apply(this.__bN):this.__bM()}},destruct:function(){this.cancel();this.__bN=this.__bM=this.__eS=null}})})();
(function(){qx.Class.define("qx.html.Element",{extend:qx.core.Object,construct:function(a,b,c){qx.core.Object.call(this);this.__eT=a||"div";this.__eU=b||null;this.__eV=c||null},statics:{DEBUG:false,_modified:{},_visibility:{},_scroll:{},_actions:[],__eW:{},_scheduleFlush:function(){qx.html.Element.__fA.schedule()},flush:function(){var a;qx.core.Environment.get("qx.debug")&&this.DEBUG&&qx.log.Logger.debug(this,"Flushing elements...");a=this.__eX();var b=a.getFocus();b&&this.__fc(b)&&a.blur(b);(a=a.getActive())&&
this.__fc(a)&&qx.bom.Element.deactivate(a);(a=this.__fa())&&this.__fc(a)&&qx.bom.Element.releaseCapture(a);var c=[],b=this._modified,d;for(d in b)if(a=b[d],a.__ft()||a.classname=="qx.html.Iframe")a.__fd&&qx.dom.Hierarchy.isRendered(a.__fd)?c.push(a):(qx.core.Environment.get("qx.debug")&&this.DEBUG&&a.debug("Flush invisible element"),a.__fs()),delete b[d];for(var b=0,e=c.length;b<e;b++)a=c[b],qx.core.Environment.get("qx.debug")&&this.DEBUG&&a.debug("Flush rendered element"),a.__fs();b=this._visibility;
for(d in b){a=b[d];if(c=a.__fd)if(qx.core.Environment.get("qx.debug")&&this.DEBUG&&qx.log.Logger.debug(this,"Switching visibility to: "+a.__ff),!a.$$disposed&&(c.style.display=a.__ff?"":"none",qx.core.Environment.get("engine.name")=="mshtml"&&!(document.documentMode>=8)))c.style.visibility=a.__ff?"visible":"hidden";delete b[d]}c=this._scroll;for(d in c)if(a=c[d],(b=a.__fd)&&b.offsetWidth){e=true;if(a.__fi!=null)a.__fd.scrollLeft=a.__fi,delete a.__fi;if(a.__fj!=null)a.__fd.scrollTop=a.__fj,delete a.__fj;
var f=a.__fg;if(f!=null){var g=f.element.getDomElement();g&&g.offsetWidth?(qx.bom.element.Scroll.intoViewX(g,b,f.align),delete a.__fg):e=false}f=a.__fh;f!=null&&((g=f.element.getDomElement())&&g.offsetWidth?(qx.bom.element.Scroll.intoViewY(g,b,f.align),delete a.__fh):e=false);e&&delete c[d]}a={releaseCapture:1,blur:1,deactivate:1};for(b=0;b<this._actions.length;b++)if(e=this._actions[b],(c=e.element.__fd)&&(a[e.type]||e.element.__ft()))g=e.args,g.unshift(c),qx.bom.Element[e.type].apply(qx.bom.Element,
g);this._actions=[];for(d in this.__eW)if(a=this.__eW[d],b=a.element.__fd)qx.bom.Selection.set(b,a.start,a.end),delete this.__eW[d];qx.event.handler.Appear.refresh()},__eX:function(){if(!this.__eY)this.__eY=qx.event.Registration.getManager(window).getHandler(qx.event.handler.Focus);return this.__eY},__fa:function(){if(!this.__fb)this.__fb=qx.event.Registration.getManager(window).getDispatcher(qx.event.dispatch.MouseCapture);return this.__fb.getCaptureElement()},__fc:function(a){return(a=qx.core.ObjectRegistry.fromHashCode(a.$$element))&&
!a.__ft()}},members:{__eT:null,__fd:null,__db:false,__fe:true,__ff:true,__fg:null,__fh:null,__fi:null,__fj:null,__fk:null,__fl:null,__fm:null,__eU:null,__eV:null,__fn:null,__fo:null,__fp:null,__fq:null,__fr:null,_scheduleChildrenUpdate:function(){if(!this.__fq)this.__fq=true,qx.html.Element._modified[this.$$hash]=this,qx.html.Element._scheduleFlush("element")},_createDomElement:function(){return qx.bom.Element.create(this.__eT)},__fs:function(){qx.core.Environment.get("qx.debug")&&this.DEBUG&&this.debug("Flush: "+
this.getAttribute("id"));var a,b=this.__fp;if(b){a=b.length;for(var c,d=0;d<a;d++)c=b[d],c.__ff&&c.__fe&&!c.__fd&&c.__fs()}this.__fd?(this._syncData(),this.__fq&&this._syncChildren()):(this.__fd=this._createDomElement(),this.__fd.$$element=this.$$hash,this._copyData(false),b&&a>0&&this._insertChildren());delete this.__fq},_insertChildren:function(){var a=this.__fp,b=a.length,c;if(b>2){for(var d=document.createDocumentFragment(),e=0;e<b;e++)c=a[e],c.__fd&&c.__fe&&d.appendChild(c.__fd);this.__fd.appendChild(d)}else{d=
this.__fd;for(e=0;e<b;e++)c=a[e],c.__fd&&c.__fe&&d.appendChild(c.__fd)}},_syncChildren:function(){var a=qx.core.ObjectRegistry,b=this.__fp,c=b.length,d,e=this.__fd,f=e.childNodes,g=0,h;if(qx.core.Environment.get("qx.debug"))var i=0;for(var j=f.length-1;j>=0;j--)if(h=f[j],d=a.fromHashCode(h.$$element),!d||!d.__fe||d.__fr!==this)e.removeChild(h),qx.core.Environment.get("qx.debug")&&i++;for(j=0;j<c;j++)if(a=b[j],a.__fe)d=a.__fd,h=f[g],d&&(d!=h&&(h?e.insertBefore(d,h):e.appendChild(d),qx.core.Environment.get("qx.debug")&&
i++),g++);qx.core.Environment.get("qx.debug")&&qx.html.Element.DEBUG&&this.debug("Synced DOM with "+i+" operations")},_copyData:function(a){var b=this.__fd,c=this.__eV;if(c){var d=qx.bom.element.Attribute,e;for(e in c)d.set(b,e,c[e])}if(c=this.__eU)d=qx.bom.element.Style,a?d.setStyles(b,c):d.setCss(b,d.compile(c));if(c=this.__fn)for(e in c)this._applyProperty(e,c[e]);if(c=this.__fo)qx.event.Registration.getManager(b).importListeners(b,c),delete this.__fo},_syncData:function(){var a=this.__fd,b=qx.bom.element.Attribute,
c=qx.bom.element.Style,d=this.__fl;if(d){var e=this.__eV;if(e){var f,g;for(g in d)f=e[g],f!==void 0?b.set(a,g,f):b.reset(a,g)}this.__fl=null}if(d=this.__fk){if(e=this.__eU){b={};for(g in d)b[g]=e[g];c.setStyles(a,b)}this.__fk=null}if(d=this.__fm){if(e=this.__fn)for(g in d)this._applyProperty(g,e[g]);this.__fm=null}},__ft:function(){for(var a=this;a;){if(a.__db)return true;if(!a.__fe||!a.__ff)break;a=a.__fr}return false},__fu:function(a){if(a.__fr===this)throw Error("Child is already in: "+a);if(a.__db)throw Error("Root elements could not be inserted into other ones.");
a.__fr&&a.__fr.remove(a);a.__fr=this;if(!this.__fp)this.__fp=[];this.__fd&&this._scheduleChildrenUpdate()},__fv:function(a){if(a.__fr!==this)throw Error("Has no child: "+a);this.__fd&&this._scheduleChildrenUpdate();delete a.__fr},__fw:function(a){if(a.__fr!==this)throw Error("Has no child: "+a);this.__fd&&this._scheduleChildrenUpdate()},getChildren:function(){return this.__fp||null},getChild:function(a){var b=this.__fp;return b&&b[a]||null},hasChildren:function(){var a=this.__fp;return a&&a[0]!==
void 0},indexOf:function(a){var b=this.__fp;return b?b.indexOf(a):-1},hasChild:function(a){var b=this.__fp;return b&&b.indexOf(a)!==-1},add:function(a){if(arguments[1]){for(var b=0,c=arguments.length;b<c;b++)this.__fu(arguments[b]);this.__fp.push.apply(this.__fp,arguments)}else this.__fu(a),this.__fp.push(a);return this},addAt:function(a,b){this.__fu(a);qx.lang.Array.insertAt(this.__fp,a,b);return this},remove:function(a){var b=this.__fp;if(b){if(arguments[1])for(var c,d=0,e=arguments.length;d<e;d++)c=
arguments[d],this.__fv(c),qx.lang.Array.remove(b,c);else this.__fv(a),qx.lang.Array.remove(b,a);return this}},removeAt:function(a){var b=this.__fp;if(!b)throw Error("Has no children!");b=b[a];if(!b)throw Error("Has no child at this position!");this.__fv(b);qx.lang.Array.removeAt(this.__fp,a);return this},removeAll:function(){var a=this.__fp;if(a){for(var b=0,c=a.length;b<c;b++)this.__fv(a[b]);a.length=0}return this},getParent:function(){return this.__fr||null},insertInto:function(a,b){a.__fu(this);
b==null?a.__fp.push(this):qx.lang.Array.insertAt(this.__fp,this,b);return this},insertBefore:function(a){var b=a.__fr;b.__fu(this);qx.lang.Array.insertBefore(b.__fp,this,a);return this},insertAfter:function(a){var b=a.__fr;b.__fu(this);qx.lang.Array.insertAfter(b.__fp,this,a);return this},moveTo:function(a){var b=this.__fr;b.__fw(this);var c=b.__fp.indexOf(this);if(c===a)throw Error("Could not move to same index!");else c<a&&a--;qx.lang.Array.removeAt(b.__fp,c);qx.lang.Array.insertAt(b.__fp,this,
a);return this},moveBefore:function(a){return this.moveTo(this.__fr.__fp.indexOf(a))},moveAfter:function(a){return this.moveTo(this.__fr.__fp.indexOf(a)+1)},free:function(){var a=this.__fr;if(!a)throw Error("Has no parent to remove from.");if(a.__fp)return a.__fv(this),qx.lang.Array.remove(a.__fp,this),this},getDomElement:function(){return this.__fd||null},getNodeName:function(){return this.__eT},setNodeName:function(a){this.__eT=a},setRoot:function(a){this.__db=a},useMarkup:function(a){if(this.__fd)throw Error("Could not overwrite existing element!");
var b=qx.core.Environment.get("engine.name")=="mshtml"?document.createElement("div"):qx.bom.Element.getHelperElement();b.innerHTML=a;this.useElement(b.firstChild);return this.__fd},useElement:function(a){if(this.__fd)throw Error("Could not overwrite existing element!");this.__fd=a;this.__fd.$$element=this.$$hash;this._copyData(true)},isFocusable:function(){var a=this.getAttribute("tabIndex");if(a>=1)return true;var b=qx.event.handler.Focus.FOCUSABLE_ELEMENTS;return a>=0&&b[this.__eT]?true:false},
setSelectable:function(a){this.setAttribute("qxSelectable",a?"on":"off");var b=qx.core.Environment.get("css.userselect");b&&this.setStyle(b,a?"text":qx.core.Environment.get("css.userselect.none"))},isNativelyFocusable:function(){return!!qx.event.handler.Focus.FOCUSABLE_ELEMENTS[this.__eT]},include:function(){if(!this.__fe)return delete this.__fe,this.__fr&&this.__fr._scheduleChildrenUpdate(),this},exclude:function(){if(this.__fe)return this.__fe=false,this.__fr&&this.__fr._scheduleChildrenUpdate(),
this},isIncluded:function(){return this.__fe===true},show:function(){this.__ff||(this.__fd&&(qx.html.Element._visibility[this.$$hash]=this,qx.html.Element._scheduleFlush("element")),this.__fr&&this.__fr._scheduleChildrenUpdate(),delete this.__ff)},hide:function(){if(this.__ff)this.__fd&&(qx.html.Element._visibility[this.$$hash]=this,qx.html.Element._scheduleFlush("element")),this.__ff=false},isVisible:function(){return this.__ff===true},scrollChildIntoViewX:function(a,b,c){var d=this.__fd,e=a.getDomElement();
c!==false&&d&&d.offsetWidth&&e&&e.offsetWidth?qx.bom.element.Scroll.intoViewX(e,d,b):(this.__fg={element:a,align:b},qx.html.Element._scroll[this.$$hash]=this,qx.html.Element._scheduleFlush("element"));delete this.__fi},scrollChildIntoViewY:function(a,b,c){var d=this.__fd,e=a.getDomElement();c!==false&&d&&d.offsetWidth&&e&&e.offsetWidth?qx.bom.element.Scroll.intoViewY(e,d,b):(this.__fh={element:a,align:b},qx.html.Element._scroll[this.$$hash]=this,qx.html.Element._scheduleFlush("element"));delete this.__fj},
scrollToX:function(a,b){var c=this.__fd;b!==true&&c&&c.offsetWidth?(c.scrollLeft=a,delete this.__fi):(this.__fi=a,qx.html.Element._scroll[this.$$hash]=this,qx.html.Element._scheduleFlush("element"));delete this.__fg},getScrollX:function(){var a=this.__fd;return a?a.scrollLeft:this.__fi||0},scrollToY:function(a,b){var c=this.__fd;b!==true&&c&&c.offsetWidth?(c.scrollTop=a,delete this.__fj):(this.__fj=a,qx.html.Element._scroll[this.$$hash]=this,qx.html.Element._scheduleFlush("element"));delete this.__fh},
getScrollY:function(){var a=this.__fd;return a?a.scrollTop:this.__fj||0},disableScrolling:function(){this.enableScrolling();this.scrollToX(0);this.scrollToY(0);this.addListener("scroll",this.__fy,this)},enableScrolling:function(){this.removeListener("scroll",this.__fy,this)},__fx:null,__fy:function(){if(!this.__fx)this.__fx=true,this.__fd.scrollTop=0,this.__fd.scrollLeft=0,delete this.__fx},getTextSelection:function(){var a=this.__fd;return a?qx.bom.Selection.get(a):null},getTextSelectionLength:function(){var a=
this.__fd;return a?qx.bom.Selection.getLength(a):null},getTextSelectionStart:function(){var a=this.__fd;return a?qx.bom.Selection.getStart(a):null},getTextSelectionEnd:function(){var a=this.__fd;return a?qx.bom.Selection.getEnd(a):null},setTextSelection:function(a,b){var c=this.__fd;c?qx.bom.Selection.set(c,a,b):(qx.html.Element.__eW[this.toHashCode()]={element:this,start:a,end:b},qx.html.Element._scheduleFlush("element"))},clearTextSelection:function(){var a=this.__fd;a&&qx.bom.Selection.clear(a);
delete qx.html.Element.__eW[this.toHashCode()]},__fz:function(a,b){qx.html.Element._actions.push({type:a,element:this,args:b||[]});qx.html.Element._scheduleFlush("element")},focus:function(){this.__fz("focus")},blur:function(){this.__fz("blur")},activate:function(){this.__fz("activate")},deactivate:function(){this.__fz("deactivate")},capture:function(a){this.__fz("capture",[a!==false])},releaseCapture:function(){this.__fz("releaseCapture")},setStyle:function(a,b,c){if(!this.__eU)this.__eU={};if(this.__eU[a]!=
b){b==null?delete this.__eU[a]:this.__eU[a]=b;if(this.__fd){if(c)return qx.bom.element.Style.set(this.__fd,a,b),this;if(!this.__fk)this.__fk={};this.__fk[a]=true;qx.html.Element._modified[this.$$hash]=this;qx.html.Element._scheduleFlush("element")}return this}},setStyles:function(a,b){var c=qx.bom.element.Style;if(!this.__eU)this.__eU={};if(this.__fd){if(!this.__fk)this.__fk={};for(var d in a){var e=a[d];this.__eU[d]!=e&&(e==null?delete this.__eU[d]:this.__eU[d]=e,b?c.set(this.__fd,d,e):this.__fk[d]=
true)}qx.html.Element._modified[this.$$hash]=this;qx.html.Element._scheduleFlush("element")}else for(d in a)e=a[d],this.__eU[d]!=e&&(e==null?delete this.__eU[d]:this.__eU[d]=e);return this},removeStyle:function(a,b){this.setStyle(a,null,b)},getStyle:function(a){return this.__eU?this.__eU[a]:null},getAllStyles:function(){return this.__eU||null},setAttribute:function(a,b,c){if(!this.__eV)this.__eV={};if(this.__eV[a]!=b){b==null?delete this.__eV[a]:this.__eV[a]=b;if(this.__fd){if(c)return qx.bom.element.Attribute.set(this.__fd,
a,b),this;if(!this.__fl)this.__fl={};this.__fl[a]=true;qx.html.Element._modified[this.$$hash]=this;qx.html.Element._scheduleFlush("element")}return this}},setAttributes:function(a,b){for(var c in a)this.setAttribute(c,a[c],b);return this},removeAttribute:function(a,b){this.setAttribute(a,null,b)},getAttribute:function(a){return this.__eV?this.__eV[a]:null},_applyProperty:function(){},_setProperty:function(a,b,c){if(!this.__fn)this.__fn={};if(this.__fn[a]!=b){b==null?delete this.__fn[a]:this.__fn[a]=
b;if(this.__fd){if(c)return this._applyProperty(a,b),this;if(!this.__fm)this.__fm={};this.__fm[a]=true;qx.html.Element._modified[this.$$hash]=this;qx.html.Element._scheduleFlush("element")}return this}},_removeProperty:function(a,b){this._setProperty(a,null,b)},_getProperty:function(a){var b=this.__fn;if(!b)return null;a=b[a];return a==null?null:a},addListener:function(a,b,c,d){if(this.$$disposed)return null;if(qx.core.Environment.get("qx.debug")){var e="Failed to add event listener for type '"+a+
"' to the target '"+this+"': ";this.assertString(a,e+"Invalid event type.");this.assertFunction(b,e+"Invalid callback function");c!==void 0&&this.assertObject(c,"Invalid context for callback.");d!==void 0&&this.assertBoolean(d,"Invalid capture flag.")}if(this.__fd)return qx.event.Registration.addListener(this.__fd,a,b,c,d);if(!this.__fo)this.__fo={};d==null&&(d=false);var e=qx.event.Manager.getNextUniqueId(),f=a+(d?"|capture|":"|bubble|")+e;this.__fo[f]={type:a,listener:b,self:c,capture:d,unique:e};
return f},removeListener:function(a,b,c,d){if(this.$$disposed)return null;if(qx.core.Environment.get("qx.debug")){var e="Failed to remove event listener for type '"+a+"' from the target '"+this+"': ";this.assertString(a,e+"Invalid event type.");this.assertFunction(b,e+"Invalid callback function");c!==void 0&&this.assertObject(c,"Invalid context for callback.");d!==void 0&&this.assertBoolean(d,"Invalid capture flag.")}if(this.__fd)qx.event.Registration.removeListener(this.__fd,a,b,c,d);else{var e=
this.__fo,f;d==null&&(d=false);for(var g in e)if(f=e[g],f.listener===b&&f.self===c&&f.capture===d&&f.type===a){delete e[g];break}}return this},removeListenerById:function(a){if(this.$$disposed)return null;this.__fd?qx.event.Registration.removeListenerById(this.__fd,a):delete this.__fo[a];return this},hasListener:function(a,b){if(this.$$disposed)return false;if(this.__fd)return qx.event.Registration.hasListener(this.__fd,a,b);var c=this.__fo,d;b==null&&(b=false);for(var e in c)if(d=c[e],d.capture===
b&&d.type===a)return true;return false}},defer:function(a){a.__fA=new qx.util.DeferredCall(a.flush,a)},destruct:function(){var a=this.__fd;if(a)qx.event.Registration.getManager(a).removeAllListeners(a),a.$$element="";if(!qx.core.ObjectRegistry.inShutDown)(a=this.__fr)&&!a.$$disposed&&a.remove(this);this._disposeArray("__fp");this.__eV=this.__eU=this.__fo=this.__fn=this.__fl=this.__fk=this.__fm=this.__fd=this.__fr=this.__fg=this.__fh=null}})})();
(function(){qx.Class.define("qx.event.handler.Appear",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__fB={};qx.event.handler.Appear.__fC[this.$$hash]=this},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{appear:true,disappear:true},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,IGNORE_CAN_HANDLE:true,__fC:{},refresh:function(){var a=this.__fC,b;for(b in a)a[b].refresh()}},members:{__eS:null,__fB:null,
canHandleEvent:function(){},registerEvent:function(a,b){var c=qx.core.ObjectRegistry.toHashCode(a)+b,d=this.__fB;if(d&&!d[c])d[c]=a,a.$$displayed=a.offsetWidth>0},unregisterEvent:function(a,b){var c=qx.core.ObjectRegistry.toHashCode(a)+b,d=this.__fB;d&&d[c]&&delete d[c]},refresh:function(){var a=this.__fB,b,c;for(c in a){b=a[c];var d=b.offsetWidth>0;if(!!b.$$displayed!==d)b.$$displayed=d,d=qx.event.Registration.createEvent(d?"appear":"disappear"),this.__eS.dispatchEvent(b,d)}}},destruct:function(){this.__eS=
this.__fB=null;delete qx.event.handler.Appear.__fC[this.$$hash]},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.dispatch.AbstractBubbling",{extend:qx.core.Object,implement:qx.event.IEventDispatcher,type:"abstract",construct:function(a){this._manager=a},members:{_getParent:function(){throw Error("Missing implementation");},canDispatchEvent:function(a,b){return b.getBubbles()},dispatchEvent:function(a,b,c){var d=a,e=this._manager,f,g,h=[];f=e.getListeners(a,c,true);g=e.getListeners(a,c,false);f&&h.push(f);g&&h.push(g);for(var d=this._getParent(a),i=[],j=[],k=[],l=[];d!=null;){if(f=
e.getListeners(d,c,true))k.push(f),l.push(d);if(g=e.getListeners(d,c,false))i.push(g),j.push(d);d=this._getParent(d)}b.setEventPhase(qx.event.type.Event.CAPTURING_PHASE);for(var m=k.length-1;m>=0;m--){g=l[m];b.setCurrentTarget(g);for(var d=k[m],n=0,o=d.length;n<o;n++)e=d[n],f=e.context||g,qx.core.Environment.get("qx.debug")&&f&&f.isDisposed&&f.isDisposed()&&this.warn("The context object '"+f+"' for the event '"+c+"' of '"+g+"'is already disposed."),e.handler.call(f,b);if(b.getPropagationStopped())return}b.setEventPhase(qx.event.type.Event.AT_TARGET);
b.setCurrentTarget(a);m=0;for(k=h.length;m<k;m++){d=h[m];n=0;for(o=d.length;n<o;n++)e=d[n],f=e.context||a,qx.core.Environment.get("qx.debug")&&f&&f.isDisposed&&f.isDisposed()&&this.warn("The context object '"+f+"' for the event '"+c+"' of '"+a+"'is already disposed."),e.handler.call(f,b);if(b.getPropagationStopped())return}b.setEventPhase(qx.event.type.Event.BUBBLING_PHASE);m=0;for(k=i.length;m<k;m++){g=j[m];b.setCurrentTarget(g);d=i[m];n=0;for(o=d.length;n<o;n++)e=d[n],f=e.context||g,qx.core.Environment.get("qx.debug")&&
f&&f.isDisposed&&f.isDisposed()&&this.warn("The context object '"+f+"' for the event '"+c+"' of '"+g+"'is already disposed."),e.handler.call(f,b);if(b.getPropagationStopped())break}}}})})();(function(){qx.Class.define("qx.event.dispatch.DomBubbling",{extend:qx.event.dispatch.AbstractBubbling,statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL},members:{_getParent:function(a){return a.parentNode},canDispatchEvent:function(a,b){return a.nodeType!==void 0&&b.getBubbles()}},defer:function(a){qx.event.Registration.addDispatcher(a)}})})();
(function(){qx.Class.define("qx.event.handler.Element",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this._manager=a;this._registeredEvents={}},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{abort:true,load:true,scroll:true,select:true,reset:true,submit:true},CANCELABLE:{selectstart:true},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,IGNORE_CAN_HANDLE:false},members:{canHandleEvent:function(a,b){return b==="load"?
a.tagName.toLowerCase()!=="iframe":true},registerEvent:function(a,b){var c=qx.core.ObjectRegistry.toHashCode(a)+"-"+b,d=qx.lang.Function.listener(this._onNative,this,c);qx.bom.Event.addNativeListener(a,b,d);this._registeredEvents[c]={element:a,type:b,listener:d}},unregisterEvent:function(a,b){if(this._registeredEvents){var c=qx.core.ObjectRegistry.toHashCode(a)+"-"+b,d=this._registeredEvents[c];d&&qx.bom.Event.removeNativeListener(a,b,d.listener);delete this._registeredEvents[c]}},_onNative:qx.event.GlobalError.observeMethod(function(a,
b){var c=this._registeredEvents;c&&(c=c[b],qx.event.Registration.fireNonBubblingEvent(c.element,c.type,qx.event.type.Native,[a,void 0,void 0,void 0,this.constructor.CANCELABLE[c.type]]))})},destruct:function(){var a,b=this._registeredEvents,c;for(c in b)a=b[c],qx.bom.Event.removeNativeListener(a.element,a.type,a.listener);this._manager=this._registeredEvents=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.handler.UserAction",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__cy=a.getWindow()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{useraction:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{__eS:null,__cy:null,canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){}},destruct:function(){this.__eS=
this.__cy=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.handler.Mouse",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__cy=a.getWindow();this.__db=this.__cy.document;this._initButtonObserver();this._initMoveObserver();this._initWheelObserver()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{mousemove:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,click:1,dblclick:1,contextmenu:1,mousewheel:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE+
qx.event.IEventHandler.TARGET_DOCUMENT+qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{__fD:null,__fE:null,__fF:null,__fG:null,__fH:null,__eS:null,__cy:null,__db:null,canHandleEvent:function(){},registerEvent:qx.core.Environment.get("os.name")==="ios"?function(a,b){a["on"+b]=qx.lang.Function.returnNull}:qx.lang.Function.returnNull,unregisterEvent:qx.core.Environment.get("os.name")==="ios"?function(a,b){a["on"+b]=void 0}:qx.lang.Function.returnNull,__fI:function(a,b,c){c||(c=
qx.bom.Event.getTarget(a));c&&c.nodeType&&qx.event.Registration.fireEvent(c,b||a.type,b=="mousewheel"?qx.event.type.MouseWheel:qx.event.type.Mouse,[a,c,null,true,true]);qx.event.Registration.fireEvent(this.__cy,"useraction",qx.event.type.Data,[b||a.type])},__fJ:function(){for(var a=[this.__cy,this.__db,this.__db.body],b=this.__cy,c="DOMMouseScroll",d=0;d<a.length;d++)if(qx.bom.Event.supportsEvent(a[d],"mousewheel")){c="mousewheel";b=a[d];break}return{type:c,target:b}},_initButtonObserver:function(){this.__fD=
qx.lang.Function.listener(this._onButtonEvent,this);var a=qx.bom.Event;a.addNativeListener(this.__db,"mousedown",this.__fD);a.addNativeListener(this.__db,"mouseup",this.__fD);a.addNativeListener(this.__db,"click",this.__fD);a.addNativeListener(this.__db,"dblclick",this.__fD);a.addNativeListener(this.__db,"contextmenu",this.__fD)},_initMoveObserver:function(){this.__fE=qx.lang.Function.listener(this._onMoveEvent,this);var a=qx.bom.Event;a.addNativeListener(this.__db,"mousemove",this.__fE);a.addNativeListener(this.__db,
"mouseover",this.__fE);a.addNativeListener(this.__db,"mouseout",this.__fE)},_initWheelObserver:function(){this.__fF=qx.lang.Function.listener(this._onWheelEvent,this);var a=this.__fJ();qx.bom.Event.addNativeListener(a.target,a.type,this.__fF)},_stopButtonObserver:function(){var a=qx.bom.Event;a.removeNativeListener(this.__db,"mousedown",this.__fD);a.removeNativeListener(this.__db,"mouseup",this.__fD);a.removeNativeListener(this.__db,"click",this.__fD);a.removeNativeListener(this.__db,"dblclick",this.__fD);
a.removeNativeListener(this.__db,"contextmenu",this.__fD)},_stopMoveObserver:function(){var a=qx.bom.Event;a.removeNativeListener(this.__db,"mousemove",this.__fE);a.removeNativeListener(this.__db,"mouseover",this.__fE);a.removeNativeListener(this.__db,"mouseout",this.__fE)},_stopWheelObserver:function(){var a=this.__fJ();qx.bom.Event.removeNativeListener(a.target,a.type,this.__fF)},_onMoveEvent:qx.event.GlobalError.observeMethod(function(a){this.__fI(a)}),_onButtonEvent:qx.event.GlobalError.observeMethod(function(a){var b=
a.type,c=qx.bom.Event.getTarget(a);if((qx.core.Environment.get("engine.name")=="gecko"||qx.core.Environment.get("engine.name")=="webkit")&&c&&c.nodeType==3)c=c.parentNode;this.__fK&&this.__fK(a,b,c);this.__fM&&this.__fM(a,b,c);this.__fI(a,b,c);this.__fL&&this.__fL(a,b,c);this.__fN&&this.__fN(a,b,c);this.__fG=b}),_onWheelEvent:qx.event.GlobalError.observeMethod(function(a){this.__fI(a,"mousewheel")}),__fK:qx.core.Environment.select("engine.name",{webkit:function(a,b,c){parseFloat(qx.core.Environment.get("engine.version"))<
530&&b=="contextmenu"&&this.__fI(a,"mouseup",c)},"default":null}),__fL:qx.core.Environment.select("engine.name",{opera:function(a,b,c){b=="mouseup"&&a.button==2&&this.__fI(a,"contextmenu",c)},"default":null}),__fM:qx.core.Environment.select("engine.name",{mshtml:function(a,b,c){a.target===void 0&&(b=="mouseup"&&this.__fG=="click"?this.__fI(a,"mousedown",c):b=="dblclick"&&this.__fI(a,"click",c))},"default":null}),__fN:qx.core.Environment.select("engine.name",{mshtml:null,"default":function(a,b,c){switch(b){case "mousedown":this.__fH=
c;break;case "mouseup":c!==this.__fH&&(b=qx.dom.Hierarchy.getCommonParent(c,this.__fH),this.__fI(a,"click",b))}}})},destruct:function(){this._stopButtonObserver();this._stopMoveObserver();this._stopWheelObserver();this.__eS=this.__cy=this.__db=this.__fH=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.type.Dom",{extend:qx.event.type.Native,statics:{SHIFT_MASK:1,CTRL_MASK:2,ALT_MASK:4,META_MASK:8},members:{_cloneNativeEvent:function(a,b){b=qx.event.type.Native.prototype._cloneNativeEvent.call(this,a,b);b.shiftKey=a.shiftKey;b.ctrlKey=a.ctrlKey;b.altKey=a.altKey;b.metaKey=a.metaKey;return b},getModifiers:function(){var a=0,b=this._native;b.shiftKey&&(a|=qx.event.type.Dom.SHIFT_MASK);b.ctrlKey&&(a|=qx.event.type.Dom.CTRL_MASK);b.altKey&&(a|=qx.event.type.Dom.ALT_MASK);
b.metaKey&&(a|=qx.event.type.Dom.META_MASK);return a},isCtrlPressed:function(){return this._native.ctrlKey},isShiftPressed:function(){return this._native.shiftKey},isAltPressed:function(){return this._native.altKey},isMetaPressed:function(){return this._native.metaKey},isCtrlOrCommandPressed:function(){return qx.core.Environment.get("os.name")=="osx"&&qx.core.Environment.get("engine.name")!="opera"?this._native.metaKey:this._native.ctrlKey}}})})();
(function(){qx.Class.define("qx.event.type.Mouse",{extend:qx.event.type.Dom,members:{_cloneNativeEvent:function(a,b){b=qx.event.type.Dom.prototype._cloneNativeEvent.call(this,a,b);b.button=a.button;b.clientX=a.clientX;b.clientY=a.clientY;b.pageX=a.pageX;b.pageY=a.pageY;b.screenX=a.screenX;b.screenY=a.screenY;b.wheelDelta=a.wheelDelta;b.wheelDeltaX=a.wheelDeltaX;b.wheelDeltaY=a.wheelDeltaY;b.detail=a.detail;b.axis=a.axis;b.wheelX=a.wheelX;b.wheelY=a.wheelY;b.HORIZONTAL_AXIS=a.HORIZONTAL_AXIS;b.srcElement=
a.srcElement;b.target=a.target;return b},__fO:{0:"left",2:"right",1:"middle"},__fP:{1:"left",2:"right",4:"middle"},stop:function(){this.stopPropagation()},getButton:function(){switch(this._type){case "contextmenu":return"right";case "click":if(qx.core.Environment.get("browser.name")==="ie"&&qx.core.Environment.get("browser.documentmode")<9)return"left";default:return this._native.target!==void 0?this.__fO[this._native.button]||"none":this.__fP[this._native.button]||"none"}},isLeftPressed:function(){return this.getButton()===
"left"},isMiddlePressed:function(){return this.getButton()==="middle"},isRightPressed:function(){return this.getButton()==="right"},getRelatedTarget:function(){return this._relatedTarget},getViewportLeft:function(){return this._native.clientX},getViewportTop:function(){return this._native.clientY},getDocumentLeft:function(){if(this._native.pageX!==void 0)return this._native.pageX;else{var a=qx.dom.Node.getWindow(this._native.srcElement);return this._native.clientX+qx.bom.Viewport.getScrollLeft(a)}},
getDocumentTop:function(){if(this._native.pageY!==void 0)return this._native.pageY;else{var a=qx.dom.Node.getWindow(this._native.srcElement);return this._native.clientY+qx.bom.Viewport.getScrollTop(a)}},getScreenLeft:function(){return this._native.screenX},getScreenTop:function(){return this._native.screenY}}})})();
(function(){qx.Class.define("qx.event.type.MouseWheel",{extend:qx.event.type.Mouse,statics:{MAXSCROLL:null,MINSCROLL:null,FACTOR:1},members:{stop:function(){this.stopPropagation();this.preventDefault()},__fQ:function(a){var b=Math.abs(a);if(qx.event.type.MouseWheel.MINSCROLL==null||qx.event.type.MouseWheel.MINSCROLL>b)qx.event.type.MouseWheel.MINSCROLL=b,this.__fR();if(qx.event.type.MouseWheel.MAXSCROLL==null||qx.event.type.MouseWheel.MAXSCROLL<b)qx.event.type.MouseWheel.MAXSCROLL=b,this.__fR();if(qx.event.type.MouseWheel.MAXSCROLL===
b&&qx.event.type.MouseWheel.MINSCROLL===b)return 2*(a/b);b=qx.event.type.MouseWheel.MAXSCROLL-qx.event.type.MouseWheel.MINSCROLL;a=a/b*Math.log(b)*qx.event.type.MouseWheel.FACTOR;return a<0?Math.min(a,-1):Math.max(a,1)},__fR:function(){var a=qx.event.type.MouseWheel.MAXSCROLL||0,b=qx.event.type.MouseWheel.MINSCROLL||a;if(!(a<=b))b=a-b,a=a/b*Math.log(b),a==0&&(a=1),qx.event.type.MouseWheel.FACTOR=6/a},getWheelDelta:function(a){var b=this._native;if(a===void 0){if(c===void 0){var c=-b.wheelDelta;if(b.wheelDelta===
void 0)c=b.detail}return this.__fS(c)}if(a==="x")return a=0,b.wheelDelta!==void 0?b.wheelDeltaX!==void 0&&(a=b.wheelDeltaX?this.__fS(-b.wheelDeltaX):0):b.axis&&b.axis==b.HORIZONTAL_AXIS&&(a=this.__fS(b.detail)),a;return a==="y"?(a=0,b.wheelDelta!==void 0?a=b.wheelDeltaY!==void 0?b.wheelDeltaY?this.__fS(-b.wheelDeltaY):0:this.__fS(-b.wheelDelta):b.axis&&b.axis==b.HORIZONTAL_AXIS||(a=this.__fS(b.detail)),a):0},__fS:function(a){return qx.core.Environment.get("qx.dynamicmousewheel")?this.__fQ(a):qx.core.Environment.select("engine.name",
{"default":function(){return a/40},gecko:function(){return a},webkit:function(){if(qx.core.Environment.get("browser.name")=="chrome")return qx.core.Environment.get("os.name")=="osx"?a/60:a/120;else{if(qx.core.Environment.get("os.name")=="win"){var b=120;parseFloat(qx.core.Environment.get("engine.version"))==533.16&&(b=1200)}else if(b=40,parseFloat(qx.core.Environment.get("engine.version"))==533.16||parseFloat(qx.core.Environment.get("engine.version"))==533.17||parseFloat(qx.core.Environment.get("engine.version"))==
533.18)b=1200;return a/b}}}).call(this)}}})})();
(function(){qx.Class.define("qx.dom.Hierarchy",{statics:{getNodeIndex:function(a){for(var b=0;a&&(a=a.previousSibling);)b++;return b},getElementIndex:function(a){for(var b=0,c=qx.dom.Node.ELEMENT;a&&(a=a.previousSibling);)a.nodeType==c&&b++;return b},getNextElementSibling:function(a){for(;a&&(a=a.nextSibling)&&!qx.dom.Node.isElement(a););return a||null},getPreviousElementSibling:function(a){for(;a&&(a=a.previousSibling)&&!qx.dom.Node.isElement(a););return a||null},contains:function(a,b){if(qx.core.Environment.get("html.element.contains"))if(qx.dom.Node.isDocument(a)){var c=
qx.dom.Node.getDocument(b);return a&&c==a}else return qx.dom.Node.isDocument(b)?false:a.contains(b);else if(qx.core.Environment.get("html.element.compareDocumentPosition"))return!!(a.compareDocumentPosition(b)&16);else{for(;b;){if(a==b)return true;b=b.parentNode}return false}},isRendered:function(a){var b=a.ownerDocument||a.document;if(qx.core.Environment.get("html.element.contains"))return!a.parentNode||!a.offsetParent?false:b.body.contains(a);else if(qx.core.Environment.get("html.element.compareDocumentPosition"))return!!(b.compareDocumentPosition(a)&
16);else{for(;a;){if(a==b.body)return true;a=a.parentNode}return false}},isDescendantOf:function(a,b){return this.contains(b,a)},getCommonParent:function(a,b){if(a===b)return a;if(qx.core.Environment.get("html.element.contains"))for(;a&&qx.dom.Node.isElement(a);){if(a.contains(b))return a;a=a.parentNode}else for(var c={},d=qx.core.ObjectRegistry,e;a||b;){if(a){e=d.toHashCode(a);if(c[e])return c[e];c[e]=a;a=a.parentNode}if(b){e=d.toHashCode(b);if(c[e])return c[e];c[e]=b;b=b.parentNode}}return null},
getAncestors:function(a){return this._recursivelyCollect(a,"parentNode")},getChildElements:function(a){a=a.firstChild;if(!a)return[];var b=this.getNextSiblings(a);a.nodeType===1&&b.unshift(a);return b},getDescendants:function(a){return qx.lang.Array.fromCollection(a.getElementsByTagName("*"))},getFirstDescendant:function(a){for(a=a.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;return a},getLastDescendant:function(a){for(a=a.lastChild;a&&a.nodeType!=1;)a=a.previousSibling;return a},getPreviousSiblings:function(a){return this._recursivelyCollect(a,
"previousSibling")},getNextSiblings:function(a){return this._recursivelyCollect(a,"nextSibling")},_recursivelyCollect:function(a,b){for(var c=[];a=a[b];)a.nodeType==1&&c.push(a);return c},getSiblings:function(a){return this.getPreviousSiblings(a).reverse().concat(this.getNextSiblings(a))},isEmpty:function(a){for(a=a.firstChild;a;){if(a.nodeType===qx.dom.Node.ELEMENT||a.nodeType===qx.dom.Node.TEXT)return false;a=a.nextSibling}return true},cleanWhitespace:function(a){for(var b=a.firstChild;b;){var c=
b.nextSibling;b.nodeType==3&&!/\S/.test(b.nodeValue)&&a.removeChild(b);b=c}}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Html",{statics:{getWebWorker:function(){return window.Worker!=null},getFileReader:function(){return window.FileReader!=null},getGeoLocation:function(){return navigator.geolocation!=null},getAudio:function(){return!!document.createElement("audio").canPlayType},getAudioOgg:function(){return!qx.bom.client.Html.getAudio()?"":document.createElement("audio").canPlayType("audio/ogg")},getAudioMp3:function(){return!qx.bom.client.Html.getAudio()?"":document.createElement("audio").canPlayType("audio/mpeg")},
getAudioWav:function(){return!qx.bom.client.Html.getAudio()?"":document.createElement("audio").canPlayType("audio/x-wav")},getAudioAu:function(){return!qx.bom.client.Html.getAudio()?"":document.createElement("audio").canPlayType("audio/basic")},getAudioAif:function(){return!qx.bom.client.Html.getAudio()?"":document.createElement("audio").canPlayType("audio/x-aiff")},getVideo:function(){return!!document.createElement("video").canPlayType},getVideoOgg:function(){return!qx.bom.client.Html.getVideo()?
"":document.createElement("video").canPlayType('video/ogg; codecs="theora, vorbis"')},getVideoH264:function(){return!qx.bom.client.Html.getVideo()?"":document.createElement("video").canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"')},getVideoWebm:function(){return!qx.bom.client.Html.getVideo()?"":document.createElement("video").canPlayType('video/webm; codecs="vp8, vorbis"')},getLocalStorage:function(){try{return window.localStorage!=null}catch(a){return false}},getSessionStorage:function(){try{return window.sessionStorage!=
null}catch(a){return false}},getClassList:function(){return!!(document.documentElement.classList&&qx.Bootstrap.getClass(document.documentElement.classList)==="DOMTokenList")},getXPath:function(){return!!document.evaluate},getXul:function(){try{return document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","label"),true}catch(a){return false}},getSvg:function(){return document.implementation&&document.implementation.hasFeature&&(document.implementation.hasFeature("org.w3c.dom.svg",
"1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))},getVml:function(){return qx.bom.client.Engine.getName()=="mshtml"},getCanvas:function(){return!!window.CanvasRenderingContext2D},getDataUrl:function(a){var b=new Image;b.onload=b.onerror=function(){window.setTimeout(function(){a.call(null,b.width==1&&b.height==1)},0)};b.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="},getDataset:function(){return!!document.documentElement.dataset},
getContains:function(){return typeof document.documentElement.contains!=="undefined"},getCompareDocumentPosition:function(){return typeof document.documentElement.compareDocumentPosition==="function"},getTextContent:function(){return typeof document.createElement("span").textContent!=="undefined"},getConsole:function(){return typeof window.console!=="undefined"},getNaturalDimensions:function(){var a=document.createElement("img");return typeof a.naturalHeight==="number"&&typeof a.naturalWidth==="number"}},
defer:function(a){qx.core.Environment.add("html.webworker",a.getWebWorker);qx.core.Environment.add("html.filereader",a.getFileReader);qx.core.Environment.add("html.geolocation",a.getGeoLocation);qx.core.Environment.add("html.audio",a.getAudio);qx.core.Environment.add("html.audio.ogg",a.getAudioOgg);qx.core.Environment.add("html.audio.mp3",a.getAudioMp3);qx.core.Environment.add("html.audio.wav",a.getAudioWav);qx.core.Environment.add("html.audio.au",a.getAudioAu);qx.core.Environment.add("html.audio.aif",
a.getAudioAif);qx.core.Environment.add("html.video",a.getVideo);qx.core.Environment.add("html.video.ogg",a.getVideoOgg);qx.core.Environment.add("html.video.h264",a.getVideoH264);qx.core.Environment.add("html.video.webm",a.getVideoWebm);qx.core.Environment.add("html.storage.local",a.getLocalStorage);qx.core.Environment.add("html.storage.session",a.getSessionStorage);qx.core.Environment.add("html.classlist",a.getClassList);qx.core.Environment.add("html.xpath",a.getXPath);qx.core.Environment.add("html.xul",
a.getXul);qx.core.Environment.add("html.canvas",a.getCanvas);qx.core.Environment.add("html.svg",a.getSvg);qx.core.Environment.add("html.vml",a.getVml);qx.core.Environment.add("html.dataset",a.getDataset);qx.core.Environment.addAsync("html.dataurl",a.getDataUrl);qx.core.Environment.add("html.element.contains",a.getContains);qx.core.Environment.add("html.element.compareDocumentPosition",a.getCompareDocumentPosition);qx.core.Environment.add("html.element.textcontent",a.getTextContent);qx.core.Environment.add("html.console",
a.getConsole);qx.core.Environment.add("html.image.naturaldimensions",a.getNaturalDimensions)}})})();
(function(){qx.Class.define("qx.event.handler.Keyboard",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__cy=a.getWindow();this.__db=qx.core.Environment.get("engine.name")=="gecko"?this.__cy:this.__cy.document.documentElement;this.__fT={};this._initKeyObserver()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{keyup:1,keydown:1,keypress:1,keyinput:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:true,isValidKeyIdentifier:function(a){if(this._identifierToKeyCodeMap[a])return true;if(a.length!=1)return false;if(a>="0"&&a<="9")return true;if(a>="A"&&a<="Z")return true;switch(a){case "+":case "-":case "*":case "/":return true;default:return false}},isPrintableKeyIdentifier:function(a){return a==="Space"?true:this._identifierToKeyCodeMap[a]?false:true}},members:{__fU:null,__eS:null,__cy:null,__db:null,__fT:null,__fV:null,__fW:null,__fX:null,canHandleEvent:function(){},registerEvent:function(){},
unregisterEvent:function(){},_fireInputEvent:function(a,b){var c=this.__fY();if(c&&c.offsetWidth!=0){var d=qx.event.Registration.createEvent("keyinput",qx.event.type.KeyInput,[a,c,b]);this.__eS.dispatchEvent(c,d)}this.__cy&&qx.event.Registration.fireEvent(this.__cy,"useraction",qx.event.type.Data,["keyinput"])},_fireSequenceEvent:function(a,b,c){var d=this.__fY(),e=a.keyCode,f=qx.event.Registration.createEvent(b,qx.event.type.KeySequence,[a,d,c]);this.__eS.dispatchEvent(d,f);(qx.core.Environment.get("engine.name")==
"mshtml"||qx.core.Environment.get("engine.name")=="webkit")&&b=="keydown"&&f.getDefaultPrevented()&&!this._isNonPrintableKeyCode(e)&&!this._emulateKeyPress[e]&&this._fireSequenceEvent(a,"keypress",c);this.__cy&&qx.event.Registration.fireEvent(this.__cy,"useraction",qx.event.type.Data,[b])},__fY:function(){var a=this.__eS.getHandler(qx.event.handler.Focus),b=a.getActive();if(!b||b.offsetWidth==0)b=a.getFocus();if(!b||b.offsetWidth==0)b=this.__eS.getWindow().document.body;return b},_initKeyObserver:function(){this.__fU=
qx.lang.Function.listener(this.__ga,this);this.__fX=qx.lang.Function.listener(this.__gc,this);var a=qx.bom.Event;a.addNativeListener(this.__db,"keyup",this.__fU);a.addNativeListener(this.__db,"keydown",this.__fU);a.addNativeListener(this.__db,"keypress",this.__fX)},_stopKeyObserver:function(){var a=qx.bom.Event;a.removeNativeListener(this.__db,"keyup",this.__fU);a.removeNativeListener(this.__db,"keydown",this.__fU);a.removeNativeListener(this.__db,"keypress",this.__fX);for(var b in this.__fW||{}){var c=
this.__fW[b];a.removeNativeListener(c.target,"keypress",c.callback)}delete this.__fW},__ga:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{mshtml:function(a){var a=window.event||a,b=a.keyCode,c=a.type;this.__fT[b]=="keydown"&&c=="keydown"||this._idealKeyHandler(b,0,c,a);c=="keydown"&&(this._isNonPrintableKeyCode(b)||this._emulateKeyPress[b])&&this._idealKeyHandler(b,0,"keypress",a);this.__fT[b]=c},gecko:function(a){var b=this._keyCodeFix[a.keyCode]||a.keyCode,c=a.type;
if(qx.core.Environment.get("os.name")=="win"){var d=b?this._keyCodeToIdentifier(b):this._charCodeToIdentifier(0);this.__fT[d]=="keydown"&&c=="keydown"||this._idealKeyHandler(b,0,c,a);this.__fT[d]=c}else this._idealKeyHandler(b,0,c,a);this.__gb(a.target,c,b)},webkit:function(a){var b=0,c=0,d=a.type;parseFloat(qx.core.Environment.get("engine.version"))<525.13?(d=="keyup"||d=="keydown"?b=this._charCode2KeyCode[a.charCode]||a.keyCode:this._charCode2KeyCode[a.charCode]?b=this._charCode2KeyCode[a.charCode]:
c=a.charCode,this._idealKeyHandler(b,c,d,a)):(b=a.keyCode,this._idealKeyHandler(b,c,d,a),d=="keydown"&&(this._isNonPrintableKeyCode(b)||this._emulateKeyPress[b])&&this._idealKeyHandler(b,c,"keypress",a),this.__fT[b]=d)},opera:function(a){this.__fV=a.keyCode;this._idealKeyHandler(a.keyCode,0,a.type,a)}})),__gb:qx.core.Environment.select("engine.name",{gecko:function(a,b,c){if(b==="keydown"&&(c==33||c==34||c==38||c==40)&&a.type=="text"&&a.tagName.toLowerCase()==="input"&&a.getAttribute("autoComplete")!==
"off"){if(!this.__fW)this.__fW={};b=qx.core.ObjectRegistry.toHashCode(a);if(!this.__fW[b]){var d=this;this.__fW[b]={target:a,callback:function(a){qx.bom.Event.stopPropagation(a);d.__gc(a)}};b=qx.event.GlobalError.observeMethod(this.__fW[b].callback);qx.bom.Event.addNativeListener(a,"keypress",b)}}},"default":null}),__gc:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{mshtml:function(a){a=window.event||a;this._charCode2KeyCode[a.keyCode]?this._idealKeyHandler(this._charCode2KeyCode[a.keyCode],
0,a.type,a):this._idealKeyHandler(0,a.keyCode,a.type,a)},gecko:function(a){this._idealKeyHandler(this._keyCodeFix[a.keyCode]||a.keyCode,a.charCode,a.type,a)},webkit:function(a){if(parseFloat(qx.core.Environment.get("engine.version"))<525.13){var b=0,c=0,d=a.type;d=="keyup"||d=="keydown"?b=this._charCode2KeyCode[a.charCode]||a.keyCode:this._charCode2KeyCode[a.charCode]?b=this._charCode2KeyCode[a.charCode]:c=a.charCode;this._idealKeyHandler(b,c,d,a)}else this._charCode2KeyCode[a.keyCode]?this._idealKeyHandler(this._charCode2KeyCode[a.keyCode],
0,a.type,a):this._idealKeyHandler(0,a.keyCode,a.type,a)},opera:function(a){var b=a.type;a.keyCode!=this.__fV?this._idealKeyHandler(0,this.__fV,b,a):this._keyCodeToIdentifierMap[a.keyCode]?this._idealKeyHandler(a.keyCode,0,a.type,a):this._idealKeyHandler(0,a.keyCode,a.type,a)}})),_idealKeyHandler:function(a,b,c,d){a||!a&&!b?(a=this._keyCodeToIdentifier(a),this._fireSequenceEvent(d,c,a)):(a=this._charCodeToIdentifier(b),this._fireSequenceEvent(d,"keypress",a),this._fireInputEvent(d,b))},_specialCharCodeMap:{8:"Backspace",
9:"Tab",13:"Enter",27:"Escape",32:"Space"},_emulateKeyPress:qx.core.Environment.select("engine.name",{mshtml:{8:true,9:true},webkit:{8:true,9:true,27:true},"default":{}}),_keyCodeToIdentifierMap:{16:"Shift",17:"Control",18:"Alt",20:"CapsLock",224:"Meta",37:"Left",38:"Up",39:"Right",40:"Down",33:"PageUp",34:"PageDown",35:"End",36:"Home",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",44:"PrintScreen",
145:"Scroll",19:"Pause",91:qx.core.Environment.get("os.name")=="osx"?"cmd":"Win",92:"Win",93:qx.core.Environment.get("os.name")=="osx"?"cmd":"Apps"},_numpadToCharCode:{96:"0".charCodeAt(0),97:"1".charCodeAt(0),98:"2".charCodeAt(0),99:"3".charCodeAt(0),100:"4".charCodeAt(0),101:"5".charCodeAt(0),102:"6".charCodeAt(0),103:"7".charCodeAt(0),104:"8".charCodeAt(0),105:"9".charCodeAt(0),106:"*".charCodeAt(0),107:"+".charCodeAt(0),109:"-".charCodeAt(0),110:",".charCodeAt(0),111:"/".charCodeAt(0)},_charCodeA:"A".charCodeAt(0),
_charCodeZ:"Z".charCodeAt(0),_charCode0:"0".charCodeAt(0),_charCode9:"9".charCodeAt(0),_isNonPrintableKeyCode:function(a){return this._keyCodeToIdentifierMap[a]?true:false},_isIdentifiableKeyCode:function(a){return a>=this._charCodeA&&a<=this._charCodeZ?true:a>=this._charCode0&&a<=this._charCode9?true:this._specialCharCodeMap[a]?true:this._numpadToCharCode[a]?true:this._isNonPrintableKeyCode(a)?true:false},_keyCodeToIdentifier:function(a){if(this._isIdentifiableKeyCode(a)){var b=this._numpadToCharCode[a];
return b?String.fromCharCode(b):this._keyCodeToIdentifierMap[a]||this._specialCharCodeMap[a]||String.fromCharCode(a)}else return"Unidentified"},_charCodeToIdentifier:function(a){return this._specialCharCodeMap[a]||String.fromCharCode(a).toUpperCase()},_identifierToKeyCode:function(a){return qx.event.handler.Keyboard._identifierToKeyCodeMap[a]||a.charCodeAt(0)}},destruct:function(){this._stopKeyObserver();this.__fV=this.__eS=this.__cy=this.__db=this.__fT=null},defer:function(a,b){qx.event.Registration.addHandler(a);
if(!a._identifierToKeyCodeMap){a._identifierToKeyCodeMap={};for(var c in b._keyCodeToIdentifierMap)a._identifierToKeyCodeMap[b._keyCodeToIdentifierMap[c]]=parseInt(c,10);for(c in b._specialCharCodeMap)a._identifierToKeyCodeMap[b._specialCharCodeMap[c]]=parseInt(c,10)}if(qx.core.Environment.get("engine.name")=="mshtml")b._charCode2KeyCode={13:13,27:27};else if(qx.core.Environment.get("engine.name")=="gecko")b._keyCodeFix={12:b._identifierToKeyCode("NumLock")};else if(qx.core.Environment.get("engine.name")==
"webkit")b._charCode2KeyCode=parseFloat(qx.core.Environment.get("engine.version"))<525.13?{63289:b._identifierToKeyCode("NumLock"),63276:b._identifierToKeyCode("PageUp"),63277:b._identifierToKeyCode("PageDown"),63275:b._identifierToKeyCode("End"),63273:b._identifierToKeyCode("Home"),63234:b._identifierToKeyCode("Left"),63232:b._identifierToKeyCode("Up"),63235:b._identifierToKeyCode("Right"),63233:b._identifierToKeyCode("Down"),63272:b._identifierToKeyCode("Delete"),63302:b._identifierToKeyCode("Insert"),
63236:b._identifierToKeyCode("F1"),63237:b._identifierToKeyCode("F2"),63238:b._identifierToKeyCode("F3"),63239:b._identifierToKeyCode("F4"),63240:b._identifierToKeyCode("F5"),63241:b._identifierToKeyCode("F6"),63242:b._identifierToKeyCode("F7"),63243:b._identifierToKeyCode("F8"),63244:b._identifierToKeyCode("F9"),63245:b._identifierToKeyCode("F10"),63246:b._identifierToKeyCode("F11"),63247:b._identifierToKeyCode("F12"),63248:b._identifierToKeyCode("PrintScreen"),3:b._identifierToKeyCode("Enter"),
12:b._identifierToKeyCode("NumLock"),13:b._identifierToKeyCode("Enter")}:{13:13,27:27}}})})();(function(){qx.Class.define("qx.event.type.KeyInput",{extend:qx.event.type.Dom,members:{init:function(a,b,c){qx.event.type.Dom.prototype.init.call(this,a,b,null,true,true);this._charCode=c;return this},clone:function(a){a=qx.event.type.Dom.prototype.clone.call(this,a);a._charCode=this._charCode;return a},getCharCode:function(){return this._charCode},getChar:function(){return String.fromCharCode(this._charCode)}}})})();
(function(){qx.Class.define("qx.event.type.KeySequence",{extend:qx.event.type.Dom,members:{init:function(a,b,c){qx.event.type.Dom.prototype.init.call(this,a,b,null,true,true);this._keyCode=a.keyCode;this._identifier=c;return this},clone:function(a){a=qx.event.type.Dom.prototype.clone.call(this,a);a._keyCode=this._keyCode;a._identifier=this._identifier;return a},getKeyIdentifier:function(){return this._identifier},getKeyCode:function(){return this._keyCode},isPrintable:function(){return qx.event.handler.Keyboard.isPrintableKeyIdentifier(this._identifier)}}})})();
(function(){qx.Class.define("qx.event.handler.Focus",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this._manager=a;this._window=a.getWindow();this._document=this._window.document;this._root=this._document.documentElement;this._body=this._document.body;this._initObserver()},properties:{active:{apply:"_applyActive",nullable:true},focus:{apply:"_applyFocus",nullable:true}},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{focus:1,
blur:1,focusin:1,focusout:1,activate:1,deactivate:1},IGNORE_CAN_HANDLE:true,FOCUSABLE_ELEMENTS:qx.core.Environment.select("engine.name",{"mshtml|gecko":{a:1,body:1,button:1,frame:1,iframe:1,img:1,input:1,object:1,select:1,textarea:1},"opera|webkit":{button:1,input:1,select:1,textarea:1}})},members:{__gd:null,__ge:null,__gf:null,__gg:null,__gh:null,__gi:null,__gj:null,__gk:null,__gl:null,__gm:null,canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){},focus:function(a){if(qx.core.Environment.get("engine.name")==
"mshtml")window.setTimeout(function(){try{if(a.focus(),qx.bom.Selection.get(a).length==0){var b=a.createTextRange();b.moveStart("character",a.value.length);b.collapse();b.select()}}catch(d){}},0);else try{a.focus()}catch(b){}this.setFocus(a);this.setActive(a)},activate:function(a){this.setActive(a)},blur:function(a){try{a.blur()}catch(b){}this.getActive()===a&&this.resetActive();this.getFocus()===a&&this.resetFocus()},deactivate:function(a){this.getActive()===a&&this.resetActive()},tryActivate:function(a){(a=
this.__gA(a))&&this.setActive(a)},__fI:function(a,b,c,d){var e=qx.event.Registration,b=e.createEvent(c,qx.event.type.Focus,[a,b,d]);e.dispatchEvent(a,b)},_windowFocused:true,__gn:function(){if(this._windowFocused)this._windowFocused=false,this.__fI(this._window,null,"blur",false)},__go:function(){if(!this._windowFocused)this._windowFocused=true,this.__fI(this._window,null,"focus",false)},_initObserver:qx.core.Environment.select("engine.name",{gecko:function(){this.__gd=qx.lang.Function.listener(this.__gu,
this);this.__ge=qx.lang.Function.listener(this.__gv,this);this.__gf=qx.lang.Function.listener(this.__gt,this);this.__gg=qx.lang.Function.listener(this.__gs,this);this.__gh=qx.lang.Function.listener(this.__gp,this);qx.bom.Event.addNativeListener(this._document,"mousedown",this.__gd,true);qx.bom.Event.addNativeListener(this._document,"mouseup",this.__ge,true);qx.bom.Event.addNativeListener(this._window,"focus",this.__gf,true);qx.bom.Event.addNativeListener(this._window,"blur",this.__gg,true);qx.bom.Event.addNativeListener(this._window,
"draggesture",this.__gh,true)},mshtml:function(){this.__gd=qx.lang.Function.listener(this.__gu,this);this.__ge=qx.lang.Function.listener(this.__gv,this);this.__gj=qx.lang.Function.listener(this.__gq,this);this.__gk=qx.lang.Function.listener(this.__gr,this);this.__gi=qx.lang.Function.listener(this.__gx,this);qx.bom.Event.addNativeListener(this._document,"mousedown",this.__gd);qx.bom.Event.addNativeListener(this._document,"mouseup",this.__ge);qx.bom.Event.addNativeListener(this._document,"focusin",
this.__gj);qx.bom.Event.addNativeListener(this._document,"focusout",this.__gk);qx.bom.Event.addNativeListener(this._document,"selectstart",this.__gi)},webkit:function(){this.__gd=qx.lang.Function.listener(this.__gu,this);this.__ge=qx.lang.Function.listener(this.__gv,this);this.__gk=qx.lang.Function.listener(this.__gr,this);this.__gf=qx.lang.Function.listener(this.__gt,this);this.__gg=qx.lang.Function.listener(this.__gs,this);this.__gi=qx.lang.Function.listener(this.__gx,this);qx.bom.Event.addNativeListener(this._document,
"mousedown",this.__gd,true);qx.bom.Event.addNativeListener(this._document,"mouseup",this.__ge,true);qx.bom.Event.addNativeListener(this._document,"selectstart",this.__gi,false);qx.bom.Event.addNativeListener(this._window,"DOMFocusOut",this.__gk,true);qx.bom.Event.addNativeListener(this._window,"focus",this.__gf,true);qx.bom.Event.addNativeListener(this._window,"blur",this.__gg,true)},opera:function(){this.__gd=qx.lang.Function.listener(this.__gu,this);this.__ge=qx.lang.Function.listener(this.__gv,
this);this.__gj=qx.lang.Function.listener(this.__gq,this);this.__gk=qx.lang.Function.listener(this.__gr,this);qx.bom.Event.addNativeListener(this._document,"mousedown",this.__gd,true);qx.bom.Event.addNativeListener(this._document,"mouseup",this.__ge,true);qx.bom.Event.addNativeListener(this._window,"DOMFocusIn",this.__gj,true);qx.bom.Event.addNativeListener(this._window,"DOMFocusOut",this.__gk,true)}}),_stopObserver:qx.core.Environment.select("engine.name",{gecko:function(){qx.bom.Event.removeNativeListener(this._document,
"mousedown",this.__gd,true);qx.bom.Event.removeNativeListener(this._document,"mouseup",this.__ge,true);qx.bom.Event.removeNativeListener(this._window,"focus",this.__gf,true);qx.bom.Event.removeNativeListener(this._window,"blur",this.__gg,true);qx.bom.Event.removeNativeListener(this._window,"draggesture",this.__gh,true)},mshtml:function(){qx.bom.Event.removeNativeListener(this._document,"mousedown",this.__gd);qx.bom.Event.removeNativeListener(this._document,"mouseup",this.__ge);qx.bom.Event.removeNativeListener(this._document,
"focusin",this.__gj);qx.bom.Event.removeNativeListener(this._document,"focusout",this.__gk);qx.bom.Event.removeNativeListener(this._document,"selectstart",this.__gi)},webkit:function(){qx.bom.Event.removeNativeListener(this._document,"mousedown",this.__gd,true);qx.bom.Event.removeNativeListener(this._document,"mouseup",this.__ge,true);qx.bom.Event.removeNativeListener(this._document,"selectstart",this.__gi,false);qx.bom.Event.removeNativeListener(this._window,"DOMFocusOut",this.__gk,true);qx.bom.Event.removeNativeListener(this._window,
"focus",this.__gf,true);qx.bom.Event.removeNativeListener(this._window,"blur",this.__gg,true)},opera:function(){qx.bom.Event.removeNativeListener(this._document,"mousedown",this.__gd,true);qx.bom.Event.removeNativeListener(this._document,"mouseup",this.__ge,true);qx.bom.Event.removeNativeListener(this._window,"DOMFocusIn",this.__gj,true);qx.bom.Event.removeNativeListener(this._window,"DOMFocusOut",this.__gk,true)}}),__gp:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",
{gecko:function(a){this.__gB(qx.bom.Event.getTarget(a))||qx.bom.Event.preventDefault(a)},"default":null})),__gq:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{mshtml:function(a){this.__go();var a=qx.bom.Event.getTarget(a),b=this.__gz(a);b&&this.setFocus(b);this.tryActivate(a)},opera:function(a){a=qx.bom.Event.getTarget(a);if(a==this._document||a==this._window)this.__go(),this.__gl&&(this.setFocus(this.__gl),delete this.__gl),this.__gm&&(this.setActive(this.__gm),delete this.__gm);
else if(this.setFocus(a),this.tryActivate(a),!this.__gB(a))a.selectionStart=0,a.selectionEnd=0},"default":null})),__gr:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{mshtml:function(a){qx.bom.Event.getRelatedTarget(a)==null&&(this.__gn(),this.resetFocus(),this.resetActive())},webkit:function(a){a=qx.bom.Event.getTarget(a);a===this.getFocus()&&this.resetFocus();a===this.getActive()&&this.resetActive()},opera:function(a){a=qx.bom.Event.getTarget(a);a==this._document?(this.__gn(),
this.__gl=this.getFocus(),this.__gm=this.getActive(),this.resetFocus(),this.resetActive()):(a===this.getFocus()&&this.resetFocus(),a===this.getActive()&&this.resetActive())},"default":null})),__gs:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{gecko:function(a){a=qx.bom.Event.getTarget(a);if(a===this._window||a===this._document)this.__gn(),this.resetActive(),this.resetFocus()},webkit:function(a){a=qx.bom.Event.getTarget(a);if(a===this._window||a===this._document)this.__gn(),
this.__gl=this.getFocus(),this.__gm=this.getActive(),this.resetActive(),this.resetFocus()},"default":null})),__gt:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{gecko:function(a){a=qx.bom.Event.getTarget(a);if(a===this._window||a===this._document)this.__go(),a=this._body;this.setFocus(a);this.tryActivate(a)},webkit:function(a){a=qx.bom.Event.getTarget(a);a===this._window||a===this._document?(this.__go(),this.__gl&&(this.setFocus(this.__gl),delete this.__gl),this.__gm&&
(this.setActive(this.__gm),delete this.__gm)):(this.setFocus(a),this.tryActivate(a))},"default":null})),__gu:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{gecko:function(a){var b=this.__gz(qx.bom.Event.getTarget(a));b?b===this._body&&this.setFocus(b):qx.bom.Event.preventDefault(a)},mshtml:function(a){var b=qx.bom.Event.getTarget(a),c=this.__gz(b);if(c){if(!this.__gB(b)){b.unselectable="on";try{document.selection.empty()}catch(d){}try{c.focus()}catch(e){}}}else if(qx.bom.Event.preventDefault(a),
!this.__gB(b))b.unselectable="on"},webkit:function(a){var b=this.__gz(qx.bom.Event.getTarget(a));b?this.setFocus(b):qx.bom.Event.preventDefault(a)},opera:function(a){var b=qx.bom.Event.getTarget(a),c=this.__gz(b);if(this.__gB(b))c&&this.setFocus(c);else if(qx.bom.Event.preventDefault(a),c){if((a=this.getFocus())&&a.selectionEnd)a.selectionStart=0,a.selectionEnd=0,a.blur();c&&this.setFocus(c)}},"default":null})),__gv:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{mshtml:function(a){a=
qx.bom.Event.getTarget(a);if(a.unselectable)a.unselectable="off";this.tryActivate(this.__gw(a))},gecko:function(a){for(a=qx.bom.Event.getTarget(a);a&&a.offsetWidth===void 0;)a=a.parentNode;a&&this.tryActivate(a)},"webkit|opera":function(a){this.tryActivate(this.__gw(qx.bom.Event.getTarget(a)))},"default":null})),__gw:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{"mshtml|webkit":function(a){var b=this.getFocus();if(b&&a!=b&&(b.nodeName.toLowerCase()==="input"||b.nodeName.toLowerCase()===
"textarea"))a=b;return a},"default":function(a){return a}})),__gx:qx.event.GlobalError.observeMethod(qx.core.Environment.select("engine.name",{"mshtml|webkit":function(a){this.__gB(qx.bom.Event.getTarget(a))||qx.bom.Event.preventDefault(a)},"default":null})),__gy:function(a){var b=qx.bom.element.Attribute.get(a,"tabIndex");if(b>=1)return true;var c=qx.event.handler.Focus.FOCUSABLE_ELEMENTS;return b>=0&&c[a.tagName]?true:false},__gz:function(a){for(;a&&a.nodeType===1;){if(a.getAttribute("qxKeepFocus")==
"on")return null;if(this.__gy(a))return a;a=a.parentNode}return this._body},__gA:function(a){for(var b=a;a&&a.nodeType===1;){if(a.getAttribute("qxKeepActive")=="on")return null;a=a.parentNode}return b},__gB:function(a){for(;a&&a.nodeType===1;){var b=a.getAttribute("qxSelectable");if(b!=null)return b==="on";a=a.parentNode}return true},_applyActive:function(a,b){b&&this.__fI(b,a,"deactivate",true);a&&this.__fI(a,b,"activate",true)},_applyFocus:function(a,b){b&&this.__fI(b,a,"focusout",true);a&&this.__fI(a,
b,"focusin",true);b&&this.__fI(b,a,"blur",false);a&&this.__fI(a,b,"focus",false)}},destruct:function(){this._stopObserver();this._manager=this._window=this._document=this._root=this._body=this.__gC=null},defer:function(a){qx.event.Registration.addHandler(a);var a=a.FOCUSABLE_ELEMENTS,b;for(b in a)a[b.toUpperCase()]=1}})})();
(function(){qx.Class.define("qx.bom.Selection",{statics:{getSelectionObject:qx.core.Environment.select("engine.name",{mshtml:function(a){return a.selection},"default":function(a){return qx.dom.Node.getWindow(a).getSelection()}}),get:qx.core.Environment.select("engine.name",{mshtml:function(a){return qx.bom.Range.get(qx.dom.Node.getDocument(a)).text},"default":function(a){return this.__gD(a)?a.value.substring(a.selectionStart,a.selectionEnd):this.getSelectionObject(qx.dom.Node.getDocument(a)).toString()}}),
getLength:qx.core.Environment.select("engine.name",{mshtml:function(a){var a=this.get(a),b=qx.util.StringSplit.split(a,/\r\n/);return a.length-(b.length-1)},opera:function(a){var b;if(this.__gD(a)){b=a.selectionStart;var c=a.selectionEnd,a=a.value.substring(b,c);b=c-b}else a=qx.bom.Selection.get(a),b=a.length;a=qx.util.StringSplit.split(a,/\r\n/);return b-(a.length-1)},"default":function(a){return this.__gD(a)?a.selectionEnd-a.selectionStart:this.get(a).length}}),getStart:qx.core.Environment.select("engine.name",
{mshtml:function(a){if(this.__gD(a)){var b=qx.bom.Range.get();if(!a.contains(b.parentElement()))return-1;var c=qx.bom.Range.get(a),a=a.value.length;c.moveToBookmark(b.getBookmark());c.moveEnd("character",a);return a-c.text.length}else{var c=qx.bom.Range.get(a),d=c.parentElement(),b=qx.bom.Range.get();try{b.moveToElementText(d)}catch(e){return 0}a=qx.bom.Range.get(qx.dom.Node.getBodyElement(a));a.setEndPoint("StartToStart",c);a.setEndPoint("EndToEnd",b);if(b.compareEndPoints("StartToStart",a)==0)return 0;
for(d=0;;){c=a.moveStart("character",-1);if(b.compareEndPoints("StartToStart",a)==0)break;if(c==0)break;else d++}return++d}},"gecko|webkit":function(a){return this.__gD(a)?a.selectionStart:(a=this.getSelectionObject(qx.dom.Node.getDocument(a)),a.anchorOffset<a.focusOffset?a.anchorOffset:a.focusOffset)},"default":function(a){return this.__gD(a)?a.selectionStart:qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)).anchorOffset}}),getEnd:qx.core.Environment.select("engine.name",{mshtml:function(a){if(this.__gD(a)){var b=
qx.bom.Range.get();if(!a.contains(b.parentElement()))return-1;var c=qx.bom.Range.get(a),d=a.value.length;c.moveToBookmark(b.getBookmark());c.moveStart("character",-d);return c.text.length}else{c=qx.bom.Range.get(a);d=c.parentElement();b=qx.bom.Range.get();try{b.moveToElementText(d)}catch(e){return 0}d=b.text.length;a=qx.bom.Range.get(qx.dom.Node.getBodyElement(a));a.setEndPoint("EndToEnd",c);a.setEndPoint("StartToStart",b);if(b.compareEndPoints("EndToEnd",a)==0)return d-1;for(var f=0;;){c=a.moveEnd("character",
1);if(b.compareEndPoints("EndToEnd",a)==0)break;if(c==0)break;else f++}return d-++f}},"gecko|webkit":function(a){return this.__gD(a)?a.selectionEnd:(a=this.getSelectionObject(qx.dom.Node.getDocument(a)),a.focusOffset>a.anchorOffset?a.focusOffset:a.anchorOffset)},"default":function(a){return this.__gD(a)?a.selectionEnd:qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)).focusOffset}}),__gD:function(a){return qx.dom.Node.isElement(a)&&(a.nodeName.toLowerCase()=="input"||a.nodeName.toLowerCase()==
"textarea")},set:qx.core.Environment.select("engine.name",{mshtml:function(a,b,c){var d;if(qx.dom.Node.isDocument(a))a=a.body;if(qx.dom.Node.isElement(a)||qx.dom.Node.isText(a))switch(a.nodeName.toLowerCase()){case "input":case "textarea":case "button":if(c===void 0)c=a.value.length;if(b>=0&&b<=a.value.length&&c>=0&&c<=a.value.length)return d=qx.bom.Range.get(a),d.collapse(true),d.moveStart("character",b),d.moveEnd("character",c-b),d.select(),true;break;case "#text":if(c===void 0)c=a.nodeValue.length;
if(b>=0&&b<=a.nodeValue.length&&c>=0&&c<=a.nodeValue.length)return d=qx.bom.Range.get(qx.dom.Node.getBodyElement(a)),d.moveToElementText(a.parentNode),d.collapse(true),d.moveStart("character",b),d.moveEnd("character",c-b),d.select(),true;break;default:if(c===void 0&&(c=a.childNodes.length-1),a.childNodes[b]&&a.childNodes[c])return d=qx.bom.Range.get(qx.dom.Node.getBodyElement(a)),d.moveToElementText(a.childNodes[b]),d.collapse(true),b=qx.bom.Range.get(qx.dom.Node.getBodyElement(a)),b.moveToElementText(a.childNodes[c]),
d.setEndPoint("EndToEnd",b),d.select(),true}return false},"default":function(a,b,c){var d=a.nodeName.toLowerCase();if(qx.dom.Node.isElement(a)&&(d=="input"||d=="textarea")){if(c===void 0)c=a.value.length;if(b>=0&&b<=a.value.length&&c>=0&&c<=a.value.length)return a.focus(),a.select(),a.setSelectionRange(b,c),true}else{var d=false,e=qx.dom.Node.getWindow(a).getSelection(),f=qx.bom.Range.get(a);if(qx.dom.Node.isText(a)){if(c===void 0)c=a.length;b>=0&&b<a.length&&c>=0&&c<=a.length&&(d=true)}else if(qx.dom.Node.isElement(a))c===
void 0&&(c=a.childNodes.length-1),b>=0&&a.childNodes[b]&&c>=0&&a.childNodes[c]&&(d=true);else if(qx.dom.Node.isDocument(a))a=a.body,c===void 0&&(c=a.childNodes.length-1),b>=0&&a.childNodes[b]&&c>=0&&a.childNodes[c]&&(d=true);if(d)return e.isCollapsed||e.collapseToStart(),f.setStart(a,b),qx.dom.Node.isText(a)?f.setEnd(a,c):f.setEndAfter(a.childNodes[c]),e.rangeCount>0&&e.removeAllRanges(),e.addRange(f),true}return false}}),setAll:function(a){return qx.bom.Selection.set(a,0)},clear:qx.core.Environment.select("engine.name",
{mshtml:function(a){var b=qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)),c=qx.bom.Range.get(a).parentElement(),d=qx.bom.Range.get(qx.dom.Node.getDocument(a));c==d.parentElement()&&c==a&&b.empty()},"default":function(a){var b=qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)),c=a.nodeName.toLowerCase();if(qx.dom.Node.isElement(a)&&(c=="input"||c=="textarea"))a.setSelectionRange(0,0),qx.bom.Element.blur(a);else if(qx.dom.Node.isDocument(a)||c=="body")b.collapse(a.body?
a.body:a,0);else if(c=qx.bom.Range.get(a),!c.collapsed)c=c.commonAncestorContainer,(qx.dom.Node.isElement(a)&&qx.dom.Node.isText(c)?c.parentNode:c)==a&&b.collapse(a,0)}})}})})();
(function(){qx.Class.define("qx.bom.Range",{statics:{get:qx.core.Environment.select("engine.name",{mshtml:function(a){if(qx.dom.Node.isElement(a))switch(a.nodeName.toLowerCase()){case "input":switch(a.type){case "text":case "password":case "hidden":case "button":case "reset":case "file":case "submit":return a.createTextRange();default:return qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)).createRange()}case "textarea":case "body":case "button":return a.createTextRange();default:return qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)).createRange()}else return a==
null&&(a=window),qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(a)).createRange()},"default":function(a){var a=qx.dom.Node.getDocument(a),b=qx.bom.Selection.getSelectionObject(a);return b.rangeCount>0?b.getRangeAt(0):a.createRange()}})}})})();
(function(){qx.Class.define("qx.util.StringSplit",{statics:{split:function(a,b,c){if(Object.prototype.toString.call(b)!=="[object RegExp]")return String.prototype.split.call(a,b,c);var d=[],e=0,f=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.sticky?"y":""),b=RegExp(b.source,f+"g"),g,h,i,j=/()??/.exec("")[1]===void 0;a+="";j||(g=RegExp("^"+b.source+"$(?!\\s)",f));if(c===void 0||+c<0)c=Infinity;else if(c=Math.floor(+c),!c)return[];for(;h=b.exec(a);){f=h.index+h[0].length;if(f>e&&(d.push(a.slice(e,h.index)),
!j&&h.length>1&&h[0].replace(g,function(){for(var a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(h[a]=void 0)}),h.length>1&&h.index<a.length&&Array.prototype.push.apply(d,h.slice(1)),i=h[0].length,e=f,d.length>=c))break;b.lastIndex===h.index&&b.lastIndex++}e===a.length?(i||!b.test(""))&&d.push(""):d.push(a.slice(e));return d.length>c?d.slice(0,c):d}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Event",{statics:{getTouch:function(){return"ontouchstart"in window},getPointer:function(){if("pointerEvents"in document.documentElement.style){var a=qx.bom.client.Engine.getName();return a!="opera"&&a!="mshtml"}return false},getHelp:function(){return"onhelp"in document},getHashChange:function(){var a=qx.bom.client.Engine.getName(),b="onhashchange"in window;return a!=="mshtml"&&b||a==="mshtml"&&"documentMode"in document&&document.documentMode>=8&&b}},
defer:function(a){qx.core.Environment.add("event.touch",a.getTouch);qx.core.Environment.add("event.pointer",a.getPointer);qx.core.Environment.add("event.help",a.getHelp);qx.core.Environment.add("event.hashchange",a.getHashChange)}})})();
(function(){qx.Class.define("qx.event.handler.Orientation",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__cy=a.getWindow();this._initObserver()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{orientationchange:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{__eS:null,__cy:null,__gE:null,__gF:null,__gG:null,canHandleEvent:function(){},registerEvent:function(){},
unregisterEvent:function(){},_initObserver:function(){this.__gG=qx.lang.Function.listener(this._onNative,this);this.__gE=qx.bom.Event.supportsEvent(this.__cy,"orientationchange")?"orientationchange":"resize";qx.bom.Event.addNativeListener(this.__cy,this.__gE,this.__gG)},_stopObserver:function(){qx.bom.Event.removeNativeListener(this.__cy,this.__gE,this.__gG)},_onNative:qx.event.GlobalError.observeMethod(function(){var a=qx.bom.Viewport,b=a.getOrientation();if(this.__gF!=b)this.__gF=b,a=a.isLandscape()?
"landscape":"portrait",qx.event.Registration.fireEvent(this.__cy,"orientationchange",qx.event.type.Orientation,[b,a])})},destruct:function(){this._stopObserver();this.__eS=this.__cy=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.type.Orientation",{extend:qx.event.type.Event,members:{__gH:null,__gI:null,init:function(a,b){qx.event.type.Event.prototype.init.call(this,false,false);this.__gH=a;this.__gI=b;return this},clone:function(a){a=qx.event.type.Event.prototype.clone.call(this,a);a.__gH=this.__gH;a.__gI=this.__gI;return a},getOrientation:function(){return this.__gH},isLandscape:function(){return this.__gI=="landscape"},isPortrait:function(){return this.__gI=="portrait"}}})})();
(function(){qx.Class.define("qx.event.handler.Touch",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__cy=a.getWindow();this.__db=this.__cy.document;this._initTouchObserver();this._initMouseObserver()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{touchstart:1,touchmove:1,touchend:1,touchcancel:1,tap:1,swipe:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE+qx.event.IEventHandler.TARGET_DOCUMENT,
IGNORE_CAN_HANDLE:true,MOUSE_TO_TOUCH_MAPPING:{mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},SWIPE_DIRECTION:{x:["left","right"],y:["up","down"]},TAP_MAX_DISTANCE:qx.core.Environment.get("os.name")!="android"?10:40,SWIPE_MIN_DISTANCE:qx.core.Environment.get("os.name")!="android"?11:41,SWIPE_MIN_VELOCITY:0},members:{__gJ:null,__gK:null,__eS:null,__cy:null,__db:null,__gL:null,__gM:null,__gN:null,__gO:null,__gP:false,__gQ:null,canHandleEvent:function(){},registerEvent:function(){},
unregisterEvent:function(){},__gR:function(a){a=qx.bom.Event.getTarget(a);if(qx.core.Environment.get("engine.name")=="webkit"&&a&&a.nodeType==3)a=a.parentNode;return a},__fI:function(a,b,c,d){c||(c=this.__gR(a));b=b||a.type;c&&c.nodeType&&qx.event.Registration.fireEvent(c,b,d||qx.event.type.Touch,[a,c,null,true,true]);qx.event.Registration.fireEvent(this.__cy,"useraction",qx.event.type.Data,[b])},__gS:function(a,b,c){c||(c=this.__gR(a));b=b||a.type;b=="touchstart"?this.__gT(a,c):b=="touchmove"?this.__gU(a,
c):b=="touchend"&&this.__gV(a,c)},__gT:function(a){var b=a.changedTouches[0];this.__gL=b.screenX;this.__gM=b.screenY;this.__gN=(new Date).getTime();this.__gO=a.changedTouches.length===1},__gU:function(a){if(this.__gO&&a.changedTouches.length>1)this.__gO=false},__gV:function(a,b){if(this.__gO){var c=a.changedTouches[0],c={x:c.screenX-this.__gL,y:c.screenY-this.__gM},d=qx.event.handler.Touch;if(this.__gQ==b&&Math.abs(c.x)<=d.TAP_MAX_DISTANCE&&Math.abs(c.y)<=d.TAP_MAX_DISTANCE)this.__fI(a,"tap",b,qx.event.type.Tap);
else if(c=this.__gW(a,b,c))a.swipe=c,this.__fI(a,"swipe",b,qx.event.type.Swipe)}},__gW:function(a,b,c){var a=qx.event.handler.Touch,b=(new Date).getTime()-this.__gN,d=Math.abs(c.x)>=Math.abs(c.y)?"x":"y",c=c[d],e=a.SWIPE_DIRECTION[d][c<0?0:1],f=b!==0?c/b:0,g=null;Math.abs(f)>=a.SWIPE_MIN_VELOCITY&&Math.abs(c)>=a.SWIPE_MIN_DISTANCE&&(g={startTime:this.__gN,duration:b,axis:d,direction:e,distance:c,velocity:f});return g},__gX:qx.core.Environment.select("qx.mobile.emulatetouch",{"true":function(a){var b=
a.type,c=qx.event.handler.Touch.MOUSE_TO_TOUCH_MAPPING;if(c[b]){b=c[b];if(b=="touchstart"&&this.__gY(a))this.__gP=true;else if(b=="touchend")this.__gP=false;var c=this.__ha(a),d=b=="touchend"?[]:[c];a.touches=d;a.targetTouches=d;a.changedTouches=[c]}return b},"default":qx.lang.Function.empty}),__gY:qx.core.Environment.select("qx.mobile.emulatetouch",{"true":function(a){var b=qx.core.Environment.get("engine.name")=="mshtml"?1:0;return a.button==b},"default":qx.lang.Function.empty}),__ha:qx.core.Environment.select("qx.mobile.emulatetouch",
{"true":function(a){var b=this.__gR(a);return{clientX:a.clientX,clientY:a.clientY,screenX:a.screenX,screenY:a.screenY,pageX:a.pageX,pageY:a.pageY,identifier:1,target:b}},"default":qx.lang.Function.empty}),_initTouchObserver:function(){this.__gJ=qx.lang.Function.listener(this._onTouchEvent,this);var a=qx.bom.Event;a.addNativeListener(this.__db,"touchstart",this.__gJ);a.addNativeListener(this.__db,"touchmove",this.__gJ);a.addNativeListener(this.__db,"touchend",this.__gJ);a.addNativeListener(this.__db,
"touchcancel",this.__gJ)},_initMouseObserver:qx.core.Environment.select("qx.mobile.emulatetouch",{"true":function(){if(!qx.core.Environment.get("event.touch")){this.__gK=qx.lang.Function.listener(this._onMouseEvent,this);var a=qx.bom.Event;a.addNativeListener(this.__db,"mousedown",this.__gK);a.addNativeListener(this.__db,"mousemove",this.__gK);a.addNativeListener(this.__db,"mouseup",this.__gK)}},"default":qx.lang.Function.empty}),_stopTouchObserver:function(){var a=qx.bom.Event;a.removeNativeListener(this.__db,
"touchstart",this.__gJ);a.removeNativeListener(this.__db,"touchmove",this.__gJ);a.removeNativeListener(this.__db,"touchend",this.__gJ);a.removeNativeListener(this.__db,"touchcancel",this.__gJ)},_stopMouseObserver:qx.core.Environment.select("qx.mobile.emulatetouch",{"true":function(){if(!qx.core.Environment.get("event.touch")){var a=qx.bom.Event;a.removeNativeListener(this.__db,"mousedown",this.__gK);a.removeNativeListener(this.__db,"mousemove",this.__gK);a.removeNativeListener(this.__db,"mouseup",
this.__gK)}},"default":qx.lang.Function.empty}),_onTouchEvent:qx.event.GlobalError.observeMethod(function(a){this._commonTouchEventHandler(a)}),_onMouseEvent:qx.core.Environment.select("qx.mobile.emulatetouch",{"true":qx.event.GlobalError.observeMethod(function(a){if(!qx.core.Environment.get("event.touch")&&(a.type!="mousemove"||this.__gP)){var b=this.__gX(a);this._commonTouchEventHandler(a,b)}}),"default":qx.lang.Function.empty}),_commonTouchEventHandler:function(a,b){b=b||a.type;if(b=="touchstart")this.__gQ=
this.__gR(a);this.__fI(a,b);this.__gS(a,b)}},destruct:function(){this._stopTouchObserver();this._stopMouseObserver();this.__eS=this.__cy=this.__db=this.__gQ=null},defer:function(a){qx.event.Registration.addHandler(a);qx.core.Environment.get("event.touch")&&(qx.core.Environment.get("qx.mobile.nativescroll")==false&&document.addEventListener("touchmove",function(a){a.preventDefault()}),qx.event.Registration.getManager(document).getHandler(a))}})})();
(function(){qx.Class.define("qx.event.type.Touch",{extend:qx.event.type.Dom,members:{_cloneNativeEvent:function(a,b){b=qx.event.type.Dom.prototype._cloneNativeEvent.call(this,a,b);b.pageX=a.pageX;b.pageY=a.pageY;b.layerX=a.layerX;b.layerY=a.layerY;b.scale=a.scale;b.rotation=a.rotation;b.srcElement=a.srcElement;b.targetTouches=[];for(var c=0;c<a.targetTouches.length;c++)b.targetTouches[c]=a.targetTouches[c];b.changedTouches=[];for(c=0;c<a.changedTouches.length;c++)b.changedTouches[c]=a.changedTouches[c];
b.touches=[];for(c=0;c<a.touches.length;c++)b.touches[c]=a.touches[c];return b},stop:function(){this.stopPropagation()},getAllTouches:function(){return this._native.touches},getTargetTouches:function(){return this._native.targetTouches},getChangedTargetTouches:function(){return this._native.changedTouches},isMultiTouch:function(){return this.__hc().length>1},getScale:function(){return this._native.scale},getRotation:function(){return this._native.rotation},getDocumentLeft:function(a){return this.__hb(a).pageX},
getDocumentTop:function(a){return this.__hb(a).pageY},getScreenLeft:function(a){return this.__hb(a).screenX},getScreenTop:function(a){return this.__hb(a).screenY},getViewportLeft:function(a){return this.__hb(a).clientX},getViewportTop:function(a){return this.__hb(a).clientY},getIdentifier:function(a){return this.__hb(a).identifier},__hb:function(a){return this.__hc()[a==null?0:a]},__hc:function(){return this._isTouchEnd()?this.getChangedTargetTouches():this.getTargetTouches()},_isTouchEnd:function(){return this.getType()==
"touchend"||this.getType()=="touchcancel"}}})})();(function(){qx.Class.define("qx.event.type.Tap",{extend:qx.event.type.Touch,members:{_isTouchEnd:function(){return true}}})})();
(function(){qx.Class.define("qx.event.type.Swipe",{extend:qx.event.type.Touch,members:{_cloneNativeEvent:function(a,b){b=qx.event.type.Touch.prototype._cloneNativeEvent.call(this,a,b);b.swipe=a.swipe;return b},_isTouchEnd:function(){return true},getStartTime:function(){return this._native.swipe.startTime},getDuration:function(){return this._native.swipe.duration},getAxis:function(){return this._native.swipe.axis},getDirection:function(){return this._native.swipe.direction},getVelocity:function(){return this._native.swipe.velocity},
getDistance:function(){return this._native.swipe.distance}}})})();(function(){qx.Class.define("qx.event.handler.Capture",{extend:qx.core.Object,implement:qx.event.IEventHandler,statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{capture:true,losecapture:true},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,IGNORE_CAN_HANDLE:true},members:{canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){}},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.handler.DragDrop",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__db=a.getWindow().document.documentElement;this.__eS.addListener(this.__db,"mousedown",this._onMouseDown,this);this.__hn()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{dragstart:1,dragend:1,dragover:1,dragleave:1,drop:1,drag:1,dragchange:1,droprequest:1},IGNORE_CAN_HANDLE:true},members:{__eS:null,
__db:null,__hd:null,__he:null,__hf:null,__hg:null,__hh:null,__c:null,__hi:null,__hj:null,__hk:false,__hl:0,__hm:0,canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){},addType:function(a){this.__hf[a]=true},addAction:function(a){this.__hg[a]=true},supportsType:function(a){return!!this.__hf[a]},supportsAction:function(a){return!!this.__hg[a]},getData:function(a){if(!this.__ht||!this.__hd)throw Error("This method must not be used outside the drop event listener!");if(!this.__hf[a])throw Error("Unsupported data type: "+
a+"!");if(!this.__c[a])this.__hi=a,this.__fI("droprequest",this.__he,this.__hd,false);if(!this.__c[a])throw Error("Please use a droprequest listener to the drag source to fill the manager with data!");return this.__c[a]||null},getCurrentAction:function(){return this.__hj},addData:function(a,b){this.__c[a]=b},getCurrentType:function(){return this.__hi},isSessionActive:function(){return this.__hk},__hn:function(){this.__hf={};this.__hg={};this.__hh={};this.__c={}},__ho:function(){if(this.__he!=null){var a=
this.__hg,b=this.__hh,c=null;this.__ht&&(b.Shift&&b.Control&&a.alias?c="alias":b.Shift&&b.Alt&&a.copy?c="copy":b.Shift&&a.move?c="move":b.Alt&&a.alias?c="alias":b.Control&&a.copy?c="copy":a.move?c="move":a.copy?c="copy":a.alias&&(c="alias"));if(c!=this.__hj)this.__hj=c,this.__fI("dragchange",this.__he,this.__hd,false)}},__fI:function(a,b,c,d,e){var f=qx.event.Registration,a=f.createEvent(a,qx.event.type.Drag,[d,e]);b!==c&&a.setRelatedTarget(c);return f.dispatchEvent(b,a)},__hp:function(a){for(;a&&
a.nodeType==1;){if(a.getAttribute("qxDraggable")=="on")return a;a=a.parentNode}return null},__hq:function(a){for(;a&&a.nodeType==1;){if(a.getAttribute("qxDroppable")=="on")return a;a=a.parentNode}return null},__hr:function(){this.__he=null;this.__eS.removeListener(this.__db,"mousemove",this._onMouseMove,this,true);this.__eS.removeListener(this.__db,"mouseup",this._onMouseUp,this,true);qx.event.Registration.removeListener(window,"blur",this._onWindowBlur,this);this.__hn()},__hs:function(){if(this.__hk)this.__eS.removeListener(this.__db,
"mouseover",this._onMouseOver,this,true),this.__eS.removeListener(this.__db,"mouseout",this._onMouseOut,this,true),this.__eS.removeListener(this.__db,"keydown",this._onKeyDown,this,true),this.__eS.removeListener(this.__db,"keyup",this._onKeyUp,this,true),this.__eS.removeListener(this.__db,"keypress",this._onKeyPress,this,true),this.__fI("dragend",this.__he,this.__hd,false),this.__hk=false;this.__ht=false;this.__hd=null;this.__hr()},__ht:false,_onWindowBlur:function(){this.__hs()},_onKeyDown:function(a){a=
a.getKeyIdentifier();switch(a){case "Alt":case "Control":case "Shift":this.__hh[a]||(this.__hh[a]=true,this.__ho())}},_onKeyUp:function(a){a=a.getKeyIdentifier();switch(a){case "Alt":case "Control":case "Shift":this.__hh[a]&&(this.__hh[a]=false,this.__ho())}},_onKeyPress:function(a){switch(a.getKeyIdentifier()){case "Escape":this.__hs()}},_onMouseDown:function(a){if(!(this.__hk||a.getButton()!=="left")){var b=this.__hp(a.getTarget());if(b)this.__hl=a.getDocumentLeft(),this.__hm=a.getDocumentTop(),
this.__he=b,this.__eS.addListener(this.__db,"mousemove",this._onMouseMove,this,true),this.__eS.addListener(this.__db,"mouseup",this._onMouseUp,this,true),qx.event.Registration.addListener(window,"blur",this._onWindowBlur,this)}},_onMouseUp:function(a){this.__ht&&this.__fI("drop",this.__hd,this.__he,false,a);this.__hk&&a.stopPropagation();this.__hs()},_onMouseMove:function(a){if(this.__hk)this.__fI("drag",this.__he,this.__hd,true,a)||this.__hs();else if(Math.abs(a.getDocumentLeft()-this.__hl)>3||Math.abs(a.getDocumentTop()-
this.__hm)>3)if(this.__fI("dragstart",this.__he,this.__hd,true,a)){this.__hk=true;this.__eS.addListener(this.__db,"mouseover",this._onMouseOver,this,true);this.__eS.addListener(this.__db,"mouseout",this._onMouseOut,this,true);this.__eS.addListener(this.__db,"keydown",this._onKeyDown,this,true);this.__eS.addListener(this.__db,"keyup",this._onKeyUp,this,true);this.__eS.addListener(this.__db,"keypress",this._onKeyPress,this,true);var b=this.__hh;b.Control=a.isCtrlPressed();b.Shift=a.isShiftPressed();
b.Alt=a.isAltPressed();this.__ho()}else this.__fI("dragend",this.__he,this.__hd,false),this.__hr()},_onMouseOver:function(a){var b=this.__hq(a.getTarget());if(b&&b!=this.__hd)this.__ht=this.__fI("dragover",b,this.__he,true,a),this.__hd=b,this.__ho()},_onMouseOut:function(a){var b=this.__hq(a.getTarget()),c=this.__hq(a.getRelatedTarget());if(b&&b!==c&&b==this.__hd)this.__fI("dragleave",this.__hd,c,false,a),this.__hd=null,this.__ht=false,qx.event.Timer.once(this.__ho,this,0)}},destruct:function(){this.__he=
this.__hd=this.__eS=this.__db=this.__hf=this.__hg=this.__hh=this.__c=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.event.type.Drag",{extend:qx.event.type.Event,members:{init:function(a,b){qx.event.type.Event.prototype.init.call(this,true,a);b?(this._native=b.getNativeEvent()||null,this._originalTarget=b.getTarget()||null):this._originalTarget=this._native=null;return this},clone:function(a){a=qx.event.type.Event.prototype.clone.call(this,a);a._native=this._native;return a},getDocumentLeft:function(){if(this._native==null)return 0;if(this._native.pageX!==void 0)return this._native.pageX;
else{var a=qx.dom.Node.getWindow(this._native.srcElement);return this._native.clientX+qx.bom.Viewport.getScrollLeft(a)}},getDocumentTop:function(){if(this._native==null)return 0;if(this._native.pageY!==void 0)return this._native.pageY;else{var a=qx.dom.Node.getWindow(this._native.srcElement);return this._native.clientY+qx.bom.Viewport.getScrollTop(a)}},getManager:function(){return qx.event.Registration.getManager(this.getTarget()).getHandler(qx.event.handler.DragDrop)},addType:function(a){this.getManager().addType(a)},
addAction:function(a){this.getManager().addAction(a)},supportsType:function(a){return this.getManager().supportsType(a)},supportsAction:function(a){return this.getManager().supportsAction(a)},addData:function(a,b){this.getManager().addData(a,b)},getData:function(a){return this.getManager().getData(a)},getCurrentType:function(){return this.getManager().getCurrentType()},getCurrentAction:function(){return this.getManager().getCurrentAction()}}})})();
(function(){qx.Class.define("qx.event.handler.Offline",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(a){qx.core.Object.call(this);this.__eS=a;this.__cy=a.getWindow();this._initObserver()},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{online:true,offline:true},TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,IGNORE_CAN_HANDLE:true},members:{__eS:null,__cy:null,__gG:null,canHandleEvent:function(){},registerEvent:function(){},unregisterEvent:function(){},
_initObserver:function(){this.__gG=qx.lang.Function.listener(this._onNative,this);qx.bom.Event.addNativeListener(this.__cy,"offline",this.__gG);qx.bom.Event.addNativeListener(this.__cy,"online",this.__gG)},_stopObserver:function(){qx.bom.Event.removeNativeListener(this.__cy,"offline",this.__gG);qx.bom.Event.removeNativeListener(this.__cy,"online",this.__gG)},_onNative:qx.event.GlobalError.observeMethod(function(a){qx.event.Registration.fireEvent(this.__cy,a.type,qx.event.type.Event,[])}),isOnline:function(){return!!this.__cy.navigator.onLine}},
destruct:function(){this.__eS=null;this._stopObserver();delete qx.event.handler.Appear.__instances[this.$$hash]},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.bom.Element",{statics:{__hu:{onload:true,onpropertychange:true,oninput:true,onchange:true,name:true,type:true,checked:true,disabled:true},__hv:{},__hw:{},allowCreationWithMarkup:function(a){a||(a=window);var b=a.location.href;if(qx.bom.Element.__hw[b]==void 0)try{a.document.createElement("<INPUT TYPE='RADIO' NAME='RADIOTEST' VALUE='Second Choice'>"),qx.bom.Element.__hw[b]=true}catch(c){qx.bom.Element.__hw[b]=false}return qx.bom.Element.__hw[b]},getHelperElement:function(a){a||
(a=window);var b=a.location.href;if(!qx.bom.Element.__hv[b]){var c=qx.bom.Element.__hv[b]=a.document.createElement("div");if(qx.core.Environment.get("engine.name")=="webkit")c.style.display="none",a.document.body.appendChild(c)}return qx.bom.Element.__hv[b]},create:function(a,b,c){c||(c=window);if(!a)throw Error("The tag name is missing!");var d=this.__hu,e="",f;for(f in b)d[f]&&(e+=f+"='"+b[f]+"' ");e!=""?qx.bom.Element.allowCreationWithMarkup(c)?a=c.document.createElement("<"+a+" "+e+">"):(c=qx.bom.Element.getHelperElement(c),
c.innerHTML="<"+a+" "+e+"></"+a+">",a=c.firstChild):a=c.document.createElement(a);for(f in b)d[f]||qx.bom.element.Attribute.set(a,f,b[f]);return a},empty:function(a){return a.innerHTML=""},addListener:function(a,b,c,d,e){return qx.event.Registration.addListener(a,b,c,d,e)},removeListener:function(a,b,c,d,e){return qx.event.Registration.removeListener(a,b,c,d,e)},removeListenerById:function(a,b){return qx.event.Registration.removeListenerById(a,b)},hasListener:function(a,b,c){return qx.event.Registration.hasListener(a,
b,c)},focus:function(a){qx.event.Registration.getManager(a).getHandler(qx.event.handler.Focus).focus(a)},blur:function(a){qx.event.Registration.getManager(a).getHandler(qx.event.handler.Focus).blur(a)},activate:function(a){qx.event.Registration.getManager(a).getHandler(qx.event.handler.Focus).activate(a)},deactivate:function(a){qx.event.Registration.getManager(a).getHandler(qx.event.handler.Focus).deactivate(a)},capture:function(a,b){qx.event.Registration.getManager(a).getDispatcher(qx.event.dispatch.MouseCapture).activateCapture(a,
b)},releaseCapture:function(a){qx.event.Registration.getManager(a).getDispatcher(qx.event.dispatch.MouseCapture).releaseCapture(a)},matchesSelector:function(a,b){return b?qx.bom.Selector.query(b,a.parentNode).length>0:false},clone:function(a,b){var c;if(b||qx.core.Environment.get("engine.name")=="mshtml"&&!qx.xml.Document.isXmlDocument(a)){var d=qx.event.Registration.getManager(a),e=qx.dom.Hierarchy.getDescendants(a);e.push(a)}if(qx.core.Environment.get("engine.name")=="mshtml")for(var f=0,g=e.length;f<
g;f++)d.toggleAttachedEvents(e[f],false);c=a.cloneNode(true);if(qx.core.Environment.get("engine.name")=="mshtml"){f=0;for(g=e.length;f<g;f++)d.toggleAttachedEvents(e[f],true)}if(b===true){g=qx.dom.Hierarchy.getDescendants(c);g.push(c);for(var h,i,j,f=0,k=e.length;f<k;f++)if(h=e[f],h=d.serializeListeners(h),h.length>0){i=g[f];for(var l=0,m=h.length;l<m;l++)j=h[l],d.addListener(i,j.type,j.handler,j.self,j.capture)}}return c}}})})();
(function(){qx.Class.define("qx.bom.element.Attribute",{statics:{__hx:{names:{"class":"className","for":"htmlFor",html:"innerHTML",text:qx.core.Environment.get("html.element.textcontent")?"textContent":"innerText",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",datetime:"dateTime",accesskey:"accessKey",tabindex:"tabIndex",maxlength:"maxLength",readonly:"readOnly",longdesc:"longDesc",cellpadding:"cellPadding",cellspacing:"cellSpacing",frameborder:"frameBorder",usemap:"useMap"},runtime:{html:1,
text:1},bools:{compact:1,nowrap:1,ismap:1,declare:1,noshade:1,checked:1,disabled:1,readOnly:1,multiple:1,selected:1,noresize:1,defer:1,allowTransparency:1},property:{$$html:1,$$widget:1,disabled:1,checked:1,readOnly:1,multiple:1,selected:1,value:1,maxLength:1,className:1,innerHTML:1,innerText:1,textContent:1,htmlFor:1,tabIndex:1},qxProperties:{$$widget:1,$$html:1},propertyDefault:{disabled:false,checked:false,readOnly:false,multiple:false,selected:false,value:"",className:"",innerHTML:"",innerText:"",
textContent:"",htmlFor:"",tabIndex:0,maxLength:qx.core.Environment.select("engine.name",{mshtml:2147483647,webkit:524288,"default":-1})},removeableProperties:{disabled:1,multiple:1,maxLength:1},original:{href:1,src:1,type:1}},compile:function(a){var b=[],c=this.__hx.runtime,d;for(d in a)c[d]||b.push(d,"='",a[d],"'");return b.join("")},get:function(a,b){var c=this.__hx,d,b=c.names[b]||b;if(qx.core.Environment.get("engine.name")=="mshtml"&&parseInt(qx.core.Environment.get("browser.documentmode"),10)<
8&&c.original[b])d=a.getAttribute(b,2);else if(c.property[b]){if(d=a[b],typeof c.propertyDefault[b]!=="undefined"&&d==c.propertyDefault[b])return typeof c.bools[b]==="undefined"?null:d}else d=a.getAttribute(b);return c.bools[b]?!!d:d},set:function(a,b,c){if(typeof c!=="undefined"){var d=this.__hx,b=d.names[b]||b;d.bools[b]&&(c=!!c);if(d.property[b]&&(a[b]!==void 0||d.qxProperties[b])){if(c==null)if(d.removeableProperties[b]){a.removeAttribute(b);return}else typeof d.propertyDefault[b]!=="undefined"&&
(c=d.propertyDefault[b]);a[b]=c}else c===true?a.setAttribute(b,b):c===false||c===null?a.removeAttribute(b):a.setAttribute(b,c)}},reset:function(a,b){this.set(a,b,null)}}})})();
(function(){qx.Class.define("qx.event.dispatch.MouseCapture",{extend:qx.event.dispatch.AbstractBubbling,construct:function(a,b){qx.event.dispatch.AbstractBubbling.call(this,a);this.__cy=a.getWindow();this.__cA=b;a.addListener(this.__cy,"blur",this.releaseCapture,this);a.addListener(this.__cy,"focus",this.releaseCapture,this);a.addListener(this.__cy,"scroll",this.releaseCapture,this)},statics:{PRIORITY:qx.event.Registration.PRIORITY_FIRST},members:{__cA:null,__hy:null,__hz:true,__cy:null,_getParent:function(a){return a.parentNode},
canDispatchEvent:function(a,b,c){return!(!this.__hy||!this.__hA[c])},dispatchEvent:function(a,b,c){if(c=="click")b.stopPropagation(),this.releaseCapture();else{if(this.__hz||!qx.dom.Hierarchy.contains(this.__hy,a))a=this.__hy;qx.event.dispatch.AbstractBubbling.prototype.dispatchEvent.call(this,a,b,c)}},__hA:{mouseup:1,mousedown:1,click:1,dblclick:1,mousemove:1,mouseout:1,mouseover:1},activateCapture:function(a,b){b=b!==false;if(!(this.__hy===a&&this.__hz==b)){this.__hy&&this.releaseCapture();this.nativeSetCapture(a,
b);if(this.hasNativeCapture){var c=this;qx.bom.Event.addNativeListener(a,"losecapture",function(){qx.bom.Event.removeNativeListener(a,"losecapture",arguments.callee);c.releaseCapture()})}this.__hz=b;this.__hy=a;this.__cA.fireEvent(a,"capture",qx.event.type.Event,[true,false])}},getCaptureElement:function(){return this.__hy},releaseCapture:function(){var a=this.__hy;if(a)this.__hy=null,this.__cA.fireEvent(a,"losecapture",qx.event.type.Event,[true,false]),this.nativeReleaseCapture(a)},hasNativeCapture:qx.core.Environment.get("engine.name")==
"mshtml",nativeSetCapture:qx.core.Environment.select("engine.name",{mshtml:function(a,b){a.setCapture(b!==false)},"default":qx.lang.Function.empty}),nativeReleaseCapture:qx.core.Environment.select("engine.name",{mshtml:function(a){a.releaseCapture()},"default":qx.lang.Function.empty})},destruct:function(){this.__hy=this.__cy=this.__cA=null},defer:function(a){qx.event.Registration.addDispatcher(a)}})})();
(function(){qx.Class.define("qx.bom.Selector",{statics:{query:null,matches:null}});(function(){function a(a,b,c,d,e,f){for(var e=0,g=d.length;e<g;e++){var h=d[e];if(h){for(var i=false,h=h[a];h;){if(h.sizcache===c){i=d[h.sizset];break}if(h.nodeType===1&&!f)h.sizcache=c,h.sizset=e;if(h.nodeName.toLowerCase()===b){i=h;break}h=h[a]}d[e]=i}}}function b(a,b,c,d,e,f){for(var e=0,g=d.length;e<g;e++){var h=d[e];if(h){for(var i=false,h=h[a];h;){if(h.sizcache===c){i=d[h.sizset];break}if(h.nodeType===1){if(!f)h.sizcache=
c,h.sizset=e;if(typeof b!=="string"){if(h===b){i=true;break}}else if(j.filter(b,[h]).length>0){i=h;break}}h=h[a]}d[e]=i}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,f=false,g=true,h=/\\/g,i=/\W/;[0,0].sort(function(){g=false;return 0});var j=function(a,b,d,f){var d=d||[],g=b=b||document;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return d;var h,
i,m,n,r,p=true,q=j.isXML(b),t=[],y=a;do if(c.exec(""),h=c.exec(y))if(y=h[3],t.push(h[1]),h[2]){n=h[3];break}while(h);if(t.length>1&&l.exec(a))if(t.length===2&&k.relative[t[0]])i=s(t[0]+t[1],b);else for(i=k.relative[t[0]]?[b]:j(t.shift(),b);t.length;)a=t.shift(),k.relative[a]&&(a+=t.shift()),i=s(a,i);else if(!f&&t.length>1&&b.nodeType===9&&!q&&k.match.ID.test(t[0])&&!k.match.ID.test(t[t.length-1])&&(h=j.find(t.shift(),b,q),b=h.expr?j.filter(h.expr,h.set)[0]:h.set[0]),b){h=f?{expr:t.pop(),set:o(f)}:
j.find(t.pop(),t.length===1&&(t[0]==="~"||t[0]==="+")&&b.parentNode?b.parentNode:b,q);i=h.expr?j.filter(h.expr,h.set):h.set;for(t.length>0?m=o(i):p=false;t.length;)h=r=t.pop(),k.relative[r]?h=t.pop():r="",h==null&&(h=b),k.relative[r](m,h,q)}else m=[];m||(m=i);m||j.error(r||a);if(e.call(m)==="[object Array]")if(p)if(b&&b.nodeType===1)for(a=0;m[a]!=null;a++)m[a]&&(m[a]===true||m[a].nodeType===1&&j.contains(b,m[a]))&&d.push(i[a]);else for(a=0;m[a]!=null;a++)m[a]&&m[a].nodeType===1&&d.push(i[a]);else d.push.apply(d,
m);else o(m,d);n&&(j(n,g,d,f),j.uniqueSort(d));return d};j.uniqueSort=function(a){if(q&&(f=g,a.sort(q),f))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};j.matches=function(a,b){return j(a,null,null,b)};j.matchesSelector=function(a,b){return j(b,null,null,[a]).length>0};j.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=k.order.length;e<f;e++){var g,i=k.order[e];if(g=k.leftMatch[i].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"&&(g[1]=(g[1]||"").replace(h,
""),d=k.find[i](g,b,c),d!=null)){a=a.replace(k.match[i],"");break}}}d||(d=typeof b.getElementsByTagName!=="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}};j.filter=function(a,b,c,d){for(var e,f,g=a,h=[],i=b,l=b&&b[0]&&j.isXML(b[0]);a&&b.length;){for(var m in k.filter)if((e=k.leftMatch[m].exec(a))!=null&&e[2]){var n,o,r=k.filter[m];o=e[1];f=false;e.splice(1,1);if(o.substr(o.length-1)!=="\\"){i===h&&(h=[]);if(k.preFilter[m])if(e=k.preFilter[m](e,i,c,h,d,l)){if(e===true)continue}else f=
n=true;if(e)for(var p=0;(o=i[p])!=null;p++)if(o){n=r(o,e,p,i);var q=d^!!n;c&&n!=null?q?f=true:i[p]=false:q&&(h.push(o),f=true)}if(n!==void 0){c||(i=h);a=a.replace(k.match[m],"");if(!f)return[];break}}}if(a===g)if(f==null)j.error(a);else break;g=a}return i};j.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var k=j.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},
type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b==="string",d=c&&!i.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||false:f===b}c&&j.filter(b,a,true)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!i.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:false}else{for(;e<
f;e++)(c=a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&j.filter(b,a,true)}},"":function(c,e,f){var g,h=d++,j=b;typeof e==="string"&&!i.test(e)&&(g=e=e.toLowerCase(),j=a);j("parentNode",e,h,c,g,f)},"~":function(c,e,f){var g,h=d++,j=b;typeof e==="string"&&!i.test(e)&&(g=e=e.toLowerCase(),j=a);j("previousSibling",e,h,c,g,f)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!==
"undefined"){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(h,"")+" ";if(f)return a;for(var f=0,g;(g=b[f])!=null;f++)g&&(e^(g.className&&(" "+g.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(g):c&&(b[f]=false));return false},ID:function(a){return a[1].replace(h,
"")},TAG:function(a){return a[1].replace(h,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||j.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&j.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(h,"");!f&&k.attrMap[b]&&(a[1]=k.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(h,"");a[2]==="~="&&(a[4]=" "+a[4]+
" ");return a},PSEUDO:function(a,b,d,e,f){if(a[1]==="not")if((c.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=j(a[3],null,null,b);else return a=j.filter(a[3],b,d,1^f),d||e.push.apply(e,a),false;else if(k.match.POS.test(a[0])||k.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===
true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!j(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},
reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-
0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=k.filters[e];if(f)return f(a,c,b,d);else if(e==="contains")return(a.textContent||a.innerText||j.getText([a])||"").indexOf(b[3])>=0;else if(e==="not"){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return false;return true}else j.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return false;if(c==="first")return true;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return false;
return true;case "nth":var c=b[2],e=b[3];if(c===1&&e===0)return true;var f=b[0],g=a.parentNode;if(g&&(g.sizcache!==f||!a.nodeIndex)){for(var h=0,d=g.firstChild;d;d=d.nextSibling)if(d.nodeType===1)d.nodeIndex=++h;g.sizcache=f}d=a.nodeIndex-e;return c===0?d===0:d%c===0&&d/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>
-1},ATTR:function(a,b){var c=b[1],c=k.attrHandle[c]?k.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==false:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":false},POS:function(a,b,c,d){var e=k.setFilters[b[2]];if(e)return e(a,c,b,d)}}},l=k.match.POS,m=function(a,b){return"\\"+(b-0+1)},n;
for(n in k.match)k.match[n]=RegExp(k.match[n].source+/(?![^\[]*\])(?![^\(]*\))/.source),k.leftMatch[n]=RegExp(/(^(?:.|\r|\n)*?)/.source+k.match[n].source.replace(/\\(\d+)/g,m));var o=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(r){o=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var f=a.length;c<f;c++)d.push(a[c]);
else for(;a[c];c++)d.push(a[c]);return d}}var q,p;document.documentElement.compareDocumentPosition?q=function(a,b){return a===b?(f=true,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(q=function(a,b){var c,d,e=[],g=[];c=a.parentNode;d=b.parentNode;var h=c;if(a===b)return f=true,0;else if(c===d)return p(a,b);else if(c){if(!d)return 1}else return-1;for(;h;)e.unshift(h),h=h.parentNode;for(h=d;h;)g.unshift(h),h=h.parentNode;
c=e.length;d=g.length;for(h=0;h<c&&h<d;h++)if(e[h]!==g[h])return p(e[h],g[h]);return h===c?p(a,g[h],-1):p(e[h],b,1)},p=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});j.getText=function(a){for(var b="",c,d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=j.getText(c.childNodes));return b};(function(){var a=document.createElement("div"),b="script"+(new Date).getTime(),c=document.documentElement;a.innerHTML="<a name='"+
b+"'/>";c.insertBefore(a,c.firstChild);if(document.getElementById(b))k.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:void 0:[]},k.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b};c.removeChild(a);c=a=null})();(function(){var a=document.createElement("div");
a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0)k.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){for(var d=[],e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")k.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();document.querySelectorAll&&function(){var a=j,b=document.createElement("div");
b.innerHTML="<p class='TEST'></p>";if(!(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)){j=function(b,c,d,e){c=c||document;if(!e&&!j.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(c.nodeType===1||c.nodeType===9))if(f[1])return o(c.getElementsByTagName(b),d);else if(f[2]&&k.find.CLASS&&c.getElementsByClassName)return o(c.getElementsByClassName(f[2]),d);if(c.nodeType===9){if(b==="body"&&c.body)return o([c.body],d);else if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&
g.parentNode){if(g.id===f[3])return o([g],d)}else return o([],d)}try{return o(c.querySelectorAll(b),d)}catch(h){}}else if(c.nodeType===1&&c.nodeName.toLowerCase()!=="object"){var f=c,i=(g=c.getAttribute("id"))||"__sizzle__",l=c.parentNode,m=/^\s*[+~]/.test(b);g?i=i.replace(/'/g,"\\$&"):c.setAttribute("id",i);if(m&&l)c=c.parentNode;try{if(!m||l)return o(c.querySelectorAll("[id='"+i+"'] "+b),d)}catch(n){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)j[c]=a[c];b=null}}();(function(){var a=
document.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,c=false;try{b.call(document.documentElement,"[test!='']:sizzle")}catch(d){c=true}if(b)j.matchesSelector=function(a,d){d=d.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!j.isXML(a))try{if(c||!k.match.PSEUDO.test(d)&&!/!=/.test(d))return b.call(a,d)}catch(e){}return j(d,null,null,[a]).length>0}})();(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";
if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))k.order.splice(1,0,"CLASS"),k.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null})();j.contains=document.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:document.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&
16)}:function(){return false};j.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var s=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=k.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(k.match.PSEUDO,"");a=k.relative[a]?a+"*":a;c=0;for(var g=f.length;c<g;c++)j(a,f[c],d);return j.filter(e,d)},m=qx.bom.Selector;m.query=function(a,b){return j(a,b)};m.matches=function(a,b){return j(a,null,null,b)}})()})();
(function(){qx.Bootstrap.define("qx.bom.client.Plugin",{statics:{getGears:function(){return!(!window.google||!window.google.gears)},getActiveX:function(){return typeof window.ActiveXObject==="function"},__hB:{quicktime:{plugin:["QuickTime"],control:"QuickTimeCheckObject.QuickTimeCheck.1"},wmv:{plugin:["Windows Media"],control:"WMPlayer.OCX.7"},divx:{plugin:["DivX Web Player"],control:"npdivx.DivXBrowserPlugin.1"},silverlight:{plugin:["Silverlight"],control:"AgControl.AgControl"},pdf:{plugin:["Chrome PDF Viewer",
"Adobe Acrobat"],control:"AcroPDF.PDF"}},getQuicktimeVersion:function(){var a=qx.bom.client.Plugin.__hB.quicktime;return qx.bom.client.Plugin.__hC(a.control,a.plugin)},getWindowsMediaVersion:function(){var a=qx.bom.client.Plugin.__hB.wmv;return qx.bom.client.Plugin.__hC(a.control,a.plugin)},getDivXVersion:function(){var a=qx.bom.client.Plugin.__hB.divx;return qx.bom.client.Plugin.__hC(a.control,a.plugin)},getSilverlightVersion:function(){var a=qx.bom.client.Plugin.__hB.silverlight;return qx.bom.client.Plugin.__hC(a.control,
a.plugin)},getPdfVersion:function(){var a=qx.bom.client.Plugin.__hB.pdf;return qx.bom.client.Plugin.__hC(a.control,a.plugin)},getQuicktime:function(){var a=qx.bom.client.Plugin.__hB.quicktime;return qx.bom.client.Plugin.__hD(a.control,a.plugin)},getWindowsMedia:function(){var a=qx.bom.client.Plugin.__hB.wmv;return qx.bom.client.Plugin.__hD(a.control,a.plugin)},getDivX:function(){var a=qx.bom.client.Plugin.__hB.divx;return qx.bom.client.Plugin.__hD(a.control,a.plugin)},getSilverlight:function(){var a=
qx.bom.client.Plugin.__hB.silverlight;return qx.bom.client.Plugin.__hD(a.control,a.plugin)},getPdf:function(){var a=qx.bom.client.Plugin.__hB.pdf;return qx.bom.client.Plugin.__hD(a.control,a.plugin)},__hC:function(a,b){if(!qx.bom.client.Plugin.__hD(a,b))return"";if(qx.bom.client.Engine.getName()=="mshtml"){var c=new ActiveXObject(a);try{var d=c.versionInfo;if(d!=void 0)return d;d=c.version;if(d!=void 0)return d;d=c.settings.version;if(d!=void 0)return d}catch(e){}}else for(var c=navigator.plugins,
d=/([0-9]\.[0-9])/g,f=0;f<c.length;f++)for(var g=c[f],h=0;h<b.length;h++)if(g.name.indexOf(b[h])!==-1&&(d.test(g.name)||d.test(g.description)))return RegExp.$1;return""},__hD:function(a,b){if(qx.bom.client.Engine.getName()=="mshtml"){if(!window.ActiveXObject)return false;try{new ActiveXObject(a)}catch(c){return false}return true}else{var d=navigator.plugins;if(!d)return false;for(var e,f=0;f<d.length;f++){e=d[f].name;for(var g=0;g<b.length;g++)if(e.indexOf(b[g])!==-1)return true}return false}}},defer:function(a){qx.core.Environment.add("plugin.gears",
a.getGears);qx.core.Environment.add("plugin.quicktime",a.getQuicktime);qx.core.Environment.add("plugin.quicktime.version",a.getQuicktimeVersion);qx.core.Environment.add("plugin.windowsmedia",a.getWindowsMedia);qx.core.Environment.add("plugin.windowsmedia.version",a.getWindowsMediaVersion);qx.core.Environment.add("plugin.divx",a.getDivX);qx.core.Environment.add("plugin.divx.version",a.getDivXVersion);qx.core.Environment.add("plugin.silverlight",a.getSilverlight);qx.core.Environment.add("plugin.silverlight.version",
a.getSilverlightVersion);qx.core.Environment.add("plugin.pdf",a.getPdf);qx.core.Environment.add("plugin.pdf.version",a.getPdfVersion);qx.core.Environment.add("plugin.activex",a.getActiveX)}})})();
(function(){qx.Class.define("qx.xml.Document",{statics:{DOMDOC:null,XMLHTTP:null,isXmlDocument:function(a){return a.nodeType===9?a.documentElement.nodeName!=="HTML":a.ownerDocument?this.isXmlDocument(a.ownerDocument):false},create:function(a,b){if(qx.core.Environment.get("plugin.activex")){var c=new ActiveXObject(this.DOMDOC);this.DOMDOC=="MSXML2.DOMDocument.3.0"&&c.setProperty("SelectionLanguage","XPath");if(b){var d='<?xml version="1.0" encoding="utf-8"?>\n<';d+=b;a&&(d+=" xmlns='"+a+"'");d+=" />";
c.loadXML(d)}return c}if(qx.core.Environment.get("xml.implementation"))return document.implementation.createDocument(a||"",b||"",null);throw Error("No XML implementation available!");},fromString:function(a){if(qx.core.Environment.get("plugin.activex")){var b=qx.xml.Document.create();b.loadXML(a);return b}if(qx.core.Environment.get("xml.domparser"))return(new DOMParser).parseFromString(a,"text/xml");throw Error("No XML implementation available!");}},defer:function(a){if(qx.core.Environment.get("plugin.activex"))for(var b=
["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.3.0"],c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0"],d=0,e=b.length;d<e;d++){try{new ActiveXObject(b[d]),new ActiveXObject(c[d])}catch(f){continue}a.DOMDOC=b[d];a.XMLHTTP=c[d];break}}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Xml",{statics:{getImplementation:function(){return document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XML","1.0")},getDomParser:function(){return typeof window.DOMParser!=="undefined"},getSelectSingleNode:function(){return typeof qx.xml.Document.create().selectSingleNode!=="undefined"},getSelectNodes:function(){return typeof qx.xml.Document.create().selectNodes!=="undefined"},getElementsByTagNameNS:function(){return typeof qx.xml.Document.create().getElementsByTagNameNS!==
"undefined"},getDomProperties:function(){var a=qx.xml.Document.create();return"getProperty"in a&&typeof a.getProperty("SelectionLanguage")==="string"},getAttributeNS:function(){var a=qx.xml.Document.fromString("<a></a>").documentElement;return typeof a.getAttributeNS==="function"&&typeof a.setAttributeNS==="function"},getCreateElementNS:function(){return typeof qx.xml.Document.create().createElementNS==="function"},getCreateNode:function(){return typeof qx.xml.Document.create().createNode!=="undefined"},
getQualifiedItem:function(){return typeof qx.xml.Document.fromString("<a></a>").documentElement.attributes.getQualifiedItem!=="undefined"}},defer:function(a){qx.core.Environment.add("xml.implementation",a.getImplementation);qx.core.Environment.add("xml.domparser",a.getDomParser);qx.core.Environment.add("xml.selectsinglenode",a.getSelectSingleNode);qx.core.Environment.add("xml.selectnodes",a.getSelectNodes);qx.core.Environment.add("xml.getelementsbytagnamens",a.getElementsByTagNameNS);qx.core.Environment.add("xml.domproperties",
a.getDomProperties);qx.core.Environment.add("xml.attributens",a.getAttributeNS);qx.core.Environment.add("xml.createelementns",a.getCreateElementNS);qx.core.Environment.add("xml.createnode",a.getCreateNode);qx.core.Environment.add("xml.getqualifieditem",a.getQualifiedItem)}})})();(function(){qx.Class.define("qx.event.type.Focus",{extend:qx.event.type.Event,members:{init:function(a,b,c){qx.event.type.Event.prototype.init.call(this,c,false);this._target=a;this._relatedTarget=b;return this}}})})();
(function(){qx.Class.define("qx.bom.element.Scroll",{statics:{intoViewX:function(a,b,c){for(var d=a.parentNode,e=qx.dom.Node.getDocument(a),f=e.body,g,h,i,j,k,l,m,n,o=c==="left",c=c==="right",b=b?b.parentNode:e;d&&d!=b;){if(d.scrollWidth>d.clientWidth&&(d===f||qx.bom.element.Overflow.getY(d)!="visible"))d===f?(g=d.scrollLeft,h=g+qx.bom.Viewport.getWidth(),qx.bom.Viewport.getWidth(),e=d.clientWidth,i=k=j=0):(e=qx.bom.element.Location.get(d),g=e.left,h=e.right,i=d.offsetWidth,e=d.clientWidth,j=parseInt(qx.bom.element.Style.get(d,
"borderLeftWidth"),10)||0,k=parseInt(qx.bom.element.Style.get(d,"borderRightWidth"),10)||0,i=i-e-j-k),l=qx.bom.element.Location.get(a),m=l.left,n=l.right,l=a.offsetWidth,g=m-g-j,h=n-h+k,k=0,o?k=g:c?k=h+i:g<0||l>e?k=g:h>0&&(k=h+i),d.scrollLeft+=k,qx.event.Registration.fireNonBubblingEvent(d,"scroll");if(d===f)break;d=d.parentNode}},intoViewY:function(a,b,c){for(var d=a.parentNode,e=qx.dom.Node.getDocument(a),f=e.body,g,h,i,j,k,l,m,n,o=c==="top",c=c==="bottom",b=b?b.parentNode:e;d&&d!=b;){if(d.scrollHeight>
d.clientHeight&&(d===f||qx.bom.element.Overflow.getY(d)!="visible"))d===f?(g=d.scrollTop,h=g+qx.bom.Viewport.getHeight(),qx.bom.Viewport.getHeight(),e=d.clientHeight,i=k=j=0):(e=qx.bom.element.Location.get(d),g=e.top,h=e.bottom,i=d.offsetHeight,e=d.clientHeight,j=parseInt(qx.bom.element.Style.get(d,"borderTopWidth"),10)||0,k=parseInt(qx.bom.element.Style.get(d,"borderBottomWidth"),10)||0,i=i-e-j-k),l=qx.bom.element.Location.get(a),m=l.top,n=l.bottom,l=a.offsetHeight,g=m-g-j,h=n-h+k,k=0,o?k=g:c?k=
h+i:g<0||l>e?k=g:h>0&&(k=h+i),d.scrollTop+=k,qx.event.Registration.fireNonBubblingEvent(d,"scroll");if(d===f)break;d=d.parentNode}},intoView:function(a,b,c,d){this.intoViewX(a,b,c);this.intoViewY(a,b,d)}}})})();
(function(){qx.Class.define("qx.bom.element.Location",{statics:{__hE:function(a,b){return qx.bom.element.Style.get(a,b,qx.bom.element.Style.COMPUTED_MODE,false)},__hF:function(a,b){return parseInt(qx.bom.element.Style.get(a,b,qx.bom.element.Style.COMPUTED_MODE,false),10)||0},__hG:function(a){var b=0,c=0;if(a.getBoundingClientRect&&qx.core.Environment.get("engine.name")!="opera")a=qx.dom.Node.getWindow(a),b-=qx.bom.Viewport.getScrollLeft(a),c-=qx.bom.Viewport.getScrollTop(a);else for(var d=qx.dom.Node.getDocument(a).body,
a=a.parentNode;a&&a!=d;)b+=a.scrollLeft,c+=a.scrollTop,a=a.parentNode;return{left:b,top:c}},__hH:qx.core.Environment.select("engine.name",{mshtml:function(a){var a=qx.dom.Node.getDocument(a),b=a.body,c=0,d=0;c-=b.clientLeft+a.documentElement.clientLeft;d-=b.clientTop+a.documentElement.clientTop;qx.core.Environment.get("browser.quirksmode")||(c+=this.__hF(b,"borderLeftWidth"),d+=this.__hF(b,"borderTopWidth"));return{left:c,top:d}},webkit:function(a){var a=qx.dom.Node.getDocument(a).body,b=a.offsetLeft,
c=a.offsetTop;parseFloat(qx.core.Environment.get("engine.version"))<530.17&&(b+=this.__hF(a,"borderLeftWidth"),c+=this.__hF(a,"borderTopWidth"));return{left:b,top:c}},gecko:function(a){var a=qx.dom.Node.getDocument(a).body,b=a.offsetLeft,c=a.offsetTop;parseFloat(qx.core.Environment.get("engine.version"))<1.9&&(b+=this.__hF(a,"marginLeft"),c+=this.__hF(a,"marginTop"));qx.bom.element.BoxSizing.get(a)!=="border-box"&&(b+=this.__hF(a,"borderLeftWidth"),c+=this.__hF(a,"borderTopWidth"));return{left:b,
top:c}},"default":function(a){a=qx.dom.Node.getDocument(a).body;return{left:a.offsetLeft,top:a.offsetTop}}}),__hI:qx.core.Environment.select("engine.name",{"mshtml|webkit":function(a){var b=qx.dom.Node.getDocument(a);if(a.getBoundingClientRect)var a=a.getBoundingClientRect(),c=a.left,d=a.top;else{c=a.offsetLeft;d=a.offsetTop;a=a.offsetParent;for(b=b.body;a&&a!=b;)c+=a.offsetLeft,d+=a.offsetTop,c+=this.__hF(a,"borderLeftWidth"),d+=this.__hF(a,"borderTopWidth"),a=a.offsetParent}return{left:c,top:d}},
gecko:function(a){if(a.getBoundingClientRect)var a=a.getBoundingClientRect(),b=Math.round(a.left),c=Math.round(a.top);else{var c=b=0,d=qx.dom.Node.getDocument(a).body,e=qx.bom.element.BoxSizing;e.get(a)!=="border-box"&&(b-=this.__hF(a,"borderLeftWidth"),c-=this.__hF(a,"borderTopWidth"));for(;a&&a!==d;)b+=a.offsetLeft,c+=a.offsetTop,e.get(a)!=="border-box"&&(b+=this.__hF(a,"borderLeftWidth"),c+=this.__hF(a,"borderTopWidth")),a.parentNode&&this.__hE(a.parentNode,"overflow")!="visible"&&(b+=this.__hF(a.parentNode,
"borderLeftWidth"),c+=this.__hF(a.parentNode,"borderTopWidth")),a=a.offsetParent}return{left:b,top:c}},"default":function(a){for(var b=0,c=0,d=qx.dom.Node.getDocument(a).body;a&&a!==d;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{left:b,top:c}}}),get:function(a,b){if(a.tagName=="BODY")var c=this.__hJ(a),d=c.left,c=c.top;else var c=this.__hH(a),e=this.__hI(a),f=this.__hG(a),d=e.left+c.left-f.left,c=e.top+c.top-f.top;e=d+a.offsetWidth;f=c+a.offsetHeight;if(b){if(b=="padding"||b=="scroll"){var g=
qx.bom.element.Overflow.getX(a);if(g=="scroll"||g=="auto")e+=a.scrollWidth-a.offsetWidth+this.__hF(a,"borderLeftWidth")+this.__hF(a,"borderRightWidth");g=qx.bom.element.Overflow.getY(a);if(g=="scroll"||g=="auto")f+=a.scrollHeight-a.offsetHeight+this.__hF(a,"borderTopWidth")+this.__hF(a,"borderBottomWidth")}switch(b){case "padding":d+=this.__hF(a,"paddingLeft"),c+=this.__hF(a,"paddingTop"),e-=this.__hF(a,"paddingRight"),f-=this.__hF(a,"paddingBottom");case "scroll":d-=a.scrollLeft,c-=a.scrollTop,e-=
a.scrollLeft,f-=a.scrollTop;case "border":d+=this.__hF(a,"borderLeftWidth");c+=this.__hF(a,"borderTopWidth");e-=this.__hF(a,"borderRightWidth");f-=this.__hF(a,"borderBottomWidth");break;case "margin":d-=this.__hF(a,"marginLeft"),c-=this.__hF(a,"marginTop"),e+=this.__hF(a,"marginRight"),f+=this.__hF(a,"marginBottom")}}return{left:d,top:c,right:e,bottom:f}},__hJ:function(a){var b=a.offsetTop,c=a.offsetLeft;if(qx.core.Environment.get("engine.name")!=="mshtml"||!(parseFloat(qx.core.Environment.get("engine.version"))<
8||qx.core.Environment.get("browser.documentmode")<8)||qx.core.Environment.get("browser.quirksmode"))b+=this.__hF(a,"marginTop"),c+=this.__hF(a,"marginLeft");qx.core.Environment.get("engine.name")==="gecko"&&(b+=this.__hF(a,"borderLeftWidth"),c+=this.__hF(a,"borderTopWidth"));return{left:c,top:b}},getLeft:function(a,b){return this.get(a,b).left},getTop:function(a,b){return this.get(a,b).top},getRight:function(a,b){return this.get(a,b).right},getBottom:function(a,b){return this.get(a,b).bottom},getRelative:function(a,
b,c,d){a=this.get(a,c);b=this.get(b,d);return{left:a.left-b.left,top:a.top-b.top,right:a.right-b.right,bottom:a.bottom-b.bottom}},getPosition:function(a){return this.getRelative(a,this.getOffsetParent(a))},getOffsetParent:function(a){for(var a=a.offsetParent||document.body,b=qx.bom.element.Style;a&&!/^body|html$/i.test(a.tagName)&&b.get(a,"position")==="static";)a=a.offsetParent;return a}}})})();
(function(){qx.Class.define("qx.ui.core.queue.Manager",{statics:{__hK:false,__hL:{},__hM:0,MAX_RETRIES:10,scheduleFlush:function(a){var b=qx.ui.core.queue.Manager;b.__hL[a]=true;if(!b.__hK)b.__fA.schedule(),b.__hK=true},flush:function(){if(!qx.ui.core.queue.Manager.PAUSE){var a=qx.ui.core.queue.Manager;if(!a.__hN){a.__hN=true;a.__fA.cancel();var b=a.__hL;a.__hO(function(){for(;b.visibility||b.widget||b.appearance||b.layout||b.element;){if(b.widget)if(delete b.widget,qx.core.Environment.get("qx.debug"))try{qx.ui.core.queue.Widget.flush()}catch(a){qx.log.Logger.error("Error in the 'Widget' queue:"+
a)}else qx.ui.core.queue.Widget.flush();if(b.visibility)if(delete b.visibility,qx.core.Environment.get("qx.debug"))try{qx.ui.core.queue.Visibility.flush()}catch(d){qx.log.Logger.error("Error in the 'Visibility' queue:"+d)}else qx.ui.core.queue.Visibility.flush();if(b.appearance)if(delete b.appearance,qx.core.Environment.get("qx.debug"))try{qx.ui.core.queue.Appearance.flush()}catch(e){qx.log.Logger.error("Error in the 'Appearance' queue:"+e)}else qx.ui.core.queue.Appearance.flush();if(!b.widget&&!b.visibility&&
!b.appearance){if(b.layout)if(delete b.layout,qx.core.Environment.get("qx.debug"))try{qx.ui.core.queue.Layout.flush()}catch(f){qx.log.Logger.error("Error in the 'Layout' queue:"+f)}else qx.ui.core.queue.Layout.flush();!b.widget&&!b.visibility&&!b.appearance&&!b.layout&&b.element&&(delete b.element,qx.html.Element.flush())}}},function(){a.__hK=false});a.__hO(function(){if(b.dispose)if(delete b.dispose,qx.core.Environment.get("qx.debug"))try{qx.ui.core.queue.Dispose.flush()}catch(a){qx.log.Logger.error("Error in the 'Dispose' queue:"+
a)}else qx.ui.core.queue.Dispose.flush()},function(){a.__hN=false});a.__hM=0}}},__hO:qx.core.Environment.select("qx.debug",{"true":function(a,b){a();b()},"false":function(a,b){var c=qx.ui.core.queue.Manager;try{a()}catch(d){qx.core.Environment.get("qx.debug")&&qx.log.Logger.error("Error while layout flush: "+d+"\nStack trace: \n"+qx.dev.StackTrace.getStackTraceFromError(d));c.__hK=false;c.__hN=false;c.__hM+=1;qx.core.Environment.get("browser.name")=="ie"&&qx.core.Environment.get("browser.version")<=
7&&b();if(c.__hM<=c.MAX_RETRIES)c.scheduleFlush();else throw Error("Fatal Error: Flush terminated "+(c.__hM-1)+" times in a row due to exceptions in user code. The application has to be reloaded!");throw d;}finally{b()}}}),__hP:function(a){var b=qx.ui.core.queue.Manager;a.getData()=="touchend"?(b.PAUSE=true,b.__hQ&&window.clearTimeout(b.__hQ),b.__hQ=window.setTimeout(function(){b.PAUSE=false;b.__hQ=null;b.flush()},500)):b.flush()}},defer:function(a){a.__fA=new qx.util.DeferredCall(a.flush);qx.html.Element._scheduleFlush=
a.scheduleFlush;qx.event.Registration.addListener(window,"useraction",qx.core.Environment.get("event.touch")?a.__hP:a.flush)}})})();
(function(){qx.Class.define("qx.ui.core.queue.Widget",{statics:{__dC:[],remove:function(a){qx.lang.Array.remove(this.__dC,a)},add:function(a){var b=this.__dC;qx.lang.Array.contains(b,a)||(b.unshift(a),qx.ui.core.queue.Manager.scheduleFlush("widget"))},flush:function(){for(var a=this.__dC,b,c=a.length-1;c>=0;c--)b=a[c],a.splice(c,1),b.syncWidget();if(a.length==0)this.__dC=[]}}})})();
(function(){qx.Class.define("qx.ui.core.queue.Visibility",{statics:{__dC:[],__cP:{},remove:function(a){delete this.__cP[a.$$hash];qx.lang.Array.remove(this.__dC,a)},isVisible:function(a){return this.__cP[a.$$hash]||false},__hR:function(a){var b=this.__cP,c=a.$$hash;if(a.isExcluded())a=false;else var d=a.$$parent,a=d?this.__hR(d):a.isRootWidget();return b[c]=a},add:function(a){var b=this.__dC;qx.lang.Array.contains(b,a)||(b.unshift(a),qx.ui.core.queue.Manager.scheduleFlush("visibility"))},flush:function(){for(var a=
this.__dC,b=this.__cP,c=a.length-1;c>=0;c--){var d=a[c].$$hash;b[d]!=null&&a[c].addChildrenToQueue(a)}for(var e={},c=a.length-1;c>=0;c--)d=a[c].$$hash,e[d]=b[d],b[d]=null;for(c=a.length-1;c>=0;c--){var f=a[c],d=f.$$hash;a.splice(c,1);b[d]==null&&this.__hR(f);b[d]&&b[d]!=e[d]&&f.checkAppearanceNeeds()}this.__dC=[]}}})})();
(function(){qx.Class.define("qx.ui.core.queue.Appearance",{statics:{__dC:[],remove:function(a){qx.lang.Array.remove(this.__dC,a)},add:function(a){var b=this.__dC;qx.lang.Array.contains(b,a)||(b.unshift(a),qx.ui.core.queue.Manager.scheduleFlush("appearance"))},has:function(a){return qx.lang.Array.contains(this.__dC,a)},flush:function(){for(var a=qx.ui.core.queue.Visibility,b=this.__dC,c,d=b.length-1;d>=0;d--)c=b[d],b.splice(d,1),a.isVisible(c)?c.syncAppearance():c.$$stateChanges=true}}})})();
(function(){qx.Class.define("qx.ui.core.queue.Dispose",{statics:{__dC:[],add:function(a){var b=this.__dC;qx.lang.Array.contains(b,a)||(b.unshift(a),qx.ui.core.queue.Manager.scheduleFlush("dispose"))},isEmpty:function(){return this.__dC.length==0},flush:function(){for(var a=this.__dC,b=a.length-1;b>=0;b--){var c=a[b];a.splice(b,1);c.dispose()}if(a.length==0)this.__dC=[]}}})})();
(function(){qx.Class.define("qx.ui.core.DecoratorFactory",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__cO={}},statics:{MAX_SIZE:15,__hS:"$$nopool$$"},members:{__cO:null,getDecoratorElement:function(a){var b=qx.ui.core.DecoratorFactory;qx.lang.Type.isString(a)?(b=a,a=qx.theme.manager.Decoration.getInstance().resolve(a)):b=b.__hS;var c=this.__cO,b=c[b]&&c[b].length>0?c[b].pop():this._createDecoratorElement(a,b);b.$$pooled=false;return b},poolDecorator:function(a){if(a&&
!a.$$pooled&&!a.isDisposed()){var b=qx.ui.core.DecoratorFactory,c=a.getId();if(c==b.__hS)a.dispose();else{var d=this.__cO;d[c]||(d[c]=[]);d[c].length>b.MAX_SIZE?a.dispose():(a.$$pooled=true,d[c].push(a))}}},_createDecoratorElement:function(a,b){var c=new qx.html.Decorator(a,b);qx.core.Environment.get("qx.debug")&&c.setAttribute("qxType","decorator");return c},toString:qx.core.Environment.select("qx.debug",{"true":function(){var a=0,b=0,c;for(c in this.__cO)a+=1,b+=this.__cO[c].length;return["qx.ui.core.DecoratorFactory[",
this.$$hash,"] keys: ",a,", elements: ",b].join("")},"false":function(){return qx.core.Object.prototype.toString.call(this)}})},destruct:function(){if(!qx.core.ObjectRegistry.inShutDown){var a=this.__cO,b;for(b in a)qx.util.DisposeUtil.disposeArray(a,b)}this.__cO=null}})})();
(function(){qx.Class.define("qx.html.Decorator",{extend:qx.html.Element,construct:function(a,b){var c={position:"absolute",top:0,left:0};if(qx.core.Environment.get("event.pointer"))c.pointerEvents="none";qx.html.Element.call(this,null,c);this.__hT=a;this.__cq=b||a.toHashCode();this.useMarkup(a.getMarkup())},members:{__cq:null,__hT:null,getId:function(){return this.__cq},getDecorator:function(){return this.__hT},resize:function(a,b){this.__hT.resize(this.getDomElement(),a,b)},tint:function(a){this.__hT.tint(this.getDomElement(),
a)},getInsets:function(){return this.__hT.getInsets()}},destruct:function(){this.__hT=null}})})();
(function(){qx.Class.define("qx.ui.core.Widget",{extend:qx.ui.core.LayoutItem,include:[qx.locale.MTranslation],construct:function(){qx.ui.core.LayoutItem.call(this);this.__hU=this._createContainerElement();this.__hV=this.__ih();this.__hU.add(this.__hV);this.initFocusable();this.initSelectable();this.initNativeContextMenu()},events:{appear:"qx.event.type.Event",disappear:"qx.event.type.Event",createChildControl:"qx.event.type.Data",resize:"qx.event.type.Data",move:"qx.event.type.Data",syncAppearance:"qx.event.type.Data",
mousemove:"qx.event.type.Mouse",mouseover:"qx.event.type.Mouse",mouseout:"qx.event.type.Mouse",mousedown:"qx.event.type.Mouse",mouseup:"qx.event.type.Mouse",click:"qx.event.type.Mouse",dblclick:"qx.event.type.Mouse",contextmenu:"qx.event.type.Mouse",beforeContextmenuOpen:"qx.event.type.Data",mousewheel:"qx.event.type.MouseWheel",touchstart:"qx.event.type.Touch",touchend:"qx.event.type.Touch",touchmove:"qx.event.type.Touch",touchcancel:"qx.event.type.Touch",tap:"qx.event.type.Touch",swipe:"qx.event.type.Touch",
keyup:"qx.event.type.KeySequence",keydown:"qx.event.type.KeySequence",keypress:"qx.event.type.KeySequence",keyinput:"qx.event.type.KeyInput",focus:"qx.event.type.Focus",blur:"qx.event.type.Focus",focusin:"qx.event.type.Focus",focusout:"qx.event.type.Focus",activate:"qx.event.type.Focus",deactivate:"qx.event.type.Focus",capture:"qx.event.type.Event",losecapture:"qx.event.type.Event",drop:"qx.event.type.Drag",dragleave:"qx.event.type.Drag",dragover:"qx.event.type.Drag",drag:"qx.event.type.Drag",dragstart:"qx.event.type.Drag",
dragend:"qx.event.type.Drag",dragchange:"qx.event.type.Drag",droprequest:"qx.event.type.Drag"},properties:{paddingTop:{check:"Integer",init:0,apply:"_applyPadding",themeable:true},paddingRight:{check:"Integer",init:0,apply:"_applyPadding",themeable:true},paddingBottom:{check:"Integer",init:0,apply:"_applyPadding",themeable:true},paddingLeft:{check:"Integer",init:0,apply:"_applyPadding",themeable:true},padding:{group:["paddingTop","paddingRight","paddingBottom","paddingLeft"],mode:"shorthand",themeable:true},
zIndex:{nullable:true,init:null,apply:"_applyZIndex",event:"changeZIndex",check:"Integer",themeable:true},decorator:{nullable:true,init:null,apply:"_applyDecorator",event:"changeDecorator",check:"Decorator",themeable:true},shadow:{nullable:true,init:null,apply:"_applyShadow",event:"changeShadow",check:"Decorator",themeable:true},backgroundColor:{nullable:true,check:"Color",apply:"_applyBackgroundColor",event:"changeBackgroundColor",themeable:true},textColor:{nullable:true,check:"Color",apply:"_applyTextColor",
event:"changeTextColor",themeable:true,inheritable:true},font:{nullable:true,apply:"_applyFont",check:"Font",event:"changeFont",themeable:true,inheritable:true,dereference:true},opacity:{check:"Number",apply:"_applyOpacity",themeable:true,nullable:true,init:null},cursor:{check:"String",apply:"_applyCursor",themeable:true,inheritable:true,nullable:true,init:null},toolTip:{check:"qx.ui.tooltip.ToolTip",nullable:true},toolTipText:{check:"String",nullable:true,event:"changeToolTipText",apply:"_applyToolTipText"},
toolTipIcon:{check:"String",nullable:true,event:"changeToolTipText"},blockToolTip:{check:"Boolean",init:false},visibility:{check:["visible","hidden","excluded"],init:"visible",apply:"_applyVisibility",event:"changeVisibility"},enabled:{init:true,check:"Boolean",inheritable:true,apply:"_applyEnabled",event:"changeEnabled"},anonymous:{init:false,check:"Boolean"},tabIndex:{check:"Integer",nullable:true,apply:"_applyTabIndex"},focusable:{check:"Boolean",init:false,apply:"_applyFocusable"},keepFocus:{check:"Boolean",
init:false,apply:"_applyKeepFocus"},keepActive:{check:"Boolean",init:false,apply:"_applyKeepActive"},draggable:{check:"Boolean",init:false,apply:"_applyDraggable"},droppable:{check:"Boolean",init:false,apply:"_applyDroppable"},selectable:{check:"Boolean",init:false,event:"changeSelectable",apply:"_applySelectable"},contextMenu:{check:"qx.ui.menu.Menu",apply:"_applyContextMenu",nullable:true,event:"changeContextMenu"},nativeContextMenu:{check:"Boolean",init:false,themeable:true,event:"changeNativeContextMenu",
apply:"_applyNativeContextMenu"},appearance:{check:"String",init:"widget",apply:"_applyAppearance",event:"changeAppearance"}},statics:{DEBUG:false,getWidgetByElement:function(a,b){for(;a;){var c=a.$$widget;if(c!=null&&(c=qx.core.ObjectRegistry.fromHashCode(c),!b||!c.getAnonymous()))return c;try{a=a.parentNode}catch(d){break}}return null},contains:function(a,b){for(;b;){if(a==b)return true;b=b.getLayoutParent()}return false},__hW:new qx.ui.core.DecoratorFactory,__hX:new qx.ui.core.DecoratorFactory},
members:{__hU:null,__hV:null,__hY:null,__ia:null,__ib:null,__ic:null,__id:null,__ie:null,_getLayout:function(){return this.__ie},_setLayout:function(a){qx.core.Environment.get("qx.debug")&&a&&this.assertInstance(a,qx.ui.layout.Abstract);this.__ie&&this.__ie.connectToWidget(null);a&&a.connectToWidget(this);this.__ie=a;qx.ui.core.queue.Layout.add(this)},setLayoutParent:function(a){if(this.$$parent!==a){var b=this.getContainerElement();this.$$parent&&!this.$$parent.$$disposed&&this.$$parent.getContentElement().remove(b);
this.$$parent=a||null;a&&!a.$$disposed&&this.$$parent.getContentElement().add(b);this.$$refreshInheritables();qx.ui.core.queue.Visibility.add(this)}},_updateInsets:null,__if:function(a,b){if(a==b)return false;if(a==null||b==null)return true;var c=qx.theme.manager.Decoration.getInstance(),d=c.resolve(a).getInsets(),c=c.resolve(b).getInsets();return d.top!=c.top||d.right!=c.right||d.bottom!=c.bottom||d.left!=c.left?true:false},renderLayout:function(a,b,c,d){var e=qx.ui.core.LayoutItem.prototype.renderLayout.call(this,
a,b,c,d);if(!e)return null;var f=this.getContainerElement(),g=this.getContentElement(),h=e.size||this._updateInsets,i={};if(e.position)i.left=a+"px",i.top=b+"px";if(e.size)i.width=c+"px",i.height=d+"px";(e.position||e.size)&&f.setStyles(i);if(h||e.local||e.margin)var j=this.getInsets(),k=c-j.left-j.right,l=d-j.top-j.bottom,k=k<0?0:k,l=l<0?0:l;a={};if(this._updateInsets)a.left=j.left+"px",a.top=j.top+"px";if(h)a.width=k+"px",a.height=l+"px";(h||this._updateInsets)&&g.setStyles(a);if(e.size)(g=this.__ib)&&
g.setStyles({width:c+"px",height:d+"px"});(e.size||this._updateInsets)&&this.__hY&&this.__hY.resize(c,d);e.size&&this.__ia&&(j=this.__ia.getInsets(),this.__ia.resize(c+j.left+j.right,d+j.top+j.bottom));if(h||e.local||e.margin)if(this.__ie&&this.hasLayoutChildren())this.__ie.renderLayout(k,l);else if(this.hasLayoutChildren())throw Error("At least one child in control "+this._findTopControl()+" requires a layout, but no one was defined!");e.position&&this.hasListener("move")&&this.fireDataEvent("move",
this.getBounds());e.size&&this.hasListener("resize")&&this.fireDataEvent("resize",this.getBounds());delete this._updateInsets;return e},__ig:null,clearSeparators:function(){var a=this.__ig;if(a){for(var b=qx.ui.core.Widget.__hW,c=this.getContentElement(),d,e=0,f=a.length;e<f;e++)d=a[e],b.poolDecorator(d),c.remove(d);a.length=0}},renderSeparator:function(a,b){var c=qx.ui.core.Widget.__hW.getDecoratorElement(a);this.getContentElement().add(c);c.resize(b.width,b.height);c.setStyles({left:b.left+"px",
top:b.top+"px"});this.__ig?this.__ig.push(c):this.__ig=[c]},_computeSizeHint:function(){var a=this.getWidth(),b=this.getMinWidth(),c=this.getMaxWidth(),d=this.getHeight(),e=this.getMinHeight(),f=this.getMaxHeight();qx.core.Environment.get("qx.debug")&&(b!==null&&c!==null&&this.assert(b<=c,"minWidth is larger than maxWidth!"),e!==null&&f!==null&&this.assert(e<=f,"minHeight is larger than maxHeight!"));var g=this._getContentHint(),h=this.getInsets(),i=h.left+h.right,h=h.top+h.bottom;a==null&&(a=g.width+
i);d==null&&(d=g.height+h);b==null&&(b=i,g.minWidth!=null&&(b+=g.minWidth,b>c&&c!=null&&(b=c)));e==null&&(e=h,g.minHeight!=null&&(e+=g.minHeight,e>f&&f!=null&&(e=f)));c==null&&(g.maxWidth==null?c=Infinity:(c=g.maxWidth+i,c<b&&b!=null&&(c=b)));f==null&&(g.maxHeight==null?f=Infinity:(f=g.maxHeight+h,f<e&&e!=null&&(f=e)));return{width:a,minWidth:b,maxWidth:c,height:d,minHeight:e,maxHeight:f}},invalidateLayoutCache:function(){qx.ui.core.LayoutItem.prototype.invalidateLayoutCache.call(this);this.__ie&&
this.__ie.invalidateLayoutCache()},_getContentHint:function(){var a=this.__ie;if(a)if(this.hasLayoutChildren()){a=a.getSizeHint();if(qx.core.Environment.get("qx.debug")){var b="The layout of the widget"+this.toString()+" returned an invalid size hint!";this.assertInteger(a.width,"Wrong 'left' argument. "+b);this.assertInteger(a.height,"Wrong 'top' argument. "+b)}return a}else return{width:0,height:0};else return{width:100,height:50}},_getHeightForWidth:function(a){var b=this.getInsets(),c=b.top+b.bottom,
b=a-(b.left+b.right),d=this._getLayout();return(d&&d.hasHeightForWidth()?d.getHeightForWidth(a):this._getContentHeightForWidth(b))+c},_getContentHeightForWidth:function(){throw Error("Abstract method call: _getContentHeightForWidth()!");},getInsets:function(){var a=this.getPaddingTop(),b=this.getPaddingRight(),c=this.getPaddingBottom(),d=this.getPaddingLeft();if(this.__hY){var e=this.__hY.getInsets();qx.core.Environment.get("qx.debug")&&(this.assertNumber(e.top,"Invalid top decorator inset detected: "+
e.top),this.assertNumber(e.right,"Invalid right decorator inset detected: "+e.right),this.assertNumber(e.bottom,"Invalid bottom decorator inset detected: "+e.bottom),this.assertNumber(e.left,"Invalid left decorator inset detected: "+e.left));a+=e.top;b+=e.right;c+=e.bottom;d+=e.left}return{top:a,right:b,bottom:c,left:d}},getInnerSize:function(){var a=this.getBounds();if(!a)return null;var b=this.getInsets();return{width:a.width-b.left-b.right,height:a.height-b.top-b.bottom}},show:function(){this.setVisibility("visible")},
hide:function(){this.setVisibility("hidden")},exclude:function(){this.setVisibility("excluded")},isVisible:function(){return this.getVisibility()==="visible"},isHidden:function(){return this.getVisibility()!=="visible"},isExcluded:function(){return this.getVisibility()==="excluded"},isSeeable:function(){qx.ui.core.queue.Manager.flush();var a=this.getContainerElement().getDomElement();return a?a.offsetWidth>0:false},_createContainerElement:function(){var a={$$widget:this.toHashCode()};if(qx.core.Environment.get("qx.debug"))a.qxType=
"container",a.qxClass=this.classname;return new qx.html.Element("div",{zIndex:0,position:"absolute"},a)},__ih:function(){var a=this._createContentElement();qx.core.Environment.get("qx.debug")&&a.setAttribute("qxType","content");a.setStyles({position:"absolute",zIndex:10});return a},_createContentElement:function(){return new qx.html.Element("div",{overflowX:"hidden",overflowY:"hidden"})},getContainerElement:function(){return this.__hU},getContentElement:function(){return this.__hV},getDecoratorElement:function(){return this.__hY||
null},getShadowElement:function(){return this.__ia||null},__ii:null,getLayoutChildren:function(){var a=this.__ii;if(!a)return this.__ij;for(var b,c=0,d=a.length;c<d;c++){var e=a[c];if(e.hasUserBounds()||e.isExcluded())b==null&&(b=a.concat()),qx.lang.Array.remove(b,e)}return b||a},scheduleLayoutUpdate:function(){qx.ui.core.queue.Layout.add(this)},invalidateLayoutChildren:function(){var a=this.__ie;a&&a.invalidateChildrenCache();qx.ui.core.queue.Layout.add(this)},hasLayoutChildren:function(){var a=
this.__ii;if(!a)return false;for(var b,c=0,d=a.length;c<d;c++)if(b=a[c],!b.hasUserBounds()&&!b.isExcluded())return true;return false},getChildrenContainer:function(){return this},__ij:[],_getChildren:function(){return this.__ii||this.__ij},_indexOf:function(a){var b=this.__ii;return!b?-1:b.indexOf(a)},_hasChildren:function(){var a=this.__ii;return a!=null&&!!a[0]},addChildrenToQueue:function(a){var b=this.__ii;if(b)for(var c,d=0,e=b.length;d<e;d++)c=b[d],a.push(c),c.addChildrenToQueue(a)},_add:function(a,
b){a.getLayoutParent()==this&&qx.lang.Array.remove(this.__ii,a);this.__ii?this.__ii.push(a):this.__ii=[a];this.__ik(a,b)},_addAt:function(a,b,c){if(!this.__ii)this.__ii=[];a.getLayoutParent()==this&&qx.lang.Array.remove(this.__ii,a);b=this.__ii[b];b===a&&a.setLayoutProperties(c);b?qx.lang.Array.insertBefore(this.__ii,a,b):this.__ii.push(a);this.__ik(a,c)},_addBefore:function(a,b,c){qx.core.Environment.get("qx.debug")&&this.assertInArray(b,this._getChildren(),"The 'before' widget is not a child of this widget!");
if(a!=b){if(!this.__ii)this.__ii=[];a.getLayoutParent()==this&&qx.lang.Array.remove(this.__ii,a);qx.lang.Array.insertBefore(this.__ii,a,b);this.__ik(a,c)}},_addAfter:function(a,b,c){qx.core.Environment.get("qx.debug")&&this.assertInArray(b,this._getChildren(),"The 'after' widget is not a child of this widget!");if(a!=b){if(!this.__ii)this.__ii=[];a.getLayoutParent()==this&&qx.lang.Array.remove(this.__ii,a);qx.lang.Array.insertAfter(this.__ii,a,b);this.__ik(a,c)}},_remove:function(a){if(!this.__ii)throw Error("This widget has no children!");
qx.lang.Array.remove(this.__ii,a);this.__il(a)},_removeAt:function(a){if(!this.__ii)throw Error("This widget has no children!");var b=this.__ii[a];qx.lang.Array.removeAt(this.__ii,a);this.__il(b);return b},_removeAll:function(){if(!this.__ii)return[];var a=this.__ii.concat();this.__ii.length=0;for(var b=a.length-1;b>=0;b--)this.__il(a[b]);qx.ui.core.queue.Layout.add(this);return a},_afterAddChild:null,_afterRemoveChild:null,__ik:function(a,b){qx.core.Environment.get("qx.debug")&&(this.assertInstance(a,
qx.ui.core.LayoutItem,"Invalid widget to add: "+a),this.assertNotIdentical(a,this,"Could not add widget to itself: "+a),b!=null&&this.assertType(b,"object","Invalid layout data: "+b));var c=a.getLayoutParent();c&&c!=this&&c._remove(a);a.setLayoutParent(this);b?a.setLayoutProperties(b):this.updateLayoutProperties();this._afterAddChild&&this._afterAddChild(a)},__il:function(a){qx.core.Environment.get("qx.debug")&&this.assertNotUndefined(a);if(a.getLayoutParent()!==this)throw Error("Remove Error: "+
a+" is not a child of this widget!");a.setLayoutParent(null);this.__ie&&this.__ie.invalidateChildrenCache();qx.ui.core.queue.Layout.add(this);this._afterRemoveChild&&this._afterRemoveChild(a)},capture:function(a){this.getContainerElement().capture(a)},releaseCapture:function(){this.getContainerElement().releaseCapture()},_applyPadding:function(){this._updateInsets=true;qx.ui.core.queue.Layout.add(this)},_createProtectorElement:function(){if(!this.__ib){var a=this.__ib=new qx.html.Element;qx.core.Environment.get("qx.debug")&&
a.setAttribute("qxType","protector");a.setStyles({position:"absolute",top:0,left:0,zIndex:7});var b=this.getBounds();b&&this.__ib.setStyles({width:b.width+"px",height:b.height+"px"});qx.core.Environment.get("engine.name")=="mshtml"&&a.setStyles({backgroundImage:"url("+qx.util.ResourceManager.getInstance().toUri("qx/static/blank.gif")+")",backgroundRepeat:"repeat"});this.getContainerElement().add(a)}},_applyDecorator:function(a,b){qx.core.Environment.get("qx.debug")&&a&&typeof a==="object"&&qx.ui.core.Widget.DEBUG&&
this.warn("Decorator instances may increase memory usage and processing time. Often it is better to lay them out to a theme file. Hash code of decorator object: "+a);var c=qx.ui.core.Widget.__hW,d=this.getContainerElement();!this.__ib&&!qx.core.Environment.get("event.pointer")&&this._createProtectorElement();b&&(d.remove(this.__hY),c.poolDecorator(this.__hY));if(a){var e=this.__hY=c.getDecoratorElement(a);e.setStyle("zIndex",5);d.add(e)}else delete this.__hY;this._applyBackgroundColor(this.getBackgroundColor());
if(this.__if(b,a))this._updateInsets=true,qx.ui.core.queue.Layout.add(this);else if(a&&(c=this.getBounds()))e.resize(c.width,c.height),this.__ib&&this.__ib.setStyles({width:c.width+"px",height:c.height+"px"})},_applyShadow:function(a,b){var f;var c=qx.ui.core.Widget.__hX,d=this.getContainerElement();b&&(d.remove(this.__ia),c.poolDecorator(this.__ia));if(a){f=this.__ia=c.getDecoratorElement(a),c=f;d.add(c);d=c.getInsets();c.setStyles({left:-d.left+"px",top:-d.top+"px"});var e=this.getBounds();e&&c.resize(e.width+
d.left+d.right,e.height+d.top+d.bottom);c.tint(null)}else delete this.__ia},_applyToolTipText:function(){if(qx.core.Environment.get("qx.dynlocale")&&!this.__id)this.__id=qx.locale.Manager.getInstance().addListener("changeLocale",function(){var a=this.getToolTipText();a&&a.translate&&this.setToolTipText(a.translate())},this)},_applyTextColor:function(){},_applyZIndex:function(a){this.getContainerElement().setStyle("zIndex",a==null?0:a)},_applyVisibility:function(a,b){var c=this.getContainerElement();
a==="visible"?c.show():c.hide();(c=this.$$parent)&&(b==null||a==null||b==="excluded"||a==="excluded")&&c.invalidateLayoutChildren();qx.ui.core.queue.Visibility.add(this)},_applyOpacity:function(a){this.getContainerElement().setStyle("opacity",a==1?null:a);qx.core.Environment.get("engine.name")=="mshtml"&&qx.bom.element.Decoration.isAlphaImageLoaderEnabled()&&!qx.Class.isSubClassOf(this.getContentElement().constructor,qx.html.Image)&&this.getContentElement().setStyle("opacity",a==1||a==null?null:0.99)},
_applyCursor:function(a){a==null&&!this.isSelectable()&&(a="default");this.getContainerElement().setStyle("cursor",a,qx.core.Environment.get("engine.name")=="opera")},_applyBackgroundColor:function(){var a=this.getBackgroundColor(),b=this.getContainerElement();this.__hY?(this.__hY.tint(a),b.setStyle("backgroundColor",null)):(a=qx.theme.manager.Color.getInstance().resolve(a),b.setStyle("backgroundColor",a))},_applyFont:function(){},__im:null,$$stateChanges:null,_forwardStates:null,hasState:function(a){var b=
this.__im;return!!b&&!!b[a]},addState:function(a){var b=this.__im;if(!b)b=this.__im={};if(!b[a]){this.__im[a]=true;a==="hovered"?this.syncAppearance():qx.ui.core.queue.Visibility.isVisible(this)?qx.ui.core.queue.Appearance.add(this):this.$$stateChanges=true;var c=this._forwardStates,b=this.__ip;if(c&&c[a]&&b)for(var d in b)c=b[d],c instanceof qx.ui.core.Widget&&b[d].addState(a)}},removeState:function(a){var b=this.__im;if(b&&b[a]){delete this.__im[a];a==="hovered"?this.syncAppearance():qx.ui.core.queue.Visibility.isVisible(this)?
qx.ui.core.queue.Appearance.add(this):this.$$stateChanges=true;var c=this._forwardStates,b=this.__ip;if(c&&c[a]&&b)for(var d in b)c=b[d],c instanceof qx.ui.core.Widget&&c.removeState(a)}},replaceState:function(a,b){var c=this.__im;if(!c)c=this.__im={};c[b]||(c[b]=true);c[a]&&delete c[a];qx.ui.core.queue.Visibility.isVisible(this)?qx.ui.core.queue.Appearance.add(this):this.$$stateChanges=true;var d=this._forwardStates,c=this.__ip;if(d&&d[b]&&c)for(var e in c)d=c[e],d instanceof qx.ui.core.Widget&&
d.replaceState(a,b)},__in:null,__io:null,syncAppearance:function(){var a=this.__im,b=this.__in,c=qx.theme.manager.Appearance.getInstance(),d=qx.core.Property.$$method.setThemed,e=qx.core.Property.$$method.resetThemed;if(this.__io&&(delete this.__io,b))var f=c.styleFrom(b,a,null,this.getAppearance()),b=null;if(!b){var b=this,g=[];do g.push(b.$$subcontrol||b.getAppearance());while(b=b.$$subparent);this.__in=b=g.reverse().join("/").replace(/#[0-9]+/g,"")}if(a=c.styleFrom(b,a,null,this.getAppearance())){if(f)for(var h in f)if(a[h]===
void 0)this[e[h]]();if(qx.core.Environment.get("qx.debug"))for(h in a)if(!this[d[h]])throw Error(this.classname+' has no themeable property "'+h+'" while styling '+b);for(h in a)a[h]===void 0?this[e[h]]():this[d[h]](a[h])}else if(f)for(h in f)this[e[h]]();this.fireDataEvent("syncAppearance",this.__im)},_applyAppearance:function(){this.updateAppearance()},checkAppearanceNeeds:function(){this.__ic?this.$$stateChanges&&(qx.ui.core.queue.Appearance.add(this),delete this.$$stateChanges):(qx.ui.core.queue.Appearance.add(this),
this.__ic=true)},updateAppearance:function(){this.__io=true;qx.ui.core.queue.Appearance.add(this);var a=this.__ip;if(a){var b,c;for(c in a)b=a[c],b instanceof qx.ui.core.Widget&&b.updateAppearance()}},syncWidget:function(){},getEventTarget:function(){for(var a=this;a.getAnonymous();)if(a=a.getLayoutParent(),!a)return null;return a},getFocusTarget:function(){var a=this;if(!a.getEnabled())return null;for(;a.getAnonymous()||!a.getFocusable();)if(a=a.getLayoutParent(),!a||!a.getEnabled())return null;
return a},getFocusElement:function(){return this.getContainerElement()},isTabable:function(){return!!this.getContainerElement().getDomElement()&&this.isFocusable()},_applyFocusable:function(a,b){var c=this.getFocusElement();if(a){var d=this.getTabIndex();d==null&&(d=1);c.setAttribute("tabIndex",d);qx.core.Environment.get("engine.name")=="mshtml"&&parseFloat(qx.core.Environment.get("engine.version"))<8||qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("browser.documentmode")<
8?c.setAttribute("hideFocus","true"):c.setStyle("outline","none")}else c.isNativelyFocusable()?c.setAttribute("tabIndex",-1):b&&c.setAttribute("tabIndex",null)},_applyKeepFocus:function(a){this.getFocusElement().setAttribute("qxKeepFocus",a?"on":null)},_applyKeepActive:function(a){this.getContainerElement().setAttribute("qxKeepActive",a?"on":null)},_applyTabIndex:function(a){if(a==null)a=1;else if(a<1||a>32E3)throw Error("TabIndex property must be between 1 and 32000");this.getFocusable()&&a!=null&&
this.getFocusElement().setAttribute("tabIndex",a)},_applySelectable:function(a,b){b!==null&&this._applyCursor(this.getCursor());this.getContentElement().setSelectable(a)},_applyEnabled:function(a){a===false?(this.addState("disabled"),this.removeState("hovered"),this.isFocusable()&&(this.removeState("focused"),this._applyFocusable(false,true)),this.isDraggable()&&this._applyDraggable(false,true),this.isDroppable()&&this._applyDroppable(false,true)):(this.removeState("disabled"),this.isFocusable()&&
this._applyFocusable(true,false),this.isDraggable()&&this._applyDraggable(true,false),this.isDroppable()&&this._applyDroppable(true,false))},_applyNativeContextMenu:function(){},_applyContextMenu:function(a,b){b&&(b.removeState("contextmenu"),b.getOpener()==this&&b.resetOpener(),a||(this.removeListener("contextmenu",this._onContextMenuOpen),b.removeListener("changeVisibility",this._onBeforeContextMenuOpen,this)));a&&(a.setOpener(this),a.addState("contextmenu"),b||(this.addListener("contextmenu",this._onContextMenuOpen),
a.addListener("changeVisibility",this._onBeforeContextMenuOpen,this)))},_onContextMenuOpen:function(a){this.getContextMenu().openAtMouse(a);a.stop()},_onBeforeContextMenuOpen:function(a){a.getData()=="visible"&&this.hasListener("beforeContextmenuOpen")&&this.fireDataEvent("beforeContextmenuOpen",a)},_onStopEvent:function(a){a.stopPropagation()},_applyDraggable:function(a){!this.isEnabled()&&a===true&&(a=false);qx.ui.core.DragDropCursor.getInstance();a?(this.addListener("dragstart",this._onDragStart),
this.addListener("drag",this._onDrag),this.addListener("dragend",this._onDragEnd),this.addListener("dragchange",this._onDragChange)):(this.removeListener("dragstart",this._onDragStart),this.removeListener("drag",this._onDrag),this.removeListener("dragend",this._onDragEnd),this.removeListener("dragchange",this._onDragChange));this.getContainerElement().setAttribute("qxDraggable",a?"on":null)},_applyDroppable:function(a){!this.isEnabled()&&a===true&&(a=false);this.getContainerElement().setAttribute("qxDroppable",
a?"on":null)},_onDragStart:function(a){qx.ui.core.DragDropCursor.getInstance().placeToMouse(a);this.getApplicationRoot().setGlobalCursor("default")},_onDrag:function(a){qx.ui.core.DragDropCursor.getInstance().placeToMouse(a)},_onDragEnd:function(){qx.ui.core.DragDropCursor.getInstance().moveTo(-1E3,-1E3);this.getApplicationRoot().resetGlobalCursor()},_onDragChange:function(a){var b=qx.ui.core.DragDropCursor.getInstance();(a=a.getCurrentAction())?b.setAction(a):b.resetAction()},visualizeFocus:function(){this.addState("focused")},
visualizeBlur:function(){this.removeState("focused")},scrollChildIntoView:function(a,b,c,d){var d=typeof d=="undefined"?true:d,e=qx.ui.core.queue.Layout,f;d&&(d=!e.isScheduled(a),f=a.getLayoutParent(),d&&f&&(d=!e.isScheduled(f))&&f.getChildren().forEach(function(a){d=d&&!e.isScheduled(a)}));this.scrollChildIntoViewX(a,b,d);this.scrollChildIntoViewY(a,c,d)},scrollChildIntoViewX:function(a,b,c){this.getContentElement().scrollChildIntoViewX(a.getContainerElement(),b,c)},scrollChildIntoViewY:function(a,
b,c){this.getContentElement().scrollChildIntoViewY(a.getContainerElement(),b,c)},focus:function(){if(this.isFocusable())this.getFocusElement().focus();else throw Error("Widget is not focusable!");},blur:function(){if(this.isFocusable())this.getFocusElement().blur();else throw Error("Widget is not focusable!");},activate:function(){this.getContainerElement().activate()},deactivate:function(){this.getContainerElement().deactivate()},tabFocus:function(){this.getFocusElement().focus()},hasChildControl:function(a){return!this.__ip?
false:!!this.__ip[a]},__ip:null,_getCreatedChildControls:function(){return this.__ip},getChildControl:function(a,b){if(!this.__ip){if(b)return null;this.__ip={}}var c=this.__ip[a];return c?c:b===true?null:this._createChildControl(a)},_showChildControl:function(a){a=this.getChildControl(a);a.show();return a},_excludeChildControl:function(a){(a=this.getChildControl(a,true))&&a.exclude()},_isChildControlVisible:function(a){return(a=this.getChildControl(a,true))?a.isVisible():false},_createChildControl:function(a){if(this.__ip){if(this.__ip[a])throw Error("Child control '"+
a+"' already created!");}else this.__ip={};var b=a.indexOf("#"),b=b==-1?this._createChildControlImpl(a):this._createChildControlImpl(a.substring(0,b),a.substring(b+1,a.length));if(!b)throw Error("Unsupported control: "+a);b.$$subcontrol=a;b.$$subparent=this;var c=this.__im,d=this._forwardStates;if(c&&d&&b instanceof qx.ui.core.Widget)for(var e in c)d[e]&&b.addState(e);this.fireDataEvent("createChildControl",b);return this.__ip[a]=b},_createChildControlImpl:function(){return null},_disposeChildControls:function(){var a=
this.__ip;if(a){var b=qx.ui.core.Widget,c;for(c in a){var d=a[c];b.contains(this,d)?d.dispose():d.destroy()}delete this.__ip}},_findTopControl:function(){for(var a=this;a;){if(!a.$$subparent)return a;a=a.$$subparent}return null},getContainerLocation:function(a){var b=this.getContainerElement().getDomElement();return b?qx.bom.element.Location.get(b,a):null},getContentLocation:function(a){var b=this.getContentElement().getDomElement();return b?qx.bom.element.Location.get(b,a):null},setDomLeft:function(a){var b=
this.getContainerElement().getDomElement();if(b)b.style.left=a+"px";else throw Error("DOM element is not yet created!");},setDomTop:function(a){var b=this.getContainerElement().getDomElement();if(b)b.style.top=a+"px";else throw Error("DOM element is not yet created!");},setDomPosition:function(a,b){var c=this.getContainerElement().getDomElement();if(c)c.style.left=a+"px",c.style.top=b+"px";else throw Error("DOM element is not yet created!");},destroy:function(){if(!this.$$disposed){var a=this.$$parent;
a&&a._remove(this);qx.ui.core.queue.Dispose.add(this)}},clone:function(){var a=qx.ui.core.LayoutItem.prototype.clone.call(this);if(this.getChildren)for(var b=this.getChildren(),c=0,d=b.length;c<d;c++)a.add(b[c].clone());return a}},destruct:function(){qx.core.ObjectRegistry.inShutDown||(qx.core.Environment.get("qx.dynlocale")&&this.__id&&qx.locale.Manager.getInstance().removeListenerById(this.__id),this.getContainerElement().setAttribute("$$widget",null,true),this._disposeChildControls(),qx.ui.core.queue.Appearance.remove(this),
qx.ui.core.queue.Layout.remove(this),qx.ui.core.queue.Visibility.remove(this),qx.ui.core.queue.Widget.remove(this));this.getContextMenu()&&this.setContextMenu(null);if(qx.core.ObjectRegistry.inShutDown)this._disposeArray("__ig"),this._disposeObjects("__hY","__ia");else{var a=qx.ui.core.Widget,b=this.getContainerElement();this.__hY&&(b.remove(this.__hY),a.__hW.poolDecorator(this.__hY));this.__ia&&(b.remove(this.__ia),a.__hX.poolDecorator(this.__ia));this.clearSeparators();this.__hY=this.__ia=this.__ig=
null}this._disposeArray("__ii");this.__im=this.__ip=null;this._disposeObjects("__ie","__hU","__hV","__ib")}})})();
(function(){qx.Class.define("qx.ui.core.EventHandler",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(){qx.core.Object.call(this);this.__eS=qx.event.Registration.getManager(window)},statics:{PRIORITY:qx.event.Registration.PRIORITY_FIRST,SUPPORTED_TYPES:{mousemove:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,click:1,dblclick:1,contextmenu:1,mousewheel:1,keyup:1,keydown:1,keypress:1,keyinput:1,capture:1,losecapture:1,focusin:1,focusout:1,focus:1,blur:1,activate:1,deactivate:1,
appear:1,disappear:1,dragstart:1,dragend:1,dragover:1,dragleave:1,drop:1,drag:1,dragchange:1,droprequest:1,touchstart:1,touchend:1,touchmove:1,touchcancel:1,tap:1,swipe:1},IGNORE_CAN_HANDLE:false},members:{__eS:null,__iq:{focusin:1,focusout:1,focus:1,blur:1},__ir:{mouseover:1,mouseout:1,appear:1,disappear:1},canHandleEvent:function(a){return a instanceof qx.ui.core.Widget},_dispatchEvent:function(a){for(var b=a.getTarget(),c=qx.ui.core.Widget.getWidgetByElement(b),d=false;c&&c.isAnonymous();)d=true,
c=c.getLayoutParent();c&&d&&a.getType()=="activate"&&c.getContainerElement().activate();if(this.__iq[a.getType()]&&(c=c&&c.getFocusTarget(),!c))return;if(a.getRelatedTarget){for(var d=a.getRelatedTarget(),e=qx.ui.core.Widget.getWidgetByElement(d);e&&e.isAnonymous();)e=e.getLayoutParent();if(e&&(this.__iq[a.getType()]&&(e=e.getFocusTarget()),e===c))return}d=a.getCurrentTarget();if((d=qx.ui.core.Widget.getWidgetByElement(d))&&!d.isAnonymous()){this.__iq[a.getType()]&&(d=d.getFocusTarget());var f=a.getType();
if(d&&(d.isEnabled()||this.__ir[f])){var g=a.getEventPhase()==qx.event.type.Event.CAPTURING_PHASE;if((f=this.__eS.getListeners(d,f,g))&&f.length!==0){g=qx.event.Pool.getInstance().getObject(a.constructor);a.clone(g);g.setTarget(c);g.setRelatedTarget(e||null);g.setCurrentTarget(d);if(c=a.getOriginalTarget())for(b=qx.ui.core.Widget.getWidgetByElement(c);b&&b.isAnonymous();)b=b.getLayoutParent();g.setOriginalTarget(b);b=0;for(c=f.length;b<c;b++)f[b].handler.call(f[b].context||d,g);g.getPropagationStopped()&&
a.stopPropagation();g.getDefaultPrevented()&&a.preventDefault();qx.event.Pool.getInstance().poolObject(g)}}}},registerEvent:function(a,b,c){(a=b==="focus"||b==="blur"?a.getFocusElement():b==="load"||b==="input"?a.getContentElement():a.getContainerElement())&&a.addListener(b,this._dispatchEvent,this,c)},unregisterEvent:function(a,b,c){(a=b==="focus"||b==="blur"?a.getFocusElement():b==="load"||b==="input"?a.getContentElement():a.getContainerElement())&&a.removeListener(b,this._dispatchEvent,this,c)}},
destruct:function(){this.__eS=null},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.ui.layout.Abstract",{type:"abstract",extend:qx.core.Object,members:{__eE:null,_invalidChildrenCache:null,__is:null,invalidateLayoutCache:function(){this.__eE=null},renderLayout:function(){this.warn("Missing renderLayout() implementation!")},getSizeHint:function(){return this.__eE?this.__eE:this.__eE=this._computeSizeHint()},hasHeightForWidth:function(){return false},getHeightForWidth:function(){this.warn("Missing getHeightForWidth() implementation!");return null},_computeSizeHint:function(){return null},
invalidateChildrenCache:function(){this._invalidChildrenCache=true},verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(){},"false":null}),_clearSeparators:function(){var a=this.__is;a instanceof qx.ui.core.LayoutItem&&a.clearSeparators()},_renderSeparator:function(a,b){this.__is.renderSeparator(a,b)},connectToWidget:function(a){if(a&&this.__is)throw Error("It is not possible to manually set the connected widget.");this.__is=a;this.invalidateChildrenCache()},_getWidget:function(){return this.__is},
_applyLayoutChange:function(){this.__is&&this.__is.scheduleLayoutUpdate()},_getLayoutChildren:function(){return this.__is.getLayoutChildren()}},destruct:function(){this.__is=this.__eE=null}})})();
(function(){qx.Class.define("qx.type.BaseString",{extend:Object,construct:function(a){this.__it=a=a||"";this.length=a.length},members:{$$isString:true,length:0,__it:null,toString:function(){return this.__it},charAt:null,valueOf:null,charCodeAt:null,concat:null,indexOf:null,lastIndexOf:null,match:null,replace:null,search:null,slice:null,split:null,substr:null,substring:null,toLowerCase:null,toUpperCase:null,toHashCode:function(){return qx.core.ObjectRegistry.toHashCode(this)},toLocaleLowerCase:null,
toLocaleUpperCase:null,base:function(a,b){return qx.core.Object.prototype.base.apply(this,arguments)}},defer:function(a,b){qx.core.Environment.get("qx.debug")&&qx.Class.include(a,qx.core.MAssert);var c="charAt,charCodeAt,concat,indexOf,lastIndexOf,match,replace,search,slice,split,substr,substring,toLowerCase,toUpperCase,toLocaleLowerCase,toLocaleUpperCase".split(",");b.valueOf=b.toString;(new a("")).valueOf()==null&&delete b.valueOf;for(var d=0,e=c.length;d<e;d++)b[c[d]]=String.prototype[c[d]]}})})();
(function(){qx.Class.define("qx.locale.LocalizedString",{extend:qx.type.BaseString,construct:function(a,b,c){qx.type.BaseString.call(this,a);this.__iu=b;this.__iv=c},members:{__iu:null,__iv:null,translate:function(){return qx.locale.Manager.getInstance().translate(this.__iu,this.__iv)}}})})();
(function(){qx.Class.define("qx.locale.Manager",{type:"singleton",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__iw=qx.$$translations||{};this.__ix=qx.$$locales||{};var a=qx.core.Environment.get("locale"),b=qx.core.Environment.get("locale.variant");b!==""&&(a+="_"+b);this.__iy=a;this.setLocale(a||this.__iz)},statics:{tr:function(a,b){var c=qx.lang.Array.fromArguments(arguments);c.splice(0,1);return qx.locale.Manager.getInstance().translate(a,c)},trn:function(a,b,c,d){var e=
qx.lang.Array.fromArguments(arguments);e.splice(0,3);return c!=1?qx.locale.Manager.getInstance().translate(b,e):qx.locale.Manager.getInstance().translate(a,e)},trc:function(a,b,c){var d=qx.lang.Array.fromArguments(arguments);d.splice(0,2);return qx.locale.Manager.getInstance().translate(b,d)},marktr:function(a){return a}},properties:{locale:{check:"String",nullable:true,apply:"_applyLocale",event:"changeLocale"}},members:{__iz:"C",__iA:null,__iB:null,__iw:null,__ix:null,__iy:null,getLanguage:function(){return this.__iB},
getTerritory:function(){return this.getLocale().split("_")[1]||""},getAvailableLocales:function(a){var b=[],c;for(c in this.__ix)c!=this.__iz&&(this.__ix[c]!==null||a)&&b.push(c);return b},__iC:function(a){if(a==null)return null;var b=a.indexOf("_");return b==-1?a:a.substring(0,b)},_applyLocale:function(a){qx.core.Environment.get("qx.debug")&&(a in this.__ix||a==this.__iy||qx.log.Logger.warn("Locale: "+a+" not available."));this.__iA=a;this.__iB=this.__iC(a)},addTranslation:function(a,b){var c=this.__iw;
if(c[a])for(var d in b)c[a][d]=b[d];else c[a]=b},addLocale:function(a,b){var c=this.__ix;if(c[a])for(var d in b)c[a][d]=b[d];else c[a]=b},translate:function(a,b,c){return this.__iD(this.__iw,a,b,c)},localize:function(a,b,c){return this.__iD(this.__ix,a,b,c)},__iD:function(a,b,c,d){var e;if(!a)return b;if(d)var f=this.__iC(d);else d=this.__iA,f=this.__iB;!e&&a[d]&&(e=a[d][b]);!e&&a[f]&&(e=a[f][b]);!e&&a[this.__iz]&&(e=a[this.__iz][b]);e||(e=b);if(c.length>0){a=[];for(d=0;d<c.length;d++)f=c[d],a[d]=
f&&f.translate?f.translate():f;e=qx.lang.String.format(e,a)}qx.core.Environment.get("qx.dynlocale")&&(e=new qx.locale.LocalizedString(e,b,c));return e}},destruct:function(){this.__iw=this.__ix=null}})})();
(function(){qx.Bootstrap.define("qx.bom.client.Locale",{statics:{getLocale:function(){var a=qx.bom.client.Locale.__iE(),b=a.indexOf("-");b!=-1&&(a=a.substr(0,b));return a},getVariant:function(){var a=qx.bom.client.Locale.__iE(),b="",c=a.indexOf("-");c!=-1&&(b=a.substr(c+1));return b},__iE:function(){var a=navigator.userLanguage||navigator.language||"";if(qx.bom.client.OperatingSystem.getName()=="android"){var b=/(\w{2})-(\w{2})/i.exec(navigator.userAgent);b&&(a=b[0])}return a.toLowerCase()}},defer:function(a){qx.core.Environment.add("locale",
a.getLocale);qx.core.Environment.add("locale.variant",a.getVariant)}})})();
(function(){qx.Class.define("qx.bom.element.Decoration",{statics:{DEBUG:false,__iF:{},__iG:qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("engine.version")<9,__iH:qx.core.Environment.select("engine.name",{mshtml:{"scale-x":true,"scale-y":true,scale:true,"no-repeat":true},"default":null}),__iI:{"scale-x":"img","scale-y":"img",scale:"img",repeat:"div","no-repeat":"div","repeat-x":"div","repeat-y":"div"},update:function(a,b,c,d){var e=this.getTagName(c,b);if(e!=a.tagName.toLowerCase())throw Error("Image modification not possible because elements could not be replaced at runtime anymore!");
b=this.getAttributes(b,c,d);if(e==="img")a.src=b.src||qx.util.ResourceManager.getInstance().toUri("qx/static/blank.gif");if(a.style.backgroundPosition!=""&&b.style.backgroundPosition===void 0)b.style.backgroundPosition=null;if(a.style.clip!=""&&b.style.clip===void 0)b.style.clip=null;qx.bom.element.Style.setStyles(a,b.style);if(this.__iG)try{a.filters["DXImageTransform.Microsoft.AlphaImageLoader"].apply()}catch(f){}},create:function(a,b,c){var d=this.getTagName(b,a),a=this.getAttributes(a,b,c),b=
qx.bom.element.Style.compile(a.style);return d==="img"?'<img src="'+a.src+'" style="'+b+'"/>':'<div style="'+b+'"></div>'},getTagName:function(a,b){return b&&this.__iG&&this.__iH[a]&&qx.lang.String.endsWith(b,".png")?"div":this.__iI[a]},getAttributes:function(a,b,c){c||(c={});if(!c.position)c.position="absolute";if(qx.core.Environment.get("engine.name")=="mshtml")c.fontSize=0,c.lineHeight=0;else if(qx.core.Environment.get("engine.name")=="webkit")c.WebkitUserDrag="none";var d=qx.util.ResourceManager.getInstance().getImageFormat(a)||
qx.io.ImageLoader.getFormat(a);qx.core.Environment.get("qx.debug")&&a!=null&&d==null&&qx.log.Logger.warn("ImageLoader: Not recognized format of external image '"+a+"'!");return this.__iG&&this.__iH[b]&&d==="png"?this.__iL(c,b,a):b==="scale"?this.__iM(c,b,a):b==="scale-x"||b==="scale-y"?this.__iN(c,b,a):this.__iQ(c,b,a)},__iJ:function(a,b,c){if(a.width==null&&b!=null)a.width=b+"px";if(a.height==null&&c!=null)a.height=c+"px";return a},__iK:function(a){var b=qx.util.ResourceManager.getInstance().getImageWidth(a)||
qx.io.ImageLoader.getWidth(a),a=qx.util.ResourceManager.getInstance().getImageHeight(a)||qx.io.ImageLoader.getHeight(a);return{width:b,height:a}},__iL:function(a,b,c){var d=this.__iK(c),a=this.__iJ(a,d.width,d.height),b="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+qx.util.ResourceManager.getInstance().toUri(c)+"', sizingMethod='"+(b=="no-repeat"?"crop":"scale")+"')";a.filter=b;a.backgroundImage=a.backgroundRepeat="";return{style:a}},__iM:function(a,b,c){b=qx.util.ResourceManager.getInstance().toUri(c);
c=this.__iK(c);a=this.__iJ(a,c.width,c.height);return{src:b,style:a}},__iN:function(a,b,c){var d=qx.util.ResourceManager.getInstance(),e=d.getCombinedFormat(c),f=this.__iK(c);if(e)var g=d.getData(c),h=g[4],c=e=="b64"?d.toDataUri(c):d.toUri(h),a=b==="scale-x"?this.__iO(a,g,f.height):this.__iP(a,g,f.width);else{qx.core.Environment.get("qx.debug")&&this.__iS(c);if(b=="scale-x")a.height=f.height==null?null:f.height+"px";else if(b=="scale-y")a.width=f.width==null?null:f.width+"px";c=d.toUri(c)}return{src:c,
style:a}},__iO:function(a,b,c){var d=qx.util.ResourceManager.getInstance().getImageHeight(b[4]);a.clip={top:-b[6],height:c};a.height=d+"px";if(a.top!=null)a.top=parseInt(a.top,10)+b[6]+"px";else if(a.bottom!=null)a.bottom=parseInt(a.bottom,10)+c-d-b[6]+"px";return a},__iP:function(a,b,c){var d=qx.util.ResourceManager.getInstance().getImageWidth(b[4]);a.clip={left:-b[5],width:c};a.width=d+"px";if(a.left!=null)a.left=parseInt(a.left,10)+b[5]+"px";else if(a.right!=null)a.right=parseInt(a.right,10)+c-
d-b[5]+"px";return a},__iQ:function(a,b,c){var d=qx.util.ResourceManager.getInstance(),e=d.getCombinedFormat(c),f=this.__iK(c);if(e&&b!=="repeat"){var g=d.getData(c),h=g[4];e=="b64"?(c=d.toDataUri(c),g=d=0):(c=d.toUri(h),d=g[5],g=g[6]);var g=qx.bom.element.Background.getStyles(c,b,d,g),i;for(i in g)a[i]=g[i];if(f.width!=null&&a.width==null&&(b=="repeat-y"||b==="no-repeat"))a.width=f.width+"px";if(f.height!=null&&a.height==null&&(b=="repeat-x"||b==="no-repeat"))a.height=f.height+"px"}else qx.core.Environment.get("qx.debug")&&
b!=="repeat"&&this.__iS(c),a=this.__iJ(a,f.width,f.height),a=this.__iR(a,c,b);return{style:a}},__iR:function(a,b,c){var d=null,e=null;if(a.backgroundPosition){var f=a.backgroundPosition.split(" "),e=parseInt(f[0],10);isNaN(e)&&(e=f[0]);d=parseInt(f[1],10);isNaN(d)&&(d=f[1])}var b=qx.bom.element.Background.getStyles(b,c,e,d),g;for(g in b)a[g]=b[g];if(a.filter)a.filter="";return a},__iS:function(a){this.DEBUG&&qx.util.ResourceManager.getInstance().has(a)&&a.indexOf("qx/icon")==-1&&!this.__iF[a]&&(qx.log.Logger.debug("Potential clipped image candidate: "+
a),this.__iF[a]=true)},isAlphaImageLoaderEnabled:function(){return qx.bom.element.Decoration.__iG}}})})();
(function(){qx.Bootstrap.define("qx.io.ImageLoader",{statics:{__cP:{},__iT:{width:null,height:null},__iU:/\.(png|gif|jpg|jpeg|bmp)\b/i,__Ao:/^data:image\/(png|gif|jpg|jpeg|bmp)\b/i,isLoaded:function(a){a=this.__cP[a];return!(!a||!a.loaded)},isFailed:function(a){a=this.__cP[a];return!(!a||!a.failed)},isLoading:function(a){a=this.__cP[a];return!(!a||!a.loading)},getFormat:function(a){var b=this.__cP[a];if(!b||!b.format)a=this.__Ao.exec(a),a!=null&&(b={loaded:true,format:a[1],width:b.width,height:b.height});
return b?b.format:null},getSize:function(a){return(a=this.__cP[a])?{width:a.width,height:a.height}:this.__iT},getWidth:function(a){return(a=this.__cP[a])?a.width:null},getHeight:function(a){return(a=this.__cP[a])?a.height:null},load:function(a,b,c){var d=this.__cP[a];d||(d=this.__cP[a]={});b&&!c&&(c=window);d.loaded||d.loading||d.failed?b&&(d.loading?d.callbacks.push(b,c):b.call(c,a,d)):(d.loading=true,d.callbacks=[],b&&d.callbacks.push(b,c),b=new Image,c=qx.lang.Function.listener(this.__iV,this,
b,a),b.onload=c,b.onerror=c,b.src=a,d.element=b)},abort:function(a){var b=this.__cP[a];if(b&&!b.loaded){b.aborted=true;var c=b.callbacks,d=b.element;d.onload=d.onerror=null;delete b.callbacks;delete b.element;delete b.loading;for(var d=0,e=c.length;d<e;d+=2)c[d].call(c[d+1],a,b)}this.__cP[a]=null},__iV:qx.event.GlobalError.observeMethod(function(a,b,c){var d=this.__cP[c];if(a.type==="load"){if(d.loaded=true,d.width=this.__iW(b),d.height=this.__iX(b),a=this.__iU.exec(c),a!=null)d.format=a[1]}else d.failed=
true;b.onload=b.onerror=null;b=d.callbacks;delete d.loading;delete d.callbacks;delete d.element;for(var a=0,e=b.length;a<e;a+=2)b[a].call(b[a+1],c,d)}),__iW:function(a){return qx.core.Environment.get("html.image.naturaldimensions")?a.naturalWidth:a.width},__iX:function(a){return qx.core.Environment.get("html.image.naturaldimensions")?a.naturalHeight:a.height}}})})();
(function(){qx.Class.define("qx.bom.element.Background",{statics:{__iY:["background-image:url(",null,");","background-position:",null,";","background-repeat:",null,";"],__ja:{backgroundImage:null,backgroundPosition:null,backgroundRepeat:null},__jb:function(a,b){var c=qx.core.Environment.get("engine.name"),d=qx.core.Environment.get("engine.version");c=="gecko"&&d<1.9&&a==b&&typeof a=="number"&&(b+=0.01);return(a?typeof a=="number"?a+"px":a:"0")+" "+(b?typeof b=="number"?b+"px":b:"0")},__jc:function(a){var b=
qx.lang.String,a=a.substr(0,50);return b.startsWith(a,"data:")&&b.contains(a,"base64")},compile:function(a,b,c,d){c=this.__jb(c,d);a=qx.util.ResourceManager.getInstance().toUri(a);this.__jc(a)&&(a="'"+a+"'");d=this.__iY;d[1]=a;d[4]=c;d[7]=b;return d.join("")},getStyles:function(a,b,c,d){if(!a)return this.__ja;c=this.__jb(c,d);a=qx.util.ResourceManager.getInstance().toUri(a);a=this.__jc(a)?"url('"+a+"')":"url("+a+")";a={backgroundPosition:c,backgroundImage:a};if(b!=null)a.backgroundRepeat=b;return a},
set:function(a,b,c,d,e){var b=this.getStyles(b,c,d,e),f;for(f in b)a.style[f]=b[f]}}})})();
(function(){qx.Class.define("qx.html.Image",{extend:qx.html.Element,members:{tagNameHint:null,_applyProperty:function(a,b){qx.html.Element.prototype._applyProperty.call(this,a,b);if(a==="source"){var c=this.getDomElement(),d=this.getAllStyles();if(this.getNodeName()=="div"&&this.getStyle("backgroundImage"))d.backgroundPosition=null,d.backgroundRepeat=null;var e=this._getProperty("source"),f=this._getProperty("scale")?"scale":"no-repeat";e!=null&&qx.bom.element.Decoration.update(c,e||null,f,d)}},_removeProperty:function(a,
b){a=="source"?this._setProperty(a,"",b):this._setProperty(a,null,b)},_createDomElement:function(){var a=this._getProperty("scale")?"scale":"no-repeat";if(qx.core.Environment.get("engine.name")=="mshtml"){var b=this._getProperty("source");this.tagNameHint!=null?this.setNodeName(this.tagNameHint):this.setNodeName(qx.bom.element.Decoration.getTagName(a,b))}else this.setNodeName(qx.bom.element.Decoration.getTagName(a));return qx.html.Element.prototype._createDomElement.call(this)},_copyData:function(){return qx.html.Element.prototype._copyData.call(this,
true)},setSource:function(a){this._setProperty("source",a);return this},getSource:function(){return this._getProperty("source")},resetSource:function(){qx.core.Environment.get("engine.name")=="webkit"?this._setProperty("source","qx/static/blank.gif"):this._removeProperty("source",true);return this},setScale:function(a){this._setProperty("scale",a);return this},getScale:function(){return this._getProperty("scale")}}})})();
(function(){qx.Mixin.define("qx.ui.core.MPlacement",{statics:{__ff:null,__jd:"left",setVisibleElement:function(a){this.__ff=a},getVisibleElement:function(){return this.__ff},setMoveDirection:function(a){if(a==="top"||a==="left")this.__jd=a;else throw Error("Invalid value for the parameter 'direction' [qx.ui.core.MPlacement.setMoveDirection()], the value was '"+a+"' but 'top' or 'left' are allowed.");},getMoveDirection:function(){return this.__jd}},properties:{position:{check:"top-left,top-right,bottom-left,bottom-right,left-top,left-bottom,right-top,right-bottom".split(","),
init:"bottom-left",themeable:true},placeMethod:{check:["widget","mouse"],init:"mouse",themeable:true},domMove:{check:"Boolean",init:false},placementModeX:{check:["direct","keep-align","best-fit"],init:"keep-align",themeable:true},placementModeY:{check:["direct","keep-align","best-fit"],init:"keep-align",themeable:true},offsetLeft:{check:"Integer",init:0,themeable:true},offsetTop:{check:"Integer",init:0,themeable:true},offsetRight:{check:"Integer",init:0,themeable:true},offsetBottom:{check:"Integer",
init:0,themeable:true},offset:{group:["offsetTop","offsetRight","offsetBottom","offsetLeft"],mode:"shorthand",themeable:true}},members:{__je:null,__jf:null,__jg:null,getLayoutLocation:function(a){var b,c,d;b=a.getBounds();c=b.left;d=b.top;for(var e=b,a=a.getLayoutParent();a&&!a.isRootWidget();)b=a.getBounds(),c+=b.left,d+=b.top,b=a.getInsets(),c+=b.left,d+=b.top,a=a.getLayoutParent();if(a.isRootWidget()&&(a=a.getContainerLocation()))c+=a.left,d+=a.top;return{left:c,top:d,right:c+e.width,bottom:d+
e.height}},moveTo:function(a,b){var c=qx.ui.core.MPlacement.getVisibleElement();if(c){var d=this.getBounds(),c=c.getContentLocation();if(d&&c){var e=b+d.height;a+d.width>c.left&&a<c.right&&e>c.top&&b<c.bottom&&(qx.ui.core.MPlacement.getMoveDirection()==="left"?a=Math.max(c.left-d.width,0):b=Math.max(c.top-d.height,0))}}this.getDomMove()?this.setDomPosition(a,b):this.setLayoutProperties({left:a,top:b})},placeToWidget:function(a,b){if(b)this.__jh(),this.__je=qx.lang.Function.bind(this.placeToWidget,
this,a,false),qx.event.Idle.getInstance().addListener("interval",this.__je),this.__jg=function(){this.__jh()},this.addListener("disappear",this.__jg,this);this.__jj(a.getContainerLocation()||this.getLayoutLocation(a))},__jh:function(){if(this.__je)qx.event.Idle.getInstance().removeListener("interval",this.__je),this.__je=null;if(this.__jg)this.removeListener("disappear",this.__jg,this),this.__jg=null},placeToMouse:function(a){var b=a.getDocumentLeft(),a=a.getDocumentTop();this.__jj({left:b,top:a,
right:b,bottom:a})},placeToElement:function(a,b){var c=qx.bom.element.Location.get(a),c={left:c.left,top:c.top,right:c.left+a.offsetWidth,bottom:c.top+a.offsetHeight};if(b)this.__je=qx.lang.Function.bind(this.placeToElement,this,a,false),qx.event.Idle.getInstance().addListener("interval",this.__je),this.addListener("disappear",function(){if(this.__je)qx.event.Idle.getInstance().removeListener("interval",this.__je),this.__je=null},this);this.__jj(c)},placeToPoint:function(a){this.__jj({left:a.left,
top:a.top,right:a.left,bottom:a.top})},_getPlacementOffsets:function(){return{left:this.getOffsetLeft(),top:this.getOffsetTop(),right:this.getOffsetRight(),bottom:this.getOffsetBottom()}},__ji:function(a){var b=null;this._computePlacementSize?b=this._computePlacementSize():this.isVisible()&&(b=this.getBounds());b==null?this.addListenerOnce("appear",function(){this.__ji(a)},this):a.call(this,b)},__jj:function(a){this.__ji(function(b){b=qx.util.placement.Placement.compute(b,this.getLayoutParent().getBounds(),
a,this._getPlacementOffsets(),this.getPosition(),this.getPlacementModeX(),this.getPlacementModeY());this.moveTo(b.left,b.top)})}},destruct:function(){this.__jh()}})})();
(function(){qx.Class.define("qx.event.Idle",{extend:qx.core.Object,type:"singleton",construct:function(){qx.core.Object.call(this);var a=new qx.event.Timer(this.getTimeoutInterval());a.addListener("interval",this._onInterval,this);a.start();this.__jk=a},events:{interval:"qx.event.type.Event"},properties:{timeoutInterval:{check:"Number",init:100,apply:"_applyTimeoutInterval"}},members:{__jk:null,_applyTimeoutInterval:function(a){this.__jk.setInterval(a)},_onInterval:function(){this.fireEvent("interval")}},
destruct:function(){this.__jk&&this.__jk.stop();this.__jk=null}})})();
(function(){qx.Class.define("qx.util.placement.Placement",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__jl=new qx.util.placement.DirectAxis},properties:{axisX:{check:"qx.util.placement.AbstractAxis"},axisY:{check:"qx.util.placement.AbstractAxis"},edge:{check:["top","right","bottom","left"],init:"top"},align:{check:["top","right","bottom","left"],init:"right"}},statics:{__jm:null,compute:function(a,b,c,d,e,f,g){this.__jm=this.__jm||new qx.util.placement.Placement;var h=
e.split("-"),e=h[0],h=h[1];this.__jm.set({axisX:this.__jq(f),axisY:this.__jq(g),edge:e,align:h});return this.__jm.compute(a,b,c,d)},__jn:null,__jo:null,__jp:null,__jq:function(a){switch(a){case "direct":return this.__jn=this.__jn||new qx.util.placement.DirectAxis;case "keep-align":return this.__jo=this.__jo||new qx.util.placement.KeepAlignAxis;case "best-fit":return this.__jp=this.__jp||new qx.util.placement.BestFitAxis;default:throw Error("Invalid 'mode' argument!'");}}},members:{__jl:null,compute:function(a,
b,c,d){qx.core.Environment.get("qx.debug")&&(this.assertObject(a,"size"),this.assertNumber(a.width,"size.width"),this.assertNumber(a.height,"size.height"),this.assertObject(b,"area"),this.assertNumber(b.width,"area.width"),this.assertNumber(b.height,"area.height"),this.assertObject(c,"target"),this.assertNumber(c.top,"target.top"),this.assertNumber(c.right,"target.right"),this.assertNumber(c.bottom,"target.bottom"),this.assertNumber(c.left,"target.left"),this.assertObject(d,"offsets"),this.assertNumber(d.top,
"offsets.top"),this.assertNumber(d.right,"offsets.right"),this.assertNumber(d.bottom,"offsets.bottom"),this.assertNumber(d.left,"offsets.left"));var e=(this.getAxisX()||this.__jl).computeStart(a.width,{start:c.left,end:c.right},{start:d.left,end:d.right},b.width,this.__jr()),a=(this.getAxisY()||this.__jl).computeStart(a.height,{start:c.top,end:c.bottom},{start:d.top,end:d.bottom},b.height,this.__js());return{left:e,top:a}},__jr:function(){var a=this.getEdge(),b=this.getAlign();if(a=="left")return"edge-start";
else if(a=="right")return"edge-end";else if(b=="left")return"align-start";else if(b=="right")return"align-end"},__js:function(){var a=this.getEdge(),b=this.getAlign();if(a=="top")return"edge-start";else if(a=="bottom")return"edge-end";else if(b=="top")return"align-start";else if(b=="bottom")return"align-end"}},destruct:function(){this._disposeObjects("__jl")}})})();
(function(){qx.Class.define("qx.util.placement.AbstractAxis",{extend:qx.core.Object,members:{computeStart:function(){throw Error("abstract method call!");},_moveToEdgeAndAlign:function(a,b,c,d){switch(d){case "edge-start":return b.start-c.end-a;case "edge-end":return b.end+c.start;case "align-start":return b.start+c.start;case "align-end":return b.end-c.end-a}},_isInRange:function(a,b,c){return a>=0&&a+b<=c}}})})();
(function(){qx.Class.define("qx.util.placement.DirectAxis",{extend:qx.util.placement.AbstractAxis,members:{computeStart:function(a,b,c,d,e){return this._moveToEdgeAndAlign(a,b,c,e)}}})})();
(function(){qx.Class.define("qx.util.placement.KeepAlignAxis",{extend:qx.util.placement.AbstractAxis,members:{computeStart:function(a,b,c,d,e){var f=this._moveToEdgeAndAlign(a,b,c,e);if(this._isInRange(f,a,d))return f;e=="edge-start"||e=="edge-end"?(e=b.start-c.end,b=b.end+c.start):(e=b.end-c.end,b=b.start+c.start);return e>d-b?e-a:b}}})})();
(function(){qx.Class.define("qx.util.placement.BestFitAxis",{extend:qx.util.placement.AbstractAxis,members:{computeStart:function(a,b,c,d,e){b=this._moveToEdgeAndAlign(a,b,c,e);if(this._isInRange(b,a,d))return b;b<0&&(b=Math.min(0,d-a));b+a>d&&(b=Math.max(0,d-a));return b}}})})();
(function(){qx.Class.define("qx.ui.basic.Image",{extend:qx.ui.core.Widget,construct:function(a){this.__jt={};qx.ui.core.Widget.call(this);a&&this.setSource(a)},properties:{source:{check:"String",init:null,nullable:true,event:"changeSource",apply:"_applySource",themeable:true},scale:{check:"Boolean",init:false,themeable:true,apply:"_applyScale"},appearance:{refine:true,init:"image"},allowShrinkX:{refine:true,init:false},allowShrinkY:{refine:true,init:false},allowGrowX:{refine:true,init:false},allowGrowY:{refine:true,
init:false}},events:{loadingFailed:"qx.event.type.Event",loaded:"qx.event.type.Event"},members:{__ju:null,__jv:null,__gI:null,__jt:null,getContentElement:function(){return this.__jz()},_createContentElement:function(){return this.__jz()},_getContentHint:function(){return{width:this.__ju||0,height:this.__jv||0}},_applyEnabled:function(a,b){qx.ui.core.Widget.prototype._applyEnabled.call(this,a,b);this.getSource()&&this._styleSource()},_applySource:function(){this._styleSource()},_applyScale:function(){this._styleSource()},
__jw:function(a){this.__gI=a},__jx:function(){if(this.__gI==null){var a=this.getSource(),b=false;a!=null&&(b=qx.lang.String.endsWith(a,".png"));this.__gI=this.getScale()&&b&&qx.bom.element.Decoration.isAlphaImageLoaderEnabled()?"alphaScaled":this.getScale()?"scaled":"nonScaled"}return this.__gI},__jy:function(a){var b;a=="alphaScaled"?(a=true,b="div"):a=="nonScaled"?(a=false,b="div"):(a=true,b="img");b=new qx.html.Image(b);b.setScale(a);b.setStyles({overflowX:"hidden",overflowY:"hidden"});return b},
__jz:function(){var a=this.__jx();this.__jt[a]==null&&(this.__jt[a]=this.__jy(a));return this.__jt[a]},_styleSource:function(){var a=qx.util.AliasManager.getInstance().resolve(this.getSource());if(a){this.__jA(a);if(qx.core.Environment.get("engine.name")=="mshtml"&&parseInt(qx.core.Environment.get("engine.version"),10)<9){var b=this.getScale()?"scale":"no-repeat";this.getContentElement().tagNameHint=qx.bom.element.Decoration.getTagName(b,a)}qx.util.ResourceManager.getInstance().has(a)?this.__jC(this.getContentElement(),
a):qx.io.ImageLoader.isLoaded(a)?this.__jD(this.getContentElement(),a):this.__jE(this.getContentElement(),a)}else this.getContentElement().resetSource()},__jA:qx.core.Environment.select("engine.name",{mshtml:function(a){var b=qx.bom.element.Decoration.isAlphaImageLoaderEnabled(),a=qx.lang.String.endsWith(a,".png");b&&a?this.getScale()&&this.__jx()!="alphaScaled"?this.__jw("alphaScaled"):!this.getScale()&&this.__jx()!="nonScaled"&&this.__jw("nonScaled"):this.getScale()&&this.__jx()!="scaled"?this.__jw("scaled"):
!this.getScale()&&this.__jx()!="nonScaled"&&this.__jw("nonScaled");this.__jB(this.__jz())},"default":function(){this.getScale()&&this.__jx()!="scaled"?this.__jw("scaled"):!this.getScale()&&this.__jx("nonScaled")&&this.__jw("nonScaled");this.__jB(this.__jz())}}),__jB:function(a){var b=this.getContainerElement(),c=b.getChild(0);if(c!=a){if(c!=null){var c={},d=this.getInnerSize();if(d!=null)c.width=d.width+"px",c.height=d.height+"px";d=this.getInsets();c.left=d.left+"px";c.top=d.top+"px";c.zIndex=10;
a.setStyles(c,true);a.setSelectable(this.getSelectable())}b.removeAt(0);b.addAt(a,0)}},__jC:function(a,b){var c=qx.util.ResourceManager.getInstance();if(!this.getEnabled()){var d=b.replace(/\.([a-z]+)$/,"-disabled.$1");c.has(d)?(b=d,this.addState("replacement")):this.removeState("replacement")}a.getSource()!==b&&(a.setSource(b),this.__jH(c.getImageWidth(b),c.getImageHeight(b)))},__jD:function(a,b){var c=qx.io.ImageLoader;a.setSource(b);var d=c.getWidth(b),c=c.getHeight(b);this.__jH(d,c)},__jE:function(a,
b){var c=qx.io.ImageLoader;if(qx.core.Environment.get("qx.debug")){var d=b.toLowerCase(),e=qx.lang.String.startsWith;if(!e(d,"http")&&!e(d,"data:image/")){d=this.self(arguments);if(!d.__jF)d.__jF={};d.__jF[b]||(this.debug("try to load an unmanaged relative image: "+b),d.__jF[b]=true)}}c.isFailed(b)?a!=null&&a.resetSource():c.load(b,this.__jG,this)},__jG:function(a,b){if(this.$$disposed!==true&&a===qx.util.AliasManager.getInstance().resolve(this.getSource())){if(b.failed)this.warn("Image could not be loaded: "+
a),this.fireEvent("loadingFailed");else if(b.aborted)return;else this.fireEvent("loaded");this._styleSource()}},__jH:function(a,b){if(a!==this.__ju||b!==this.__jv)this.__ju=a,this.__jv=b,qx.ui.core.queue.Layout.add(this)}},destruct:function(){this._disposeMap("__jt")}})})();
(function(){qx.Class.define("qx.ui.core.DragDropCursor",{extend:qx.ui.basic.Image,include:qx.ui.core.MPlacement,type:"singleton",construct:function(){qx.ui.basic.Image.call(this);this.setZIndex(1E8);this.setDomMove(true);this.getApplicationRoot().add(this,{left:-1E3,top:-1E3})},properties:{appearance:{refine:true,init:"dragdrop-cursor"},action:{check:["alias","copy","move"],apply:"_applyAction",nullable:true}},members:{_applyAction:function(a,b){b&&this.removeState(b);a&&this.addState(a)}}})})();
(function(){qx.Mixin.define("qx.ui.core.MChildrenHandling",{members:{getChildren:function(){return this._getChildren()},hasChildren:function(){return this._hasChildren()},indexOf:function(a){return this._indexOf(a)},add:function(a,b){this._add(a,b)},addAt:function(a,b,c){this._addAt(a,b,c)},addBefore:function(a,b,c){this._addBefore(a,b,c)},addAfter:function(a,b,c){this._addAfter(a,b,c)},remove:function(a){this._remove(a)},removeAt:function(a){return this._removeAt(a)},removeAll:function(){return this._removeAll()}},
statics:{remap:function(a){a.getChildren=a._getChildren;a.hasChildren=a._hasChildren;a.indexOf=a._indexOf;a.add=a._add;a.addAt=a._addAt;a.addBefore=a._addBefore;a.addAfter=a._addAfter;a.remove=a._remove;a.removeAt=a._removeAt;a.removeAll=a._removeAll}}})})();
(function(){qx.Class.define("qx.ui.container.Composite",{extend:qx.ui.core.Widget,include:[qx.ui.core.MChildrenHandling,qx.ui.core.MLayoutHandling],construct:function(a){qx.ui.core.Widget.call(this);a!=null&&this._setLayout(a)},events:{addChildWidget:"qx.event.type.Data",removeChildWidget:"qx.event.type.Data"},members:{_afterAddChild:function(a){this.fireNonBubblingEvent("addChildWidget",qx.event.type.Data,[a])},_afterRemoveChild:function(a){this.fireNonBubblingEvent("removeChildWidget",qx.event.type.Data,
[a])}},defer:function(a,b){qx.ui.core.MChildrenHandling.remap(b);qx.ui.core.MLayoutHandling.remap(b)}})})();
(function(){qx.Class.define("qx.ui.popup.Popup",{extend:qx.ui.container.Composite,include:qx.ui.core.MPlacement,construct:function(a){qx.ui.container.Composite.call(this,a);this.initVisibility()},properties:{appearance:{refine:true,init:"popup"},visibility:{refine:true,init:"excluded"},autoHide:{check:"Boolean",init:true}},members:{show:function(){this.getLayoutParent()==null&&qx.core.Init.getApplication().getRoot().add(this);qx.ui.container.Composite.prototype.show.call(this)},_applyVisibility:function(a,
b){qx.ui.container.Composite.prototype._applyVisibility.call(this,a,b);var c=qx.ui.popup.Manager.getInstance();a==="visible"?c.add(this):c.remove(this)}},destruct:function(){qx.ui.popup.Manager.getInstance().remove(this)}})})();
(function(){qx.Class.define("qx.ui.popup.Manager",{type:"singleton",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__jI=[];qx.event.Registration.addListener(document.documentElement,"mousedown",this.__jK,this,true);qx.bom.Element.addListener(window,"blur",this.hideAll,this)},members:{__jI:null,add:function(a){if(qx.core.Environment.get("qx.debug")&&!(a instanceof qx.ui.popup.Popup))throw Error("Object is no popup: "+a);this.__jI.push(a);this.__jJ()},remove:function(a){if(qx.core.Environment.get("qx.debug")&&
!(a instanceof qx.ui.popup.Popup))throw Error("Object is no popup: "+a);this.__jI&&(qx.lang.Array.remove(this.__jI,a),this.__jJ())},hideAll:function(){var a,b=this.__jI;if(b)for(var c=0,d=b.length;c<d;c++)a=b[c],a.getAutoHide()&&a.exclude()},__jJ:function(){for(var a=1E7,b=0;b<this.__jI.length;b++)this.__jI[b].setZIndex(a++)},__jK:function(a){for(var a=qx.ui.core.Widget.getWidgetByElement(a.getTarget()),b=this.__jI,c=0;c<b.length;c++){var d=b[c];d.getAutoHide()&&!(a==d||qx.ui.core.Widget.contains(d,
a))&&d.exclude()}}},destruct:function(){qx.event.Registration.removeListener(document.documentElement,"mousedown",this.__jK,this,true);this._disposeArray("__jI")}})})();
(function(){qx.Class.define("qx.ui.tooltip.ToolTip",{extend:qx.ui.popup.Popup,construct:function(a,b){qx.ui.popup.Popup.call(this);this.setLayout(new qx.ui.layout.Grow);this._createChildControl("atom");a!=null&&this.setLabel(a);b!=null&&this.setIcon(b);this.addListener("mouseover",this._onMouseOver,this)},properties:{appearance:{refine:true,init:"tooltip"},showTimeout:{check:"Integer",init:700,themeable:true},hideTimeout:{check:"Integer",init:4E3,themeable:true},label:{check:"String",nullable:true,
apply:"_applyLabel"},icon:{check:"String",nullable:true,apply:"_applyIcon",themeable:true},rich:{check:"Boolean",init:false,apply:"_applyRich"},opener:{check:"qx.ui.core.Widget",nullable:true}},members:{_createChildControlImpl:function(a){var b;switch(a){case "atom":b=new qx.ui.basic.Atom,this._add(b)}return b||qx.ui.popup.Popup.prototype._createChildControlImpl.call(this,a)},_onMouseOver:function(){this.hide()},_applyIcon:function(a){var b=this.getChildControl("atom");a==null?b.resetIcon():b.setIcon(a)},
_applyLabel:function(a){var b=this.getChildControl("atom");a==null?b.resetLabel():b.setLabel(a)},_applyRich:function(a){this.getChildControl("atom").setRich(a)}}})})();
(function(){qx.Class.define("qx.ui.layout.Grow",{extend:qx.ui.layout.Abstract,members:{verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b){this.assert(false,"The property '"+b+"' is not supported by the Grow layout!")},"false":null}),renderLayout:function(a,b){for(var c=this._getLayoutChildren(),d,e,f,g,h=0,i=c.length;h<i;h++){d=c[h];e=d.getSizeHint();f=a;if(f<e.minWidth)f=e.minWidth;else if(f>e.maxWidth)f=e.maxWidth;g=b;if(g<e.minHeight)g=e.minHeight;else if(g>e.maxHeight)g=
e.maxHeight;d.renderLayout(0,0,f,g)}},_computeSizeHint:function(){for(var a=this._getLayoutChildren(),b,c=0,d=0,e=0,f=0,g=Infinity,h=Infinity,i=0,j=a.length;i<j;i++)b=a[i],b=b.getSizeHint(),c=Math.max(c,b.width),d=Math.max(d,b.height),e=Math.max(e,b.minWidth),f=Math.max(f,b.minHeight),g=Math.min(g,b.maxWidth),h=Math.min(h,b.maxHeight);return{width:c,height:d,minWidth:e,minHeight:f,maxWidth:g,maxHeight:h}}}})})();
(function(){qx.Class.define("qx.ui.basic.Atom",{extend:qx.ui.core.Widget,construct:function(a,b){qx.core.Environment.get("qx.debug")&&this.assertArgumentsCount(arguments,0,2);qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.Atom);a!=null&&this.setLabel(a);b!=null&&this.setIcon(b)},properties:{appearance:{refine:true,init:"atom"},label:{apply:"_applyLabel",nullable:true,check:"String",event:"changeLabel"},rich:{check:"Boolean",init:false,apply:"_applyRich"},icon:{check:"String",apply:"_applyIcon",
nullable:true,themeable:true,event:"changeIcon"},gap:{check:"Integer",nullable:false,event:"changeGap",apply:"_applyGap",themeable:true,init:4},show:{init:"both",check:["both","label","icon"],themeable:true,inheritable:true,apply:"_applyShow",event:"changeShow"},iconPosition:{init:"left",check:"top,right,bottom,left,top-left,bottom-left".split(","),themeable:true,apply:"_applyIconPosition"},center:{init:false,check:"Boolean",themeable:true,apply:"_applyCenter"}},members:{_createChildControlImpl:function(a){var b;
switch(a){case "label":b=new qx.ui.basic.Label(this.getLabel());b.setAnonymous(true);b.setRich(this.getRich());this._add(b);(this.getLabel()==null||this.getShow()==="icon")&&b.exclude();break;case "icon":b=new qx.ui.basic.Image(this.getIcon()),b.setAnonymous(true),this._addAt(b,0),(this.getIcon()==null||this.getShow()==="label")&&b.exclude()}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_forwardStates:{focused:true,hovered:true},_handleLabel:function(){this.getLabel()==
null||this.getShow()==="icon"?this._excludeChildControl("label"):this._showChildControl("label")},_handleIcon:function(){this.getIcon()==null||this.getShow()==="label"?this._excludeChildControl("icon"):this._showChildControl("icon")},_applyLabel:function(a){var b=this.getChildControl("label",true);b&&b.setValue(a);this._handleLabel()},_applyRich:function(a){var b=this.getChildControl("label",true);b&&b.setRich(a)},_applyIcon:function(a){var b=this.getChildControl("icon",true);b&&b.setSource(a);this._handleIcon()},
_applyGap:function(a){this._getLayout().setGap(a)},_applyShow:function(){this._handleLabel();this._handleIcon()},_applyIconPosition:function(a){this._getLayout().setIconPosition(a)},_applyCenter:function(a){this._getLayout().setCenter(a)},_applySelectable:function(a,b){qx.ui.core.Widget.prototype._applySelectable.call(this,a,b);this.getChildControl("label",true)&&this.getChildControl("label").setSelectable(a)}}})})();
(function(){qx.Class.define("qx.ui.layout.Atom",{extend:qx.ui.layout.Abstract,properties:{gap:{check:"Integer",init:4,apply:"_applyLayoutChange"},iconPosition:{check:"left,top,right,bottom,top-left,bottom-left".split(","),init:"left",apply:"_applyLayoutChange"},center:{check:"Boolean",init:false,apply:"_applyLayoutChange"}},members:{verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b){this.assert(false,"The property '"+b+"' is not supported by the Atom layout!")},"false":null}),
renderLayout:function(a,b){var c=qx.ui.layout.Util,d=this.getIconPosition(),e=this._getLayoutChildren(),f=e.length,g,h,i,j,k,l,m=this.getGap();j=this.getCenter();if(d==="bottom"||d==="right")var n=f-1,o=f=-1;else n=0,o=1;if(d=="top"||d=="bottom"){if(j){for(var d=0,r=n;r!=f;r+=o)j=e[r].getSizeHint().height,j>0&&(d+=j,r!=n&&(d+=m));h=Math.round((b-d)/2)}else h=0;for(r=n;r!=f;r+=o)k=e[r],l=k.getSizeHint(),i=Math.min(l.maxWidth,Math.max(a,l.minWidth)),j=l.height,g=c.computeHorizontalAlignOffset("center",
i,a),k.renderLayout(g,h,i,j),j>0&&(h+=j+m)}else{g=a;var q=null;l=0;for(r=n;r!=f;r+=o)k=e[r],i=k.getSizeHint().width,i>0&&(!q&&k instanceof qx.ui.basic.Label?q=k:g-=i,l++);l>1&&(g-=(l-1)*m);if(q){l=q.getSizeHint();var p=Math.max(l.minWidth,Math.min(g,l.maxWidth));g-=p}g=j&&g>0?Math.round(g/2):0;for(r=n;r!=f;r+=o)k=e[r],l=k.getSizeHint(),j=Math.min(l.maxHeight,Math.max(b,l.minHeight)),i=k===q?p:l.width,n="middle",d=="top-left"?n="top":d=="bottom-left"&&(n="bottom"),h=c.computeVerticalAlignOffset(n,
l.height,b),k.renderLayout(g,h,i,j),i>0&&(g+=i+m)}},_computeSizeHint:function(){var a=this._getLayoutChildren(),b=a.length,c,d;if(b===1)c=a[0].getSizeHint(),d={width:c.width,height:c.height,minWidth:c.minWidth,minHeight:c.minHeight};else{var e=d=0,f=0,g=0;c=this.getIconPosition();var h=this.getGap();if(c==="top"||c==="bottom"){for(var i=0,j=0;j<b;j++)c=a[j].getSizeHint(),e=Math.max(e,c.width),d=Math.max(d,c.minWidth),c.height>0&&(g+=c.height,f+=c.minHeight,i++);i>1&&(a=(i-1)*h,g+=a,f+=a)}else{for(j=
i=0;j<b;j++)c=a[j].getSizeHint(),g=Math.max(g,c.height),f=Math.max(f,c.minHeight),c.width>0&&(e+=c.width,d+=c.minWidth,i++);i>1&&(a=(i-1)*h,e+=a,d+=a)}d={minWidth:d,width:e,minHeight:f,height:g}}return d}}})})();
(function(){qx.Class.define("qx.ui.layout.Util",{statics:{PERCENT_VALUE:/[0-9]+(?:\.[0-9]+)?%/,computeFlexOffsets:function(a,b,c){var d,e,f=b>c,c=Math.abs(b-c),g,h={};for(d in a)b=a[d],h[d]={potential:f?b.max-b.value:b.value-b.min,flex:f?b.flex:1/b.flex,offset:0};for(;c!=0;){a=Infinity;e=0;for(d in h)b=h[d],b.potential>0&&(e+=b.flex,a=Math.min(a,b.potential/b.flex));if(e==0)break;a=Math.min(c,a*e)/e;e=0;for(d in h)b=h[d],b.potential>0&&(g=Math.min(c,b.potential,Math.ceil(a*b.flex)),e+=g-a*b.flex,
e>=1&&(e-=1,g-=1),b.potential-=g,f?b.offset+=g:b.offset-=g,c-=g)}return h},computeHorizontalAlignOffset:function(a,b,c,d,e){d==null&&(d=0);e==null&&(e=0);var f=0;switch(a){case "left":f=d;break;case "right":f=c-b-e;break;case "center":f=Math.round((c-b)/2),f<d?f=d:f<e&&(f=Math.max(d,c-b-e))}return f},computeVerticalAlignOffset:function(a,b,c,d,e){d==null&&(d=0);e==null&&(e=0);var f=0;switch(a){case "top":f=d;break;case "bottom":f=c-b-e;break;case "middle":f=Math.round((c-b)/2),f<d?f=d:f<e&&(f=Math.max(d,
c-b-e))}return f},collapseMargins:function(a){for(var b=0,c=0,d=0,e=arguments.length;d<e;d++){var f=arguments[d];f<0?c=Math.min(c,f):f>0&&(b=Math.max(b,f))}return b+c},computeHorizontalGaps:function(a,b,c){b==null&&(b=0);var d=0;if(c){d+=a[0].getMarginLeft();for(var c=1,e=a.length;c<e;c+=1)d+=this.collapseMargins(b,a[c-1].getMarginRight(),a[c].getMarginLeft());d+=a[e-1].getMarginRight()}else{c=1;for(e=a.length;c<e;c+=1)d+=a[c].getMarginLeft()+a[c].getMarginRight();d+=b*(e-1)}return d},computeVerticalGaps:function(a,
b,c){b==null&&(b=0);var d=0;if(c){d+=a[0].getMarginTop();for(var c=1,e=a.length;c<e;c+=1)d+=this.collapseMargins(b,a[c-1].getMarginBottom(),a[c].getMarginTop());d+=a[e-1].getMarginBottom()}else{c=1;for(e=a.length;c<e;c+=1)d+=a[c].getMarginTop()+a[c].getMarginBottom();d+=b*(e-1)}return d},computeHorizontalSeparatorGaps:function(a,b,c){for(var c=qx.theme.manager.Decoration.getInstance().resolve(c).getInsets(),c=c.left+c.right,d=0,e=0,f=a.length;e<f;e++){var g=a[e];d+=g.getMarginLeft()+g.getMarginRight()}d+=
(b+c+b)*(f-1);return d},computeVerticalSeparatorGaps:function(a,b,c){for(var c=qx.theme.manager.Decoration.getInstance().resolve(c).getInsets(),c=c.top+c.bottom,d=0,e=0,f=a.length;e<f;e++){var g=a[e];d+=g.getMarginTop()+g.getMarginBottom()}d+=(b+c+b)*(f-1);return d},arrangeIdeals:function(a,b,c,d,e,f){if(b<a||e<d)b<a&&e<d?(b=a,e=d):b<a?(e-=a-b,b=a,e<d&&(e=d)):e<d&&(b-=d-e,e=d,b<a&&(b=a));if(b>c||e>f)b>c&&e>f?(b=c,e=f):b>c?(e+=b-c,b=c,e>f&&(e=f)):e>f&&(b+=e-f,e=f,b>c&&(b=c));return{begin:b,end:e}}}})})();
(function(){qx.Interface.define("qx.ui.form.IStringForm",{events:{changeValue:"qx.event.type.Data"},members:{setValue:function(a){return arguments.length==1},resetValue:function(){},getValue:function(){}}})})();
(function(){qx.Class.define("qx.ui.basic.Label",{extend:qx.ui.core.Widget,implement:[qx.ui.form.IStringForm],construct:function(a){qx.ui.core.Widget.call(this);a!=null&&this.setValue(a);qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().addListener("changeLocale",this._onChangeLocale,this)},properties:{rich:{check:"Boolean",init:false,event:"changeRich",apply:"_applyRich"},wrap:{check:"Boolean",init:true,apply:"_applyWrap"},value:{check:"String",apply:"_applyValue",event:"changeValue",
nullable:true},buddy:{check:"qx.ui.core.Widget",apply:"_applyBuddy",nullable:true,init:null,dereference:true},textAlign:{check:["left","center","right","justify"],nullable:true,themeable:true,apply:"_applyTextAlign",event:"changeTextAlign"},appearance:{refine:true,init:"label"},selectable:{refine:true,init:false},allowGrowX:{refine:true,init:false},allowGrowY:{refine:true,init:false},allowShrinkY:{refine:true,init:false}},members:{__jL:null,__jM:null,__jN:null,__jO:null,__jP:null,_getContentHint:function(){if(this.__jM)this.__jQ=
this.__jR(),delete this.__jM;return{width:this.__jQ.width,height:this.__jQ.height}},_hasHeightForWidth:function(){return this.getRich()&&this.getWrap()},_applySelectable:function(a){!qx.core.Environment.get("css.textoverflow")&&qx.core.Environment.get("html.xul")&&a&&!this.isRich()?qx.core.Environment.get("qx.debug")&&this.warn("Only rich labels are selectable in browsers with Gecko engine!"):qx.ui.core.Widget.prototype._applySelectable.call(this,a)},_getContentHeightForWidth:function(a){return!this.getRich()&&
!this.getWrap()?null:this.__jR(a).height},_createContentElement:function(){return new qx.html.Label},_applyTextAlign:function(a){this.getContentElement().setStyle("textAlign",a)},_applyTextColor:function(a){a?this.getContentElement().setStyle("color",qx.theme.manager.Color.getInstance().resolve(a)):this.getContentElement().removeStyle("color")},__jQ:{width:0,height:0},_applyFont:function(a,b){if(b&&this.__jL&&this.__jP)this.__jL.removeListenerById(this.__jP),this.__jP=null;var c;if(a){this.__jL=qx.theme.manager.Font.getInstance().resolve(a);
if(this.__jL instanceof qx.bom.webfonts.WebFont)this.__jP=this.__jL.addListener("changeStatus",this._onWebFontStatusChange,this);c=this.__jL.getStyles()}else this.__jL=null,c=qx.bom.Font.getDefaultStyles();this.getTextColor()!=null&&delete c.color;this.getContentElement().setStyles(c);this.__jM=true;qx.ui.core.queue.Layout.add(this)},__jR:function(a){var b=qx.bom.Label,c=this.getFont()?this.__jL.getStyles():qx.bom.Font.getDefaultStyles(),d=this.getValue()||"A";return this.getRich()?b.getHtmlSize(d,
c,a):b.getTextSize(d,c)},_applyBuddy:function(a,b){if(b!=null)b.removeBinding(this.__jN),this.__jN=null,this.removeListenerById(this.__jO),this.__jO=null;if(a!=null)this.__jN=a.bind("enabled",this,"enabled"),this.__jO=this.addListener("click",function(){a.isFocusable()&&a.focus.apply(a)},this)},_applyRich:function(a){this.getContentElement().setRich(a);this.__jM=true;qx.ui.core.queue.Layout.add(this)},_applyWrap:function(a){a&&!this.isRich()&&qx.core.Environment.get("qx.debug")&&this.warn("Only rich labels support wrap.");
this.isRich()&&this.getContentElement().setStyle("whiteSpace",a?"normal":"nowrap")},_onChangeLocale:qx.core.Environment.select("qx.dynlocale",{"true":function(){var a=this.getValue();a&&a.translate&&this.setValue(a.translate())},"false":null}),_onWebFontStatusChange:function(a){if(a.getData().valid===true)this.__jM=true,qx.ui.core.queue.Layout.add(this)},_applyValue:function(a){this.getContentElement().setValue(a);this.__jM=true;qx.ui.core.queue.Layout.add(this)}},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&
qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this);if(this.__jN!=null){var a=this.getBuddy();a!=null&&!a.isDisposed()&&a.removeBinding(this.__jN)}this.__jL&&this.__jP&&this.__jL.removeListenerById(this.__jP);this.__jL=this.__jN=null}})})();
(function(){qx.Class.define("qx.html.Label",{extend:qx.html.Element,members:{__jS:null,_applyProperty:function(a,b){qx.html.Element.prototype._applyProperty.call(this,a,b);if(a=="value"){var c=this.getDomElement();qx.bom.Label.setValue(c,b)}},_createDomElement:function(){return qx.bom.Label.create(this._content,this.__jS)},_copyData:function(){return qx.html.Element.prototype._copyData.call(this,true)},setRich:function(a){if(this.getDomElement())throw Error("The label mode cannot be modified after initial creation");
a=!!a;if(this.__jS!=a)return this.__jS=a,this},setValue:function(a){this._setProperty("value",a);return this},getValue:function(){return this._getProperty("value")}}})})();
(function(){qx.Class.define("qx.bom.Label",{statics:{__jT:{fontFamily:1,fontSize:1,fontWeight:1,fontStyle:1,lineHeight:1},__jU:function(){var a=this.__jW(false);document.body.insertBefore(a,document.body.firstChild);return this._textElement=a},__jV:function(){var a=this.__jW(true);document.body.insertBefore(a,document.body.firstChild);return this._htmlElement=a},__jW:function(a){var b=qx.bom.Element.create("div"),c=b.style;c.width=c.height="auto";c.left=c.top="-1000px";c.visibility="hidden";c.position=
"absolute";c.overflow="visible";c.display="block";if(a)c.whiteSpace="normal";else if(c.whiteSpace="nowrap",!qx.core.Environment.get("css.textoverflow")&&qx.core.Environment.get("html.xul")){a=document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","label");c=a.style;c.padding="0";c.margin="0";c.width="auto";for(var d in this.__jT)c[d]="inherit";b.appendChild(a)}return b},__jX:function(a){var b={};a?b.whiteSpace="normal":!qx.core.Environment.get("css.textoverflow")&&
qx.core.Environment.get("html.xul")?b.display="block":(b.overflow="hidden",b.whiteSpace="nowrap",b[qx.core.Environment.get("css.textoverflow")]="ellipsis");return b},create:function(a,b,c){c||(c=window);var d=c.document.createElement("div");if(b)d.useHtml=true;else if(!qx.core.Environment.get("css.textoverflow")&&qx.core.Environment.get("html.xul")){b=c.document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul","label");c=b.style;c.cursor="inherit";c.color="inherit";
c.overflow="hidden";c.maxWidth="100%";c.padding="0";c.margin="0";c.width="auto";for(var e in this.__jT)b.style[e]="inherit";b.setAttribute("crop","end");d.appendChild(b)}else qx.bom.element.Style.setStyles(d,this.__jX(b));a&&this.setValue(d,a);return d},setValue:function(a,b){b=b||"";a.useHtml?a.innerHTML=b:!qx.core.Environment.get("css.textoverflow")&&qx.core.Environment.get("html.xul")?a.firstChild.setAttribute("value",b):qx.bom.element.Attribute.set(a,"text",b)},getValue:function(a){return a.useHtml?
a.innerHTML:!qx.core.Environment.get("css.textoverflow")&&qx.core.Environment.get("html.xul")?a.firstChild.getAttribute("value")||"":qx.bom.element.Attribute.get(a,"text")},getHtmlSize:function(a,b,c){var d=this._htmlElement||this.__jV();d.style.width=c!=void 0?c+"px":"auto";d.innerHTML=a;return this.__jY(d,b)},getTextSize:function(a,b){var c=this._textElement||this.__jU();!qx.core.Environment.get("css.textoverflow")&&qx.core.Environment.get("html.xul")?c.firstChild.setAttribute("value",a):qx.bom.element.Attribute.set(c,
"text",a);return this.__jY(c,b)},__jY:function(a,b){var c=this.__jT;b||(b={});for(var d in c)a.style[d]=b[d]||"";c=qx.bom.element.Dimension.getSize(a);qx.core.Environment.get("engine.name")=="gecko"&&c.width++;qx.core.Environment.get("engine.name")=="mshtml"&&parseFloat(qx.core.Environment.get("engine.version"))>=9&&c.width++;return c}}})})();
(function(){qx.Interface.define("qx.ui.form.IForm",{events:{changeEnabled:"qx.event.type.Data",changeValid:"qx.event.type.Data",changeInvalidMessage:"qx.event.type.Data",changeRequired:"qx.event.type.Data"},members:{setEnabled:function(a){return arguments.length==1},getEnabled:function(){},setRequired:function(a){return arguments.length==1},getRequired:function(){},setValid:function(a){return arguments.length==1},getValid:function(){},setInvalidMessage:function(a){return arguments.length==1},getInvalidMessage:function(){},
setRequiredInvalidMessage:function(a){return arguments.length==1},getRequiredInvalidMessage:function(){}}})})();(function(){qx.Class.define("qx.application.Standalone",{extend:qx.application.AbstractGui,members:{_createRootWidget:function(){return new qx.ui.root.Application(document)}}})})();
(function(){qx.Mixin.define("qx.ui.window.MDesktop",{properties:{activeWindow:{check:"qx.ui.window.Window",apply:"_applyActiveWindow",init:null,nullable:true}},members:{__ka:null,__eS:null,getWindowManager:function(){this.__eS||this.setWindowManager(new qx.ui.window.Window.DEFAULT_MANAGER_CLASS);return this.__eS},supportsMaximize:function(){return true},setWindowManager:function(a){this.__eS&&this.__eS.setDesktop(null);a.setDesktop(this);this.__eS=a},_onChangeActive:function(a){a.getData()?this.setActiveWindow(a.getTarget()):
this.getActiveWindow()==a.getTarget()&&this.setActiveWindow(null)},_applyActiveWindow:function(a,b){this.getWindowManager().changeActiveWindow(a,b);this.getWindowManager().updateStack()},_onChangeModal:function(){this.getWindowManager().updateStack()},_onChangeVisibility:function(){this.getWindowManager().updateStack()},_afterAddChild:function(a){qx.Class.isDefined("qx.ui.window.Window")&&a instanceof qx.ui.window.Window&&this._addWindow(a)},_addWindow:function(a){qx.lang.Array.contains(this.getWindows(),
a)||(this.getWindows().push(a),a.addListener("changeActive",this._onChangeActive,this),a.addListener("changeModal",this._onChangeModal,this),a.addListener("changeVisibility",this._onChangeVisibility,this));a.getActive()&&this.setActiveWindow(a);this.getWindowManager().updateStack()},_afterRemoveChild:function(a){qx.Class.isDefined("qx.ui.window.Window")&&a instanceof qx.ui.window.Window&&this._removeWindow(a)},_removeWindow:function(a){qx.lang.Array.remove(this.getWindows(),a);a.removeListener("changeActive",
this._onChangeActive,this);a.removeListener("changeModal",this._onChangeModal,this);a.removeListener("changeVisibility",this._onChangeVisibility,this);this.getWindowManager().updateStack()},getWindows:function(){if(!this.__ka)this.__ka=[];return this.__ka}},destruct:function(){this._disposeArray("__ka");this._disposeObjects("__eS")}})})();
(function(){qx.Mixin.define("qx.ui.core.MBlocker",{construct:function(){this.__kb=this._createBlocker()},properties:{blockerColor:{check:"Color",init:null,nullable:true,apply:"_applyBlockerColor",themeable:true},blockerOpacity:{check:"Number",init:1,apply:"_applyBlockerOpacity",themeable:true}},members:{__kb:null,_createBlocker:function(){return new qx.ui.core.Blocker(this)},_applyBlockerColor:function(a){this.__kb.setColor(a)},_applyBlockerOpacity:function(a){this.__kb.setOpacity(a)},block:function(){this.__kb.block()},
isBlocked:function(){return this.__kb.isBlocked()},unblock:function(){this.__kb.unblock()},forceUnblock:function(){this.__kb.forceUnblock()},blockContent:function(a){this.__kb.blockContent(a)},isContentBlocked:function(){return this.__kb.isContentBlocked()},unblockContent:function(){this.__kb.unblockContent()},forceUnblockContent:function(){this.__kb.forceUnblockContent()},getBlocker:function(){return this.__kb}},destruct:function(){this._disposeObjects("__kb")}})})();
(function(){qx.Class.define("qx.ui.core.Blocker",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this._widget=a;(this._isPageRoot=qx.Class.isDefined("qx.ui.root.Page")&&a instanceof qx.ui.root.Page)&&a.addListener("resize",this.__ki,this);qx.Class.isDefined("qx.ui.root.Application")&&a instanceof qx.ui.root.Application&&this.setKeepBlockerActive(true);this.__kc=[];this.__kd=[];this.__ke=[]},properties:{color:{check:"Color",init:null,nullable:true,apply:"_applyColor",themeable:true},
opacity:{check:"Number",init:1,apply:"_applyOpacity",themeable:true},keepBlockerActive:{check:"Boolean",init:false}},members:{__kb:null,__kf:0,__kg:null,__ke:null,__kc:null,__kd:null,__kh:null,__jk:null,_isPageRoot:false,_widget:null,__ki:function(a){a=a.getData();this.isContentBlocked()&&this.getContentBlockerElement().setStyles({width:a.width,height:a.height});this.isBlocked()&&this.getBlockerElement().setStyles({width:a.width,height:a.height})},_applyColor:function(a){this.__kj("backgroundColor",
qx.theme.manager.Color.getInstance().resolve(a))},_applyOpacity:function(a){this.__kj("opacity",a)},__kj:function(a,b){var c=[];this.__kb&&c.push(this.__kb);this.__kg&&c.push(this.__kg);for(var d=0;d<c.length;d++)c[d].setStyle(a,b)},_backupActiveWidget:function(){var a=qx.event.Registration.getManager(window).getHandler(qx.event.handler.Focus);this.__kc.push(a.getActive());this.__kd.push(a.getFocus());this._widget.isFocusable()&&this._widget.focus()},_restoreActiveWidget:function(){var a=this.__kc.length;
a>0&&((a=this.__kc[a-1])&&qx.bom.Element.activate(a),this.__kc.pop());var b=this.__kd.length;b>0&&((a=this.__kd[b-1])&&qx.bom.Element.focus(this.__kd[b-1]),this.__kd.pop())},__kk:function(){return new qx.html.Blocker(this.getColor(),this.getOpacity())},getBlockerElement:function(){if(!this.__kb)this.__kb=this.__kk(),this.__kb.setStyle("zIndex",15),this._widget.getContainerElement().add(this.__kb),this.__kb.exclude();return this.__kb},block:function(){this.__kf++;if(this.__kf<2){this._backupActiveWidget();
var a=this.getBlockerElement();a.include();a.activate();a.addListener("deactivate",this.__kp,this);a.addListener("keypress",this.__ko,this);a.addListener("keydown",this.__ko,this);a.addListener("keyup",this.__ko,this)}},isBlocked:function(){return this.__kf>0},unblock:function(){if(this.isBlocked()&&(this.__kf--,this.__kf<1))this.__kl(),this.__kf=0},forceUnblock:function(){if(this.isBlocked())this.__kf=0,this.__kl()},__kl:function(){this._restoreActiveWidget();var a=this.getBlockerElement();a.removeListener("deactivate",
this.__kp,this);a.removeListener("keypress",this.__ko,this);a.removeListener("keydown",this.__ko,this);a.removeListener("keyup",this.__ko,this);a.exclude()},getContentBlockerElement:function(){if(!this.__kg)this.__kg=this.__kk(),this._widget.getContentElement().add(this.__kg),this.__kg.exclude();return this.__kg},blockContent:function(a){var b=this.getContentBlockerElement();b.setStyle("zIndex",a);this.__ke.push(a);if(this.__ke.length<2&&(b.include(),this._isPageRoot)){if(!this.__jk)this.__jk=new qx.event.Timer(300),
this.__jk.addListener("interval",this.__kn,this);this.__jk.start();this.__kn()}},isContentBlocked:function(){return this.__ke.length>0},unblockContent:function(){if(this.isContentBlocked()){this.__ke.pop();var a=this.__ke[this.__ke.length-1];this.getContentBlockerElement().setStyle("zIndex",a);if(this.__ke.length<1)this.__km(),this.__ke=[]}},forceUnblockContent:function(){if(this.isContentBlocked())this.__ke=[],this.getContentBlockerElement().setStyle("zIndex",null),this.__km()},__km:function(){this.getContentBlockerElement().exclude();
this._isPageRoot&&this.__jk.stop()},__kn:function(){var a=this._widget.getContainerElement().getDomElement(),a=qx.dom.Node.getDocument(a);this.getContentBlockerElement().setStyles({height:a.documentElement.scrollHeight+"px",width:a.documentElement.scrollWidth+"px"})},__ko:function(a){a.getKeyIdentifier()=="Tab"&&a.stop()},__kp:function(){this.getKeepBlockerActive()&&this.getBlockerElement().activate()}},destruct:function(){this._isPageRoot&&this._widget.removeListener("resize",this.__ki,this);this._disposeObjects("__kg",
"__kb","__jk");this.__kh=this.__kc=this.__kd=this._widget=this.__ke=null}})})();
(function(){qx.Class.define("qx.ui.root.Abstract",{type:"abstract",extend:qx.ui.core.Widget,include:[qx.ui.core.MChildrenHandling,qx.ui.core.MBlocker,qx.ui.window.MDesktop],construct:function(){qx.ui.core.Widget.call(this);qx.ui.core.FocusHandler.getInstance().addRoot(this);qx.ui.core.queue.Visibility.add(this);this.initNativeHelp();this.addListener("keypress",this.__kr,this)},properties:{appearance:{refine:true,init:"root"},enabled:{refine:true,init:true},focusable:{refine:true,init:true},globalCursor:{check:"String",
nullable:true,themeable:true,apply:"_applyGlobalCursor",event:"changeGlobalCursor"},nativeContextMenu:{refine:true,init:false},nativeHelp:{check:"Boolean",init:false,apply:"_applyNativeHelp"}},members:{__kq:null,isRootWidget:function(){return true},getLayout:function(){return this._getLayout()},_applyGlobalCursor:qx.core.Environment.select("engine.name",{mshtml:function(){},"default":function(a){var b=qx.bom.Stylesheet,c=this.__kq;if(!c)this.__kq=c=b.createElement();b.removeAllRules(c);a&&b.addRule(c,
"*",qx.bom.element.Cursor.compile(a).replace(";","")+" !important")}}),_applyNativeContextMenu:function(a){a?this.removeListener("contextmenu",this._onNativeContextMenu,this,true):this.addListener("contextmenu",this._onNativeContextMenu,this,true)},_onNativeContextMenu:function(a){a.getTarget().getNativeContextMenu()||a.preventDefault()},__kr:function(a){if(a.getKeyIdentifier()==="Space"){var b=a.getTarget();qx.ui.core.FocusHandler.getInstance().isFocused(b)&&(b=b.getContentElement().getNodeName(),
b==="input"||b==="textarea"||a.preventDefault())}},_applyNativeHelp:function(a,b){qx.core.Environment.get("event.help")&&(b===false&&qx.bom.Event.removeNativeListener(document,"help",qx.lang.Function.returnFalse),a===false&&qx.bom.Event.addNativeListener(document,"help",qx.lang.Function.returnFalse))}},destruct:function(){this.__kq=null},defer:function(a,b){qx.ui.core.MChildrenHandling.remap(b)}})})();
(function(){qx.Class.define("qx.ui.core.FocusHandler",{extend:qx.core.Object,type:"singleton",construct:function(){qx.core.Object.call(this);this.__ks={}},members:{__ks:null,__kt:null,__ku:null,__kv:null,connectTo:function(a){a.addListener("keypress",this.__gc,this);a.addListener("focusin",this._onFocusIn,this,true);a.addListener("focusout",this._onFocusOut,this,true);a.addListener("activate",this._onActivate,this,true);a.addListener("deactivate",this._onDeactivate,this,true)},addRoot:function(a){this.__ks[a.$$hash]=
a},removeRoot:function(a){delete this.__ks[a.$$hash]},getActiveWidget:function(){return this.__kt},isActive:function(a){return this.__kt==a},getFocusedWidget:function(){return this.__ku},isFocused:function(a){return this.__ku==a},isFocusRoot:function(a){return!!this.__ks[a.$$hash]},_onActivate:function(a){this.__kt=a=a.getTarget();a=this.__kw(a);if(a!=this.__kv)this.__kv=a},_onDeactivate:function(a){if(this.__kt==a.getTarget())this.__kt=null},_onFocusIn:function(a){a=a.getTarget();if(a!=this.__ku)this.__ku=
a,a.visualizeFocus()},_onFocusOut:function(a){a=a.getTarget();if(a==this.__ku)this.__ku=null,a.visualizeBlur()},__gc:function(a){if(a.getKeyIdentifier()=="Tab"&&this.__kv){a.stopPropagation();a.preventDefault();var b=this.__ku;(a=a.isShiftPressed()?b?this.__kB(b):this.__kz():b?this.__kA(b):this.__ky())&&a.tabFocus()}},__kw:function(a){for(var b=this.__ks;a;){if(b[a.$$hash])return a;a=a.getLayoutParent()}return null},__kx:function(a,b){if(a===b)return 0;var c=a.getTabIndex()||0,d=b.getTabIndex()||
0;if(c!=d)return c-d;var e=a.getContainerElement().getDomElement(),c=b.getContainerElement().getDomElement(),d=qx.bom.element.Location,e=d.get(e),c=d.get(c);if(e.top!=c.top)return e.top-c.top;if(e.left!=c.left)return e.left-c.left;c=a.getZIndex();d=b.getZIndex();return c!=d?c-d:0},__ky:function(){return this.__kE(this.__kv,null)},__kz:function(){return this.__kF(this.__kv,null)},__kA:function(a){var b=this.__kv;if(b==a)return this.__ky();for(;a&&a.getAnonymous();)a=a.getLayoutParent();if(a==null)return[];
var c=[];this.__kC(b,a,c);c.sort(this.__kx);return c.length>0?c[0]:this.__ky()},__kB:function(a){var b=this.__kv;if(b==a)return this.__kz();for(;a&&a.getAnonymous();)a=a.getLayoutParent();if(a==null)return[];var c=[];this.__kD(b,a,c);c.sort(this.__kx);a=c.length;return a>0?c[a-1]:this.__kz()},__kC:function(a,b,c){for(var a=a.getLayoutChildren(),d,e=0,f=a.length;e<f;e++)d=a[e],d instanceof qx.ui.core.Widget&&!this.isFocusRoot(d)&&d.isEnabled()&&d.isVisible()&&(d.isTabable()&&this.__kx(b,d)<0&&c.push(d),
this.__kC(d,b,c))},__kD:function(a,b,c){for(var a=a.getLayoutChildren(),d,e=0,f=a.length;e<f;e++)d=a[e],d instanceof qx.ui.core.Widget&&!this.isFocusRoot(d)&&d.isEnabled()&&d.isVisible()&&(d.isTabable()&&this.__kx(b,d)>0&&c.push(d),this.__kD(d,b,c))},__kE:function(a,b){for(var c=a.getLayoutChildren(),d,e=0,f=c.length;e<f;e++)if(d=c[e],d instanceof qx.ui.core.Widget&&!this.isFocusRoot(d)&&d.isEnabled()&&d.isVisible()){if(d.isTabable()&&(b==null||this.__kx(d,b)<0))b=d;b=this.__kE(d,b)}return b},__kF:function(a,
b){for(var c=a.getLayoutChildren(),d,e=0,f=c.length;e<f;e++)if(d=c[e],d instanceof qx.ui.core.Widget&&!this.isFocusRoot(d)&&d.isEnabled()&&d.isVisible()){if(d.isTabable()&&(b==null||this.__kx(d,b)>0))b=d;b=this.__kF(d,b)}return b}},destruct:function(){this._disposeMap("__ks");this.__ku=this.__kt=this.__kv=null}})})();
(function(){qx.Class.define("qx.ui.root.Application",{extend:qx.ui.root.Abstract,construct:function(a){this.__cy=qx.dom.Node.getWindow(a);this.__kG=a;qx.ui.root.Abstract.call(this);qx.event.Registration.addListener(this.__cy,"resize",this._onResize,this);this._setLayout(new qx.ui.layout.Canvas);qx.ui.core.queue.Layout.add(this);qx.ui.core.FocusHandler.getInstance().connectTo(this);this.getContentElement().disableScrolling()},members:{__cy:null,__kG:null,_createContainerElement:function(){var a=this.__kG;
qx.core.Environment.get("engine.name")=="webkit"&&(a.body||alert("The application could not be started due to a missing body tag in the HTML file!"));var b=a.documentElement.style,c=a.body.style;b.overflow=c.overflow="hidden";b.padding=b.margin=c.padding=c.margin="0px";b.width=b.height=c.width=c.height="100%";b=a.createElement("div");a.body.appendChild(b);a=new qx.html.Root(b);a.setStyle("position","absolute");a.setAttribute("$$widget",this.toHashCode());return a},_onResize:function(){qx.ui.core.queue.Layout.add(this);
qx.ui.popup&&qx.ui.popup.Manager&&qx.ui.popup.Manager.getInstance().hideAll();qx.ui.menu&&qx.ui.menu.Manager&&qx.ui.menu.Manager.getInstance().hideAll()},_computeSizeHint:function(){var a=qx.bom.Viewport.getWidth(this.__cy),b=qx.bom.Viewport.getHeight(this.__cy);return{minWidth:a,width:a,maxWidth:a,minHeight:b,height:b,maxHeight:b}},_applyPadding:function(a,b,c){if(a&&(c=="paddingTop"||c=="paddingLeft"))throw Error("The root widget does not support 'left', or 'top' paddings!");qx.ui.root.Abstract.prototype._applyPadding.call(this,
a,b,c)},_applyDecorator:function(a,b){qx.ui.root.Abstract.prototype._applyDecorator.call(this,a,b);if(a){var c=this.getDecoratorElement().getInsets();if(c.left||c.top)throw Error("The root widget does not support decorators with 'left', or 'top' insets!");}}},destruct:function(){this.__cy=this.__kG=null}})})();
(function(){qx.Class.define("qx.ui.layout.Canvas",{extend:qx.ui.layout.Abstract,members:{verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b,c){this.assert({top:1,left:1,bottom:1,right:1,width:1,height:1,edge:1}[b]==1,"The property '"+b+"' is not supported by the Canvas layout!");b=="width"||b=="height"?this.assertMatch(c,qx.ui.layout.Util.PERCENT_VALUE):typeof c==="number"?this.assertInteger(c):qx.lang.Type.isString(c)?this.assertMatch(c,qx.ui.layout.Util.PERCENT_VALUE):
this.fail("Bad format of layout property '"+b+"': "+c+". The value must be either an integer or an percent string.")},"false":null}),renderLayout:function(a,b){for(var c=this._getLayoutChildren(),d,e,f,g,h,i,j,k,l,m,n,o,r=0,q=c.length;r<q;r++){d=c[r];e=d.getSizeHint();f=d.getLayoutProperties();l=d.getMarginTop();m=d.getMarginRight();n=d.getMarginBottom();o=d.getMarginLeft();g=f.left!=null?f.left:f.edge;qx.lang.Type.isString(g)&&(g=Math.round(parseFloat(g)*a/100));i=f.right!=null?f.right:f.edge;qx.lang.Type.isString(i)&&
(i=Math.round(parseFloat(i)*a/100));h=f.top!=null?f.top:f.edge;qx.lang.Type.isString(h)&&(h=Math.round(parseFloat(h)*b/100));j=f.bottom!=null?f.bottom:f.edge;qx.lang.Type.isString(j)&&(j=Math.round(parseFloat(j)*b/100));if(g!=null&&i!=null){k=a-g-i-o-m;if(k<e.minWidth)k=e.minWidth;else if(k>e.maxWidth)k=e.maxWidth;g+=o}else{k=f.width;if(k==null)k=e.width;else if(k=Math.round(parseFloat(k)*a/100),k<e.minWidth)k=e.minWidth;else if(k>e.maxWidth)k=e.maxWidth;i!=null?g=a-k-i-m-o:g==null?g=o:g+=o}if(h!=
null&&j!=null){f=b-h-j-l-n;if(f<e.minHeight)f=e.minHeight;else if(f>e.maxHeight)f=e.maxHeight;h+=l}else{f=f.height;if(f==null)f=e.height;else if(f=Math.round(parseFloat(f)*b/100),f<e.minHeight)f=e.minHeight;else if(f>e.maxHeight)f=e.maxHeight;j!=null?h=b-f-j-n-l:h==null?h=l:h+=l}d.renderLayout(g,h,k,f)}},_computeSizeHint:function(){for(var a=0,b=0,c=0,d=0,e,f,g,h=this._getLayoutChildren(),i,j,k,l=0,m=h.length;l<m;l++){i=h[l];j=i.getLayoutProperties();g=i.getSizeHint();f=i.getMarginLeft()+i.getMarginRight();
i=i.getMarginTop()+i.getMarginBottom();e=g.width+f;f=g.minWidth+f;if((k=j.left!=null?j.left:j.edge)&&typeof k==="number")e+=k,f+=k;if((k=j.right!=null?j.right:j.edge)&&typeof k==="number")e+=k,f+=k;a=Math.max(a,e);b=Math.max(b,f);e=g.height+i;g=g.minHeight+i;if((i=j.top!=null?j.top:j.edge)&&typeof i==="number")e+=i,g+=i;if((j=j.bottom!=null?j.bottom:j.edge)&&typeof j==="number")e+=j,g+=j;c=Math.max(c,e);d=Math.max(d,g)}return{width:a,minWidth:b,height:c,minHeight:d}}}})})();
(function(){qx.Class.define("qx.html.Root",{extend:qx.html.Element,construct:function(a){qx.html.Element.call(this);a!=null&&this.useElement(a)},members:{useElement:function(a){qx.html.Element.prototype.useElement.call(this,a);this.setRoot(true);qx.html.Element._modified[this.$$hash]=this}}})})();
(function(){qx.Class.define("qx.html.Blocker",{extend:qx.html.Element,construct:function(a,b){var a=a?qx.theme.manager.Color.getInstance().resolve(a):null,c={position:"absolute",width:"100%",height:"100%",opacity:b||0,backgroundColor:a};if(qx.core.Environment.get("engine.name")=="mshtml")c.backgroundImage="url("+qx.util.ResourceManager.getInstance().toUri("qx/static/blank.gif")+")",c.backgroundRepeat="repeat";qx.html.Element.call(this,"div",c);this.addListener("mousedown",this._stopPropagation,this);
this.addListener("mouseup",this._stopPropagation,this);this.addListener("click",this._stopPropagation,this);this.addListener("dblclick",this._stopPropagation,this);this.addListener("mousemove",this._stopPropagation,this);this.addListener("mouseover",this._stopPropagation,this);this.addListener("mouseout",this._stopPropagation,this);this.addListener("mousewheel",this._stopPropagation,this);this.addListener("contextmenu",this._stopPropagation,this);this.addListener("appear",this.__kH,this);this.addListener("disappear",
this.__kH,this)},members:{_stopPropagation:function(a){a.stopPropagation()},__kH:function(){var a=this.getStyle("cursor");this.setStyle("cursor",null,true);this.setStyle("cursor",a,true)}}})})();
(function(){qx.Class.define("atr.Application",{extend:qx.application.Standalone,properties:{_clients:{check:"soap.ClientCollection"},_fsm:{check:"qx.util.fsm.FiniteStateMachine"},_container:{check:"qx.ui.container.Composite"}},members:{main:function(){qx.application.Standalone.prototype.main.call(this);qx.core.Environment.get("qx.debug");var a=new qx.ui.container.Composite(new qx.ui.layout.Canvas);this.getRoot().add(a,{edge:0});this.set_container(a);a=new soap.ClientCollection("http://"+document.location.host,
arskom.soap.Client,arskom.soap.RequestHeader);this.set_clients(a);arskom.Application.wsc=a;a.addListener("initialized",this.__As,this);a.add_address("authn");a.add_address("report");a.add_address("cvs");a.add_address("kvs");a.add_address("log");a.add_address("authz");a.initialize()},__As:function(){var a=new qx.util.fsm.FiniteStateMachine("AssetTracking");this.set_fsm(a);this.init_fsm(a);atr.cache.Geofence.getInstance().set_wsc(arskom.Application.wsc);atr.cache.Fleet.getInstance().set_wsc(arskom.Application.wsc);
a.addObject("root_screen",this.get_container());a.start();a.fireImmediateEvent("application_entry")},init_fsm:function(a){var b,c,d=this;b=new qx.util.fsm.State("entry_point",{onentry:function(){},onexit:function(){},events:{application_entry:"to_login_screen"}});a.addState(b);c=new qx.util.fsm.Transition("to_login_screen",{predicate:true,nextState:"awaiting_login",ontransition:function(a){var b=a.getObject("root_screen");b.removeAll();var c=arskom.Cookie.getInstance(),h=qx.util.Uri.parseUri(window.location.href),
i,j,k;c.start_cookie()&&(i=c.get_domain_name(),j=c.get_user_name(),k=c.get_cid());h.queryKey._domain_name&&h.queryKey._user_name&&h.queryKey._cookie&&(i=arskom.misc.url_decode(h.queryKey._domain_name),j=arskom.misc.url_decode(h.queryKey._user_name),k=arskom.misc.url_decode(h.queryKey._cookie));if(i&&j&&k){var h=d.get_clients().c.authn,l=arskom.ui.impl.Login.s_login_service_name,m=new soap.Parameters;m.add("cookie",k);m.add("domain_name",i);m.add("user_name",j);h.callAsync(l,m,false,function(b){arskom.ui.impl.Login.apply_session(b,
i,j,true);a.fireImmediateEvent("successful_login")},function(){c.delete_user_cookie();var d=new arskom.ui.impl.Login(a,false,true);d.set_wsc(arskom.Application.wsc);b.add(d.getWidget(),{edge:0})})}else c.delete_user_cookie(),k=new arskom.ui.impl.Login(a,false,true),k.set_wsc(arskom.Application.wsc),b.add(k.getWidget(),{edge:0})}});b.addTransition(c);b=new qx.util.fsm.State("awaiting_login",{onentry:function(){},onexit:function(){},events:{successful_login:"check_preferences"}});a.addState(b);c=new qx.util.fsm.Transition("check_preferences",
{predicate:true,nextState:"awaiting_preferences",ontransition:function(b){var c=arskom.ui.impl.Login.s_user_prefs;if(c==null||arskom.misc.is_na(c.get_language())||arskom.misc.is_na(c.get_time_zone())){c=a.getObject("root_screen");c.removeAll();var d=arskom.ui.impl.user.Preferences.getInstance();d.set_wsc(arskom.Application.wsc);d.reset();d.setFsm(b);d.setDomain_name(arskom.ui.impl.Login.s_domain_name);d.setUser_name(arskom.ui.impl.Login.s_user_name);d.btn_close.setVisibility("hidden");d.set_to_screen();
c.setLayout(new qx.ui.layout.Canvas);var b=new qx.ui.container.Composite(new qx.ui.layout.HBox(0)),h=new qx.ui.container.Composite(new qx.ui.layout.VBox);h.set({alignY:"middle",allowGrowY:false});b.add(h,{flex:1});var i=new qx.ui.container.Composite;i.setAlignX("center");i.set({maxWidth:450,maxHeight:350});var j=new qx.ui.layout.VBox;i.setLayout(j);i.add(d.getWidget());h.add(i);c.add(b,{edge:0})}else b.fireImmediateEvent("successful_set_preferences")}});b.addTransition(c);b=new qx.util.fsm.State("awaiting_preferences",
{onentry:function(){},onexit:function(){},events:{successful_set_preferences:"to_main_screen"}});a.addState(b);c=new qx.util.fsm.Transition("to_main_screen",{predicate:true,nextState:"main_screen",ontransition:function(a){var b=a.getObject("root_screen");b.removeAll();var c=new atr.impl.Main,d=arskom.ui.impl.Login;if(d.s_role_names.indexOf("0001_track_hostmaster")>-1)atr.proc.Vehicle.EDT="edt_vehicle_admin",arskom.ui.proc.Corporation.EDT="edt_corporation_admin",atr.proc.FleetVehicle.GET_ALL="get_all_fleet_vehicle_admin",
atr.proc.FleetVehicle.GET_ALL_COUNT="get_all_fleet_vehicle_admin_count",c.set({_allow_add_del_poi:true,_allow_add_del_geofence:true,_allow_manage_user:false,_allow_manage_log:true,_allow_adminmenu:true,_allow_add_edt_del_corporation:true,_allow_manuser_switch_corporation:true,_allow_add_del_vehicle:true,_allow_edit_vehicle:true,_allow_edit_vehicle_option:true,_allow_manage_comm_terminal:true,_allow_change_rule:true,_allow_view_rule:true,_allow_use_message:true,_allow_add_vehicle_corp_table:true,_allow_change_vehicle_type:true,
_allow_predefined_message_group:true});else if(d.s_role_names.indexOf("0002_track_reseller")>-1)atr.proc.Vehicle.EDT="edt_vehicle_admin",arskom.ui.proc.Corporation.EDT="edt_corporation_admin",c.set({_allow_add_del_poi:true,_allow_add_del_geofence:true,_allow_manage_user:false,_allow_adminmenu:true,_allow_add_edt_del_corporation:true,_allow_manuser_switch_corporation:true,_allow_add_del_vehicle:true,_allow_edit_vehicle:true,_allow_edit_vehicle_option:true,_allow_manage_comm_terminal:true,_allow_change_rule:true,
_allow_view_rule:true,_allow_use_message:false,_allow_add_vehicle_corp_table:false,_allow_change_vehicle_type:true,_allow_predefined_message_group:false});else if(d.s_role_names.indexOf("00031_track_corporation_admin")>-1)atr.proc.Vehicle.EDT="edt_vehicle",c.set({_allow_add_del_poi:false,_allow_add_del_geofence:true,_allow_manage_user:true,_allow_adminmenu:true,_allow_add_edt_del_corporation:false,_allow_manuser_switch_corporation:true,_allow_add_del_vehicle:false,_allow_edit_vehicle:true,_allow_edit_vehicle_option:true,
_allow_manage_comm_terminal:false,_allow_change_rule:true,_allow_view_rule:true,_allow_use_message:true,_allow_add_vehicle_corp_table:false,_allow_change_vehicle_type:false,_allow_predefined_message_group:false});else if(d.s_role_names.indexOf("0003_track_corporation_admin")>-1)atr.proc.Vehicle.EDT="edt_vehicle",c.set({_allow_add_del_poi:false,_allow_add_del_geofence:true,_allow_manage_user:true,_allow_adminmenu:false,_allow_add_edt_del_corporation:false,_allow_manuser_switch_corporation:false,_allow_add_del_vehicle:false,
_allow_edit_vehicle:true,_allow_edit_vehicle_option:true,_allow_manage_comm_terminal:false,_allow_change_rule:true,_allow_view_rule:true,_allow_use_message:true,_allow_add_vehicle_corp_table:false,_allow_change_vehicle_type:false,_allow_predefined_message_group:false});else if(d.s_role_names.indexOf("0004_track_viewer")>-1)c.set({_allow_add_del_poi:false,_allow_add_del_geofence:false,_allow_manage_user:false,_allow_adminmenu:false,_allow_add_edt_del_corporation:false,_allow_manuser_switch_corporation:false,
_allow_add_del_vehicle:false,_allow_edit_vehicle:false,_allow_edit_vehicle_option:true,_allow_manage_comm_terminal:false,_allow_change_rule:false,_allow_view_rule:false,_allow_use_message:false,_allow_add_vehicle_corp_table:false,_allow_change_vehicle_type:false,_allow_predefined_message_group:false});else{alert("Role name '"+d.s_role_names+"' is not handled");b.removeAll();a.fireImmediateEvent("logout");return}c.lbl_tb_info.setValue(" "+d.s_user_name+"@"+d.s_domain_name);c.fsm=a;c.setCurrent_domain_name(arskom.ui.impl.Login.s_domain_name);
c.setCurrent_user_name(arskom.ui.impl.Login.s_user_name);c.set_wsc(arskom.Application.wsc);c.refresh();a=arskom.misc.force_trim(arskom.ui.impl.Login.s_user_prefs.get_language());qx.locale.Manager.getInstance().setLocale(a);qx.log.Logger.debug("Locale set to: "+a);b.add(c.getWidget(),{edge:0})}});b.addTransition(c);b=new qx.util.fsm.State("main_screen",{onentry:function(){},onexit:function(){},events:{logout:"relogin"}});a.addState(b);c=new qx.util.fsm.Transition("relogin",{predicate:true,nextState:"entry_point",
ontransition:function(a){arskom.Cookie.getInstance().delete_user_cookie();a.getObject("root_screen").removeAll();window.location.reload(false)}});b.addTransition(c)}}})})();
(function(){qx.Class.define("qx.log.appender.Util",{statics:{toHtml:function(a){var b=[],c,d,e,f;b.push("<span class='offset'>",this.formatOffset(a.offset,6),"</span> ");a.object?(c=a.win.qx.core.ObjectRegistry.fromHashCode(a.object))&&b.push("<span class='object' title='Object instance with hash code: "+c.$$hash+"'>",c.classname,"[",c.$$hash,"]</span>: "):a.clazz&&b.push("<span class='object'>"+a.clazz.classname,"</span>: ");for(var g=a.items,h=0,i=g.length;h<i;h++)if(c=g[h],d=c.text,d instanceof
Array){f=[];for(var j=0,k=d.length;j<k;j++)e=d[j],typeof e==="string"?f.push("<span>"+this.escapeHTML(e)+"</span>"):e.key?f.push("<span class='type-key'>"+e.key+"</span>:<span class='type-"+e.type+"'>"+this.escapeHTML(e.text)+"</span>"):f.push("<span class='type-"+e.type+"'>"+this.escapeHTML(e.text)+"</span>");b.push("<span class='type-"+c.type+"'>");c.type==="map"?b.push("{",f.join(", "),"}"):b.push("[",f.join(", "),"]");b.push("</span>")}else b.push("<span class='type-"+c.type+"'>"+this.escapeHTML(d)+
"</span> ");c=document.createElement("DIV");c.innerHTML=b.join("");c.className="level-"+a.level;return c},formatOffset:function(a,b){for(var c=a.toString(),d=(b||6)-c.length,e="",f=0;f<d;f++)e+="0";return e+c},FORMAT_STACK:null,escapeHTML:function(a){return String(a).replace(/[<>&"']/g,this.__kK)},__kK:function(a){return{"<":"&lt;",">":"&gt;","&":"&amp;","'":"&#39;",'"':"&quot;"}[a]||"?"},toText:function(a){return this.toTextArray(a).join(" ")},toTextArray:function(a){var b=[];b.push(this.formatOffset(a.offset,
6));if(a.object){var c=a.win.qx.core.ObjectRegistry.fromHashCode(a.object);c&&b.push(c.classname+"["+c.$$hash+"]:")}else a.clazz&&b.push(a.clazz.classname+":");for(var a=a.items,d,e=0,f=a.length;e<f;e++)if(c=a[e],d=c.text,c.trace&&c.trace.length>0&&(typeof this.FORMAT_STACK=="function"?(qx.log.Logger.deprecatedConstantWarning(qx.log.appender.Util,"FORMAT_STACK","Use qx.dev.StackTrace.FORMAT_STACKTRACE instead"),d+="\n"+this.FORMAT_STACK(c.trace)):d+="\n"+c.trace),d instanceof Array){for(var g=[],
h=0,i=d.length;h<i;h++)g.push(d[h].text);c.type==="map"?b.push("{",g.join(", "),"}"):b.push("[",g.join(", "),"]")}else b.push(d);return b}}})})();(function(){qx.Class.define("qx.log.appender.Native",{statics:{process:function(a){if(qx.core.Environment.get("html.console")){var b=console[a.level]?a.level:"log";console[b]&&(a=qx.log.appender.Util.toText(a),console[b](a))}}},defer:function(a){qx.log.Logger.register(a)}})})();
(function(){qx.Class.define("qx.log.appender.Console",{statics:{init:function(){qx.bom.Stylesheet.createElement(".qxconsole{z-index:10000;width:600px;height:300px;top:0px;right:0px;position:absolute;border-left:1px solid black;color:black;border-bottom:1px solid black;color:black;font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.2;}.qxconsole .control{background:#cdcdcd;border-bottom:1px solid black;padding:4px 8px;}.qxconsole .control a{text-decoration:none;color:black;}.qxconsole .messages{background:white;height:100%;width:100%;overflow:auto;}.qxconsole .messages div{padding:0px 4px;}.qxconsole .messages .user-command{color:blue}.qxconsole .messages .user-result{background:white}.qxconsole .messages .user-error{background:#FFE2D5}.qxconsole .messages .level-debug{background:white}.qxconsole .messages .level-info{background:#DEEDFA}.qxconsole .messages .level-warn{background:#FFF7D5}.qxconsole .messages .level-error{background:#FFE2D5}.qxconsole .messages .level-user{background:#E3EFE9}.qxconsole .messages .type-string{color:black;font-weight:normal;}.qxconsole .messages .type-number{color:#155791;font-weight:normal;}.qxconsole .messages .type-boolean{color:#15BC91;font-weight:normal;}.qxconsole .messages .type-array{color:#CC3E8A;font-weight:bold;}.qxconsole .messages .type-map{color:#CC3E8A;font-weight:bold;}.qxconsole .messages .type-key{color:#565656;font-style:italic}.qxconsole .messages .type-class{color:#5F3E8A;font-weight:bold}.qxconsole .messages .type-instance{color:#565656;font-weight:bold}.qxconsole .messages .type-stringify{color:#565656;font-weight:bold}.qxconsole .command{background:white;padding:2px 4px;border-top:1px solid black;}.qxconsole .command input{width:100%;border:0 none;font-family:Consolas,Monaco,monospace;font-size:11px;line-height:1.2;}.qxconsole .command input:focus{outline:none;}");var a=
document.createElement("DIV");a.innerHTML='<div class="qxconsole"><div class="control"><a href="javascript:qx.log.appender.Console.clear()">Clear</a> | <a href="javascript:qx.log.appender.Console.toggle()">Hide</a></div><div class="messages"></div><div class="command"><input type="text"/></div></div>';var b=a.firstChild;document.body.appendChild(a.firstChild);this.__kL=b;this.__ct=b.childNodes[1];this.__kM=b.childNodes[2].firstChild;this.__ki();qx.log.Logger.register(this);qx.core.ObjectRegistry.register(this)},
dispose:function(){qx.event.Registration.removeListener(document.documentElement,"keypress",this.__gc,this);qx.log.Logger.unregister(this)},clear:function(){this.__ct.innerHTML=""},process:function(a){this.__ct.appendChild(qx.log.appender.Util.toHtml(a));this.__kN()},__kN:function(){this.__ct.scrollTop=this.__ct.scrollHeight},__ff:true,toggle:function(){this.__kL?this.__kL.style.display=="none"?this.show():this.__kL.style.display="none":this.init()},show:function(){this.__kL?(this.__kL.style.display=
"block",this.__ct.scrollTop=this.__ct.scrollHeight):this.init()},__kO:[],execute:function(){var a=this.__kM.value;if(a!=""){if(a=="clear")return this.clear();var b=document.createElement("div");b.innerHTML=qx.log.appender.Util.escapeHTML(">>> "+a);b.className="user-command";this.__kO.push(a);this.__kP=this.__kO.length;this.__ct.appendChild(b);this.__kN();try{var c=window.eval(a)}catch(d){qx.log.Logger.error(d)}c!==void 0&&qx.log.Logger.debug(c)}},__ki:function(){this.__ct.style.height=this.__kL.clientHeight-
this.__kL.firstChild.offsetHeight-this.__kL.lastChild.offsetHeight+"px"},__gc:function(a){var b=a.getKeyIdentifier();if(b=="F7"||b=="D"&&a.isCtrlPressed())this.toggle(),a.preventDefault();if(this.__kL&&qx.dom.Hierarchy.contains(this.__kL,a.getTarget())){if(b=="Enter"&&this.__kM.value!="")this.execute(),this.__kM.value="";if(b=="Up"||b=="Down")this.__kP+=b=="Up"?-1:1,this.__kP=Math.min(Math.max(0,this.__kP),this.__kO.length),this.__kM.value=this.__kO[this.__kP]||"",this.__kM.select()}}},defer:function(a){qx.event.Registration.addListener(document.documentElement,
"keypress",a.__gc,a)}})})();
(function(){qx.Class.define("soap.ClientCollection",{extend:qx.core.Object,properties:{_url:{check:"String"},_client_class:{check:"Function"},_header_class:{check:"Function"}},events:{initialized:"qx.event.type.Data"},construct:function(a,b,c){this.c={};this.set_url(a);b?this.set_client_class(b):this.set_client_class(soap.Client);c?this.set_header_class(c):this.set_header_class(soap.RequestHeader);this.__bf={}},members:{c:null,__bf:null,add_address:function(a){var b=this.get_url()+"/"+a+"/",c=this.get_client_class(),
d=this.get_header_class();this.c[a]=new c(b,d);this.__bf[a]=false},initialize:function(){var a=this,b;for(b in a.c)(function(b){a.c[b].easy("!_wsdl_!",function(){var d=a.__bf[b]=true,e;for(e in a.__bf)d=d&&a.__bf[e];d&&a.fireDataEvent("initialized")})})(b)}}})})();
(function(){qx.Class.define("soap.Client",{extend:qx.core.Object,include:[qx.locale.MTranslation],properties:{_url:{check:"String"},_header_class:{check:"Function"}},statics:{TYPE_MAP:{"boolean":"Boolean","int":"Integer","long":"Integer",integer:"Integer","double":"Number","float":"Number",decimal:"Number","byte":"Number","short":"Number","int":"Number","long":"Number",unsignedbyte:"Number",unsignedshort:"Number",unsignedint:"Number",unsignedlong:"Number",nonnegativeinteger:"Number",datetime:"Date",
string:"String",anytype:"Document"},NS_SOAP_ENV:"http://schemas.xmlsoap.org/soap/envelope/",setAttributeNS:function(a,b,c,d,e){qx.core.Environment.get("engine.name")==="mshtml"?(a=a.createNode(2,c,d),a.nodeValue=e,b.setAttributeNode(a)):b.setAttributeNS(d,c,e)},createSubElementNS:function(a,b,c,d){a=qx.core.Environment.get("engine.name")==="mshtml"?a.createNode(1,c,d):a.createElementNS(d,(soap.WsdlCache.nsmap[d]||"x")+":"+c);b.appendChild(a);return a},datetime_isoformat:function(a){a+="";var b=a.lastIndexOf("."),
c=a.lastIndexOf("+"),d=0;if(b!=-1){d=c;if(d==-1)d=a.length;d=a.substring(b+1,d);d=parseInt(d.substring(0,3))}a=a.substring(0,b==-1?c==-1?a.length:c:b);a=a.replace(/T/gi," ");a=a.replace(/-/gi,"/");a=Date.parse(a);a+=d;b=new Date;b.setTime(a);return b},from_string:function(a,b){var c,d=a.toLowerCase();b!==null&&(d!="string"&&b===""?c=null:d=="boolean"?c=b+""=="true":d=="int"||d=="long"||d=="integer"||d=="unsignedlong"?c=parseInt(b+"",10):d=="double"||d=="float"?c=parseFloat(b+""):d=="decimal"?c=Number(b+
""):d=="datetime"?c=soap.Client.datetime_isoformat(b):d=="string"?c=b+"":qx.log.Logger.debug("Unrecognized type '"+a+"'"));return c}},construct:function(a,b){qx.core.Object.call(this);this.set_url(a);this.__dC=soap.CallQueue.getInstance();b?this.set_header_class(b):this.set_header_class(soap.RequestHeader)},events:{failed:"qx.event.type.Event",wsdl_failed:"qx.event.type.Event"},members:{cache:null,__dC:null,get_call:function(a){var b=new soap.Call;b.set_client(this);b.set_name(a);b.set_params(new soap.Parameters);
return b},get_object:function(a,b){return this.cache.get_object(a,b)},__kQ:function(a){if(!a)throw Error("method_name must be defined!");var b=this,c=arguments,d=arguments.length,e,f;arguments[d-1]instanceof Function&&(e=arguments[d-1],--d,arguments[d-1]instanceof Function&&(e=arguments[d-1],f=arguments[d],--d));if(this.cache==null){var g=qx.io.remote.transport.XmlHttp.createRequestObject();g.open("GET",this.get_url()+"?wsdl",true);g.onreadystatechange=function(){if(g.readyState==4){var a=g.responseXML;
a==null?(b.dispatchEvent(new qx.io.remote.Response("wsdl_failed")),f&&f()):(b.cache=new soap.WsdlCache(a,b),e&&e(),b.easy.apply(b,c))}};return g.send(null)}if(a!="!_wsdl_!"){var h=b.cache.get_target_namespace(),h=b.cache.schema[h].complex[a];if(!h)throw Error("Method named '"+a+"' is not exposed via wsdl.");for(var i=new soap.Parameters,j=1;j<d;++j){if(!h.children[j-1])throw Error("Too many arguments for function '"+a+"'");i.add(h.children[j-1].name,arguments[j])}return[i,e,f]}},alter_args:function(){},
easy:function(){var a=this.__kQ.apply(this,arguments);a&&this.callAsync(arguments[0],a[0],false,a[1],a[2])},easy_deferred:function(){var a=this.__kQ.apply(this,arguments),b=this.get_call(arguments[0]);b.set_client(this);b.set_params(a[0]);b.set_simple(false);b.set_callback(a[1]);b.set_errback(a[2]);this.__dC.add(b)},flush:function(){this.__dC.flush()},__kR:function(a,b,c,d){a=null;d.responseXML.getElementsByTagName("faultcode").length>0?(d=d.responseXML.getElementsByTagName("faultstring")[0].childNodes[0].nodeValue,
a=qx.core.Environment.get("engine.name")==="mshtml"?Error(500,d):qx.core.Environment.get("engine.name")==="gecko"?Error(500,d):Error(d)):a=Error("No fautstring was found!");if(!b)throw a;return a},__kS:function(a,b,c,d,e,f){var g=null;if(f.responseXML==null)this.dispatchEvent(new qx.io.remote.Response("failed"));else{var h=this.cache.methods[a].output,g=h.name,h=h.ns;g==null?g=this.__kR(a,b,c,f):(g=qx.xml.Element.getElementsByTagNameNS(f.responseXML,h,g),g==null||g.length==0?(g=qx.xml.Element.getElementsByTagNameNS(f.responseXML,
soap.Client.NS_SOAP_ENV,"Fault"),g=g==null||g.length==0?Error("Invalid input!"):this.__kR(a,b,c,f)):g=this.__kT(g[0],c));g instanceof Error?e?e(g,f.responseXML):(a=this.tr("A '")+g.name+this.tr("' has occurred!")+"\n"+g.message+"\n"+g.fileName+"\n",qx.core.Environment.get("qx.debug")&&(a+=g.lineNumber+"\n\n"+g.stack),alert(a)):d&&d(g,f.responseXML)}return g},__kT:function(a,b){var c=null,d,c=qx.core.Environment.get("engine.name")==="mshtml"?a.baseName:a.localName,c=this.__kW(a,b,this.cache.schema[a.namespaceURI].complex[c]);
if(b)for(d in c){if(c.hasOwnProperty(d))return c[d]}else{var e=qx.util.PropertyUtil.getAllProperties(c.constructor);for(d in e)if(e.hasOwnProperty(d))return c["get"+d]()}return c},__kU:function(a,b){var c=a=="http://www.w3.org/2001/XMLSchema";if(!c){var d=this.cache.schema[a];d&&(c=d.simple[b])}return c},__kV:function(a,b){var c=a.children[b].ns,d=a.children[b].type.split(":")[1];(c=this.cache.schema[c])&&(c=c.complex[d]||c.simple[d]);return c},__kW:function(a,b,c,d,e){var f=null,g=a.getAttribute("xsi:nil");
if(g=="true")return null;if(!d)d=(d=c.type)?d.split(":")[1]:c.name,e=c.ns;if(this.__kU(e,d)){b=a.nodeValue;if(b==null)b=a.firstChild,b=b==null?"":b.nodeValue;f=d=="anyType"?a:soap.Client.from_string(d,b)}else if(c.is_array){f=[];g=this.__kV(c,0);for(d=0,e=a.childNodes.length;d<e;d++)h=this.__kW(a.childNodes[d],b,g,c.children[0].type.split(":")[1],c.children[0].ns),f.push(h)}else{f=b?{}:this.get_object(e,d);for(d=0,e=a.childNodes.length;d<e;++d){var h;h=a.childNodes[d];var i;i=qx.core.Environment.get("engine.name")===
"mshtml"?h.baseName:h.localName;g=h.getAttribute("xs:nil");g=="1"?h=null:(g=this.__kV(c,i),h=this.__kW(h,b,g,c.children[i].type.split(":")[1],c.children[i].ns));if(b)f[i]=h;else f["set_"+i](h)}}return f},callAsync:function(a,b,c,d,e){return this.__kX(a,b,true,c,d,e)},__kX:function(a,b,c,d,e,f){var g;this.alter_args(b);c?this.__kY(a,b,c,d,e,f):g=this.__kY(a,b,c,d,e,f);return g},__kY:function(a,b,c,d,e,f){var g;if(this.cache==null){var h=qx.io.remote.transport.XmlHttp.createRequestObject();h.open("GET",
this.get_url()+"?wsdl",c);if(c){var i=this;h.onreadystatechange=function(){h.readyState==4&&i.__la(a,b,c,d,e,f,h)}}h.send(null);c||(g=this.__la(a,b,c,d,e,f,h))}else g=this.__lb(a,b,c,d,e,f);return g},__la:function(a,b,c,d,e,f,g){var g=g.responseXML,h;g==null?this.dispatchEvent(new qx.io.remote.Response("wsdl_failed")):(this.cache=new soap.WsdlCache(g),h=this.__lb(a,b,c,d,e,f));return h},__lb:function(a,b,c,d,e,f){var g=this.cache.get_target_namespace(),h=soap.Client.createSubElementNS,i,j=qx.xml.Document.create(),
h=h(j,j,"Envelope",soap.Client.NS_SOAP_ENV);b.to_xml(j,h,this.cache,a);var k=qx.io.remote.transport.XmlHttp.createRequestObject();k.open("POST",this.get_url(),c);b=(g.lastIndexOf("/")!=g.length-1?g+"/":g)+a;k.setRequestHeader("SOAPAction",b);k.setRequestHeader("Content-Type","text/xml; charset=utf-8");if(c){var l=this;k.onreadystatechange=function(){k.readyState==4&&l.__kS(a,c,d,e,f,k)}}k.send(qx.xml.Element.serialize(j));c||(i=this.__kS(a,c,d,e,f,k));return i}}})})();
(function(){qx.Class.define("soap.WsdlCache",{extend:qx.core.Object,properties:{_name:{check:"String"},_client:{check:"soap.Client"},_params:{check:"soap.Parameters"},_simple:{check:"Boolean",init:false}},statics:{nsmap:{}},construct:function(a,b){var c=qx.xml.Element.getElementsByTagNameNS;this.set_client(b);this.methods={};this.messages=[];this.schema={};this.__lc=a.documentElement.getAttribute("targetNamespace");this.prefix_map={};qx.log.Logger.debug("New service: "+this.__lc);this.definitions=
qx.core.Environment.get("engine.name")==="mshtml"?a.childNodes[1]:a.childNodes[0];var d=c(a,"http://schemas.xmlsoap.org/wsdl/","portType")[0],c=c(a,"http://schemas.xmlsoap.org/wsdl/","types")[0];this.__le(d);this.__ld(c)},members:{__c:null,__lc:null,methods:null,messages:null,schema:null,definitions:null,__ld:function(a){for(var b=null,c=0,d=a.childNodes.length;c<d;++c){var b=a.childNodes[c],e=b.getAttribute("targetNamespace"),f=e;qx.log.Logger.debug("        new namespace: '"+e+"'");var g=this.schema[f];
if(!g)this.schema[f]={},g=this.schema[f],g.simple={},g.element={},g.complex={};for(var f=b.childNodes,h=0,i=f.length;h<i;++h){var j;j=qx.core.Environment.get("engine.name")==="mshtml"?f[h].baseName:f[h].localName;var k=this.__lj(f[h],e);j=="element"?g.element[k.name]=k:j!="import"&&(j=="simpleType"?this.__li(f[h],k):j=="complexType"&&this.__lg(f[h],k))}}if(b==null)this.schema=null},__le:function(a){for(var b=this.methods,a=a.childNodes,c=0,d=a.length;c<d;++c)for(var e=a[c].getAttribute("name"),e=
b[e]=new soap.Operation(this.get_client()),f=0,g=a[c].childNodes.length;f<g;++f){var h=a[c].childNodes[f],i;i=qx.core.Environment.get("engine.name")==="mshtml"?h.baseName:h.localName;if(i=="input"||i=="output")e[i]={},e[i].name=h.getAttribute("name"),e[i].message=h.getAttribute("message"),e[i].ns=this.type_qname_to_ns(h,e[i].message)}},__lf:function(a,b){var c=a.firstChild;if(c){var d=c.getAttribute("minOccurs"),e=c.getAttribute("maxOccurs");if(c.nextSibling==null&&d!=null&&e!=null)b.is_array=true,
b.min_occurs=d,b.max_occurs=e,c=this.__lj(c),b.children={},b.children[c.name]=c,b.children[0]=c;else{d=0;b.children={};for(e=c;e!=null;e=e.nextSibling)c=this.__lj(e),b.children[c.name]=c,b.children[d]=c,++d}}},__lg:function(a,b){var c=a.firstChild;if(c){var d;d=qx.core.Environment.get("engine.name")==="mshtml"?c.baseName:c.localName;if(d=="annotation"){for(d=c.firstChild;d;d=d.nextSibling)if((qx.core.Environment.get("engine.name")==="mshtml"?d.baseName:d.localName)=="appinfo"){b.ann={};for(var e=
d.firstChild;e;e=e.nextSibling)if((qx.core.Environment.get("engine.name")==="mshtml"?e.baseName:e.localName)=="source")b.ann.source_ns=e.getAttribute("ns"),b.ann.source_name=e.getAttribute("name")}c=c.nextSibling;if(!c)return;d=qx.core.Environment.get("engine.name")==="mshtml"?c.baseName:c.localName;if(!c)return}d=="sequence"&&this.__lf(c,b);d=="complexContent"&&this.__lh(c,b);this.schema[b.ns].complex[b.name]=b}},__lh:function(a,b){var c=a.firstChild;if(c&&(qx.core.Environment.get("engine.name")===
"mshtml"?c.baseName:c.localName)=="extension"){var d=c.getAttribute("base"),e=d.split(":")[1],d=this.type_qname_to_ns(a,d);b.base=e;b.base_ns=d;c.firstChild&&this.__lf(c.firstChild,b)}},__li:function(a,b){var c;this.schema[b.ns].simple[b.name]=b;for(var d=a.firstChild;d;d=d.nextSibling)if((qx.core.Environment.get("engine.name")==="mshtml"?d.baseName:d.localName)=="restriction"){b.base=d.getAttribute("base");b.base_ns=this.type_qname_to_ns(d,b.base);b.type=d.getAttribute("base");b.type_ns=this.base_ns;
if(!(b.type.split(":")[1].toLowerCase()in soap.Client.TYPE_MAP))b.type=this.__lk(b),b.type_ns="http://www.w3.org/2001/XMLSchema";b.restrictions={};b.restrictions.values=[];for(var e=d.firstChild;e!=null;e=e.nextSibling){c=qx.core.Environment.get("engine.name")==="mshtml"?e.baseName:e.localName;var f=e.getAttribute("value");if(c=="enumeration")b.type?f=soap.Client.from_string(b.type.split(":")[1],f):window.console&&window.console.firebug&&console.log(b),b.restrictions.values.push(f);else if(c=="minLength")b.restrictions.min_length=
parseInt(f);else if(c=="maxLength")b.restrictions.max_length=parseInt(f)}}},__lj:function(a,b){var c={};c.type=a.getAttribute("type");c.name=a.getAttribute("name");if(b)c.ns=b;c.ns=c.type?this.type_qname_to_ns(a,c.type):a.parentNode.getAttribute("targetNamespace");c.base=null;var d=a.getAttribute("maxOccurs");if(d=="unbounded"||parseInt(d)>1)c.is_simple_array=true;return c},type_qname_to_ns:function(a,b){if(!b)return null;var c=b.split(":"),d;if(c.length>0&&(d=this.prefix_map[c[0]],!d)){for(var e=
a;!d;){if(!e.parentNode)return d;d=e.getAttribute("xmlns:"+c[0]);e=e.parentNode}d&&(this.prefix_map[c[0]]=d,soap.WsdlCache.nsmap[d]=c[0])}return d},get_target_namespace:function(){return this.__lc},__lk:function(a){var b,c=a.type.split(":")[1];if(a=this.schema[a.ns])if(c=a.simple[c]){for(;c.base!=null;){var d=this.schema[c.base_ns];if(d)b=c.base.split(":")[1],c=d.simple[b],qx.core.Assert.assertNotUndefined(c,"Simple Type '{"+c.base_ns+"}' '"+c.base+"' does not exist");else{d=null;break}}b=d?c.type.split(":")[1]:
c.base.split(":")[1]}return b},get_type_defn:function(a,b){var c,d=this.schema[a];d&&(c=d.complex[b]);return c},has_object:function(a,b){return this.get_type_defn(a,b)?true:false},get_class_map:function(a,b){var c;if(!a)a=this.__lc;if(!b)throw Error("object_name must be defined!");var d=this.get_type_defn(a,b);if(!d)return qx.log.Logger.error("object not found: {"+a+"}"+b+""),c;var e=d.children;c=qx.core.Object;d.base&&(c=this.get_class(d.base_ns,d.base));c={extend:c,properties:{},statics:{TYPE_DEFINITION:d}};
var d=c.properties,f;for(f in e){var g=e[f],h="_"+g.name;if(!(h in d)&&e.hasOwnProperty(f)&&isNaN(f)){var i=g.type.split(":")[1].toLowerCase(),j;j=g.is_array||g.is_simple_array?"Array":soap.Client.TYPE_MAP[i];j||(i=this.__lk(g))&&(j=soap.Client.TYPE_MAP[i.toLowerCase()]);j||(j="Object");d[h]=i=="anytype"?{init:null,nullable:true}:{check:j,init:null,nullable:true}}}return c},get_class:function(a,b){if(!b)throw Error("object_name must be defined!");var c=a+"."+b,d=qx.Class.getByName(c);if(!d){var e=
this.get_class_map(a,b);e&&(d=qx.Class.define(c,e))}return d},get_object:function(a,b){var c=this.get_class(a,b),d;c&&(d=new c);return d},get_form:function(a,b){var c=this.get_class_map(a,b).properties,d=new qx.ui.form.Form,e=this.self(arguments).PRIMITIVE_DEFAULTS,f;for(f in c)if(c.hasOwnProperty(f)){var g=f.slice(1),h=c[f].check;h in e&&(h=new e[h],d.add(h,g))}return d},get_form_widget:function(a,b){var c=this.get_form(a,b);return new qx.ui.form.renderer.Single(c)}}})})();
(function(){qx.Class.define("qx.xml.Element",{statics:{XML_SERIALIZER:false,serialize:function(a){if(qx.dom.Node.isDocument(a))a=a.documentElement;return this.XML_SERIALIZER?(new XMLSerializer).serializeToString(a):a.xml||a.outerHTML},selectSingleNode:function(a,b,c){if(qx.core.Environment.get("html.xpath")){if(!this.__ll)this.__ll=new XPathEvaluator;var d=this.__ll,e;e=c?function(a){return c[a]||null}:d.createNSResolver(a);try{return d.evaluate(b,a,e,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(f){throw Error("selectSingleNode: query: "+
b+", element: "+a+", error: "+f);}}if(qx.core.Environment.get("xml.selectsinglenode")){if(c){d="";for(e in c)d+="xmlns:"+e+"='"+c[e]+"' ";a.ownerDocument?a.ownerDocument.setProperty("SelectionNamespaces",d):a.setProperty("SelectionNamespaces",d)}return a.selectSingleNode(b)}throw Error("No XPath implementation available!");},selectNodes:function(a,b,c){if(qx.core.Environment.get("html.xpath")){var d=this.__ll;if(!d)this.__ll=d=new XPathEvaluator;var e;e=c?function(a){return c[a]||null}:d.createNSResolver(a);
try{var f=d.evaluate(b,a,e,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null)}catch(g){throw Error("selectNodes: query: "+b+", element: "+a+", error: "+g);}a=[];for(b=0;b<f.snapshotLength;b++)a[b]=f.snapshotItem(b);return a}if(qx.core.Environment.get("xml.selectnodes")){if(c){f="";for(d in c)f+="xmlns:"+d+"='"+c[d]+"' ";a.ownerDocument?a.ownerDocument.setProperty("SelectionNamespaces",f):a.setProperty("SelectionNamespaces",f)}return a.selectNodes(b)}throw Error("No XPath implementation available!");},getElementsByTagNameNS:function(a,
b,c){if(qx.core.Environment.get("xml.getelementsbytagnamens"))return a.getElementsByTagNameNS(b,c);if(qx.core.Environment.get("xml.domproperties")){var d=a.ownerDocument||a;d.setProperty("SelectionLanguage","XPath");d.setProperty("SelectionNamespaces","xmlns:ns='"+b+"'");return qx.xml.Element.selectNodes(a,"descendant-or-self::ns:"+c)}throw Error("The client does not support this operation!");},getSingleNodeText:function(a,b){var c=this.selectSingleNode(a,b);return qx.dom.Node.getText(c)},setAttributeNS:function(a,
b,c,d,e){if(qx.core.Environment.get("xml.attributens"))b.setAttributeNS(c,d,e);else if(qx.core.Environment.get("xml.createnode"))a=a.createNode(2,d,c),a.nodeValue=e,b.setAttributeNode(a);else throw Error("The client does not support this operation!");},getAttributeNS:function(a,b,c){if(qx.core.Environment.get("xml.attributens"))return a=a.getAttributeNS(b,c),a===null?"":a;if(qx.core.Environment.get("xml.getqualifieditem")){var d=a.attributes,a=null;if(d&&(b=d.getQualifiedItem(c,b)))a=b.nodeValue;
return a===null?"":a}throw Error("The client does not support this operation!");},createSubElementNS:function(a,b,c,d){if(qx.core.Environment.get("xml.createelementns"))return a=a.createElementNS(d,"x:"+c),b.appendChild(a),a;if(qx.core.Environment.get("xml.createnode"))return a=a.createNode(1,c,d),b.appendChild(a),a;throw Error("The client does not support this operation!");}},defer:function(a){a.XML_SERIALIZER=window.XMLSerializer&&!(qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("engine.version")>=
9)}})})();(function(){qx.Class.define("soap.Operation",{extend:qx.core.Object,members:{input:null,output:null,service:null},construct:function(a){qx.core.Object.call(this);this.input=new soap.MethodDefinition;this.output=new soap.MethodDefinition;this.service=a}})})();(function(){qx.Class.define("soap.MethodDefinition",{extend:qx.core.Object,members:{name:null,message:null,ns:null}})})();
(function(){qx.Class.define("qx.ui.form.Form",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__lm=[];this._buttons=[];this._buttonOptions=[];this._validationManager=new qx.ui.form.validation.Manager;this._resetter=new qx.ui.form.Resetter},members:{__lm:null,_validationManager:null,_groupCounter:0,_buttons:null,_buttonOptions:null,_resetter:null,add:function(a,b,c,d,e,f){this.__ln()&&this.__lm.push({title:null,items:[],labels:[],names:[],options:[],headerOptions:{}});this.__lm[this._groupCounter].items.push(a);
this.__lm[this._groupCounter].labels.push(b);this.__lm[this._groupCounter].options.push(f);d==null&&(d=b.replace(/\s+|&|-|\+|\*|\/|\||!|\.|,|:|\?|;|~|%|\{|\}|\(|\)|\[|\]|<|>|=|\^|@|\\/g,""));this.__lm[this._groupCounter].names.push(d);this._validationManager.add(a,c,e);this._resetter.add(a)},addGroupHeader:function(a,b){this.__ln()||this._groupCounter++;this.__lm.push({title:a,items:[],labels:[],names:[],options:[],headerOptions:b})},addButton:function(a,b){this._buttons.push(a);this._buttonOptions.push(b||
null)},__ln:function(){return this.__lm.length===0},reset:function(){this._resetter.reset();this._validationManager.reset()},redefineResetter:function(){this._resetter.redefine()},validate:function(){return this._validationManager.validate()},getValidationManager:function(){return this._validationManager},getGroups:function(){return this.__lm},getButtons:function(){return this._buttons},getButtonOptions:function(){return this._buttonOptions},getItems:function(){for(var a={},b=0;b<this.__lm.length;b++)for(var c=
this.__lm[b],d=0;d<c.names.length;d++)a[c.names[d]]=c.items[d];return a}},destruct:function(){this.__lm=this._buttons=this._buttonOptions=null;this._validationManager.dispose();this._resetter.dispose()}})})();
(function(){qx.Class.define("qx.ui.form.validation.Manager",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__lo=[];this.__lp={};this.setRequiredFieldMessage(qx.locale.Manager.tr("This field is required"))},events:{changeValid:"qx.event.type.Data",complete:"qx.event.type.Event"},properties:{validator:{check:"value instanceof Function || qx.Class.isSubClassOf(value.constructor, qx.ui.form.validation.AsyncValidator)",init:null,nullable:true},invalidMessage:{check:"String",
init:""},requiredFieldMessage:{check:"String",init:""},context:{nullable:true}},members:{__lo:null,__lq:null,__lp:null,__lr:null,add:function(a,b,c){if(!this.__lw(a))throw Error("Added widget not supported.");if(this.__lx(a)&&b!=null)throw Error("Widgets supporting selection can only be validated in the form validator");this.__lo.push({item:a,validator:b,valid:null,context:c})},remove:function(a){for(var b=this.__lo,c=0,d=b.length;c<d;c++)if(a===b[c].item)return b.splice(c,1),a;return null},getItems:function(){for(var a=
[],b=0;b<this.__lo.length;b++)a.push(this.__lo[b].item);return a},validate:function(){var a=true;this.__lr=true;for(var b=[],c=0;c<this.__lo.length;c++){var d=this.__lo[c].item,e=this.__lo[c].validator;b.push(d);if(e==null)d=this.__ls(d),a=a&&d,this.__lr=d&&this.__lr;else if(a=(d=this.__lt(this.__lo[c],d.getValue()))&&a,d!=null)this.__lr=d&&this.__lr}b=this.__lu(b);if(qx.lang.Type.isBoolean(b))this.__lr=b&&this.__lr;a=b&&a;this.__ly(a);qx.lang.Object.isEmpty(this.__lp)&&this.fireEvent("complete");
return a},__ls:function(a){if(a.getRequired()){var b=this.__lx(a)?!!a.getSelection()[0]:!!a.getValue();a.setValid(b);var c=a.getRequiredInvalidMessage(),c=c?c:this.getRequiredFieldMessage();a.setInvalidMessage(c);return b}return true},__lt:function(a,b){var c=a.item,d=a.context,e=a.validator;if(this.__lv(e))return this.__lp[c.toHashCode()]=null,e.validate(c,c.getValue(),this,d),null;var f=null;try{f=e.call(d||this,b,c),f===void 0&&(f=true)}catch(g){if(g instanceof qx.core.ValidationError)f=false,
d=g.message&&g.message!=qx.type.BaseError.DEFAULTMESSAGE?g.message:g.getComment(),c.setInvalidMessage(d);else throw g;}c.setValid(f);return a.valid=f},__lu:function(a){var b=this.getValidator(),c=this.getContext()||this;if(b==null)return true;this.setInvalidMessage("");if(this.__lv(b))return this.__lp[this.toHashCode()]=null,b.validateForm(a,this,c),null;try{var d=b.call(c,a,this);d===void 0&&(d=true)}catch(e){if(e instanceof qx.core.ValidationError)d=false,this.setInvalidMessage(e.message&&e.message!=
qx.type.BaseError.DEFAULTMESSAGE?e.message:e.getComment());else throw e;}return d},__lv:function(a){var b=false;qx.lang.Type.isFunction(a)||(b=qx.Class.isSubClassOf(a.constructor,qx.ui.form.validation.AsyncValidator));return b},__lw:function(a){return qx.Class.hasInterface(a.constructor,qx.ui.form.IForm)},__lx:function(a){return qx.Class.hasInterface(a.constructor,qx.ui.core.ISingleSelection)},__ly:function(a){var b=this.__lq;this.__lq=a;b!=a&&this.fireDataEvent("changeValid",a,b)},getValid:function(){return this.__lq},
isValid:function(){return this.getValid()},getInvalidMessages:function(){for(var a=[],b=0;b<this.__lo.length;b++){var c=this.__lo[b].item;c.getValid()||a.push(c.getInvalidMessage())}this.getInvalidMessage()!=""&&a.push(this.getInvalidMessage());return a},reset:function(){for(var a=0;a<this.__lo.length;a++)this.__lo[a].item.setValid(true);this.__lq=null},setItemValid:function(a,b){this.__lp[a.toHashCode()]=b;a.setValid(b);this.__lz()},setFormValid:function(a){this.__lp[this.toHashCode()]=a;this.__lz()},
__lz:function(){var a=this.__lr,b;for(b in this.__lp){var c=this.__lp[b],a=c&&a;if(c==null)return}this.__ly(a);this.__lp={};this.fireEvent("complete")}},destruct:function(){this.__lo=null}})})();
(function(){qx.Class.define("qx.ui.form.validation.AsyncValidator",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this.__lA=a},members:{__lA:null,__lB:null,__eS:null,__lC:null,validate:function(a,b,c,d){this.__lC=false;this.__lB=a;this.__eS=c;this.__lA.call(d||this,this,b)},validateForm:function(a,b,c){this.__lC=true;this.__eS=b;this.__lA.call(c,a,this)},setValid:function(a,b){this.__lC?(b!==void 0&&this.__eS.setInvalidMessage(b),this.__eS.setFormValid(a)):(b!==void 0&&this.__lB.setInvalidMessage(b),
this.__eS.setItemValid(this.__lB,a))}},destruct:function(){this.__eS=this.__lB=null}})})();(function(){qx.Interface.define("qx.ui.core.ISingleSelection",{events:{changeSelection:"qx.event.type.Data"},members:{getSelection:function(){return true},setSelection:function(a){return arguments.length==1},resetSelection:function(){return true},isSelected:function(a){return arguments.length==1},isSelectionEmpty:function(){return true},getSelectables:function(a){return arguments.length==1}}})})();
(function(){qx.Class.define("qx.ui.form.Resetter",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__lD=[]},members:{__lD:null,add:function(a){if(this._supportsValue(a))var b=a.getValue();else if(this.__lx(a))b=a.getSelection();else if(this.__Ap(a))b=a.getSelection().concat();else throw Error("Item "+a+" not supported for reseting.");this.__lD.push({item:a,init:b})},reset:function(){for(var a=0;a<this.__lD.length;a++){var b=this.__lD[a];this.__lE(b.item,b.init)}},resetItem:function(a){for(var b,
c=0;c<this.__lD.length;c++){var d=this.__lD[c];if(d.item===a){b=d.init;break}}if(b===void 0)throw Error("The given item has not been added.");this.__lE(a,b)},__lE:function(a,b){this._supportsValue(a)?a.setValue(b):(this.__lx(a)||this.__Ap(a))&&a.setSelection(b)},redefine:function(){for(var a=0;a<this.__lD.length;a++)this.__lD[a].init=this.__lF(this.__lD[a].item)},redefineItem:function(a){for(var b,c=0;c<this.__lD.length;c++)if(this.__lD[c].item===a){b=this.__lD[c];break}if(b===void 0)throw Error("The given item has not been added.");
b.init=this.__lF(b.item)},__lF:function(a){if(this._supportsValue(a))return a.getValue();else if(this.__lx(a)||this.__Ap(a))return a.getSelection()},__lx:function(a){return qx.Class.hasInterface(a.constructor,qx.ui.core.ISingleSelection)},__Ap:function(a){return qx.Class.hasInterface(a.constructor,qx.data.controller.ISelection)},_supportsValue:function(a){a=a.constructor;return qx.Class.hasInterface(a,qx.ui.form.IBooleanForm)||qx.Class.hasInterface(a,qx.ui.form.IColorForm)||qx.Class.hasInterface(a,
qx.ui.form.IDateForm)||qx.Class.hasInterface(a,qx.ui.form.INumberForm)||qx.Class.hasInterface(a,qx.ui.form.IStringForm)}},destruct:function(){this.__lD=null}})})();(function(){qx.Interface.define("qx.data.controller.ISelection",{members:{setSelection:function(){},getSelection:function(){},resetSelection:function(){}}})})();
(function(){qx.Interface.define("qx.ui.form.IBooleanForm",{events:{changeValue:"qx.event.type.Data"},members:{setValue:function(a){return arguments.length==1},resetValue:function(){},getValue:function(){}}})})();(function(){qx.Interface.define("qx.ui.form.IColorForm",{events:{changeValue:"qx.event.type.Data"},members:{setValue:function(a){return arguments.length==1},resetValue:function(){},getValue:function(){}}})})();
(function(){qx.Interface.define("qx.ui.form.IDateForm",{events:{changeValue:"qx.event.type.Data"},members:{setValue:function(a){return arguments.length==1},resetValue:function(){},getValue:function(){}}})})();(function(){qx.Interface.define("qx.ui.form.INumberForm",{events:{changeValue:"qx.event.type.Data"},members:{setValue:function(a){return arguments.length==1},resetValue:function(){},getValue:function(){}}})})();
(function(){qx.Interface.define("qx.ui.form.renderer.IFormRenderer",{members:{addItems:function(){},addButton:function(){}}})})();
(function(){qx.Class.define("qx.ui.form.renderer.AbstractRenderer",{type:"abstract",extend:qx.ui.core.Widget,implement:qx.ui.form.renderer.IFormRenderer,construct:function(a){qx.ui.core.Widget.call(this);this._visibilityBindingIds=[];this._labels=[];if(qx.core.Environment.get("qx.dynlocale"))qx.locale.Manager.getInstance().addListener("changeLocale",this._onChangeLocale,this),this._names=[];for(var b=a.getGroups(),c=0;c<b.length;c++){var d=b[c];this.addItems(d.items,d.labels,d.title,d.options,d.headerOptions)}b=
a.getButtons();a=a.getButtonOptions();for(c=0;c<b.length;c++)this.addButton(b[c],a[c])},members:{_names:null,_visibilityBindingIds:null,_labels:null,_connectVisibility:function(a,b){this._visibilityBindingIds.push({id:a.bind("visibility",b,"visibility"),item:a})},_onChangeLocale:qx.core.Environment.select("qx.dynlocale",{"true":function(){for(var a=0;a<this._names.length;a++){var b=this._names[a];if(b.name&&b.name.translate)b.name=b.name.translate();var c=this._createLabelText(b.name,b.item);b.label.setValue(c)}},
"false":null}),_createLabelText:function(a,b){var c="";b.getRequired()&&(c=" <span style='color:red'>*</span> ");var d=a.length>0||b.getRequired()?" :":"";return a+c+d},addItems:function(){throw Error("Abstract method call");},addButton:function(){throw Error("Abstract method call");}},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this);this._names=null;for(var a=0;a<this._labels.length;a++)this._labels[a].dispose();
for(a=0;a<this._visibilityBindingIds.length;a++){var b=this._visibilityBindingIds[a];b.item.removeBinding(b.id)}}})})();
(function(){qx.Class.define("qx.ui.form.renderer.Single",{extend:qx.ui.form.renderer.AbstractRenderer,construct:function(a){var b=new qx.ui.layout.Grid;b.setSpacing(6);b.setColumnFlex(0,1);b.setColumnAlign(0,"right","top");this._setLayout(b);qx.ui.form.renderer.AbstractRenderer.call(this,a)},members:{_row:0,_buttonRow:null,addItems:function(a,b,c){c!=null&&(this._add(this._createHeader(c),{row:this._row,column:0,colSpan:2}),this._row++);for(c=0;c<a.length;c++){var d=this._createLabel(b[c],a[c]);this._add(d,
{row:this._row,column:0});var e=a[c];d.setBuddy(e);this._add(e,{row:this._row,column:1});this._row++;this._connectVisibility(e,d);qx.core.Environment.get("qx.dynlocale")&&this._names.push({name:b[c],label:d,item:a[c]})}},addButton:function(a){if(this._buttonRow==null){this._buttonRow=new qx.ui.container.Composite;this._buttonRow.setMarginTop(5);var b=new qx.ui.layout.HBox;b.setAlignX("right");b.setSpacing(5);this._buttonRow.setLayout(b);this._add(this._buttonRow,{row:this._row,column:0,colSpan:2});
this._row++}this._buttonRow.add(a)},getLayout:function(){return this._getLayout()},_createLabel:function(a,b){var c=new qx.ui.basic.Label(this._createLabelText(a,b));this._labels.push(c);c.setRich(true);c.setAppearance("form-renderer-label");return c},_createHeader:function(a){a=new qx.ui.basic.Label(a);this._labels.push(a);a.setFont("bold");this._row!=0&&a.setMarginTop(10);a.setAlignX("left");return a}},destruct:function(){this._buttonRow&&(this._buttonRow.removeAll(),this._disposeObjects("_buttonRow"))}})})();
(function(){qx.Class.define("qx.ui.layout.Grid",{extend:qx.ui.layout.Abstract,construct:function(a,b){qx.ui.layout.Abstract.call(this);this.__lG=[];this.__lH=[];a&&this.setSpacingX(a);b&&this.setSpacingY(b)},properties:{spacingX:{check:"Integer",init:0,apply:"_applyLayoutChange"},spacingY:{check:"Integer",init:0,apply:"_applyLayoutChange"}},members:{__lI:null,__lG:null,__lH:null,__lJ:null,__lK:null,__lL:null,__lM:null,__lN:null,__lO:null,verifyLayoutProperty:qx.core.Environment.select("qx.debug",
{"true":function(a,b,c){this.assert({row:1,column:1,rowSpan:1,colSpan:1}[b]==1,"The property '"+b+"' is not supported by the Grid layout!");this.assertInteger(c);this.assert(c>=0,"Value must be positive")},"false":null}),__lP:function(){for(var a=[],b=[],c=[],d=-1,e=-1,f=this._getLayoutChildren(),g=0,h=f.length;g<h;g++){var i=f[g],j=i.getLayoutProperties(),k=j.row,l=j.column;j.colSpan=j.colSpan||1;j.rowSpan=j.rowSpan||1;if(k==null||l==null)throw Error("The layout properties 'row' and 'column' of the child widget '"+
i+"' must be defined!");if(a[k]&&a[k][l])throw Error("Cannot add widget '"+i+"'!. There is already a widget '"+a[k][l]+"' in this cell ("+k+", "+l+") for '"+this+"'");for(var m=l;m<l+j.colSpan;m++)for(var n=k;n<k+j.rowSpan;n++)a[n]==void 0&&(a[n]=[]),a[n][m]=i,e=Math.max(e,m),d=Math.max(d,n);j.rowSpan>1&&c.push(i);j.colSpan>1&&b.push(i)}for(n=0;n<=d;n++)a[n]==void 0&&(a[n]=[]);this.__lI=a;this.__lJ=b;this.__lK=c;this.__lL=d;this.__lM=e;this.__lO=this.__lN=null;delete this._invalidChildrenCache},_setRowData:function(a,
b,c){var d=this.__lG[a];d?d[b]=c:(this.__lG[a]={},this.__lG[a][b]=c)},_setColumnData:function(a,b,c){var d=this.__lH[a];d?d[b]=c:(this.__lH[a]={},this.__lH[a][b]=c)},setSpacing:function(a){this.setSpacingY(a);this.setSpacingX(a);return this},setColumnAlign:function(a,b,c){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid parameter 'column'"),this.assertInArray(b,["left","center","right"]),this.assertInArray(c,["top","middle","bottom"]));this._setColumnData(a,"hAlign",b);this._setColumnData(a,
"vAlign",c);this._applyLayoutChange();return this},getColumnAlign:function(a){a=this.__lH[a]||{};return{vAlign:a.vAlign||"top",hAlign:a.hAlign||"left"}},setRowAlign:function(a,b,c){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid parameter 'row'"),this.assertInArray(b,["left","center","right"]),this.assertInArray(c,["top","middle","bottom"]));this._setRowData(a,"hAlign",b);this._setRowData(a,"vAlign",c);this._applyLayoutChange();return this},getRowAlign:function(a){a=this.__lG[a]||
{};return{vAlign:a.vAlign||"top",hAlign:a.hAlign||"left"}},getCellWidget:function(a,b){this._invalidChildrenCache&&this.__lP();a=this.__lI[a]||{};return a[b]||null},getRowCount:function(){this._invalidChildrenCache&&this.__lP();return this.__lL+1},getColumnCount:function(){this._invalidChildrenCache&&this.__lP();return this.__lM+1},getCellAlign:function(a,b){var c,d,e="top",f="left",g=this.__lG[a],h=this.__lH[b],i=this.__lI[a][b];i?(c=i.getAlignY(),d=i.getAlignX()):(c=void 0,d=void 0);if(c)e=c;else if(g&&
g.vAlign)e=g.vAlign;else if(h&&h.vAlign)e=h.vAlign;if(d)f=d;else if(h&&h.hAlign)f=h.hAlign;else if(g&&g.hAlign)f=g.hAlign;return{vAlign:e,hAlign:f}},setColumnFlex:function(a,b){this._setColumnData(a,"flex",b);this._applyLayoutChange();return this},getColumnFlex:function(a){a=this.__lH[a]||{};return a.flex!==void 0?a.flex:0},setRowFlex:function(a,b){this._setRowData(a,"flex",b);this._applyLayoutChange();return this},getRowFlex:function(a){a=this.__lG[a]||{};return a.flex!==void 0?a.flex:0},setColumnMaxWidth:function(a,
b){this._setColumnData(a,"maxWidth",b);this._applyLayoutChange();return this},getColumnMaxWidth:function(a){a=this.__lH[a]||{};return a.maxWidth!==void 0?a.maxWidth:Infinity},setColumnWidth:function(a,b){this._setColumnData(a,"width",b);this._applyLayoutChange();return this},getColumnWidth:function(a){a=this.__lH[a]||{};return a.width!==void 0?a.width:null},setColumnMinWidth:function(a,b){this._setColumnData(a,"minWidth",b);this._applyLayoutChange();return this},getColumnMinWidth:function(a){return(this.__lH[a]||
{}).minWidth||0},setRowMaxHeight:function(a,b){this._setRowData(a,"maxHeight",b);this._applyLayoutChange();return this},getRowMaxHeight:function(a){return(this.__lG[a]||{}).maxHeight||Infinity},setRowHeight:function(a,b){this._setRowData(a,"height",b);this._applyLayoutChange();return this},getRowHeight:function(a){a=this.__lG[a]||{};return a.height!==void 0?a.height:null},setRowMinHeight:function(a,b){this._setRowData(a,"minHeight",b);this._applyLayoutChange();return this},getRowMinHeight:function(a){return(this.__lG[a]||
{}).minHeight||0},__lQ:function(a){var b=a.getSizeHint(),c=a.getMarginLeft()+a.getMarginRight(),a=a.getMarginTop()+a.getMarginBottom();return{height:b.height+a,width:b.width+c,minHeight:b.minHeight+a,minWidth:b.minWidth+c,maxHeight:b.maxHeight+a,maxWidth:b.maxWidth+c}},_fixHeightsRowSpan:function(a){for(var b=this.getSpacingY(),c=0,d=this.__lK.length;c<d;c++){for(var e=this.__lK[c],f=this.__lQ(e),e=e.getLayoutProperties(),g=e.row,h=b*(e.rowSpan-1),i=h,j={},k=0;k<e.rowSpan;k++){var l=e.row+k,m=a[l],
n=this.getRowFlex(l);n>0&&(j[l]={min:m.minHeight,value:m.height,max:m.maxHeight,flex:n});h+=m.height;i+=m.minHeight}if(h<f.height)if(qx.lang.Object.isEmpty(j)){l=f.height-b*(e.rowSpan-1);h=Math.floor(l/e.rowSpan);for(k=n=m=0;k<e.rowSpan;k++){var o=a[g+k].height;m+=o;o<h&&n++}l=Math.floor((l-m)/n);for(k=0;k<e.rowSpan;k++)a[g+k].height<h&&(a[g+k].height+=l)}else{h=qx.ui.layout.Util.computeFlexOffsets(j,f.height,h);for(k=0;k<e.rowSpan;k++)l=h[g+k]?h[g+k].offset:0,a[g+k].height+=l}if(i<f.minHeight){h=
qx.ui.layout.Util.computeFlexOffsets(j,f.minHeight,i);for(k=0;k<e.rowSpan;k++)l=h[g+k]?h[g+k].offset:0,a[g+k].minHeight+=l}}},_fixWidthsColSpan:function(a){for(var b=this.getSpacingX(),c=0,d=this.__lJ.length;c<d;c++){for(var e=this.__lJ[c],f=this.__lQ(e),e=e.getLayoutProperties(),g=e.column,h=b*(e.colSpan-1),i=h,j={},k=0;k<e.colSpan;k++){var l=e.column+k,m=a[l],n=this.getColumnFlex(l);n>0&&(j[l]={min:m.minWidth,value:m.width,max:m.maxWidth,flex:n});h+=m.width;i+=m.minWidth}if(h<f.width){l=qx.ui.layout.Util.computeFlexOffsets(j,
f.width,h);for(k=0;k<e.colSpan;k++)h=l[g+k]?l[g+k].offset:0,a[g+k].width+=h}if(i<f.minWidth){l=qx.ui.layout.Util.computeFlexOffsets(j,f.minWidth,i);for(k=0;k<e.colSpan;k++)h=l[g+k]?l[g+k].offset:0,a[g+k].minWidth+=h}}},_getRowHeights:function(){if(this.__lN!=null)return this.__lN;for(var a=[],b=this.__lL,c=this.__lM,d=0;d<=b;d++){for(var e=0,f=0,g=0,g=0;g<=c;g++){var h=this.__lI[d][g];if(h&&!((h.getLayoutProperties().rowSpan||0)>1))h=this.__lQ(h),e=this.getRowFlex(d)>0?Math.max(e,h.minHeight):Math.max(e,
h.height),f=Math.max(f,h.height)}e=Math.max(e,this.getRowMinHeight(d));g=this.getRowMaxHeight(d);f=this.getRowHeight(d)!==null?this.getRowHeight(d):Math.max(e,Math.min(f,g));a[d]={minHeight:e,height:f,maxHeight:g}}this.__lK.length>0&&this._fixHeightsRowSpan(a);return this.__lN=a},_getColWidths:function(){if(this.__lO!=null)return this.__lO;for(var a=[],b=this.__lM,c=this.__lL,d=0;d<=b;d++){for(var e=0,f=0,g=Infinity,g=0;g<=c;g++){var h=this.__lI[g][d];if(h&&!((h.getLayoutProperties().colSpan||0)>
1))h=this.__lQ(h),f=this.getColumnFlex(d)>0?Math.max(f,h.minWidth):Math.max(f,h.width),e=Math.max(e,h.width)}f=Math.max(f,this.getColumnMinWidth(d));g=this.getColumnMaxWidth(d);e=this.getColumnWidth(d)!==null?this.getColumnWidth(d):Math.max(f,Math.min(e,g));a[d]={minWidth:f,width:e,maxWidth:g}}this.__lJ.length>0&&this._fixWidthsColSpan(a);return this.__lO=a},_getColumnFlexOffsets:function(a){var b=this.getSizeHint(),c=a-b.width;if(c==0)return{};for(var d=this._getColWidths(),e={},f=0,g=d.length;f<
g;f++){var h=d[f],i=this.getColumnFlex(f);i<=0||h.width==h.maxWidth&&c>0||h.width==h.minWidth&&c<0||(e[f]={min:h.minWidth,value:h.width,max:h.maxWidth,flex:i})}return qx.ui.layout.Util.computeFlexOffsets(e,a,b.width)},_getRowFlexOffsets:function(a){var b=this.getSizeHint(),c=a-b.height;if(c==0)return{};for(var d=this._getRowHeights(),e={},f=0,g=d.length;f<g;f++){var h=d[f],i=this.getRowFlex(f);i<=0||h.height==h.maxHeight&&c>0||h.height==h.minHeight&&c<0||(e[f]={min:h.minHeight,value:h.height,max:h.maxHeight,
flex:i})}return qx.ui.layout.Util.computeFlexOffsets(e,a,b.height)},renderLayout:function(a,b){this._invalidChildrenCache&&this.__lP();for(var c=qx.ui.layout.Util,d=this.getSpacingX(),e=this.getSpacingY(),f=this._getColWidths(),g=this._getColumnFlexOffsets(a),h=[],i=this.__lM,j=this.__lL,k,l=0;l<=i;l++)k=g[l]?g[l].offset:0,h[l]=f[l].width+k;for(var l=this._getRowHeights(),m=this._getRowFlexOffsets(b),f=[],g=0;g<=j;g++)k=m[g]?m[g].offset:0,f[g]=l[g].height+k;for(l=k=0;l<=i;l++){for(g=m=0;g<=j;g++){var n=
this.__lI[g][l];if(n){var o=n.getLayoutProperties();if(!(o.row!==g||o.column!==l)){for(var r=d*(o.colSpan-1),q=0;q<o.colSpan;q++)r+=h[l+q];for(var p=e*(o.rowSpan-1),q=0;q<o.rowSpan;q++)p+=f[g+q];var s=n.getSizeHint(),q=n.getMarginTop(),u=n.getMarginLeft(),v=n.getMarginBottom(),w=n.getMarginRight(),o=Math.max(s.minWidth,Math.min(r-u-w,s.maxWidth)),s=Math.max(s.minHeight,Math.min(p-q-v,s.maxHeight)),x=this.getCellAlign(g,l),r=k+c.computeHorizontalAlignOffset(x.hAlign,o,r,u,w),p=m+c.computeVerticalAlignOffset(x.vAlign,
s,p,q,v);n.renderLayout(r,p,o,s)}}m+=f[g]+e}k+=h[l]+d}},invalidateLayoutCache:function(){qx.ui.layout.Abstract.prototype.invalidateLayoutCache.call(this);this.__lN=this.__lO=null},_computeSizeHint:function(){this._invalidChildrenCache&&this.__lP();for(var a=this._getColWidths(),b=0,c=0,d=0,e=a.length;d<e;d++){var f=a[d];b+=this.getColumnFlex(d)>0?f.minWidth:f.width;c+=f.width}for(var g=this._getRowHeights(),h=f=0,d=0,e=g.length;d<e;d++){var i=g[d];f+=this.getRowFlex(d)>0?i.minHeight:i.height;h+=i.height}a=
this.getSpacingX()*(a.length-1);d=this.getSpacingY()*(g.length-1);return{minWidth:b+a,width:c+a,minHeight:f+d,height:h+d}}},destruct:function(){this.__lI=this.__lG=this.__lH=this.__lJ=this.__lK=this.__lO=this.__lN=null}})})();
(function(){qx.Class.define("qx.ui.layout.HBox",{extend:qx.ui.layout.Abstract,construct:function(a,b,c){qx.ui.layout.Abstract.call(this);a&&this.setSpacing(a);b&&this.setAlignX(b);c&&this.setSeparator(c)},properties:{alignX:{check:["left","center","right"],init:"left",apply:"_applyLayoutChange"},alignY:{check:["top","middle","bottom"],init:"top",apply:"_applyLayoutChange"},spacing:{check:"Integer",init:0,apply:"_applyLayoutChange"},separator:{check:"Decorator",nullable:true,apply:"_applyLayoutChange"},
reversed:{check:"Boolean",init:false,apply:"_applyReversed"}},members:{__lR:null,__lS:null,__lT:null,__fp:null,_applyReversed:function(){this._invalidChildrenCache=true;this._applyLayoutChange()},__lU:function(){var a=this._getLayoutChildren(),b=a.length,c=false,d=this.__lR&&this.__lR.length!=b&&this.__lS&&this.__lR,e,f=d?this.__lR:Array(b),g=d?this.__lS:Array(b);this.getReversed()&&(a=a.concat().reverse());for(var h=0;h<b;h++)e=a[h].getLayoutProperties(),e.width!=null&&(f[h]=parseFloat(e.width)/
100),e.flex!=null?(g[h]=e.flex,c=true):g[h]=0;if(!d)this.__lR=f,this.__lS=g;this.__lT=c;this.__fp=a;delete this._invalidChildrenCache},verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b,c){this.assert(b==="flex"||b==="width","The property '"+b+"' is not supported by the HBox layout!");b=="width"?this.assertMatch(c,qx.ui.layout.Util.PERCENT_VALUE):(this.assertNumber(c),this.assert(c>=0))},"false":null}),renderLayout:function(a,b){this._invalidChildrenCache&&this.__lU();
var c=this.__fp,d=c.length,e=qx.ui.layout.Util,f=this.getSpacing(),g=this.getSeparator(),h=g?e.computeHorizontalSeparatorGaps(c,f,g):e.computeHorizontalGaps(c,f,true),i,j,k,l=[],f=h;for(i=0;i<d;i+=1)k=this.__lR[i],k=k!=null?Math.floor((a-h)*k):c[i].getSizeHint().width,l.push(k),f+=k;if(this.__lT&&f!=a){k={};for(i=0;i<d;i+=1)h=this.__lS[i],h>0&&(m=c[i].getSizeHint(),k[i]={min:m.minWidth,value:l[i],max:m.maxWidth,flex:h});h=e.computeFlexOffsets(k,a,f);for(i in h)k=h[i].offset,l[i]+=k,f+=k}h=c[0].getMarginLeft();
f<a&&this.getAlignX()!="left"&&(h=a-f,this.getAlignX()==="center"&&(h=Math.round(h/2)));var m,n,o,r,f=this.getSpacing();this._clearSeparators();if(g){i=qx.theme.manager.Decoration.getInstance().resolve(g).getInsets();var q=i.left+i.right}for(i=0;i<d;i+=1)j=c[i],k=l[i],m=j.getSizeHint(),n=j.getMarginTop(),r=j.getMarginBottom(),m=Math.max(m.minHeight,Math.min(b-n-r,m.maxHeight)),n=e.computeVerticalAlignOffset(j.getAlignY()||this.getAlignY(),m,b,n,r),i>0&&(g?(h+=o+f,this._renderSeparator(g,{left:h,top:0,
width:q,height:b}),h+=q+f+j.getMarginLeft()):h+=e.collapseMargins(f,o,j.getMarginLeft())),j.renderLayout(h,n,k,m),h+=k,o=j.getMarginRight()},_computeSizeHint:function(){this._invalidChildrenCache&&this.__lU();for(var a=qx.ui.layout.Util,b=this.__fp,c=0,d=0,e=0,f=0,g=0,h,i,j=0,k=b.length;j<k;j+=1){h=b[j];i=h.getSizeHint();d+=i.width;var l=this.__lR[j];this.__lS[j]?c+=i.minWidth:l?e=Math.max(e,Math.round(i.minWidth/l)):c+=i.width;h=h.getMarginTop()+h.getMarginBottom();i.height+h>g&&(g=i.height+h);i.minHeight+
h>f&&(f=i.minHeight+h)}c+=e;e=this.getSpacing();a=(i=this.getSeparator())?a.computeHorizontalSeparatorGaps(b,e,i):a.computeHorizontalGaps(b,e,true);return{minWidth:c+a,width:d+a,minHeight:f,height:g}}},destruct:function(){this.__lR=this.__lS=this.__fp=null}})})();
(function(){qx.Class.define("soap.CallQueue",{extend:qx.core.Object,type:"singleton",construct:function(){this.__dC=[]},destruct:function(){},members:{__dC:null,add:function(a){this.__dC.push(a)},flush:function(){for(var a=this.__dC,b=a.pop();b;)b.callAsync(),b=a.pop()}}})})();
(function(){qx.Class.define("soap.RequestHeader",{extend:qx.core.Object,properties:{_row:{check:"Integer",nullable:true,init:0},_sort_key:{check:"String",nullable:true,init:null},_sort_ord:{check:"String",nullable:true,init:null}},statics:{TYPE_DEFINITION:{ns:"soap"}}})})();
(function(){qx.Class.define("soap.Call",{extend:qx.core.Object,properties:{_name:{check:"String"},_client:{check:"soap.Client"},_params:{check:"soap.Parameters",init:null,nullable:true},_simple:{check:"Boolean",init:false},_errback:{check:"Function",init:null,nullable:true},_callback:{check:"Function",init:null,nullable:true}},members:{easy:function(){var a=arguments,b=this.get_client();a.unshift(this.get_name());b.easy.apply(b,a)},callAsync:function(){this.get_client().callAsync(this.get_name(),
this.get_params(),this.get_simple(),this.get_callback(),this.get_errback())}}})})();
(function(){qx.Class.define("soap.Parameters",{extend:qx.core.Object,include:[qx.locale.MTranslation],construct:function(a){this.__lV=a?a:{}},properties:{_soap_req_header:{init:null,nullable:true}},members:{__lV:null,get_params:function(){return this.__lV},__lW:function(a,b,c,d,e,f,g){var h,i;if(e.is_simple_array){j=e.name;k=this.__kV(null,d,0,e);for(f=0,h=c.length;f<h;++f)i=soap.Client.createSubElementNS(a,b,j,g),this.__cv(a,i,c[f],d,k)}else{var j=e.children[0].name,k=this.__kV(e,d,0);for(f=0,h=
c.length;f<h;++f)g=e.children[j].ns,g=="http://www.w3.org/2001/XMLSchema"&&(g=d.get_target_namespace()),i=soap.Client.createSubElementNS(a,b,j,g),this.__cv(a,i,c[f],d,k)}},__kV:function(a,b,c,d){if(!d)for(d=a.children[c];a.base&&!d;)a=b.schema[a.base_ns].complex[a.base],d=a.children[c];c=d.ns;d=d.type.split(":")[1];a=null;b.schema[c]&&(a=b.schema[c].complex[d]);return a},__lX:function(a,b,c,d,e,f,g){if(c instanceof qx.locale.LocalizedString)b.appendChild(a.createTextNode(c.toString()));else if(c instanceof
Date){for(var e=c.getFullYear().toString(),f=(c.getMonth()+1).toString(),f=f.length==1?"0"+f:f,g=c.getDate().toString(),g=g.length==1?"0"+g:g,h=c.getHours().toString(),h=h.length==1?"0"+h:h,i=c.getMinutes().toString(),i=i.length==1?"0"+i:i,j=c.getSeconds().toString(),j=j.length==1?"0"+j:j,k=c.getMilliseconds().toString();k.length<3;)k="0"+k;for(var l=Math.abs(c.getTimezoneOffset()),m=0;l>=60;)m++,l-=60;l=l.toString().length==1?"0"+l.toString():l.toString();m=m.toString().length==1?"0"+m.toString():
m.toString();l=(c.getTimezoneOffset()<0?"+":"-")+m+":"+l;c=e+"-"+f+"-"+g+"T"+h+":"+i+":"+j+"."+k+l;b.appendChild(a.createTextNode(c))}else if(c instanceof Number)b.appendChild(a.createTextNode(c.toString()));else if(c instanceof Array)this.__lW(a,b,c,d,e,f,g);else if(qx.xml.Document.isXmlDocument(c))try{b.appendChild(c)}catch(n){e=c,c.ownerDocument&&(e=c.ownerDocument.importNode?b.ownerDocument.importNode(c,true):b.ownerDocument.cloneNode(true)),b.appendChild(e)}else{var o=this,r=function(e,f){f.base&&
r(e.superclass,d.schema[f.base_ns].complex[f.base]);var g=0;if(f.children)for(var h=f.children[g];h;)o.__lY(a,b,c,d,f,"_"+h.name),h=f.children[++g]};r(c.constructor,e)}},__cv:function(a,b,c,d,e,f,g){var h=typeof c;c==null?soap.Client.setAttributeNS(a,b,"xsi:nil","http://www.w3.org/2001/XMLSchema-instance",1):h=="string"?b.appendChild(a.createTextNode(c)):h=="number"||h=="boolean"?b.appendChild(a.createTextNode(c.toString())):h=="object"&&this.__lX(a,b,c,d,e,f,g)},__lY:function(a,b,c,d,e,f){var g=
"get"+f,f=f.slice(1),g=c[g](),h=eval(c.classname).TYPE_DEFINITION,c=e.children[f];c.is_simple_array?h=h.ns:(h?(h=h.ns,c=this.__kV(e,d,f)):h="qxsoap.internal",b=soap.Client.createSubElementNS(a,b,f,h));this.__cv(a,b,g,d,c,e,h)},add:function(a,b){this.__lV[a]=b;return this},get_argument:function(a){return this.__lV[a]},to_xml:function(a,b,c,d){var e=c.get_target_namespace(),f=soap.Client.createSubElementNS,g,h=this.get_soap_req_header();if(h!=null){var i=f(a,b,"Header","http://schemas.xmlsoap.org/soap/envelope/"),
j=eval(h.classname).TYPE_DEFINITION.ns;g=c.schema[j].complex[h.basename];i=f(a,i,h.basename,j);this.__cv(a,i,h,c,g)}var b=f(a,b,"Body","http://schemas.xmlsoap.org/soap/envelope/"),k=f(a,b,d,e),l=c.schema[e].complex[d],d=0;if(l.children)for(b=l.children[d];b;){var m=b.name,n=this,e=function(b){var d=soap.Client.createSubElementNS(a,k,m,c.get_target_namespace());g=n.__kV(l,c,m);n.__cv(a,d,b,c,g,l)},f=this.__lV[m];if(b.is_simple_array&&f){b=0;for(f=f.length;b<f;++b)e(this.__lV[m][b])}else e(this.__lV[m]);
b=l.children[++d]}}}})})();
(function(){qx.Class.define("qx.io.remote.Exchange",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this.setRequest(a);a.setTransport(this)},events:{sending:"qx.event.type.Event",receiving:"qx.event.type.Event",completed:"qx.io.remote.Response",aborted:"qx.event.type.Event",failed:"qx.io.remote.Response",timeout:"qx.io.remote.Response"},statics:{typesOrder:["qx.io.remote.transport.XmlHttp","qx.io.remote.transport.Iframe","qx.io.remote.transport.Script"],typesReady:false,typesAvailable:{},
typesSupported:{},registerType:function(a,b){qx.io.remote.Exchange.typesAvailable[b]=a},initTypes:function(){if(!qx.io.remote.Exchange.typesReady){for(var a in qx.io.remote.Exchange.typesAvailable){var b=qx.io.remote.Exchange.typesAvailable[a];b.isSupported()&&(qx.io.remote.Exchange.typesSupported[a]=b)}qx.io.remote.Exchange.typesReady=true;if(qx.lang.Object.isEmpty(qx.io.remote.Exchange.typesSupported))throw Error("No supported transport types were found!");}},canHandle:function(a,b,c){if(!qx.lang.Array.contains(a.handles.responseTypes,
c))return false;for(var d in b)if(!a.handles[d])return false;return true},_nativeMap:{0:"created",1:"configured",2:"sending",3:"receiving",4:"completed"},wasSuccessful:function(a,b,c){if(c)switch(a){case null:case 0:return true;case -1:return b<4;default:return typeof a==="undefined"}else switch(a){case -1:return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&b>3&&qx.log.Logger.debug(this,"Failed with statuscode: -1 at readyState "+b),b<4;case 200:case 304:return true;
case 201:case 202:case 203:case 204:case 205:return true;case 206:return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&b===4&&qx.log.Logger.debug(this,"Failed with statuscode: 206 (Partial content while being complete!)"),b!==4;case 300:case 301:case 302:case 303:case 305:case 400:case 401:case 402:case 403:case 404:case 405:case 406:case 407:case 408:case 409:case 410:case 411:case 412:case 413:case 414:case 415:case 500:case 501:case 502:case 503:case 504:case 505:return qx.core.Environment.get("qx.debug")&&
qx.core.Environment.get("qx.ioRemoteDebug")&&qx.log.Logger.debug(this,"Failed with typical HTTP statuscode: "+a),false;case 12002:case 12007:case 12029:case 12030:case 12031:case 12152:case 13030:return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&qx.log.Logger.debug(this,"Failed with MSHTML specific HTTP statuscode: "+a),false;default:if(a>206&&a<300)return true;qx.log.Logger.debug(this,"Unknown status code: "+a+" ("+b+")");return false}},statusCodeToString:function(a){switch(a){case -1:return"Not available";
case 0:return qx.lang.String.startsWith(window.location.href.toLowerCase(),"file:")?"Unknown status code. Possibly due to application URL using 'file:' protocol?":"Unknown status code. Possibly due to a cross-domain request?";case 200:return"Ok";case 304:return"Not modified";case 206:return"Partial content";case 204:return"No content";case 300:return"Multiple choices";case 301:return"Moved permanently";case 302:return"Moved temporarily";case 303:return"See other";case 305:return"Use proxy";case 400:return"Bad request";
case 401:return"Unauthorized";case 402:return"Payment required";case 403:return"Forbidden";case 404:return"Not found";case 405:return"Method not allowed";case 406:return"Not acceptable";case 407:return"Proxy authentication required";case 408:return"Request time-out";case 409:return"Conflict";case 410:return"Gone";case 411:return"Length required";case 412:return"Precondition failed";case 413:return"Request entity too large";case 414:return"Request-URL too large";case 415:return"Unsupported media type";
case 500:return"Server error";case 501:return"Not implemented";case 502:return"Bad gateway";case 503:return"Out of resources";case 504:return"Gateway time-out";case 505:return"HTTP version not supported";case 12002:return"Server timeout";case 12029:return"Connection dropped";case 12030:return"Connection dropped";case 12031:return"Connection dropped";case 12152:return"Connection closed by server";case 13030:return"MSHTML-specific HTTP status code";default:return"Unknown status code"}}},properties:{request:{check:"qx.io.remote.Request",
nullable:true},implementation:{check:"qx.io.remote.transport.Abstract",nullable:true,apply:"_applyImplementation"},state:{check:"configured,sending,receiving,completed,aborted,timeout,failed".split(","),init:"configured",event:"changeState",apply:"_applyState"}},members:{send:function(){var a=this.getRequest();if(!a)return this.error("Please attach a request object first");qx.io.remote.Exchange.initTypes();var b=qx.io.remote.Exchange.typesOrder,c=qx.io.remote.Exchange.typesSupported,d=a.getResponseType(),
e={};a.getAsynchronous()?e.asynchronous=true:e.synchronous=true;if(a.getCrossDomain())e.crossDomain=true;if(a.getFileUpload())e.fileUpload=true;for(var f in a.getFormFields()){e.programaticFormFields=true;break}for(var g,h=0,i=b.length;h<i;h++)if((f=c[b[h]])&&qx.io.remote.Exchange.canHandle(f,e,d))try{return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("Using implementation: "+f.classname),g=new f,this.setImplementation(g),g.setUseBasicHttpAuth(a.getUseBasicHttpAuth()),
g.send(),true}catch(j){this.error("Request handler throws error");this.error(j);return}this.error("There is no transport implementation available to handle this request: "+a)},abort:function(){var a=this.getImplementation();a?(qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("Abort: implementation "+a.toHashCode()),a.abort()):(qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("Abort: forcing state to be aborted"),
this.setState("aborted"))},timeout:function(){var a=this.getImplementation();if(a){var b="",c;for(c in a.getParameters())b+="&"+c+"="+a.getParameters()[c];this.warn("Timeout: implementation "+a.toHashCode()+", "+a.getUrl()+" ["+a.getMethod()+"], "+b);a.timeout()}else this.warn("Timeout: forcing state to timeout"),this.setState("timeout");this.__ma()},__ma:function(){var a=this.getRequest();a&&a.setTimeout(0)},_onsending:function(){this.setState("sending")},_onreceiving:function(){this.setState("receiving")},
_oncompleted:function(){this.setState("completed")},_onabort:function(){this.setState("aborted")},_onfailed:function(){this.setState("failed")},_ontimeout:function(){this.setState("timeout")},_applyImplementation:function(a,b){b&&(b.removeListener("sending",this._onsending,this),b.removeListener("receiving",this._onreceiving,this),b.removeListener("completed",this._oncompleted,this),b.removeListener("aborted",this._onabort,this),b.removeListener("timeout",this._ontimeout,this),b.removeListener("failed",
this._onfailed,this));if(a){var c=this.getRequest();a.setUrl(c.getUrl());a.setMethod(c.getMethod());a.setAsynchronous(c.getAsynchronous());a.setUsername(c.getUsername());a.setPassword(c.getPassword());a.setParameters(c.getParameters(false));a.setFormFields(c.getFormFields());a.setRequestHeaders(c.getRequestHeaders());a instanceof qx.io.remote.transport.XmlHttp&&a.setParseJson(c.getParseJson());var d=c.getData();if(d===null){var d=c.getParameters(true),e=[],f;for(f in d){var g=d[f];if(g instanceof
Array)for(var h=0;h<g.length;h++)e.push(encodeURIComponent(f)+"="+encodeURIComponent(g[h]));else e.push(encodeURIComponent(f)+"="+encodeURIComponent(g))}e.length>0&&a.setData(e.join("&"))}else a.setData(d);a.setResponseType(c.getResponseType());a.addListener("sending",this._onsending,this);a.addListener("receiving",this._onreceiving,this);a.addListener("completed",this._oncompleted,this);a.addListener("aborted",this._onabort,this);a.addListener("timeout",this._ontimeout,this);a.addListener("failed",
this._onfailed,this)}},_applyState:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("State: "+b+" => "+a);switch(a){case "sending":this.fireEvent("sending");break;case "receiving":this.fireEvent("receiving");break;case "completed":case "aborted":case "timeout":case "failed":var c=this.getImplementation();if(!c)break;this.__ma();if(this.hasListener(a)){var d=qx.event.Registration.createEvent(a,qx.io.remote.Response);if(a=="completed"){var e=
c.getResponseContent();d.setContent(e);e===null&&qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("Altered State: "+a+" => failed")}else a=="failed"&&d.setContent(c.getResponseContent());d.setStatusCode(c.getStatusCode());d.setResponseHeaders(c.getResponseHeaders());this.dispatchEvent(d)}this.setImplementation(null);c.dispose()}}},environment:{"qx.ioRemoteDebug":false,"qx.ioRemoteDebugData":false},destruct:function(){var a=this.getImplementation();a&&(this.setImplementation(null),
a.dispose());this.setRequest(null)}})})();
(function(){qx.Class.define("qx.io.remote.transport.Abstract",{type:"abstract",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.setRequestHeaders({});this.setParameters({});this.setFormFields({})},events:{created:"qx.event.type.Event",configured:"qx.event.type.Event",sending:"qx.event.type.Event",receiving:"qx.event.type.Event",completed:"qx.event.type.Event",aborted:"qx.event.type.Event",failed:"qx.event.type.Event",timeout:"qx.event.type.Event"},properties:{url:{check:"String",
nullable:true},method:{check:"String",nullable:true,init:"GET"},asynchronous:{check:"Boolean",nullable:true,init:true},data:{check:"String",nullable:true},username:{check:"String",nullable:true},password:{check:"String",nullable:true},state:{check:"created,configured,sending,receiving,completed,aborted,timeout,failed".split(","),init:"created",event:"changeState",apply:"_applyState"},requestHeaders:{check:"Object",nullable:true},parameters:{check:"Object",nullable:true},formFields:{check:"Object",
nullable:true},responseType:{check:"String",nullable:true},useBasicHttpAuth:{check:"Boolean",nullable:true}},members:{send:function(){throw Error("send is abstract");},abort:function(){qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Aborting...");this.setState("aborted")},timeout:function(){qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Timeout...");this.setState("timeout")},failed:function(){qx.core.Environment.get("qx.debug")&&
qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Failed...");this.setState("failed")},setRequestHeader:function(){throw Error("setRequestHeader is abstract");},getResponseHeader:function(){throw Error("getResponseHeader is abstract");},getResponseHeaders:function(){throw Error("getResponseHeaders is abstract");},getStatusCode:function(){throw Error("getStatusCode is abstract");},getStatusText:function(){throw Error("getStatusText is abstract");},getResponseText:function(){throw Error("getResponseText is abstract");
},getResponseXml:function(){throw Error("getResponseXml is abstract");},getFetchedLength:function(){throw Error("getFetchedLength is abstract");},_applyState:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("State: "+a);switch(a){case "created":this.fireEvent("created");break;case "configured":this.fireEvent("configured");break;case "sending":this.fireEvent("sending");break;case "receiving":this.fireEvent("receiving");break;case "completed":this.fireEvent("completed");
break;case "aborted":this.fireEvent("aborted");break;case "failed":this.fireEvent("failed");break;case "timeout":this.fireEvent("timeout")}return true}},destruct:function(){this.setRequestHeaders(null);this.setParameters(null);this.setFormFields(null)}})})();
(function(){qx.Class.define("qx.io.remote.transport.Iframe",{extend:qx.io.remote.transport.Abstract,construct:function(){qx.io.remote.transport.Abstract.call(this);var a=(new Date).valueOf(),b="frame_"+a,a="form_"+a,c;qx.core.Environment.get("engine.name")=="mshtml"&&(c="javascript:void(0)");this.__mb=qx.bom.Iframe.create({id:b,name:b,src:c});qx.bom.element.Style.set(this.__mb,"display","none");this.__mc=qx.bom.Element.create("form",{id:a,name:a,target:b});qx.bom.element.Style.set(this.__mc,"display",
"none");qx.dom.Element.insertEnd(this.__mc,qx.dom.Node.getBodyElement(document));this.__cP=qx.bom.Element.create("textarea",{id:"_data_",name:"_data_"});qx.dom.Element.insertEnd(this.__cP,this.__mc);qx.dom.Element.insertEnd(this.__mb,qx.dom.Node.getBodyElement(document));qx.event.Registration.addListener(this.__mb,"load",this._onload,this);this.__md=qx.lang.Function.listener(this._onreadystatechange,this);qx.bom.Event.addNativeListener(this.__mb,"readystatechange",this.__md)},statics:{handles:{synchronous:false,
asynchronous:true,crossDomain:false,fileUpload:true,programaticFormFields:true,responseTypes:["text/plain","text/javascript","application/json","application/xml","text/html"]},isSupported:function(){return true},_numericMap:{uninitialized:1,loading:2,loaded:2,interactive:3,complete:4}},members:{__cP:null,__me:0,__mc:null,__mb:null,__md:null,send:function(){var a=this.getMethod(),b=this.getUrl(),c=this.getParameters(false),d=[],e;for(e in c){var f=c[e];if(f instanceof Array)for(var g=0;g<f.length;g++)d.push(encodeURIComponent(e)+
"="+encodeURIComponent(f[g]));else d.push(encodeURIComponent(e)+"="+encodeURIComponent(f))}d.length>0&&(b+=(b.indexOf("?")>=0?"&":"?")+d.join("&"));if(this.getData()===null){c=this.getParameters(true);d=[];for(e in c)if(f=c[e],f instanceof Array)for(g=0;g<f.length;g++)d.push(encodeURIComponent(e)+"="+encodeURIComponent(f[g]));else d.push(encodeURIComponent(e)+"="+encodeURIComponent(f));d.length>0&&this.setData(d.join("&"))}c=this.getFormFields();for(e in c)d=document.createElement("textarea"),d.name=
e,d.appendChild(document.createTextNode(c[e])),this.__mc.appendChild(d);this.__mc.action=b;this.__mc.method=a;this.__cP.appendChild(document.createTextNode(this.getData()));this.__mc.submit();this.setState("sending")},_onload:qx.event.GlobalError.observeMethod(function(){qx.core.Environment.get("engine.name")=="opera"&&this.getIframeHtmlContent()==""||this.__mc.src||this._switchReadyState(qx.io.remote.transport.Iframe._numericMap.complete)}),_onreadystatechange:qx.event.GlobalError.observeMethod(function(){this._switchReadyState(qx.io.remote.transport.Iframe._numericMap[this.__mb.readyState])}),
_switchReadyState:function(a){switch(this.getState()){case "completed":case "aborted":case "failed":case "timeout":this.warn("Ignore Ready State Change");return}for(;this.__me<a;)this.setState(qx.io.remote.Exchange._nativeMap[++this.__me])},setRequestHeader:function(){},getResponseHeader:function(){return null},getResponseHeaders:function(){return{}},getStatusCode:function(){return 200},getStatusText:function(){return""},getIframeWindow:function(){return qx.bom.Iframe.getWindow(this.__mb)},getIframeDocument:function(){return qx.bom.Iframe.getDocument(this.__mb)},
getIframeBody:function(){return qx.bom.Iframe.getBody(this.__mb)},getIframeTextContent:function(){var a=this.getIframeBody();return!a?null:!a.firstChild?"":a.firstChild.tagName&&a.firstChild.tagName.toLowerCase()=="pre"?a.firstChild.innerHTML:a.innerHTML},getIframeHtmlContent:function(){var a=this.getIframeBody();return a?a.innerHTML:null},getFetchedLength:function(){return 0},getResponseContent:function(){if(this.getState()!=="completed")return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&
this.warn("Transfer not complete, ignoring content!"),null;qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("Returning content for responseType: "+this.getResponseType());var a=this.getIframeTextContent();switch(this.getResponseType()){case "text/plain":return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+this._responseContent),a;case "text/html":return a=this.getIframeHtmlContent(),qx.core.Environment.get("qx.debug")&&
qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+this._responseContent),a;case "application/json":a=this.getIframeHtmlContent();qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+this._responseContent);try{return a&&a.length>0?qx.lang.Json.parse(a):null}catch(b){return this.error("Could not execute json: ("+a+")",b)}case "text/javascript":a=this.getIframeHtmlContent();qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&
this.debug("Response: "+this._responseContent);try{return a&&a.length>0?window.eval(a):null}catch(c){return this.error("Could not execute javascript: ("+a+")",c)}case "application/xml":return a=this.getIframeDocument(),qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+this._responseContent),a;default:return this.warn("No valid responseType specified ("+this.getResponseType()+")!"),null}}},defer:function(){qx.io.remote.Exchange.registerType(qx.io.remote.transport.Iframe,
"qx.io.remote.transport.Iframe")},destruct:function(){if(this.__mb){qx.event.Registration.removeListener(this.__mb,"load",this._onload,this);qx.bom.Event.removeNativeListener(this.__mb,"readystatechange",this.__md);if(qx.core.Environment.get("engine.name")=="gecko")this.__mb.src=qx.util.ResourceManager.getInstance().toUri("qx/static/blank.gif");qx.dom.Element.remove(this.__mb)}this.__mc&&qx.dom.Element.remove(this.__mc);this.__mb=this.__mc=this.__cP=null}})})();
(function(){qx.Class.define("qx.event.handler.Iframe",{extend:qx.core.Object,implement:qx.event.IEventHandler,statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{load:1,navigate:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,IGNORE_CAN_HANDLE:false,onevent:qx.event.GlobalError.observeMethod(function(a){var b=qx.bom.Iframe.queryCurrentUrl(a);if(b!==a.$$url)qx.event.Registration.fireEvent(a,"navigate",qx.event.type.Data,[b]),a.$$url=b;qx.event.Registration.fireEvent(a,"load")})},
members:{canHandleEvent:function(a){return a.tagName.toLowerCase()==="iframe"},registerEvent:function(){},unregisterEvent:function(){}},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.bom.Iframe",{statics:{DEFAULT_ATTRIBUTES:{onload:"qx.event.handler.Iframe.onevent(this)",frameBorder:0,frameSpacing:0,marginWidth:0,marginHeight:0,hspace:0,vspace:0,border:0,allowTransparency:true},create:function(a,b){var a=a?qx.lang.Object.clone(a):{},c=qx.bom.Iframe.DEFAULT_ATTRIBUTES,d;for(d in c)a[d]==null&&(a[d]=c[d]);return qx.bom.Element.create("iframe",a,b)},getWindow:function(a){try{return a.contentWindow}catch(b){return null}},getDocument:function(a){if("contentDocument"in
a)try{return a.contentDocument}catch(b){return null}try{var c=this.getWindow(a);return c?c.document:null}catch(d){return null}},getBody:function(a){try{var b=this.getDocument(a);return b?b.getElementsByTagName("body")[0]:null}catch(c){return null}},setSource:function(a,b){try{if(this.getWindow(a)&&qx.dom.Hierarchy.isRendered(a))try{if(qx.core.Environment.get("engine.name")=="webkit"&&qx.core.Environment.get("os.name")=="osx"){var c=this.getWindow(a);c&&c.stop()}this.getWindow(a).location.replace(b)}catch(d){a.src=
b}else a.src=b;this.__mf(a)}catch(e){qx.log.Logger.warn("Iframe source could not be set!")}},queryCurrentUrl:function(a){a=this.getDocument(a);try{if(a&&a.location)return a.location.href}catch(b){}return""},__mf:function(a){var b=function(){qx.bom.Event.removeNativeListener(a,"load",b);a.$$url=qx.bom.Iframe.queryCurrentUrl(a)};qx.bom.Event.addNativeListener(a,"load",b)}}})})();
(function(){qx.Class.define("qx.io.remote.transport.Script",{extend:qx.io.remote.transport.Abstract,construct:function(){qx.io.remote.transport.Abstract.call(this);var a=++qx.io.remote.transport.Script.__mg;if(a>=2E9)qx.io.remote.transport.Script.__mg=a=1;this.__fd=null;this.__mg=a},statics:{__mg:0,_instanceRegistry:{},ScriptTransport_PREFIX:"_ScriptTransport_",ScriptTransport_ID_PARAM:"_ScriptTransport_id",ScriptTransport_DATA_PARAM:"_ScriptTransport_data",handles:{synchronous:false,asynchronous:true,
crossDomain:true,fileUpload:false,programaticFormFields:false,responseTypes:["text/plain","text/javascript","application/json"]},isSupported:function(){return true},_numericMap:{uninitialized:1,loading:2,loaded:2,interactive:3,complete:4},_requestFinished:qx.event.GlobalError.observeMethod(function(a,b){var c=qx.io.remote.transport.Script._instanceRegistry[a];c==null?qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Request finished for an unknown instance (probably aborted or timed out before)"):
(c._responseContent=b,c._switchReadyState(qx.io.remote.transport.Script._numericMap.complete))})},members:{__me:0,__fd:null,__mg:null,send:function(){var a=this.getUrl();a+=(a.indexOf("?")>=0?"&":"?")+qx.io.remote.transport.Script.ScriptTransport_ID_PARAM+"="+this.__mg;var b=this.getParameters(),c=[],d;for(d in b){d.indexOf(qx.io.remote.transport.Script.ScriptTransport_PREFIX)==0&&this.error("Illegal parameter name. The following prefix is used internally by qooxdoo): "+qx.io.remote.transport.Script.ScriptTransport_PREFIX);
var e=b[d];if(e instanceof Array)for(var f=0;f<e.length;f++)c.push(encodeURIComponent(d)+"="+encodeURIComponent(e[f]));else c.push(encodeURIComponent(d)+"="+encodeURIComponent(e))}c.length>0&&(a+="&"+c.join("&"));b=this.getData();b!=null&&(a+="&"+qx.io.remote.transport.Script.ScriptTransport_DATA_PARAM+"="+encodeURIComponent(b));qx.io.remote.transport.Script._instanceRegistry[this.__mg]=this;this.__fd=document.createElement("script");this.__fd.charset="utf-8";this.__fd.src=a;qx.core.Environment.get("qx.debug")&&
qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Request: "+a);document.body.appendChild(this.__fd)},_switchReadyState:function(a){switch(this.getState()){case "completed":case "aborted":case "failed":case "timeout":this.warn("Ignore Ready State Change");return}for(;this.__me<a;)this.setState(qx.io.remote.Exchange._nativeMap[++this.__me])},setRequestHeader:function(){},getResponseHeader:function(){return null},getResponseHeaders:function(){return{}},getStatusCode:function(){return 200},
getStatusText:function(){return""},getFetchedLength:function(){return 0},getResponseContent:function(){if(this.getState()!=="completed")return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Transfer not complete, ignoring content!"),null;qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("Returning content for responseType: "+this.getResponseType());switch(this.getResponseType()){case "text/plain":case "application/json":case "text/javascript":qx.core.Environment.get("qx.debug")&&
qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+this._responseContent);var a=this._responseContent;return a===0?0:a||null;default:return this.warn("No valid responseType specified ("+this.getResponseType()+")!"),null}}},defer:function(){qx.io.remote.Exchange.registerType(qx.io.remote.transport.Script,"qx.io.remote.transport.Script")},destruct:function(){this.__fd&&(delete qx.io.remote.transport.Script._instanceRegistry[this.__mg],document.body.removeChild(this.__fd));this.__fd=
this._responseContent=null}})})();
(function(){qx.Class.define("qx.io.remote.transport.XmlHttp",{extend:qx.io.remote.transport.Abstract,statics:{handles:{synchronous:true,asynchronous:true,crossDomain:false,fileUpload:false,programaticFormFields:false,responseTypes:["text/plain","text/javascript","application/json","application/xml","text/html"]},createRequestObject:qx.core.Environment.select("engine.name",{"default":function(){return new XMLHttpRequest},mshtml:function(){if(window.ActiveXObject&&qx.xml.Document.XMLHTTP)return new ActiveXObject(qx.xml.Document.XMLHTTP);
if(window.XMLHttpRequest)return new XMLHttpRequest}}),isSupported:function(){return!!this.createRequestObject()}},properties:{parseJson:{check:"Boolean",init:true}},members:{__mh:false,__me:0,__mi:null,getRequest:function(){if(this.__mi===null)this.__mi=qx.io.remote.transport.XmlHttp.createRequestObject(),this.__mi.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,this);return this.__mi},send:function(){this.__me=0;var a=this.getRequest(),b=this.getMethod(),c=this.getAsynchronous(),
d=this.getUrl(),e=window.location.protocol==="file:"&&!/^http(s){0,1}\:/.test(d);this.__mh=e;var f=this.getParameters(false),g=[],h;for(h in f){var i=f[h];if(i instanceof Array)for(var j=0;j<i.length;j++)g.push(encodeURIComponent(h)+"="+encodeURIComponent(i[j]));else g.push(encodeURIComponent(h)+"="+encodeURIComponent(i))}g.length>0&&(d+=(d.indexOf("?")>=0?"&":"?")+g.join("&"));if(this.getData()===null){f=this.getParameters(true);g=[];for(h in f)if(i=f[h],i instanceof Array)for(j=0;j<i.length;j++)g.push(encodeURIComponent(h)+
"="+encodeURIComponent(i[j]));else g.push(encodeURIComponent(h)+"="+encodeURIComponent(i));g.length>0&&this.setData(g.join("&"))}f=function(a){var b="",c,d,e,f,g,h,i=0;do c=a.charCodeAt(i++),d=a.charCodeAt(i++),e=a.charCodeAt(i++),f=c>>2,c=(c&3)<<4|d>>4,g=(d&15)<<2|e>>6,h=e&63,isNaN(d)?g=h=64:isNaN(e)&&(h=64),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h);while(i<a.length);return b};try{this.getUsername()?this.getUseBasicHttpAuth()?(a.open(b,d,c),a.setRequestHeader("Authorization","Basic "+f(this.getUsername()+":"+this.getPassword()))):a.open(b,d,c,this.getUsername(),this.getPassword()):a.open(b,d,c)}catch(k){this.error("Failed with exception: "+k);this.failed();return}qx.core.Environment.get("engine.name")!="webkit"&&a.setRequestHeader("Referer",window.location.href);b=
this.getRequestHeaders();for(h in b)a.setRequestHeader(h,b[h]);try{if(qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Request: "+this.getData()),e&&c&&qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("engine.version")==9)qx.event.Timer.once(function(){a.send(this.getData())},this,0);else a.send(this.getData())}catch(l){e?this.failedLocally():(this.error("Failed to send data: "+l,"send"),this.failed());return}c||this._onreadystatechange()},
failedLocally:function(){this.getState()!=="failed"&&(this.warn("Could not load from file: "+this.getUrl()),this.failed())},_onreadystatechange:qx.event.GlobalError.observeMethod(function(){switch(this.getState()){case "completed":case "aborted":case "failed":case "timeout":qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Ignore Ready State Change");return}var a=this.getReadyState();if(a==4&&!qx.io.remote.Exchange.wasSuccessful(this.getStatusCode(),a,this.__mh))this.getState()===
"configured"&&this.setState("sending"),this.failed();else for(a==3&&this.__me==1&&this.setState(qx.io.remote.Exchange._nativeMap[++this.__me]);this.__me<a;)this.setState(qx.io.remote.Exchange._nativeMap[++this.__me])}),getReadyState:function(){var a=null;try{a=this.getRequest().readyState}catch(b){}return a},setRequestHeader:function(a,b){this.getRequestHeaders()[a]=b},getResponseHeader:function(a){var b=null;try{b=this.getRequest().getResponseHeader(a)||null}catch(c){}return b},getStringResponseHeaders:function(){var a=
null;try{var b=this.getRequest().getAllResponseHeaders();b&&(a=b)}catch(c){}return a},getResponseHeaders:function(){var a=this.getStringResponseHeaders(),b={};if(a)for(var a=a.split(/[\r\n]+/g),c=0,d=a.length;c<d;c++){var e=a[c].match(/^([^:]+)\s*:\s*(.+)$/i);e&&(b[e[1]]=e[2])}return b},getStatusCode:function(){var a=-1;try{a=this.getRequest().status,a===1223&&(a=204)}catch(b){}return a},getStatusText:function(){var a="";try{a=this.getRequest().statusText}catch(b){}return a},getResponseText:function(){var a=
null;try{a=this.getRequest().responseText}catch(b){a=null}return a},getResponseXml:function(){var a=null,b=this.getStatusCode(),c=this.getReadyState();if(qx.io.remote.Exchange.wasSuccessful(b,c,this.__mh))try{a=this.getRequest().responseXML}catch(d){}if(typeof a=="object"&&a!=null){a.documentElement||(b=String(this.getRequest().responseText).replace(/<\?xml[^\?]*\?>/,""),a.loadXML(b));if(!a.documentElement)throw Error("Missing Document Element!");if(a.documentElement.tagName=="parseerror")throw Error("XML-File is not well-formed!");
}else throw Error("Response was not a valid xml document ["+this.getRequest().responseText+"]");return a},getFetchedLength:function(){var a=this.getResponseText();return typeof a=="string"?a.length:0},getResponseContent:function(){var a=this.getState();if(a!=="completed"&&a!="failed")return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.warn("Transfer not complete or failed, ignoring content!"),null;qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&
this.debug("Returning content for responseType: "+this.getResponseType());var b=this.getResponseText();if(a=="failed")return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Failed: "+b),b;switch(this.getResponseType()){case "text/plain":case "text/html":return qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+b),b;case "application/json":qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&
this.debug("Response: "+b);try{if(b&&b.length>0){var c;this.getParseJson()?(c=qx.lang.Json.parse(b),c=c===0?0:c||null):c=b;return c}else return null}catch(d){return this.error("Could not execute json: ["+b+"]",d),"<pre>Could not execute json: \n"+b+"\n</pre>"}case "text/javascript":qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+b);try{return b&&b.length>0?(c=window.eval(b),c===0?0:c||null):null}catch(e){return this.error("Could not execute javascript: ["+
b+"]",e),null}case "application/xml":return b=this.getResponseXml(),qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebugData")&&this.debug("Response: "+b),b===0?0:b||null;default:return this.warn("No valid responseType specified ("+this.getResponseType()+")!"),null}},_applyState:function(a){qx.core.Environment.get("qx.debug")&&qx.core.Environment.get("qx.ioRemoteDebug")&&this.debug("State: "+a);switch(a){case "created":this.fireEvent("created");break;case "configured":this.fireEvent("configured");
break;case "sending":this.fireEvent("sending");break;case "receiving":this.fireEvent("receiving");break;case "completed":this.fireEvent("completed");break;case "failed":this.fireEvent("failed");break;case "aborted":this.getRequest().abort();this.fireEvent("aborted");break;case "timeout":this.getRequest().abort(),this.fireEvent("timeout")}}},defer:function(){qx.io.remote.Exchange.registerType(qx.io.remote.transport.XmlHttp,"qx.io.remote.transport.XmlHttp")},destruct:function(){var a=this.getRequest();
if(a)switch(a.onreadystatechange=qx.lang.Function.empty,a.readyState){case 1:case 2:case 3:a.abort()}this.__mi=null}})})();
(function(){qx.Class.define("qx.io.remote.Response",{extend:qx.event.type.Event,properties:{state:{check:"Integer",nullable:true},statusCode:{check:"Integer",nullable:true},content:{nullable:true},responseHeaders:{check:"Object",nullable:true,apply:"_applyResponseHeaders"}},members:{__Aq:null,clone:function(a){a=qx.event.type.Event.prototype.clone.call(this,a);a.setType(this.getType());a.setState(this.getState());a.setStatusCode(this.getStatusCode());a.setContent(this.getContent());a.setResponseHeaders(this.getResponseHeaders());
return a},getResponseHeader:function(a){return this.__Aq?this.__Aq[a.toLowerCase()]||null:null},_applyResponseHeaders:function(a){var b={};if(a!==null)qx.lang.Object.getKeys(a).forEach(function(c){b[c.toLowerCase()]=a[c]}),this.__Aq=b}}})})();
(function(){qx.Class.define("qx.util.PropertyUtil",{statics:{getProperties:function(a){return a.$$properties},getAllProperties:function(a){for(var b={};a!=qx.core.Object;){var c=this.getProperties(a),d;for(d in c)b[d]=c[d];a=a.superclass}return b},getUserValue:function(a,b){return a["$$user_"+b]},setUserValue:function(a,b,c){a["$$user_"+b]=c},deleteUserValue:function(a,b){delete a["$$user_"+b]},getInitValue:function(a,b){return a["$$init_"+b]},setInitValue:function(a,b,c){a["$$init_"+b]=c},deleteInitValue:function(a,
b){delete a["$$init_"+b]},getThemeValue:function(a,b){return a["$$theme_"+b]},setThemeValue:function(a,b,c){a["$$theme_"+b]=c},deleteThemeValue:function(a,b){delete a["$$theme_"+b]},setThemed:function(a,b,c){a[qx.core.Property.$$method.setThemed[b]](c)},resetThemed:function(a,b){a[qx.core.Property.$$method.resetThemed[b]]()}}})})();
(function(){qx.Class.define("arskom.soap.Client",{extend:soap.Client,members:{alter_args:function(a){var b=a.get_soap_req_header();if(!b)if(this.cache.has_object("arskom.webservices","RequestHeader"))b=this.cache.get_object("arskom.webservices","RequestHeader");else return;b.set_who(arskom.ui.impl.Login.s_who);b.set_lang(qx.locale.Manager.getInstance().getLocale());a.set_soap_req_header(b)},get_query_class:function(a,b){var c,d=this.cache.methods[a];d||qx.log.Logger.debug("function "+this.get_function()+
" not exposed via WSDL!");d=this.get_target(d.input,b);try{var e=d.children.conditions.type.split(":")[1];c=this.cache.get_class(d.children.conditions.ns,e)}catch(f){qx.log.Logger.debug(f)}return c},get_target:function(a,b){b||(b=1);for(var c=this.cache.schema,d=a.name,e=a.ns,e=c[e].complex[d];--b;){if(!e.children)return null;d=e.children[0].type.split(":")[1];e=e.children[0].ns;e=c[e].complex[d]}return e}}})})();
(function(){qx.Class.define("arskom.ui.impl.Login",{extend:qx.core.Object,include:[qx.locale.MTranslation],properties:{widget:{check:"Object"},_wsc:{check:"soap.ClientCollection"}},statics:{s_who:null,s_cookie:null,s_roles:null,s_user_prefs:null,s_role_names:null,s_user_name:null,s_domain_name:null,s_login_service_name:"create_session",apply_session:function(a,b,c,d){arskom.ui.impl.Login.s_who=a.get_who();arskom.ui.impl.Login.s_cookie=a.get_cookie();arskom.ui.impl.Login.s_roles=a.get_roles();arskom.ui.impl.Login.s_role_names=
[];arskom.ui.impl.Login.s_user_prefs=a.get_prefs();d&&(d=arskom.Cookie.getInstance(),d.set_domain_name(b),d.set_user_name(c),d.set_cid(a.get_cookie()));a=0;for(d=arskom.ui.impl.Login.s_roles.length;a<d;++a)arskom.ui.impl.Login.s_role_names.push(arskom.ui.impl.Login.s_roles[a].get_role()),qx.log.Logger.debug(arskom.ui.impl.Login.s_role_names[a]);arskom.ui.impl.Login.s_domain_name=b;arskom.ui.impl.Login.s_user_name=c},reset_session:function(){arskom.ui.impl.Login.s_who=null;arskom.ui.impl.Login.s_roles=
null;arskom.ui.impl.Login.s_role_names=null;arskom.ui.impl.Login.s_user_prefs=null;arskom.ui.impl.Login.s_domain_name=null;arskom.ui.impl.Login.s_user_name=null}},construct:function(a,b,c,d){var e=this;d&&e.set_wsc(d);this.__mj=b;this.__mk=a;c?(a=0,b=150):(a=1,b=250);var f=new qx.ui.container.Composite(new qx.ui.layout.HBox(0));this.setWidget(f);this.MainWindow=new qx.ui.container.Composite;this.__ml=new qx.ui.layout.VBox;this.MainWindow.set({alignY:"middle",allowGrowY:false});f.add(this.MainWindow,
{flex:1});this.MainWindow.setLayout(this.__ml);this.centralwidget=new qx.ui.container.Composite;this.centralwidget.setAlignX("center");this.centralwidget.set({maxWidth:250});this.verticalLayout=new qx.ui.layout.VBox;this.centralwidget.setLayout(this.verticalLayout);this.groupBox=new qx.ui.groupbox.GroupBox;this.groupBox.setLegend(this.tr("Login"));this.groupBox.setAlignX("center");this.verticalLayout_2=new qx.ui.layout.VBox;this.groupBox.setLayout(this.verticalLayout_2);this.groupBox.set({maxWidth:b});
this.gridLayout=new qx.ui.layout.Grid;this.gridLayout_implicit_container=new qx.ui.container.Composite;this.gridLayout_implicit_container.setAlignX("center");this.gridLayout_implicit_container.setLayout(this.gridLayout);this.lbl_status=new qx.ui.basic.Label;this.lbl_status.setAlignX("center");this.centralwidget.add(this.lbl_status,{flex:1});this.lbl_domain_name=new qx.ui.basic.Label;this.lbl_domain_name.setValue(this.tr("Domain Name"));this.lbl_domain_name.setMargin(2);b=[];if(d)try{b=d.c.authn.cache.schema["arskom.rbac.authn"].simple.create_session_domain_name_type.restrictions.values}catch(g){}if(b.length==
0)this.edt_domain_name=new qx.ui.form.TextField;else{this.edt_domain_name=new qx.ui.form.ComboBox;d=0;for(f=b.length;d<f;++d)this.edt_domain_name.add(new qx.ui.form.ListItem(b[d],null,b[d]))}this.edt_domain_name.addListener("keypress",this.__mr,this);this.edt_domain_name.setMargin(2);d=0;this.gridLayout_implicit_container.add(this.edt_domain_name,{row:d,column:a});this.gridLayout.setColumnFlex(a,1);c?this.edt_domain_name.setPlaceholder(this.lbl_domain_name.getValue()):this.gridLayout_implicit_container.add(this.lbl_domain_name,
{row:d,column:0});++d;if(this.__mj)this.lbl_domain_password=new qx.ui.basic.Label,this.lbl_domain_password.setValue(this.tr("Domain Password")),this.lbl_domain_password.setMargin(2),this.edt_domain_password=new qx.ui.form.PasswordField,this.edt_domain_password.addListener("keypress",this.__mr,this),this.edt_domain_password.setMargin(2),c?this.edt_domain_password.setPlaceholder(this.lbl_domain_password.getValue()):this.gridLayout_implicit_container.add(this.lbl_domain_password,{row:1,column:0}),this.gridLayout_implicit_container.add(this.edt_domain_password,
{row:1,column:a}),d++;this.lbl_user_name=new qx.ui.basic.Label;this.lbl_user_name.setValue(this.tr("User Name"));this.lbl_user_name.setMargin(2);this.edt_user_name=new qx.ui.form.TextField;this.edt_user_name.addListener("keypress",this.__mr,this);this.edt_user_name.setMargin(2);this.edt_user_name.setAllowGrowX(true);c?this.edt_user_name.setPlaceholder(this.lbl_user_name.getValue()):this.gridLayout_implicit_container.add(this.lbl_user_name,{row:d,column:0});this.gridLayout_implicit_container.add(this.edt_user_name,
{row:d,column:a});++d;this.lbl_user_password=new qx.ui.basic.Label;this.lbl_user_password.setValue(this.tr("User Password"));this.lbl_user_password.setMargin(2);this.edt_user_password=new qx.ui.form.PasswordField;this.edt_user_password.addListener("keypress",this.__mr,this);this.edt_user_password.setMargin(2);c?this.edt_user_password.setPlaceholder(this.lbl_user_password.getValue()):this.gridLayout_implicit_container.add(this.lbl_user_password,{row:d,column:0});this.gridLayout_implicit_container.add(this.edt_user_password,
{row:d,column:a});++d;this.chk_remember_me=new qx.ui.form.CheckBox(this.tr("Remember Me"));this.chk_remember_me.setMargin(2);this.chk_remember_me.setAlignX("center");this.gridLayout_implicit_container.add(this.chk_remember_me,c?{row:d,column:0}:{row:d,column:0,colSpan:2});this.btn_login=new qx.ui.form.Button;this.btn_login.setLabel(this.tr("Login"));this.btn_login.setAlignX("center");this.btn_login.setMaxWidth(120);this.btn_login.setMarginTop(10);this.horizontalSpacer=new qx.ui.core.Spacer;this.horizontalSpacer.setWidth(40);
this.horizontalSpacer.setHeight(20);this.groupBox.add(this.gridLayout_implicit_container);this.centralwidget.add(this.groupBox);this.centralwidget.add(this.btn_login);this.MainWindow.add(this.centralwidget);qx.core.Environment.get("qx.debug")&&(this.edt_domain_name.setValue("arskom.com.tr"),this.__mj&&this.edt_domain_password.setValue("Ab1234"),this.edt_user_name.setValue("hostmaster"),this.edt_user_password.setValue("Ab1234"));c=function(a,b){var c=a!=null&&a.length>1;c||b.setInvalidMessage(e.tr("This field is required"));
return c};this.manager=new qx.ui.form.validation.Manager;this.manager.add(this.edt_user_name,c);this.manager.add(this.edt_domain_name,c);this.manager.add(this.edt_user_password,function(a,b){var c=a!=null&&a.length>5;c||b.setInvalidMessage(e.tr("Please enter a password at with least 6 characters."));return c});this.manager.setValidator(new qx.ui.form.validation.AsyncValidator(function(){var a=e.edt_domain_name.getValue(),b=e.edt_user_name.getValue(),c=e.edt_user_password.getValue();e.get_wsc().c.authn.easy(arskom.ui.impl.Login.s_login_service_name,
null,a,"",b,c,function(a){e.btn_login.setLabel(e.tr("Please wait..."));window.setTimeout(function(){arskom.ui.impl.Login.apply_session(a,e.edt_domain_name.getValue(),e.edt_user_name.getValue(),e.chk_remember_me.getValue());e.__mk&&e.__mk.fireImmediateEvent("successful_login")},30)},function(a){e.btn_login.setEnabled(true);e.btn_login.setLabel(e.tr("Login"));a=qx.core.Environment.get("engine.name")==="gecko"?a.fileName:a.message;parseInt(a.split(" ")[0])==20?(e.lbl_status.setValue(e.tr("Invalid Credentials")),
e.lbl_status.setTextColor("#ff0000")):e.lbl_status.setValue(a)})}));this.btn_login.addListener("execute",this.__mt,this);this.manager.addListener("complete",this.__ms,this)},members:{__mj:null,__mk:null,__mp:null,__mq:null,__bM:null,MainWindow:null,__ml:null,centralwidget:null,verticalLayout:null,groupBox:null,verticalLayout_2:null,lbl_status:null,gridLayout:null,gridLayout_implicit_container:null,lbl_domain_name:null,edt_domain_name:null,lbl_domain_password:null,edt_domain_password:null,lbl_user_name:null,
edt_user_name:null,lbl_user_password:null,edt_user_password:null,horizontalLayout:null,chk_remember_me:null,btn_login:null,horizontalSpacer:null,manager:null,__mr:function(a){a.getKeyIdentifier()=="Enter"&&this.__mt(a)},__ms:function(){this.manager.getValid()?this.__mo():(this.btn_login.setEnabled(true),this.btn_login.setLabel(this.tr("Login")),alert(this.manager.getInvalidMessages().join("\n")))},__mt:function(){var a=this;a.btn_login.setEnabled(false);a.btn_login.setLabel(this.tr("Validating..."));
window.setTimeout(function(){a.manager.validate()},30)}}})})();
(function(){qx.Class.define("arskom.Cookie",{extend:qx.core.Object,type:"singleton",properties:{_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_user_name:{check:"String",init:null,nullable:true,apply:"apply_user_name"},_cid:{check:"String",init:null,nullable:true,apply:"apply_cid"}},construct:function(){qx.core.Object.call(this)},members:{apply_user_name:function(a){arskom.misc.is_na(a)?qx.bom.Cookie.del("user_name"):qx.bom.Cookie.set("user_name",a,14)},apply_domain_name:function(a){arskom.misc.is_na(a)?
qx.bom.Cookie.del("domain_name"):qx.bom.Cookie.set("domain_name",a,14)},apply_cid:function(a){arskom.misc.is_na(a)?qx.bom.Cookie.del("cid"):qx.bom.Cookie.set("cid",a,14)},start_cookie:function(){this.set_domain_name(qx.bom.Cookie.get("domain_name"));this.set_user_name(qx.bom.Cookie.get("user_name"));this.set_cid(qx.bom.Cookie.get("cid"));return this.is_user_cookie_set()},is_user_cookie_set:function(){return!(arskom.misc.is_na(this.get_user_name())||arskom.misc.is_na(this.get_cid())||arskom.misc.is_na(this.get_domain_name()))},
delete_user_cookie:function(){this.set_domain_name(null);this.set_user_name(null);this.set_cid(null)}}})})();
(function(){var a="0";qx.Class.define("arskom.misc",{type:"static",statics:{force_trim:function(a){return typeof a!=="string"?a:a.replace(/^\s*/,"").replace(/\s*$/,"")},force_ltrim:function(a){if(a==void 0)return"";typeof a!=="string"&&(a=a.toString());return a.replace(/^\s*/,"")},force_rtrim:function(a){if(a==void 0)return"";typeof a!=="string"&&(a=a.toString());return a.replace(/\s*$/,"")},is_na:function(a){return a+""=="undefined"||a===null||a===""?true:false},clear_table:function(a,c,d){if(arskom.misc.is_na(a))return false;
arskom.misc.is_na(c)&&(c=[""]);arskom.misc.is_na(d)&&(d=[""]);var e=a.getTableModel();if(!arskom.misc.is_na(e)){a.resetSelection();var f=new qx.ui.table.model.Simple;f.waiting_row=0;f.setColumns(c,d);a.setTableModel(f);e.dispose()}return true},url_encode:function(b){for(var c="",d=0,b=b.toString(),e=/(^[a-zA-Z0-9_.]*)/;d<b.length;){var f=e.exec(b.substr(d));f!=null&&f.length>1&&f[1]!=""?(c+=f[1],d+=f[1].length):(b[d]==" "?c+="+":(f=b.charCodeAt(d).toString(16),c+="%"+(f.length<2?a:"")+f.toUpperCase()),
d++)}return c},url_decode:function(a){for(var c,d=/(%[^%]{2})/,e=null;(e=d.exec(a))!=null&&e.length>1&&e[1]!="";)c=parseInt(e[1].substr(1),16),c=String.fromCharCode(c),a=a.replace(e[1],c);return a},selected_table_row:function(a){var c=null;a.getSelectionModel().iterateSelection(function(d){c=a.getTableModel().getRowData(d)});return c},selected_table_rows:function(a){var c=[];a.getSelectionModel().iterateSelection(function(d){c.push(a.getTableModel().getRowData(d))});return c},selected_table_cells:function(a,
c){var d=[];a.getSelectionModel().iterateSelection(function(e){d.push(a.getTableModel().getValueById(c,e))});return d},selected_table_cell:function(a,c){var d="";a.getSelectionModel().iterateSelection(function(e){d=a.getTableModel().getValueById(c,e)});return d},get_table_cell_byrow:function(a,c,d){a=a.getTableModel().getValueById(c,d);return!arskom.misc.is_na(a)?a:""},add_to_selectbox:function(a,c){for(var d=0;d<c.length;d++){var e=new qx.ui.form.ListItem(c[d][0],c[d][1],c[d][2]);a.add(e)}},get_selectbox_value:function(a){if(arskom.misc.is_na(a))return null;
a=a.getSelection()[0];return a instanceof qx.ui.form.ListItem?a.getModel():null},get_selectbox_label:function(a){a=a.getSelected();return a instanceof qx.ui.form.ListItem?a.getLabel():null},set_selectbox_label:function(a,c){if(arskom.misc.is_na(c))return false;for(var d=a.getChildren(),e=0;e<d.length;e++)if(d[e].getModel()==c)return a.setSelection([d[e]]),true;return false},toggle_table_checked:function(a,c,d){a.getTableModel().getValue(d,c)===true?a.getTableModel().setValue(d,c,false):a.getTableModel().setValue(d,
c,true)},get_date_cellrenderer:function(a){arskom.misc.is_na(a)&&(a="yyyy/MM/dd HH:mm");var c=new qx.ui.table.cellrenderer.Date;c.setDateFormat(new qx.util.format.DateFormat(a));return c},is_type:function(a,c){return typeof a===c?true:false},is_empty:function(a){for(var c in a)if(a.hasOwnProperty(c))return false;return true},full_to_shortdate:function(a){return arskom.misc.is_na(a)?null:a.getFullYear()+"-"+a.getMonth()+"-"+a.getDate()},set_otherpages_disabled:function(a,c){for(var d=a.getChildren(),
e=0;e<d.length;e++)e==c?d[e].setEnabled(true):d[e].setEnabled(false)},replace_pages:function(a,c){for(var d=a.getChildren(),e=0;e<c.length;e++)a.indexOf(c[e])===-1&&a.add(c[e]);for(e=0;e<d.length;e++)c.indexOf(d[e])==-1&&(d[e+1]&&c.indexOf(d[e+1])==-1&&a.remove(d[e+1]),a.remove(d[e]),e=0)},calculate_timezone:function(a,c){var d=a.getTime()+a.getTimezoneOffset()*6E4;return new Date(d+36E5*c)},calculate_timezone_byid:function(a,c){c=parseInt(c);return c>arskom.misc.timezone_list.length-1?null:arskom.misc.calculate_timezone(a,
arskom.misc.timezone_list[c-1][1])},get_date_difference:function(a,c){var d=c.getTime()-a.getTime();if(d<=0)return d;var e=Math.floor(d/864E5);d-=e*864E5;var f=Math.floor(d/36E5);d-=f*36E5;var g=Math.floor(d/6E4);d-=g*6E4;d=Math.floor(d/1E3);return(e>0?e+" days ":"")+(f>0?f+" hours ":"")+(g>0?g+" minutes ":"")+(d>0?d+" seconds ":"")},get_formatted_dt_string:function(b,c){function d(b){return b<10?a+b:b}c=arskom.misc.is_na(c)?"":c;return b.getFullYear()+"-"+d(b.getMonth()+1)+"-"+d(b.getDate())+" "+
d(b.getHours())+":"+d(b.getMinutes())+":"+d(b.getSeconds())+" "+c}}})})();
(function(){qx.Interface.define("qx.ui.table.ITableModel",{events:{dataChanged:"qx.event.type.Data",metaDataChanged:"qx.event.type.Event",sorted:"qx.event.type.Data"},members:{getRowCount:function(){},getRowData:function(){},getColumnCount:function(){},getColumnId:function(){},getColumnIndexById:function(){},getColumnName:function(){},isColumnEditable:function(){},isColumnSortable:function(){},sortByColumn:function(){},getSortColumnIndex:function(){},isSortAscending:function(){},prefetchRows:function(){},
getValue:function(){},getValueById:function(){},setValue:function(){},setValueById:function(){}}})})();
(function(){qx.Class.define("qx.ui.table.model.Abstract",{type:"abstract",extend:qx.core.Object,implement:qx.ui.table.ITableModel,events:{dataChanged:"qx.event.type.Data",metaDataChanged:"qx.event.type.Event",sorted:"qx.event.type.Data"},construct:function(){qx.core.Object.call(this);this.__mu=[];this.__mv=[];this.__mw={}},members:{__mu:null,__mv:null,__mw:null,__mx:null,init:function(){},getRowCount:function(){throw Error("getRowCount is abstract");},getRowData:function(){return null},isColumnEditable:function(){return false},
isColumnSortable:function(){return false},sortByColumn:function(){},getSortColumnIndex:function(){return-1},isSortAscending:function(){return true},prefetchRows:function(){},getValue:function(){throw Error("getValue is abstract");},getValueById:function(a,b){return this.getValue(this.getColumnIndexById(a),b)},setValue:function(){throw Error("setValue is abstract");},setValueById:function(a,b,c){this.setValue(this.getColumnIndexById(a),b,c)},getColumnCount:function(){return this.__mu.length},getColumnIndexById:function(a){return this.__mw[a]},
getColumnId:function(a){return this.__mu[a]},getColumnName:function(a){return this.__mv[a]},setColumnIds:function(a){this.__mu=a;this.__mw={};for(var b=0;b<a.length;b++)this.__mw[a[b]]=b;this.__mv=Array(a.length);this.__mx||this.fireEvent("metaDataChanged")},setColumnNamesByIndex:function(a){if(this.__mu.length!=a.length)throw Error("this.__columnIdArr and columnNameArr have different length: "+this.__mu.length+" != "+a.length);this.__mv=a;this.fireEvent("metaDataChanged")},setColumnNamesById:function(a){this.__mv=
Array(this.__mu.length);for(var b=0;b<this.__mu.length;++b)this.__mv[b]=a[this.__mu[b]]},setColumns:function(a,b){var c=this.__mu.length==0||b;b==null&&(b=this.__mu.length==0?a:this.__mu);if(b.length!=a.length)throw Error("columnIdArr and columnNameArr have different length: "+b.length+" != "+a.length);if(c)this.__mx=true,this.setColumnIds(b),this.__mx=false;this.setColumnNamesByIndex(a)}},destruct:function(){this.__mu=this.__mv=this.__mw=null}})})();
(function(){qx.Class.define("qx.ui.table.model.Simple",{extend:qx.ui.table.model.Abstract,construct:function(){qx.ui.table.model.Abstract.call(this);this.__my=[];this.__mz=-1;this.__mA=[];this.__mB=null},properties:{caseSensitiveSorting:{check:"Boolean",init:true}},statics:{_defaultSortComparatorAscending:function(a,b){var c=a[arguments.callee.columnIndex],d=b[arguments.callee.columnIndex];if(qx.lang.Type.isNumber(c)&&qx.lang.Type.isNumber(d)){var e=isNaN(c)?isNaN(d)?0:1:isNaN(d)?-1:null;if(e!=null)return e}return c>
d?1:c==d?0:-1},_defaultSortComparatorInsensitiveAscending:function(a,b){var c=a[arguments.callee.columnIndex].toLowerCase?a[arguments.callee.columnIndex].toLowerCase():a[arguments.callee.columnIndex],d=b[arguments.callee.columnIndex].toLowerCase?b[arguments.callee.columnIndex].toLowerCase():b[arguments.callee.columnIndex];if(qx.lang.Type.isNumber(c)&&qx.lang.Type.isNumber(d)){var e=isNaN(c)?isNaN(d)?0:1:isNaN(d)?-1:null;if(e!=null)return e}return c>d?1:c==d?0:-1},_defaultSortComparatorDescending:function(a,
b){var c=a[arguments.callee.columnIndex],d=b[arguments.callee.columnIndex];if(qx.lang.Type.isNumber(c)&&qx.lang.Type.isNumber(d)){var e=isNaN(c)?isNaN(d)?0:1:isNaN(d)?-1:null;if(e!=null)return e}return c<d?1:c==d?0:-1},_defaultSortComparatorInsensitiveDescending:function(a,b){var c=a[arguments.callee.columnIndex].toLowerCase?a[arguments.callee.columnIndex].toLowerCase():a[arguments.callee.columnIndex],d=b[arguments.callee.columnIndex].toLowerCase?b[arguments.callee.columnIndex].toLowerCase():b[arguments.callee.columnIndex];
if(qx.lang.Type.isNumber(c)&&qx.lang.Type.isNumber(d)){var e=isNaN(c)?isNaN(d)?0:1:isNaN(d)?-1:null;if(e!=null)return e}return c<d?1:c==d?0:-1}},members:{__my:null,__mB:null,__mC:null,__mA:null,__mz:null,__mD:null,getRowData:function(a){a=this.__my[a];return a==null||a.originalData==null?a:a.originalData},getRowDataAsMap:function(a){a=this.__my[a];if(a!=null){for(var b={},c=0;c<this.getColumnCount();c++)b[this.getColumnId(c)]=a[c];if(a.originalData!=null)for(var d in a.originalData)b[d]==void 0&&
(b[d]=a.originalData[d]);return b}return a&&a.originalData?a.originalData:null},getDataAsMapArray:function(){for(var a=this.getRowCount(),b=[],c=0;c<a;c++)b.push(this.getRowDataAsMap(c));return b},setEditable:function(a){this.__mB=[];for(var b=0;b<this.getColumnCount();b++)this.__mB[b]=a;this.fireEvent("metaDataChanged")},setColumnEditable:function(a,b){if(b!=this.isColumnEditable(a)){if(this.__mB==null)this.__mB=[];this.__mB[a]=b;this.fireEvent("metaDataChanged")}},isColumnEditable:function(a){return this.__mB?
this.__mB[a]==true:false},setColumnSortable:function(a,b){if(b!=this.isColumnSortable(a)){if(this.__mC==null)this.__mC=[];this.__mC[a]=b;this.fireEvent("metaDataChanged")}},isColumnSortable:function(a){return this.__mC?this.__mC[a]!==false:true},sortByColumn:function(a,b){var c;c=(c=this.__mA[a])?b?c.ascending:c.descending:this.getCaseSensitiveSorting()?b?qx.ui.table.model.Simple._defaultSortComparatorAscending:qx.ui.table.model.Simple._defaultSortComparatorDescending:b?qx.ui.table.model.Simple._defaultSortComparatorInsensitiveAscending:
qx.ui.table.model.Simple._defaultSortComparatorInsensitiveDescending;c.columnIndex=a;this.__my.sort(c);this.__mz=a;this.__mD=b;this.fireDataEvent("sorted",{columnIndex:a,ascending:b});this.fireEvent("metaDataChanged")},setSortMethods:function(a,b){var c;c=qx.lang.Type.isFunction(b)?{ascending:b,descending:function(a,c){return b(c,a)}}:b;this.__mA[a]=c},getSortMethods:function(a){return this.__mA[a]},clearSorting:function(){if(this.__mz!=-1)this.__mz=-1,this.__mD=true,this.fireEvent("metaDataChanged")},
getSortColumnIndex:function(){return this.__mz},_setSortColumnIndex:function(a){this.__mz=a},isSortAscending:function(){return this.__mD},_setSortAscending:function(a){this.__mD=a},getRowCount:function(){return this.__my.length},getValue:function(a,b){if(b<0||b>=this.__my.length)throw Error("this.__rowArr out of bounds: "+b+" (0.."+this.__my.length+")");return this.__my[b][a]},setValue:function(a,b,c){this.__my[b][a]!=c&&(this.__my[b][a]=c,this.hasListener("dataChanged")&&this.fireDataEvent("dataChanged",
{firstRow:b,lastRow:b,firstColumn:a,lastColumn:a}),a==this.__mz&&this.clearSorting())},setData:function(a,b){this.__my=a;this.hasListener("dataChanged")&&this.fireDataEvent("dataChanged",{firstRow:0,lastRow:a.length-1,firstColumn:0,lastColumn:this.getColumnCount()-1});b!==false&&this.clearSorting()},getData:function(){return this.__my},setDataAsMapArray:function(a,b,c){this.setData(this._mapArray2RowArr(a,b),c)},addRows:function(a,b,c){if(b==null)b=this.__my.length;a.splice(0,0,b,0);Array.prototype.splice.apply(this.__my,
a);this.fireDataEvent("dataChanged",{firstRow:b,lastRow:this.__my.length-1,firstColumn:0,lastColumn:this.getColumnCount()-1});c!==false&&this.clearSorting()},addRowsAsMapArray:function(a,b,c,d){this.addRows(this._mapArray2RowArr(a,c),b,d)},setRows:function(a,b,c){b==null&&(b=0);a.splice(0,0,b,a.length);Array.prototype.splice.apply(this.__my,a);this.fireDataEvent("dataChanged",{firstRow:b,lastRow:this.__my.length-1,firstColumn:0,lastColumn:this.getColumnCount()-1});c!==false&&this.clearSorting()},
setRowsAsMapArray:function(a,b,c,d){this.setRows(this._mapArray2RowArr(a,c),b,d)},removeRows:function(a,b,c){this.__my.splice(a,b);this.fireDataEvent("dataChanged",{firstRow:a,lastRow:this.__my.length-1,firstColumn:0,lastColumn:this.getColumnCount()-1,removeStart:a,removeCount:b});c!==false&&this.clearSorting()},_mapArray2RowArr:function(a,b){for(var c=a.length,d=this.getColumnCount(),e=Array(c),f,g=0;g<c;++g){f=[];if(b)f.originalData=a[g];for(var h=0;h<d;++h)f[h]=a[g][this.getColumnId(h)];e[g]=f}return e}},
destruct:function(){this.__my=this.__mB=this.__mA=this.__mC=null}})})();(function(){qx.Mixin.define("qx.ui.form.MModelProperty",{properties:{model:{nullable:true,event:"changeModel",dereference:true}}})})();(function(){qx.Interface.define("qx.ui.form.IModel",{events:{changeModel:"qx.event.type.Data"},members:{setModel:function(){},getModel:function(){},resetModel:function(){}}})})();
(function(){qx.Class.define("qx.ui.form.ListItem",{extend:qx.ui.basic.Atom,implement:[qx.ui.form.IModel],include:[qx.ui.form.MModelProperty],construct:function(a,b,c){qx.ui.basic.Atom.call(this,a,b);c!=null&&this.setModel(c);this.addListener("mouseover",this._onMouseOver,this);this.addListener("mouseout",this._onMouseOut,this)},events:{action:"qx.event.type.Event"},properties:{appearance:{refine:true,init:"listitem"}},members:{_forwardStates:{focused:true,hovered:true,selected:true,dragover:true},
_onMouseOver:function(){this.addState("hovered")},_onMouseOut:function(){this.removeState("hovered")}},destruct:function(){this.removeListener("mouseover",this._onMouseOver,this);this.removeListener("mouseout",this._onMouseOut,this)}})})();(function(){qx.Interface.define("qx.ui.table.ICellRenderer",{members:{createDataCellHtml:function(){return true}}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Abstract",{type:"abstract",implement:qx.ui.table.ICellRenderer,extend:qx.core.Object,construct:function(){qx.core.Object.call(this);var a=qx.ui.table.cellrenderer.Abstract;if(!a.__mE){var b=qx.theme.manager.Color.getInstance();a.__mE=this.self(arguments);b=".qooxdoo-table-cell {"+qx.bom.element.Style.compile({position:"absolute",top:"0px",overflow:"hidden",whiteSpace:"nowrap",borderRight:"1px solid "+b.resolve("table-column-line"),padding:"0px 6px",
cursor:"default",textOverflow:"ellipsis",userSelect:"none"})+"} .qooxdoo-table-cell-right { text-align:right } .qooxdoo-table-cell-italic { font-style:italic} .qooxdoo-table-cell-bold { font-weight:bold } ";qx.core.Environment.get("css.boxsizing")&&(b+=".qooxdoo-table-cell {"+qx.bom.element.BoxSizing.compile("content-box")+"}");a.__mE.stylesheet=qx.bom.Stylesheet.createElement(b)}},properties:{defaultCellStyle:{init:null,check:"String",nullable:true}},members:{_insetX:13,_insetY:0,_getCellClass:function(){return"qooxdoo-table-cell"},
_getCellStyle:function(a){return a.style||""},_getCellAttributes:function(){return""},_getContentHtml:function(a){return a.value||""},_getCellSizeStyle:function(a,b,c,d){var e="";qx.core.Environment.get("css.boxmodel")=="content"&&(a-=c,b-=d);e+="width:"+Math.max(a,0)+"px;";e+="height:"+Math.max(b,0)+"px;";return e},createDataCellHtml:function(a,b){b.push('<div class="',this._getCellClass(a),'" style="',"left:",a.styleLeft,"px;",this._getCellSizeStyle(a.styleWidth,a.styleHeight,this._insetX,this._insetY),
this._getCellStyle(a),'" ',this._getCellAttributes(a),">"+this._getContentHtml(a),"</div>")}}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Default",{extend:qx.ui.table.cellrenderer.Abstract,statics:{STYLEFLAG_ALIGN_RIGHT:1,STYLEFLAG_BOLD:2,STYLEFLAG_ITALIC:4,_numberFormat:null},properties:{useAutoAlign:{check:"Boolean",init:true}},members:{_getStyleFlags:function(a){return this.getUseAutoAlign()&&typeof a.value=="number"?qx.ui.table.cellrenderer.Default.STYLEFLAG_ALIGN_RIGHT:0},_getCellClass:function(a){var b=qx.ui.table.cellrenderer.Abstract.prototype._getCellClass.call(this,a);
if(!b)return"";a=this._getStyleFlags(a);a&qx.ui.table.cellrenderer.Default.STYLEFLAG_ALIGN_RIGHT&&(b+=" qooxdoo-table-cell-right");a&qx.ui.table.cellrenderer.Default.STYLEFLAG_BOLD&&(b+=" qooxdoo-table-cell-bold");a&qx.ui.table.cellrenderer.Default.STYLEFLAG_ITALIC&&(b+=" qooxdoo-table-cell-italic");return b},_getContentHtml:function(a){return qx.bom.String.escape(this._formatValue(a))},_formatValue:function(a){a=a.value;if(a==null)return"";if(typeof a!="string")if(typeof a=="number"){if(!qx.ui.table.cellrenderer.Default._numberFormat)qx.ui.table.cellrenderer.Default._numberFormat=
new qx.util.format.NumberFormat,qx.ui.table.cellrenderer.Default._numberFormat.setMaximumFractionDigits(2);a=qx.ui.table.cellrenderer.Default._numberFormat.format(a)}else a=a instanceof Date?qx.util.format.DateFormat.getDateInstance().format(a):a;return a}}})})();
(function(){qx.Class.define("qx.bom.String",{statics:{TO_CHARCODE:{quot:34,amp:38,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,
Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,
ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,
thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,"int":8747,there4:8756,sim:8764,cong:8773,
asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,
lsaquo:8249,rsaquo:8250,euro:8364},escape:function(a){return qx.util.StringEscape.escape(a,qx.bom.String.FROM_CHARCODE)},unescape:function(a){return qx.util.StringEscape.unescape(a,qx.bom.String.TO_CHARCODE)},fromText:function(a){return qx.bom.String.escape(a).replace(/(  |\n)/g,function(a){return{"  ":" &nbsp;","\n":"<br>"}[a]||a})},toText:function(a){return qx.bom.String.unescape(a.replace(/\s+|<([^>])+>/gi,function(a){return a.indexOf("<br")===0?"\n":a.length>0&&a.replace(/^\s*/,"").replace(/\s*$/,
"")==""?" ":""}))}},defer:function(a){a.FROM_CHARCODE=qx.lang.Object.invert(a.TO_CHARCODE)}})})();
(function(){qx.Class.define("qx.util.StringEscape",{statics:{escape:function(a,b){for(var c,d="",e=0,f=a.length;e<f;e++){c=a.charAt(e);var g=c.charCodeAt(0);c=b[g]?"&"+b[g]+";":g>127?"&#"+g+";":c;d+=c}return d},unescape:function(a,b){return a.replace(/&[#\w]+;/gi,function(a){var d=a,a=a.substring(1,a.length-1),e=b[a];e?d=String.fromCharCode(e):a.charAt(0)=="#"&&(a.charAt(1).toUpperCase()=="X"?(e=a.substring(2),e.match(/^[0-9A-Fa-f]+$/gi)&&(d=String.fromCharCode(parseInt(e,16)))):(e=a.substring(1),
e.match(/^\d+$/gi)&&(d=String.fromCharCode(parseInt(e,10)))));return d})}}})})();(function(){qx.Interface.define("qx.util.format.IFormat",{members:{format:function(){},parse:function(){}}})})();
(function(){qx.Class.define("qx.util.format.NumberFormat",{extend:qx.core.Object,implement:qx.util.format.IFormat,construct:function(a){qx.core.Object.call(this);this.__iA=a},properties:{minimumIntegerDigits:{check:"Number",init:0},maximumIntegerDigits:{check:"Number",nullable:true},minimumFractionDigits:{check:"Number",init:0},maximumFractionDigits:{check:"Number",nullable:true},groupingUsed:{check:"Boolean",init:true},prefix:{check:"String",init:"",event:"changeNumberFormat"},postfix:{check:"String",
init:"",event:"changeNumberFormat"}},members:{__iA:null,format:function(a){switch(a){case Infinity:return"Infinity";case -Infinity:return"-Infinity";case NaN:return"NaN"}var b=a<0;b&&(a=-a);if(this.getMaximumFractionDigits()!=null)var c=Math.pow(10,this.getMaximumFractionDigits()),a=Math.round(a*c)/c;for(var c=String(Math.floor(a)).length,d=""+a,a=d.substring(0,c);a.length<this.getMinimumIntegerDigits();)a="0"+a;this.getMaximumIntegerDigits()!=null&&a.length>this.getMaximumIntegerDigits()&&(a=a.substring(a.length-
this.getMaximumIntegerDigits()));for(c=d.substring(c+1);c.length<this.getMinimumFractionDigits();)c+="0";this.getMaximumFractionDigits()!=null&&c.length>this.getMaximumFractionDigits()&&(c=c.substring(0,this.getMaximumFractionDigits()));if(this.getGroupingUsed()){var d=a,a="",e;for(e=d.length;e>3;e-=3)a=""+qx.locale.Number.getGroupSeparator(this.__iA)+d.substring(e-3,e)+a;a=d.substring(0,e)+a}e=this.getPrefix()?this.getPrefix():"";d=this.getPostfix()?this.getPostfix():"";b=e+(b?"-":"")+a;c.length>
0&&(b+=""+qx.locale.Number.getDecimalSeparator(this.__iA)+c);b+=d;return b},parse:function(a){var b=qx.lang.String.escapeRegexpChars(qx.locale.Number.getGroupSeparator(this.__iA)+""),c=qx.lang.String.escapeRegexpChars(qx.locale.Number.getDecimalSeparator(this.__iA)+""),d=RegExp("^"+qx.lang.String.escapeRegexpChars(this.getPrefix())+"([-+]){0,1}([0-9]{1,3}(?:"+b+"{0,1}[0-9]{3}){0,})("+c+"\\d+){0,1}"+qx.lang.String.escapeRegexpChars(this.getPostfix())+"$").exec(a);if(d==null)throw Error("Number string '"+
a+"' does not match the number format");var a=d[1]=="-",e=d[2],d=d[3],e=e.replace(RegExp(b,"g"),""),b=(a?"-":"")+e;d!=null&&d.length!=0&&(d=d.replace(RegExp(c),""),b+="."+d);return parseFloat(b)}}})})();
(function(){qx.Class.define("qx.locale.Number",{statics:{getDecimalSeparator:function(a){return qx.locale.Manager.getInstance().localize("cldr_number_decimal_separator",[],a)},getGroupSeparator:function(a){return qx.locale.Manager.getInstance().localize("cldr_number_group_separator",[],a)},getPercentFormat:function(a){return qx.locale.Manager.getInstance().localize("cldr_number_percent_format",[],a)}}})})();
(function(){qx.Class.define("qx.util.format.DateFormat",{extend:qx.core.Object,implement:qx.util.format.IFormat,construct:function(a,b){qx.core.Object.call(this);b?(this.__iA=b,this.setLocale(b)):(this.__iA=qx.locale.Manager.getInstance().getLocale(),this.__mF=qx.locale.Manager.getInstance().bind("locale",this,"locale"));this.__mG=this.__iA;if(a!=null){if(this.__mH=a.toString(),this.__mH in qx.util.format.DateFormat.ISO_MASKS){if(this.__mH==="isoUtcDateTime")this.__mI=true;this.__mH=qx.util.format.DateFormat.ISO_MASKS[this.__mH]}}else this.__mH=
qx.locale.Date.getDateFormat("long",this.__iA)+" "+qx.locale.Date.getDateTimeFormat("HHmmss","HH:mm:ss",this.__iA)},properties:{locale:{apply:"_applyLocale",nullable:true,check:"String"}},statics:{getDateTimeInstance:function(){var a=qx.util.format.DateFormat,b=qx.locale.Date.getDateFormat("long")+" "+qx.locale.Date.getDateTimeFormat("HHmmss","HH:mm:ss");if(a._dateInstance==null||a._dateInstance.__mH!=b)a._dateTimeInstance=new a;return a._dateTimeInstance},getDateInstance:function(){var a=qx.util.format.DateFormat,
b=qx.locale.Date.getDateFormat("short")+"";if(a._dateInstance==null||a._dateInstance.__mH!=b)a._dateInstance=new a(b);return a._dateInstance},ASSUME_YEAR_2000_THRESHOLD:30,LOGGING_DATE_TIME__format:"yyyy-MM-dd HH:mm:ss",ISO_MASKS:{isoDate:"yyyy-MM-dd",isoTime:"HH:mm:ss",isoDateTime:"yyyy-MM-dd'T'HH:mm:ss",isoUtcDateTime:"yyyy-MM-dd'T'HH:mm:ss'Z'"},AM_MARKER:"am",PM_MARKER:"pm"},members:{__mF:null,__iA:null,__mG:null,__mH:null,__mJ:null,__mK:null,__mL:null,__mI:null,__mM:function(a,b){for(var c=""+
(a<0?-1*a:a);c.length<b;)c="0"+c;return a<0?"-"+c:c},__mN:function(a){for(var a=new Date(a.getTime()),b=a.getDate();a.getMonth()!=0;)a.setDate(-1),b+=a.getDate()+1;return b},__mO:function(a){return new Date(a.getTime()+(3-(a.getDay()+6)%7)*864E5)},__mP:function(a){var a=this.__mO(a),b=a.getFullYear(),b=this.__mO(new Date(b,0,4));return Math.floor(1.5+(a.getTime()-b.getTime())/864E5/7)},__mQ:function(a){var b=this.__mO(a),a=this.__mO(new Date(a.getFullYear(),a.getMonth(),4));return Math.floor(1.5+
(b.getTime()-a.getTime())/864E5/7)},__mR:function(a){return this.__mO(a).getFullYear()},__mS:function(a){a=new Date(a,2,1);a.setDate(-1);return a.getDate()+1===29},__mT:function(a,b){var c=0,d=0;b||(b=1971);for(var e=0,f=1;f<=12;f++){var g=new Date(b,f,1);g.setDate(-1);g=g.getDate()+1;e+=g;if(e<a)c++,d+=g;else{d=a-(e-g);break}}return{month:c,day:d}},__mU:function(a,b,c){var d;switch(b){case 11:d=a-1;a!=this.__mR(new Date(d,b,c))&&(d=a);break;case 0:d=a+1;a!=this.__mR(new Date(d,b,c))&&(d=a);break;
default:d=a}return d},_applyLocale:function(a){this.__iA=a===null?this.setLocale(this.__mG):a},format:function(a){if(a==null)return null;if(isNaN(a.getTime()))return qx.core.Environment.get("qx.debug")&&qx.log.Logger.error("Provided date is invalid"),null;this.__mI&&(a=new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()));var b=this.__iA,c=a.getFullYear(),d=a.getMonth(),e=a.getDate(),f=a.getDay(),g=a.getHours(),h=a.getMinutes(),
i=a.getSeconds(),j=a.getMilliseconds(),k=a.getTimezoneOffset(),l=k>0?1:-1,m=Math.floor(Math.abs(k)/60),k=Math.abs(k)%60;this.__mV();for(var n="",o=0;o<this.__mL.length;o++){var r=this.__mL[o];if(r.type=="literal")n+=r.text;else{var q=r.size,p="?";switch(r.character){case "y":if(q==2)p=this.__mM(c%100,2);else{r=Math.abs(c);p=r+"";if(q>p.length)for(var s=p.length;s<q;s++)p="0"+p;c<0&&(p="-"+p)}break;case "Y":p=this.__mR(a)+"";r=p.replace("-","");if(q>p.length)for(s=r.length;s<q;s++)r="0"+r;p=p.indexOf("-")!=
-1?"-"+r:r;break;case "G":q>=1&&q<=3?p=c>0?"AD":"BC":q==4?p=c>0?"Anno Domini":"Before Christ":q==5&&(p=c>0?"A":"B");break;case "Q":if(q==1||q==2)p=this.__mM(parseInt(d/4)+1,q);q==3&&(p="Q"+(parseInt(d/4)+1));break;case "q":if(q==1||q==2)p=this.__mM(parseInt(d/4)+1,q);q==3&&(p="Q"+(parseInt(d/4)+1));break;case "D":p=this.__mM(this.__mN(a),q);break;case "d":p=this.__mM(e,q);break;case "w":p=this.__mM(this.__mP(a),q);break;case "W":p=this.__mQ(a);break;case "E":q>=1&&q<=3?p=qx.locale.Date.getDayName("abbreviated",
f,b,"format",true):q==4?p=qx.locale.Date.getDayName("wide",f,b,"format",true):q==5&&(p=qx.locale.Date.getDayName("narrow",f,b,"format",true));break;case "e":r=qx.locale.Date.getWeekStart(b);r=1+(f-r>=0?f-r:7+(f-r));q>=1&&q<=2?p=this.__mM(r,q):q==3?p=qx.locale.Date.getDayName("abbreviated",f,b,"format",true):q==4?p=qx.locale.Date.getDayName("wide",f,b,"format",true):q==5&&(p=qx.locale.Date.getDayName("narrow",f,b,"format",true));break;case "c":r=qx.locale.Date.getWeekStart(b);r=1+(f-r>=0?f-r:7+(f-
r));q==1?p=""+r:q==3?p=qx.locale.Date.getDayName("abbreviated",f,b,"stand-alone",true):q==4?p=qx.locale.Date.getDayName("wide",f,b,"stand-alone",true):q==5&&(p=qx.locale.Date.getDayName("narrow",f,b,"stand-alone",true));break;case "M":q==1||q==2?p=this.__mM(d+1,q):q==3?p=qx.locale.Date.getMonthName("abbreviated",d,b,"format",true):q==4?p=qx.locale.Date.getMonthName("wide",d,b,"format",true):q==5&&(p=qx.locale.Date.getMonthName("narrow",d,b,"format",true));break;case "L":q==1||q==2?p=this.__mM(d+1,
q):q==3?p=qx.locale.Date.getMonthName("abbreviated",d,b,"stand-alone",true):q==4?p=qx.locale.Date.getMonthName("wide",d,b,"stand-alone",true):q==5&&(p=qx.locale.Date.getMonthName("narrow",d,b,"stand-alone",true));break;case "a":p=g<12?qx.locale.Date.getAmMarker(b):qx.locale.Date.getPmMarker(b);break;case "H":p=this.__mM(g,q);break;case "k":p=this.__mM(g==0?24:g,q);break;case "K":p=this.__mM(g%12,q);break;case "h":p=this.__mM(g%12==0?12:g%12,q);break;case "m":p=this.__mM(h,q);break;case "s":p=this.__mM(i,
q);break;case "S":p=j+"";if(q<=p.length)p=p.substr(0,q);else for(s=p.length;s<q;s++)p+="0";break;case "z":q>=1&&q<=4&&(p="GMT"+(l>0?"-":"+")+this.__mM(Math.abs(m),2)+":"+this.__mM(k,2));break;case "Z":p=q>=1&&q<=3?(l>0?"-":"+")+this.__mM(Math.abs(m),2)+this.__mM(k,2):"GMT"+(l>0?"-":"+")+this.__mM(Math.abs(m),2)+":"+this.__mM(k,2)}n+=p}}return n},parse:function(a){this.__mW();var b=this.__mJ.regex.exec(a);if(b==null)throw Error("Date string '"+a+"' does not match the date format: "+this.__mH);for(var c=
{era:1,year:1970,quarter:1,month:0,day:1,dayOfYear:1,hour:0,ispm:false,weekDay:4,weekYear:1970,weekOfMonth:1,weekOfYear:1,min:0,sec:0,ms:0},d=1,e=false,f=false,g=0;g<this.__mJ.usedRules.length;g++){var h=this.__mJ.usedRules[g],i=b[d];h.field!=null?c[h.field]=parseInt(i,10):h.manipulator(c,i,h.pattern);if(h.pattern=="Y+"){for(var j=false,i=0;i<this.__mJ.usedRules.length;i++)if(this.__mJ.usedRules[i].pattern=="y+"){j=true;break}j||(e=true)}if(h.pattern.indexOf("D")!=-1){j=false;for(i=0;i<this.__mJ.usedRules.length;i++)if(this.__mJ.usedRules[i].pattern.indexOf("d")!=
-1){j=true;break}j||(f=true)}d+=h.groups==null?1:h.groups}if(e)c.year=this.__mU(c.weekYear,c.month,c.day);if(f)b=this.__mT(c.dayOfYear,c.year),c.month=b.month,c.day=b.day;c.era<0&&c.year*c.era<0&&(c.year*=c.era);b=new Date(c.year,c.month,c.day,c.ispm?c.hour+12:c.hour,c.min,c.sec,c.ms);this.__mI&&(b=new Date(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds(),b.getUTCMilliseconds()));if(c.month!=b.getMonth()||c.year!=b.getFullYear())throw Error("Error parsing date '"+
a+"': the value for day or month is too large");return b},__mV:function(){if(this.__mL==null){this.__mL=[];for(var a,b=0,c="",d=this.__mH,e="default",f=0;f<d.length;){var g=d.charAt(f);switch(e){case "quoted_literal":if(g=="'"){if(f+1>=d.length){f++;break}var h=d.charAt(f+1);h=="'"?(c+=g,f++):(f++,e="unkown")}else c+=g,f++;break;case "wildcard":g==a?(b++,f++):(this.__mL.push({type:"wildcard",character:a,size:b}),a=null,b=0,e="default");break;default:if(g>="a"&&g<="z"||g>="A"&&g<="Z")a=g,e="wildcard";
else if(g=="'"){if(f+1>=d.length){c+=g;f++;break}h=d.charAt(f+1);h=="'"&&(c+=g,f++);f++;e="quoted_literal"}else e="default";e!="default"?c.length>0&&(this.__mL.push({type:"literal",text:c}),c=""):(c+=g,f++)}}a!=null?this.__mL.push({type:"wildcard",character:a,size:b}):c.length>0&&this.__mL.push({type:"literal",text:c})}},__mW:function(){if(this.__mJ==null){var a=this.__mH;this.__mY();this.__mV();for(var b=[],c="^",d=0;d<this.__mL.length;d++){var e=this.__mL[d];if(e.type=="literal")c+=qx.lang.String.escapeRegexpChars(e.text);
else{for(var f=e.character,e=e.size,g,h=0;h<this.__mK.length;h++){var i=this.__mK[h];if(this.__mX(i,f,e)){g=i;break}}if(g==null){b="";for(c=0;c<e;c++)b+=f;throw Error("Malformed date format: "+a+". Wildcard "+b+" is not supported");}else b.push(g),c+=g.regex}}c+="$";this.__mJ={regex:RegExp(c),usedRules:b,pattern:c}}},__mX:function(a,b,c){return b==="y"&&a.pattern==="y+"?(a.regex=a.regexFunc(c),true):b==="Y"&&a.pattern==="Y+"?(a.regex=a.regexFunc(c),true):b==a.pattern.charAt(0)&&c==a.pattern.length},
__mY:function(){var a=qx.util.format.DateFormat,b=qx.lang.String;if(this.__mK==null){var c=this.__mK=[],d=qx.locale.Date.getAmMarker(this.__iA).toString()||a.AM_MARKER,e=qx.locale.Date.getPmMarker(this.__iA).toString()||a.PM_MARKER,f=this.__iA,g=function(a,b){a.month=parseInt(b,10)-1},h=function(a,b){var c=qx.locale.Date.getWeekStart(f),c=parseInt(b,10)-1+c<=6?parseInt(b,10)-1+c:parseInt(b,10)-1+c-7;a.weekDay=c},i=function(a,b){a.hour=parseInt(b,10)%24},j=function(a,b){a.hour=parseInt(b,10)%12},k=
function(){},l=["AD","BC"],m=function(a,b){a.era=b=="AD"?1:-1},n=["Q1","Q2","Q3","Q4"],o=function(a,b){a.quarter=n.indexOf(b)},r=["1st quarter","2nd quarter","3rd quarter","4th quarter"],q=function(a,b){a.quarter=r.indexOf(b)},p={},s=function(a){var c=["L","M"],d=["c","e","E"],e=a.charAt(0),g=c.indexOf(e)>=0,h;if(!p[a]){p[a]={};h=function(){var b=e===(g?c:d)[0]?"stand-alone":"format",f="abbreviated";switch(a.length){case 4:f="wide";break;case 5:f="narrow";break;default:f="abbreviated"}return[b,f]}();
var i=(g?qx.locale.Date.getMonthNames:qx.locale.Date.getDayNames).call(qx.locale.Date,h[1],f,h[0],true);h=0;for(var j=i.length;h<j;h++)i[h]=b.escapeRegexpChars(i[h].toString());p[a].data=i;p[a].func=function(a,c){c=b.escapeRegexpChars(c);a[g?"month":"weekDay"]=i.indexOf(c)}}return p[a]};c.push({pattern:"y+",regexFunc:function(a){for(var b="(-*",c=0;c<a;c++)b+="\\d",c===a-1&&c!==1&&(b+="+?");b+=")";return b},manipulator:function(b,c){c=parseInt(c,10);c>0&&(c<a.ASSUME_YEAR_2000_THRESHOLD?c+=2E3:c<100&&
(c+=1900));b.year=c}});c.push({pattern:"Y+",regexFunc:function(a){for(var b="(-*",c=0;c<a;c++)b+="\\d",c===a-1&&(b+="+?");b+=")";return b},manipulator:function(b,c){c=parseInt(c,10);c>0&&(c<a.ASSUME_YEAR_2000_THRESHOLD?c+=2E3:c<100&&(c+=1900));b.weekYear=c}});c.push({pattern:"G",regex:"("+l.join("|")+")",manipulator:m});c.push({pattern:"GG",regex:"("+l.join("|")+")",manipulator:m});c.push({pattern:"GGG",regex:"("+l.join("|")+")",manipulator:m});c.push({pattern:"GGGG",regex:"(Anno Domini|Before Christ)",
manipulator:function(a,b){a.era=b=="Anno Domini"?1:-1}});c.push({pattern:"GGGGG",regex:"(A|B)",manipulator:function(a,b){a.era=b=="A"?1:-1}});c.push({pattern:"Q",regex:"(\\d\\d*?)",field:"quarter"});c.push({pattern:"QQ",regex:"(\\d\\d?)",field:"quarter"});c.push({pattern:"QQQ",regex:"("+n.join("|")+")",manipulator:o});c.push({pattern:"QQQQ",regex:"("+r.join("|")+")",manipulator:q});c.push({pattern:"q",regex:"(\\d\\d*?)",field:"quarter"});c.push({pattern:"qq",regex:"(\\d\\d?)",field:"quarter"});c.push({pattern:"qqq",
regex:"("+n.join("|")+")",manipulator:o});c.push({pattern:"qqqq",regex:"("+r.join("|")+")",manipulator:q});c.push({pattern:"M",regex:"(\\d\\d*?)",manipulator:g});c.push({pattern:"MM",regex:"(\\d\\d?)",manipulator:g});c.push({pattern:"MMM",regex:"("+s("MMM").data.join("|")+")",manipulator:s("MMM").func});c.push({pattern:"MMMM",regex:"("+s("MMMM").data.join("|")+")",manipulator:s("MMMM").func});c.push({pattern:"MMMMM",regex:"("+s("MMMMM").data.join("|")+")",manipulator:s("MMMMM").func});c.push({pattern:"L",
regex:"(\\d\\d*?)",manipulator:g});c.push({pattern:"LL",regex:"(\\d\\d?)",manipulator:g});c.push({pattern:"LLL",regex:"("+s("LLL").data.join("|")+")",manipulator:s("LLL").func});c.push({pattern:"LLLL",regex:"("+s("LLLL").data.join("|")+")",manipulator:s("LLLL").func});c.push({pattern:"LLLLL",regex:"("+s("LLLLL").data.join("|")+")",manipulator:s("LLLLL").func});c.push({pattern:"dd",regex:"(\\d\\d?)",field:"day"});c.push({pattern:"d",regex:"(\\d\\d*?)",field:"day"});c.push({pattern:"D",regex:"(\\d?)",
field:"dayOfYear"});c.push({pattern:"DD",regex:"(\\d\\d?)",field:"dayOfYear"});c.push({pattern:"DDD",regex:"(\\d\\d\\d?)",field:"dayOfYear"});c.push({pattern:"E",regex:"("+s("E").data.join("|")+")",manipulator:s("E").func});c.push({pattern:"EE",regex:"("+s("EE").data.join("|")+")",manipulator:s("EE").func});c.push({pattern:"EEE",regex:"("+s("EEE").data.join("|")+")",manipulator:s("EEE").func});c.push({pattern:"EEEE",regex:"("+s("EEEE").data.join("|")+")",manipulator:s("EEEE").func});c.push({pattern:"EEEEE",
regex:"("+s("EEEEE").data.join("|")+")",manipulator:s("EEEEE").func});c.push({pattern:"e",regex:"(\\d?)",manipulator:h});c.push({pattern:"ee",regex:"(\\d\\d?)",manipulator:h});c.push({pattern:"eee",regex:"("+s("eee").data.join("|")+")",manipulator:s("eee").func});c.push({pattern:"eeee",regex:"("+s("eeee").data.join("|")+")",manipulator:s("eeee").func});c.push({pattern:"eeeee",regex:"("+s("eeeee").data.join("|")+")",manipulator:s("eeeee").func});c.push({pattern:"c",regex:"\\d?",manipulator:h});c.push({pattern:"ccc",
regex:"("+s("ccc").data.join("|")+")",manipulator:s("ccc").func});c.push({pattern:"cccc",regex:"("+s("cccc").data.join("|")+")",manipulator:s("cccc").func});c.push({pattern:"ccccc",regex:"("+s("ccccc").data.join("|")+")",manipulator:s("ccccc").func});c.push({pattern:"a",regex:"("+d+"|"+e+")",manipulator:function(b,c){var d=qx.locale.Date.getPmMarker(f).toString()||a.PM_MARKER;b.ispm=c==d}});c.push({pattern:"W",regex:"(\\d?)",field:"weekOfMonth"});c.push({pattern:"w",regex:"(\\d?)",field:"weekOfYear"});
c.push({pattern:"ww",regex:"(\\d\\d?)",field:"weekOfYear"});c.push({pattern:"HH",regex:"(\\d\\d?)",field:"hour"});c.push({pattern:"H",regex:"(\\d\\d?)",field:"hour"});c.push({pattern:"kk",regex:"(\\d\\d?)",manipulator:i});c.push({pattern:"k",regex:"(\\d\\d?)",manipulator:i});c.push({pattern:"KK",regex:"(\\d\\d?)",field:"hour"});c.push({pattern:"K",regex:"(\\d\\d?)",field:"hour"});c.push({pattern:"hh",regex:"(\\d\\d?)",manipulator:j});c.push({pattern:"h",regex:"(\\d\\d?)",manipulator:j});c.push({pattern:"mm",
regex:"(\\d\\d?)",field:"min"});c.push({pattern:"m",regex:"(\\d\\d?)",field:"min"});c.push({pattern:"ss",regex:"(\\d\\d?)",field:"sec"});c.push({pattern:"s",regex:"(\\d\\d?)",field:"sec"});c.push({pattern:"SSS",regex:"(\\d\\d?\\d?)",field:"ms"});c.push({pattern:"SS",regex:"(\\d\\d?\\d?)",field:"ms"});c.push({pattern:"S",regex:"(\\d\\d?\\d?)",field:"ms"});c.push({pattern:"Z",regex:"([\\+\\-]\\d\\d\\d\\d)",manipulator:k});c.push({pattern:"z",regex:"(GMT[\\+\\-]\\d\\d:\\d\\d)",manipulator:k})}}},destruct:function(){this.__mF!=
null&&qx.locale.Manager.getInstance().removeBinding(this.__mF);this.__mL=this.__mJ=this.__mK=null}})})();
(function(){qx.Class.define("qx.locale.Date",{statics:{__na:qx.locale.Manager.getInstance(),getAmMarker:function(a){return this.__na.localize("cldr_am",[],a)},getPmMarker:function(a){return this.__na.localize("cldr_pm",[],a)},getDayNames:function(a,b,c,d){c=c?c:"format";qx.core.Environment.get("qx.debug")&&(qx.core.Assert.assertInArray(a,["abbreviated","narrow","wide"]),qx.core.Assert.assertInArray(c,["format","stand-alone"]));for(var e="sun,mon,tue,wed,thu,fri,sat".split(","),f=[],g=0;g<e.length;g++){var h=
"cldr_day_"+c+"_"+a+"_"+e[g];f.push(d?this.__nb(c,c==="format"?"stand-alone":"format",h,b):this.__na.localize(h,[],b))}return f},getDayName:function(a,b,c,d,e){d=d?d:"format";qx.core.Environment.get("qx.debug")&&(qx.core.Assert.assertInArray(a,["abbreviated","narrow","wide"]),qx.core.Assert.assertInteger(b),qx.core.Assert.assertInRange(b,0,6),qx.core.Assert.assertInArray(d,["format","stand-alone"]));a="cldr_day_"+d+"_"+a+"_"+"sun,mon,tue,wed,thu,fri,sat".split(",")[b];return e?this.__nb(d,d==="format"?
"stand-alone":"format",a,c):this.__na.localize(a,[],c)},getMonthNames:function(a,b,c,d){c=c?c:"format";qx.core.Environment.get("qx.debug")&&(qx.core.Assert.assertInArray(a,["abbreviated","narrow","wide"]),qx.core.Assert.assertInArray(c,["format","stand-alone"]));for(var e=[],f=0;f<12;f++){var g="cldr_month_"+c+"_"+a+"_"+(f+1);e.push(d?this.__nb(c,c==="format"?"stand-alone":"format",g,b):this.__na.localize(g,[],b))}return e},getMonthName:function(a,b,c,d,e){d=d?d:"format";qx.core.Environment.get("qx.debug")&&
(qx.core.Assert.assertInArray(a,["abbreviated","narrow","wide"]),qx.core.Assert.assertInArray(d,["format","stand-alone"]));a="cldr_month_"+d+"_"+a+"_"+(b+1);return e?this.__nb(d,d==="format"?"stand-alone":"format",a,c):this.__na.localize(a,[],c)},getDateFormat:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertInArray(a,["short","medium","long","full"]);return this.__na.localize("cldr_date_format_"+a,[],b)},getDateTimeFormat:function(a,b,c){a="cldr_date_time_format_"+a;c=this.__na.localize(a,
[],c);c==a&&(c=b);return c},getTimeFormat:function(a,b){qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertInArray(a,["short","medium","long","full"]);var c="cldr_time_format_"+a,d=this.__na.localize(c,[],b);if(d!=c)return d;switch(a){case "short":case "medium":return qx.locale.Date.getDateTimeFormat("HHmm","HH:mm");case "long":return qx.locale.Date.getDateTimeFormat("HHmmss","HH:mm:ss");case "full":return qx.locale.Date.getDateTimeFormat("HHmmsszz","HH:mm:ss zz");default:throw Error("This case should never happen.");
}},getWeekStart:function(a){var b={MV:5,AE:6,AF:6,BH:6,DJ:6,DZ:6,EG:6,ER:6,ET:6,IQ:6,IR:6,JO:6,KE:6,KW:6,LB:6,LY:6,MA:6,OM:6,QA:6,SA:6,SD:6,SO:6,TN:6,YE:6,AS:0,AU:0,AZ:0,BW:0,CA:0,CN:0,FO:0,GE:0,GL:0,GU:0,HK:0,IE:0,IL:0,IS:0,JM:0,JP:0,KG:0,KR:0,LA:0,MH:0,MN:0,MO:0,MP:0,MT:0,NZ:0,PH:0,PK:0,SG:0,TH:0,TT:0,TW:0,UM:0,US:0,UZ:0,VI:0,ZA:0,ZW:0,MW:0,NG:0,TJ:0},a=qx.locale.Date._getTerritory(a);return b[a]!=null?b[a]:1},getWeekendStart:function(a){var b={EG:5,IL:5,SY:5,IN:0,AE:4,BH:4,DZ:4,IQ:4,JO:4,KW:4,
LB:4,LY:4,MA:4,OM:4,QA:4,SA:4,SD:4,TN:4,YE:4},a=qx.locale.Date._getTerritory(a);return b[a]!=null?b[a]:6},getWeekendEnd:function(a){var b={AE:5,BH:5,DZ:5,IQ:5,JO:5,KW:5,LB:5,LY:5,MA:5,OM:5,QA:5,SA:5,SD:5,TN:5,YE:5,AF:5,IR:5,EG:6,IL:6,SY:6},a=qx.locale.Date._getTerritory(a);return b[a]!=null?b[a]:0},isWeekend:function(a,b){var c=qx.locale.Date.getWeekendStart(b),d=qx.locale.Date.getWeekendEnd(b);return d>c?a>=c&&a<=d:a>=c||a<=d},_getTerritory:function(a){return(a?a.split("_")[1]||a:this.__na.getTerritory()||
this.__na.getLanguage()).toUpperCase()},__nb:function(a,b,c,d){var e=this.__na.localize(c,[],d);return e==c?this.__na.localize(c.replace("_"+a+"_","_"+b+"_"),[],d):e}}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Conditional",{extend:qx.ui.table.cellrenderer.Default,construct:function(a,b,c,d){qx.ui.table.cellrenderer.Default.call(this);this.numericAllowed="==,!=,>,<,>=,<=".split(",");this.betweenAllowed=["between","!between"];this.conditions=[];this.__nc=a||"";this.__nd=b||"";this.__ne=c||"";this.__nf=d||""},members:{__nc:null,__nd:null,__ne:null,__nf:null,__ng:function(a,b){a[1]!=null&&(b["text-align"]=a[1]);a[2]!=null&&(b.color=a[2]);a[3]!=null&&(b["font-style"]=
a[3]);a[4]!=null&&(b["font-weight"]=a[4])},addNumericCondition:function(a,b,c,d,e,f,g){var h=null;qx.lang.Array.contains(this.numericAllowed,a)&&b!=null&&(h=[a,c,d,e,f,b,g]);if(h!=null)this.conditions.push(h);else throw Error("Condition not recognized or value is null!");},addBetweenCondition:function(a,b,c,d,e,f,g,h){if(qx.lang.Array.contains(this.betweenAllowed,a)&&b!=null&&c!=null)var i=[a,d,e,f,g,b,c,h];if(i!=null)this.conditions.push(i);else throw Error("Condition not recognized or value1/value2 is null!");
},addRegex:function(a,b,c,d,e,f){if(a!=null)var g=["regex",b,c,d,e,a,f];if(g!=null)this.conditions.push(g);else throw Error("regex cannot be null!");},_getCellStyle:function(a){if(!this.conditions.length)return a.style||"";var b=a.table.getTableModel(),c,d,e,f={"text-align":this.__nc,color:this.__nd,"font-style":this.__ne,"font-weight":this.__nf};for(c in this.conditions){d=false;if(qx.lang.Array.contains(this.numericAllowed,this.conditions[c][0]))switch(e=this.conditions[c][6]==null?a.value:b.getValueById(this.conditions[c][6],
a.row),this.conditions[c][0]){case "==":e==this.conditions[c][5]&&(d=true);break;case "!=":e!=this.conditions[c][5]&&(d=true);break;case ">":e>this.conditions[c][5]&&(d=true);break;case "<":e<this.conditions[c][5]&&(d=true);break;case ">=":e>=this.conditions[c][5]&&(d=true);break;case "<=":e<=this.conditions[c][5]&&(d=true)}else if(qx.lang.Array.contains(this.betweenAllowed,this.conditions[c][0]))switch(e=this.conditions[c][7]==null?a.value:b.getValueById(this.conditions[c][7],a.row),this.conditions[c][0]){case "between":e>=
this.conditions[c][5]&&e<=this.conditions[c][6]&&(d=true);break;case "!between":if(e<this.conditions[c][5]||e>this.conditions[c][6])d=true}else this.conditions[c][0]=="regex"&&(e=this.conditions[c][6]==null?a.value:b.getValueById(this.conditions[c][6],a.row),d=RegExp(this.conditions[c][5],"g").test(e));d==true&&this.__ng(this.conditions[c],f)}var a=[],g;for(g in f)f[g]&&a.push(g,":",f[g],";");return a.join("")}},destruct:function(){this.numericAllowed=this.betweenAllowed=this.conditions=null}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Date",{extend:qx.ui.table.cellrenderer.Conditional,properties:{dateFormat:{check:"qx.util.format.DateFormat",init:null,nullable:true}},members:{_getContentHtml:function(a){var b=this.getDateFormat();return b?a.value?qx.bom.String.escape(b.format(a.value)):"":a.value||""},_getCellClass:function(){return"qooxdoo-table-cell"}}})})();
(function(){qx.Class.define("qx.bom.Cookie",{statics:{get:function(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length))return null;if(b==-1)return null;a=document.cookie.indexOf(";",c);if(a==-1)a=document.cookie.length;return unescape(document.cookie.substring(c,a))},set:function(a,b,c,d,e,f){a=[a,"=",escape(b)];c&&(b=new Date,b.setTime(b.getTime()),a.push(";expires=",(new Date(b.getTime()+c*864E5)).toGMTString()));d&&a.push(";path=",d);e&&a.push(";domain=",
e);f&&a.push(";secure");document.cookie=a.join("")},del:function(a,b,c){if(qx.bom.Cookie.get(a))a=[a,"="],b&&a.push(";path=",b),c&&a.push(";domain=",c),a.push(";expires=Thu, 01-Jan-1970 00:00:01 GMT"),document.cookie=a.join("")}}})})();
(function(){qx.Class.define("qx.ui.layout.VBox",{extend:qx.ui.layout.Abstract,construct:function(a,b,c){qx.ui.layout.Abstract.call(this);a&&this.setSpacing(a);b&&this.setAlignY(b);c&&this.setSeparator(c)},properties:{alignY:{check:["top","middle","bottom"],init:"top",apply:"_applyLayoutChange"},alignX:{check:["left","center","right"],init:"left",apply:"_applyLayoutChange"},spacing:{check:"Integer",init:0,apply:"_applyLayoutChange"},separator:{check:"Decorator",nullable:true,apply:"_applyLayoutChange"},
reversed:{check:"Boolean",init:false,apply:"_applyReversed"}},members:{__nh:null,__lS:null,__lT:null,__fp:null,_applyReversed:function(){this._invalidChildrenCache=true;this._applyLayoutChange()},__lU:function(){var a=this._getLayoutChildren(),b=a.length,c=false,d=this.__nh&&this.__nh.length!=b&&this.__lS&&this.__nh,e,f=d?this.__nh:Array(b),g=d?this.__lS:Array(b);this.getReversed()&&(a=a.concat().reverse());for(var h=0;h<b;h++)e=a[h].getLayoutProperties(),e.height!=null&&(f[h]=parseFloat(e.height)/
100),e.flex!=null?(g[h]=e.flex,c=true):g[h]=0;if(!d)this.__nh=f,this.__lS=g;this.__lT=c;this.__fp=a;delete this._invalidChildrenCache},verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b,c){this.assert(b==="flex"||b==="height","The property '"+b+"' is not supported by the VBox layout!");b=="height"?this.assertMatch(c,qx.ui.layout.Util.PERCENT_VALUE):(this.assertNumber(c),this.assert(c>=0))},"false":null}),renderLayout:function(a,b){this._invalidChildrenCache&&this.__lU();
var c=this.__fp,d=c.length,e=qx.ui.layout.Util,f=this.getSpacing(),g=this.getSeparator(),h=g?e.computeVerticalSeparatorGaps(c,f,g):e.computeVerticalGaps(c,f,true),i,j,k,l=[];j=h;for(i=0;i<d;i+=1)k=this.__nh[i],k=k!=null?Math.floor((b-h)*k):c[i].getSizeHint().height,l.push(k),j+=k;if(this.__lT&&j!=b){k={};for(i=0;i<d;i+=1)h=this.__lS[i],h>0&&(m=c[i].getSizeHint(),k[i]={min:m.minHeight,value:l[i],max:m.maxHeight,flex:h});h=e.computeFlexOffsets(k,b,j);for(i in h)k=h[i].offset,l[i]+=k,j+=k}h=c[0].getMarginTop();
j<b&&this.getAlignY()!="top"&&(h=b-j,this.getAlignY()==="middle"&&(h=Math.round(h/2)));var m,n,o,r;this._clearSeparators();if(g){i=qx.theme.manager.Decoration.getInstance().resolve(g).getInsets();var q=i.top+i.bottom}for(i=0;i<d;i+=1)j=c[i],k=l[i],m=j.getSizeHint(),n=j.getMarginLeft(),r=j.getMarginRight(),m=Math.max(m.minWidth,Math.min(a-n-r,m.maxWidth)),n=e.computeHorizontalAlignOffset(j.getAlignX()||this.getAlignX(),m,a,n,r),i>0&&(g?(h+=o+f,this._renderSeparator(g,{top:h,left:0,height:q,width:a}),
h+=q+f+j.getMarginTop()):h+=e.collapseMargins(f,o,j.getMarginTop())),j.renderLayout(n,h,m,k),h+=k,o=j.getMarginBottom()},_computeSizeHint:function(){this._invalidChildrenCache&&this.__lU();for(var a=qx.ui.layout.Util,b=this.__fp,c=0,d=0,e=0,f=0,g=0,h,i,j=0,k=b.length;j<k;j+=1){h=b[j];i=h.getSizeHint();d+=i.height;var l=this.__nh[j];this.__lS[j]?c+=i.minHeight:l?e=Math.max(e,Math.round(i.minHeight/l)):c+=i.height;h=h.getMarginLeft()+h.getMarginRight();i.width+h>g&&(g=i.width+h);i.minWidth+h>f&&(f=
i.minWidth+h)}c+=e;e=this.getSpacing();a=(i=this.getSeparator())?a.computeVerticalSeparatorGaps(b,e,i):a.computeVerticalGaps(b,e,true);return{minHeight:c+a,height:d+a,minWidth:f,width:g}}},destruct:function(){this.__nh=this.__lS=this.__fp=null}})})();
(function(){qx.Mixin.define("qx.ui.core.MRemoteChildrenHandling",{members:{__ni:function(a,b,c,d){var e=this.getChildrenContainer();e===this&&(a="_"+a);return e[a](b,c,d)},getChildren:function(){return this.__ni("getChildren")},hasChildren:function(){return this.__ni("hasChildren")},add:function(a,b){return this.__ni("add",a,b)},remove:function(a){return this.__ni("remove",a)},removeAll:function(){return this.__ni("removeAll")},indexOf:function(a){return this.__ni("indexOf",a)},addAt:function(a,b,
c){this.__ni("addAt",a,b,c)},addBefore:function(a,b,c){this.__ni("addBefore",a,b,c)},addAfter:function(a,b,c){this.__ni("addAfter",a,b,c)},removeAt:function(a){return this.__ni("removeAt",a)}}})})();(function(){qx.Mixin.define("qx.ui.core.MRemoteLayoutHandling",{members:{setLayout:function(a){return this.getChildrenContainer().setLayout(a)},getLayout:function(){return this.getChildrenContainer().getLayout()}}})})();
(function(){qx.Mixin.define("qx.ui.form.MForm",{construct:function(){qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().addListener("changeLocale",this.__nj,this)},properties:{valid:{check:"Boolean",init:true,apply:"_applyValid",event:"changeValid"},required:{check:"Boolean",init:false,event:"changeRequired"},invalidMessage:{check:"String",init:"",event:"changeInvalidMessage"},requiredInvalidMessage:{check:"String",nullable:true,event:"changeInvalidMessage"}},members:{_applyValid:function(a){a?
this.removeState("invalid"):this.addState("invalid")},__nj:qx.core.Environment.select("qx.dynlocale",{"true":function(){var a=this.getInvalidMessage();a&&a.translate&&this.setInvalidMessage(a.translate());(a=this.getRequiredInvalidMessage())&&a.translate&&this.setRequiredInvalidMessage(a.translate())},"false":null})},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().removeListener("changeLocale",this.__nj,this)}})})();
(function(){qx.Mixin.define("qx.ui.core.MContentPadding",{properties:{contentPaddingTop:{check:"Integer",init:0,apply:"_applyContentPadding",themeable:true},contentPaddingRight:{check:"Integer",init:0,apply:"_applyContentPadding",themeable:true},contentPaddingBottom:{check:"Integer",init:0,apply:"_applyContentPadding",themeable:true},contentPaddingLeft:{check:"Integer",init:0,apply:"_applyContentPadding",themeable:true},contentPadding:{group:["contentPaddingTop","contentPaddingRight","contentPaddingBottom",
"contentPaddingLeft"],mode:"shorthand",themeable:true}},members:{__nk:{contentPaddingTop:"setPaddingTop",contentPaddingRight:"setPaddingRight",contentPaddingBottom:"setPaddingBottom",contentPaddingLeft:"setPaddingLeft"},__nl:{contentPaddingTop:"resetPaddingTop",contentPaddingRight:"resetPaddingRight",contentPaddingBottom:"resetPaddingBottom",contentPaddingLeft:"resetPaddingLeft"},_applyContentPadding:function(a,b,c){b=this._getContentPaddingTarget();if(a==null)b[this.__nl[c]]();else b[this.__nk[c]](a)}}})})();
(function(){qx.Class.define("qx.ui.groupbox.GroupBox",{extend:qx.ui.core.Widget,include:[qx.ui.core.MRemoteChildrenHandling,qx.ui.core.MRemoteLayoutHandling,qx.ui.core.MContentPadding,qx.ui.form.MForm],implement:[qx.ui.form.IForm],construct:function(a,b){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.Canvas);this._createChildControl("frame");this._createChildControl("legend");a!=null&&this.setLegend(a);b!=null&&this.setIcon(b)},properties:{appearance:{refine:true,init:"groupbox"},legendPosition:{check:["top",
"middle"],init:"middle",apply:"_applyLegendPosition",themeable:true}},members:{_forwardStates:{invalid:true},_createChildControlImpl:function(a){var b;switch(a){case "frame":b=new qx.ui.container.Composite;this._add(b,{left:0,top:6,right:0,bottom:0});break;case "legend":b=new qx.ui.basic.Atom,b.addListener("resize",this._repositionFrame,this),this._add(b,{left:0,right:0})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_getContentPaddingTarget:function(){return this.getChildControl("frame")},
_applyLegendPosition:function(){this.getChildControl("legend").getBounds()&&this._repositionFrame()},_repositionFrame:function(){var a=this.getChildControl("legend"),b=this.getChildControl("frame"),a=a.getBounds().height;this.getLegendPosition()=="middle"?b.setLayoutProperties({top:Math.round(a/2)}):this.getLegendPosition()=="top"&&b.setLayoutProperties({top:a})},getChildrenContainer:function(){return this.getChildControl("frame")},setLegend:function(a){var b=this.getChildControl("legend");a!==null?
(b.setLabel(a),b.show()):b.exclude()},getLegend:function(){return this.getChildControl("legend").getLabel()},setIcon:function(a){this.getChildControl("legend").setIcon(a)},getIcon:function(){this.getChildControl("legend").getIcon()}}})})();
(function(){qx.Class.define("qx.ui.form.AbstractField",{extend:qx.ui.core.Widget,implement:[qx.ui.form.IStringForm,qx.ui.form.IForm],include:[qx.ui.form.MForm],type:"abstract",construct:function(a){qx.ui.core.Widget.call(this);this.__nm=!qx.core.Environment.get("css.placeholder")||qx.core.Environment.get("engine.name")=="gecko"&&parseFloat(qx.core.Environment.get("engine.version"))>=2;a!=null&&this.setValue(a);this.getContentElement().addListener("change",this._onChangeContent,this);this.__nm&&this.addListener("syncAppearance",
this._syncPlaceholder,this);qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().addListener("changeLocale",this._onChangeLocale,this)},events:{input:"qx.event.type.Data",changeValue:"qx.event.type.Data"},properties:{textAlign:{check:["left","center","right"],nullable:true,themeable:true,apply:"_applyTextAlign"},readOnly:{check:"Boolean",apply:"_applyReadOnly",event:"changeReadOnly",init:false},selectable:{refine:true,init:true},focusable:{refine:true,init:true},maxLength:{check:"PositiveInteger",
init:Infinity},liveUpdate:{check:"Boolean",init:false},placeholder:{check:"String",nullable:true,apply:"_applyPlaceholder"},filter:{check:"RegExp",nullable:true,init:null}},members:{__nn:true,__no:null,__np:null,__nq:null,__nm:true,__jL:null,__jP:null,getFocusElement:function(){var a=this.getContentElement();if(a)return a},_createInputElement:function(){return new qx.html.Input("text")},renderLayout:function(a,b,c,d){var e=this._updateInsets;if(b=qx.ui.core.Widget.prototype.renderLayout.call(this,
a,b,c,d)){if((a=b.size||e)||b.local||b.margin)var f=this.getInsets(),g=c-f.left-f.right,h=d-f.top-f.bottom,g=g<0?0:g,h=h<0?0:h;c=this.getContentElement();e&&this.__nm&&this.__nt().setStyles({left:f.left+"px",top:f.top+"px"});a&&(this.__nm&&this.__nt().setStyles({width:g+"px",height:h+"px"}),c.setStyles({width:g+"px",height:h+"px"}),this._renderContentElement(h,c))}},_renderContentElement:function(){},_createContentElement:function(){var a=this._createInputElement();a.setStyles({border:"none",padding:0,
margin:0,display:"block",background:"transparent",outline:"none",appearance:"none",position:"absolute",autoComplete:"off"});a.setSelectable(this.getSelectable());a.setEnabled(this.getEnabled());a.addListener("input",this._onHtmlInput,this);a.setAttribute("spellcheck","false");a.setStyle("resize","none");qx.core.Environment.get("engine.name")=="mshtml"&&a.setStyles({backgroundImage:"url("+qx.util.ResourceManager.getInstance().toUri("qx/static/blank.gif")+")"});return a},_applyEnabled:function(a,b){qx.ui.core.Widget.prototype._applyEnabled.call(this,
a,b);this.getContentElement().setEnabled(a);this.__nm?a?this._showPlaceholder():this._removePlaceholder():this.getContentElement().setAttribute("placeholder",a?this.getPlaceholder():"")},__nr:{width:16,height:16},_getContentHint:function(){return{width:this.__nr.width*10,height:this.__nr.height||16}},_applyFont:function(a,b){if(b&&this.__jL&&this.__jP)this.__jL.removeListenerById(this.__jP),this.__jP=null;var c;if(a){this.__jL=qx.theme.manager.Font.getInstance().resolve(a);if(this.__jL instanceof
qx.bom.webfonts.WebFont)this.__jP=this.__jL.addListener("changeStatus",this._onWebFontStatusChange,this);c=this.__jL.getStyles()}else c=qx.bom.Font.getDefaultStyles();this.getTextColor()!=null&&delete c.color;this.getContentElement().setStyles(c);this.__nm&&this.__nt().setStyles(c);a?this.__nr=qx.bom.Label.getTextSize("A",c):delete this.__nr;qx.ui.core.queue.Layout.add(this)},_applyTextColor:function(a){a?this.getContentElement().setStyle("color",qx.theme.manager.Color.getInstance().resolve(a)):this.getContentElement().removeStyle("color")},
tabFocus:function(){qx.ui.core.Widget.prototype.tabFocus.call(this);this.selectAllText()},_getTextSize:function(){return this.__nr},_onHtmlInput:function(a){var a=a.getData(),b=true;this.__nn=false;this.__nq&&this.__nq===a&&(b=false);if(this.getFilter()!=null){for(var c="",d=a.search(this.getFilter()),e=a;d>=0;)c+=e.charAt(d),e=e.substring(d+1,e.length),d=e.search(this.getFilter());c!=a&&(b=false,a=c,this.getContentElement().setValue(a))}a.length>this.getMaxLength()&&(b=false,this.getContentElement().setValue(a.substr(0,
this.getMaxLength())));if(b)this.fireDataEvent("input",a,this.__nq),this.__nq=a,this.getLiveUpdate()&&this.__ns(a)},_onWebFontStatusChange:function(a){if(a.getData().valid===true)a=this.__jL.getStyles(),this.__nr=qx.bom.Label.getTextSize("A",a),qx.ui.core.queue.Layout.add(this)},__ns:function(a){var b=this.__np;this.__np=a;b!=a&&this.fireNonBubblingEvent("changeValue",qx.event.type.Data,[a,b])},setValue:function(a){if(a===null){if(this.__nn)return a;a="";this.__nn=true}else this.__nn=false,this.__nm&&
this._removePlaceholder();if(qx.lang.Type.isString(a)){var b=this.getContentElement();a.length>this.getMaxLength()&&(a=a.substr(0,this.getMaxLength()));if(b.getValue()!=a){var c=b.getValue();b.setValue(a);b=this.__nn?null:a;this.__np=c;this.__ns(b)}this.__nm&&this._showPlaceholder();return a}throw Error("Invalid value type: "+a);},getValue:function(){var a=this.getContentElement().getValue();return this.__nn?null:a},resetValue:function(){this.setValue(null)},_onChangeContent:function(a){this.__nn=
a.getData()===null;this.__ns(a.getData())},getTextSelection:function(){return this.getContentElement().getTextSelection()},getTextSelectionLength:function(){return this.getContentElement().getTextSelectionLength()},getTextSelectionStart:function(){return this.getContentElement().getTextSelectionStart()},getTextSelectionEnd:function(){return this.getContentElement().getTextSelectionEnd()},setTextSelection:function(a,b){this.getContentElement().setTextSelection(a,b)},clearTextSelection:function(){this.getContentElement().clearTextSelection()},
selectAllText:function(){this.setTextSelection(0)},_showPlaceholder:function(){var a=this.getValue()||"";this.getPlaceholder()!=null&&a==""&&!this.hasState("focused")&&!this.hasState("disabled")&&(this.hasState("showingPlaceholder")?this._syncPlaceholder():this.addState("showingPlaceholder"))},_removePlaceholder:function(){this.hasState("showingPlaceholder")&&(this.__nt().setStyle("visibility","hidden"),this.removeState("showingPlaceholder"))},_syncPlaceholder:function(){this.hasState("showingPlaceholder")&&
this.__nt().setStyle("visibility","visible")},__nt:function(){if(this.__no==null)this.__no=new qx.html.Label,this.__no.setStyles({visibility:"hidden",zIndex:6,position:"absolute",color:qx.theme.manager.Color.getInstance().resolve("text-placeholder")}),this.getContainerElement().add(this.__no);return this.__no},_onChangeLocale:qx.core.Environment.select("qx.dynlocale",{"true":function(){var a=this.getPlaceholder();a&&a.translate&&this.setPlaceholder(a.translate())},"false":null}),_applyPlaceholder:function(a){this.__nm?
(this.__nt().setValue(a),a!=null?(this.addListener("focusin",this._removePlaceholder,this),this.addListener("focusout",this._showPlaceholder,this),this._showPlaceholder()):(this.removeListener("focusin",this._removePlaceholder,this),this.removeListener("focusout",this._showPlaceholder,this),this._removePlaceholder())):this.getEnabled()&&this.getContentElement().setAttribute("placeholder",a)},_applyTextAlign:function(a){this.getContentElement().setStyle("textAlign",a)},_applyReadOnly:function(a){this.getContentElement().setAttribute("readOnly",
a);a?(this.addState("readonly"),this.setFocusable(false)):(this.removeState("readonly"),this.setFocusable(true))}},destruct:function(){this.__no=this.__jL=null;qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this);this.__jL&&this.__jP&&this.__jL.removeListenerById(this.__jP)}})})();
(function(){qx.Class.define("qx.html.Input",{extend:qx.html.Element,construct:function(a,b,c){qx.html.Element.call(this,a==="select"||a==="textarea"?a:"input",b,c);this.__nu=a},members:{__nu:null,__nv:null,__nw:null,_createDomElement:function(){return qx.bom.Input.create(this.__nu)},_applyProperty:function(a,b){qx.html.Element.prototype._applyProperty.call(this,a,b);var c=this.getDomElement();a==="value"?qx.bom.Input.setValue(c,b):a==="wrap"&&(qx.bom.Input.setWrap(c,b),this.setStyle("overflow",c.style.overflow,
true),this.setStyle("overflowX",c.style.overflowX,true),this.setStyle("overflowY",c.style.overflowY,true))},setEnabled:qx.core.Environment.select("engine.name",{webkit:function(a){(this.__nw=a)?this.setStyles({userModify:null,userSelect:this.__nv?null:"none"}):this.setStyles({userModify:"read-only",userSelect:"none"})},"default":function(a){this.setAttribute("disabled",a===false)}}),setSelectable:qx.core.Environment.select("engine.name",{webkit:function(a){this.__nv=a;qx.html.Element.prototype.setSelectable.call(this,
this.__nw&&a)},"default":function(a){qx.html.Element.prototype.setSelectable.call(this,a)}}),setValue:function(a){var b=this.getDomElement();b?b.value!=a&&qx.bom.Input.setValue(b,a):this._setProperty("value",a);return this},getValue:function(){var a=this.getDomElement();return a?qx.bom.Input.getValue(a):this._getProperty("value")||""},setWrap:function(a,b){if(this.__nu==="textarea")this._setProperty("wrap",a,b);else throw Error("Text wrapping is only support by textareas!");return this},getWrap:function(){if(this.__nu===
"textarea")return this._getProperty("wrap");else throw Error("Text wrapping is only support by textareas!");}}})})();
(function(){qx.Class.define("qx.event.handler.Input",{extend:qx.core.Object,implement:qx.event.IEventHandler,construct:function(){qx.core.Object.call(this);this._onChangeCheckedWrapper=qx.lang.Function.listener(this._onChangeChecked,this);this._onChangeValueWrapper=qx.lang.Function.listener(this._onChangeValue,this);this._onInputWrapper=qx.lang.Function.listener(this._onInput,this);this._onPropertyWrapper=qx.lang.Function.listener(this._onProperty,this);if(qx.core.Environment.get("engine.name")==
"opera")this._onKeyDownWrapper=qx.lang.Function.listener(this._onKeyDown,this),this._onKeyUpWrapper=qx.lang.Function.listener(this._onKeyUp,this),this._onBlurWrapper=qx.lang.Function.listener(this._onBlur,this)},statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,SUPPORTED_TYPES:{input:1,change:1},TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,IGNORE_CAN_HANDLE:false},members:{__nx:false,__ny:null,__np:null,__nq:null,canHandleEvent:function(a,b){var c=a.tagName.toLowerCase();return b==="input"&&
(c==="input"||c==="textarea")?true:b==="change"&&(c==="input"||c==="textarea"||c==="select")?true:false},registerEvent:function(a,b){if(qx.core.Environment.get("engine.name")=="mshtml"&&(qx.core.Environment.get("engine.version")<9||qx.core.Environment.get("engine.version")>=9&&qx.core.Environment.get("browser.documentmode")<9)){if(!a.__nz){var c=a.tagName.toLowerCase(),d=a.type;(d==="text"||d==="password"||c==="textarea"||d==="checkbox"||d==="radio")&&qx.bom.Event.addNativeListener(a,"propertychange",
this._onPropertyWrapper);d!=="checkbox"&&d!=="radio"&&qx.bom.Event.addNativeListener(a,"change",this._onChangeValueWrapper);if(d==="text"||d==="password")this._onKeyPressWrapped=qx.lang.Function.listener(this._onKeyPress,this,a),qx.bom.Event.addNativeListener(a,"keypress",this._onKeyPressWrapped);a.__nz=true}}else if(b==="input")this.__nA(a);else if(b==="change"&&(a.type==="radio"||a.type==="checkbox"?qx.bom.Event.addNativeListener(a,"change",this._onChangeCheckedWrapper):qx.bom.Event.addNativeListener(a,
"change",this._onChangeValueWrapper),qx.core.Environment.get("engine.name")=="opera"||qx.core.Environment.get("engine.name")=="mshtml"))if(a.type==="text"||a.type==="password")this._onKeyPressWrapped=qx.lang.Function.listener(this._onKeyPress,this,a),qx.bom.Event.addNativeListener(a,"keypress",this._onKeyPressWrapped)},__nA:qx.core.Environment.select("engine.name",{mshtml:function(a){if(qx.core.Environment.get("engine.version")>=9&&qx.core.Environment.get("browser.documentmode")>=9&&(qx.bom.Event.addNativeListener(a,
"input",this._onInputWrapper),a.type==="text"||a.type==="password"||a.type==="textarea"))this._inputFixWrapper=qx.lang.Function.listener(this._inputFix,this,a),qx.bom.Event.addNativeListener(a,"keyup",this._inputFixWrapper)},webkit:function(a){var b=a.tagName.toLowerCase();parseFloat(qx.core.Environment.get("engine.version"))<532&&b=="textarea"&&qx.bom.Event.addNativeListener(a,"keypress",this._onInputWrapper);qx.bom.Event.addNativeListener(a,"input",this._onInputWrapper)},opera:function(a){qx.bom.Event.addNativeListener(a,
"keyup",this._onKeyUpWrapper);qx.bom.Event.addNativeListener(a,"keydown",this._onKeyDownWrapper);qx.bom.Event.addNativeListener(a,"blur",this._onBlurWrapper);qx.bom.Event.addNativeListener(a,"input",this._onInputWrapper)},"default":function(a){qx.bom.Event.addNativeListener(a,"input",this._onInputWrapper)}}),unregisterEvent:function(a,b){if(qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("engine.version")<9&&qx.core.Environment.get("browser.documentmode")<9){if(a.__nz){var c=
a.tagName.toLowerCase(),d=a.type;(d==="text"||d==="password"||c==="textarea"||d==="checkbox"||d==="radio")&&qx.bom.Event.removeNativeListener(a,"propertychange",this._onPropertyWrapper);d!=="checkbox"&&d!=="radio"&&qx.bom.Event.removeNativeListener(a,"change",this._onChangeValueWrapper);(d==="text"||d==="password")&&qx.bom.Event.removeNativeListener(a,"keypress",this._onKeyPressWrapped);try{delete a.__nz}catch(e){a.__nz=null}}}else if(b==="input"?this.__nB(a):b==="change"&&(a.type==="radio"||a.type===
"checkbox"?qx.bom.Event.removeNativeListener(a,"change",this._onChangeCheckedWrapper):qx.bom.Event.removeNativeListener(a,"change",this._onChangeValueWrapper)),qx.core.Environment.get("engine.name")=="opera"||qx.core.Environment.get("engine.name")=="mshtml")(a.type==="text"||a.type==="password")&&qx.bom.Event.removeNativeListener(a,"keypress",this._onKeyPressWrapped)},__nB:qx.core.Environment.select("engine.name",{mshtml:function(a){qx.core.Environment.get("engine.version")>=9&&qx.core.Environment.get("browser.documentmode")>=
9&&(qx.bom.Event.removeNativeListener(a,"input",this._onInputWrapper),(a.type==="text"||a.type==="password"||a.type==="textarea")&&qx.bom.Event.removeNativeListener(a,"keyup",this._inputFixWrapper))},webkit:function(a){var b=a.tagName.toLowerCase();parseFloat(qx.core.Environment.get("engine.version"))<532&&b=="textarea"&&qx.bom.Event.removeNativeListener(a,"keypress",this._onInputWrapper);qx.bom.Event.removeNativeListener(a,"input",this._onInputWrapper)},opera:function(a){qx.bom.Event.removeNativeListener(a,
"keyup",this._onKeyUpWrapper);qx.bom.Event.removeNativeListener(a,"keydown",this._onKeyDownWrapper);qx.bom.Event.removeNativeListener(a,"blur",this._onBlurWrapper);qx.bom.Event.removeNativeListener(a,"input",this._onInputWrapper)},"default":function(a){qx.bom.Event.removeNativeListener(a,"input",this._onInputWrapper)}}),_onKeyPress:qx.core.Environment.select("engine.name",{"mshtml|opera":function(a,b){if(a.keyCode===13&&b.value!==this.__np)this.__np=b.value,qx.event.Registration.fireEvent(b,"change",
qx.event.type.Data,[b.value])},"default":null}),_inputFix:qx.core.Environment.select("engine.name",{mshtml:function(a,b){if((a.keyCode===46||a.keyCode===8)&&b.value!==this.__nq)this.__nq=b.value,qx.event.Registration.fireEvent(b,"input",qx.event.type.Data,[b.value])},"default":null}),_onKeyDown:qx.core.Environment.select("engine.name",{opera:function(a){if(a.keyCode===13)this.__nx=true},"default":null}),_onKeyUp:qx.core.Environment.select("engine.name",{opera:function(a){if(a.keyCode===13)this.__nx=
false},"default":null}),_onBlur:qx.core.Environment.select("engine.name",{opera:function(){this.__ny&&qx.core.Environment.get("browser.version")<10.6&&window.clearTimeout(this.__ny)},"default":null}),_onInput:qx.event.GlobalError.observeMethod(function(a){var b=qx.bom.Event.getTarget(a),a=b.tagName.toLowerCase();if(!this.__nx||a!=="input")qx.core.Environment.get("engine.name")=="opera"&&qx.core.Environment.get("browser.version")<10.6?this.__ny=window.setTimeout(function(){qx.event.Registration.fireEvent(b,
"input",qx.event.type.Data,[b.value])},0):qx.event.Registration.fireEvent(b,"input",qx.event.type.Data,[b.value])}),_onChangeValue:qx.event.GlobalError.observeMethod(function(a){var a=qx.bom.Event.getTarget(a),b=a.value;if(a.type==="select-multiple")for(var b=[],c=0,d=a.options,e=d.length;c<e;c++)d[c].selected&&b.push(d[c].value);qx.event.Registration.fireEvent(a,"change",qx.event.type.Data,[b])}),_onChangeChecked:qx.event.GlobalError.observeMethod(function(a){a=qx.bom.Event.getTarget(a);a.type===
"radio"?a.checked&&qx.event.Registration.fireEvent(a,"change",qx.event.type.Data,[a.value]):qx.event.Registration.fireEvent(a,"change",qx.event.type.Data,[a.checked])}),_onProperty:qx.core.Environment.select("engine.name",{mshtml:qx.event.GlobalError.observeMethod(function(a){var b=qx.bom.Event.getTarget(a),a=a.propertyName;a==="value"&&(b.type==="text"||b.type==="password"||b.tagName.toLowerCase()==="textarea")?b.$$inValueSet||qx.event.Registration.fireEvent(b,"input",qx.event.type.Data,[b.value]):
a==="checked"&&(b.type==="checkbox"?qx.event.Registration.fireEvent(b,"change",qx.event.type.Data,[b.checked]):b.checked&&qx.event.Registration.fireEvent(b,"change",qx.event.type.Data,[b.value]))}),"default":function(){}})},defer:function(a){qx.event.Registration.addHandler(a)}})})();
(function(){qx.Class.define("qx.bom.Input",{statics:{__hf:{text:1,textarea:1,select:1,checkbox:1,radio:1,password:1,hidden:1,submit:1,image:1,file:1,search:1,reset:1,button:1},create:function(a,b,c){qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertKeyInMap(a,this.__hf,"Unsupported input type.");var b=b?qx.lang.Object.clone(b):{},d;a==="textarea"||a==="select"?d=a:(d="input",b.type=a);return qx.bom.Element.create(d,b,c)},setValue:function(a,b){var c=a.nodeName.toLowerCase(),d=a.type,e=qx.lang.Array,
f=qx.lang.Type;typeof b==="number"&&(b+="");if(d==="checkbox"||d==="radio")a.checked=f.isArray(b)?e.contains(b,a.value):a.value==b;else if(c==="select"){for(var c=f.isArray(b),d=a.options,g,h=0,i=d.length;h<i;h++){f=d[h];g=f.getAttribute("value");if(g==null)g=f.text;f.selected=c?e.contains(b,g):b==g}if(c&&b.length==0)a.selectedIndex=-1}else(d==="text"||d==="textarea")&&qx.core.Environment.get("engine.name")=="mshtml"?(a.$$inValueSet=true,a.value=b,a.$$inValueSet=null):a.value=b},getValue:function(a){var b=
a.nodeName.toLowerCase();if(b==="option")return(a.attributes.value||{}).specified?a.value:a.text;if(b==="select"){var c=a.selectedIndex;if(c<0)return null;for(var b=[],d=a.options,a=a.type=="select-one",e=qx.bom.Input,f,g=a?c:0,c=a?c+1:d.length;g<c;g++)if(f=d[g],f.selected){f=e.getValue(f);if(a)return f;b.push(f)}return b}else return(a.value||"").replace(/\r/g,"")},setWrap:qx.core.Environment.select("engine.name",{mshtml:function(a,b){var c;a.wrap=b?"soft":"off";a.style.overflowY=b?"auto":""},"gecko|webkit":function(a,
b){var c=b?"":"auto";a.setAttribute("wrap",b?"soft":"off");a.style.overflow=c},"default":function(a,b){a.style.whiteSpace=b?"normal":"nowrap"}})}})})();
(function(){qx.Class.define("qx.ui.form.TextField",{extend:qx.ui.form.AbstractField,properties:{appearance:{refine:true,init:"textfield"},allowGrowY:{refine:true,init:false},allowShrinkY:{refine:true,init:false}},members:{_renderContentElement:function(a,b){qx.core.Environment.get("engine.name")=="mshtml"&&(parseInt(qx.core.Environment.get("engine.version"),10)<9||qx.core.Environment.get("browser.documentmode")<9)&&b.setStyles({"line-height":a+"px"})}}})})();
(function(){qx.Class.define("qx.ui.form.AbstractSelectBox",{extend:qx.ui.core.Widget,include:[qx.ui.core.MRemoteChildrenHandling,qx.ui.form.MForm],implement:[qx.ui.form.IForm],type:"abstract",construct:function(){qx.ui.core.Widget.call(this);var a=new qx.ui.layout.HBox;this._setLayout(a);a.setAlignY("middle");this.addListener("keypress",this._onKeyPress);this.addListener("blur",this._onBlur,this);qx.core.Init.getApplication().getRoot().addListener("mousewheel",this._onMousewheel,this,true);this.addListener("resize",
this._onResize,this)},properties:{focusable:{refine:true,init:true},width:{refine:true,init:120},maxListHeight:{check:"Number",apply:"_applyMaxListHeight",nullable:true,init:200},format:{check:"Function",init:function(a){return this._defaultFormat(a)},nullable:true}},members:{_createChildControlImpl:function(a){var b;switch(a){case "list":b=(new qx.ui.form.List).set({focusable:false,keepFocus:true,height:null,width:null,maxHeight:this.getMaxListHeight(),selectionMode:"one",quickSelection:true});b.addListener("changeSelection",
this._onListChangeSelection,this);b.addListener("mousedown",this._onListMouseDown,this);break;case "popup":b=new qx.ui.popup.Popup(new qx.ui.layout.VBox),b.setAutoHide(false),b.setKeepActive(true),b.addListener("mouseup",this.close,this),b.add(this.getChildControl("list")),b.addListener("changeVisibility",this._onPopupChangeVisibility,this)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_applyMaxListHeight:function(a){this.getChildControl("list").setMaxHeight(a)},getChildrenContainer:function(){return this.getChildControl("list")},
open:function(){var a=this.getChildControl("popup");a.placeToWidget(this,true);a.show()},close:function(){this.getChildControl("popup").hide()},toggle:function(){this.getChildControl("popup").isVisible()?this.close():this.open()},_defaultFormat:function(a){var b=a?a.getLabel():"";a&&a.getRich()&&(b=b.replace(/<[^>]+?>/g,""),b=qx.bom.String.unescape(b));return b},_onBlur:function(){this.close()},_onKeyPress:function(a){var b=a.getKeyIdentifier(),c=this.getChildControl("popup");c.isHidden()&&(b=="PageDown"||
b=="PageUp")?a.stopPropagation():!c.isHidden()&&b=="Escape"?(this.close(),a.stop()):this.getChildControl("list").handleKeyPress(a)},_onMousewheel:function(a){var b=a.getTarget(),c=this.getChildControl("popup",true);c!=null&&(qx.ui.core.Widget.contains(c,b)?a.preventDefault():this.close())},_onResize:function(a){this.getChildControl("popup").setMinWidth(a.getData().width)},_onListChangeSelection:function(){throw Error("Abstract method: _onListChangeSelection()");},_onListMouseDown:function(){throw Error("Abstract method: _onListMouseDown()");
},_onPopupChangeVisibility:function(a){a.getData()=="visible"?this.addState("popupOpen"):this.removeState("popupOpen")}},destruct:function(){var a=qx.core.Init.getApplication().getRoot();a&&a.removeListener("mousewheel",this._onMousewheel,this,true)}})})();
(function(){qx.Class.define("qx.ui.core.selection.Abstract",{type:"abstract",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__eW={}},events:{changeSelection:"qx.event.type.Data"},properties:{mode:{check:["single","multi","additive","one"],init:"single",apply:"_applyMode"},drag:{check:"Boolean",init:false},quick:{check:"Boolean",init:false}},members:{__ox:0,__oy:0,__oz:null,__oA:null,__oB:null,__oC:null,__oD:null,__oE:null,__oF:null,__oG:null,__oH:null,__oI:null,__oJ:null,
__oK:null,__oL:null,__oM:null,__oN:null,__eW:null,__oO:null,__oP:null,_userInteraction:false,__oQ:null,getSelectionContext:function(){return this.__oM},selectAll:function(){var a=this.getMode();if(a=="single"||a=="one")throw Error("Can not select all items in selection mode: "+a);this._selectAllItems();this._fireChange()},selectItem:function(a){this._setSelectedItem(a);var b=this.getMode();b!=="single"&&b!=="one"&&(this._setLeadItem(a),this._setAnchorItem(a));this._scrollItemIntoView(a);this._fireChange()},
addItem:function(a){var b=this.getMode();b==="single"||b==="one"?this._setSelectedItem(a):(this._getAnchorItem()==null&&this._setAnchorItem(a),this._setLeadItem(a),this._addToSelection(a));this._scrollItemIntoView(a);this._fireChange()},removeItem:function(a){this._removeFromSelection(a);this.getMode()==="one"&&this.isSelectionEmpty()&&this._applyDefaultSelection()==a||(this.getLeadItem()==a&&this._setLeadItem(null),this._getAnchorItem()==a&&this._setAnchorItem(null),this._fireChange())},selectItemRange:function(a,
b){var c=this.getMode();if(c=="single"||c=="one")throw Error("Can not select multiple items in selection mode: "+c);this._selectItemRange(a,b);this._setAnchorItem(a);this._setLeadItem(b);this._scrollItemIntoView(b);this._fireChange()},clearSelection:function(){this.getMode()=="one"&&this._applyDefaultSelection(true)!=null||(this._clearSelection(),this._setLeadItem(null),this._setAnchorItem(null),this._fireChange())},replaceSelection:function(a){var b=this.getMode();if(b=="one"||b==="single"){if(a.length>
1)throw Error("Could not select more than one items in mode: "+b+"!");a.length==1?this.selectItem(a[0]):this.clearSelection()}else this._replaceMultiSelection(a)},getSelectedItem:function(){var a=this.getMode();if(a==="single"||a==="one")return a=this._getSelectedItem(),a!=void 0?a:null;throw Error("The method getSelectedItem() is only supported in 'single' and 'one' selection mode!");},getSelection:function(){return qx.lang.Object.getValues(this.__eW)},getSortedSelection:function(){var a=this.getSelectables(),
b=qx.lang.Object.getValues(this.__eW);b.sort(function(b,d){return a.indexOf(b)-a.indexOf(d)});return b},isItemSelected:function(a){return this.__eW[this._selectableToHashCode(a)]!==void 0},isSelectionEmpty:function(){return qx.lang.Object.isEmpty(this.__eW)},invertSelection:function(){var a=this.getMode();if(a==="single"||a==="one")throw Error("The method invertSelection() is only supported in 'multi' and 'additive' selection mode!");for(var a=this.getSelectables(),b=0;b<a.length;b++)this._toggleInSelection(a[b]);
this._fireChange()},_setLeadItem:function(a){var b=this.__oN;b!==null&&this._styleSelectable(b,"lead",false);a!==null&&this._styleSelectable(a,"lead",true);this.__oN=a},getLeadItem:function(){return this.__oN!==null?this.__oN:null},_setAnchorItem:function(a){var b=this.__oO;b!=null&&this._styleSelectable(b,"anchor",false);a!=null&&this._styleSelectable(a,"anchor",true);this.__oO=a},_getAnchorItem:function(){return this.__oO!==null?this.__oO:null},_isSelectable:function(){throw Error("Abstract method call: _isSelectable()");
},_getSelectableFromMouseEvent:function(a){return(a=a.getTarget())&&this._isSelectable(a)?a:null},_selectableToHashCode:function(){throw Error("Abstract method call: _selectableToHashCode()");},_styleSelectable:function(){throw Error("Abstract method call: _styleSelectable()");},_capture:function(){throw Error("Abstract method call: _capture()");},_releaseCapture:function(){throw Error("Abstract method call: _releaseCapture()");},_getLocation:function(){throw Error("Abstract method call: _getLocation()");
},_getDimension:function(){throw Error("Abstract method call: _getDimension()");},_getSelectableLocationX:function(){throw Error("Abstract method call: _getSelectableLocationX()");},_getSelectableLocationY:function(){throw Error("Abstract method call: _getSelectableLocationY()");},_getScroll:function(){throw Error("Abstract method call: _getScroll()");},_scrollBy:function(){throw Error("Abstract method call: _scrollBy()");},_scrollItemIntoView:function(){throw Error("Abstract method call: _scrollItemIntoView()");
},getSelectables:function(){throw Error("Abstract method call: getSelectables()");},_getSelectableRange:function(){throw Error("Abstract method call: _getSelectableRange()");},_getFirstSelectable:function(){throw Error("Abstract method call: _getFirstSelectable()");},_getLastSelectable:function(){throw Error("Abstract method call: _getLastSelectable()");},_getRelatedSelectable:function(){throw Error("Abstract method call: _getRelatedSelectable()");},_getPage:function(){throw Error("Abstract method call: _getPage()");
},_applyMode:function(a){this._setLeadItem(null);this._setAnchorItem(null);this._clearSelection();a==="one"&&this._applyDefaultSelection(true);this._fireChange()},handleMouseOver:function(a){if(this.__oQ!=null&&this.__oQ!=this._getScroll().top)this.__oQ=null;else{this._userInteraction=true;if(this.getQuick()){var b=this.getMode();b!=="one"&&b!=="single"||(a=this._getSelectableFromMouseEvent(a),a!==null&&(this._setSelectedItem(a),this._fireChange("quick")))}this._userInteraction=false}},handleMouseDown:function(a){this._userInteraction=
true;var b=this._getSelectableFromMouseEvent(a);if(b!==null){var c=a.isCtrlPressed()||qx.core.Environment.get("os.name")=="osx"&&a.isMetaPressed(),d=a.isShiftPressed();if(this.isItemSelected(b)&&!d&&!c&&!this.getDrag())this.__oP=b;else{this.__oP=null;this._scrollItemIntoView(b);switch(this.getMode()){case "single":case "one":this._setSelectedItem(b);break;case "additive":this._setLeadItem(b);this._setAnchorItem(b);this._toggleInSelection(b);break;case "multi":if(this._setLeadItem(b),d){var e=this._getAnchorItem();
e===null&&(e=this._getFirstSelectable(),this._setAnchorItem(e));this._selectItemRange(e,b,c)}else c?(this._setAnchorItem(b),this._toggleInSelection(b)):(this._setAnchorItem(b),this._setSelectedItem(b))}b=this.getMode();if(this.getDrag()&&b!=="single"&&b!=="one"&&!d&&!c)this.__oD=this._getLocation(),this.__oA=this._getScroll(),this.__oE=a.getDocumentLeft()+this.__oA.left,this.__oF=a.getDocumentTop()+this.__oA.top,this.__oG=true,this._capture();this._fireChange("click")}}this._userInteraction=false},
handleMouseUp:function(a){this._userInteraction=true;var b=a.isCtrlPressed()||qx.core.Environment.get("os.name")=="osx"&&a.isMetaPressed(),c=a.isShiftPressed();if(!b&&!c&&this.__oP!=null){a=this._getSelectableFromMouseEvent(a);if(a===null||!this.isItemSelected(a)){this._userInteraction=false;return}this.getMode()==="additive"?this._removeFromSelection(a):(this._setSelectedItem(a),this.getMode()==="multi"&&(this._setLeadItem(a),this._setAnchorItem(a)));this._userInteraction=false}this._cleanup()},
handleLoseCapture:function(){this._cleanup()},handleMouseMove:function(a){if(this.__oG){this.__oH=a.getDocumentLeft();this.__oI=a.getDocumentTop();this._userInteraction=true;var b=this.__oH+this.__oA.left;this.__oJ=b>this.__oE?1:b<this.__oE?-1:0;b=this.__oI+this.__oA.top;this.__oK=b>this.__oF?1:b<this.__oF?-1:0;b=this.__oD;this.__ox=this.__oH<b.left?this.__oH-b.left:this.__oH>b.right?this.__oH-b.right:0;this.__oy=this.__oI<b.top?this.__oI-b.top:this.__oI>b.bottom?this.__oI-b.bottom:0;if(!this.__oz)this.__oz=
new qx.event.Timer(100),this.__oz.addListener("interval",this._onInterval,this);this.__oz.start();this._autoSelect();a.stopPropagation();this._userInteraction=false}},handleAddItem:function(a){a=a.getData();this.getMode()==="one"&&this.isSelectionEmpty()&&this.addItem(a)},handleRemoveItem:function(a){this.removeItem(a.getData())},_cleanup:function(){if(this.getDrag()||!this.__oG)this.__oL&&this._fireChange("click"),delete this.__oG,delete this.__oB,delete this.__oC,this._releaseCapture(),this.__oz&&
this.__oz.stop()},_onInterval:function(){this._scrollBy(this.__ox,this.__oy);this.__oA=this._getScroll();this._autoSelect()},_autoSelect:function(){var a=this._getDimension(),b=Math.max(0,Math.min(this.__oH-this.__oD.left,a.width))+this.__oA.left,c=Math.max(0,Math.min(this.__oI-this.__oD.top,a.height))+this.__oA.top;if(!(this.__oB===b&&this.__oC===c)){this.__oB=b;this.__oC=c;for(var d=a=this._getAnchorItem(),e=this.__oJ,f,g;e!==0;){f=e>0?this._getRelatedSelectable(d,"right"):this._getRelatedSelectable(d,
"left");if(f!==null&&(g=this._getSelectableLocationX(f),e>0&&g.left<=b||e<0&&g.right>=b)){d=f;continue}break}for(b=this.__oK;b!==0;){e=b>0?this._getRelatedSelectable(d,"under"):this._getRelatedSelectable(d,"above");if(e!==null&&(f=this._getSelectableLocationY(e),b>0&&f.top<=c||b<0&&f.bottom>=c)){d=e;continue}break}c=this.getMode();c==="multi"?this._selectItemRange(a,d):c==="additive"&&(this.isItemSelected(a)?this._selectItemRange(a,d,true):this._deselectItemRange(a,d),this._setAnchorItem(d));this._fireChange("drag")}},
__oR:{Home:1,Down:1,Right:1,PageDown:1,End:1,Up:1,Left:1,PageUp:1},handleKeyPress:function(a){this._userInteraction=true;var b,c,d=a.getKeyIdentifier(),e=this.getMode(),f=a.isCtrlPressed()||qx.core.Environment.get("os.name")=="osx"&&a.isMetaPressed(),g=a.isShiftPressed(),h=false;if(d==="A"&&f)e!=="single"&&e!=="one"&&(this._selectAllItems(),h=true);else if(d==="Escape")e!=="single"&&e!=="one"&&(this._clearSelection(),h=true);else if(d==="Space")c=this.getLeadItem(),c!=null&&!g&&(f||e==="additive"?
this._toggleInSelection(c):this._setSelectedItem(c),h=true);else if(this.__oR[d]){h=true;b=e==="single"||e=="one"?this._getSelectedItem():this.getLeadItem();if(b!==null)switch(d){case "Home":c=this._getFirstSelectable();break;case "End":c=this._getLastSelectable();break;case "Up":c=this._getRelatedSelectable(b,"above");break;case "Down":c=this._getRelatedSelectable(b,"under");break;case "Left":c=this._getRelatedSelectable(b,"left");break;case "Right":c=this._getRelatedSelectable(b,"right");break;
case "PageUp":c=this._getPage(b,true);break;case "PageDown":c=this._getPage(b,false)}else switch(d){case "Home":case "Down":case "Right":case "PageDown":c=this._getFirstSelectable();break;case "End":case "Up":case "Left":case "PageUp":c=this._getLastSelectable()}if(c!==null){switch(e){case "single":case "one":this._setSelectedItem(c);break;case "additive":this._setLeadItem(c);break;case "multi":g?(e=this._getAnchorItem(),e===null&&this._setAnchorItem(e=this._getFirstSelectable()),this._setLeadItem(c),
this._selectItemRange(e,c,f)):(this._setAnchorItem(c),this._setLeadItem(c),f||this._setSelectedItem(c))}this.__oQ=this._getScroll().top;this._scrollItemIntoView(c)}}h&&(a.stop(),this._fireChange("key"));this._userInteraction=false},_selectAllItems:function(){for(var a=this.getSelectables(),b=0,c=a.length;b<c;b++)this._addToSelection(a[b])},_clearSelection:function(){var a=this.__eW,b;for(b in a)this._removeFromSelection(a[b]);this.__eW={}},_selectItemRange:function(a,b,c){a=this._getSelectableRange(a,
b);if(!c){var c=this.__eW,b=this.__oS(a),d;for(d in c)b[d]||this._removeFromSelection(c[d])}d=0;for(c=a.length;d<c;d++)this._addToSelection(a[d])},_deselectItemRange:function(a,b){for(var c=this._getSelectableRange(a,b),d=0,e=c.length;d<e;d++)this._removeFromSelection(c[d])},__oS:function(a){for(var b={},c,d=0,e=a.length;d<e;d++)c=a[d],b[this._selectableToHashCode(c)]=c;return b},_getSelectedItem:function(){for(var a in this.__eW)return this.__eW[a];return null},_setSelectedItem:function(a){if(this._isSelectable(a)){var b=
this.__eW,c=this._selectableToHashCode(a);if(!b[c]||qx.lang.Object.hasMinLength(b,2))this._clearSelection(),this._addToSelection(a)}},_addToSelection:function(a){var b=this._selectableToHashCode(a);if(this.__eW[b]==null&&this._isSelectable(a))this.__eW[b]=a,this._styleSelectable(a,"selected",true),this.__oL=true},_toggleInSelection:function(a){var b=this._selectableToHashCode(a);this.__eW[b]==null?(this.__eW[b]=a,this._styleSelectable(a,"selected",true)):(delete this.__eW[b],this._styleSelectable(a,
"selected",false));this.__oL=true},_removeFromSelection:function(a){var b=this._selectableToHashCode(a);if(this.__eW[b]!=null)delete this.__eW[b],this._styleSelectable(a,"selected",false),this.__oL=true},_replaceMultiSelection:function(a){for(var b=false,c,d,e={},f=0,g=a.length;f<g;f++)c=a[f],this._isSelectable(c)&&(d=this._selectableToHashCode(c),e[d]=c);a=a[0];f=c;g=this.__eW;for(d in g)e[d]?delete e[d]:(c=g[d],delete g[d],this._styleSelectable(c,"selected",false),b=true);for(d in e)c=g[d]=e[d],
this._styleSelectable(c,"selected",true),b=true;if(!b)return false;this._scrollItemIntoView(f);this._setLeadItem(a);this._setAnchorItem(a);this.__oL=true;this._fireChange()},_fireChange:function(a){if(this.__oL)this.__oM=a||null,this.fireDataEvent("changeSelection",this.getSelection()),delete this.__oL},_applyDefaultSelection:function(a){return a===true||this.getMode()==="one"&&this.isSelectionEmpty()?(a=this._getFirstSelectable(),a!=null&&this.selectItem(a),a):null}},destruct:function(){this._disposeObjects("__oz");
this.__oN=this.__eW=this.__oP=this.__oO=null}})})();
(function(){qx.Class.define("qx.ui.core.selection.Widget",{extend:qx.ui.core.selection.Abstract,construct:function(a){qx.ui.core.selection.Abstract.call(this);this.__is=a},members:{__is:null,_isSelectable:function(a){return this._isItemSelectable(a)&&a.getLayoutParent()===this.__is},_selectableToHashCode:function(a){return a.$$hash},_styleSelectable:function(a,b,c){c?a.addState(b):a.removeState(b)},_capture:function(){this.__is.capture()},_releaseCapture:function(){this.__is.releaseCapture()},_isItemSelectable:function(a){return this._userInteraction?
a.isVisible()&&a.isEnabled():a.isVisible()},_getWidget:function(){return this.__is},_getLocation:function(){var a=this.__is.getContentElement().getDomElement();return a?qx.bom.element.Location.get(a):null},_getDimension:function(){return this.__is.getInnerSize()},_getSelectableLocationX:function(a){if(a=a.getBounds())return{left:a.left,right:a.left+a.width}},_getSelectableLocationY:function(a){if(a=a.getBounds())return{top:a.top,bottom:a.top+a.height}},_getScroll:function(){return{left:0,top:0}},
_scrollBy:function(){},_scrollItemIntoView:function(a){this.__is.scrollChildIntoView(a)},getSelectables:function(a){var b=false;if(!a)b=this._userInteraction,this._userInteraction=true;for(var a=this.__is.getChildren(),c=[],d,e=0,f=a.length;e<f;e++)d=a[e],this._isItemSelectable(d)&&c.push(d);this._userInteraction=b;return c},_getSelectableRange:function(a,b){if(a===b)return[a];for(var c=this.__is.getChildren(),d=[],e=false,f,g=0,h=c.length;g<h;g++){f=c[g];if(f===a||f===b)if(e){d.push(f);break}else e=
true;e&&this._isItemSelectable(f)&&d.push(f)}return d},_getFirstSelectable:function(){for(var a=this.__is.getChildren(),b=0,c=a.length;b<c;b++)if(this._isItemSelectable(a[b]))return a[b];return null},_getLastSelectable:function(){for(var a=this.__is.getChildren(),b=a.length-1;b>0;b--)if(this._isItemSelectable(a[b]))return a[b];return null},_getRelatedSelectable:function(a,b){var c=this.__is.getOrientation()==="vertical",d=this.__is.getChildren(),e=d.indexOf(a);if(c&&b==="above"||!c&&b==="left")for(e-=
1;e>=0;e--){if(c=d[e],this._isItemSelectable(c))return c}else if(c&&b==="under"||!c&&b==="right")for(e+=1;e<d.length;e++)if(c=d[e],this._isItemSelectable(c))return c;return null},_getPage:function(a,b){return b?this._getFirstSelectable():this._getLastSelectable()}},destruct:function(){this.__is=null}})})();
(function(){qx.Class.define("qx.ui.core.selection.ScrollArea",{extend:qx.ui.core.selection.Widget,members:{_isSelectable:function(a){return this._isItemSelectable(a)&&a.getLayoutParent()===this._getWidget().getChildrenContainer()},_getDimension:function(){return this._getWidget().getPaneSize()},_getScroll:function(){var a=this._getWidget();return{left:a.getScrollX(),top:a.getScrollY()}},_scrollBy:function(a,b){var c=this._getWidget();c.scrollByX(a);c.scrollByY(b)},_getPage:function(a,b){var c=this.getSelectables(),
d=c.length,e=c.indexOf(a);if(e===-1)throw Error("Invalid lead item: "+a);var f=this._getWidget(),g=f.getScrollY(),h=f.getInnerSize().height,i;if(b)for(var j=g,k=e;;){for(;k>=0;k--)if(d=f.getItemTop(c[k]),d<j){i=k+1;break}if(i==null)return c=this._getFirstSelectable(),c==a?null:c;if(i>=e)j-=h+g-f.getItemBottom(a),i=null;else return c[i]}else{j=h+g;for(k=e;;){for(;k<d;k++)if(h=f.getItemBottom(c[k]),h>j){i=k-1;break}if(i==null)return c=this._getLastSelectable(),c==a?null:c;if(i<=e)j+=f.getItemTop(a)-
g,i=null;else return c[i]}}}}})})();
(function(){qx.Mixin.define("qx.ui.core.MMultiSelectionHandling",{construct:function(){var a=this.__eS=new this.SELECTION_MANAGER(this);this.addListener("mousedown",a.handleMouseDown,a);this.addListener("mouseup",a.handleMouseUp,a);this.addListener("mouseover",a.handleMouseOver,a);this.addListener("mousemove",a.handleMouseMove,a);this.addListener("losecapture",a.handleLoseCapture,a);this.addListener("keypress",a.handleKeyPress,a);this.addListener("addItem",a.handleAddItem,a);this.addListener("removeItem",
a.handleRemoveItem,a);a.addListener("changeSelection",this._onSelectionChange,this)},events:{changeSelection:"qx.event.type.Data"},properties:{selectionMode:{check:["single","multi","additive","one"],init:"single",apply:"_applySelectionMode"},dragSelection:{check:"Boolean",init:false,apply:"_applyDragSelection"},quickSelection:{check:"Boolean",init:false,apply:"_applyQuickSelection"}},members:{__eS:null,selectAll:function(){this.__eS.selectAll()},isSelected:function(a){if(!qx.ui.core.Widget.contains(this,
a))throw Error("Could not test if "+a+" is selected, because it is not a child element!");return this.__eS.isItemSelected(a)},addToSelection:function(a){if(!qx.ui.core.Widget.contains(this,a))throw Error("Could not add + "+a+" to selection, because it is not a child element!");this.__eS.addItem(a)},removeFromSelection:function(a){if(!qx.ui.core.Widget.contains(this,a))throw Error("Could not remove "+a+" from selection, because it is not a child element!");this.__eS.removeItem(a)},selectRange:function(a,
b){this.__eS.selectItemRange(a,b)},resetSelection:function(){this.__eS.clearSelection()},setSelection:function(a){for(var b=0;b<a.length;b++)if(!qx.ui.core.Widget.contains(this,a[b]))throw Error("Could not select "+a[b]+", because it is not a child element!");a.length===0?this.resetSelection():(b=this.getSelection(),qx.lang.Array.equals(b,a)||this.__eS.replaceSelection(a))},getSelection:function(){return this.__eS.getSelection()},getSortedSelection:function(){return this.__eS.getSortedSelection()},
isSelectionEmpty:function(){return this.__eS.isSelectionEmpty()},getSelectionContext:function(){return this.__eS.getSelectionContext()},_getManager:function(){return this.__eS},getSelectables:function(a){return this.__eS.getSelectables(a)},invertSelection:function(){this.__eS.invertSelection()},_getLeadItem:function(){var a=this.__eS.getMode();return a==="single"||a==="one"?this.__eS.getSelectedItem():this.__eS.getLeadItem()},_applySelectionMode:function(a){this.__eS.setMode(a)},_applyDragSelection:function(a){this.__eS.setDrag(a)},
_applyQuickSelection:function(a){this.__eS.setQuick(a)},_onSelectionChange:function(a){this.fireDataEvent("changeSelection",a.getData())}},destruct:function(){this._disposeObjects("__eS")}})})();
(function(){qx.Mixin.define("qx.ui.form.MModelSelection",{construct:function(){this.__nM=new qx.data.Array;this.__nM.addListener("change",this.__nP,this);this.addListener("changeSelection",this.__nO,this)},events:{changeModelSelection:"qx.event.type.Data"},members:{__nM:null,__nN:false,__nO:function(){if(!this.__nN){for(var a=this.getSelection(),b=[],c=0;c<a.length;c++){var d=a[c],d=d.getModel?d.getModel():null;d!==null&&b.push(d)}if(b.length===a.length)try{this.setModelSelection(b)}catch(e){throw Error("Could not set the model selection. Maybe your models are not unique?");
}}},__nP:function(){this.__nN=true;for(var a=this.getSelectables(true),b=[],c=this.__nM.toArray(),d=0;d<c.length;d++)for(var e=c[d],f=0;f<a.length;f++){var g=a[f],h=g.getModel?g.getModel():null;if(e===h){b.push(g);break}}this.setSelection(b);this.__nN=false;a=this.getSelection();qx.lang.Array.equals(a,b)||this.__nO()},getModelSelection:function(){return this.__nM},setModelSelection:function(a){a?(qx.core.Environment.get("qx.debug")&&this.assertArray(a,"Please use an array as parameter."),a.unshift(this.__nM.getLength()),
a.unshift(0),this.__nM.splice.apply(this.__nM,a).dispose()):this.__nM.removeAll()}},destruct:function(){this._disposeObjects("__nM")}})})();
(function(){qx.Mixin.define("qx.data.marshal.MEventBubbling",{events:{changeBubble:"qx.event.type.Data"},members:{_applyEventPropagation:function(a,b,c){this.fireDataEvent("changeBubble",{value:a,name:c,old:b});this._registerEventChaining(a,b,c)},_registerEventChaining:function(a,b,c){if(a instanceof qx.core.Object&&qx.Class.hasMixin(a.constructor,qx.data.marshal.MEventBubbling)){var c=qx.lang.Function.bind(this.__nQ,this,c),d=a.addListener("changeBubble",c,this),c=a.getUserData("idBubble-"+this.$$hash);
c==null&&(c=[],a.setUserData("idBubble-"+this.$$hash,c));c.push(d)}if(b!=null&&b.getUserData&&b.getUserData("idBubble-"+this.$$hash)!=null){c=b.getUserData("idBubble-"+this.$$hash);for(a=0;a<c.length;a++)b.removeListenerById(c[a]);b.setUserData("idBubble-"+this.$$hash,null)}},__nQ:function(a,b){var c=b.getData(),d=c.value,e=c.old;if(qx.Class.hasInterface(b.getTarget().constructor,qx.data.IListData))if(c.name.indexOf){var f=c.name.indexOf(".")!=-1?c.name.indexOf("."):c.name.length,g=c.name.indexOf("[")!=
-1?c.name.indexOf("["):c.name.length;if(g==0)var h=a+c.name;else f<g?(h=c.name.substring(0,f),c=c.name.substring(f+1,c.name.length),c[0]!="["&&(c="."+c),h=a+"["+h+"]"+c):g<f?(h=c.name.substring(0,g),c=c.name.substring(g,c.name.length),h=a+"["+h+"]"+c):h=a+"["+c.name+"]"}else h=a+"["+c.name+"]";else parseInt(a)==a&&a!==""&&(a="["+a+"]"),h=a+"."+c.name;this.fireDataEvent("changeBubble",{value:d,name:h,old:e})}}})})();
(function(){qx.Class.define("qx.data.Array",{extend:qx.core.Object,include:qx.data.marshal.MEventBubbling,implement:[qx.data.IListData],construct:function(a){qx.core.Object.call(this);if(a==void 0)this.__nR=[];else if(arguments.length>1){this.__nR=[];for(var b=0;b<arguments.length;b++)this.__nR.push(arguments[b])}else if(typeof a=="number")this.__nR=Array(a);else if(a instanceof Array)this.__nR=qx.lang.Array.clone(a);else throw this.__nR=[],this.dispose(),Error("Type of the parameter not supported!");
for(b=0;b<this.__nR.length;b++)this._applyEventPropagation(this.__nR[b],null,b);this.__nS();qx.core.Environment.get("qx.debug")&&(this[0]="Please use 'toArray()' to see the content.")},properties:{autoDisposeItems:{check:"Boolean",init:false}},events:{change:"qx.event.type.Data",changeLength:"qx.event.type.Data"},members:{__nR:null,concat:function(a){a=a?this.__nR.concat(a):this.__nR.concat();return new qx.data.Array(a)},join:function(a){return this.__nR.join(a)},pop:function(){var a=this.__nR.pop();
this.__nS();this._registerEventChaining(null,a,this.length-1);this.fireDataEvent("changeBubble",{value:[],name:this.length,old:[a]});this.fireDataEvent("change",{start:this.length-1,end:this.length-1,type:"remove",items:[a]},null);return a},push:function(a){for(var b=0;b<arguments.length;b++)this.__nR.push(arguments[b]),this.__nS(),this._registerEventChaining(arguments[b],null,this.length-1),this.fireDataEvent("changeBubble",{value:[arguments[b]],name:this.length-1,old:[]}),this.fireDataEvent("change",
{start:this.length-1,end:this.length-1,type:"add",items:[arguments[b]]},null);return this.length},reverse:function(){if(this.length!=0){var a=this.__nR.concat();this.__nR.reverse();this.fireDataEvent("change",{start:0,end:this.length-1,type:"order",items:null},null);this.fireDataEvent("changeBubble",{value:this.__nR,name:"0-"+(this.__nR.length-1),old:a})}},shift:function(){if(this.length!=0){var a=this.__nR.shift();this.__nS();this._registerEventChaining(null,a,this.length-1);this.fireDataEvent("changeBubble",
{value:[],name:"0",old:[a]});this.fireDataEvent("change",{start:0,end:this.length-1,type:"remove",items:[a]},null);return a}},slice:function(a,b){return new qx.data.Array(this.__nR.slice(a,b))},splice:function(a,b,c){var d=this.__nR.length,e=this.__nR.splice.apply(this.__nR,arguments);this.__nR.length!=d&&this.__nS();var f=arguments.length>2,g=null;if(b>0||f)this.__nR.length>d?d="add":this.__nR.length<d?(d="remove",g=e):d="order",this.fireDataEvent("change",{start:a,end:this.length-1,type:d,items:g},
null);for(d=2;d<arguments.length;d++)this._registerEventChaining(arguments[d],null,a+d);g=[];for(d=2;d<arguments.length;d++)g[d-2]=arguments[d];d=a+Math.max(arguments.length-3,b-1);this.fireDataEvent("changeBubble",{value:g,name:a==d?d:a+"-"+d,old:e});for(d=0;d<e.length;d++)this._registerEventChaining(null,e[d],d);return new qx.data.Array(e)},sort:function(a){if(this.length!=0){var b=this.__nR.concat();this.__nR.sort.apply(this.__nR,arguments);this.fireDataEvent("change",{start:0,end:this.length-
1,type:"order",items:null},null);this.fireDataEvent("changeBubble",{value:this.__nR,name:"0-"+(this.length-1),old:b})}},unshift:function(a){for(var b=arguments.length-1;b>=0;b--)this.__nR.unshift(arguments[b]),this.__nS(),this._registerEventChaining(arguments[b],null,0),this.fireDataEvent("changeBubble",{value:[this.__nR[0]],name:"0",old:[this.__nR[1]]}),this.fireDataEvent("change",{start:0,end:this.length-1,type:"add",items:[arguments[b]]},null);return this.length},toArray:function(){return this.__nR},
getItem:function(a){return this.__nR[a]},setItem:function(a,b){var c=this.__nR[a];c!==b&&(this.__nR[a]=b,this._registerEventChaining(b,c,a),this.length!=this.__nR.length&&this.__nS(),this.fireDataEvent("changeBubble",{value:[b],name:a,old:[c]}),this.fireDataEvent("change",{start:a,end:a,type:"add",items:[b]},null))},getLength:function(){return this.length},indexOf:function(a){return this.__nR.indexOf(a)},toString:function(){return this.__nR!=null?this.__nR.toString():""},contains:function(a){return this.__nR.indexOf(a)!==
-1},copy:function(){return this.concat()},insertAt:function(a,b){this.splice(a,0,b).dispose()},insertBefore:function(a,b){var c=this.indexOf(a);c==-1?this.push(b):this.splice(c,0,b).dispose()},insertAfter:function(a,b){var c=this.indexOf(a);c==-1||c==this.length-1?this.push(b):this.splice(c+1,0,b).dispose()},removeAt:function(a){var a=this.splice(a,1),b=a.getItem(0);a.dispose();return b},removeAll:function(){for(var a=0;a<this.__nR.length;a++)this._registerEventChaining(null,this.__nR[a],a);if(this.getLength()!=
0){var a=this.getLength(),b=this.__nR.concat();this.__nR.length=0;this.__nS();this.fireDataEvent("changeBubble",{value:[],name:"0-"+(a-1),old:b});this.fireDataEvent("change",{start:0,end:a-1,type:"remove",items:b},null);return b}},append:function(a){a instanceof qx.data.Array&&(a=a.toArray());qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertArray(a,"The parameter must be an array.");Array.prototype.push.apply(this.__nR,a);for(var b=0;b<a.length;b++)this._registerEventChaining(a[b],null,this.__nR.length+
b);b=this.length;this.__nS();this.fireDataEvent("changeBubble",{value:a,name:b==this.length-1?b:b+"-"+(this.length-1),old:[]});this.fireDataEvent("change",{start:b,end:this.length-1,type:"add",items:a},null)},remove:function(a){var b=this.indexOf(a);if(b!=-1)return this.splice(b,1).dispose(),a},equals:function(a){if(this.length!==a.length)return false;for(var b=0;b<this.length;b++)if(this.getItem(b)!==a.getItem(b))return false;return true},sum:function(){for(var a=0,b=0;b<this.length;b++)a+=this.getItem(b);
return a},max:function(){for(var a=this.getItem(0),b=1;b<this.length;b++)this.getItem(b)>a&&(a=this.getItem(b));return a===void 0?null:a},min:function(){for(var a=this.getItem(0),b=1;b<this.length;b++)this.getItem(b)<a&&(a=this.getItem(b));return a===void 0?null:a},forEach:function(a,b){for(var c=0;c<this.__nR.length;c++)a.call(b,this.__nR[c],c,this)},__nS:function(){var a=this.length;this.length=this.__nR.length;this.fireDataEvent("changeLength",this.length,a)}},destruct:function(){for(var a=0;a<
this.__nR.length;a++){var b=this.__nR[a];this._applyEventPropagation(null,b,a);this.isAutoDisposeItems()&&b&&b instanceof qx.core.Object&&b.dispose()}this.__nR=null}})})();(function(){qx.Interface.define("qx.ui.core.IMultiSelection",{extend:qx.ui.core.ISingleSelection,members:{selectAll:function(){return true},addToSelection:function(a){return arguments.length==1},removeFromSelection:function(a){return arguments.length==1}}})})();
(function(){qx.Mixin.define("qx.ui.core.scroll.MWheelHandling",{members:{_onMouseWheel:function(a){var b=this._isChildControlVisible("scrollbar-x"),c=this._isChildControlVisible("scrollbar-y"),d=c?this.getChildControl("scrollbar-y",true):null,e=b?this.getChildControl("scrollbar-x",true):null,f=a.getWheelDelta("y"),g=a.getWheelDelta("x"),c=!c,b=!b;if(d){f=parseInt(f);f!==0&&d.scrollBySteps(f);var h=d.getPosition(),d=d.getMaximum();if(f<0&&h<=0||f>0&&h>=d)c=true}if(e&&(f=parseInt(g),f!==0&&e.scrollBySteps(f),
h=e.getPosition(),d=e.getMaximum(),f<0&&h<=0||f>0&&h>=d))b=true;(!c||!b)&&a.stop()}}})})();(function(){qx.core.Environment.add("qx.nativeScrollBars",false);qx.Mixin.define("qx.ui.core.scroll.MScrollBarFactory",{members:{_createScrollBar:function(a){return qx.core.Environment.get("qx.nativeScrollBars")?new qx.ui.core.scroll.NativeScrollBar(a):new qx.ui.core.scroll.ScrollBar(a)}}})})();
(function(){qx.Interface.define("qx.ui.core.scroll.IScrollBar",{events:{scroll:"qx.event.type.Data"},properties:{orientation:{},maximum:{},position:{},knobFactor:{}},members:{scrollTo:function(a){this.assertNumber(a)},scrollBy:function(a){this.assertNumber(a)},scrollBySteps:function(a){this.assertNumber(a)}}})})();
(function(){qx.Class.define("qx.ui.core.scroll.NativeScrollBar",{extend:qx.ui.core.Widget,implement:qx.ui.core.scroll.IScrollBar,construct:function(a){qx.ui.core.Widget.call(this);this.addState("native");this.getContentElement().addListener("scroll",this._onScroll,this);this.addListener("mousedown",this._stopPropagation,this);this.addListener("mouseup",this._stopPropagation,this);this.addListener("mousemove",this._stopPropagation,this);qx.core.Environment.get("engine.name")=="opera"&&parseFloat(qx.core.Environment.get("engine.version"))<
11.5&&this.addListener("appear",this._onAppear,this);this.getContentElement().add(this._getScrollPaneElement());a!=null?this.setOrientation(a):this.initOrientation()},properties:{appearance:{refine:true,init:"scrollbar"},orientation:{check:["horizontal","vertical"],init:"horizontal",apply:"_applyOrientation"},maximum:{check:"PositiveInteger",apply:"_applyMaximum",init:100},position:{check:"Number",init:0,apply:"_applyPosition",event:"scroll"},singleStep:{check:"Integer",init:20},knobFactor:{check:"PositiveNumber",
nullable:true}},members:{__oT:null,__oU:null,_getScrollPaneElement:function(){if(!this.__oU)this.__oU=new qx.html.Element;return this.__oU},renderLayout:function(a,b,c,d){a=qx.ui.core.Widget.prototype.renderLayout.call(this,a,b,c,d);this._updateScrollBar();return a},_getContentHint:function(){var a=qx.bom.element.Overflow.getScrollbarWidth();return{width:this.__oT?100:a,maxWidth:this.__oT?null:a,minWidth:this.__oT?null:a,height:this.__oT?a:100,maxHeight:this.__oT?a:null,minHeight:this.__oT?a:null}},
_applyEnabled:function(a,b){qx.ui.core.Widget.prototype._applyEnabled.call(this,a,b);this._updateScrollBar()},_applyMaximum:function(){this._updateScrollBar()},_applyPosition:function(a){var b=this.getContentElement();this.__oT?b.scrollToX(a):b.scrollToY(a)},_applyOrientation:function(a){a=this.__oT=a==="horizontal";this.set({allowGrowX:a,allowShrinkX:a,allowGrowY:!a,allowShrinkY:!a});a?this.replaceState("vertical","horizontal"):this.replaceState("horizontal","vertical");this.getContentElement().setStyles({overflowX:a?
"scroll":"hidden",overflowY:a?"hidden":"scroll"});qx.ui.core.queue.Layout.add(this)},_updateScrollBar:function(){var a=this.__oT,b=this.getBounds();if(b){if(this.isEnabled())var b=a?b.width:b.height,c=this.getMaximum()+b;else c=0;qx.core.Environment.get("engine.name")=="mshtml"&&(b=this.getBounds(),this.getContentElement().setStyles({left:a?"0":"-1px",top:a?"-1px":"0",width:(a?b.width:b.width+1)+"px",height:(a?b.height+1:b.height)+"px"}));this._getScrollPaneElement().setStyles({left:0,top:0,width:(a?
c:1)+"px",height:(a?1:c)+"px"});this.scrollTo(this.getPosition())}},scrollTo:function(a){this.setPosition(Math.max(0,Math.min(this.getMaximum(),a)))},scrollBy:function(a){this.scrollTo(this.getPosition()+a)},scrollBySteps:function(a){var b=this.getSingleStep();this.scrollBy(a*b)},_onScroll:function(){var a=this.getContentElement();this.setPosition(this.__oT?a.getScrollX():a.getScrollY())},_onAppear:function(){this.scrollTo(this.getPosition())},_stopPropagation:function(a){a.stopPropagation()}},destruct:function(){this._disposeObjects("__oU")}})})();
(function(){qx.Class.define("qx.ui.core.scroll.ScrollBar",{extend:qx.ui.core.Widget,implement:qx.ui.core.scroll.IScrollBar,construct:function(a){qx.ui.core.Widget.call(this);this._createChildControl("button-begin");this._createChildControl("slider").addListener("resize",this._onResizeSlider,this);this._createChildControl("button-end");a!=null?this.setOrientation(a):this.initOrientation()},properties:{appearance:{refine:true,init:"scrollbar"},orientation:{check:["horizontal","vertical"],init:"horizontal",
apply:"_applyOrientation"},maximum:{check:"PositiveInteger",apply:"_applyMaximum",init:100},position:{check:"qx.lang.Type.isNumber(value)&&value>=0&&value<=this.getMaximum()",init:0,apply:"_applyPosition",event:"scroll"},singleStep:{check:"Integer",init:20},pageStep:{check:"Integer",init:10,apply:"_applyPageStep"},knobFactor:{check:"PositiveNumber",apply:"_applyKnobFactor",nullable:true}},members:{__oV:2,_createChildControlImpl:function(a){var b;switch(a){case "slider":b=new qx.ui.core.scroll.ScrollSlider;
b.setPageStep(100);b.setFocusable(false);b.addListener("changeValue",this._onChangeSliderValue,this);this._add(b,{flex:1});break;case "button-begin":b=new qx.ui.form.RepeatButton;b.setFocusable(false);b.addListener("execute",this._onExecuteBegin,this);this._add(b);break;case "button-end":b=new qx.ui.form.RepeatButton,b.setFocusable(false),b.addListener("execute",this._onExecuteEnd,this),this._add(b)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_applyMaximum:function(a){this.getChildControl("slider").setMaximum(a)},
_applyPosition:function(a){this.getChildControl("slider").setValue(a)},_applyKnobFactor:function(a){this.getChildControl("slider").setKnobFactor(a)},_applyPageStep:function(a){this.getChildControl("slider").setPageStep(a)},_applyOrientation:function(a){var b=this._getLayout();b&&b.dispose();a==="horizontal"?(this._setLayout(new qx.ui.layout.HBox),this.setAllowStretchX(true),this.setAllowStretchY(false),this.replaceState("vertical","horizontal"),this.getChildControl("button-begin").replaceState("up",
"left"),this.getChildControl("button-end").replaceState("down","right")):(this._setLayout(new qx.ui.layout.VBox),this.setAllowStretchX(false),this.setAllowStretchY(true),this.replaceState("horizontal","vertical"),this.getChildControl("button-begin").replaceState("left","up"),this.getChildControl("button-end").replaceState("right","down"));this.getChildControl("slider").setOrientation(a)},scrollTo:function(a){this.getChildControl("slider").slideTo(a)},scrollBy:function(a){this.getChildControl("slider").slideBy(a)},
scrollBySteps:function(a){var b=this.getSingleStep();this.getChildControl("slider").slideBy(a*b)},_onExecuteBegin:function(){this.scrollBy(-this.getSingleStep())},_onExecuteEnd:function(){this.scrollBy(this.getSingleStep())},_onChangeSliderValue:function(a){this.setPosition(a.getData())},_onResizeSlider:function(){var a=this.getChildControl("slider").getChildControl("knob"),b=a.getSizeHint(),c=false,d=this.getChildControl("slider").getInnerSize();this.getOrientation()=="vertical"?d.height<b.minHeight+
this.__oV&&(c=true):d.width<b.minWidth+this.__oV&&(c=true);c?a.exclude():a.show()}}})})();(function(){qx.Interface.define("qx.ui.form.IRange",{members:{setMinimum:function(a){return arguments.length==1},getMinimum:function(){},setMaximum:function(a){return arguments.length==1},getMaximum:function(){},setSingleStep:function(a){return arguments.length==1},getSingleStep:function(){},setPageStep:function(a){return arguments.length==1},getPageStep:function(){}}})})();
(function(){qx.Class.define("qx.ui.form.Slider",{extend:qx.ui.core.Widget,implement:[qx.ui.form.IForm,qx.ui.form.INumberForm,qx.ui.form.IRange],include:[qx.ui.form.MForm],construct:function(a){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.Canvas);this.addListener("keypress",this._onKeyPress);this.addListener("mousewheel",this._onMouseWheel);this.addListener("mousedown",this._onMouseDown);this.addListener("mouseup",this._onMouseUp);this.addListener("losecapture",this._onMouseUp);this.addListener("resize",
this._onUpdate);this.addListener("contextmenu",this._onStopEvent);this.addListener("click",this._onStopEvent);this.addListener("dblclick",this._onStopEvent);a!=null?this.setOrientation(a):this.initOrientation()},events:{changeValue:"qx.event.type.Data"},properties:{appearance:{refine:true,init:"slider"},focusable:{refine:true,init:true},orientation:{check:["horizontal","vertical"],init:"horizontal",apply:"_applyOrientation"},value:{check:"typeof value==='number'&&value>=this.getMinimum()&&value<=this.getMaximum()",
init:0,apply:"_applyValue",nullable:true},minimum:{check:"Integer",init:0,apply:"_applyMinimum",event:"changeMinimum"},maximum:{check:"Integer",init:100,apply:"_applyMaximum",event:"changeMaximum"},singleStep:{check:"Integer",init:1},pageStep:{check:"Integer",init:10},knobFactor:{check:"Number",apply:"_applyKnobFactor",nullable:true}},members:{__oW:null,__oX:null,__oY:null,__pa:null,__pb:null,__pc:null,__pd:null,__pe:null,__jk:null,__pf:null,__pg:null,__ph:null,_forwardStates:{invalid:true},_createChildControlImpl:function(a){var b;
switch(a){case "knob":b=new qx.ui.core.Widget,b.addListener("resize",this._onUpdate,this),b.addListener("mouseover",this._onMouseOver),b.addListener("mouseout",this._onMouseOut),this._add(b)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_onMouseOver:function(){this.addState("hovered")},_onMouseOut:function(){this.removeState("hovered")},_onMouseWheel:function(a){var b=this.getOrientation()==="horizontal"?"x":"y",b=a.getWheelDelta(b);this.slideBy((b>0?1:b<0?-1:0)*this.getSingleStep());
a.stop()},_onKeyPress:function(a){var b=this.getOrientation()==="horizontal",c=b?"Left":"Up",b=b?"Right":"Down";switch(a.getKeyIdentifier()){case b:this.slideForward();break;case c:this.slideBack();break;case "PageDown":this.slidePageForward();break;case "PageUp":this.slidePageBack();break;case "Home":this.slideToBegin();break;case "End":this.slideToEnd();break;default:return}a.stop()},_onMouseDown:function(a){if(!this.__pa){var b=this.__oT,c=this.getChildControl("knob"),d=b?"left":"top",b=b?a.getDocumentLeft():
a.getDocumentTop(),e=this.__oW=qx.bom.element.Location.get(this.getContentElement().getDomElement())[d],d=this.__oX=qx.bom.element.Location.get(c.getContainerElement().getDomElement())[d];if(a.getTarget()===c){this.__pa=true;if(!this.__pf)this.__pf=new qx.event.Timer(100),this.__pf.addListener("interval",this._fireValue,this);this.__pf.start();this.__pb=b+e-d;c.addState("pressed")}else{this.__pc=true;this.__pd=b<=d?-1:1;this.__pj(a);this._onInterval();if(!this.__jk)this.__jk=new qx.event.Timer(100),
this.__jk.addListener("interval",this._onInterval,this);this.__jk.start()}this.addListener("mousemove",this._onMouseMove);this.capture();a.stopPropagation()}},_onMouseUp:function(a){if(this.__pa){if(this.releaseCapture(),delete this.__pa,this.__pf.stop(),this._fireValue(),delete this.__pb,this.getChildControl("knob").removeState("pressed"),a.getType()==="mouseup"){var b,c;this.__oT?(b=a.getDocumentLeft()-(this._valueToPosition(this.getValue())+this.__oW),c=qx.bom.element.Location.get(this.getContentElement().getDomElement()).top,
c=a.getDocumentTop()-(c+this.getChildControl("knob").getBounds().top)):(b=a.getDocumentTop()-(this._valueToPosition(this.getValue())+this.__oW),c=qx.bom.element.Location.get(this.getContentElement().getDomElement()).left,c=a.getDocumentLeft()-(c+this.getChildControl("knob").getBounds().left));(c<0||c>this.__oY||b<0||b>this.__oY)&&this.getChildControl("knob").removeState("hovered")}}else this.__pc&&(this.__jk.stop(),this.releaseCapture(),delete this.__pc,delete this.__pd,delete this.__pe);this.removeListener("mousemove",
this._onMouseMove);a.getType()==="mouseup"&&a.stopPropagation()},_onMouseMove:function(a){this.__pa?this.slideTo(this._positionToValue((this.__oT?a.getDocumentLeft():a.getDocumentTop())-this.__pb)):this.__pc&&this.__pj(a);a.stopPropagation()},_onInterval:function(){var a=this.getValue()+this.__pd*this.getPageStep();a<this.getMinimum()?a=this.getMinimum():a>this.getMaximum()&&(a=this.getMaximum());var b=this.__pd==-1;if(b&&a<=this.__pe||!b&&a>=this.__pe)a=this.__pe;this.slideTo(a)},_onUpdate:function(){var a=
this.getInnerSize(),b=this.getChildControl("knob").getBounds(),c=this.__oT?"width":"height";this._updateKnobSize();this.__pi=a[c]-b[c];this.__oY=b[c];this._updateKnobPosition()},__oT:false,__pi:0,__pj:function(a){var a=this.__oT?a.getDocumentLeft():a.getDocumentTop(),b=this.__oY,c=a-this.__oW;a>=this.__oX&&(c-=b);a=this._positionToValue(c);b=this.getMinimum();c=this.getMaximum();a<b?a=b:a>c?a=c:(b=this.getValue(),c=this.getPageStep(),a=b+Math[this.__pd<0?"floor":"ceil"]((a-b)/c)*c);if(this.__pe==
null||this.__pd==-1&&a<=this.__pe||this.__pd==1&&a>=this.__pe)this.__pe=a},_positionToValue:function(a){var b=this.__pi;if(b==null||b==0)return 0;a/=b;a<0?a=0:a>1&&(a=1);b=this.getMaximum()-this.getMinimum();return this.getMinimum()+Math.round(b*a)},_valueToPosition:function(a){var b=this.__pi;if(b==null)return 0;var c=this.getMaximum()-this.getMinimum();if(c==0)return 0;a-=this.getMinimum();a/=c;a<0?a=0:a>1&&(a=1);return Math.round(b*a)},_updateKnobPosition:function(){this._setKnobPosition(this._valueToPosition(this.getValue()))},
_setKnobPosition:function(a){var b=this.getChildControl("knob").getContainerElement();this.__oT?b.setStyle("left",a+"px",true):b.setStyle("top",a+"px",true)},_updateKnobSize:function(){var a=this.getKnobFactor();if(a!=null){var b=this.getInnerSize();b!=null&&(this.__oT?this.getChildControl("knob").setWidth(Math.round(a*b.width)):this.getChildControl("knob").setHeight(Math.round(a*b.height)))}},slideToBegin:function(){this.slideTo(this.getMinimum())},slideToEnd:function(){this.slideTo(this.getMaximum())},
slideForward:function(){this.slideBy(this.getSingleStep())},slideBack:function(){this.slideBy(-this.getSingleStep())},slidePageForward:function(){this.slideBy(this.getPageStep())},slidePageBack:function(){this.slideBy(-this.getPageStep())},slideBy:function(a){this.slideTo(this.getValue()+a)},slideTo:function(a){a=a<this.getMinimum()?this.getMinimum():a>this.getMaximum()?this.getMaximum():this.getMinimum()+Math.round((a-this.getMinimum())/this.getSingleStep())*this.getSingleStep();this.setValue(a)},
_applyOrientation:function(a){var b=this.getChildControl("knob");(this.__oT=a==="horizontal")?(this.removeState("vertical"),b.removeState("vertical"),this.addState("horizontal"),b.addState("horizontal"),b.setLayoutProperties({top:0,right:null,bottom:0})):(this.removeState("horizontal"),b.removeState("horizontal"),this.addState("vertical"),b.addState("vertical"),b.setLayoutProperties({right:0,bottom:null,left:0}));this._updateKnobPosition()},_applyKnobFactor:function(a){a!=null?this._updateKnobSize():
this.__oT?this.getChildControl("knob").resetWidth():this.getChildControl("knob").resetHeight()},_applyValue:function(a,b){a!=null?(this._updateKnobPosition(),this.__pa?this.__ph=[a,b]:this.fireEvent("changeValue",qx.event.type.Data,[a,b])):this.resetValue()},_fireValue:function(){if(this.__ph){var a=this.__ph;this.__ph=null;this.fireEvent("changeValue",qx.event.type.Data,a)}},_applyMinimum:function(a){this.getValue()<a&&this.setValue(a);this._updateKnobPosition()},_applyMaximum:function(a){this.getValue()>
a&&this.setValue(a);this._updateKnobPosition()}}})})();(function(){qx.Class.define("qx.ui.core.scroll.ScrollSlider",{extend:qx.ui.form.Slider,construct:function(a){qx.ui.form.Slider.call(this,a);this.removeListener("keypress",this._onKeyPress);this.removeListener("mousewheel",this._onMouseWheel)},members:{getSizeHint:function(){var a=qx.ui.form.Slider.prototype.getSizeHint.call(this);this.getOrientation()==="horizontal"?a.width=0:a.height=0;return a}}})})();
(function(){qx.Mixin.define("qx.ui.core.MExecutable",{events:{execute:"qx.event.type.Event"},properties:{command:{check:"qx.ui.core.Command",apply:"_applyCommand",event:"changeCommand",nullable:true}},members:{__nC:null,__nD:false,__nE:null,_bindableProperties:"enabled,label,icon,toolTipText,value,menu".split(","),execute:function(){var a=this.getCommand();if(a)this.__nD?this.__nD=false:(this.__nD=true,a.execute(this));this.fireEvent("execute")},__nF:function(){this.__nD?this.__nD=false:(this.__nD=
true,this.execute())},_applyCommand:function(a,b){b!=null&&b.removeListenerById(this.__nE);if(a!=null)this.__nE=a.addListener("execute",this.__nF,this);var c=this.__nC;if(c==null)this.__nC=c={};for(var d,e=0;e<this._bindableProperties.length;e++){var f=this._bindableProperties[e];b!=null&&!b.isDisposed()&&c[f]!=null&&(b.removeBinding(c[f]),c[f]=null);a!=null&&qx.Class.hasProperty(this.constructor,f)&&(a.get(f)==null?(d=this.get(f),d==null&&(this.syncAppearance(),d=qx.util.PropertyUtil.getThemeValue(this,
f))):d=null,c[f]=a.bind(f,this,f),d&&this.set(f,d))}}},destruct:function(){this._applyCommand(null,this.getCommand());this.__nC=null}})})();(function(){qx.Interface.define("qx.ui.form.IExecutable",{events:{execute:"qx.event.type.Data"},members:{setCommand:function(a){return arguments.length==1},getCommand:function(){},execute:function(){}}})})();
(function(){qx.Class.define("qx.ui.form.Button",{extend:qx.ui.basic.Atom,include:[qx.ui.core.MExecutable],implement:[qx.ui.form.IExecutable],construct:function(a,b,c){qx.ui.basic.Atom.call(this,a,b);c!=null&&this.setCommand(c);this.addListener("mouseover",this._onMouseOver);this.addListener("mouseout",this._onMouseOut);this.addListener("mousedown",this._onMouseDown);this.addListener("mouseup",this._onMouseUp);this.addListener("keydown",this._onKeyDown);this.addListener("keyup",this._onKeyUp);this.addListener("dblclick",
this._onStopEvent)},properties:{appearance:{refine:true,init:"button"},focusable:{refine:true,init:true}},members:{_forwardStates:{focused:true,hovered:true,pressed:true,disabled:true},press:function(){this.hasState("abandoned")||this.addState("pressed")},release:function(){this.hasState("pressed")&&this.removeState("pressed")},reset:function(){this.removeState("pressed");this.removeState("abandoned");this.removeState("hovered")},_onMouseOver:function(a){this.isEnabled()&&a.getTarget()===this&&(this.hasState("abandoned")&&
(this.removeState("abandoned"),this.addState("pressed")),this.addState("hovered"))},_onMouseOut:function(a){this.isEnabled()&&a.getTarget()===this&&(this.removeState("hovered"),this.hasState("pressed")&&(this.removeState("pressed"),this.addState("abandoned")))},_onMouseDown:function(a){a.isLeftPressed()&&(a.stopPropagation(),this.capture(),this.removeState("abandoned"),this.addState("pressed"))},_onMouseUp:function(a){this.releaseCapture();var b=this.hasState("pressed"),c=this.hasState("abandoned");
b&&this.removeState("pressed");c?this.removeState("abandoned"):(this.addState("hovered"),b&&this.execute());a.stopPropagation()},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case "Enter":case "Space":this.removeState("abandoned"),this.addState("pressed"),a.stopPropagation()}},_onKeyUp:function(a){switch(a.getKeyIdentifier()){case "Enter":case "Space":this.hasState("pressed")&&(this.removeState("abandoned"),this.removeState("pressed"),this.execute(),a.stopPropagation())}}}})})();
(function(){qx.Class.define("qx.ui.form.RepeatButton",{extend:qx.ui.form.Button,construct:function(a,b){qx.ui.form.Button.call(this,a,b);this.__jk=new qx.event.AcceleratingTimer;this.__jk.addListener("interval",this._onInterval,this)},events:{execute:"qx.event.type.Event",press:"qx.event.type.Event",release:"qx.event.type.Event"},properties:{interval:{check:"Integer",init:100},firstInterval:{check:"Integer",init:500},minTimer:{check:"Integer",init:20},timerDecrease:{check:"Integer",init:2}},members:{__pk:null,
__jk:null,press:function(){this.isEnabled()&&(this.hasState("pressed")||this.__pl(),this.removeState("abandoned"),this.addState("pressed"))},release:function(){this.isEnabled()&&(this.hasState("pressed")&&(this.__pk||this.execute()),this.removeState("pressed"),this.removeState("abandoned"),this.__pm())},_applyEnabled:function(a,b){qx.ui.form.Button.prototype._applyEnabled.call(this,a,b);a||(this.removeState("pressed"),this.removeState("abandoned"),this.__pm())},_onMouseOver:function(a){this.isEnabled()&&
a.getTarget()===this&&(this.hasState("abandoned")&&(this.removeState("abandoned"),this.addState("pressed"),this.__jk.start()),this.addState("hovered"))},_onMouseOut:function(a){this.isEnabled()&&a.getTarget()===this&&(this.removeState("hovered"),this.hasState("pressed")&&(this.removeState("pressed"),this.addState("abandoned"),this.__jk.stop()))},_onMouseDown:function(a){a.isLeftPressed()&&(this.capture(),this.__pl(),a.stopPropagation())},_onMouseUp:function(a){this.releaseCapture();this.hasState("abandoned")||
(this.addState("hovered"),this.hasState("pressed")&&!this.__pk&&this.execute());this.__pm();a.stopPropagation()},_onKeyUp:function(a){switch(a.getKeyIdentifier()){case "Enter":case "Space":this.hasState("pressed")&&(this.__pk||this.execute(),this.removeState("pressed"),this.removeState("abandoned"),a.stopPropagation(),this.__pm())}},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case "Enter":case "Space":this.removeState("abandoned"),this.addState("pressed"),a.stopPropagation(),this.__pl()}},
_onInterval:function(){this.__pk=true;this.fireEvent("execute")},__pl:function(){this.fireEvent("press");this.__pk=false;this.__jk.set({interval:this.getInterval(),firstInterval:this.getFirstInterval(),minimum:this.getMinTimer(),decrease:this.getTimerDecrease()}).start();this.removeState("abandoned");this.addState("pressed")},__pm:function(){this.fireEvent("release");this.__jk.stop();this.removeState("abandoned");this.removeState("pressed")}},destruct:function(){this._disposeObjects("__jk")}})})();
(function(){qx.Class.define("qx.event.AcceleratingTimer",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__jk=new qx.event.Timer(this.getInterval());this.__jk.addListener("interval",this._onInterval,this)},events:{interval:"qx.event.type.Event"},properties:{interval:{check:"Integer",init:100},firstInterval:{check:"Integer",init:500},minimum:{check:"Integer",init:20},decrease:{check:"Integer",init:2}},members:{__jk:null,__pn:null,start:function(){this.__jk.setInterval(this.getFirstInterval());
this.__jk.start()},stop:function(){this.__jk.stop();this.__pn=null},_onInterval:function(){this.__jk.stop();if(this.__pn==null)this.__pn=this.getInterval();this.__pn=Math.max(this.getMinimum(),this.__pn-this.getDecrease());this.__jk.setInterval(this.__pn);this.__jk.start();this.fireEvent("interval")}},destruct:function(){this._disposeObjects("__jk")}})})();
(function(){qx.Class.define("qx.ui.core.scroll.AbstractScrollArea",{extend:qx.ui.core.Widget,include:[qx.ui.core.scroll.MScrollBarFactory,qx.ui.core.scroll.MWheelHandling],type:"abstract",construct:function(){qx.ui.core.Widget.call(this);if(qx.core.Environment.get("os.scrollBarOverlayed"))this._setLayout(new qx.ui.layout.Canvas);else{var a=new qx.ui.layout.Grid;a.setColumnFlex(0,1);a.setRowFlex(0,1);this._setLayout(a)}this.addListener("mousewheel",this._onMouseWheel,this);if(qx.core.Environment.get("event.touch"))this.addListener("touchmove",
this._onTouchMove,this),this.addListener("touchstart",function(){this.__cQ={x:0,y:0}},this),this.__cQ={},this.__po={}},properties:{appearance:{refine:true,init:"scrollarea"},width:{refine:true,init:100},height:{refine:true,init:200},scrollbarX:{check:["auto","on","off"],init:"auto",themeable:true,apply:"_computeScrollbars"},scrollbarY:{check:["auto","on","off"],init:"auto",themeable:true,apply:"_computeScrollbars"},scrollbar:{group:["scrollbarX","scrollbarY"]}},members:{__cQ:null,__po:null,_createChildControlImpl:function(a){var b;
switch(a){case "pane":b=new qx.ui.core.scroll.ScrollPane;b.addListener("update",this._computeScrollbars,this);b.addListener("scrollX",this._onScrollPaneX,this);b.addListener("scrollY",this._onScrollPaneY,this);qx.core.Environment.get("os.scrollBarOverlayed")?this._add(b,{edge:0}):this._add(b,{row:0,column:0});break;case "scrollbar-x":b=this._createScrollBar("horizontal");b.setMinWidth(0);b.exclude();b.addListener("scroll",this._onScrollBarX,this);b.addListener("changeVisibility",this._onChangeScrollbarXVisibility,
this);qx.core.Environment.get("os.scrollBarOverlayed")?(b.setMinHeight(qx.bom.element.Overflow.DEFAULT_SCROLLBAR_WIDTH),this._add(b,{bottom:0,right:0,left:0})):this._add(b,{row:1,column:0});break;case "scrollbar-y":b=this._createScrollBar("vertical");b.setMinHeight(0);b.exclude();b.addListener("scroll",this._onScrollBarY,this);b.addListener("changeVisibility",this._onChangeScrollbarYVisibility,this);qx.core.Environment.get("os.scrollBarOverlayed")?(b.setMinWidth(qx.bom.element.Overflow.DEFAULT_SCROLLBAR_WIDTH),
this._add(b,{right:0,bottom:0,top:0})):this._add(b,{row:0,column:1});break;case "corner":b=new qx.ui.core.Widget,b.setWidth(0),b.setHeight(0),b.exclude(),qx.core.Environment.get("os.scrollBarOverlayed")||this._add(b,{row:1,column:1})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},getPaneSize:function(){return this.getChildControl("pane").getInnerSize()},getItemTop:function(a){return this.getChildControl("pane").getItemTop(a)},getItemBottom:function(a){return this.getChildControl("pane").getItemBottom(a)},
getItemLeft:function(a){return this.getChildControl("pane").getItemLeft(a)},getItemRight:function(a){return this.getChildControl("pane").getItemRight(a)},scrollToX:function(a){qx.ui.core.queue.Manager.flush();this.getChildControl("scrollbar-x").scrollTo(a)},scrollByX:function(a){qx.ui.core.queue.Manager.flush();this.getChildControl("scrollbar-x").scrollBy(a)},getScrollX:function(){var a=this.getChildControl("scrollbar-x",true);return a?a.getPosition():0},scrollToY:function(a){qx.ui.core.queue.Manager.flush();
this.getChildControl("scrollbar-y").scrollTo(a)},scrollByY:function(a){qx.ui.core.queue.Manager.flush();this.getChildControl("scrollbar-y").scrollBy(a)},getScrollY:function(){var a=this.getChildControl("scrollbar-y",true);return a?a.getPosition():0},_onScrollBarX:function(a){this.getChildControl("pane").scrollToX(a.getData())},_onScrollBarY:function(a){this.getChildControl("pane").scrollToY(a.getData())},_onScrollPaneX:function(a){this.scrollToX(a.getData())},_onScrollPaneY:function(a){this.scrollToY(a.getData())},
_onTouchMove:function(a){this._onTouchMoveDirectional("x",a);this._onTouchMoveDirectional("y",a);a.stop()},_onTouchMoveDirectional:function(a,b){var c=a=="x"?"Left":"Top",d=this.getChildControl("scrollbar-"+a,true);if(this._isChildControlVisible("scrollbar-"+a)&&d){var e=this.__cQ[a]==0?0:-(b["getDocument"+c]()-this.__cQ[a]);this.__cQ[a]=b["getDocument"+c]();d.scrollBy(e);this.__po[a]&&(clearTimeout(this.__po[a]),this.__po[a]=null);this.__po[a]=setTimeout(qx.lang.Function.bind(function(b){this.__pp(b,
a)},this,e),100)}},__pp:function(a,b){this.__po[b]=null;var c=this._isChildControlVisible("scrollbar-"+b);a!=0&&c&&(a=a>0?Math.max(0,a-3):Math.min(0,a+3),this.__po[b]=setTimeout(qx.lang.Function.bind(function(a,b){this.__pp(a,b)},this,a,b),20),this.getChildControl("scrollbar-"+b,true).scrollBy(a))},_onChangeScrollbarXVisibility:function(){var a=this._isChildControlVisible("scrollbar-x"),b=this._isChildControlVisible("scrollbar-y");a||this.scrollToX(0);a&&b?this._showChildControl("corner"):this._excludeChildControl("corner")},
_onChangeScrollbarYVisibility:function(){var a=this._isChildControlVisible("scrollbar-x"),b=this._isChildControlVisible("scrollbar-y");b||this.scrollToY(0);a&&b?this._showChildControl("corner"):this._excludeChildControl("corner")},_computeScrollbars:function(){var a=this.getChildControl("pane");if(a.getChildren()[0]){var b=this.getInnerSize(),c=a.getInnerSize(),a=a.getScrollSize();if(c&&a){var d=this.getScrollbarX(),e=this.getScrollbarY();if(d==="auto"&&e==="auto"){var f=a.width>b.width,g=a.height>
b.height;if((f||g)&&(!f||!g))f?g=a.height>c.height:g&&(f=a.width>c.width)}else{f=d==="on";g=e==="on";if(a.width>(f?c.width:b.width)&&d==="auto")f=true;if(a.height>(f?c.height:b.height)&&e==="auto")g=true}f?(b=this.getChildControl("scrollbar-x"),b.show(),b.setMaximum(Math.max(0,a.width-c.width)),b.setKnobFactor(a.width===0?0:c.width/a.width)):this._excludeChildControl("scrollbar-x");g?(b=this.getChildControl("scrollbar-y"),b.show(),b.setMaximum(Math.max(0,a.height-c.height)),b.setKnobFactor(a.height===
0?0:c.height/a.height)):this._excludeChildControl("scrollbar-y")}}else this._excludeChildControl("scrollbar-x"),this._excludeChildControl("scrollbar-y")}}})})();(function(){qx.Bootstrap.define("qx.bom.client.Scroll",{statics:{scrollBarOverlayed:function(){var a=qx.bom.element.Overflow.getScrollbarWidth(),b=qx.bom.client.OperatingSystem.getName()==="osx",c=qx.core.Environment.get("qx.nativeScrollBars");return a==0&&b&&c}},defer:function(a){qx.core.Environment.add("os.scrollBarOverlayed",a.scrollBarOverlayed)}})})();
(function(){qx.Class.define("qx.ui.core.scroll.ScrollPane",{extend:qx.ui.core.Widget,construct:function(){qx.ui.core.Widget.call(this);this.set({minWidth:0,minHeight:0});this._setLayout(new qx.ui.layout.Grow);this.addListener("resize",this._onUpdate);var a=this.getContentElement();a.addListener("scroll",this._onScroll,this);a.addListener("appear",this._onAppear,this)},events:{update:"qx.event.type.Event"},properties:{scrollX:{check:"qx.lang.Type.isNumber(value)&&value>=0&&value<=this.getScrollMaxX()",
apply:"_applyScrollX",event:"scrollX",init:0},scrollY:{check:"qx.lang.Type.isNumber(value)&&value>=0&&value<=this.getScrollMaxY()",apply:"_applyScrollY",event:"scrollY",init:0}},members:{add:function(a){var b=this._getChildren()[0];b&&(this._remove(b),b.removeListener("resize",this._onUpdate,this));a&&(this._add(a),a.addListener("resize",this._onUpdate,this))},remove:function(a){a&&(this._remove(a),a.removeListener("resize",this._onUpdate,this))},getChildren:function(){return this._getChildren()},
_onUpdate:function(){this.fireEvent("update")},_onScroll:function(){var a=this.getContentElement();this.setScrollX(a.getScrollX());this.setScrollY(a.getScrollY())},_onAppear:function(){var a=this.getContentElement(),b=this.getScrollX(),c=a.getScrollX();b!=c&&a.scrollToX(b);b=this.getScrollY();c=a.getScrollY();b!=c&&a.scrollToY(b)},getItemTop:function(a){var b=0;do b+=a.getBounds().top,a=a.getLayoutParent();while(a&&a!==this);return b},getItemBottom:function(a){return this.getItemTop(a)+a.getBounds().height},
getItemLeft:function(a){var b=0;do b+=a.getBounds().left,(a=a.getLayoutParent())&&(b+=a.getInsets().left);while(a&&a!==this);return b},getItemRight:function(a){return this.getItemLeft(a)+a.getBounds().width},getScrollSize:function(){return this.getChildren()[0].getBounds()},getScrollMaxX:function(){var a=this.getInnerSize(),b=this.getScrollSize();return a&&b?Math.max(0,b.width-a.width):0},getScrollMaxY:function(){var a=this.getInnerSize(),b=this.getScrollSize();return a&&b?Math.max(0,b.height-a.height):
0},scrollToX:function(a){var b=this.getScrollMaxX();a<0?a=0:a>b&&(a=b);this.setScrollX(a)},scrollToY:function(a){var b=this.getScrollMaxY();a<0?a=0:a>b&&(a=b);this.setScrollY(a)},scrollByX:function(a){this.scrollToX(this.getScrollX()+a)},scrollByY:function(a){this.scrollToY(this.getScrollY()+a)},_applyScrollX:function(a){this.getContentElement().scrollToX(a)},_applyScrollY:function(a){this.getContentElement().scrollToY(a)}}})})();
(function(){qx.Interface.define("qx.ui.form.IModelSelection",{members:{setModelSelection:function(){},getModelSelection:function(){}}})})();
(function(){qx.Class.define("qx.ui.form.List",{extend:qx.ui.core.scroll.AbstractScrollArea,implement:[qx.ui.core.IMultiSelection,qx.ui.form.IForm,qx.ui.form.IModelSelection],include:[qx.ui.core.MRemoteChildrenHandling,qx.ui.core.MMultiSelectionHandling,qx.ui.form.MForm,qx.ui.form.MModelSelection],construct:function(a){qx.ui.core.scroll.AbstractScrollArea.call(this);this.__pq=this._createListItemContainer();this.__pq.addListener("addChildWidget",this._onAddChild,this);this.__pq.addListener("removeChildWidget",
this._onRemoveChild,this);this.getChildControl("pane").add(this.__pq);a?this.setOrientation("horizontal"):this.initOrientation();this.addListener("keypress",this._onKeyPress);this.addListener("keyinput",this._onKeyInput);this.__pr=""},events:{addItem:"qx.event.type.Data",removeItem:"qx.event.type.Data"},properties:{appearance:{refine:true,init:"list"},focusable:{refine:true,init:true},orientation:{check:["horizontal","vertical"],init:"vertical",apply:"_applyOrientation"},spacing:{check:"Integer",
init:0,apply:"_applySpacing",themeable:true},enableInlineFind:{check:"Boolean",init:true}},members:{__pr:null,__ps:null,__pq:null,SELECTION_MANAGER:qx.ui.core.selection.ScrollArea,getChildrenContainer:function(){return this.__pq},_onAddChild:function(a){this.fireDataEvent("addItem",a.getData())},_onRemoveChild:function(a){this.fireDataEvent("removeItem",a.getData())},handleKeyPress:function(a){this._onKeyPress(a)||this._getManager().handleKeyPress(a)},_createListItemContainer:function(){return new qx.ui.container.Composite},
_applyOrientation:function(a){var b=(a=a==="horizontal")?new qx.ui.layout.HBox:new qx.ui.layout.VBox,c=this.__pq;c.setLayout(b);c.setAllowGrowX(!a);c.setAllowGrowY(a);this._applySpacing(this.getSpacing())},_applySpacing:function(a){this.__pq.getLayout().setSpacing(a)},_onKeyPress:function(a){if(a.getKeyIdentifier()=="Enter"&&!a.isAltPressed()){for(var a=this.getSelection(),b=0;b<a.length;b++)a[b].fireEvent("action");return true}return false},_onKeyInput:function(a){if(this.getEnableInlineFind()){var b=
this.getSelectionMode();if(b==="single"||b==="one"){if((new Date).valueOf()-this.__ps>1E3)this.__pr="";this.__pr+=a.getChar();(a=this.findItemByLabelFuzzy(this.__pr))&&this.setSelection([a]);this.__ps=(new Date).valueOf()}}},findItemByLabelFuzzy:function(a){for(var a=a.toLowerCase(),b=this.getChildren(),c=0,d=b.length;c<d;c++){var e=b[c].getLabel();if(e&&e.toLowerCase().indexOf(a)==0)return b[c]}return null},findItem:function(a,b){b!==false&&(a=a.toLowerCase());for(var c=this.getChildren(),d,e=0,
f=c.length;e<f;e++){d=c[e];var g;if(d.isRich()){var h=d.getChildControl("label",true);h&&(h=h.getContentElement().getDomElement())&&(g=qx.bom.element.Attribute.get(h,"text"))}else g=d.getLabel();if(g!=null&&(g.translate&&(g=g.translate()),b!==false&&(g=g.toLowerCase()),g.toString()==a.toString()))return d}return null}},destruct:function(){this._disposeObjects("__pq")}})})();
(function(){qx.Class.define("qx.ui.form.ComboBox",{extend:qx.ui.form.AbstractSelectBox,implement:[qx.ui.form.IStringForm],construct:function(){qx.ui.form.AbstractSelectBox.call(this);var a=this._createChildControl("textfield");this._createChildControl("button");this.addListener("click",this._onClick);this.addListener("focusin",function(){a.fireNonBubblingEvent("focusin",qx.event.type.Focus)},this);this.addListener("focusout",function(){a.fireNonBubblingEvent("focusout",qx.event.type.Focus)},this)},
properties:{appearance:{refine:true,init:"combobox"},placeholder:{check:"String",nullable:true,apply:"_applyPlaceholder"}},events:{changeValue:"qx.event.type.Data"},members:{__pt:null,__Ar:null,_applyPlaceholder:function(a){this.getChildControl("textfield").setPlaceholder(a)},_createChildControlImpl:function(a){var b;switch(a){case "textfield":b=new qx.ui.form.TextField;b.setFocusable(false);b.addState("inner");b.addListener("changeValue",this._onTextFieldChangeValue,this);b.addListener("blur",this.close,
this);this._add(b,{flex:1});break;case "button":b=new qx.ui.form.Button;b.setFocusable(false);b.setKeepActive(true);b.addState("inner");this._add(b);break;case "list":b=qx.ui.form.AbstractSelectBox.prototype._createChildControlImpl.call(this,a),b.setSelectionMode("single")}return b||qx.ui.form.AbstractSelectBox.prototype._createChildControlImpl.call(this,a)},_forwardStates:{focused:true,invalid:true},tabFocus:function(){var a=this.getChildControl("textfield");a.getFocusElement().focus();a.selectAllText()},
focus:function(){qx.ui.form.AbstractSelectBox.prototype.focus.call(this);this.getChildControl("textfield").getFocusElement().focus()},setValue:function(a){var b=this.getChildControl("textfield");b.getValue()!=a&&b.setValue(a)},getValue:function(){return this.getChildControl("textfield").getValue()},resetValue:function(){this.getChildControl("textfield").setValue(null)},_onKeyPress:function(a){var b=this.getChildControl("popup"),c=a.getKeyIdentifier();c=="Down"&&a.isAltPressed()?(this.getChildControl("button").addState("selected"),
this.toggle(),a.stopPropagation()):c=="Enter"?b.isVisible()&&(this._setPreselectedItem(),this.resetAllTextSelection(),this.close(),a.stop()):b.isVisible()&&qx.ui.form.AbstractSelectBox.prototype._onKeyPress.call(this,a)},_onClick:function(a){a.getTarget()==this.getChildControl("button")?this.toggle():this.close()},_onListMouseDown:function(){this._setPreselectedItem()},_setPreselectedItem:function(){if(this.__pt){var a=this.__pt.getLabel();this.getFormat()!=null&&(a=this.getFormat().call(this,this.__pt));
a&&a.translate&&(a=a.translate());this.setValue(a);this.__pt=null}},_onListChangeSelection:function(a){a=a.getData();if(a.length>0){var b=this.getChildControl("list").getSelectionContext();b=="quick"||b=="key"?this.__pt=a[0]:(b=a[0].getLabel(),this.getFormat()!=null&&(b=this.getFormat().call(this,a[0])),b&&b.translate&&(b=b.translate()),this.setValue(b),this.__pt=null)}},_onPopupChangeVisibility:function(a){qx.ui.form.AbstractSelectBox.prototype._onPopupChangeVisibility.call(this,a);if(this.getChildControl("popup").isVisible()){var a=
this.getChildControl("list"),b=this.getValue(),c=null;b&&(c=a.findItem(b));c?a.setSelection([c]):a.resetSelection()}else a.getOldData()=="visible"&&this.tabFocus();this.getChildControl("button").removeState("selected")},_onTextFieldChangeValue:function(a){var b=a.getData(),c=this.getChildControl("list");if(b!=null){var d=c.findItem(b,false);d?c.setSelection([d]):c.resetSelection()}else c.resetSelection();this.fireDataEvent("changeValue",b,a.getOldData())},getTextSelection:function(){return this.getChildControl("textfield").getTextSelection()},
getTextSelectionLength:function(){return this.getChildControl("textfield").getTextSelectionLength()},setTextSelection:function(a,b){this.getChildControl("textfield").setTextSelection(a,b)},clearTextSelection:function(){this.getChildControl("textfield").clearTextSelection()},selectAllText:function(){this.getChildControl("textfield").selectAllText()},resetAllTextSelection:function(){this.clearTextSelection();this.selectAllText()}}})})();
(function(){qx.Class.define("qx.ui.form.PasswordField",{extend:qx.ui.form.TextField,members:{_createInputElement:function(){var a=new qx.html.Input("password");a.addListener("input",this._onHtmlInput,this);return a}}})})();(function(){qx.Interface.define("qx.ui.form.IRadioItem",{events:{changeValue:"qx.event.type.Data"},members:{setValue:function(){},getValue:function(){},setGroup:function(a){this.assertInstance(a,qx.ui.form.RadioGroup)},getGroup:function(){}}})})();
(function(){qx.Mixin.define("qx.ui.core.MSingleSelectionHandling",{events:{changeSelection:"qx.event.type.Data"},members:{__eS:null,getSelection:function(){var a=this.__nG().getSelected();return a?[a]:[]},setSelection:function(a){switch(a.length){case 0:this.resetSelection();break;case 1:this.__nG().setSelected(a[0]);break;default:throw Error("Could only select one item, but the selection array contains "+a.length+" items!");}},resetSelection:function(){this.__nG().resetSelected()},isSelected:function(a){return this.__nG().isSelected(a)},
isSelectionEmpty:function(){return this.__nG().isSelectionEmpty()},getSelectables:function(a){return this.__nG().getSelectables(a)},_onChangeSelected:function(a){var b=a.getData(),a=a.getOldData();b==null?b=[]:b=[b];a==null?a=[]:a=[a];this.fireDataEvent("changeSelection",b,a)},__nG:function(){if(this.__eS==null){var a=this;this.__eS=new qx.ui.core.SingleSelectionManager({getItems:function(){return a._getItems()},isItemSelectable:function(b){return a._isItemSelectable?a._isItemSelectable(b):b.isVisible()}});
this.__eS.addListener("changeSelected",this._onChangeSelected,this)}this.__eS.setAllowEmptySelection(this._isAllowEmptySelection());return this.__eS}},destruct:function(){this._disposeObjects("__eS")}})})();
(function(){qx.Class.define("qx.ui.core.SingleSelectionManager",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);qx.core.Environment.get("qx.debug")&&qx.core.Assert.assertInterface(a,qx.ui.core.ISingleSelectionProvider,"Invalid selectionProvider!");this.__nH=a},events:{changeSelected:"qx.event.type.Data"},properties:{allowEmptySelection:{check:"Boolean",init:true,apply:"__nJ"}},members:{__nI:null,__nH:null,getSelected:function(){return this.__nI},setSelected:function(a){if(!this.__nL(a))throw Error("Could not select "+
a+", because it is not a child element!");this.__nK(a)},resetSelected:function(){this.__nK(null)},isSelected:function(a){if(!this.__nL(a))throw Error("Could not check if "+a+" is selected, because it is not a child element!");return this.__nI===a},isSelectionEmpty:function(){return this.__nI==null},getSelectables:function(a){for(var b=this.__nH.getItems(),c=[],d=0;d<b.length;d++)this.__nH.isItemSelectable(b[d])&&c.push(b[d]);if(!a)for(d=c.length-1;d>=0;d--)c[d].getEnabled()||c.splice(d,1);return c},
__nJ:function(a){a||this.__nK(this.__nI)},__nK:function(a){var b=this.__nI;if(!(a!=null&&b===a)){if(!this.isAllowEmptySelection()&&a==null){var c=this.getSelectables(true)[0];c&&(a=c)}this.__nI=a;this.fireDataEvent("changeSelected",a,b)}},__nL:function(a){for(var b=this.__nH.getItems(),c=0;c<b.length;c++)if(b[c]===a)return true;return false}},destruct:function(){this.__nH.toHashCode?this._disposeObjects("__nH"):this.__nH=null;this._disposeObjects("__nI")}})})();
(function(){qx.Interface.define("qx.ui.core.ISingleSelectionProvider",{members:{getItems:function(){},isItemSelectable:function(){}}})})();
(function(){qx.Class.define("qx.ui.form.RadioGroup",{extend:qx.core.Object,implement:[qx.ui.core.ISingleSelection,qx.ui.form.IForm,qx.ui.form.IModelSelection],include:[qx.ui.core.MSingleSelectionHandling,qx.ui.form.MModelSelection],construct:function(a){qx.core.Object.call(this);this.__lD=[];this.addListener("changeSelection",this.__nT,this);a!=null&&this.add.apply(this,arguments)},properties:{enabled:{check:"Boolean",apply:"_applyEnabled",event:"changeEnabled",init:true},wrap:{check:"Boolean",init:true},
allowEmptySelection:{check:"Boolean",init:false,apply:"_applyAllowEmptySelection"},valid:{check:"Boolean",init:true,apply:"_applyValid",event:"changeValid"},required:{check:"Boolean",init:false,event:"changeRequired"},invalidMessage:{check:"String",init:"",event:"changeInvalidMessage",apply:"_applyInvalidMessage"},requiredInvalidMessage:{check:"String",nullable:true,event:"changeInvalidMessage"}},members:{__lD:null,getItems:function(){return this.__lD},add:function(a){for(var b=this.__lD,c,d=0,e=
arguments.length;d<e;d++)c=arguments[d],qx.lang.Array.contains(b,c)||(c.addListener("changeValue",this._onItemChangeChecked,this),b.push(c),c.setGroup(this),c.getValue()&&this.setSelection([c]));!this.isAllowEmptySelection()&&b.length>0&&!this.getSelection()[0]&&this.setSelection([b[0]])},remove:function(a){var b=this.__lD;qx.lang.Array.contains(b,a)&&(qx.lang.Array.remove(b,a),a.getGroup()===this&&a.resetGroup(),a.removeListener("changeValue",this._onItemChangeChecked,this),a.getValue()&&this.resetSelection())},
getChildren:function(){return this.__lD},_onItemChangeChecked:function(a){a=a.getTarget();a.getValue()?this.setSelection([a]):this.getSelection()[0]==a&&this.resetSelection()},_applyInvalidMessage:function(a){for(var b=0;b<this.__lD.length;b++)this.__lD[b].setInvalidMessage(a)},_applyValid:function(a){for(var b=0;b<this.__lD.length;b++)this.__lD[b].setValid(a)},_applyEnabled:function(a){var b=this.__lD;if(a==null)for(var c=0,d=b.length;c<d;c++)b[c].resetEnabled();else{c=0;for(d=b.length;c<d;c++)b[c].setEnabled(a)}},
_applyAllowEmptySelection:function(a){!a&&this.isSelectionEmpty()&&this.resetSelection()},selectNext:function(){var a=this.getSelection()[0],b=this.__lD,a=b.indexOf(a);if(a!=-1){for(var c=0,d=b.length,a=this.getWrap()?(a+1)%d:Math.min(a+1,d-1);c<d&&!b[a].getEnabled();)a=(a+1)%d,c++;this.setSelection([b[a]])}},selectPrevious:function(){var a=this.getSelection()[0],b=this.__lD,a=b.indexOf(a);if(a!=-1){for(var c=0,d=b.length,a=this.getWrap()?(a-1+d)%d:Math.max(a-1,0);c<d&&!b[a].getEnabled();)a=(a-1+
d)%d,c++;this.setSelection([b[a]])}},_getItems:function(){return this.getItems()},_isAllowEmptySelection:function(){return this.isAllowEmptySelection()},_isItemSelectable:function(a){return this.__lD.indexOf(a)!=-1},__nT:function(a){var b=a.getData()[0];(a=a.getOldData()[0])&&a.setValue(false);b&&b.setValue(true)}},destruct:function(){this._disposeArray("__lD")}})})();
(function(){qx.Class.define("qx.ui.form.ToggleButton",{extend:qx.ui.basic.Atom,include:[qx.ui.core.MExecutable],implement:[qx.ui.form.IBooleanForm,qx.ui.form.IExecutable,qx.ui.form.IRadioItem],construct:function(a,b){qx.ui.basic.Atom.call(this,a,b);this.addListener("mouseover",this._onMouseOver);this.addListener("mouseout",this._onMouseOut);this.addListener("mousedown",this._onMouseDown);this.addListener("mouseup",this._onMouseUp);this.addListener("keydown",this._onKeyDown);this.addListener("keyup",
this._onKeyUp);this.addListener("execute",this._onExecute,this)},properties:{appearance:{refine:true,init:"button"},focusable:{refine:true,init:true},value:{check:"Boolean",nullable:true,event:"changeValue",apply:"_applyValue",init:false},group:{check:"qx.ui.form.RadioGroup",nullable:true,apply:"_applyGroup"},triState:{check:"Boolean",apply:"_applyTriState",nullable:true,init:null}},members:{_applyGroup:function(a,b){b&&b.remove(this);a&&a.add(this)},_applyValue:function(a,b){a?this.addState("checked"):
this.removeState("checked");this.isTriState()&&(a===null?this.addState("undetermined"):b===null&&this.removeState("undetermined"))},_applyTriState:function(){this._applyValue(this.getValue())},_onExecute:function(){this.toggleValue()},_onMouseOver:function(a){a.getTarget()===this&&(this.addState("hovered"),this.hasState("abandoned")&&(this.removeState("abandoned"),this.addState("pressed")))},_onMouseOut:function(a){a.getTarget()===this&&(this.removeState("hovered"),this.hasState("pressed")&&(this.getValue()||
this.removeState("pressed"),this.addState("abandoned")))},_onMouseDown:function(a){a.isLeftPressed()&&(this.capture(),this.removeState("abandoned"),this.addState("pressed"),a.stopPropagation())},_onMouseUp:function(a){this.releaseCapture();this.hasState("abandoned")?this.removeState("abandoned"):this.hasState("pressed")&&this.execute();this.removeState("pressed");a.stopPropagation()},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case "Enter":case "Space":this.removeState("abandoned"),this.addState("pressed"),
a.stopPropagation()}},_onKeyUp:function(a){if(this.hasState("pressed"))switch(a.getKeyIdentifier()){case "Enter":case "Space":this.removeState("abandoned"),this.execute(),this.removeState("pressed"),a.stopPropagation()}}}})})();
(function(){qx.Class.define("qx.ui.form.CheckBox",{extend:qx.ui.form.ToggleButton,include:[qx.ui.form.MForm,qx.ui.form.MModelProperty],implement:[qx.ui.form.IForm,qx.ui.form.IModel],construct:function(a){qx.core.Environment.get("qx.debug")&&this.assertArgumentsCount(arguments,0,1);qx.ui.form.ToggleButton.call(this,a);this.setValue(false)},properties:{appearance:{refine:true,init:"checkbox"},allowGrowX:{refine:true,init:false}},members:{_forwardStates:{invalid:true,focused:true,undetermined:true,checked:true,
hovered:true},_bindableProperties:["enabled","label","toolTipText","value","menu"]}})})();(function(){qx.Class.define("qx.ui.core.Spacer",{extend:qx.ui.core.LayoutItem,construct:function(a,b){qx.ui.core.LayoutItem.call(this);this.setWidth(a!=null?a:0);this.setHeight(b!=null?b:0)},members:{checkAppearanceNeeds:function(){},addChildrenToQueue:function(){},destroy:function(){if(!this.$$disposed){var a=this.$$parent;a&&a._remove(this);qx.ui.core.queue.Dispose.add(this)}}}})})();
(function(){qx.Class.define("arskom.Application",{extend:qx.application.Standalone,properties:{_wsc:{check:"soap.ClientCollection"},_fsm:{check:"qx.util.fsm.FiniteStateMachine"}},statics:{wsc:null},construct:function(){qx.application.Standalone.call(this);arskom.Application.wsc=new soap.ClientCollection(document.location.protocol+"//"+document.location.host,arskom.soap.Client,arskom.soap.RequestHeader);this.set_wsc(arskom.Application.wsc)},members:{fsm:null,st_main:null,APP_NAME:"ArskomApplication",
init_fsm:function(a,b){var c,d,e=this;e.set_fsm(new qx.util.fsm.FiniteStateMachine(this.APP_NAME));e.fsm=e.get_fsm();c=new qx.ui.container.Composite(new qx.ui.layout.Canvas);this.getRoot().add(c,{edge:0});e.fsm.addObject("root_screen",c);var f=arskom.ui.impl.user.Preferences;c=new qx.util.fsm.State("entry_point",{onentry:function(){},onexit:function(){},events:{application_entry:"to_login_screen"}});e.fsm.addState(c);d=new qx.util.fsm.Transition("to_login_screen",{predicate:true,nextState:"awaiting_login",
ontransition:function(a){var b=a.getObject("root_screen");b.removeAll();var c=arskom.Cookie.getInstance(),d=qx.util.Uri.parseUri(window.location.href),f,l,m;c.start_cookie()&&(f=c.get_domain_name(),l=c.get_user_name(),m=c.get_cid());d.queryKey._domain_name&&d.queryKey._user_name&&d.queryKey._cookie&&(f=arskom.misc.url_decode(d.queryKey._domain_name),l=arskom.misc.url_decode(d.queryKey._user_name),m=arskom.misc.url_decode(d.queryKey._cookie));if(f&&l&&m){var d=e.get_wsc().c.authn,n=arskom.ui.impl.Login.s_login_service_name,
o=new soap.Parameters;o.add("cookie",m);o.add("domain_name",f);o.add("user_name",l);d.callAsync(n,o,false,function(b){arskom.ui.impl.Login.apply_session(b,f,l,true);a.fireImmediateEvent("successful_login")},function(){c.delete_user_cookie();var d=new arskom.ui.impl.Login(a,false,true,e.get_wsc());b.add(d.getWidget(),{edge:0})})}else c.delete_user_cookie(),m=new arskom.ui.impl.Login(a,false,true,e.get_wsc()),m.set_wsc(e.get_wsc()),b.add(m.getWidget(),{edge:0})}});c.addTransition(d);c=new qx.util.fsm.State("awaiting_login",
{onentry:function(){},onexit:function(){},events:{successful_login:"check_preferences"}});e.fsm.addState(c);d=new qx.util.fsm.Transition("check_preferences",{predicate:true,nextState:"awaiting_preferences",ontransition:function(c){var d=arskom.ui.impl.Login.s_user_prefs;if(d==null||arskom.misc.is_na(d.get_language())||arskom.misc.is_na(d.get_time_zone())){d=c.getObject("root_screen");d.removeAll();var i=f.getInstance();i.set_wsc(e.get_wsc());i.reset(a,b);i.setFsm(c);i.setDomain_name(arskom.ui.impl.Login.s_domain_name);
i.setUser_name(arskom.ui.impl.Login.s_user_name);i.btn_close.setVisibility("hidden");i.set_to_screen();d.setLayout(new qx.ui.layout.Canvas);var c=new qx.ui.container.Composite(new qx.ui.layout.HBox(0)),j=new qx.ui.container.Composite(new qx.ui.layout.VBox);j.set({alignY:"middle",allowGrowY:false});c.add(j,{flex:1});var k=new qx.ui.container.Composite;k.setAlignX("center");k.set({maxWidth:450,maxHeight:350});var l=new qx.ui.layout.VBox;k.setLayout(l);k.add(i.getWidget());j.add(k);d.add(c,{edge:0})}else c.fireImmediateEvent("successful_set_preferences")}});
c.addTransition(d);c=new qx.util.fsm.State("awaiting_preferences",{onentry:function(){},onexit:function(){},events:{successful_set_preferences:"to_main_screen"}});e.fsm.addState(c);d=new qx.util.fsm.Transition("to_main_screen",{predicate:true,nextState:"main_screen",ontransition:function(a){var b=arskom.misc.force_trim(arskom.ui.impl.Login.s_user_prefs.get_language());qx.locale.Manager.getInstance().setLocale(b);qx.log.Logger.debug("Locale set to: "+b);a.getObject("root_screen").removeAll();e.init_main_application()}});
c.addTransition(d);c=new qx.util.fsm.State("main_screen",{onentry:function(){},onexit:function(){},events:{logout:"relogin"}});e.fsm.addState(c);this.st_main=c;d=new qx.util.fsm.Transition("relogin",{predicate:true,nextState:"entry_point",ontransition:function(a){arskom.Cookie.getInstance().delete_user_cookie();a.getObject("root_screen").removeAll();window.location.reload(false)}});c.addTransition(d);e.fsm.start();e.fsm.fireImmediateEvent("application_entry")}}})})();
(function(){qx.Class.define("qx.util.fsm.FiniteStateMachine",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this.setName(a);this.__im={};this.__nU=null;this.__nV=[];this.__nW=[];this.__nX=[];this.__nY={};this.__oa={};this.__ob={};this.__oc={};this.__od={}},statics:{StateChange:{CURRENT_STATE:1,POP_STATE_STACK:2,TERMINATE:3},EventHandling:{PREDICATE:1,BLOCKED:2},DebugFlags:{EVENTS:1,TRANSITIONS:2,FUNCTION_DETAIL:4,OBJECT_NOT_FOUND:8}},properties:{name:{check:"String",nullable:true},
state:{check:"String",nullable:true},previousState:{check:"String",nullable:true},nextState:{check:"String",nullable:true},maxSavedStates:{check:"Number",init:2},debugFlags:{check:"Number",init:7}},members:{__im:null,__nU:null,__nW:null,__nX:null,__nV:null,__nY:null,__oa:null,__ob:null,__oc:null,__od:null,__oe:false,addState:function(a){if(!a instanceof qx.util.fsm.State)throw Error("Invalid state: not an instance of qx.util.fsm.State");var b=a.getName();if(b in this.__im)throw Error("State "+b+" already exists");
if(this.__nU==null)this.__nU=b;this.__im[b]=a},replaceState:function(a,b){if(!a instanceof qx.util.fsm.State)throw Error("Invalid state: not an instance of qx.util.fsm.State");var c=a.getName(),d=this.__im[c];this.__im[c]=a;if(b)d._bNeedDispose=true;return d},addObject:function(a,b,c){var d=b.toHashCode();this.__oa[a]=d;this.__ob[d]=a;this.__nY[a]=b;if(c){typeof c=="string"&&(c=[c]);for(b=0;b<c.length;b++)d=c[b],this.__oc[d]||(this.__oc[d]={}),this.__oc[d][a]=true,this.__od[a]||(this.__od[a]=[]),
this.__od[a]=this.__od[a].concat(c)}},removeObject:function(a){var b=this.__oa[a];if(this.__od[a]){for(var c in this.__od[a])delete this.__oc[c];delete this.__od[a]}delete this.__ob[b];delete this.__oa[a];delete this.__nY[a]},getObject:function(a){return this.__nY[a]},getFriendlyName:function(a){return(a=a?a.toHashCode():null)?this.__ob[a]:null},getGroupObjects:function(a){var b=[],c;for(c in this.__oc[a])b.push(c);return b},displayAllObjects:function(){for(var a in this.__oa){var b=this.__oa[a],
c=this.getObject(a);this.debug(a+" => "+b);this.debug("  "+b+" => "+this.__ob[b]);this.debug("  "+a+" => "+this.getObject(a));this.debug("  "+this.getObject(a)+" => "+this.getFriendlyName(c))}},start:function(){var a=this.__nU;if(a==null)throw Error("Machine started with no available states");this.setState(a);this.setPreviousState(null);this.setNextState(null);var b=this.getDebugFlags()&qx.util.fsm.FiniteStateMachine.DebugFlags.FUNCTION_DETAIL;b&&this.debug(this.getName()+"#"+a+"#actionsBeforeOnentry");
this.__im[a].getAutoActionsBeforeOnentry()(this);b&&this.debug(this.getName()+"#"+a+"#entry");this.__im[a].getOnentry()(this,null);b&&this.debug(this.getName()+"#"+a+"#actionsAfterOnentry");this.__im[a].getAutoActionsAfterOnentry()(this)},pushState:function(a){if(this.__nV.length>=this.getMaxSavedStates())throw Error("Saved-state stack is full");a===true?this.__nV.push(this.getState()):a?this.__nV.push(a):this.__nV.push(this.getPreviousState())},popState:function(){if(this.__nV.length==0)throw Error("Saved-state stack is empty");
return this.__nV.pop()},postponeEvent:function(a){this.__nX.unshift(a)},enqueueEvent:function(a,b){b?this.__nW.push(a):this.__nW.unshift(a);if(this.getDebugFlags()&qx.util.fsm.FiniteStateMachine.DebugFlags.EVENTS){var c=this.getFriendlyName(a.getTarget());b?this.debug(this.getName()+": Pushed event: "+a.getType()+(c?" on "+c:"")):this.debug(this.getName()+": Queued event: "+a.getType()+(c?" on "+c:""))}},eventListener:function(a){this.enqueueEvent(a.clone(),false);this.__of()},fireImmediateEvent:function(a,
b,c){a=c?qx.event.Registration.createEvent(a,qx.event.type.Data,[c,null,false]):qx.event.Registration.createEvent(a,qx.event.type.Event,[false,false]);a.setTarget(b);this.eventListener(a)},scheduleEvent:function(a,b,c,d){qx.event.Timer.once(function(){this.fireImmediateEvent(a,b,c)},this,d||20)},__of:function(){if(!this.__oe){for(this.__oe=true;this.__nW.length>0;){var a=this.__nW.pop();this.__og(a)&&a.dispose()}this.__oe=false}},__og:function(a){var b,c,d,e,f;b=this.getDebugFlags();var g=b&qx.util.fsm.FiniteStateMachine.DebugFlags.EVENTS,
h=b&qx.util.fsm.FiniteStateMachine.DebugFlags.TRANSITIONS,i=b&qx.util.fsm.FiniteStateMachine.DebugFlags.FUNCTION_DETAIL,j=b&qx.util.fsm.FiniteStateMachine.DebugFlags.OBJECT_NOT_FOUND,k=this.getFriendlyName(a.getTarget());g&&this.debug(this.getName()+": Process event: "+a.getType()+(k?" on "+k:""));b=this.getState();e=this.__im[b];c=e.transitions;f=e.getEvents()[a.getType()];if(!f)return g&&this.debug(this.getName()+": Event '"+a.getType()+"' not handled.  Ignoring."),true;if(typeof f=="object"){if(!k)return j&&
this.debug(this.getName()+": Could not find friendly name for '"+a.getType()+"' on '"+a.getTarget()+"'"),true;f=f[k];if(!f)return g&&this.debug(this.getName()+": Event '"+a.getType()+"' not handled for target "+k+".  Ignoring."),true}switch(f){case qx.util.fsm.FiniteStateMachine.EventHandling.PREDICATE:break;case qx.util.fsm.FiniteStateMachine.EventHandling.BLOCKED:return g&&this.debug(this.getName()+": Event '"+a.getType()+"' blocked.  Re-queuing."),this.__nX.unshift(a),false;default:if(typeof f==
"string")if(c[f])g=c[f],c={},c[f]=g;else throw Error("Explicit transition "+f+" does not exist");}for(d in c){g=c[d];switch(g.getPredicate()(this,a)){case true:break;case false:continue;case null:return true;default:throw Error("Transition "+b+":"+d+" returned a value other than true, false, or null.");}c=g.getNextState();if(typeof c=="string"){if(!c in this.__im)throw Error("Attempt to transition to nonexistent state "+c);this.setNextState(c)}else switch(c){case qx.util.fsm.FiniteStateMachine.StateChange.CURRENT_STATE:c=
b;this.setNextState(c);break;case qx.util.fsm.FiniteStateMachine.StateChange.POP_STATE_STACK:if(this.__nV.length==0)throw Error("Attempt to transition to POP_STATE_STACK while state stack is empty.");c=this.__nV.pop();this.setNextState(c);break;default:throw Error("Internal error: invalid nextState");}i&&this.debug(this.getName()+"#"+b+"#"+d+"#autoActionsBeforeOntransition");g.getAutoActionsBeforeOntransition()(this);i&&this.debug(this.getName()+"#"+b+"#"+d+"#ontransition");g.getOntransition()(this,
a);i&&this.debug(this.getName()+"#"+b+"#"+d+"#autoActionsAfterOntransition");g.getAutoActionsAfterOntransition()(this);i&&this.debug(this.getName()+"#"+b+"#autoActionsBeforeOnexit");e.getAutoActionsBeforeOnexit()(this);i&&this.debug(this.getName()+"#"+b+"#exit");e.getOnexit()(this,a);i&&this.debug(this.getName()+"#"+b+"#autoActionsAfterOnexit");e.getAutoActionsAfterOnexit()(this);e._bNeedDispose&&e.dispose();e=this.__im[this.getNextState()];this.setPreviousState(b);this.setState(this.getNextState());
this.setNextState(null);d=b;b=c;i&&this.debug(this.getName()+"#"+b+"#autoActionsBeforeOnentry");e.getAutoActionsBeforeOnentry()(this);i&&this.debug(this.getName()+"#"+b+"#entry");e.getOnentry()(this,a);i&&this.debug(this.getName()+"#"+b+"#autoActionsAfterOnentry");e.getAutoActionsAfterOnentry()(this);for(a=0;a<this.__nX.length;a++)f=this.__nX.pop(),this.__nW.unshift(f);h&&this.debug(this.getName()+"#"+d+" => "+this.getName()+"#"+b);return true}h&&this.debug(this.getName()+"#"+b+": event '"+a.getType()+
"': no transition found.  No state change.");return true}},destruct:function(){this._disposeArray("__nW");this._disposeArray("__nX");this.__nV=this.__im=null}})})();
(function(){qx.Class.define("qx.util.fsm.State",{extend:qx.core.Object,construct:function(a,b){var c;qx.core.Object.call(this);this.setName(a);if(typeof b!="object")throw Error("State info must be an object");c=b.context||window;this.setUserData("context",c);for(var d in b)switch(d){case "onentry":this.setOnentry(this.__op(b[d],c));break;case "onexit":this.setOnexit(this.__op(b[d],c));break;case "autoActionsBeforeOnentry":this.setAutoActionsBeforeOnentry(b[d]);break;case "autoActionsAfterOnentry":this.setAutoActionsAfterOnentry(b[d]);
break;case "autoActionsBeforeOnexit":this.setAutoActionsBeforeOnexit(b[d]);break;case "autoActionsAfterOnexit":this.setAutoActionsAfterOnexit(b[d]);break;case "events":this.setEvents(b[d]);break;case "context":break;default:this.setUserData(d,b[d]),this.debug("State "+a+": Adding user-provided field to state: "+d)}if(!this.getEvents())throw Error("The events object must be provided in new state info");this.transitions={}},statics:{_commonTransformAutoActions:function(a,b,c){if(typeof b!="object")throw Error("Invalid "+
a+" value: "+typeof b);var d="try{",e,f;for(f in b){var g=b[f];if(!g instanceof Array)throw Error("Invalid function request type: expected array, found "+typeof g);for(var h=0;h<g.length;h++){e=g[h];if(typeof e!="object")throw Error("Invalid function request parameter type: expected object, found "+typeof g[void 0]);var i=e.parameters;if(i){if(!i instanceof Array)throw Error("Invalid function parameters: expected array, found "+typeof i);}else i=[];for(var a=f+"(",j=0;j<i.length;j++)j!=0&&(a+=","),
a+=typeof i[j]=="function"?"("+i[j]+")(fsm)":typeof i[j]=="string"?'"'+i[j]+'"':i[j];a+=")";if(i=e.objects){if(!i instanceof Array)throw Error("Invalid 'objects' list: expected array, got "+typeof i);}else i=[];for(j=0;j<i.length;j++){if(typeof i[j]!="string")throw Error("Invalid friendly name in 'objects' list: "+i[j]);d+=" fsm.getObject('"+i[j]+"')."+a+";"}if(e=e.groups){if(!e instanceof Array)throw Error("Invalid 'groups' list: expected array, got "+typeof e);for(j=0;j<e.length;j++)d+="  var groupObjects =     fsm.getGroupObjects('"+
e[j]+"');  for (var i = 0; i < groupObjects.length; i++)  {    var objName = groupObjects[i];    fsm.getObject(objName)."+a+";  }"}}}d+="}catch(ex){  fsm.debug(ex);}";return qx.lang.Function.bind(new Function("fsm",d),c)}},properties:{name:{transform:"__oh",nullable:true},onentry:{transform:"__oi",nullable:true,init:function(){}},onexit:{transform:"__oj",nullable:true,init:function(){}},autoActionsBeforeOnentry:{transform:"__ol",nullable:true,init:function(){}},autoActionsAfterOnentry:{transform:"__om",
nullable:true,init:function(){}},autoActionsBeforeOnexit:{transform:"__on",nullable:true,init:function(){}},autoActionsAfterOnexit:{transform:"__oo",nullable:true,init:function(){}},events:{transform:"__ok",nullable:true}},members:{__oh:function(a){if(typeof a!="string"||a.length<1)throw Error("Invalid state name");return a},__oi:function(a){switch(typeof a){case "undefined":return function(){};case "function":return qx.lang.Function.bind(a,this.getUserData("context"));default:throw Error("Invalid onentry type: "+
typeof a);}},__oj:function(a){switch(typeof a){case "undefined":return function(){};case "function":return qx.lang.Function.bind(a,this.getUserData("context"));default:throw Error("Invalid onexit type: "+typeof a);}},__ok:function(a){if(typeof a!="object")throw Error("events must be an object");for(var b in a){var c=a[b];if(typeof c=="number"&&c!=qx.util.fsm.FiniteStateMachine.EventHandling.PREDICATE&&c!=qx.util.fsm.FiniteStateMachine.EventHandling.BLOCKED)throw Error("Invalid numeric value in events object: "+
b+": "+c);else if(typeof c=="object")for(var d in c)if(typeof c[d]=="number"&&c[d]!=qx.util.fsm.FiniteStateMachine.EventHandling.PREDICATE&&c[d]!=qx.util.fsm.FiniteStateMachine.EventHandling.BLOCKED)throw Error("Invalid numeric value in events object ("+b+"): "+d+": "+c[d]);else{if(typeof c[d]!="string"&&typeof c[d]!="number")throw Error("Invalid value in events object ("+b+"): "+d+": "+c[d]);}else if(typeof c!="string"&&typeof c!="number")throw Error("Invalid value in events object: "+b+": "+a[b]);
}return a},__ol:function(a){return qx.util.fsm.State._commonTransformAutoActions("autoActionsBeforeOnentry",a,this.getUserData("context"))},__om:function(a){return qx.util.fsm.State._commonTransformAutoActions("autoActionsAfterOnentry",a,this.getUserData("context"))},__on:function(a){return qx.util.fsm.State._commonTransformAutoActions("autoActionsBeforeOnexit",a,this.getUserData("context"))},__oo:function(a){return qx.util.fsm.State._commonTransformAutoActions("autoActionsAfterOnexit",a,this.getUserData("context"))},
__op:function(a,b){typeof a=="function"&&(a=qx.lang.Function.bind(a,b));return a},addTransition:function(a){if(!a instanceof qx.util.fsm.Transition)throw Error("Invalid transition: not an instance of qx.util.fsm.Transition");this.transitions[a.getName()]=a}}})})();
(function(){qx.Class.define("qx.util.fsm.Transition",{extend:qx.core.Object,construct:function(a,b){var c;qx.core.Object.call(this);this.setName(a);c=b.context||window;this.setUserData("context",c);for(var d in b)switch(d){case "predicate":this.setPredicate(this.__op(b[d],c));break;case "nextState":this.setNextState(b[d]);break;case "autoActionsBeforeOntransition":this.setAutoActionsBeforeOntransition(this.__op(b[d],c));break;case "autoActionsAfterOntransition":this.setAutoActionsAfterOntransition(this.__op(b[d],
c));break;case "ontransition":this.setOntransition(this.__op(b[d],c));break;case "context":break;default:this.setUserData(d,b[d]),this.debug("Transition "+a+": Adding user-provided field to transition: "+d)}},properties:{name:{check:"String",nullable:true},predicate:{init:function(){return true},transform:"__oq"},nextState:{init:qx.util.fsm.FiniteStateMachine.StateChange.CURRENT_STATE,transform:"__or"},autoActionsBeforeOntransition:{init:function(){},transform:"__os"},autoActionsAfterOntransition:{init:function(){},
transform:"__ot"},ontransition:{init:function(){},transform:"__ou"}},members:{__oq:function(a){switch(typeof a){case "undefined":return function(){return true};case "boolean":return function(){return a};case "function":return qx.lang.Function.bind(a,this.getUserData("context"));default:throw Error("Invalid transition predicate type: "+typeof a);}},__or:function(a){switch(typeof a){case "string":return a;case "number":switch(a){case qx.util.fsm.FiniteStateMachine.StateChange.CURRENT_STATE:case qx.util.fsm.FiniteStateMachine.StateChange.POP_STATE_STACK:case qx.util.fsm.FiniteStateMachine.StateChange.TERMINATE:return a;
default:throw Error("Invalid transition nextState value: "+a+": nextState must be an explicit state name, or one of the Fsm.StateChange constants");}default:throw Error("Invalid transition nextState type: "+typeof a);}},__os:function(a){return qx.util.fsm.State._commonTransformAutoActions("autoActionsBeforeOntransition",a,this.getUserData("context"))},__ot:function(a){return qx.util.fsm.State._commonTransformAutoActions("autoActionsAfterOntransition",a,this.getUserData("context"))},__ou:function(a){switch(typeof a){case "undefined":return function(){};
case "function":return qx.lang.Function.bind(a,this.getUserData("context"));default:throw Error("Invalid ontransition type: "+typeof a);}},__op:function(a,b){typeof a=="function"&&(a=qx.lang.Function.bind(a,b));return a}}})})();
(function(){qx.Class.define("arskom.Object",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this)},destruct:function(){this.__ov!=null&&this._disposeObjects(this.__ov)},members:{__ov:null,get_factory:function(){if(this.__ov==null)this.__ov=new arskom.InstPool;return this.__ov}}})})();
(function(){qx.Class.define("arskom.InstPool",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__fC={}},destruct:function(){this._disposeMap(this.__fC)},members:{__fC:null,get_instance:function(a,b){var c=a.classname,d=this.__fC[c];d||(d=new a,this.__fC[c]=d,b&&b(d));return d}}})})();
(function(){qx.Class.define("arskom.ui.draw.user.Preferences",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_user_preferences())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,bottom_bar:null,btn_close:null,btn_save:null,centralwidget:null,cmb_language:null,cmb_time_zone_city:null,cmb_time_zone_region:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_bottom_bar:function(){var a=this.bottom_bar=new qx.ui.container.Composite(this.create_horizontalLayout());
a.setHeight(25);a.setMaxHeight(25);a.setMargin(1);a.setMinHeight(25);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer_2(),{flex:1});return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(22);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);
a.setMaxWidth(90);a.setLabel(this.tr("Save"));a.setMargin(1);a.setMinHeight(22);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_gb1(),{flex:1});a.add(this.create_bottom_bar(),{flex:1});return a},create_cmb_language:function(){var a=this.cmb_language=new qx.ui.form.SelectBox;a.setWidth(250);a.setMargin(1);a.setMinWidth(250);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("English"),
null,"en"));a.add(new qx.ui.form.ListItem(this.tr("Turkce"),null,"tr"));return a},create_cmb_time_zone_city:function(){var a=this.cmb_time_zone_city=new qx.ui.form.SelectBox;a.setWidth(150);a.setMaxWidth(150);a.setMargin(1);a.setMinWidth(150);a.setAllowGrowY(false);return a},create_cmb_time_zone_region:function(){var a=this.cmb_time_zone_region=new qx.ui.form.SelectBox;a.setWidth(100);a.setMaxWidth(100);a.setMargin(1);a.setMinWidth(100);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("UTC"),
null,"UTC"));a.add(new qx.ui.form.ListItem(this.tr("Africa"),null,"Africa"));a.add(new qx.ui.form.ListItem(this.tr("America"),null,"America"));a.add(new qx.ui.form.ListItem(this.tr("Antarctica"),null,"Antarctica"));a.add(new qx.ui.form.ListItem(this.tr("Arctic"),null,"Arctic"));a.add(new qx.ui.form.ListItem(this.tr("Asia"),null,"Asia"));a.add(new qx.ui.form.ListItem(this.tr("Atlantic"),null,"Atlantic"));a.add(new qx.ui.form.ListItem(this.tr("Australia"),null,"Australia"));a.add(new qx.ui.form.ListItem(this.tr("Europe"),
null,"Europe"));a.add(new qx.ui.form.ListItem(this.tr("Pacific"),null,"Pacific"));return a},create_edt_current_password:function(){var a=this.edt_current_password=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_password:function(){var a=this.edt_password=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_password_again:function(){var a=this.edt_password_again=new qx.ui.form.TextField;a.setMargin(1);return a},create_gb1:function(){var a=this.gb1=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("User Preferences"));
a.setMargin(1);a.setLayout(this.create_gridLayout());a.add(this.create_label_3(),{column:0,row:0});a.add(this.create_spc1(),{column:2,row:9});a.add(this.create_cmb_language(),{column:2,row:1});a.add(this.create_label(),{column:0,row:1});a.add(this.create_widget_2(),{column:2,row:0});a.add(this.create_groupBox(),{colSpan:3,column:0,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,0);b.setRowFlex(2,1);b.setRowFlex(9,1);b.setColumnFlex(0,1);b.setColumnFlex(2,1);return a},create_gridLayout:function(){return this.gridLayout=
new qx.ui.layout.Grid},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},create_groupBox:function(){var a=this.groupBox=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Change Password"));a.setMargin(1);a.setLayout(this.create_gridLayout_2());a.add(this.create_label_5(),{column:0,row:0});a.add(this.create_edt_current_password(),{column:1,row:0});a.add(this.create_label_2(),{column:0,row:1});a.add(this.create_edt_password(),{column:1,row:1});a.add(this.create_label_4(),
{column:0,row:2});a.add(this.create_edt_password_again(),{column:1,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);
return a},create_horizontalSpacer_2:function(){var a=this.horizontalSpacer_2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Language"));a.setMargin(1);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("New Password"));a.setMargin(1);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setWidth(120);a.setMaxWidth(120);
a.setValue(this.tr("Time Zone"));a.setMargin(1);a.setMinWidth(120);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;a.setWidth(150);a.setMaxWidth(150);a.setValue(this.tr("New Password (again)"));a.setMargin(1);a.setMinWidth(150);return a},create_label_5:function(){var a=this.label_5=new qx.ui.basic.Label;a.setValue(this.tr("Current Password"));a.setMargin(1);return a},create_spc1:function(){var a=this.spc1=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(20);a.setMargin(1);
return a},create_user_preferences:function(){var a=this.user_preferences=new qx.ui.container.Composite(this.create___lv());a.setHeight(342);a.setWidth(615);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_widget_2:function(){var a=this.widget_2=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setWidth(100);a.setMargin(1);a.setMinWidth(100);a.add(this.create_cmb_time_zone_region(),
{flex:1});a.add(this.create_cmb_time_zone_city(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});return a},edt_current_password:null,edt_password:null,edt_password_again:null,gb1:null,gridLayout:null,gridLayout_2:null,groupBox:null,horizontalLayout:null,horizontalLayout_2:null,horizontalSpacer:null,horizontalSpacer_2:null,label:null,label_2:null,label_3:null,label_4:null,label_5:null,spc1:null,user_preferences:null,verticalLayout:null,widget_2:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("qx.ui.form.SelectBox",{extend:qx.ui.form.AbstractSelectBox,implement:[qx.ui.core.ISingleSelection,qx.ui.form.IModelSelection],include:[qx.ui.core.MSingleSelectionHandling,qx.ui.form.MModelSelection],construct:function(){qx.ui.form.AbstractSelectBox.call(this);this._createChildControl("atom");this._createChildControl("spacer");this._createChildControl("arrow");this.addListener("mouseover",this._onMouseOver,this);this.addListener("mouseout",this._onMouseOut,this);this.addListener("click",
this._onClick,this);this.addListener("mousewheel",this._onMouseWheel,this);this.addListener("keyinput",this._onKeyInput,this);this.addListener("changeSelection",this.__nT,this)},properties:{appearance:{refine:true,init:"selectbox"}},members:{__pt:null,_createChildControlImpl:function(a){var b;switch(a){case "spacer":b=new qx.ui.core.Spacer;this._add(b,{flex:1});break;case "atom":b=new qx.ui.basic.Atom(" ");b.setCenter(false);b.setAnonymous(true);this._add(b,{flex:1});break;case "arrow":b=new qx.ui.basic.Image,
b.setAnonymous(true),this._add(b)}return b||qx.ui.form.AbstractSelectBox.prototype._createChildControlImpl.call(this,a)},_forwardStates:{focused:true},_getItems:function(){return this.getChildrenContainer().getChildren()},_isAllowEmptySelection:function(){return this.getChildrenContainer().getSelectionMode()!=="one"},__nT:function(a){var a=a.getData()[0],b=this.getChildControl("list");b.getSelection()[0]!=a&&(a?b.setSelection([a]):b.resetSelection());this.__pu();this.__pv()},__pu:function(){var a=
this.getChildControl("list").getSelection()[0],b=this.getChildControl("atom"),a=a?a.getIcon():"";a==null?b.resetIcon():b.setIcon(a)},__pv:function(){var a=this.getChildControl("list").getSelection()[0],b=this.getChildControl("atom"),c=a?a.getLabel():"",d=this.getFormat();d!=null&&(c=d.call(this,a));c&&c.translate&&(c=c.translate());c==null?b.resetLabel():b.setLabel(c)},_onMouseOver:function(a){this.isEnabled()&&a.getTarget()===this&&(this.hasState("abandoned")&&(this.removeState("abandoned"),this.addState("pressed")),
this.addState("hovered"))},_onMouseOut:function(a){this.isEnabled()&&a.getTarget()===this&&(this.removeState("hovered"),this.hasState("pressed")&&(this.removeState("pressed"),this.addState("abandoned")))},_onClick:function(){this.toggle()},_onMouseWheel:function(a){if(!this.getChildControl("popup").isVisible()){var b=a.getWheelDelta("y")>0?1:-1,c=this.getSelectables(),d=this.getSelection()[0];d||(d=c[0]);b=c.indexOf(d)+b;d=c.length-1;b<0?b=0:b>=d&&(b=d);this.setSelection([c[b]]);a.stopPropagation();
a.preventDefault()}},_onKeyPress:function(a){var b=a.getKeyIdentifier();if(b=="Enter"||b=="Space"){if(this.__pt)this.setSelection([this.__pt]),this.__pt=null;this.toggle()}else qx.ui.form.AbstractSelectBox.prototype._onKeyPress.call(this,a)},_onKeyInput:function(a){a=a.clone();a.setTarget(this._list);a.setBubbles(false);this.getChildControl("list").dispatchEvent(a)},_onListMouseDown:function(){if(this.__pt)this.setSelection([this.__pt]),this.__pt=null},_onListChangeSelection:function(a){var b=a.getData();
if((a=a.getOldData())&&a.length>0)a[0].removeListener("changeIcon",this.__pu,this),a[0].removeListener("changeLabel",this.__pv,this);if(b.length>0){var a=this.getChildControl("popup"),c=this.getChildControl("list").getSelectionContext();a.isVisible()&&(c=="quick"||c=="key")?this.__pt=b[0]:(this.setSelection([b[0]]),this.__pt=null);b[0].addListener("changeIcon",this.__pu,this);b[0].addListener("changeLabel",this.__pv,this)}else this.resetSelection()},_onPopupChangeVisibility:function(a){qx.ui.form.AbstractSelectBox.prototype._onPopupChangeVisibility.call(this,
a);a=this.getChildControl("popup");if(a.isVisible()){var b=a.getLayoutLocation(this),c=qx.bom.Viewport.getHeight(),a=b.top,b=c-b.bottom,a=a>b?a:b,b=this.getMaxListHeight(),c=this.getChildControl("list");b==null||b>a?c.setMaxHeight(a):b<a&&c.setMaxHeight(b)}else c=this.getChildControl("list"),c.hasChildren()&&c.setSelection(this.getSelection())}},destruct:function(){this.__pt=null}})})();
(function(){qx.Class.define("arskom.ui.impl.user.Preferences",{extend:arskom.ui.draw.user.Preferences,type:"singleton",include:[qx.locale.MTranslation],properties:{user_name:{check:"String"},domain_name:{check:"String"},_wsc:{check:"soap.ClientCollection"},fsm:{check:"qx.util.fsm.FiniteStateMachine",init:null,nullable:true}},construct:function(){arskom.ui.draw.user.Preferences.call(this);this.__cy=(new qx.ui.window.Window(this.tr("User - Preferences"),"")).set({width:340,height:220,showMinimize:false,
showMaximize:false});this.__cy.setResizable(false,false,false,false)},members:{__cy:null,__pw:null,create_btn_save:function(){var a=arskom.ui.draw.user.Preferences.prototype.create_btn_save.call(this);a.addListener("execute",this.save,this);return a},create_btn_close:function(){var a=arskom.ui.draw.user.Preferences.prototype.create_btn_close.call(this);a.addListener("execute",this.close,this);return a},create_cmb_time_zone_region:function(){var a=arskom.ui.draw.user.Preferences.prototype.create_cmb_time_zone_region.call(this);
a.addListener("changeSelection",this.on_time_zone_region_change,this);return a},create_cmb_time_zone_city:function(){var a=arskom.ui.draw.user.Preferences.prototype.create_cmb_time_zone_city.call(this);a.setVisibility("hidden");return a},create_edt_current_password:function(){var a=this.edt_current_password=new qx.ui.form.PasswordField;a.setMargin(1);return a},create_edt_password:function(){var a=this.edt_password=new qx.ui.form.PasswordField;a.setMargin(1);return a},create_edt_password_again:function(){var a=
this.edt_password_again=new qx.ui.form.PasswordField;a.setMargin(1);return a},reset:function(a,b){var c=this.get_wsc().c.cvs;this.edt_current_password.resetValue();this.edt_password.resetValue();this.edt_password_again.resetValue();this.cmb_language.resetSelection();a||(a="arskom.dumgr.entity.user");b||(b="UserPreference");this.__pw=c.get_object(a,b);this.btn_close.setVisibility("visible");this.setFsm(null)},on_time_zone_region_change:function(){var a=arskom.misc.get_selectbox_value(this.cmb_time_zone_region);
this.cmb_time_zone_city.removeAll();if(a=="UTC")this.cmb_time_zone_city.setVisibility("hidden");else{this.cmb_time_zone_city.setVisibility("visible");for(var a=arskom.time_zones[a],b=0;b<a.length;b++)this.cmb_time_zone_city.add(a[b])}},show:function(){this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},
set_to_screen:function(){var a=this;a.edt_current_password.resetValue();a.edt_password.resetValue();a.edt_password_again.resetValue();this.get_wsc().c.cvs.easy(arskom.ui.proc.User.GET_USER_PREF,this.getDomain_name(),this.getUser_name(),function(b){if(b!=null){a.__pw=b;arskom.misc.set_selectbox_label(a.cmb_language,b.language);var c=b.get_time_zone();c?(c=c.toString(),c=="UTC"?arskom.misc.set_selectbox_label(a.cmb_time_zone_region,c):(b=c.substring(0,c.indexOf("/")),c=c.substring(c.indexOf("/")+1,
c.length),arskom.misc.set_selectbox_label(a.cmb_time_zone_region,b),arskom.misc.set_selectbox_label(a.cmb_time_zone_city,c))):arskom.misc.set_selectbox_label(a.cmb_time_zone_region,"UTC")}})},save:function(){var a=this,b=a.edt_current_password.getValue(),c=a.edt_password.getValue(),d=a.edt_password_again.getValue();if(!(c===null&&d===null&&b===null)){if(b==null){alert(this.tr("Current Password should be specified!"));return}if(c===null||d===null){alert(this.tr("Passwords should be specified!"));return}if(c!=
d){alert(this.tr("Passwords do not match!"));return}}var d=arskom.misc.get_selectbox_value(a.cmb_time_zone_region),e=arskom.misc.get_selectbox_value(a.cmb_language);if(d=="UTC")a.__pw.set_time_zone("UTC");else{var f=arskom.misc.get_selectbox_value(a.cmb_time_zone_city);a.__pw.set_time_zone(d+"/"+f)}a.__pw.set_language(e);this.get_wsc().c.cvs.easy(arskom.ui.proc.User.SET_USER_PREF,a.getDomain_name(),a.getUser_name(),b,c,a.__pw,function(){arskom.ui.impl.Login.s_user_prefs=a.__pw;var b=a.cmb_language.getSelection()[0].getModel();
qx.locale.Manager.getInstance().setLocale(b);a.close();b=a.getFsm();b!=null&&b.fireImmediateEvent("successful_set_preferences")})},close:function(){this.__cy.close()}}})})();(function(){qx.Interface.define("qx.ui.window.IWindowManager",{members:{setDesktop:function(a){this.assertInterface(a,qx.ui.window.IDesktop)},changeActiveWindow:function(){},updateStack:function(){},bringToFront:function(a){this.assertInstance(a,qx.ui.window.Window)},sendToBack:function(a){this.assertInstance(a,qx.ui.window.Window)}}})})();
(function(){qx.Interface.define("qx.ui.window.IDesktop",{members:{setWindowManager:function(a){this.assertInterface(a,qx.ui.window.IWindowManager)},getWindows:function(){},supportsMaximize:function(){},blockContent:function(a){this.assertInteger(a)},unblockContent:function(){},isContentBlocked:function(){}}})})();
(function(){qx.Class.define("qx.ui.window.Manager",{extend:qx.core.Object,implement:qx.ui.window.IWindowManager,members:{__px:null,setDesktop:function(a){this.__px=a;this.updateStack()},getDesktop:function(){return this.__px},changeActiveWindow:function(a,b){a&&(this.bringToFront(a),a.setActive(true));b&&b.resetActive()},_minZIndex:1E5,updateStack:function(){qx.ui.core.queue.Widget.add(this)},syncWidget:function(){this.__px.forceUnblockContent();for(var a=this.__px.getWindows(),b=this._minZIndex,
c=b+a.length*2,d=b+a.length*4,e=null,f=0,g=a.length;f<g;f++){var h=a[f];if(h.isVisible()&&(e=e||h,h.isModal()?(h.setZIndex(d),this.__px.blockContent(d-1),d+=2,e=h):h.isAlwaysOnTop()?(h.setZIndex(c),c+=2):(h.setZIndex(b),b+=2),!e.isModal()&&h.isActive()||h.getZIndex()>e.getZIndex()))e=h}this.__px.setActiveWindow(e)},bringToFront:function(a){var b=this.__px.getWindows();qx.lang.Array.remove(b,a)&&(b.push(a),this.updateStack())},sendToBack:function(a){var b=this.__px.getWindows();qx.lang.Array.remove(b,
a)&&(b.unshift(a),this.updateStack())}},destruct:function(){this._disposeObjects("__px")}})})();
(function(){qx.Mixin.define("qx.ui.core.MMovable",{properties:{movable:{check:"Boolean",init:true},useMoveFrame:{check:"Boolean",init:false}},members:{__py:null,__pz:null,__pA:null,__pB:null,__pC:null,__pD:null,__pE:null,__pF:false,__pG:null,__pH:0,_activateMoveHandle:function(a){if(this.__py)throw Error("The move handle could not be redefined!");this.__py=a;a.addListener("mousedown",this._onMoveMouseDown,this);a.addListener("mouseup",this._onMoveMouseUp,this);a.addListener("mousemove",this._onMoveMouseMove,
this);a.addListener("losecapture",this.__pL,this)},__pI:function(){var a=this.__pz;if(!a)a=this.__pz=new qx.ui.core.Widget,a.setAppearance("move-frame"),a.exclude(),qx.core.Init.getApplication().getRoot().add(a);return a},__pJ:function(){var a=this.getContainerLocation(),b=this.getBounds(),c=this.__pI();c.setUserBounds(a.left,a.top,b.width,b.height);c.show();c.setZIndex(this.getZIndex()+1)},__pK:function(a){var b=this.__pA,c=Math.max(b.left,Math.min(b.right,a.getDocumentLeft())),a=Math.max(b.top,
Math.min(b.bottom,a.getDocumentTop())),c=this.__pB+c,a=this.__pC+a;return{viewportLeft:c,viewportTop:a,parentLeft:c-this.__pD,parentTop:a-this.__pE}},_onMoveMouseDown:function(a){if(this.getMovable()&&!this.hasState("maximized")){var b=this.getLayoutParent(),c=b.getContentLocation(),d=b.getBounds();if(qx.Class.implementsInterface(b,qx.ui.window.IDesktop)&&!b.isContentBlocked())this.__pG=b.getBlockerColor(),this.__pH=b.getBlockerOpacity(),b.setBlockerColor(null),b.setBlockerOpacity(1),b.blockContent(this.getZIndex()-
1),this.__pF=true;this.__pA={left:c.left,top:c.top,right:c.left+d.width,bottom:c.top+d.height};b=this.getContainerLocation();this.__pD=c.left;this.__pE=c.top;this.__pB=b.left-a.getDocumentLeft();this.__pC=b.top-a.getDocumentTop();this.addState("move");this.__py.capture();this.getUseMoveFrame()&&this.__pJ();a.stop()}},_onMoveMouseMove:function(a){if(this.hasState("move")){var b=this.__pK(a);this.getUseMoveFrame()?this.__pI().setDomPosition(b.viewportLeft,b.viewportTop):this.setDomPosition(b.parentLeft,
b.parentTop);a.stopPropagation()}},_onMoveMouseUp:function(a){if(this.hasState("move")){this.removeState("move");var b=this.getLayoutParent();if(qx.Class.implementsInterface(b,qx.ui.window.IDesktop)&&this.__pF)b.unblockContent(),b.setBlockerColor(this.__pG),b.setBlockerOpacity(this.__pH),this.__pG=null,this.__pH=0,this.__pF=false;this.__py.releaseCapture();b=this.__pK(a);this.setLayoutProperties({left:b.parentLeft,top:b.parentTop});this.getUseMoveFrame()&&this.__pI().exclude();a.stopPropagation()}},
__pL:function(){this.hasState("move")&&(this.removeState("move"),this.getUseMoveFrame()&&this.__pI().exclude())}},destruct:function(){this._disposeObjects("__pz","__py");this.__pA=null}})})();
(function(){qx.Mixin.define("qx.ui.core.MResizable",{construct:function(){var a=this.getContainerElement();a.addListener("mousedown",this.__qa,this,true);a.addListener("mouseup",this.__qb,this);a.addListener("mousemove",this.__qd,this);a.addListener("mouseout",this.__qe,this);a.addListener("losecapture",this.__qc,this);a=this.getContainerElement().getDomElement();a==null&&(a=window);this.__pM=qx.event.Registration.getManager(a).getHandler(qx.event.handler.DragDrop)},properties:{resizableTop:{check:"Boolean",
init:true},resizableRight:{check:"Boolean",init:true},resizableBottom:{check:"Boolean",init:true},resizableLeft:{check:"Boolean",init:true},resizable:{group:["resizableTop","resizableRight","resizableBottom","resizableLeft"],mode:"shorthand"},resizeSensitivity:{check:"Integer",init:5},useResizeFrame:{check:"Boolean",init:true}},members:{__pM:null,__pN:null,__pO:null,__pP:null,__pQ:null,__pR:null,__pS:null,RESIZE_TOP:1,RESIZE_BOTTOM:2,RESIZE_LEFT:4,RESIZE_RIGHT:8,_getResizeFrame:function(){var a=this.__pN;
if(!a)a=this.__pN=new qx.ui.core.Widget,a.setAppearance("resize-frame"),a.exclude(),qx.core.Init.getApplication().getRoot().add(a);return a},__pT:function(){var a=this.__pW(),b=this._getResizeFrame();b.setUserBounds(a.left,a.top,a.right-a.left,a.bottom-a.top);b.show();b.setZIndex(this.getZIndex()+1)},__pU:function(a){var b=this.__pO,c=this.getSizeHint(),d=this.__pS,e=this.__pR,f=e.width,g=e.height,h=e.containerWidth,i=e.containerHeight,j=e.left,k=e.top,l;if(b&this.RESIZE_TOP||b&this.RESIZE_BOTTOM){l=
Math.max(d.top,Math.min(d.bottom,a.getDocumentTop()))-this.__pQ;b&this.RESIZE_TOP?(g-=l,i-=l):(g+=l,i+=l);if(i<c.minHeight)g+=c.minHeight-i,i=c.minHeight;else if(i>c.maxHeight)g-=i-c.maxHeight,i=c.maxHeight;b&this.RESIZE_TOP&&(k+=e.containerHeight-i)}if(b&this.RESIZE_LEFT||b&this.RESIZE_RIGHT){l=Math.max(d.left,Math.min(d.right,a.getDocumentLeft()))-this.__pP;b&this.RESIZE_LEFT?(f-=l,h-=l):(f+=l,h+=l);if(h<c.minWidth)f+=c.minWidth-h,h=c.minWidth;else if(f>c.maxWidth)f-=h-c.maxWidth,h=c.maxWidth;b&
this.RESIZE_LEFT&&(j+=e.containerWidth-h)}return{viewportLeft:j,viewportTop:k,parentLeft:e.bounds.left+j-e.left,parentTop:e.bounds.top+k-e.top,containerWidth:h,containerHeight:i,width:f,height:g}},__pV:{1:"n-resize",2:"s-resize",4:"w-resize",8:"e-resize",5:"nw-resize",6:"sw-resize",9:"ne-resize",10:"se-resize"},__pW:function(){var a=this.getDecoratorElement();return a&&a.getDomElement()?qx.bom.element.Location.get(a.getDomElement()):this.getContentLocation()},__pX:function(a){var b=this.__pW(),c=
this.getResizeSensitivity(),d=a.getDocumentLeft(),a=a.getDocumentTop(),e=this.__pY(b,d,a,c);e>0&&(e|=this.__pY(b,d,a,c*2));this.__pO=e},__pY:function(a,b,c,d){var e=0;this.getResizableTop()&&Math.abs(a.top-c)<d&&b>a.left-d&&b<a.right+d?e+=this.RESIZE_TOP:this.getResizableBottom()&&Math.abs(a.bottom-c)<d&&b>a.left-d&&b<a.right+d&&(e+=this.RESIZE_BOTTOM);this.getResizableLeft()&&Math.abs(a.left-b)<d&&c>a.top-d&&c<a.bottom+d?e+=this.RESIZE_LEFT:this.getResizableRight()&&Math.abs(a.right-b)<d&&c>a.top-
d&&c<a.bottom+d&&(e+=this.RESIZE_RIGHT);return e},__qa:function(a){if(this.__pO){this.addState("resize");this.__pP=a.getDocumentLeft();this.__pQ=a.getDocumentTop();var b=this.getContainerLocation(),c=this.__pW(),d=this.getBounds();this.__pR={top:c.top,left:c.left,containerWidth:b.right-b.left,containerHeight:b.bottom-b.top,width:c.right-c.left,height:c.bottom-c.top,bounds:qx.lang.Object.clone(d)};c=this.getLayoutParent();b=c.getContentLocation();c=c.getBounds();this.__pS={left:b.left,top:b.top,right:b.left+
c.width,bottom:b.top+c.height};this.getUseResizeFrame()&&this.__pT();this.capture();a.stop()}},__qb:function(a){if(this.hasState("resize")){this.getUseResizeFrame()&&this._getResizeFrame().exclude();var b=this.__pU(a);this.setWidth(b.containerWidth);this.setHeight(b.containerHeight);(this.getResizableLeft()||this.getResizableTop())&&this.setLayoutProperties({left:b.parentLeft,top:b.parentTop});this.__pO=0;this.removeState("resize");this.resetCursor();this.getApplicationRoot().resetGlobalCursor();
this.releaseCapture();a.stopPropagation()}},__qc:function(){this.__pO&&(this.resetCursor(),this.getApplicationRoot().resetGlobalCursor(),this.removeState("move"),this.getUseResizeFrame()&&this._getResizeFrame().exclude())},__qd:function(a){if(this.hasState("resize")){var b=this.__pU(a);this.getUseResizeFrame()?this._getResizeFrame().setUserBounds(b.viewportLeft,b.viewportTop,b.width,b.height):(this.setWidth(b.containerWidth),this.setHeight(b.containerHeight),(this.getResizableLeft()||this.getResizableTop())&&
this.setLayoutProperties({left:b.parentLeft,top:b.parentTop}));a.stopPropagation()}else if(!this.hasState("maximized")&&!this.__pM.isSessionActive())this.__pX(a),b=this.__pO,a=this.getApplicationRoot(),b?(b=this.__pV[b],this.setCursor(b),a.setGlobalCursor(b)):this.getCursor()&&(this.resetCursor(),a.resetGlobalCursor())},__qe:function(){this.getCursor()&&!this.hasState("resize")&&(this.resetCursor(),this.getApplicationRoot().resetGlobalCursor())}},destruct:function(){if(this.__pN!=null&&!qx.core.ObjectRegistry.inShutDown)this.__pN.destroy(),
this.__pN=null;this.__pM=null}})})();
(function(){qx.Class.define("qx.ui.window.Window",{extend:qx.ui.core.Widget,include:[qx.ui.core.MRemoteChildrenHandling,qx.ui.core.MRemoteLayoutHandling,qx.ui.core.MResizable,qx.ui.core.MMovable,qx.ui.core.MContentPadding],construct:function(a,b){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.VBox);this._createChildControl("captionbar");this._createChildControl("pane");b!=null&&this.setIcon(b);a!=null&&this.setCaption(a);this._updateCaptionBar();this.addListener("mousedown",this._onWindowMouseDown,
this,true);this.addListener("focusout",this._onWindowFocusOut,this);qx.core.Init.getApplication().getRoot().add(this);this.initVisibility();qx.ui.core.FocusHandler.getInstance().addRoot(this);this._getResizeFrame().setAppearance("window-resize-frame")},statics:{DEFAULT_MANAGER_CLASS:qx.ui.window.Manager},events:{beforeClose:"qx.event.type.Event",close:"qx.event.type.Event",beforeMinimize:"qx.event.type.Event",minimize:"qx.event.type.Event",beforeMaximize:"qx.event.type.Event",maximize:"qx.event.type.Event",
beforeRestore:"qx.event.type.Event",restore:"qx.event.type.Event"},properties:{appearance:{refine:true,init:"window"},visibility:{refine:true,init:"excluded"},focusable:{refine:true,init:true},active:{check:"Boolean",init:false,apply:"_applyActive",event:"changeActive"},alwaysOnTop:{check:"Boolean",init:false,event:"changeAlwaysOnTop"},modal:{check:"Boolean",init:false,event:"changeModal"},caption:{apply:"_applyCaptionBarChange",event:"changeCaption",nullable:true},icon:{check:"String",nullable:true,
apply:"_applyCaptionBarChange",event:"changeIcon",themeable:true},status:{check:"String",nullable:true,apply:"_applyStatus",event:"changeStatus"},showClose:{check:"Boolean",init:true,apply:"_applyCaptionBarChange",themeable:true},showMaximize:{check:"Boolean",init:true,apply:"_applyCaptionBarChange",themeable:true},showMinimize:{check:"Boolean",init:true,apply:"_applyCaptionBarChange",themeable:true},allowClose:{check:"Boolean",init:true,apply:"_applyCaptionBarChange"},allowMaximize:{check:"Boolean",
init:true,apply:"_applyCaptionBarChange"},allowMinimize:{check:"Boolean",init:true,apply:"_applyCaptionBarChange"},showStatusbar:{check:"Boolean",init:false,apply:"_applyShowStatusbar"}},members:{__qf:null,__qg:null,getChildrenContainer:function(){return this.getChildControl("pane")},_forwardStates:{active:true,maximized:true,showStatusbar:true},setLayoutParent:function(a){qx.core.Environment.get("qx.debug")&&a&&this.assertInterface(a,qx.ui.window.IDesktop,"Windows can only be added to widgets, which implement the interface qx.ui.window.IDesktop. All root widgets implement this interface.");
qx.ui.core.Widget.prototype.setLayoutParent.call(this,a)},_createChildControlImpl:function(a){var b;switch(a){case "statusbar":b=new qx.ui.container.Composite(new qx.ui.layout.HBox);this._add(b);b.add(this.getChildControl("statusbar-text"));break;case "statusbar-text":b=new qx.ui.basic.Label;b.setValue(this.getStatus());break;case "pane":b=new qx.ui.container.Composite;this._add(b,{flex:1});break;case "captionbar":b=new qx.ui.layout.Grid;b.setRowFlex(0,1);b.setColumnFlex(1,1);b=new qx.ui.container.Composite(b);
this._add(b);b.addListener("dblclick",this._onCaptionMouseDblClick,this);this._activateMoveHandle(b);break;case "icon":b=new qx.ui.basic.Image(this.getIcon());this.getChildControl("captionbar").add(b,{row:0,column:0});break;case "title":b=new qx.ui.basic.Label(this.getCaption());b.setWidth(0);b.setAllowGrowX(true);this.getChildControl("captionbar").add(b,{row:0,column:1});break;case "minimize-button":b=new qx.ui.form.Button;b.setFocusable(false);b.addListener("execute",this._onMinimizeButtonClick,
this);this.getChildControl("captionbar").add(b,{row:0,column:2});break;case "restore-button":b=new qx.ui.form.Button;b.setFocusable(false);b.addListener("execute",this._onRestoreButtonClick,this);this.getChildControl("captionbar").add(b,{row:0,column:3});break;case "maximize-button":b=new qx.ui.form.Button;b.setFocusable(false);b.addListener("execute",this._onMaximizeButtonClick,this);this.getChildControl("captionbar").add(b,{row:0,column:4});break;case "close-button":b=new qx.ui.form.Button,b.setFocusable(false),
b.addListener("execute",this._onCloseButtonClick,this),this.getChildControl("captionbar").add(b,{row:0,column:6})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_updateCaptionBar:function(){var a;(a=this.getIcon())?(this.getChildControl("icon").setSource(a),this._showChildControl("icon")):this._excludeChildControl("icon");(a=this.getCaption())?(this.getChildControl("title").setValue(a),this._showChildControl("title")):this._excludeChildControl("title");this.getShowMinimize()?
(this._showChildControl("minimize-button"),a=this.getChildControl("minimize-button"),this.getAllowMinimize()?a.resetEnabled():a.setEnabled(false)):this._excludeChildControl("minimize-button");this.getShowMaximize()?(this.isMaximized()?(this._showChildControl("restore-button"),this._excludeChildControl("maximize-button")):(this._showChildControl("maximize-button"),this._excludeChildControl("restore-button")),a=this.getChildControl("maximize-button"),this.getAllowMaximize()?a.resetEnabled():a.setEnabled(false)):
(this._excludeChildControl("maximize-button"),this._excludeChildControl("restore-button"));this.getShowClose()?(this._showChildControl("close-button"),a=this.getChildControl("close-button"),this.getAllowClose()?a.resetEnabled():a.setEnabled(false)):this._excludeChildControl("close-button")},close:function(){this.isVisible()&&this.fireNonBubblingEvent("beforeClose",qx.event.type.Event,[false,true])&&(this.hide(),this.fireEvent("close"))},open:function(){this.show();this.setActive(true);this.focus()},
center:function(){var a=this.getLayoutParent();if(a){var b=a.getBounds();if(b){var c=this.getSizeHint(),a=Math.round((b.width-c.width)/2),b=Math.round((b.height-c.height)/2);b<0&&(b=0);this.moveTo(a,b);return}}qx.core.Environment.get("qx.debug")&&this.warn("Centering depends on parent bounds!")},maximize:function(){if(!this.isMaximized()){var a=this.getLayoutParent();if(a!=null&&a.supportsMaximize()&&this.fireNonBubblingEvent("beforeMaximize",qx.event.type.Event,[false,true]))this.isVisible()||this.open(),
a=this.getLayoutProperties(),this.__qg=a.left===void 0?0:a.left,this.__qf=a.top===void 0?0:a.top,this.setLayoutProperties({left:null,top:null,edge:0}),this.addState("maximized"),this._updateCaptionBar(),this.fireEvent("maximize")}},minimize:function(){if(this.isVisible()&&this.fireNonBubblingEvent("beforeMinimize",qx.event.type.Event,[false,true])){var a=this.getLayoutProperties();this.__qg=a.left===void 0?0:a.left;this.__qf=a.top===void 0?0:a.top;this.removeState("maximized");this.hide();this.fireEvent("minimize")}},
restore:function(){this.getMode()!=="normal"&&this.fireNonBubblingEvent("beforeRestore",qx.event.type.Event,[false,true])&&(this.isVisible()||this.open(),this.setLayoutProperties({edge:null,left:this.__qg,top:this.__qf}),this.removeState("maximized"),this._updateCaptionBar(),this.fireEvent("restore"))},moveTo:function(a,b){this.isMaximized()||this.setLayoutProperties({left:a,top:b})},isMaximized:function(){return this.hasState("maximized")},getMode:function(){return this.isVisible()?this.isMaximized()?
"maximized":"normal":"minimized"},_applyActive:function(a,b){b?this.removeState("active"):this.addState("active")},_getContentPaddingTarget:function(){return this.getChildControl("pane")},_applyShowStatusbar:function(a){var b=this._getResizeFrame();a?(this.addState("showStatusbar"),b.addState("showStatusbar")):(this.removeState("showStatusbar"),b.removeState("showStatusbar"));a?this._showChildControl("statusbar"):this._excludeChildControl("statusbar")},_applyCaptionBarChange:function(){this._updateCaptionBar()},
_applyStatus:function(a){var b=this.getChildControl("statusbar-text",true);b&&b.setValue(a)},_onWindowEventStop:function(a){a.stopPropagation()},_onWindowMouseDown:function(){this.setActive(true)},_onWindowFocusOut:function(a){this.getModal()||(a=a.getRelatedTarget(),a!=null&&!qx.ui.core.Widget.contains(this,a)&&this.setActive(false))},_onCaptionMouseDblClick:function(){this.getAllowMaximize()&&(this.isMaximized()?this.restore():this.maximize())},_onMinimizeButtonClick:function(){this.minimize();
this.getChildControl("minimize-button").reset()},_onRestoreButtonClick:function(){this.restore();this.getChildControl("restore-button").reset()},_onMaximizeButtonClick:function(){this.maximize();this.getChildControl("maximize-button").reset()},_onCloseButtonClick:function(){this.close();this.getChildControl("close-button").reset()}}})})();
(function(){qx.Class.define("arskom.time_zones",{type:"static",statics:{Africa:[new qx.ui.form.ListItem("Abidjan",null,"Abidjan"),new qx.ui.form.ListItem("Accra",null,"Accra"),new qx.ui.form.ListItem("Addis_Ababa",null,"Addis_Ababa"),new qx.ui.form.ListItem("Algiers",null,"Algiers"),new qx.ui.form.ListItem("Asmara",null,"Asmara"),new qx.ui.form.ListItem("Asmera",null,"Asmera"),new qx.ui.form.ListItem("Bamako",null,"Bamako"),new qx.ui.form.ListItem("Bangui",null,"Bangui"),new qx.ui.form.ListItem("Banjul",
null,"Banjul"),new qx.ui.form.ListItem("Bissau",null,"Bissau"),new qx.ui.form.ListItem("Blantyre",null,"Blantyre"),new qx.ui.form.ListItem("Brazzaville",null,"Brazzaville"),new qx.ui.form.ListItem("Bujumbura",null,"Bujumbura"),new qx.ui.form.ListItem("Cairo",null,"Cairo"),new qx.ui.form.ListItem("Casablanca",null,"Casablanca"),new qx.ui.form.ListItem("Ceuta",null,"Ceuta"),new qx.ui.form.ListItem("Conakry",null,"Conakry"),new qx.ui.form.ListItem("Dakar",null,"Dakar"),new qx.ui.form.ListItem("Dar_es_Salaam",
null,"Dar_es_Salaam"),new qx.ui.form.ListItem("Djibouti",null,"Djibouti"),new qx.ui.form.ListItem("Douala",null,"Douala"),new qx.ui.form.ListItem("El_Aaiun",null,"El_Aaiun"),new qx.ui.form.ListItem("Freetown",null,"Freetown"),new qx.ui.form.ListItem("Gaborone",null,"Gaborone"),new qx.ui.form.ListItem("Harare",null,"Harare"),new qx.ui.form.ListItem("Johannesburg",null,"Johannesburg"),new qx.ui.form.ListItem("Kampala",null,"Kampala"),new qx.ui.form.ListItem("Khartoum",null,"Khartoum"),new qx.ui.form.ListItem("Kigali",
null,"Kigali"),new qx.ui.form.ListItem("Kinshasa",null,"Kinshasa"),new qx.ui.form.ListItem("Lagos",null,"Lagos"),new qx.ui.form.ListItem("Libreville",null,"Libreville"),new qx.ui.form.ListItem("Lome",null,"Lome"),new qx.ui.form.ListItem("Luanda",null,"Luanda"),new qx.ui.form.ListItem("Lubumbashi",null,"Lubumbashi"),new qx.ui.form.ListItem("Lusaka",null,"Lusaka"),new qx.ui.form.ListItem("Malabo",null,"Malabo"),new qx.ui.form.ListItem("Maputo",null,"Maputo"),new qx.ui.form.ListItem("Maseru",null,"Maseru"),
new qx.ui.form.ListItem("Mbabane",null,"Mbabane"),new qx.ui.form.ListItem("Mogadishu",null,"Mogadishu"),new qx.ui.form.ListItem("Monrovia",null,"Monrovia"),new qx.ui.form.ListItem("Nairobi",null,"Nairobi"),new qx.ui.form.ListItem("Ndjamena",null,"Ndjamena"),new qx.ui.form.ListItem("Niamey",null,"Niamey"),new qx.ui.form.ListItem("Nouakchott",null,"Nouakchott"),new qx.ui.form.ListItem("Ouagadougou",null,"Ouagadougou"),new qx.ui.form.ListItem("Porto-Novo",null,"Porto-Novo"),new qx.ui.form.ListItem("Sao_Tome",
null,"Sao_Tome"),new qx.ui.form.ListItem("Timbuktu",null,"Timbuktu"),new qx.ui.form.ListItem("Tripoli",null,"Tripoli"),new qx.ui.form.ListItem("Tunis",null,"Tunis"),new qx.ui.form.ListItem("Windhoek",null,"Windhoek")],America:[new qx.ui.form.ListItem("Adak",null,"Adak"),new qx.ui.form.ListItem("Anchorage",null,"Anchorage"),new qx.ui.form.ListItem("Anguilla",null,"Anguilla"),new qx.ui.form.ListItem("Antigua",null,"Antigua"),new qx.ui.form.ListItem("Araguaina",null,"Araguaina"),new qx.ui.form.ListItem("Argentina",
null,"Argentina"),new qx.ui.form.ListItem("Argentina/Buenos_Aires",null,"Argentina/Buenos_Aires"),new qx.ui.form.ListItem("Argentina/Catamarca",null,"Argentina/Catamarca"),new qx.ui.form.ListItem("Argentina/ComodRivadavia",null,"Argentina/ComodRivadavia"),new qx.ui.form.ListItem("Argentina/Cordoba",null,"Argentina/Cordoba"),new qx.ui.form.ListItem("Argentina/Jujuy",null,"Argentina/Jujuy"),new qx.ui.form.ListItem("Argentina/La_Rioja",null,"Argentina/La_Rioja"),new qx.ui.form.ListItem("Argentina/Mendoza",
null,"Argentina/Mendoza"),new qx.ui.form.ListItem("Argentina/Rio_Gallegos",null,"Argentina/Rio_Gallegos"),new qx.ui.form.ListItem("Argentina/Salta",null,"Argentina/Salta"),new qx.ui.form.ListItem("Argentina/San_Juan",null,"Argentina/San_Juan"),new qx.ui.form.ListItem("Argentina/San_Luis",null,"Argentina/San_Luis"),new qx.ui.form.ListItem("Argentina/Tucuman",null,"Argentina/Tucuman"),new qx.ui.form.ListItem("Argentina/Ushuaia",null,"Argentina/Ushuaia"),new qx.ui.form.ListItem("Aruba",null,"Aruba"),
new qx.ui.form.ListItem("Asuncion",null,"Asuncion"),new qx.ui.form.ListItem("Atikokan",null,"Atikokan"),new qx.ui.form.ListItem("Atka",null,"Atka"),new qx.ui.form.ListItem("Bahia",null,"Bahia"),new qx.ui.form.ListItem("Barbados",null,"Barbados"),new qx.ui.form.ListItem("Belem",null,"Belem"),new qx.ui.form.ListItem("Belize",null,"Belize"),new qx.ui.form.ListItem("Blanc-Sablon",null,"Blanc-Sablon"),new qx.ui.form.ListItem("Boa_Vista",null,"Boa_Vista"),new qx.ui.form.ListItem("Bogota",null,"Bogota"),
new qx.ui.form.ListItem("Boise",null,"Boise"),new qx.ui.form.ListItem("Buenos_Aires",null,"Buenos_Aires"),new qx.ui.form.ListItem("Cambridge_Bay",null,"Cambridge_Bay"),new qx.ui.form.ListItem("Campo_Grande",null,"Campo_Grande"),new qx.ui.form.ListItem("Cancun",null,"Cancun"),new qx.ui.form.ListItem("Caracas",null,"Caracas"),new qx.ui.form.ListItem("Catamarca",null,"Catamarca"),new qx.ui.form.ListItem("Cayenne",null,"Cayenne"),new qx.ui.form.ListItem("Cayman",null,"Cayman"),new qx.ui.form.ListItem("Chicago",
null,"Chicago"),new qx.ui.form.ListItem("Chihuahua",null,"Chihuahua"),new qx.ui.form.ListItem("Coral_Harbour",null,"Coral_Harbour"),new qx.ui.form.ListItem("Cordoba",null,"Cordoba"),new qx.ui.form.ListItem("Costa_Rica",null,"Costa_Rica"),new qx.ui.form.ListItem("Cuiaba",null,"Cuiaba"),new qx.ui.form.ListItem("Curacao",null,"Curacao"),new qx.ui.form.ListItem("Danmarkshavn",null,"Danmarkshavn"),new qx.ui.form.ListItem("Dawson",null,"Dawson"),new qx.ui.form.ListItem("Dawson_Creek",null,"Dawson_Creek"),
new qx.ui.form.ListItem("Denver",null,"Denver"),new qx.ui.form.ListItem("Detroit",null,"Detroit"),new qx.ui.form.ListItem("Dominica",null,"Dominica"),new qx.ui.form.ListItem("Edmonton",null,"Edmonton"),new qx.ui.form.ListItem("Eirunepe",null,"Eirunepe"),new qx.ui.form.ListItem("El_Salvador",null,"El_Salvador"),new qx.ui.form.ListItem("Ensenada",null,"Ensenada"),new qx.ui.form.ListItem("Fortaleza",null,"Fortaleza"),new qx.ui.form.ListItem("Fort_Wayne",null,"Fort_Wayne"),new qx.ui.form.ListItem("Glace_Bay",
null,"Glace_Bay"),new qx.ui.form.ListItem("Godthab",null,"Godthab"),new qx.ui.form.ListItem("Goose_Bay",null,"Goose_Bay"),new qx.ui.form.ListItem("Grand_Turk",null,"Grand_Turk"),new qx.ui.form.ListItem("Grenada",null,"Grenada"),new qx.ui.form.ListItem("Guadeloupe",null,"Guadeloupe"),new qx.ui.form.ListItem("Guatemala",null,"Guatemala"),new qx.ui.form.ListItem("Guayaquil",null,"Guayaquil"),new qx.ui.form.ListItem("Guyana",null,"Guyana"),new qx.ui.form.ListItem("Halifax",null,"Halifax"),new qx.ui.form.ListItem("Havana",
null,"Havana"),new qx.ui.form.ListItem("Hermosillo",null,"Hermosillo"),new qx.ui.form.ListItem("Indiana",null,"Indiana"),new qx.ui.form.ListItem("Indiana/Indianapolis",null,"Indiana/Indianapolis"),new qx.ui.form.ListItem("Indiana/Knox",null,"Indiana/Knox"),new qx.ui.form.ListItem("Indiana/Marengo",null,"Indiana/Marengo"),new qx.ui.form.ListItem("Indiana/Petersburg",null,"Indiana/Petersburg"),new qx.ui.form.ListItem("Indianapolis",null,"Indianapolis"),new qx.ui.form.ListItem("Indiana/Tell_City",null,
"Indiana/Tell_City"),new qx.ui.form.ListItem("Indiana/Vevay",null,"Indiana/Vevay"),new qx.ui.form.ListItem("Indiana/Vincennes",null,"Indiana/Vincennes"),new qx.ui.form.ListItem("Indiana/Winamac",null,"Indiana/Winamac"),new qx.ui.form.ListItem("Inuvik",null,"Inuvik"),new qx.ui.form.ListItem("Iqaluit",null,"Iqaluit"),new qx.ui.form.ListItem("Jamaica",null,"Jamaica"),new qx.ui.form.ListItem("Jujuy",null,"Jujuy"),new qx.ui.form.ListItem("Juneau",null,"Juneau"),new qx.ui.form.ListItem("Kentucky",null,
"Kentucky"),new qx.ui.form.ListItem("Kentucky/Louisville",null,"Kentucky/Louisville"),new qx.ui.form.ListItem("Kentucky/Monticello",null,"Kentucky/Monticello"),new qx.ui.form.ListItem("Knox_IN",null,"Knox_IN"),new qx.ui.form.ListItem("La_Paz",null,"La_Paz"),new qx.ui.form.ListItem("Lima",null,"Lima"),new qx.ui.form.ListItem("Los_Angeles",null,"Los_Angeles"),new qx.ui.form.ListItem("Louisville",null,"Louisville"),new qx.ui.form.ListItem("Maceio",null,"Maceio"),new qx.ui.form.ListItem("Managua",null,
"Managua"),new qx.ui.form.ListItem("Manaus",null,"Manaus"),new qx.ui.form.ListItem("Marigot",null,"Marigot"),new qx.ui.form.ListItem("Martinique",null,"Martinique"),new qx.ui.form.ListItem("Mazatlan",null,"Mazatlan"),new qx.ui.form.ListItem("Mendoza",null,"Mendoza"),new qx.ui.form.ListItem("Menominee",null,"Menominee"),new qx.ui.form.ListItem("Merida",null,"Merida"),new qx.ui.form.ListItem("Mexico_City",null,"Mexico_City"),new qx.ui.form.ListItem("Miquelon",null,"Miquelon"),new qx.ui.form.ListItem("Moncton",
null,"Moncton"),new qx.ui.form.ListItem("Monterrey",null,"Monterrey"),new qx.ui.form.ListItem("Montevideo",null,"Montevideo"),new qx.ui.form.ListItem("Montreal",null,"Montreal"),new qx.ui.form.ListItem("Montserrat",null,"Montserrat"),new qx.ui.form.ListItem("Nassau",null,"Nassau"),new qx.ui.form.ListItem("New_York",null,"New_York"),new qx.ui.form.ListItem("Nipigon",null,"Nipigon"),new qx.ui.form.ListItem("Nome",null,"Nome"),new qx.ui.form.ListItem("Noronha",null,"Noronha"),new qx.ui.form.ListItem("North_Dakota",
null,"North_Dakota"),new qx.ui.form.ListItem("North_Dakota/Center",null,"North_Dakota/Center"),new qx.ui.form.ListItem("North_Dakota/New_Salem",null,"North_Dakota/New_Salem"),new qx.ui.form.ListItem("Panama",null,"Panama"),new qx.ui.form.ListItem("Pangnirtung",null,"Pangnirtung"),new qx.ui.form.ListItem("Paramaribo",null,"Paramaribo"),new qx.ui.form.ListItem("Phoenix",null,"Phoenix"),new qx.ui.form.ListItem("Port-au-Prince",null,"Port-au-Prince"),new qx.ui.form.ListItem("Porto_Acre",null,"Porto_Acre"),
new qx.ui.form.ListItem("Port_of_Spain",null,"Port_of_Spain"),new qx.ui.form.ListItem("Porto_Velho",null,"Porto_Velho"),new qx.ui.form.ListItem("Puerto_Rico",null,"Puerto_Rico"),new qx.ui.form.ListItem("Rainy_River",null,"Rainy_River"),new qx.ui.form.ListItem("Rankin_Inlet",null,"Rankin_Inlet"),new qx.ui.form.ListItem("Recife",null,"Recife"),new qx.ui.form.ListItem("Regina",null,"Regina"),new qx.ui.form.ListItem("Resolute",null,"Resolute"),new qx.ui.form.ListItem("Rio_Branco",null,"Rio_Branco"),new qx.ui.form.ListItem("Rosario",
null,"Rosario"),new qx.ui.form.ListItem("Santarem",null,"Santarem"),new qx.ui.form.ListItem("Santiago",null,"Santiago"),new qx.ui.form.ListItem("Santo_Domingo",null,"Santo_Domingo"),new qx.ui.form.ListItem("Sao_Paulo",null,"Sao_Paulo"),new qx.ui.form.ListItem("Scoresbysund",null,"Scoresbysund"),new qx.ui.form.ListItem("Shiprock",null,"Shiprock"),new qx.ui.form.ListItem("St_Barthelemy",null,"St_Barthelemy"),new qx.ui.form.ListItem("St_Johns",null,"St_Johns"),new qx.ui.form.ListItem("St_Kitts",null,
"St_Kitts"),new qx.ui.form.ListItem("St_Lucia",null,"St_Lucia"),new qx.ui.form.ListItem("St_Thomas",null,"St_Thomas"),new qx.ui.form.ListItem("St_Vincent",null,"St_Vincent"),new qx.ui.form.ListItem("Swift_Current",null,"Swift_Current"),new qx.ui.form.ListItem("Tegucigalpa",null,"Tegucigalpa"),new qx.ui.form.ListItem("Thule",null,"Thule"),new qx.ui.form.ListItem("Thunder_Bay",null,"Thunder_Bay"),new qx.ui.form.ListItem("Tijuana",null,"Tijuana"),new qx.ui.form.ListItem("Toronto",null,"Toronto"),new qx.ui.form.ListItem("Tortola",
null,"Tortola"),new qx.ui.form.ListItem("Vancouver",null,"Vancouver"),new qx.ui.form.ListItem("Virgin",null,"Virgin"),new qx.ui.form.ListItem("Whitehorse",null,"Whitehorse"),new qx.ui.form.ListItem("Winnipeg",null,"Winnipeg"),new qx.ui.form.ListItem("Yakutat",null,"Yakutat"),new qx.ui.form.ListItem("Yellowknife",null,"Yellowknife")],Antarctica:[new qx.ui.form.ListItem("Casey",null,"Casey"),new qx.ui.form.ListItem("Davis",null,"Davis"),new qx.ui.form.ListItem("DumontDUrville",null,"DumontDUrville"),
new qx.ui.form.ListItem("Mawson",null,"Mawson"),new qx.ui.form.ListItem("McMurdo",null,"McMurdo"),new qx.ui.form.ListItem("Palmer",null,"Palmer"),new qx.ui.form.ListItem("Rothera",null,"Rothera"),new qx.ui.form.ListItem("South_Pole",null,"South_Pole"),new qx.ui.form.ListItem("Syowa",null,"Syowa"),new qx.ui.form.ListItem("Vostok",null,"Vostok")],Arctic:[new qx.ui.form.ListItem("Longyearbyen",null,"Longyearbyen")],Asia:[new qx.ui.form.ListItem("Aden",null,"Aden"),new qx.ui.form.ListItem("Almaty",null,
"Almaty"),new qx.ui.form.ListItem("Amman",null,"Amman"),new qx.ui.form.ListItem("Anadyr",null,"Anadyr"),new qx.ui.form.ListItem("Aqtau",null,"Aqtau"),new qx.ui.form.ListItem("Aqtobe",null,"Aqtobe"),new qx.ui.form.ListItem("Ashgabat",null,"Ashgabat"),new qx.ui.form.ListItem("Ashkhabad",null,"Ashkhabad"),new qx.ui.form.ListItem("Baghdad",null,"Baghdad"),new qx.ui.form.ListItem("Bahrain",null,"Bahrain"),new qx.ui.form.ListItem("Baku",null,"Baku"),new qx.ui.form.ListItem("Bangkok",null,"Bangkok"),new qx.ui.form.ListItem("Beirut",
null,"Beirut"),new qx.ui.form.ListItem("Bishkek",null,"Bishkek"),new qx.ui.form.ListItem("Brunei",null,"Brunei"),new qx.ui.form.ListItem("Calcutta",null,"Calcutta"),new qx.ui.form.ListItem("Choibalsan",null,"Choibalsan"),new qx.ui.form.ListItem("Chongqing",null,"Chongqing"),new qx.ui.form.ListItem("Chungking",null,"Chungking"),new qx.ui.form.ListItem("Colombo",null,"Colombo"),new qx.ui.form.ListItem("Dacca",null,"Dacca"),new qx.ui.form.ListItem("Damascus",null,"Damascus"),new qx.ui.form.ListItem("Dhaka",
null,"Dhaka"),new qx.ui.form.ListItem("Dili",null,"Dili"),new qx.ui.form.ListItem("Dubai",null,"Dubai"),new qx.ui.form.ListItem("Dushanbe",null,"Dushanbe"),new qx.ui.form.ListItem("Gaza",null,"Gaza"),new qx.ui.form.ListItem("Harbin",null,"Harbin"),new qx.ui.form.ListItem("Ho_Chi_Minh",null,"Ho_Chi_Minh"),new qx.ui.form.ListItem("Hong_Kong",null,"Hong_Kong"),new qx.ui.form.ListItem("Hovd",null,"Hovd"),new qx.ui.form.ListItem("Irkutsk",null,"Irkutsk"),new qx.ui.form.ListItem("Istanbul",null,"Istanbul"),
new qx.ui.form.ListItem("Jakarta",null,"Jakarta"),new qx.ui.form.ListItem("Jayapura",null,"Jayapura"),new qx.ui.form.ListItem("Jerusalem",null,"Jerusalem"),new qx.ui.form.ListItem("Kabul",null,"Kabul"),new qx.ui.form.ListItem("Kamchatka",null,"Kamchatka"),new qx.ui.form.ListItem("Karachi",null,"Karachi"),new qx.ui.form.ListItem("Kashgar",null,"Kashgar"),new qx.ui.form.ListItem("Kathmandu",null,"Kathmandu"),new qx.ui.form.ListItem("Katmandu",null,"Katmandu"),new qx.ui.form.ListItem("Kolkata",null,
"Kolkata"),new qx.ui.form.ListItem("Krasnoyarsk",null,"Krasnoyarsk"),new qx.ui.form.ListItem("Kuala_Lumpur",null,"Kuala_Lumpur"),new qx.ui.form.ListItem("Kuching",null,"Kuching"),new qx.ui.form.ListItem("Kuwait",null,"Kuwait"),new qx.ui.form.ListItem("Macao",null,"Macao"),new qx.ui.form.ListItem("Macau",null,"Macau"),new qx.ui.form.ListItem("Magadan",null,"Magadan"),new qx.ui.form.ListItem("Makassar",null,"Makassar"),new qx.ui.form.ListItem("Manila",null,"Manila"),new qx.ui.form.ListItem("Muscat",
null,"Muscat"),new qx.ui.form.ListItem("Nicosia",null,"Nicosia"),new qx.ui.form.ListItem("Novosibirsk",null,"Novosibirsk"),new qx.ui.form.ListItem("Omsk",null,"Omsk"),new qx.ui.form.ListItem("Oral",null,"Oral"),new qx.ui.form.ListItem("Phnom_Penh",null,"Phnom_Penh"),new qx.ui.form.ListItem("Pontianak",null,"Pontianak"),new qx.ui.form.ListItem("Pyongyang",null,"Pyongyang"),new qx.ui.form.ListItem("Qatar",null,"Qatar"),new qx.ui.form.ListItem("Qyzylorda",null,"Qyzylorda"),new qx.ui.form.ListItem("Rangoon",
null,"Rangoon"),new qx.ui.form.ListItem("Riyadh",null,"Riyadh"),new qx.ui.form.ListItem("Riyadh87",null,"Riyadh87"),new qx.ui.form.ListItem("Riyadh88",null,"Riyadh88"),new qx.ui.form.ListItem("Riyadh89",null,"Riyadh89"),new qx.ui.form.ListItem("Saigon",null,"Saigon"),new qx.ui.form.ListItem("Sakhalin",null,"Sakhalin"),new qx.ui.form.ListItem("Samarkand",null,"Samarkand"),new qx.ui.form.ListItem("Seoul",null,"Seoul"),new qx.ui.form.ListItem("Shanghai",null,"Shanghai"),new qx.ui.form.ListItem("Singapore",
null,"Singapore"),new qx.ui.form.ListItem("Taipei",null,"Taipei"),new qx.ui.form.ListItem("Tashkent",null,"Tashkent"),new qx.ui.form.ListItem("Tbilisi",null,"Tbilisi"),new qx.ui.form.ListItem("Tehran",null,"Tehran"),new qx.ui.form.ListItem("Tel_Aviv",null,"Tel_Aviv"),new qx.ui.form.ListItem("Thimbu",null,"Thimbu"),new qx.ui.form.ListItem("Thimphu",null,"Thimphu"),new qx.ui.form.ListItem("Tokyo",null,"Tokyo"),new qx.ui.form.ListItem("Ujung_Pandang",null,"Ujung_Pandang"),new qx.ui.form.ListItem("Ulaanbaatar",
null,"Ulaanbaatar"),new qx.ui.form.ListItem("Ulan_Bator",null,"Ulan_Bator"),new qx.ui.form.ListItem("Urumqi",null,"Urumqi"),new qx.ui.form.ListItem("Vientiane",null,"Vientiane"),new qx.ui.form.ListItem("Vladivostok",null,"Vladivostok"),new qx.ui.form.ListItem("Yakutsk",null,"Yakutsk"),new qx.ui.form.ListItem("Yekaterinburg",null,"Yekaterinburg"),new qx.ui.form.ListItem("Yerevan",null,"Yerevan")],Atlantic:[new qx.ui.form.ListItem("Azores",null,"Azores"),new qx.ui.form.ListItem("Bermuda",null,"Bermuda"),
new qx.ui.form.ListItem("Canary",null,"Canary"),new qx.ui.form.ListItem("Cape_Verde",null,"Cape_Verde"),new qx.ui.form.ListItem("Faeroe",null,"Faeroe"),new qx.ui.form.ListItem("Faroe",null,"Faroe"),new qx.ui.form.ListItem("Jan_Mayen",null,"Jan_Mayen"),new qx.ui.form.ListItem("Madeira",null,"Madeira"),new qx.ui.form.ListItem("Reykjavik",null,"Reykjavik"),new qx.ui.form.ListItem("South_Georgia",null,"South_Georgia"),new qx.ui.form.ListItem("Stanley",null,"Stanley"),new qx.ui.form.ListItem("St_Helena",
null,"St_Helena")],Australia:[new qx.ui.form.ListItem("ACT",null,"ACT"),new qx.ui.form.ListItem("Adelaide",null,"Adelaide"),new qx.ui.form.ListItem("Brisbane",null,"Brisbane"),new qx.ui.form.ListItem("Broken_Hill",null,"Broken_Hill"),new qx.ui.form.ListItem("Canberra",null,"Canberra"),new qx.ui.form.ListItem("Currie",null,"Currie"),new qx.ui.form.ListItem("Darwin",null,"Darwin"),new qx.ui.form.ListItem("Eucla",null,"Eucla"),new qx.ui.form.ListItem("Hobart",null,"Hobart"),new qx.ui.form.ListItem("LHI",
null,"LHI"),new qx.ui.form.ListItem("Lindeman",null,"Lindeman"),new qx.ui.form.ListItem("Lord_Howe",null,"Lord_Howe"),new qx.ui.form.ListItem("Melbourne",null,"Melbourne"),new qx.ui.form.ListItem("North",null,"North"),new qx.ui.form.ListItem("NSW",null,"NSW"),new qx.ui.form.ListItem("Perth",null,"Perth"),new qx.ui.form.ListItem("Queensland",null,"Queensland"),new qx.ui.form.ListItem("South",null,"South"),new qx.ui.form.ListItem("Sydney",null,"Sydney"),new qx.ui.form.ListItem("Tasmania",null,"Tasmania"),
new qx.ui.form.ListItem("Victoria",null,"Victoria"),new qx.ui.form.ListItem("West",null,"West"),new qx.ui.form.ListItem("Yancowinna",null,"Yancowinna")],Europe:[new qx.ui.form.ListItem("Amsterdam",null,"Amsterdam"),new qx.ui.form.ListItem("Andorra",null,"Andorra"),new qx.ui.form.ListItem("Athens",null,"Athens"),new qx.ui.form.ListItem("Belfast",null,"Belfast"),new qx.ui.form.ListItem("Belgrade",null,"Belgrade"),new qx.ui.form.ListItem("Berlin",null,"Berlin"),new qx.ui.form.ListItem("Bratislava",null,
"Bratislava"),new qx.ui.form.ListItem("Brussels",null,"Brussels"),new qx.ui.form.ListItem("Bucharest",null,"Bucharest"),new qx.ui.form.ListItem("Budapest",null,"Budapest"),new qx.ui.form.ListItem("Chisinau",null,"Chisinau"),new qx.ui.form.ListItem("Copenhagen",null,"Copenhagen"),new qx.ui.form.ListItem("Dublin",null,"Dublin"),new qx.ui.form.ListItem("Gibraltar",null,"Gibraltar"),new qx.ui.form.ListItem("Guernsey",null,"Guernsey"),new qx.ui.form.ListItem("Helsinki",null,"Helsinki"),new qx.ui.form.ListItem("Isle_of_Man",
null,"Isle_of_Man"),new qx.ui.form.ListItem("Istanbul",null,"Istanbul"),new qx.ui.form.ListItem("Jersey",null,"Jersey"),new qx.ui.form.ListItem("Kaliningrad",null,"Kaliningrad"),new qx.ui.form.ListItem("Kiev",null,"Kiev"),new qx.ui.form.ListItem("Lisbon",null,"Lisbon"),new qx.ui.form.ListItem("Ljubljana",null,"Ljubljana"),new qx.ui.form.ListItem("London",null,"London"),new qx.ui.form.ListItem("Luxembourg",null,"Luxembourg"),new qx.ui.form.ListItem("Madrid",null,"Madrid"),new qx.ui.form.ListItem("Malta",
null,"Malta"),new qx.ui.form.ListItem("Mariehamn",null,"Mariehamn"),new qx.ui.form.ListItem("Minsk",null,"Minsk"),new qx.ui.form.ListItem("Monaco",null,"Monaco"),new qx.ui.form.ListItem("Moscow",null,"Moscow"),new qx.ui.form.ListItem("Nicosia",null,"Nicosia"),new qx.ui.form.ListItem("Oslo",null,"Oslo"),new qx.ui.form.ListItem("Paris",null,"Paris"),new qx.ui.form.ListItem("Podgorica",null,"Podgorica"),new qx.ui.form.ListItem("Prague",null,"Prague"),new qx.ui.form.ListItem("Riga",null,"Riga"),new qx.ui.form.ListItem("Rome",
null,"Rome"),new qx.ui.form.ListItem("Samara",null,"Samara"),new qx.ui.form.ListItem("San_Marino",null,"San_Marino"),new qx.ui.form.ListItem("Sarajevo",null,"Sarajevo"),new qx.ui.form.ListItem("Simferopol",null,"Simferopol"),new qx.ui.form.ListItem("Skopje",null,"Skopje"),new qx.ui.form.ListItem("Sofia",null,"Sofia"),new qx.ui.form.ListItem("Stockholm",null,"Stockholm"),new qx.ui.form.ListItem("Tallinn",null,"Tallinn"),new qx.ui.form.ListItem("Tirane",null,"Tirane"),new qx.ui.form.ListItem("Tiraspol",
null,"Tiraspol"),new qx.ui.form.ListItem("Uzhgorod",null,"Uzhgorod"),new qx.ui.form.ListItem("Vaduz",null,"Vaduz"),new qx.ui.form.ListItem("Vatican",null,"Vatican"),new qx.ui.form.ListItem("Vienna",null,"Vienna"),new qx.ui.form.ListItem("Vilnius",null,"Vilnius"),new qx.ui.form.ListItem("Volgograd",null,"Volgograd"),new qx.ui.form.ListItem("Warsaw",null,"Warsaw"),new qx.ui.form.ListItem("Zagreb",null,"Zagreb"),new qx.ui.form.ListItem("Zaporozhye",null,"Zaporozhye"),new qx.ui.form.ListItem("Zurich",
null,"Zurich")],Pacific:[new qx.ui.form.ListItem("Apia",null,"Apia"),new qx.ui.form.ListItem("Auckland",null,"Auckland"),new qx.ui.form.ListItem("Chatham",null,"Chatham"),new qx.ui.form.ListItem("Easter",null,"Easter"),new qx.ui.form.ListItem("Efate",null,"Efate"),new qx.ui.form.ListItem("Enderbury",null,"Enderbury"),new qx.ui.form.ListItem("Fakaofo",null,"Fakaofo"),new qx.ui.form.ListItem("Fiji",null,"Fiji"),new qx.ui.form.ListItem("Funafuti",null,"Funafuti"),new qx.ui.form.ListItem("Galapagos",
null,"Galapagos"),new qx.ui.form.ListItem("Gambier",null,"Gambier"),new qx.ui.form.ListItem("Guadalcanal",null,"Guadalcanal"),new qx.ui.form.ListItem("Guam",null,"Guam"),new qx.ui.form.ListItem("Honolulu",null,"Honolulu"),new qx.ui.form.ListItem("Johnston",null,"Johnston"),new qx.ui.form.ListItem("Kiritimati",null,"Kiritimati"),new qx.ui.form.ListItem("Kosrae",null,"Kosrae"),new qx.ui.form.ListItem("Kwajalein",null,"Kwajalein"),new qx.ui.form.ListItem("Majuro",null,"Majuro"),new qx.ui.form.ListItem("Marquesas",
null,"Marquesas"),new qx.ui.form.ListItem("Midway",null,"Midway"),new qx.ui.form.ListItem("Nauru",null,"Nauru"),new qx.ui.form.ListItem("Niue",null,"Niue"),new qx.ui.form.ListItem("Norfolk",null,"Norfolk"),new qx.ui.form.ListItem("Noumea",null,"Noumea"),new qx.ui.form.ListItem("Pago_Pago",null,"Pago_Pago"),new qx.ui.form.ListItem("Palau",null,"Palau"),new qx.ui.form.ListItem("Pitcairn",null,"Pitcairn"),new qx.ui.form.ListItem("Ponape",null,"Ponape"),new qx.ui.form.ListItem("Port_Moresby",null,"Port_Moresby"),
new qx.ui.form.ListItem("Rarotonga",null,"Rarotonga"),new qx.ui.form.ListItem("Saipan",null,"Saipan"),new qx.ui.form.ListItem("Samoa",null,"Samoa"),new qx.ui.form.ListItem("Tahiti",null,"Tahiti"),new qx.ui.form.ListItem("Tarawa",null,"Tarawa"),new qx.ui.form.ListItem("Tongatapu",null,"Tongatapu"),new qx.ui.form.ListItem("Truk",null,"Truk"),new qx.ui.form.ListItem("Wake",null,"Wake"),new qx.ui.form.ListItem("Wallis",null,"Wallis"),new qx.ui.form.ListItem("Yap",null,"Yap")]}})})();
(function(){qx.Class.define("arskom.ui.proc.User",{type:"static",statics:{ADD:"add_user",GET_ID:"get_user_id",GET:"get_user",EDT:"edt_user",DEL:"del_user",GET_ALL:"get_all_user",GET_ALL_COUNT:"get_all_user_count",RESET_PASSWORD:"reset_password",GET_USER_PREF:"get_user_preferences",SET_USER_PREF:"set_user_preferences"}})})();
(function(){qx.Class.define("arskom.EntityCache",{extend:qx.core.Object,type:"abstract",properties:{_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_count_call:{check:"soap.Call"},_by_id_call:{check:"soap.Call"},_write_call:{check:"soap.Call"},_by_page_call:{check:"soap.Call"},_pk_field:{check:"String"},_key_field:{check:"String",nullable:false,init:null},_object_field:{check:"String"}},construct:function(){this.void_cache();this.set_wsc(arskom.Application.wsc)},members:{__kJ:null,__c:null,
apply_wsc:function(){},get_object_id:function(a){return a.get_id()},query_cache:function(a){return this.__c[a]},void_cache:function(){this.__c={};this.__kJ=null},get_page:function(){},get_num_objects:function(){},fill_cache:function(a){var b=this,c=this.get_by_page_call();c.set_callback(function(c){for(var e=b.__c,f=[],g=0,h=c.length;g<h;++g)f.push(b.get_object_id(c[g])),e[b.get_object_id(c[g])]=c[g];a&&a(f)});c.callAsync()},set_entities:function(a,b){var c=this,d=this.get_write_call();d.get_params().add(this.get_object_field(),
a);d.set_callback(function(){for(var b=c.__c,d=0,g=a.length;d<g;++d)b[c.get_object_id(a[d])]=a[d]});b&&d.set_errback(b);d.callAsync()},get_entity:function(a,b){var c=this;if(c.query_cache(a))b&&b(a);else{var d=this.get_by_id_call();d.get_params().add(this.get_pk_field(),a);d.set_callback(function(d){c.__c[c.get_object_id(d)]=d;b&&b(a)})}},get_entities:function(a,b,c){var d=this,e=[],f=[],g;for(g in a)if(a.hasOwnProperty(g)){var h=d.query_cache(g);h||h===null?f.push(g):e.push(g)}e.length>0&&(a=this.get_by_id_call(),
a.get_params().add(this.get_pk_field(),e),a.set_callback(function(a){var c=d.__c,f=[];if(a){for(var g=0,h=a.length;g<h;++g)f.push(d.get_object_id(a[g])),c[d.get_object_id(a[g])]=a[g];for(g=0,h=e.length;g<h;++g)a=e[g],c[a]||(c[a]=null)}b&&b(f)}),c&&a.set_errback(c),a.callAsync());b&&f.length>0&&b(f)}}})})();
(function(){qx.Class.define("atr.cache.Geofence",{extend:arskom.EntityCache,type:"singleton",properties:{_map:{check:"arskom.ui.Map",apply:"apply_map"},_domain_name:{check:"String",apply:"apply_domain_name"}},construct:function(){arskom.EntityCache.call(this);this.set_pk_field("geofence_ids")},members:{apply_domain_name:function(a){this.get_by_id_call().get_params().add("domain_name",a)},apply_map:function(a){this.get_by_id_call().get_params().add("srid",a.get_srid())},apply_wsc:function(a){this.set_by_id_call(a.c.cvs.get_call(atr.proc.Geofence.GET))},
draw_on_map:function(a){var b=this;this.get_entities(a,function(a){for(var d=b.get_map(),e=[],f=0;f<a.length;f++){var g=d.wkt_to_vector(b.query_cache(a[f]).get_geom());e.push(g)}e.length>0&&d.draw_geofences(e)})}}})})();(function(){qx.Class.define("atr.proc.Geofence",{type:"static",statics:{ADD:"add_geofence",DEL:"del_geofence",GET:"get_geofences",GET_ALL:"get_all_geofence",GET_ALL_COUNT:"get_all_geofence_count"}})})();
(function(){qx.Class.define("atr.cache.Fleet",{extend:arskom.EntityCache,type:"singleton",members:{}})})();
(function(){qx.Class.define("atr.draw.Main",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_add_geofence:null,btn_add_message:null,btn_add_poi:null,btn_del_geofence:null,btn_del_poi:null,btn_refresh_event:null,btn_refresh_geofence:null,btn_refresh_poi:null,btn_rule:null,centralwidget:null,chb_message:null,chb_position:null,comp_fleet_vehicle:null,
comp_fleet_vehicle_il:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(569);a.setWidth(761);a.setMargin(1);a.add(this.create_toolbar());a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_add_geofence:function(){var a=this.btn_add_geofence=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);
a.setMinHeight(34);return a},create_btn_add_message:function(){var a=this.btn_add_message=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_add_poi:function(){var a=this.btn_add_poi=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_del_geofence:function(){var a=this.btn_del_geofence=
new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_del_poi:function(){var a=this.btn_del_poi=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_refresh_event:function(){var a=this.btn_refresh_event=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);
a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_refresh_geofence:function(){var a=this.btn_refresh_geofence=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_refresh_poi:function(){var a=this.btn_refresh_poi=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_rule:function(){var a=
this.btn_rule=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout_4());a.setMargin(1);a.add(this.create_hbox_subtoolbar_implicit_container());a.add(this.create_splitter(),{flex:1});a.add(this.create_hbox_activity_archive_implicit_container());return a},create_chb_message:function(){var a=
this.chb_message=new qx.ui.form.ToggleButton;a.setValue(true);a.setWidth(80);a.setLabel(this.tr("Message"));a.setMargin(1);a.setMinWidth(80);return a},create_chb_position:function(){var a=this.chb_position=new qx.ui.form.ToggleButton;a.setValue(true);a.setWidth(80);a.setLabel(this.tr("Position"));a.setMargin(1);a.setMinWidth(80);return a},create_comp_fleet_vehicle:function(){var a=this.comp_fleet_vehicle=new atr.comp.impl.FleetVehicleComposite(this.create_comp_fleet_vehicle_il());a.setMargin(1);return a},
create_comp_fleet_vehicle_il:function(){return this.comp_fleet_vehicle_il=new qx.ui.layout.Canvas},create_dte_day_shown:function(){var a=this.dte_day_shown=new qx.ui.form.DateField;a.setMargin(1);a.setAllowGrowY(false);return a},create_hbox_activity_archive:function(){return this.hbox_activity_archive=new qx.ui.layout.HBox},create_hbox_activity_archive_implicit_container:function(){var a=this.hbox_activity_archive_implicit_container=new qx.ui.container.Composite(this.create_hbox_activity_archive());
a.setMargin(1);return a},create_hbox_subtoolbar:function(){return this.hbox_subtoolbar=new qx.ui.layout.HBox},create_hbox_subtoolbar_implicit_container:function(){var a=this.hbox_subtoolbar_implicit_container=new qx.ui.container.Composite(this.create_hbox_subtoolbar());a.setMargin(1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalLayout_3:function(){return this.horizontalLayout_3=
new qx.ui.layout.HBox},create_horizontalLayout_4:function(){return this.horizontalLayout_4=new qx.ui.layout.HBox},create_horizontalLayout_5:function(){return this.horizontalLayout_5=new qx.ui.layout.HBox},create_horizontalLayout_5_implicit_container:function(){var a=this.horizontalLayout_5_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout_5());a.setMargin(1);a.add(this.create_label_2());a.add(this.create_dte_day_shown(),{flex:0});a.add(this.create_horizontalSpacer(),{flex:1});
a.add(this.create_chb_position(),{flex:1});a.add(this.create_chb_message(),{flex:1});return a},create_horizontalLayout_7:function(){return this.horizontalLayout_7=new qx.ui.layout.VBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_hs_event:function(){var a=this.hs_event=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_hs_event_2:function(){var a=this.hs_event_2=
new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(411);a.setMargin(1);return a},create_hs_geofence2:function(){var a=this.hs_geofence2=new qx.ui.core.Spacer;a.setHeight(17);a.setWidth(349);a.setMargin(1);return a},create_hs_poi2:function(){var a=this.hs_poi2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(4E3);a.setMargin(1);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("Day: "));a.setMargin(1);a.setAllowGrowX(false);return a},create_lbl_event_vehicle:function(){var a=
this.lbl_event_vehicle=new qx.ui.basic.Label;a.setMargin(1);return a},create_left_bar:function(){var a=this.left_bar=new qx.ui.container.Composite(this.create_verticalLayout_8());a.setWidth(350);a.setMargin(1);a.setMinWidth(350);a.add(this.create_tab_left_bar(),{flex:1});return a},create_splitter:function(){var a=this.splitter=new qx.ui.splitpane.Pane("horizontal");a.setMargin(1);a.add(this.create_left_bar(),1);a.add(this.create_verticalLayoutWidget(),1);return a},create_tab_event:function(){var a=
this.tab_event=new qx.ui.tabview.Page;a.setLabel(this.tr("Events"));a.setMargin(1);a.setLayout(this.create_verticalLayout_3());a.add(this.create_wgt_event());a.add(this.create_horizontalLayout_5_implicit_container());a.add(this.create_wgt_event_2());a.add(this.create_tbl_vehicle_activity(),{flex:1});return a},create_tab_geofence:function(){var a=this.tab_geofence=new qx.ui.tabview.Page;a.setLabel(this.tr("Geo-Fences"));a.setMargin(1);a.setLayout(this.create_verticalLayout_2());a.add(this.create_wgt_geofence_2());
a.add(this.create_tbl_geofence(),{flex:1});return a},create_tab_left_bar:function(){var a=this.tab_left_bar=new qx.ui.tabview.TabView;a.setWidth(350);a.setMaxHeight(16777214);a.setMargin(1);a.setMinWidth(350);a.add(this.create_tab_vehicle());a.add(this.create_tab_event());a.add(this.create_tab_poi());a.add(this.create_tab_geofence());return a},create_tab_poi:function(){var a=this.tab_poi=new qx.ui.tabview.Page;a.setLabel(this.tr("Points of Interest"));a.setMargin(1);a.setLayout(this.create_verticalLayout());
a.add(this.create_wgt_poi());a.add(this.create_tbl_poi(),{flex:1});return a},create_tab_vehicle:function(){var a=this.tab_vehicle=new qx.ui.tabview.Page;a.setLabel(this.tr("Vehicles"));a.setMargin(1);a.setLayout(this.create_horizontalLayout_7());a.add(this.create_comp_fleet_vehicle(),{flex:1});return a},create_tb_btn_activity_archive_toolbar:function(){var a=this.tb_btn_activity_archive_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Activity Archive"));return a},create_tb_btn_fleet_toolbar:function(){var a=
this.tb_btn_fleet_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Fleet"));return a},create_tb_btn_geo_fences_toolbar:function(){var a=this.tb_btn_geo_fences_toolbar=new qx.ui.toolbar.CheckBox;a.setLabel(this.tr("Geo-Fences"));return a},create_tb_btn_message_toolbar:function(){var a=this.tb_btn_message_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Message"));return a},create_tb_btn_poi_toolbar:function(){var a=this.tb_btn_poi_toolbar=new qx.ui.toolbar.CheckBox;a.setLabel(this.tr("Poi"));
return a},create_tb_btn_vehicle_toolbar:function(){var a=this.tb_btn_vehicle_toolbar=new qx.ui.toolbar.CheckBox;a.setLabel(this.tr("Vehicle"));return a},create_tbl_geofence:function(){var a=this.tbl_geofence=new atr.comp.GeofenceTable;a.setMargin(1);return a},create_tbl_poi:function(){var a=this.tbl_poi=new atr.comp.PoiTable;a.setMargin(1);return a},create_tbl_vehicle_activity:function(){var a=this.tbl_vehicle_activity=new atr.comp.SmallActivityTable;a.setMargin(1);return a},create_toolbar:function(){var a=
this.toolbar=new qx.ui.toolbar.ToolBar;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.toolbar.Separator);a.add(this.create_tb_btn_vehicle_toolbar());a.add(this.create_tb_btn_poi_toolbar());a.add(this.create_tb_btn_geo_fences_toolbar());a.add(new qx.ui.toolbar.Separator);a.add(this.create_tb_btn_message_toolbar());a.add(this.create_tb_btn_fleet_toolbar());a.add(this.create_tb_btn_activity_archive_toolbar());return a},create_vbox_main:function(){return this.vbox_main=new qx.ui.layout.VBox},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},create_verticalLayoutWidget:function(){var a=this.verticalLayoutWidget=new qx.ui.container.Composite(this.create_vbox_main());a.setMargin(1);return a},create_verticalLayout_2:function(){return this.verticalLayout_2=new qx.ui.layout.VBox},create_verticalLayout_3:function(){return this.verticalLayout_3=new qx.ui.layout.VBox},create_verticalLayout_4:function(){return this.verticalLayout_4=new qx.ui.layout.VBox},create_verticalLayout_8:function(){return this.verticalLayout_8=new qx.ui.layout.VBox},
create_wgt_event:function(){var a=this.wgt_event=new qx.ui.container.Composite(this.create_horizontalLayout_4());a.setMargin(1);a.setAllowGrowY(false);a.add(this.create_lbl_event_vehicle(),{flex:1});a.add(this.create_hs_event(),{flex:1});return a},create_wgt_event_2:function(){var a=this.wgt_event_2=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMargin(1);a.setAllowGrowY(false);a.add(this.create_btn_refresh_event(),{flex:1});a.add(this.create_btn_rule(),{flex:1});a.add(this.create_btn_add_message(),
{flex:1});a.add(this.create_hs_event_2(),{flex:1});return a},create_wgt_geofence_2:function(){var a=this.wgt_geofence_2=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMargin(1);a.setAllowGrowY(false);a.add(this.create_btn_add_geofence(),{flex:1});a.add(this.create_btn_del_geofence(),{flex:1});a.add(this.create_btn_refresh_geofence(),{flex:1});a.add(this.create_hs_geofence2(),{flex:1});return a},create_wgt_poi:function(){var a=this.wgt_poi=new qx.ui.container.Composite(this.create_horizontalLayout_3());
a.setMargin(1);a.add(this.create_btn_add_poi(),{flex:1});a.add(this.create_btn_del_poi(),{flex:1});a.add(this.create_btn_refresh_poi(),{flex:1});a.add(this.create_hs_poi2(),{flex:1});return a},dte_day_shown:null,hbox_activity_archive:null,hbox_activity_archive_implicit_container:null,hbox_subtoolbar:null,hbox_subtoolbar_implicit_container:null,horizontalLayout:null,horizontalLayout_2:null,horizontalLayout_3:null,horizontalLayout_4:null,horizontalLayout_5:null,horizontalLayout_5_implicit_container:null,
horizontalLayout_7:null,horizontalSpacer:null,hs_event:null,hs_event_2:null,hs_geofence2:null,hs_poi2:null,label_2:null,lbl_event_vehicle:null,left_bar:null,splitter:null,tab_event:null,tab_geofence:null,tab_left_bar:null,tab_poi:null,tab_vehicle:null,tb_btn_activity_archive_toolbar:null,tb_btn_fleet_toolbar:null,tb_btn_geo_fences_toolbar:null,tb_btn_message_toolbar:null,tb_btn_poi_toolbar:null,tb_btn_vehicle_toolbar:null,tbl_geofence:null,tbl_poi:null,tbl_vehicle_activity:null,toolbar:null,vbox_main:null,
verticalLayout:null,verticalLayoutWidget:null,verticalLayout_2:null,verticalLayout_3:null,verticalLayout_4:null,verticalLayout_8:null,wgt_event:null,wgt_event_2:null,wgt_geofence_2:null,wgt_poi:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("qx.ui.table.selection.Model",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__qh=[];this.__qj=this.__qi=-1;this.hasBatchModeRefCount=0;this.__qk=false},events:{changeSelection:"qx.event.type.Event"},statics:{NO_SELECTION:1,SINGLE_SELECTION:2,SINGLE_INTERVAL_SELECTION:3,MULTIPLE_INTERVAL_SELECTION:4,MULTIPLE_INTERVAL_SELECTION_TOGGLE:5},properties:{selectionMode:{init:2,check:[1,2,3,4,5],apply:"_applySelectionMode"}},members:{__qk:null,__qi:null,
__qj:null,__qh:null,_applySelectionMode:function(){this.resetSelection()},setBatchMode:function(a){if(a)this.hasBatchModeRefCount+=1;else{if(this.hasBatchModeRefCount==0)throw Error("Try to turn off batch mode althoug it was not turned on.");this.hasBatchModeRefCount-=1;if(this.__qk)this.__qk=false,this._fireChangeSelection()}return this.hasBatchMode()},hasBatchMode:function(){return this.hasBatchModeRefCount>0},getAnchorSelectionIndex:function(){return this.__qi},_setAnchorSelectionIndex:function(a){this.__qi=
a},getLeadSelectionIndex:function(){return this.__qj},_setLeadSelectionIndex:function(a){this.__qj=a},_getSelectedRangeArr:function(){return this.__qh},resetSelection:function(){this.isSelectionEmpty()||(this._resetSelection(),this._fireChangeSelection())},isSelectionEmpty:function(){return this.__qh.length==0},getSelectedCount:function(){for(var a=0,b=0;b<this.__qh.length;b++){var c=this.__qh[b];a+=c.maxIndex-c.minIndex+1}return a},isSelectedIndex:function(a){for(var b=0;b<this.__qh.length;b++){var c=
this.__qh[b];if(a>=c.minIndex&&a<=c.maxIndex)return true}return false},getSelectedRanges:function(){for(var a=[],b=0;b<this.__qh.length;b++)a.push({minIndex:this.__qh[b].minIndex,maxIndex:this.__qh[b].maxIndex});return a},iterateSelection:function(a,b){for(var c=0;c<this.__qh.length;c++)for(var d=this.__qh[c].minIndex;d<=this.__qh[c].maxIndex;d++)a.call(b,d)},setSelectionInterval:function(a,b){var c=this.self(arguments);switch(this.getSelectionMode()){case c.NO_SELECTION:return;case c.SINGLE_SELECTION:if(this.isSelectedIndex(b))return;
a=b;break;case c.MULTIPLE_INTERVAL_SELECTION_TOGGLE:this.setBatchMode(true);try{for(c=a;c<=b;c++)this.isSelectedIndex(c)?this.removeSelectionInterval(c,c):this._addSelectionInterval(c,c)}catch(d){throw qx.core.Environment.get("browser.name")=="ie"&&qx.core.Environment.get("browser.version")<=7&&this.setBatchMode(false),d;}finally{this.setBatchMode(false)}this._fireChangeSelection();return}this._resetSelection();this._addSelectionInterval(a,b);this._fireChangeSelection()},addSelectionInterval:function(a,
b){var c=qx.ui.table.selection.Model;switch(this.getSelectionMode()){case c.NO_SELECTION:break;case c.MULTIPLE_INTERVAL_SELECTION:case c.MULTIPLE_INTERVAL_SELECTION_TOGGLE:this._addSelectionInterval(a,b);this._fireChangeSelection();break;default:this.setSelectionInterval(a,b)}},removeSelectionInterval:function(a,b){this.__qi=a;this.__qj=b;for(var c=Math.min(a,b),d=Math.max(a,b),e=0;e<this.__qh.length;e++){var f=this.__qh[e];if(f.minIndex>d)break;else if(f.maxIndex>=c){var g=f.minIndex>=c&&f.minIndex<=
d,h=f.maxIndex>=c&&f.maxIndex<=d;if(g&&h)this.__qh.splice(e,1),e--;else if(g)f.minIndex=d+1;else if(h)f.maxIndex=c-1;else{this.__qh.splice(e+1,0,{minIndex:d+1,maxIndex:f.maxIndex});f.maxIndex=c-1;break}}}this._fireChangeSelection()},_resetSelection:function(){this.__qh=[];this.__qj=this.__qi=-1},_addSelectionInterval:function(a,b){this.__qi=a;this.__qj=b;for(var c=Math.min(a,b),d=Math.max(a,b),e=0;e<this.__qh.length;e++){var f=this.__qh[e];if(f.minIndex>c)break}this.__qh.splice(e,0,{minIndex:c,maxIndex:d});
c=this.__qh[0];for(d=1;d<this.__qh.length;d++)f=this.__qh[d],c.maxIndex+1>=f.minIndex?(c.maxIndex=Math.max(c.maxIndex,f.maxIndex),this.__qh.splice(d,1),d--):c=f},_dumpRanges:function(){for(var a="Ranges:",b=0;b<this.__qh.length;b++){var c=this.__qh[b];a+=" ["+c.minIndex+".."+c.maxIndex+"]"}this.debug(a)},_fireChangeSelection:function(){this.hasBatchMode()?this.__qk=true:this.fireEvent("changeSelection")}},destruct:function(){this.__qh=null}})})();
(function(){qx.Class.define("atr.comp.draw.FleetVehicleComposite",{extend:qx.ui.container.Composite,construct:function(a,b){this.__ql=b?b:atr.comp.VehicleTable;qx.ui.container.Composite.call(this);this.setLayout(new qx.ui.layout.VBox);this.add(this.create_wgt_fleet_search());this.add(this.create_wgt_vehicle());this.add(this.create_tbl_vehicle(),{flex:1})},members:{__ql:null,fleet_search_grid:null,btn_fleet_refresh:null,btn_add_vehicle:null,btn_del_vehicle:null,btn_edit_vehicle:null,btn_refresh_vehicle:null,
btn_rule:null,btn_message:null,hs_vehicle2:null,tbl_vehicle:null,label_3:null,search_box:null,label_4:null,lbl_search:null,wgt_fleet_search:null,create_btn_refresh_vehicle:function(){var a=this.btn_refresh_vehicle=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_rule:function(){var a=this.btn_rule=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);
a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_message:function(){var a=this.btn_message=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_add_vehicle:function(){var a=this.btn_add_vehicle=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_del_vehicle:function(){var a=
this.btn_del_vehicle=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_btn_edit_vehicle:function(){var a=this.btn_edit_vehicle=new qx.ui.form.Button;a.setHeight(34);a.setWidth(45);a.setMaxHeight(34);a.setMaxWidth(45);a.setMargin(1);a.setMinWidth(45);a.setMinHeight(34);return a},create_tbl_vehicle:function(){var a=this.tbl_vehicle=new this.__ql;a.setMargin(1);return a},create_wgt_fleet_search:function(){var a=
this.wgt_fleet_search=new qx.ui.container.Composite;a.setMargin(1);a.setLayout(new qx.ui.layout.Grid);a.add(this.create_lbl_search(),{column:0,row:0});a.add(this.create_vehicle_search_box(),{column:1,row:0,colSpan:2});a.add(this.create_label_3(),{column:0,row:1});a.add(this.create_cmb_fleet(),{column:1,row:1});a.add(this.create_btn_fleet_refresh(),{column:2,row:1});var b=a.getLayout();b.setColumnFlex(0,1);b.setColumnFlex(1,5);return a},create_cmb_fleet:function(){var a=this.cmb_fleet=new atr.comp.FleetSelectBox;
a.setHeight(24);a.setMaxHeight(24);a.setMargin(1);a.setMinHeight(24);a.setAlignX("center");a.setAlignY("middle");return a},create_btn_fleet_refresh:function(){var a=this.btn_fleet_refresh=new qx.ui.form.Button;a.setHeight(34);a.setMinHeight(34);a.setMaxHeight(34);a.setWidth(45);a.setMaxWidth(45);a.setMinWidth(45);a.setMargin(1);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setMinHeight(34);a.setMaxHeight(34);a.setHeight(34);a.setWidth(40);a.setMinWidth(40);a.setMaxWidth(40);
a.setMargin(1);a.setAlignY("middle");a.setValue(this.tr("Fleet"));return a},create_wgt_vehicle:function(){var a=this.wgt_vehicle=new qx.ui.container.Composite;a.setMargin(1);a.setLayout(new qx.ui.layout.Grid);a.add(this.create_btn_add_vehicle(),{column:0,row:0});a.add(this.create_btn_del_vehicle(),{column:1,row:0});a.add(this.create_btn_edit_vehicle(),{column:2,row:0});a.add(this.create_btn_refresh_vehicle(),{column:3,row:0});a.add(this.create_btn_rule(),{column:4,row:0});a.add(this.create_btn_message(),
{column:5,row:0});a.add(this.create_hs_vehicle2(),{column:6,row:0});a.getLayout().setColumnFlex(6,1);return a},create_hs_vehicle2:function(){var a=this.hs_vehicle2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(4E3);a.setMargin(1);return a},create_lbl_search:function(){var a=this.lbl_search=new qx.ui.basic.Label;a.setValue(this.tr("Vehicle"));a.setMargin(1);a.setAlignY("middle");return a},create_vehicle_search_box:function(){var a=this.search_box=new qx.ui.form.TextField;a.setMargin(1);return a}}})})();
(function(){qx.Class.define("qx.ui.table.Table",{extend:qx.ui.core.Widget,construct:function(a,b){qx.ui.core.Widget.call(this);b||(b={});b.initiallyHiddenColumns&&this.setInitiallyHiddenColumns(b.initiallyHiddenColumns);b.selectionManager&&this.setNewSelectionManager(b.selectionManager);b.selectionModel&&this.setNewSelectionModel(b.selectionModel);b.tableColumnModel&&this.setNewTableColumnModel(b.tableColumnModel);b.tablePane&&this.setNewTablePane(b.tablePane);b.tablePaneHeader&&this.setNewTablePaneHeader(b.tablePaneHeader);
b.tablePaneScroller&&this.setNewTablePaneScroller(b.tablePaneScroller);b.tablePaneModel&&this.setNewTablePaneModel(b.tablePaneModel);b.columnMenu&&this.setNewColumnMenu(b.columnMenu);this._setLayout(new qx.ui.layout.VBox);this.__qm=new qx.ui.container.Composite(new qx.ui.layout.HBox);this._add(this.__qm,{flex:1});this.setDataRowRenderer(new qx.ui.table.rowrenderer.Default(this));this.__qn=this.getNewSelectionManager()(this);this.setSelectionModel(this.getNewSelectionModel()(this));this.setTableModel(a||
this.getEmptyTableModel());this.setMetaColumnCounts([-1]);this.setTabIndex(1);this.addListener("keypress",this._onKeyPress);this.addListener("focus",this._onFocusChanged);this.addListener("blur",this._onFocusChanged);var c=(new qx.ui.core.Widget).set({height:0});this._add(c);c.addListener("resize",this._onResize,this);this.__qp=this.__qo=null;qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().addListener("changeLocale",this._onChangeLocale,this);this.initStatusBarVisible();a=
this.getTableModel();a.init&&typeof a.init=="function"&&a.init(this)},events:{columnVisibilityMenuCreateStart:"qx.event.type.Data",columnVisibilityMenuCreateEnd:"qx.event.type.Data",tableWidthChanged:"qx.event.type.Event",verticalScrollBarChanged:"qx.event.type.Data",cellClick:"qx.ui.table.pane.CellEvent",cellDblclick:"qx.ui.table.pane.CellEvent",cellContextmenu:"qx.ui.table.pane.CellEvent",dataEdited:"qx.event.type.Data"},statics:{__qq:{cellClick:1,cellDblclick:1,cellContextmenu:1}},properties:{appearance:{refine:true,
init:"table"},focusable:{refine:true,init:true},minWidth:{refine:true,init:50},initiallyHiddenColumns:{init:null},selectable:{refine:true,init:false},selectionModel:{check:"qx.ui.table.selection.Model",apply:"_applySelectionModel",event:"changeSelectionModel"},tableModel:{check:"qx.ui.table.ITableModel",apply:"_applyTableModel",event:"changeTableModel"},rowHeight:{check:"Number",init:20,apply:"_applyRowHeight",event:"changeRowHeight",themeable:true},forceLineHeight:{check:"Boolean",init:true},headerCellsVisible:{check:"Boolean",
init:true,apply:"_applyHeaderCellsVisible",themeable:true},headerCellHeight:{check:"Integer",init:16,apply:"_applyHeaderCellHeight",event:"changeHeaderCellHeight",nullable:true,themeable:true},statusBarVisible:{check:"Boolean",init:true,apply:"_applyStatusBarVisible"},additionalStatusBarText:{nullable:true,init:null,apply:"_applyAdditionalStatusBarText"},columnVisibilityButtonVisible:{check:"Boolean",init:true,apply:"_applyColumnVisibilityButtonVisible",themeable:true},metaColumnCounts:{check:"Object",
apply:"_applyMetaColumnCounts"},focusCellOnMouseMove:{check:"Boolean",init:false,apply:"_applyFocusCellOnMouseMove"},rowFocusChangeModifiesSelection:{check:"Boolean",init:true},showCellFocusIndicator:{check:"Boolean",init:true,apply:"_applyShowCellFocusIndicator"},contextMenuFromDataCellsOnly:{check:"Boolean",init:true,apply:"_applyContextMenuFromDataCellsOnly"},keepFirstVisibleRowComplete:{check:"Boolean",init:true,apply:"_applyKeepFirstVisibleRowComplete"},alwaysUpdateCells:{check:"Boolean",init:false},
resetSelectionOnHeaderClick:{check:"Boolean",init:true,apply:"_applyResetSelectionOnHeaderClick"},dataRowRenderer:{check:"qx.ui.table.IRowRenderer",init:null,nullable:true,event:"changeDataRowRenderer"},modalCellEditorPreOpenFunction:{check:"Function",init:null,nullable:true},newColumnMenu:{check:"Function",init:function(){return new qx.ui.table.columnmenu.Button}},newSelectionManager:{check:"Function",init:function(a){return new qx.ui.table.selection.Manager(a)}},newSelectionModel:{check:"Function",
init:function(a){return new qx.ui.table.selection.Model(a)}},newTableColumnModel:{check:"Function",init:function(a){return new qx.ui.table.columnmodel.Basic(a)}},newTablePane:{check:"Function",init:function(a){return new qx.ui.table.pane.Pane(a)}},newTablePaneHeader:{check:"Function",init:function(a){return new qx.ui.table.pane.Header(a)}},newTablePaneScroller:{check:"Function",init:function(a){return new qx.ui.table.pane.Scroller(a)}},newTablePaneModel:{check:"Function",init:function(a){return new qx.ui.table.pane.Model(a)}}},
members:{__qo:null,__qp:null,__qm:null,__qn:null,__qr:null,__qs:null,__mx:null,__qt:null,__qu:null,__qv:null,__qw:null,__jk:null,_createChildControlImpl:function(a){var b;switch(a){case "statusbar":b=new qx.ui.basic.Label;b.set({allowGrowX:true});this._add(b);break;case "column-button":b=this.getNewColumnMenu()(),b.set({focusable:false}),b.factory("menu",{table:this}).addListener("appear",this._initColumnMenu,this)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_applySelectionModel:function(a,
b){this.__qn.setSelectionModel(a);b!=null&&b.removeListener("changeSelection",this._onSelectionChanged,this);a.addListener("changeSelection",this._onSelectionChanged,this)},_applyRowHeight:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].updateVerScrollBarMaximum()},_applyHeaderCellsVisible:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b]._excludeChildControl("header")},_applyHeaderCellHeight:function(a){for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].getHeader().setHeight(a)},
getEmptyTableModel:function(){if(!this.__qv)this.__qv=new qx.ui.table.model.Simple,this.__qv.setColumns([]),this.__qv.setData([]);return this.__qv},_applyTableModel:function(a,b){this.getTableColumnModel().init(a.getColumnCount(),this);b!=null&&(b.removeListener("metaDataChanged",this._onTableModelMetaDataChanged,this),b.removeListener("dataChanged",this._onTableModelDataChanged,this));a.addListener("metaDataChanged",this._onTableModelMetaDataChanged,this);a.addListener("dataChanged",this._onTableModelDataChanged,
this);this._updateStatusBar();this._updateTableData(0,a.getRowCount(),0,a.getColumnCount());this._onTableModelMetaDataChanged();b&&a.init&&typeof a.init=="function"&&a.init(this)},getTableColumnModel:function(){if(!this.__qu){var a=this.__qu=this.getNewTableColumnModel()(this);a.addListener("visibilityChanged",this._onColVisibilityChanged,this);a.addListener("widthChanged",this._onColWidthChanged,this);a.addListener("orderChanged",this._onColOrderChanged,this);var b=this.getTableModel();a.init(b.getColumnCount(),
this);for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].getTablePaneModel().setTableColumnModel(a)}return this.__qu},_applyStatusBarVisible:function(a){a?this._showChildControl("statusbar"):this._excludeChildControl("statusbar");a&&this._updateStatusBar()},_applyAdditionalStatusBarText:function(a){this.__qr=a;this._updateStatusBar()},_applyColumnVisibilityButtonVisible:function(a){a?this._showChildControl("column-button"):this._excludeChildControl("column-button")},_applyMetaColumnCounts:function(a,
b){var c=this._getPaneScrollerArr(),d={};if(a>b){var e=qx.event.Registration.getManager(c[0]),f;for(f in qx.ui.table.Table.__qq)d[f]={},d[f].capture=e.getListeners(c[0],f,true),d[f].bubble=e.getListeners(c[0],f,false)}this._cleanUpMetaColumns(a.length);for(var g=0,e=0;e<c.length;e++){var h=c[e],i=h.getTablePaneModel();i.setFirstColumnX(g);i.setMaxColumnCount(a[e]);g+=a[e]}if(a.length>c.length)for(var j=this.getTableColumnModel(),e=c.length;e<a.length;e++){i=this.getNewTablePaneModel()(j);i.setFirstColumnX(g);
i.setMaxColumnCount(a[e]);g+=a[e];h=this.getNewTablePaneScroller()(this);h.setTablePaneModel(i);h.addListener("changeScrollY",this._onScrollY,this);for(f in qx.ui.table.Table.__qq){if(!d[f])break;if(d[f].capture&&d[f].capture.length>0)for(var k=d[f].capture,i=0;i<k.length;i++){var l=k[i].context;l?l==c[0]&&(l=h):l=this;h.addListener(f,k[i].handler,l,true)}if(d[f].bubble&&d[f].bubble.length>0){k=d[f].bubble;for(i=0;i<k.length;i++)(l=k[i].context)?l==c[0]&&(l=h):l=this,h.addListener(f,k[i].handler,
l,false)}}this.__qm.add(h,{flex:e==a.length-1?1:0});c=this._getPaneScrollerArr()}for(e=0;e<c.length;e++)h=c[e],d=e==c.length-1,h.getHeader().setHeight(this.getHeaderCellHeight()),h.setTopRightWidget(d?this.getChildControl("column-button"):null);this.isColumnVisibilityButtonVisible()||this._excludeChildControl("column-button");this._updateScrollerWidths();this._updateScrollBarVisibility()},_applyFocusCellOnMouseMove:function(a){for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].setFocusCellOnMouseMove(a)},
_applyShowCellFocusIndicator:function(a){for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].setShowCellFocusIndicator(a)},_applyContextMenuFromDataCellsOnly:function(a){for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].setContextMenuFromDataCellsOnly(a)},_applyKeepFirstVisibleRowComplete:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].onKeepFirstVisibleRowCompleteChanged()},_applyResetSelectionOnHeaderClick:function(a){for(var b=this._getPaneScrollerArr(),
c=0;c<b.length;c++)b[c].setResetSelectionOnHeaderClick(a)},getSelectionManager:function(){return this.__qn},_getPaneScrollerArr:function(){return this.__qm.getChildren()},getPaneScroller:function(a){return this._getPaneScrollerArr()[a]},_cleanUpMetaColumns:function(a){var b=this._getPaneScrollerArr();if(b!=null)for(var c=b.length-1;c>=a;c--)b[c].destroy()},_onChangeLocale:function(){this.updateContent();this._updateStatusBar()},_onSelectionChanged:function(){for(var a=this._getPaneScrollerArr(),b=
0;b<a.length;b++)a[b].onSelectionChanged();this._updateStatusBar()},_onTableModelMetaDataChanged:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].onTableModelMetaDataChanged();this._updateStatusBar()},_onTableModelDataChanged:function(a){a=a.getData();this._updateTableData(a.firstRow,a.lastRow,a.firstColumn,a.lastColumn,a.removeStart,a.removeCount)},_updateTableData:function(a,b,c,d,e,f){var g=this._getPaneScrollerArr();f&&(this.getSelectionModel().removeSelectionInterval(e,
e+f),this.__qp>=e&&this.__qp<e+f&&this.setFocusedCell());for(e=0;e<g.length;e++)g[e].onTableModelDataChanged(a,b,c,d);a=this.getTableModel().getRowCount();if(a!=this.__qs)this.__qs=a,this._updateScrollBarVisibility(),this._updateStatusBar()},_onScrollY:function(a){if(!this.__mx){this.__mx=true;for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].setScrollY(a.getData());this.__mx=false}},_onKeyPress:function(a){if(this.getEnabled()){var b=this.__qp,c=true,d=a.getKeyIdentifier();if(this.isEditing()){if(a.getModifiers()==
0)switch(d){case "Enter":this.stopEditing();b=this.__qp;this.moveFocusedCell(0,1);this.__qp!=b&&(c=this.startEditing());break;case "Escape":this.cancelEditing();this.focus();break;default:c=false}}else if(a.isCtrlPressed())switch(c=true,d){case "A":var e=this.getTableModel().getRowCount();e>0&&this.getSelectionModel().setSelectionInterval(0,e-1);break;default:c=false}else switch(d){case "Space":this.__qn.handleSelectKeyDown(this.__qp,a);break;case "F2":case "Enter":this.startEditing();c=true;break;
case "Home":this.setFocusedCell(this.__qo,0,true);break;case "End":e=this.getTableModel().getRowCount();this.setFocusedCell(this.__qo,e-1,true);break;case "Left":this.moveFocusedCell(-1,0);break;case "Right":this.moveFocusedCell(1,0);break;case "Up":this.moveFocusedCell(0,-1);break;case "Down":this.moveFocusedCell(0,1);break;case "PageUp":case "PageDown":var f=this.getPaneScroller(0),e=f.getTablePane(),g=this.getRowHeight(),d=d=="PageUp"?-1:1,e=e.getVisibleRowCount()-1;f.setScrollY(f.getScrollY()+
d*e*g);this.moveFocusedCell(0,d*e);break;default:c=false}b!=this.__qp&&this.getRowFocusChangeModifiesSelection()&&this.__qn.handleMoveKeyDown(this.__qp,a);c&&(a.preventDefault(),a.stopPropagation())}},_onFocusChanged:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].onFocusChanged()},_onColVisibilityChanged:function(a){for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++)b[c].onColVisibilityChanged();a=a.getData();this.__qt!=null&&a.col!=null&&a.visible!=null&&this.__qt[a.col].setVisible(a.visible);
this._updateScrollerWidths();this._updateScrollBarVisibility()},_onColWidthChanged:function(a){for(var b=this._getPaneScrollerArr(),c=0;c<b.length;c++){var d=a.getData();b[c].setColumnWidth(d.col,d.newWidth)}this._updateScrollerWidths();this._updateScrollBarVisibility()},_onColOrderChanged:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].onColOrderChanged();this._updateScrollerWidths();this._updateScrollBarVisibility()},getTablePaneScrollerAtPageX:function(a){a=this._getMetaColumnAtPageX(a);
return a!=-1?this.getPaneScroller(a):null},setFocusedCell:function(a,b,c){if(!this.isEditing()&&(a!=this.__qo||b!=this.__qp)){a===null&&(a=0);this.__qo=a;this.__qp=b;for(var d=this._getPaneScrollerArr(),e=0;e<d.length;e++)d[e].setFocusedCell(a,b);a!==null&&c&&this.scrollCellVisible(a,b)}},resetSelection:function(){this.getSelectionModel().resetSelection()},resetCellFocus:function(){this.setFocusedCell(null,null,false)},getFocusedColumn:function(){return this.__qo},getFocusedRow:function(){return this.__qp},
highlightFocusedRow:function(a){this.getDataRowRenderer().setHighlightFocusRow(a)},clearFocusedRowHighlight:function(a){if(a&&(a=a.getRelatedTarget(),a instanceof qx.ui.table.pane.Pane||a instanceof qx.ui.table.pane.FocusIndicator))return;this.resetCellFocus();for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].onFocusChanged()},moveFocusedCell:function(a,b){var c=this.__qo,d=this.__qp;if(!(c==null||d==null)){if(a!=0)var e=this.getTableColumnModel(),c=e.getVisibleX(c),f=e.getVisibleColumnCount(),
c=qx.lang.Number.limit(c+a,0,f-1),c=e.getVisibleColumnAtX(c);b!=0&&(e=this.getTableModel(),d=qx.lang.Number.limit(d+b,0,e.getRowCount()-1));this.setFocusedCell(c,d,true)}},scrollCellVisible:function(a,b){this.getContentElement().getDomElement()||this.addListenerOnce("appear",function(){this.scrollCellVisible(a,b)},this);var c=this._getMetaColumnAtColumnX(this.getTableColumnModel().getVisibleX(a));c!=-1&&this.getPaneScroller(c).scrollCellVisible(a,b)},isEditing:function(){return this.__qo!=null?this.getPaneScroller(this._getMetaColumnAtColumnX(this.getTableColumnModel().getVisibleX(this.__qo))).isEditing():
false},startEditing:function(){return this.__qo!=null?this.getPaneScroller(this._getMetaColumnAtColumnX(this.getTableColumnModel().getVisibleX(this.__qo))).startEditing():false},stopEditing:function(){this.__qo!=null&&this.getPaneScroller(this._getMetaColumnAtColumnX(this.getTableColumnModel().getVisibleX(this.__qo))).stopEditing()},cancelEditing:function(){this.__qo!=null&&this.getPaneScroller(this._getMetaColumnAtColumnX(this.getTableColumnModel().getVisibleX(this.__qo))).cancelEditing()},updateContent:function(){for(var a=
this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].getTablePane().updateContent(true)},blockHeaderElements:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].getHeader().getBlocker().blockContent(20);this.getChildControl("column-button").getBlocker().blockContent(20)},unblockHeaderElements:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++)a[b].getHeader().getBlocker().unblockContent();this.getChildControl("column-button").getBlocker().unblockContent()},_getMetaColumnAtPageX:function(a){for(var b=
this._getPaneScrollerArr(),c=0;c<b.length;c++){var d=b[c].getContainerLocation();if(a>=d.left&&a<=d.right)return c}return-1},_getMetaColumnAtColumnX:function(a){for(var b=this.getMetaColumnCounts(),c=0,d=0;d<b.length;d++){var e=b[d];c+=e;if(e==-1||a<c)return d}return-1},_updateStatusBar:function(){var a=this.getTableModel();if(this.getStatusBarVisible()){var b=this.getSelectionModel().getSelectedCount(),a=a.getRowCount(),c;a>=0&&(c=b==0?this.trn("one row","%1 rows",a,a):this.trn("one of one row",
"%1 of %2 rows",a,b,a));if(this.__qr)c?c+=this.__qr:c=this.__qr;c&&this.getChildControl("statusbar").setValue(c)}},_updateScrollerWidths:function(){for(var a=this._getPaneScrollerArr(),b=0;b<a.length;b++){var c=b==a.length-1,d=a[b].getTablePaneModel().getTotalWidth();a[b].setPaneWidth(d);a[b].setLayoutProperties({flex:c?1:0})}},_updateScrollBarVisibility:function(){if(this.getBounds()){for(var a=qx.ui.table.pane.Scroller.HORIZONTAL_SCROLLBAR,b=qx.ui.table.pane.Scroller.VERTICAL_SCROLLBAR,c=this._getPaneScrollerArr(),
d=false,e=false,f=0;f<c.length;f++){var g=f==c.length-1,h=c[f].getNeededScrollBars(d,!g);h&a&&(d=true);g&&h&b&&(e=true)}for(f=0;f<c.length;f++){g=f==c.length-1;c[f].setHorizontalScrollBarVisible(d);if(g&&this.__qw==null)this.__qw=c[f].getVerticalScrollBarVisible(),this.__jk=qx.event.Timer.once(function(){this.__jk=this.__qw=null},this,0);c[f].setVerticalScrollBarVisible(g&&e);g&&e!=this.__qw&&this.fireDataEvent("verticalScrollBarChanged",e)}}},_initColumnMenu:function(){var a=this.getTableModel(),
b=this.getTableColumnModel(),c=this.getChildControl("column-button");c.empty();var d=c.getMenu(),e={table:this,menu:d,columnButton:c};this.fireDataEvent("columnVisibilityMenuCreateStart",e);this.__qt={};for(var e=0,f=a.getColumnCount();e<f;e++){var g=c.factory("menu-button",{text:a.getColumnName(e),column:e,bVisible:b.isColumnVisible(e)});qx.core.Assert.assertInterface(g,qx.ui.table.IColumnMenuItem);g.addListener("changeVisible",this._createColumnVisibilityCheckBoxHandler(e),this);this.__qt[e]=g}e=
{table:this,menu:d,columnButton:c};this.fireDataEvent("columnVisibilityMenuCreateEnd",e)},_createColumnVisibilityCheckBoxHandler:function(a){return function(b){this.getTableColumnModel().setColumnVisible(a,b.getData())}},setColumnWidth:function(a,b){this.getTableColumnModel().setColumnWidth(a,b)},_onResize:function(){this.fireEvent("tableWidthChanged");this._updateScrollerWidths();this._updateScrollBarVisibility()},addListener:function(a,b,c,d){if(this.self(arguments).__qq[a]){for(var e=[a],f=0,g=
this._getPaneScrollerArr();f<g.length;f++)e.push(g[f].addListener.apply(g[f],arguments));return e.join('"')}else return qx.ui.core.Widget.prototype.addListener.call(this,a,b,c,d)},removeListener:function(a,b,c,d){if(this.self(arguments).__qq[a])for(var e=0,f=this._getPaneScrollerArr();e<f.length;e++)f[e].removeListener.apply(f[e],arguments);else qx.ui.core.Widget.prototype.removeListener.call(this,a,b,c,d)},removeListenerById:function(a){var b=a.split('"'),c=b.shift();if(this.self(arguments).__qq[c]){for(var c=
true,d=0,e=this._getPaneScrollerArr();d<e.length;d++)c=e[d].removeListenerById.call(e[d],b[d])&&c;return c}else return qx.ui.core.Widget.prototype.removeListenerById.call(this,a)},destroy:function(){this.getChildControl("column-button").getMenu().destroy();qx.ui.core.Widget.prototype.destroy.call(this)}},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this);var a=this.getSelectionModel();a&&a.dispose();
(a=this.getDataRowRenderer())&&a.dispose();this._cleanUpMetaColumns(0);this.getTableColumnModel().dispose();this._disposeObjects("__qn","__qm","__qv","__qv","__qu","__jk");this._disposeMap("__qt")}})})();(function(){qx.Interface.define("qx.ui.table.IRowRenderer",{members:{updateDataRowElement:function(){},getRowHeightStyle:function(){},createRowStyle:function(){},getRowClass:function(){}}})})();
(function(){qx.Class.define("qx.ui.table.rowrenderer.Default",{extend:qx.core.Object,implement:qx.ui.table.IRowRenderer,construct:function(){qx.core.Object.call(this);this.__qx="";this.__qx={};this._colors={};this._renderFont(qx.theme.manager.Font.getInstance().resolve("default"));var a=qx.theme.manager.Color.getInstance();this._colors.bgcolFocusedSelected=a.resolve("table-row-background-focused-selected");this._colors.bgcolFocused=a.resolve("table-row-background-focused");this._colors.bgcolSelected=
a.resolve("table-row-background-selected");this._colors.bgcolEven=a.resolve("table-row-background-even");this._colors.bgcolOdd=a.resolve("table-row-background-odd");this._colors.colSelected=a.resolve("table-row-selected");this._colors.colNormal=a.resolve("table-row");this._colors.horLine=a.resolve("table-row-line")},properties:{highlightFocusRow:{check:"Boolean",init:true}},members:{_colors:null,__qy:null,__qx:null,_insetY:1,_renderFont:function(a){a?(this.__qy=a.getStyles(),this.__qx=qx.bom.element.Style.compile(this.__qy),
this.__qx=this.__qx.replace(/"/g,"'")):(this.__qx="",this.__qy=qx.bom.Font.getDefaultStyles())},updateDataRowElement:function(a,b){var c=b.style;qx.bom.element.Style.setStyles(b,this.__qy);c.backgroundColor=a.focusedRow&&this.getHighlightFocusRow()?a.selected?this._colors.bgcolFocusedSelected:this._colors.bgcolFocused:a.selected?this._colors.bgcolSelected:a.row%2==0?this._colors.bgcolEven:this._colors.bgcolOdd;c.color=a.selected?this._colors.colSelected:this._colors.colNormal;c.borderBottom="1px solid "+
this._colors.horLine},getRowHeightStyle:function(a){qx.core.Environment.get("css.boxmodel")=="content"&&(a-=this._insetY);return"height:"+a+"px;"},createRowStyle:function(a){var b=[];b.push(";");b.push(this.__qx);b.push("background-color:");a.focusedRow&&this.getHighlightFocusRow()?b.push(a.selected?this._colors.bgcolFocusedSelected:this._colors.bgcolFocused):a.selected?b.push(this._colors.bgcolSelected):b.push(a.row%2==0?this._colors.bgcolEven:this._colors.bgcolOdd);b.push(";color:");b.push(a.selected?
this._colors.colSelected:this._colors.colNormal);b.push(";border-bottom: 1px solid ",this._colors.horLine);return b.join("")},getRowClass:function(){return""},getRowAttributes:function(){return""}},destruct:function(){this._colors=this.__qy=this.__qx=null}})})();(function(){qx.Interface.define("qx.ui.table.IColumnMenuButton",{properties:{menu:{}},members:{factory:function(){return true},empty:function(){return true}}})})();
(function(){qx.Class.define("qx.ui.form.MenuButton",{extend:qx.ui.form.Button,construct:function(a,b,c){qx.ui.form.Button.call(this,a,b);c!=null&&this.setMenu(c)},properties:{menu:{check:"qx.ui.menu.Menu",nullable:true,apply:"_applyMenu",event:"changeMenu"}},members:{_applyVisibility:function(a,b){qx.ui.form.Button.prototype._applyVisibility.call(this,a,b);var c=this.getMenu();a!="visible"&&c&&c.hide()},_applyMenu:function(a,b){b&&(b.removeListener("changeVisibility",this._onMenuChange,this),b.resetOpener());
a&&(a.addListener("changeVisibility",this._onMenuChange,this),a.setOpener(this),a.removeState("submenu"),a.removeState("contextmenu"))},open:function(a){var b=this.getMenu();b&&(qx.ui.menu.Manager.getInstance().hideAll(),b.setOpener(this),b.open(),a&&(a=b.getSelectables()[0])&&b.setSelectedButton(a))},_onMenuChange:function(){this.getMenu().isVisible()?this.addState("pressed"):this.removeState("pressed")},_onMouseDown:function(a){qx.ui.form.Button.prototype._onMouseDown.call(this,a);if(a.getButton()==
"left"){var b=this.getMenu();b&&(b.isVisible()?b.exclude():this.open(),a.stopPropagation())}},_onMouseUp:function(a){qx.ui.form.Button.prototype._onMouseUp.call(this,a);a.stopPropagation()},_onMouseOver:function(){this.addState("hovered")},_onMouseOut:function(){this.removeState("hovered")},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case "Enter":this.removeState("abandoned");this.addState("pressed");var b=this.getMenu();b&&(b.isVisible()?b.exclude():this.open());a.stopPropagation()}},_onKeyUp:function(){}}})})();
(function(){qx.Class.define("qx.ui.menu.Manager",{type:"singleton",extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__jI=[];var a=document.body,b=qx.event.Registration;b.addListener(window.document.documentElement,"mousedown",this._onMouseDown,this,true);b.addListener(a,"keydown",this._onKeyUpDown,this,true);b.addListener(a,"keyup",this._onKeyUpDown,this,true);b.addListener(a,"keypress",this._onKeyPress,this,true);qx.core.Environment.get("event.touch")||qx.bom.Element.addListener(window,
"blur",this.hideAll,this);this.__qz=new qx.event.Timer;this.__qz.addListener("interval",this._onOpenInterval,this);this.__qA=new qx.event.Timer;this.__qA.addListener("interval",this._onCloseInterval,this)},members:{__qB:null,__qC:null,__qz:null,__qA:null,__jI:null,_getChild:function(a,b,c,d){for(var a=a.getChildren(),e=a.length,f,g=b;g<e&&g>=0;g+=c)if(f=a[g],f.isEnabled()&&!f.isAnonymous()&&f.isVisible())return f;if(d)for(g=g==e?0:e-1;g!=b;g+=c)if(f=a[g],f.isEnabled()&&!f.isAnonymous()&&f.isVisible())return f;
return null},_isInMenu:function(a){for(;a;){if(a instanceof qx.ui.menu.Menu)return true;a=a.getLayoutParent()}return false},_getMenuButton:function(a){for(;a;){if(a instanceof qx.ui.menu.AbstractButton)return a;a=a.getLayoutParent()}return null},add:function(a){if(qx.core.Environment.get("qx.debug")&&!(a instanceof qx.ui.menu.Menu))throw Error("Object is no menu: "+a);var b=this.__jI;b.push(a);a.setZIndex(1E6+b.length)},remove:function(a){if(qx.core.Environment.get("qx.debug")&&!(a instanceof qx.ui.menu.Menu))throw Error("Object is no menu: "+
a);var b=this.__jI;b&&qx.lang.Array.remove(b,a)},hideAll:function(){var a=this.__jI;if(a)for(var b=a.length-1;b>=0;b--)a[b].exclude()},getActiveMenu:function(){var a=this.__jI;return a.length>0?a[a.length-1]:null},scheduleOpen:function(a){this.cancelClose(a);if(a.isVisible())this.__qB&&this.cancelOpen(this.__qB);else if(this.__qB!=a)this.__qB=a,this.__qz.restartWith(a.getOpenInterval())},scheduleClose:function(a){this.cancelOpen(a);if(a.isVisible()){if(this.__qC!=a)this.__qC=a,this.__qA.restartWith(a.getCloseInterval())}else this.__qC&&
this.cancelClose(this.__qC)},cancelOpen:function(a){if(this.__qB==a)this.__qz.stop(),this.__qB=null},cancelClose:function(a){if(this.__qC==a)this.__qA.stop(),this.__qC=null},_onOpenInterval:function(){this.__qz.stop();this.__qB.open();this.__qB=null},_onCloseInterval:function(){this.__qA.stop();this.__qC.exclude();this.__qC=null},_onMouseDown:function(a){a=a.getTarget();a=qx.ui.core.Widget.getWidgetByElement(a,true);a==null?this.hideAll():(!a.getMenu||!a.getMenu()||!a.getMenu().isVisible())&&this.__jI.length>
0&&!this._isInMenu(a)&&this.hideAll()},__qD:{Enter:1,Space:1},__oR:{Escape:1,Up:1,Down:1,Left:1,Right:1},_onKeyUpDown:function(a){var b=this.getActiveMenu();if(b){var c=a.getKeyIdentifier();(this.__oR[c]||this.__qD[c]&&b.getSelectedButton())&&a.stopPropagation()}},_onKeyPress:function(a){var b=this.getActiveMenu();if(b){var c=a.getKeyIdentifier(),d=this.__qD[c];if(this.__oR[c]){switch(c){case "Up":this._onKeyPressUp(b);break;case "Down":this._onKeyPressDown(b);break;case "Left":this._onKeyPressLeft(b);
break;case "Right":this._onKeyPressRight(b);break;case "Escape":this.hideAll()}a.stopPropagation();a.preventDefault()}else if(d&&(d=b.getSelectedButton())){switch(c){case "Enter":this._onKeyPressEnter(b,d,a);break;case "Space":this._onKeyPressSpace(b,d,a)}a.stopPropagation();a.preventDefault()}}},_onKeyPressUp:function(a){var b=a.getSelectedButton(),c=a.getChildren(),b=b?a.indexOf(b)-1:c.length-1;(b=this._getChild(a,b,-1,true))?a.setSelectedButton(b):a.resetSelectedButton()},_onKeyPressDown:function(a){var b=
a.getSelectedButton(),b=b?a.indexOf(b)+1:0;(b=this._getChild(a,b,1,true))?a.setSelectedButton(b):a.resetSelectedButton()},_onKeyPressLeft:function(a){if(a=a.getOpener())if(a instanceof qx.ui.menu.AbstractButton){var b=a.getLayoutParent();b.resetOpenedButton();b.setSelectedButton(a)}else if(a instanceof qx.ui.menubar.Button){var b=a.getMenuBar().getMenuButtons(),c=b.indexOf(a);if(c!==-1){for(var d=null,e=b.length,f=1;f<=e;f++){var g=b[(c-f+e)%e];if(g.isEnabled()&&g.isVisible()){d=g;break}}d&&d!=a&&
d.open(true)}}},_onKeyPressRight:function(a){var b=a.getSelectedButton();if(b){var c=b.getMenu();if(c){a.setOpenedButton(b);var d=this._getChild(c,0,1);d&&c.setSelectedButton(d);return}}else if(!a.getOpenedButton()&&(d=this._getChild(a,0,1))){a.setSelectedButton(d);d.getMenu()&&a.setOpenedButton(d);return}a=a.getOpener();if(a instanceof qx.ui.menu.Button&&b){for(;a;)if(a=a.getLayoutParent(),a instanceof qx.ui.menu.Menu){if(a=a.getOpener(),a instanceof qx.ui.menubar.Button)break}else break;if(!a)return}if(a instanceof
qx.ui.menubar.Button&&(b=a.getMenuBar().getMenuButtons(),c=b.indexOf(a),c!==-1)){for(var d=null,e=b.length,f=1;f<=e;f++){var g=b[(c+f)%e];if(g.isEnabled()&&g.isVisible()){d=g;break}}d&&d!=a&&d.open(true)}},_onKeyPressEnter:function(a,b,c){b.hasListener("keypress")&&(a=c.clone(),a.setBubbles(false),a.setTarget(b),b.dispatchEvent(a));this.hideAll()},_onKeyPressSpace:function(a,b,c){b.hasListener("keypress")&&(a=c.clone(),a.setBubbles(false),a.setTarget(b),b.dispatchEvent(a))}},destruct:function(){var a=
qx.event.Registration,b=document.body;a.removeListener(window.document.documentElement,"mousedown",this._onMouseDown,this,true);a.removeListener(b,"keydown",this._onKeyUpDown,this,true);a.removeListener(b,"keyup",this._onKeyUpDown,this,true);a.removeListener(b,"keypress",this._onKeyPress,this,true);this._disposeObjects("__qz","__qA");this._disposeArray("__jI")}})})();
(function(){qx.Class.define("qx.ui.menu.Menu",{extend:qx.ui.core.Widget,include:[qx.ui.core.MPlacement,qx.ui.core.MRemoteChildrenHandling],construct:function(){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.menu.Layout);var a=this.getApplicationRoot();a.add(this);this.addListener("mouseover",this._onMouseOver);this.addListener("mouseout",this._onMouseOut);this.addListener("resize",this._onResize,this);a.addListener("resize",this._onResize,this);this._blocker=new qx.ui.core.Blocker(a);this.initVisibility();
this.initKeepFocus();this.initKeepActive()},properties:{appearance:{refine:true,init:"menu"},allowGrowX:{refine:true,init:false},allowGrowY:{refine:true,init:false},visibility:{refine:true,init:"excluded"},keepFocus:{refine:true,init:true},keepActive:{refine:true,init:true},spacingX:{check:"Integer",apply:"_applySpacingX",init:0,themeable:true},spacingY:{check:"Integer",apply:"_applySpacingY",init:0,themeable:true},iconColumnWidth:{check:"Integer",init:0,themeable:true,apply:"_applyIconColumnWidth"},
arrowColumnWidth:{check:"Integer",init:0,themeable:true,apply:"_applyArrowColumnWidth"},blockerColor:{check:"Color",init:null,nullable:true,apply:"_applyBlockerColor",themeable:true},blockerOpacity:{check:"Number",init:1,apply:"_applyBlockerOpacity",themeable:true},selectedButton:{check:"qx.ui.core.Widget",nullable:true,apply:"_applySelectedButton"},openedButton:{check:"qx.ui.core.Widget",nullable:true,apply:"_applyOpenedButton"},opener:{check:"qx.ui.core.Widget",nullable:true},openInterval:{check:"Integer",
themeable:true,init:250,apply:"_applyOpenInterval"},closeInterval:{check:"Integer",themeable:true,init:250,apply:"_applyCloseInterval"},blockBackground:{check:"Boolean",themeable:true,init:false}},members:{__qE:null,__qF:null,_blocker:null,open:function(){this.getOpener()!=null?(this.placeToWidget(this.getOpener()),this.__qH(),this.show(),this._placementTarget=this.getOpener()):this.warn("The menu instance needs a configured 'opener' widget!")},openAtMouse:function(a){this.placeToMouse(a);this.__qH();
this.show();this._placementTarget={left:a.getDocumentLeft(),top:a.getDocumentTop()}},openAtPoint:function(a){this.placeToPoint(a);this.__qH();this.show();this._placementTarget=a},addSeparator:function(){this.add(new qx.ui.menu.Separator)},getColumnSizes:function(){return this._getMenuLayout().getColumnSizes()},getSelectables:function(){for(var a=[],b=this.getChildren(),c=0;c<b.length;c++)b[c].isEnabled()&&a.push(b[c]);return a},_applyIconColumnWidth:function(a){this._getMenuLayout().setIconColumnWidth(a)},
_applyArrowColumnWidth:function(a){this._getMenuLayout().setArrowColumnWidth(a)},_applySpacingX:function(a){this._getMenuLayout().setColumnSpacing(a)},_applySpacingY:function(a){this._getMenuLayout().setSpacing(a)},_applyVisibility:function(a,b){qx.ui.core.Widget.prototype._applyVisibility.call(this,a,b);var c=qx.ui.menu.Manager.getInstance();a==="visible"?(c.add(this),(c=this.getParentMenu())&&c.setOpenedButton(this.getOpener())):b==="visible"&&(c.remove(this),(c=this.getParentMenu())&&c.getOpenedButton()==
this.getOpener()&&c.resetOpenedButton(),this.resetOpenedButton(),this.resetSelectedButton());this.__qG()},__qG:function(){this.isVisible()?this.getBlockBackground()&&this._blocker.blockContent(this.getZIndex()-1):this._blocker.isContentBlocked()&&this._blocker.unblockContent()},getParentMenu:function(){var a=this.getOpener();if(!a||!(a instanceof qx.ui.menu.AbstractButton))return null;if(a&&a.getContextMenu()===this)return null;for(;a&&!(a instanceof qx.ui.menu.Menu);)a=a.getLayoutParent();return a},
_applySelectedButton:function(a,b){b&&b.removeState("selected");a&&a.addState("selected")},_applyOpenedButton:function(a,b){b&&b.getMenu()&&b.getMenu().exclude();a&&a.getMenu().open()},_applyBlockerColor:function(a){this._blocker.setColor(a)},_applyBlockerOpacity:function(a){this._blocker.setOpacity(a)},getChildrenContainer:function(){return this.getChildControl("slidebar",true)||this},_createChildControlImpl:function(a){var b;switch(a){case "slidebar":b=new qx.ui.menu.MenuSlideBar;var c=this._getLayout();
this._setLayout(new qx.ui.layout.Grow);var d=b.getLayout();b.setLayout(c);d.dispose();c=qx.lang.Array.clone(this.getChildren());for(d=0;d<c.length;d++)b.add(c[d]);this.removeListener("resize",this._onResize,this);b.getChildrenContainer().addListener("resize",this._onResize,this);this._add(b)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_getMenuLayout:function(){return this.hasChildControl("slidebar")?this.getChildControl("slidebar").getChildrenContainer().getLayout():
this._getLayout()},_getMenuBounds:function(){return this.hasChildControl("slidebar")?this.getChildControl("slidebar").getChildrenContainer().getBounds():this.getBounds()},_computePlacementSize:function(){return this._getMenuBounds()},__qH:function(){var a=this._getMenuBounds();if(a){var b=this.getLayoutParent().getBounds().height,c=this.getLayoutProperties().top,d=this.getLayoutProperties().left;c<0?this._assertSlideBar(function(){this.setHeight(a.height+c);this.moveTo(d,0)}):c+a.height>b?this._assertSlideBar(function(){this.setHeight(b-
c)}):this.setHeight(null)}else this.addListenerOnce("resize",this.__qH,this)},_assertSlideBar:function(a){if(this.hasChildControl("slidebar"))return a.call(this);this.__qF=a;qx.ui.core.queue.Widget.add(this)},syncWidget:function(){this.getChildControl("slidebar");this.__qF&&(this.__qF.call(this),delete this.__qF)},_onResize:function(){if(this.isVisible()){var a=this._placementTarget;if(a){if(a instanceof qx.ui.core.Widget)this.placeToWidget(a);else if(a.top!==void 0)this.placeToPoint(a);else throw Error("Unknown target: "+
a);this.__qH()}}},_onMouseOver:function(a){var b=qx.ui.menu.Manager.getInstance();b.cancelClose(this);a=a.getTarget();if(a.isEnabled()&&a instanceof qx.ui.menu.AbstractButton){this.setSelectedButton(a);var c=a.getMenu&&a.getMenu();if(c)c.setOpener(a),b.scheduleOpen(c),this.__qE=c;else if((a=this.getOpenedButton())&&b.scheduleClose(a.getMenu()),this.__qE)b.cancelOpen(this.__qE),this.__qE=null}else this.getOpenedButton()||this.resetSelectedButton()},_onMouseOut:function(a){var b=qx.ui.menu.Manager.getInstance();
qx.ui.core.Widget.contains(this,a.getRelatedTarget())||((a=this.getOpenedButton())?this.setSelectedButton(a):this.resetSelectedButton(),a&&b.cancelClose(a.getMenu()),this.__qE&&b.cancelOpen(this.__qE))}},destruct:function(){qx.core.ObjectRegistry.inShutDown||qx.ui.menu.Manager.getInstance().remove(this);this.getApplicationRoot().removeListener("resize",this._onResize,this);this._placementTarget=null;this._disposeObjects("_blocker")}})})();
(function(){qx.Class.define("qx.ui.menu.Layout",{extend:qx.ui.layout.VBox,properties:{columnSpacing:{check:"Integer",init:0,apply:"_applyLayoutChange"},spanColumn:{check:"Integer",init:1,nullable:true,apply:"_applyLayoutChange"},iconColumnWidth:{check:"Integer",init:0,themeable:true,apply:"_applyLayoutChange"},arrowColumnWidth:{check:"Integer",init:0,themeable:true,apply:"_applyLayoutChange"}},members:{__qI:null,_computeSizeHint:function(){for(var a=this._getLayoutChildren(),b,c=this.getSpanColumn(),
d=this.__qI=[0,0,0,0],e=this.getColumnSpacing(),f=0,g=0,h=0,i=a.length;h<i;h++)if(b=a[h],!b.isAnonymous()){b=b.getChildrenSizes();for(var j=0;j<b.length;j++)c!=null&&j==c&&b[c+1]==0?f=Math.max(f,b[j]):d[j]=Math.max(d[j],b[j]);b=a[h].getInsets();g=Math.max(g,b.left+b.right)}c!=null&&d[c]+e+d[c+1]<f&&(d[c]=f-d[c+1]-e);a=f==0?e*2:e*3;d[0]==0&&(d[0]=this.getIconColumnWidth());d[3]==0&&(d[3]=this.getArrowColumnWidth());c=qx.ui.layout.VBox.prototype._computeSizeHint.call(this).height;return{minHeight:c,
height:c,width:qx.lang.Array.sum(d)+g+a}},getColumnSizes:function(){return this.__qI||null}},destruct:function(){this.__qI=null}})})();(function(){qx.Class.define("qx.ui.menu.Separator",{extend:qx.ui.core.Widget,properties:{appearance:{refine:true,init:"menu-separator"},anonymous:{refine:true,init:true}}})})();
(function(){qx.Class.define("qx.ui.menu.AbstractButton",{extend:qx.ui.core.Widget,include:[qx.ui.core.MExecutable],implement:[qx.ui.form.IExecutable],type:"abstract",construct:function(){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.menu.ButtonLayout);this.addListener("click",this._onClick);this.addListener("keypress",this._onKeyPress);qx.log.Logger.deprecateMethodOverriding(this,qx.ui.menu.AbstractButton,"_onMouseUp");this.addListener("changeCommand",this._onChangeCommand,this)},properties:{blockToolTip:{refine:true,
init:true},label:{check:"String",apply:"_applyLabel",nullable:true},menu:{check:"qx.ui.menu.Menu",apply:"_applyMenu",nullable:true,dereference:true},icon:{check:"String",apply:"_applyIcon",themeable:true,nullable:true}},members:{_createChildControlImpl:function(a){var b;switch(a){case "icon":b=new qx.ui.basic.Image;b.setAnonymous(true);this._add(b,{column:0});break;case "label":b=new qx.ui.basic.Label;b.setAnonymous(true);this._add(b,{column:1});break;case "shortcut":b=new qx.ui.basic.Label;b.setAnonymous(true);
this._add(b,{column:2});break;case "arrow":b=new qx.ui.basic.Image,b.setAnonymous(true),this._add(b,{column:3})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_forwardStates:{selected:1},getChildrenSizes:function(){var a=0,b=0,c=0,d=0;this._isChildControlVisible("icon")&&(a=this.getChildControl("icon"),a=a.getMarginLeft()+a.getSizeHint().width+a.getMarginRight());this._isChildControlVisible("label")&&(b=this.getChildControl("label"),b=b.getMarginLeft()+b.getSizeHint().width+
b.getMarginRight());this._isChildControlVisible("shortcut")&&(c=this.getChildControl("shortcut"),c=c.getMarginLeft()+c.getSizeHint().width+c.getMarginRight());this._isChildControlVisible("arrow")&&(d=this.getChildControl("arrow"),d=d.getMarginLeft()+d.getSizeHint().width+d.getMarginRight());return[a,b,c,d]},_onMouseUp:function(a){qx.log.Logger.deprecatedMethodWarning(arguments.callee)},_onClick:function(){},_onKeyPress:function(){},_onChangeCommand:function(a){var b=a.getData();b!=null&&(qx.core.Environment.get("qx.dynlocale")&&
(a.getOldData()||qx.locale.Manager.getInstance().addListener("changeLocale",this._onChangeLocale,this),b||qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this)),a=b!=null?b.toString():"",this.getChildControl("shortcut").setValue(a))},_onChangeLocale:qx.core.Environment.select("qx.dynlocale",{"true":function(){var a=this.getCommand();a!=null&&this.getChildControl("shortcut").setValue(a.toString())},"false":null}),_applyIcon:function(a){a?this._showChildControl("icon").setSource(a):
this._excludeChildControl("icon")},_applyLabel:function(a){a?this._showChildControl("label").setValue(a):this._excludeChildControl("label")},_applyMenu:function(a,b){b&&(b.resetOpener(),b.removeState("submenu"));a?(this._showChildControl("arrow"),a.setOpener(this),a.addState("submenu")):this._excludeChildControl("arrow")}},destruct:function(){this.removeListener("changeCommand",this._onChangeCommand,this);this.getMenu()&&(qx.core.ObjectRegistry.inShutDown||this.getMenu().destroy());qx.core.Environment.get("qx.dynlocale")&&
qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this)}})})();
(function(){qx.Class.define("qx.ui.menu.ButtonLayout",{extend:qx.ui.layout.Abstract,members:{verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b){this.assert(b=="column","The property '"+b+"' is not supported by the MenuButton layout!")},"false":null}),renderLayout:function(a,b){for(var c=this._getLayoutChildren(),d,e,f=[],g=0,h=c.length;g<h;g++)d=c[g],e=d.getLayoutProperties().column,f[e]=d;d=this.__qJ(c[0]);c=d.getColumnSizes();e=d.getSpacingX();d=qx.lang.Array.sum(c)+
e*(c.length-1);d<a&&(c[1]+=a-d);for(var i=0,j=0,k=qx.ui.layout.Util,g=0,h=c.length;g<h;g++){if(d=f[g]){var l=d.getSizeHint(),j=k.computeVerticalAlignOffset(d.getAlignY()||"middle",l.height,b,0,0),m=k.computeHorizontalAlignOffset(d.getAlignX()||"left",l.width,c[g],d.getMarginLeft(),d.getMarginRight());d.renderLayout(i+m,j,l.width,l.height)}i+=c[g]+e}},__qJ:function(a){for(;!(a instanceof qx.ui.menu.Menu);)a=a.getLayoutParent();return a},_computeSizeHint:function(){for(var a=this._getLayoutChildren(),
b=0,c=0,d=0,e=a.length;d<e;d++){var f=a[d].getSizeHint();c+=f.width;b=Math.max(b,f.height)}return{width:c,height:b}}}})})();
(function(){qx.Class.define("qx.ui.container.SlideBar",{extend:qx.ui.core.Widget,include:[qx.ui.core.MRemoteChildrenHandling,qx.ui.core.MRemoteLayoutHandling],construct:function(a){qx.ui.core.Widget.call(this);this._add(this.getChildControl("scrollpane"),{flex:1});a!=null?this.setOrientation(a):this.initOrientation();this.addListener("mousewheel",this._onMouseWheel,this)},properties:{appearance:{refine:true,init:"slidebar"},orientation:{check:["horizontal","vertical"],init:"horizontal",apply:"_applyOrientation"},
scrollStep:{check:"Integer",init:15,themeable:true}},members:{getChildrenContainer:function(){return this.getChildControl("content")},_createChildControlImpl:function(a){var b;switch(a){case "button-forward":b=new qx.ui.form.RepeatButton;b.addListener("execute",this._onExecuteForward,this);b.setFocusable(false);this._addAt(b,2);break;case "button-backward":b=new qx.ui.form.RepeatButton;b.addListener("execute",this._onExecuteBackward,this);b.setFocusable(false);this._addAt(b,0);break;case "content":b=
new qx.ui.container.Composite;qx.core.Environment.get("engine.name")=="gecko"&&parseInt(qx.core.Environment.get("engine.version"))<2&&b.addListener("removeChildWidget",this._onRemoveChild,this);this.getChildControl("scrollpane").add(b);break;case "scrollpane":b=new qx.ui.core.scroll.ScrollPane,b.addListener("update",this._onResize,this),b.addListener("scrollX",this._onScroll,this),b.addListener("scrollY",this._onScroll,this)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,
a)},_forwardStates:{barLeft:true,barTop:true,barRight:true,barBottom:true},scrollBy:function(a){var b=this.getChildControl("scrollpane");this.getOrientation()==="horizontal"?b.scrollByX(a):b.scrollByY(a)},scrollTo:function(a){var b=this.getChildControl("scrollpane");this.getOrientation()==="horizontal"?b.scrollToX(a):b.scrollToY(a)},_applyEnabled:function(a,b,c){qx.ui.core.Widget.prototype._applyEnabled.call(this,a,b,c);this._updateArrowsEnabled()},_applyOrientation:function(a,b){var c=[this.getLayout(),
this._getLayout()],d=this.getChildControl("button-forward"),e=this.getChildControl("button-backward");b=="vertical"?(d.removeState("vertical"),e.removeState("vertical"),d.addState("horizontal"),e.addState("horizontal")):b=="horizontal"&&(d.removeState("horizontal"),e.removeState("horizontal"),d.addState("vertical"),e.addState("vertical"));a=="horizontal"?(this._setLayout(new qx.ui.layout.HBox),this.setLayout(new qx.ui.layout.HBox)):(this._setLayout(new qx.ui.layout.VBox),this.setLayout(new qx.ui.layout.VBox));
c[0]&&c[0].dispose();c[1]&&c[1].dispose()},_onMouseWheel:function(a){var b=0,c=this.getChildControl("scrollpane");if(this.getOrientation()==="horizontal")var b=a.getWheelDelta("x"),d=c.getScrollX(),c=c.getScrollMaxX(),e=parseInt(b);else b=a.getWheelDelta("y"),d=c.getScrollY(),c=c.getScrollMaxY(),e=parseInt(b);e<0&&d<=0||e>0&&d>=c||b==0||a.stop();this.scrollBy(b*this.getScrollStep())},_onScroll:function(){this._updateArrowsEnabled()},_onResize:function(){var a=this.getChildControl("scrollpane").getChildren()[0];
if(a){var b=this.getInnerSize(),a=a.getBounds();(this.getOrientation()==="horizontal"?a.width>b.width:a.height>b.height)?(this._showArrows(),this._updateArrowsEnabled()):this._hideArrows()}},_onExecuteBackward:function(){this.scrollBy(-this.getScrollStep())},_onExecuteForward:function(){this.scrollBy(this.getScrollStep())},_onRemoveChild:function(){qx.event.Timer.once(function(){var a=this.getChildControl("scrollpane");a.isDisposed()||this.scrollBy(a.getScrollX())},this,50)},_updateArrowsEnabled:function(){if(this.getEnabled()){var a=
this.getChildControl("scrollpane");if(this.getOrientation()==="horizontal")var b=a.getScrollX(),a=a.getScrollMaxX();else b=a.getScrollY(),a=a.getScrollMaxY();this.getChildControl("button-backward").setEnabled(b>0);this.getChildControl("button-forward").setEnabled(b<a)}else this.getChildControl("button-backward").setEnabled(false),this.getChildControl("button-forward").setEnabled(false)},_showArrows:function(){this._showChildControl("button-forward");this._showChildControl("button-backward")},_hideArrows:function(){this._excludeChildControl("button-forward");
this._excludeChildControl("button-backward");this.scrollTo(0)}}})})();
(function(){qx.Class.define("qx.ui.menu.MenuSlideBar",{extend:qx.ui.container.SlideBar,construct:function(){qx.ui.container.SlideBar.call(this,"vertical")},properties:{appearance:{refine:true,init:"menu-slidebar"}},members:{_createChildControlImpl:function(a){var b;switch(a){case "button-forward":b=new qx.ui.form.HoverButton;b.addListener("execute",this._onExecuteForward,this);this._addAt(b,2);break;case "button-backward":b=new qx.ui.form.HoverButton,b.addListener("execute",this._onExecuteBackward,
this),this._addAt(b,0)}return b||qx.ui.container.SlideBar.prototype._createChildControlImpl.call(this,a)}}})})();
(function(){qx.Class.define("qx.ui.form.HoverButton",{extend:qx.ui.basic.Atom,include:[qx.ui.core.MExecutable],implement:[qx.ui.form.IExecutable],construct:function(a,b){qx.ui.basic.Atom.call(this,a,b);this.addListener("mouseover",this._onMouseOver,this);this.addListener("mouseout",this._onMouseOut,this);this.__jk=new qx.event.AcceleratingTimer;this.__jk.addListener("interval",this._onInterval,this)},properties:{appearance:{refine:true,init:"hover-button"},interval:{check:"Integer",init:80},firstInterval:{check:"Integer",
init:200},minTimer:{check:"Integer",init:20},timerDecrease:{check:"Integer",init:2}},members:{__jk:null,_onMouseOver:function(a){this.isEnabled()&&a.getTarget()===this&&(this.__jk.set({interval:this.getInterval(),firstInterval:this.getFirstInterval(),minimum:this.getMinTimer(),decrease:this.getTimerDecrease()}).start(),this.addState("hovered"))},_onMouseOut:function(a){this.__jk.stop();this.removeState("hovered");!this.isEnabled()||a.getTarget()},_onInterval:function(){this.isEnabled()?this.execute():
this.__jk.stop()}},destruct:function(){this._disposeObjects("__jk")}})})();
(function(){qx.Class.define("qx.ui.menubar.Button",{extend:qx.ui.form.MenuButton,construct:function(a,b,c){qx.ui.form.MenuButton.call(this,a,b,c);this.removeListener("keydown",this._onKeyDown);this.removeListener("keyup",this._onKeyUp)},properties:{appearance:{refine:true,init:"menubar-button"},show:{refine:true,init:"inherit"},focusable:{refine:true,init:false}},members:{getMenuBar:function(){for(var a=this;a;){if(a instanceof qx.ui.toolbar.ToolBar)return a;a=a.getLayoutParent()}return null},open:function(a){qx.ui.form.MenuButton.prototype.open.call(this,
a);this.getMenuBar()._setAllowMenuOpenHover(true)},_onMenuChange:function(){var a=this.getMenu(),b=this.getMenuBar();a.isVisible()?(this.addState("pressed"),b&&b.setOpenMenu(a)):(this.removeState("pressed"),b&&b.getOpenMenu()==a&&(b.resetOpenMenu(),b._setAllowMenuOpenHover(false)))},_onMouseUp:function(a){qx.ui.form.MenuButton.prototype._onMouseUp.call(this,a);(a=this.getMenu())&&a.isVisible()&&!this.hasState("pressed")&&this.addState("pressed")},_onMouseOver:function(){this.addState("hovered");if(this.getMenu()){var a=
this.getMenuBar();a._isAllowMenuOpenHover()&&(qx.ui.menu.Manager.getInstance().hideAll(),a._setAllowMenuOpenHover(true),this.isEnabled()&&this.open())}}}})})();
(function(){qx.Class.define("qx.ui.toolbar.ToolBar",{extend:qx.ui.core.Widget,include:qx.ui.core.MChildrenHandling,construct:function(){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.HBox);this.__qK=[];this.__qL=[]},properties:{appearance:{refine:true,init:"toolbar"},openMenu:{check:"qx.ui.menu.Menu",event:"changeOpenMenu",nullable:true},show:{init:"both",check:["both","label","icon"],inheritable:true,event:"changeShow"},spacing:{nullable:true,check:"Integer",themeable:true,apply:"_applySpacing"},
overflowIndicator:{check:"qx.ui.core.Widget",nullable:true,apply:"_applyOverflowIndicator"},overflowHandling:{init:false,check:"Boolean",apply:"_applyOverflowHandling"}},events:{hideItem:"qx.event.type.Data",showItem:"qx.event.type.Data"},members:{__qK:null,__qL:null,_computeSizeHint:function(){var a=qx.ui.core.Widget.prototype._computeSizeHint.call(this);if(this.getOverflowHandling()){var b=0,c=this.getOverflowIndicator();c&&(b=c.getSizeHint().width+this.getSpacing());a.minWidth=b}return a},_onResize:function(a){this._recalculateOverflow(a.getData().width)},
_recalculateOverflow:function(a,b){if(this.getOverflowHandling()){var b=b||this.getSizeHint().width,c=this.getOverflowIndicator(),d=0;if(c)d=c.getSizeHint().width;if(a==void 0&&this.getBounds()!=null)a=this.getBounds().width;if(a!=void 0)if(a<b){do{var e=this._getNextToHide();if(!e)break;var f=e.getMarginLeft()+e.getMarginRight(),f=Math.max(f,this.getSpacing()),f=e.getSizeHint().width+f;this.__qN(e);b-=f;c&&c.getVisibility()!="visible"&&(c.setVisibility("visible"),b+=d,f=c.getMarginLeft()+c.getMarginRight(),
b+=Math.max(f,this.getSpacing()))}while(b>a)}else if(this.__qK.length>0){do if(e=this.__qK[0]){f=e.getMarginLeft()+e.getMarginRight();f=Math.max(f,this.getSpacing());e.getDecoratorElement()==null&&(e.syncAppearance(),e.invalidateLayoutCache());var g=e.getSizeHint().width,h=false;this.__qK.length==1&&d>0&&(h=f-this.getSpacing(),h=a>b-d+g+h);if(a>b+g+f||h)this.__qM(e),b+=g,c&&this.__qK.length==0&&c.setVisibility("excluded");else break}while(a>=b&&this.__qK.length>0)}}},__qM:function(a){a.setVisibility("visible");
this.__qK.shift();this.fireDataEvent("showItem",a)},__qN:function(a){a&&(this.__qK.unshift(a),a.setVisibility("excluded"),this.fireDataEvent("hideItem",a))},_getNextToHide:function(){for(var a=this.__qL.length-1;a>=0;a--){var b=this.__qL[a];if(b&&b.getVisibility&&b.getVisibility()=="visible")return b}b=this._getChildren();for(a=b.length-1;a>=0;a--){var c=b[a];if(c!=this.getOverflowIndicator()&&c.getVisibility&&c.getVisibility()=="visible")return c}},setRemovePriority:function(a,b,c){if(!c&&this.__qL[b]!=
void 0)throw Error("Priority already in use!");this.__qL[b]=a},_applyOverflowHandling:function(a){this.invalidateLayoutCache();var b=this.getLayoutParent();b&&b.invalidateLayoutCache();(b=this.getBounds())&&b.width&&this._recalculateOverflow(b.width);if(a)this.addListener("resize",this._onResize,this);else{this.removeListener("resize",this._onResize,this);(a=this.getOverflowIndicator())&&a.setVisibility("excluded");for(a=0;a<this.__qK.length;a++)this.__qK[a].setVisibility("visible");this.__qK=[]}},
_applyOverflowIndicator:function(a,b){b&&this._remove(b);if(a){if(this._indexOf(a)==-1)throw Error("Widget must be child of the toolbar.");a.setVisibility("excluded")}},__qO:false,_setAllowMenuOpenHover:function(a){this.__qO=a},_isAllowMenuOpenHover:function(){return this.__qO},_applySpacing:function(a){var b=this._getLayout();a==null?b.resetSpacing():b.setSpacing(a)},_add:function(a,b){qx.ui.core.Widget.prototype._add.call(this,a,b);this._recalculateOverflow(null,this.getSizeHint().width+a.getSizeHint().width+
2*this.getSpacing())},_addAt:function(a,b,c){qx.ui.core.Widget.prototype._addAt.call(this,a,b,c);this._recalculateOverflow(null,this.getSizeHint().width+a.getSizeHint().width+2*this.getSpacing())},_addBefore:function(a,b,c){qx.ui.core.Widget.prototype._addBefore.call(this,a,b,c);this._recalculateOverflow(null,this.getSizeHint().width+a.getSizeHint().width+2*this.getSpacing())},_addAfter:function(a,b,c){qx.ui.core.Widget.prototype._addAfter.call(this,a,b,c);this._recalculateOverflow(null,this.getSizeHint().width+
a.getSizeHint().width+2*this.getSpacing())},_remove:function(a){qx.ui.core.Widget.prototype._remove.call(this,a);this._recalculateOverflow(null,this.getSizeHint().width-a.getSizeHint().width-2*this.getSpacing())},_removeAt:function(a){var b=this._getChildren()[a];qx.ui.core.Widget.prototype._removeAt.call(this,a);this._recalculateOverflow(null,this.getSizeHint().width-b.getSizeHint().width-2*this.getSpacing())},_removeAll:function(){qx.ui.core.Widget.prototype._removeAll.call(this);this._recalculateOverflow(null,
0)},addSpacer:function(){var a=new qx.ui.core.Spacer;this._add(a,{flex:1});return a},addSeparator:function(){this.add(new qx.ui.toolbar.Separator)},getMenuButtons:function(){for(var a=this.getChildren(),b=[],c,d=0,e=a.length;d<e;d++)c=a[d],c instanceof qx.ui.menubar.Button?b.push(c):c instanceof qx.ui.toolbar.Part&&b.push.apply(b,c.getMenuButtons());return b}},destruct:function(){this.hasListener("resize")&&this.removeListener("resize",this._onResize,this)}})})();
(function(){qx.Class.define("qx.ui.toolbar.Separator",{extend:qx.ui.core.Widget,properties:{appearance:{refine:true,init:"toolbar-separator"},anonymous:{refine:true,init:true},width:{refine:true,init:0},height:{refine:true,init:0}}})})();
(function(){qx.Class.define("qx.ui.toolbar.Part",{extend:qx.ui.core.Widget,include:[qx.ui.core.MRemoteChildrenHandling],construct:function(){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.HBox);this._createChildControl("handle")},properties:{appearance:{refine:true,init:"toolbar/part"},show:{init:"both",check:["both","label","icon"],inheritable:true,event:"changeShow"},spacing:{nullable:true,check:"Integer",themeable:true,apply:"_applySpacing"}},members:{_createChildControlImpl:function(a){var b;
switch(a){case "handle":b=new qx.ui.basic.Image;b.setAlignY("middle");this._add(b);break;case "container":b=new qx.ui.toolbar.PartContainer,b.addListener("syncAppearance",this.__qP,this),this._add(b)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},getChildrenContainer:function(){return this.getChildControl("container")},_applySpacing:function(a){var b=this.getChildControl("container").getLayout();a==null?b.resetSpacing():b.setSpacing(a)},__qP:function(){for(var a=this.getChildrenContainer().getChildren(),
b=0;b<a.length;b++)b==0&&b!=a.length-1?(a[b].addState("left"),a[b].removeState("right"),a[b].removeState("middle")):b==a.length-1&&b!=0?(a[b].addState("right"),a[b].removeState("left"),a[b].removeState("middle")):b==0&&b==a.length-1?(a[b].removeState("left"),a[b].removeState("middle"),a[b].removeState("right")):(a[b].addState("middle"),a[b].removeState("right"),a[b].removeState("left"))},addSeparator:function(){this.add(new qx.ui.toolbar.Separator)},getMenuButtons:function(){for(var a=this.getChildren(),
b=[],c,d=0,e=a.length;d<e;d++)c=a[d],c instanceof qx.ui.menubar.Button&&b.push(c);return b}}})})();(function(){qx.Class.define("qx.ui.toolbar.PartContainer",{extend:qx.ui.container.Composite,construct:function(){qx.ui.container.Composite.call(this);this._setLayout(new qx.ui.layout.HBox)},properties:{appearance:{refine:true,init:"toolbar/part/container"},show:{init:"both",check:["both","label","icon"],inheritable:true,event:"changeShow"}}})})();
(function(){qx.Class.define("qx.ui.menu.Button",{extend:qx.ui.menu.AbstractButton,construct:function(a,b,c,d){qx.ui.menu.AbstractButton.call(this);a!=null&&this.setLabel(a);b!=null&&this.setIcon(b);c!=null&&this.setCommand(c);d!=null&&this.setMenu(d)},properties:{appearance:{refine:true,init:"menu-button"}},members:{_onClick:function(a){if(a.isLeftPressed()){if(this.execute(),this.getMenu())return}else if(this.getContextMenu())return;qx.ui.menu.Manager.getInstance().hideAll()},_onKeyPress:function(){this.execute()}}})})();
(function(){qx.Class.define("qx.ui.table.columnmenu.Button",{extend:qx.ui.form.MenuButton,implement:qx.ui.table.IColumnMenuButton,construct:function(){qx.ui.form.MenuButton.call(this);this.__kb=new qx.ui.core.Blocker(this)},members:{__qt:null,__kb:null,factory:function(a,b){switch(a){case "menu":var c=new qx.ui.menu.Menu;this.setMenu(c);return c;case "menu-button":return c=new qx.ui.table.columnmenu.MenuItem(b.text),c.setVisible(b.bVisible),this.getMenu().add(c),c;case "user-button":return c=new qx.ui.menu.Button(b.text),
c.set({appearance:"table-column-reset-button"}),c;case "separator":return new qx.ui.menu.Separator;default:throw Error("Unrecognized factory request: "+a);}},getBlocker:function(){return this.__kb},empty:function(){for(var a=this.getMenu().getChildren(),b=0,c=a.length;b<c;b++)a[0].destroy()}},destruct:function(){this.__kb.dispose()}})})();(function(){qx.Interface.define("qx.ui.table.IColumnMenuItem",{properties:{visible:{}},events:{changeVisible:"qx.event.type.Data"}})})();
(function(){qx.Class.define("qx.ui.menu.CheckBox",{extend:qx.ui.menu.AbstractButton,implement:[qx.ui.form.IBooleanForm],construct:function(a,b){qx.ui.menu.AbstractButton.call(this);a!=null&&(a.translate?this.setLabel(a.translate()):this.setLabel(a));b!=null&&this.setMenu(b);this.addListener("execute",this._onExecute,this)},properties:{appearance:{refine:true,init:"menu-checkbox"},value:{check:"Boolean",init:false,apply:"_applyValue",event:"changeValue",nullable:true}},members:{_bindableProperties:["enabled",
"label","toolTipText","value","menu"],_applyValue:function(a){a?this.addState("checked"):this.removeState("checked")},_onExecute:function(){this.toggleValue()},_onClick:function(a){if(a.isLeftPressed())this.execute();else if(this.getContextMenu())return;qx.ui.menu.Manager.getInstance().hideAll()},_onKeyPress:function(){this.execute()}}})})();
(function(){qx.Class.define("qx.ui.table.columnmenu.MenuItem",{extend:qx.ui.menu.CheckBox,implement:qx.ui.table.IColumnMenuItem,properties:{visible:{check:"Boolean",init:true,apply:"_applyVisible",event:"changeVisible"}},construct:function(a){qx.ui.menu.CheckBox.call(this,a);this.addListener("changeValue",function(a){this.bInListener=true;this.setVisible(a.getData());this.bInListener=false})},members:{__qQ:false,_applyVisible:function(a){this.bInListener||this.setValue(a)}}})})();
(function(){qx.Class.define("qx.ui.table.selection.Manager",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this)},properties:{selectionModel:{check:"qx.ui.table.selection.Model"}},members:{__qR:null,handleMouseDown:function(a,b){if(b.isLeftPressed()){var c=this.getSelectionModel();c.isSelectedIndex(a)?this.__qR=false:(this._handleSelectEvent(a,b),this.__qR=true)}else b.isRightPressed()&&b.getModifiers()==0&&(c=this.getSelectionModel(),c.isSelectedIndex(a)||c.setSelectionInterval(a,
a))},handleMouseUp:function(a,b){b.isLeftPressed()&&!this.__qR&&this._handleSelectEvent(a,b)},handleClick:function(){},handleSelectKeyDown:function(a,b){this._handleSelectEvent(a,b)},handleMoveKeyDown:function(a,b){var c=this.getSelectionModel();switch(b.getModifiers()){case 0:c.setSelectionInterval(a,a);break;case qx.event.type.Dom.SHIFT_MASK:var d=c.getAnchorSelectionIndex();d==-1?c.setSelectionInterval(a,a):c.setSelectionInterval(d,a)}},_handleSelectEvent:function(a,b){var c=this.getSelectionModel(),
d=c.getLeadSelectionIndex(),e=c.getAnchorSelectionIndex();if(b.isShiftPressed()){if(a!=d||c.isSelectionEmpty())e==-1&&(e=a),b.isCtrlOrCommandPressed()?c.addSelectionInterval(e,a):c.setSelectionInterval(e,a)}else b.isCtrlOrCommandPressed()?c.isSelectedIndex(a)?c.removeSelectionInterval(a,a):c.addSelectionInterval(a,a):c.setSelectionInterval(a,a)}}})})();(function(){qx.Interface.define("qx.ui.table.ICellEditorFactory",{members:{createCellEditor:function(){return true},getCellEditorValue:function(){return true}}})})();
(function(){qx.Class.define("qx.ui.table.celleditor.AbstractField",{extend:qx.core.Object,implement:qx.ui.table.ICellEditorFactory,type:"abstract",properties:{validationFunction:{check:"Function",nullable:true,init:null}},members:{_createEditor:function(){throw Error("Abstract method call!");},createCellEditor:function(a){var b=this._createEditor();b.originalValue=a.value;if(a.value===null||a.value===void 0)a.value="";b.setValue(""+a.value);b.addListener("appear",function(){b.selectAllText()});return b},
getCellEditorValue:function(a){var b=a.getValue(),c=this.getValidationFunction();c&&(b=c(b,a.originalValue));typeof a.originalValue=="number"&&(b=parseFloat(b));return b}}})})();
(function(){qx.Class.define("qx.ui.table.celleditor.TextField",{extend:qx.ui.table.celleditor.AbstractField,members:{getCellEditorValue:function(a){var b=a.getValue(),c=this.getValidationFunction();c&&(b=c(b,a.originalValue));typeof a.originalValue=="number"&&b!=null&&(b=parseFloat(b));return b},_createEditor:function(){var a=new qx.ui.form.TextField;a.setAppearance("table-editor-textfield");return a}}})})();
(function(){qx.Interface.define("qx.ui.table.IHeaderRenderer",{members:{createHeaderCell:function(){return true},updateHeaderCell:function(){return true}}})})();
(function(){qx.Class.define("qx.ui.table.headerrenderer.Default",{extend:qx.core.Object,implement:qx.ui.table.IHeaderRenderer,statics:{STATE_SORTED:"sorted",STATE_SORTED_ASCENDING:"sortedAscending"},properties:{toolTip:{check:"String",init:null,nullable:true}},members:{createHeaderCell:function(a){var b=new qx.ui.table.headerrenderer.HeaderCell;this.updateHeaderCell(a,b);return b},updateHeaderCell:function(a,b){var c=qx.ui.table.headerrenderer.Default;a.name&&a.name.translate?b.setLabel(a.name.translate()):
b.setLabel(a.name);var d=b.getToolTip();this.getToolTip()!=null&&(d==null?(d=new qx.ui.tooltip.ToolTip(this.getToolTip()),b.setToolTip(d),qx.util.DisposeUtil.disposeTriggeredBy(d,b)):d.setLabel(this.getToolTip()));a.sorted?b.addState(c.STATE_SORTED):b.removeState(c.STATE_SORTED);a.sortedAscending?b.addState(c.STATE_SORTED_ASCENDING):b.removeState(c.STATE_SORTED_ASCENDING)}}})})();
(function(){qx.Class.define("qx.ui.table.headerrenderer.HeaderCell",{extend:qx.ui.container.Composite,construct:function(){qx.ui.container.Composite.call(this);var a=new qx.ui.layout.Grid;a.setRowFlex(0,1);a.setColumnFlex(1,1);a.setColumnFlex(2,1);this.setLayout(a)},properties:{appearance:{refine:true,init:"table-header-cell"},label:{check:"String",init:null,nullable:true,apply:"_applyLabel"},sortIcon:{check:"String",init:null,nullable:true,apply:"_applySortIcon",themeable:true},icon:{check:"String",
init:null,nullable:true,apply:"_applyIcon"}},members:{_applyLabel:function(a){a?this._showChildControl("label").setValue(a):this._excludeChildControl("label")},_applySortIcon:function(a){a?this._showChildControl("sort-icon").setSource(a):this._excludeChildControl("sort-icon")},_applyIcon:function(a){a?this._showChildControl("icon").setSource(a):this._excludeChildControl("icon")},_createChildControlImpl:function(a){var b;switch(a){case "label":b=(new qx.ui.basic.Label(this.getLabel())).set({anonymous:true,
allowShrinkX:true});this._add(b,{row:0,column:1});break;case "sort-icon":b=new qx.ui.basic.Image(this.getSortIcon());b.setAnonymous(true);this._add(b,{row:0,column:2});break;case "icon":b=(new qx.ui.basic.Image(this.getIcon())).set({anonymous:true,allowShrinkX:true}),this._add(b,{row:0,column:0})}return b||qx.ui.container.Composite.prototype._createChildControlImpl.call(this,a)}}})})();
(function(){qx.Class.define("qx.ui.table.columnmodel.Basic",{extend:qx.core.Object,construct:function(){qx.core.Object.call(this);this.__qS=[];this.__qT=[]},events:{widthChanged:"qx.event.type.Data",visibilityChangedPre:"qx.event.type.Data",visibilityChanged:"qx.event.type.Data",orderChanged:"qx.event.type.Data",headerCellRendererChanged:"qx.event.type.Data"},statics:{DEFAULT_WIDTH:100,DEFAULT_HEADER_RENDERER:qx.ui.table.headerrenderer.Default,DEFAULT_DATA_RENDERER:qx.ui.table.cellrenderer.Default,
DEFAULT_EDITOR_FACTORY:qx.ui.table.celleditor.TextField},members:{__mx:null,__qU:null,__qT:null,__qS:null,__qV:null,__qW:null,__qX:null,__qY:null,init:function(a,b){qx.core.Environment.get("qx.debug")&&this.assertInteger(a,"Invalid argument 'colCount'.");this.__qV=[];var c=qx.ui.table.columnmodel.Basic.DEFAULT_WIDTH,d=this.__qW||(this.__qW=new qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER),e=this.__qX||(this.__qX=new qx.ui.table.columnmodel.Basic.DEFAULT_DATA_RENDERER),f=this.__qY||(this.__qY=
new qx.ui.table.columnmodel.Basic.DEFAULT_EDITOR_FACTORY);this.__qS=[];this.__qT=[];var g;b&&(g=b.getInitiallyHiddenColumns());g=g||[];for(var h=0;h<a;h++)this.__qV[h]={width:c,headerRenderer:d,dataRenderer:e,editorFactory:f},this.__qS[h]=h,this.__qT[h]=h;this.__qU=null;this.__mx=true;for(h=0;h<g.length;h++)this.setColumnVisible(g[h],false);this.__mx=false;for(h=0;h<a;h++)g={col:h,visible:this.isColumnVisible(h)},this.fireDataEvent("visibilityChangedPre",g),this.fireDataEvent("visibilityChanged",
g)},getVisibleColumns:function(){return this.__qT!=null?this.__qT:[]},setColumnWidth:function(a,b,c){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertInteger(b,"Invalid argument 'width'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));var d=this.__qV[a].width;if(d!=b)this.__qV[a].width=b,this.fireDataEvent("widthChanged",{col:a,newWidth:b,oldWidth:d,isMouseAction:c||false})},getColumnWidth:function(a){qx.core.Environment.get("qx.debug")&&
(this.assertInteger(a,"Invalid argument 'col'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));return this.__qV[a].width},setHeaderCellRenderer:function(a,b){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertInterface(b,qx.ui.table.IHeaderRenderer,"Invalid argument 'renderer'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));var c=this.__qV[a].headerRenderer;c!==this.__qW&&c.dispose();this.__qV[a].headerRenderer=
b;this.fireDataEvent("headerCellRendererChanged",{col:a})},getHeaderCellRenderer:function(a){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));return this.__qV[a].headerRenderer},setDataCellRenderer:function(a,b){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertInterface(b,qx.ui.table.ICellRenderer,"Invalid argument 'renderer'."),this.assertNotUndefined(this.__qV[a],
"Column not found in table model"));this.__qV[a].dataRenderer=b;var c=this.__qV[a].dataRenderer;return c!==this.__qX?c:null},getDataCellRenderer:function(a){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));return this.__qV[a].dataRenderer},setCellEditorFactory:function(a,b){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertInterface(b,qx.ui.table.ICellEditorFactory,
"Invalid argument 'factory'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));var c=this.__qV[a].editorFactory;c!==this.__qY&&c.dispose();this.__qV[a].editorFactory=b},getCellEditorFactory:function(a){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'col'."),this.assertNotUndefined(this.__qV[a],"Column not found in table model"));return this.__qV[a].editorFactory},_getColToXPosMap:function(){if(this.__qU==null){this.__qU={};for(var a=0;a<this.__qS.length;a++){var b=
this.__qS[a];this.__qU[b]={overX:a}}for(a=0;a<this.__qT.length;a++)b=this.__qT[a],this.__qU[b].visX=a}return this.__qU},getVisibleColumnCount:function(){return this.__qT!=null?this.__qT.length:0},getVisibleColumnAtX:function(a){qx.core.Environment.get("qx.debug")&&this.assertInteger(a,"Invalid argument 'visXPos'.");return this.__qT[a]},getVisibleX:function(a){qx.core.Environment.get("qx.debug")&&this.assertInteger(a,"Invalid argument 'col'.");return this._getColToXPosMap()[a].visX},getOverallColumnCount:function(){return this.__qS.length},
getOverallColumnAtX:function(a){qx.core.Environment.get("qx.debug")&&this.assertInteger(a,"Invalid argument 'overXPos'.");return this.__qS[a]},getOverallX:function(a){qx.core.Environment.get("qx.debug")&&this.assertInteger(a,"Invalid argument 'col'.");return this._getColToXPosMap()[a].overX},isColumnVisible:function(a){qx.core.Environment.get("qx.debug")&&this.assertInteger(a,"Invalid argument 'col'.");return this._getColToXPosMap()[a].visX!=null},setColumnVisible:function(a,b){qx.core.Environment.get("qx.debug")&&
(this.assertInteger(a,"Invalid argument 'col'."),this.assertBoolean(b,"Invalid argument 'visible'."));if(b!=this.isColumnVisible(a)){if(b){var c=this._getColToXPosMap(),d=c[a].overX;if(d==null)throw Error("Showing column failed: "+a+". The column is not added to this TablePaneModel.");var e;for(d+=1;d<this.__qS.length;d++){var f=c[this.__qS[d]].visX;if(f!=null){e=f;break}}if(e==null)e=this.__qT.length;this.__qT.splice(e,0,a)}else this.__qT.splice(this.getVisibleX(a),1);this.__qU=null;this.__mx||(c=
{col:a,visible:b},this.fireDataEvent("visibilityChangedPre",c),this.fireDataEvent("visibilityChanged",c))}},moveColumn:function(a,b){qx.core.Environment.get("qx.debug")&&(this.assertInteger(a,"Invalid argument 'fromOverXPos'."),this.assertInteger(b,"Invalid argument 'toOverXPos'."));this.__mx=true;var c=this.__qS[a],d=this.isColumnVisible(c);d&&this.setColumnVisible(c,false);this.__qS.splice(a,1);this.__qS.splice(b,0,c);this.__qU=null;d&&this.setColumnVisible(c,true);this.__mx=false;this.fireDataEvent("orderChanged",
{col:c,fromOverXPos:a,toOverXPos:b})},setColumnsOrder:function(a){qx.core.Environment.get("qx.debug")&&this.assertArray(a,"Invalid argument 'newPositions'.");if(a.length==this.__qS.length){this.__mx=true;for(var b=Array(a.length),c=0;c<this.__qS.length;c++){var d=this.isColumnVisible(c);(b[c]=d)&&this.setColumnVisible(c,false)}this.__qS=qx.lang.Array.clone(a);this.__qU=null;for(c=0;c<this.__qS.length;c++)b[c]&&this.setColumnVisible(c,true);this.__mx=false;this.fireDataEvent("orderChanged")}else throw Error("setColumnsOrder: Invalid number of column positions given, expected "+
this.__qS.length+", got "+a.length);}},destruct:function(){for(var a=0;a<this.__qV.length;a++)this.__qV[a].headerRenderer.dispose(),this.__qV[a].dataRenderer.dispose(),this.__qV[a].editorFactory.dispose();this.__qS=this.__qT=this.__qV=this.__qU=null;this._disposeObjects("__qW","__qX","__qY")}})})();
(function(){qx.Class.define("qx.ui.table.pane.Pane",{extend:qx.ui.core.Widget,construct:function(a){qx.ui.core.Widget.call(this);this.__ra=a;this.__qs=this.__rb=0;this.__rc=[]},events:{paneReloadsData:"qx.event.type.Data",paneUpdated:"qx.event.type.Event"},properties:{firstVisibleRow:{check:"Number",init:0,apply:"_applyFirstVisibleRow"},visibleRowCount:{check:"Number",init:0,apply:"_applyVisibleRowCount"},maxCacheLines:{check:"Number",init:1E3,apply:"_applyMaxCacheLines"},allowShrinkX:{refine:true,
init:false}},members:{__qs:null,__rb:null,__ra:null,__rd:null,__qp:null,__qo:null,__rc:null,__re:0,_applyFirstVisibleRow:function(a,b){this.updateContent(false,a-b)},_applyVisibleRowCount:function(){this.updateContent(true)},_getContentHint:function(){return{width:this.getPaneScroller().getTablePaneModel().getTotalWidth(),height:400}},getPaneScroller:function(){return this.__ra},getTable:function(){return this.__ra.getTable()},setFocusedCell:function(a,b,c){if(a!=this.__qo||b!=this.__qp){var d=this.__qp;
this.__qo=a;this.__qp=b;b!=d&&!c&&(d!==null&&this.updateContent(false,null,d,true),b!==null&&this.updateContent(false,null,b,true))}},onSelectionChanged:function(){this.updateContent(false,null,null,true)},onFocusChanged:function(){this.updateContent(false,null,null,true)},setColumnWidth:function(){this.updateContent(true)},onColOrderChanged:function(){this.updateContent(true)},onPaneModelChanged:function(){this.updateContent(true)},onTableModelDataChanged:function(a,b){this.__rf();var c=this.getFirstVisibleRow(),
d=this.getVisibleRowCount();(b==-1||b>=c&&a<c+d)&&this.updateContent()},onTableModelMetaDataChanged:function(){this.updateContent(true)},_applyMaxCacheLines:function(a){this.__re>=a&&a!==-1&&this.__rf()},__rf:function(){this.__rc=[];this.__re=0},__rg:function(a,b,c){return!b&&!c&&this.__rc[a]?this.__rc[a]:null},__rh:function(a,b,c,d){var e=this.getMaxCacheLines();!c&&!d&&!this.__rc[a]&&e>0&&(this._applyMaxCacheLines(e),this.__rc[a]=b,this.__re+=1)},updateContent:function(a,b,c,d){a&&this.__rf();b&&
Math.abs(b)<=Math.min(10,this.getVisibleRowCount())?this._scrollContent(b):d&&!this.getTable().getAlwaysUpdateCells()?this._updateRowStyles(c):this._updateAllRows()},_updateRowStyles:function(a){var b=this.getContentElement().getDomElement();if(!b||!b.firstChild)this._updateAllRows();else{var c=this.getTable(),d=c.getSelectionModel(),e=c.getTableModel(),f=c.getDataRowRenderer(),b=b.firstChild.childNodes,c={table:c},g=this.getFirstVisibleRow(),h=0,i=b.length;if(a!=null){var j=a-g;if(j>=0&&j<i)g=a,
h=j,i=j+1;else return}for(;h<i;h++,g++)c.row=g,c.selected=d.isSelectedIndex(g),c.focusedRow=this.__qp==g,c.rowData=e.getRowData(g),f.updateDataRowElement(c,b[h])}},_getRowsHtml:function(a,b){var c=this.getTable(),d=c.getSelectionModel(),e=c.getTableModel(),f=c.getTableColumnModel(),g=this.getPaneScroller().getTablePaneModel(),h=c.getDataRowRenderer();e.prefetchRows(a,a+b-1);for(var i=c.getRowHeight(),j=g.getColumnCount(),k=0,l=[],m=0;m<j;m++){var n=g.getColumnAtX(m),o=f.getColumnWidth(n);l.push({col:n,
xPos:m,editable:e.isColumnEditable(n),focusedCol:this.__qo==n,styleLeft:k,styleWidth:o});k+=o}g=[];k=false;for(o=a;o<a+b;o++){var r=d.isSelectedIndex(o),q=this.__qp==o,m=this.__rg(o,r,q);if(!m){var p=[],s={table:c};s.styleHeight=i;s.row=o;s.selected=r;s.focusedRow=q;s.rowData=e.getRowData(o);s.rowData||(k=true);p.push("<div ");(m=h.getRowAttributes(s))&&p.push(m);(m=h.getRowClass(s))&&p.push('class="',m,'" ');m=h.createRowStyle(s);m+=";position:relative;"+h.getRowHeightStyle(i)+"width:100%;";m&&p.push('style="',
m,'" ');p.push(">");n=false;for(m=0;m<j&&!n;m++){var n=l[m],u;for(u in n)s[u]=n[u];n=s.col;s.value=e.getValue(n,o);n=f.getDataCellRenderer(n);s.style=n.getDefaultCellStyle();n=n.createDataCellHtml(s,p)||false}p.push("</div>");m=p.join("");this.__rh(o,m,r,q)}g.push(m)}this.fireDataEvent("paneReloadsData",k);return g.join("")},_scrollContent:function(a){var b=this.getContentElement().getDomElement();if(!b||!b.firstChild)this._updateAllRows();else{var b=b.firstChild,c=b.childNodes,d=this.getVisibleRowCount(),
e=this.getFirstVisibleRow(),f=0,f=this.getTable().getTableModel().getRowCount();if(e+d>f)this._updateAllRows();else{f=a<0?d+a:0;d=a<0?0:d-a;for(i=Math.abs(a)-1;i>=0;i--){var g=c[f];try{b.removeChild(g)}catch(h){break}}if(!this.__rd)this.__rd=document.createElement("div");c="<div>";c+=this._getRowsHtml(e+d,Math.abs(a));c+="</div>";this.__rd.innerHTML=c;e=this.__rd.firstChild.childNodes;if(a>0)for(var i=e.length-1;i>=0;i--)g=e[0],b.appendChild(g);else for(i=e.length-1;i>=0;i--)g=e[e.length-1],b.insertBefore(g,
b.firstChild);this.__qp!==null&&(this._updateRowStyles(this.__qp-a),this._updateRowStyles(this.__qp));this.fireEvent("paneUpdated")}}},_updateAllRows:function(){var a=this.getContentElement().getDomElement();if(a){var b=this.getTable(),c=b.getTableModel(),d=this.getPaneScroller().getTablePaneModel(),e=d.getColumnCount(),f=b.getRowHeight(),g=this.getFirstVisibleRow(),h=this.getVisibleRowCount(),c=c.getRowCount();g+h>c&&(h=Math.max(0,c-g));d=d.getTotalWidth();b=(h>0?["<div style='","width: 100%;",b.getForceLineHeight()?
"line-height: "+f+"px;":"","overflow: hidden;","'>",this._getRowsHtml(g,h),"</div>"]:[]).join("");a.innerHTML=b;this.setWidth(d);this.__rb=e;this.__qs=h;this.fireEvent("paneUpdated")}else this.addListenerOnce("appear",arguments.callee,this)}},destruct:function(){this.__rd=this.__ra=this.__rc=null}})})();
(function(){qx.Class.define("qx.ui.table.pane.Header",{extend:qx.ui.core.Widget,construct:function(a){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.HBox);this.__kb=new qx.ui.core.Blocker(this);this.__ra=a},members:{__ra:null,__ri:null,__rj:null,__kb:null,getPaneScroller:function(){return this.__ra},getTable:function(){return this.__ra.getTable()},getBlocker:function(){return this.__kb},onColOrderChanged:function(){this._updateContent(true)},onPaneModelChanged:function(){this._updateContent(true)},
onTableModelMetaDataChanged:function(){this._updateContent()},setColumnWidth:function(a,b){var c=this.getHeaderWidgetAtColumn(a);c!=null&&c.setWidth(b)},setMouseOverColumn:function(a){if(a!=this.__rj){if(this.__rj!=null){var b=this.getHeaderWidgetAtColumn(this.__rj);b!=null&&b.removeState("hovered")}a!=null&&this.getHeaderWidgetAtColumn(a).addState("hovered");this.__rj=a}},getHeaderWidgetAtColumn:function(a){a=this.getPaneScroller().getTablePaneModel().getX(a);return this._getChildren()[a]},showColumnMoveFeedback:function(a,
b){var c=this.getContainerLocation();if(this.__ri==null){var d=this.getTable(),e=this.getPaneScroller().getTablePaneModel().getX(a),f=this._getChildren()[e],g=d.getTableModel(),h=d.getTableColumnModel(),d={xPos:e,col:a,name:g.getColumnName(a),table:d},h=h.getHeaderCellRenderer(a).createHeaderCell(d),f=f.getBounds();h.setWidth(f.width);h.setHeight(f.height);h.setZIndex(1E6);h.setOpacity(0.8);h.setLayoutProperties({top:c.top});this.getApplicationRoot().add(h);this.__ri=h}this.__ri.setLayoutProperties({left:c.left+
b});this.__ri.show()},hideColumnMoveFeedback:function(){if(this.__ri!=null)this.__ri.destroy(),this.__ri=null},isShowingColumnMoveFeedback:function(){return this.__ri!=null},_updateContent:function(a){var b=this.getTable(),c=b.getTableModel(),d=b.getTableColumnModel(),e=this.getPaneScroller().getTablePaneModel(),f=this._getChildren(),g=e.getColumnCount(),h=c.getSortColumnIndex();a&&this._cleanUpCells();a={};a.sortedAscending=c.isSortAscending();for(var i=0;i<g;i++){var j=e.getColumnAtX(i);if(j!==
void 0){var k=d.getColumnWidth(j),l=d.getHeaderCellRenderer(j);a.xPos=i;a.col=j;a.name=c.getColumnName(j);a.editable=c.isColumnEditable(j);a.sorted=j==h;a.table=b;j=f[i];j==null?(j=l.createHeaderCell(a),j.set({width:k}),this._add(j)):l.updateHeaderCell(a,j);i===0?(j.addState("first"),j.removeState("last")):i===g-1?(j.removeState("first"),j.addState("last")):(j.removeState("first"),j.removeState("last"))}}},_cleanUpCells:function(){for(var a=this._getChildren(),b=a.length-1;b>=0;b--)a[b].destroy()}},
destruct:function(){this.__kb.dispose();this._disposeObjects("__ra")}})})();
(function(){qx.Class.define("qx.ui.table.pane.Scroller",{extend:qx.ui.core.Widget,include:qx.ui.core.scroll.MScrollBarFactory,construct:function(a){qx.ui.core.Widget.call(this);this.__rk=a;a=new qx.ui.layout.Grid;a.setColumnFlex(0,1);a.setRowFlex(1,1);this._setLayout(a);this.__rl=this._showChildControl("header");this.__rm=this._showChildControl("pane");this.__rn=(new qx.ui.container.Composite(new qx.ui.layout.HBox)).set({minWidth:0});this._add(this.__rn,{row:0,column:0,colSpan:2});this.__ro=new qx.ui.table.pane.Clipper;
this.__ro.add(this.__rl);this.__ro.addListener("losecapture",this._onChangeCaptureHeader,this);this.__ro.addListener("mousemove",this._onMousemoveHeader,this);this.__ro.addListener("mousedown",this._onMousedownHeader,this);this.__ro.addListener("mouseup",this._onMouseupHeader,this);this.__ro.addListener("click",this._onClickHeader,this);this.__rn.add(this.__ro,{flex:1});this.__rp=new qx.ui.table.pane.Clipper;this.__rp.add(this.__rm);this.__rp.addListener("mousewheel",this._onMousewheel,this);this.__rp.addListener("mousemove",
this._onMousemovePane,this);this.__rp.addListener("mousedown",this._onMousedownPane,this);this.__rp.addListener("mouseup",this._onMouseupPane,this);this.__rp.addListener("click",this._onClickPane,this);this.__rp.addListener("contextmenu",this._onContextMenu,this);this.__rp.addListener("dblclick",this._onDblclickPane,this);this.__rp.addListener("resize",this._onResizePane,this);qx.core.Environment.get("os.scrollBarOverlayed")?(this.__rq=new qx.ui.container.Composite,this.__rq.setLayout(new qx.ui.layout.Canvas),
this.__rq.add(this.__rp,{edge:0}),this._add(this.__rq,{row:1,column:0})):this._add(this.__rp,{row:1,column:0});this.__rr=this._showChildControl("scrollbar-x");this.__rs=this._showChildControl("scrollbar-y");this.__rt=this.getChildControl("focus-indicator");this.initShowCellFocusIndicator();this.getChildControl("resize-line").hide();this.addListener("mouseout",this._onMouseout,this);this.addListener("appear",this._onAppear,this);this.addListener("disappear",this._onDisappear,this);this.__jk=new qx.event.Timer;
this.__jk.addListener("interval",this._oninterval,this);this.initScrollTimeout()},statics:{MIN_COLUMN_WIDTH:10,RESIZE_REGION_RADIUS:5,CLICK_TOLERANCE:5,HORIZONTAL_SCROLLBAR:1,VERTICAL_SCROLLBAR:2},events:{changeScrollY:"qx.event.type.Data",changeScrollX:"qx.event.type.Data",cellClick:"qx.ui.table.pane.CellEvent",cellDblclick:"qx.ui.table.pane.CellEvent",cellContextmenu:"qx.ui.table.pane.CellEvent",beforeSort:"qx.event.type.Data"},properties:{horizontalScrollBarVisible:{check:"Boolean",init:false,
apply:"_applyHorizontalScrollBarVisible",event:"changeHorizontalScrollBarVisible"},verticalScrollBarVisible:{check:"Boolean",init:false,apply:"_applyVerticalScrollBarVisible",event:"changeVerticalScrollBarVisible"},tablePaneModel:{check:"qx.ui.table.pane.Model",apply:"_applyTablePaneModel",event:"changeTablePaneModel"},liveResize:{check:"Boolean",init:false},focusCellOnMouseMove:{check:"Boolean",init:false},selectBeforeFocus:{check:"Boolean",init:false},showCellFocusIndicator:{check:"Boolean",init:true,
apply:"_applyShowCellFocusIndicator"},contextMenuFromDataCellsOnly:{check:"Boolean",init:true},resetSelectionOnHeaderClick:{check:"Boolean",init:true},scrollTimeout:{check:"Integer",init:100,apply:"_applyScrollTimeout"},appearance:{refine:true,init:"table-scroller"}},members:{__qs:null,__rk:null,__ru:null,__rv:null,__rw:null,__rx:null,__ry:null,__rz:null,__rA:null,__rB:null,__rC:null,__rD:null,__rE:null,__rF:null,__rG:false,__rH:null,__rI:null,__rJ:null,__qo:null,__qp:null,__rK:null,__rL:null,__rM:null,
__rr:null,__rs:null,__rl:null,__ro:null,__rm:null,__rp:null,__rq:null,__rt:null,__rn:null,__jk:null,getPaneInsetRight:function(){var a=this.getTopRightWidget(),a=a&&a.isVisible()&&a.getBounds()?a.getBounds().width+a.getMarginLeft()+a.getMarginRight():0,b=this.__rs,b=this.getVerticalScrollBarVisible()?this.getVerticalScrollBarWidth()+b.getMarginLeft()+b.getMarginRight():0;return Math.max(a,b)},setPaneWidth:function(a){this.isVerticalScrollBarVisible()&&(a+=this.getPaneInsetRight());this.setWidth(a)},
_createChildControlImpl:function(a){var b;switch(a){case "header":b=this.getTable().getNewTablePaneHeader()(this);break;case "pane":b=this.getTable().getNewTablePane()(this);break;case "focus-indicator":b=new qx.ui.table.pane.FocusIndicator(this);b.setUserBounds(0,0,0,0);b.setZIndex(1E3);b.addListener("mouseup",this._onMouseupFocusIndicator,this);this.__rp.add(b);b.show();b.setDecorator(null);break;case "resize-line":b=new qx.ui.core.Widget;b.setUserBounds(0,0,0,0);b.setZIndex(1E3);this.__rp.add(b);
break;case "scrollbar-x":b=this._createScrollBar("horizontal").set({minWidth:0,alignY:"bottom"});b.addListener("scroll",this._onScrollX,this);this.__rq!=null?(b.setMinHeight(qx.bom.element.Overflow.DEFAULT_SCROLLBAR_WIDTH),this.__rq.add(b,{bottom:0,right:0,left:0})):this._add(b,{row:2,column:0});break;case "scrollbar-y":b=this._createScrollBar("vertical"),b.addListener("scroll",this._onScrollY,this),this.__rq!=null?(b.setMinWidth(qx.bom.element.Overflow.DEFAULT_SCROLLBAR_WIDTH),this.__rq.add(b,{right:0,
bottom:0,top:0})):this._add(b,{row:1,column:1})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_applyHorizontalScrollBarVisible:function(a){this.__rr.setVisibility(a?"visible":"excluded")},_applyVerticalScrollBarVisible:function(a){this.__rs.setVisibility(a?"visible":"excluded")},_applyTablePaneModel:function(a,b){b!=null&&b.removeListener("modelChanged",this._onPaneModelChanged,this);a.addListener("modelChanged",this._onPaneModelChanged,this)},_applyShowCellFocusIndicator:function(a){a?
(this.__rt.setDecorator("table-scroller-focus-indicator"),this._updateFocusIndicator()):this.__rt&&this.__rt.setDecorator(null)},getScrollY:function(){return this.__rs.getPosition()},setScrollY:function(a,b){this.__rs.scrollTo(a);b&&this._updateContent()},getScrollX:function(){return this.__rr.getPosition()},setScrollX:function(a){this.__rr.scrollTo(a)},getTable:function(){return this.__rk},onColVisibilityChanged:function(){this.updateHorScrollBarMaximum();this._updateFocusIndicator()},setColumnWidth:function(a,
b){this.__rl.setColumnWidth(a,b);this.__rm.setColumnWidth(a,b);this.getTablePaneModel().getX(a)!=-1&&(this.updateHorScrollBarMaximum(),this._updateFocusIndicator())},onColOrderChanged:function(){this.__rl.onColOrderChanged();this.__rm.onColOrderChanged();this.updateHorScrollBarMaximum()},onTableModelDataChanged:function(a,b,c,d){this.__rm.onTableModelDataChanged(a,b,c,d);a=this.getTable().getTableModel().getRowCount();if(a!=this.__qs)this.updateVerScrollBarMaximum(),this.getFocusedRow()>=a&&(a==0?
this.setFocusedCell(null,null):this.setFocusedCell(this.getFocusedColumn(),a-1)),this.__qs=a},onSelectionChanged:function(){this.__rm.onSelectionChanged()},onFocusChanged:function(){this.__rm.onFocusChanged()},onTableModelMetaDataChanged:function(){this.__rl.onTableModelMetaDataChanged();this.__rm.onTableModelMetaDataChanged()},_onPaneModelChanged:function(){this.__rl.onPaneModelChanged();this.__rm.onPaneModelChanged()},_onResizePane:function(){this.updateHorScrollBarMaximum();this.updateVerScrollBarMaximum();
this._updateContent();this.__rl._updateContent();this.__rk._updateScrollBarVisibility()},updateHorScrollBarMaximum:function(){var a=this.__rp.getInnerSize();if(a){var b=this.getTablePaneModel().getTotalWidth(),c=this.__rr;if(a.width<b){var d=Math.max(0,b-a.width);c.setMaximum(d);c.setKnobFactor(a.width/b);a=c.getPosition();c.setPosition(Math.min(a,d))}else c.setMaximum(0),c.setKnobFactor(1),c.setPosition(0)}},updateVerScrollBarMaximum:function(){var a=this.__rp.getInnerSize();if(a){var b=this.getTable().getTableModel().getRowCount();
this.getTable().getKeepFirstVisibleRowComplete()&&(b+=1);var c=this.getTable().getRowHeight(),d=b*c,b=this.__rs;a.height<d?(c=Math.max(0,d-a.height),b.setMaximum(c),b.setKnobFactor(a.height/d),a=b.getPosition(),b.setPosition(Math.min(a,c))):(b.setMaximum(0),b.setKnobFactor(1),b.setPosition(0))}},onKeepFirstVisibleRowCompleteChanged:function(){this.updateVerScrollBarMaximum();this._updateContent()},_onAppear:function(){this._startInterval(this.getScrollTimeout())},_onDisappear:function(){this._stopInterval()},
_onScrollX:function(a){var b=a.getData();this.fireDataEvent("changeScrollX",b,a.getOldData());this.__ro.scrollToX(b);this.__rp.scrollToX(b)},_onScrollY:function(a){this.fireDataEvent("changeScrollY",a.getData(),a.getOldData());this._postponedUpdateContent()},_onMousewheel:function(a){if(this.getTable().getEnabled()){var b=a.getWheelDelta("y");b>0&&b<1?b=1:b<0&&b>-1&&(b=-1);this.__rs.scrollBySteps(b);b=a.getWheelDelta("x");b>0&&b<1?b=1:b<0&&b>-1&&(b=-1);this.__rr.scrollBySteps(b);this.__rI&&this.getFocusCellOnMouseMove()&&
this._focusCellAtPagePos(this.__rI,this.__rJ);var c=this.__rs.getPosition(),d=this.__rs.getMaximum();b<0&&c<=0||b>0&&c>=d||a.stop()}},__rN:function(a){var b=this.getTable(),c=this.__rl.getHeaderWidgetAtColumn(this.__rC).getSizeHint().minWidth,a=Math.max(c,this.__rE+a-this.__rD);this.getLiveResize()?b.getTableColumnModel().setColumnWidth(this.__rC,a,true):(this.__rl.setColumnWidth(this.__rC,a,true),this._showResizeLine(this.getTablePaneModel().getColumnLeft(this.__rC)+a));this.__rD+=a-this.__rE;this.__rE=
a},__rO:function(a){var b=qx.ui.table.pane.Scroller.CLICK_TOLERANCE;if(this.__rl.isShowingColumnMoveFeedback()||a>this.__rB+b||a<this.__rB-b)this.__ry+=a-this.__rB,this.__rl.showColumnMoveFeedback(this.__rx,this.__ry),b=this.__rk.getTablePaneScrollerAtPageX(a),this.__rA&&this.__rA!=b&&this.__rA.hideColumnMoveFeedback(),this.__rz=b!=null?b.showColumnMoveFeedback(a):null,this.__rA=b,this.__rB=a},_onMousemoveHeader:function(a){var b=this.getTable();if(b.getEnabled()){var c=false,d=null,e=a.getDocumentLeft(),
f=a.getDocumentTop();this.__rI=e;this.__rJ=f;this.__rC!=null?(this.__rN(e),c=true,a.stopPropagation()):this.__rx!=null?(this.__rO(e),a.stopPropagation()):this._getResizeColumnForPageX(e)!=-1?c=true:(a=b.getTableModel(),e=this._getColumnForPageX(e),e!=null&&a.isColumnSortable(e)&&(d=e));c=c?"col-resize":null;this.getApplicationRoot().setGlobalCursor(c);this.setCursor(c);this.__rl.setMouseOverColumn(d)}},_onMousemovePane:function(a){if(this.getTable().getEnabled()){var b=a.getDocumentLeft(),a=a.getDocumentTop();
this.__rI=b;this.__rJ=a;this._getRowForPagePos(b,a)!=null&&this._getColumnForPageX(b)!=null&&this.getFocusCellOnMouseMove()&&this._focusCellAtPagePos(b,a);this.__rl.setMouseOverColumn(null)}},_onMousedownHeader:function(a){if(this.getTable().getEnabled()){var b=a.getDocumentLeft(),c=this._getResizeColumnForPageX(b);c!=-1?(this._startResizeHeader(c,b),a.stop()):(c=this._getColumnForPageX(b),c!=null&&(this._startMoveHeader(c,b),a.stop()))}},_startResizeHeader:function(a,b){var c=this.getTable().getTableColumnModel();
this.__rC=a;this.__rD=b;this.__rE=c.getColumnWidth(this.__rC);this.__ro.capture()},_startMoveHeader:function(a,b){this.__rx=a;this.__rB=b;this.__ry=this.getTablePaneModel().getColumnLeft(a);this.__ro.capture()},_onMousedownPane:function(a){var b=this.getTable();if(b.getEnabled()){b.isEditing()&&b.stopEditing();var c=a.getDocumentLeft(),d=a.getDocumentTop(),e=this._getRowForPagePos(c,d),f=this._getColumnForPageX(c);if(e!==null)this.__rF={row:e,col:f},this.__rG=false,(f=this.getSelectBeforeFocus())&&
b.getSelectionManager().handleMouseDown(e,a),this.getFocusCellOnMouseMove()||this._focusCellAtPagePos(c,d),f||b.getSelectionManager().handleMouseDown(e,a)}},_onMouseupFocusIndicator:function(a){this.__rF&&!this.__rG&&!this.isEditing()&&this.__rt.getRow()==this.__rF.row&&this.__rt.getColumn()==this.__rF.col?(this.fireEvent("cellClick",qx.ui.table.pane.CellEvent,[this,a,this.__rF.row,this.__rF.col],true),this.__rG=true):this.isEditing()||this._onMousedownPane(a)},_onChangeCaptureHeader:function(){this.__rC!=
null&&this._stopResizeHeader();this.__rx!=null&&this._stopMoveHeader()},_stopResizeHeader:function(){var a=this.getTable().getTableColumnModel();this.getLiveResize()||(this._hideResizeLine(),a.setColumnWidth(this.__rC,this.__rE,true));this.__rC=null;this.__ro.releaseCapture();this.getApplicationRoot().setGlobalCursor(null);this.setCursor(null);this.isEditing()&&this.__rK.setUserBounds(0,0,this.__rE,this.__rK.getBounds().height)},_stopMoveHeader:function(){var a=this.getTable().getTableColumnModel(),
b=this.getTablePaneModel();this.__rl.hideColumnMoveFeedback();this.__rA&&this.__rA.hideColumnMoveFeedback();if(this.__rz!=null){var c=b.getFirstColumnX()+b.getX(this.__rx),b=this.__rz;b!=c&&b!=c+1&&(c=a.getVisibleColumnAtX(c),b=a.getVisibleColumnAtX(b),c=a.getOverallX(c),b=b!=null?a.getOverallX(b):a.getOverallColumnCount(),b>c&&b--,a.moveColumn(c,b),this._updateFocusIndicator())}this.__rz=this.__rx=null;this.__ro.releaseCapture()},_onMouseupPane:function(a){var b=this.getTable();if(b.getEnabled()){var c=
this._getRowForPagePos(a.getDocumentLeft(),a.getDocumentTop());c!=-1&&c!=null&&this._getColumnForPageX(a.getDocumentLeft())!=null&&b.getSelectionManager().handleMouseUp(c,a)}},_onMouseupHeader:function(a){if(this.getTable().getEnabled())this.__rC!=null?(this._stopResizeHeader(),this.__rH=true,a.stop()):this.__rx!=null&&(this._stopMoveHeader(),a.stop())},_onClickHeader:function(a){if(this.__rH)this.__rH=false;else{var b=this.getTable();if(b.getEnabled()){var c=b.getTableModel(),d=a.getDocumentLeft();
if(this._getResizeColumnForPageX(d)==-1&&(d=this._getColumnForPageX(d),d!=null&&c.isColumnSortable(d))){var e=c.getSortColumnIndex(),e=d!=e?true:!c.isSortAscending();this.fireDataEvent("beforeSort",{column:d,ascending:e,clickEvent:a},null,true)&&(b.isEditing()&&b.stopEditing(),c.sortByColumn(d,e),this.getResetSelectionOnHeaderClick()&&b.getSelectionModel().resetSelection())}a.stop()}}},_onClickPane:function(a){var b=this.getTable();if(b.getEnabled()){var c=a.getDocumentLeft(),d=a.getDocumentTop(),
d=this._getRowForPagePos(c,d),c=this._getColumnForPageX(c);if(d!=null&&c!=null&&(b.getSelectionManager().handleClick(d,a),this.__rt.isHidden()||this.__rF&&!this.__rG&&!this.isEditing()&&d==this.__rF.row&&c==this.__rF.col))this.fireEvent("cellClick",qx.ui.table.pane.CellEvent,[this,a,d,c],true),this.__rG=true}},_onContextMenu:function(a){var b=a.getDocumentLeft(),c=a.getDocumentTop(),c=this._getRowForPagePos(b,c),b=this._getColumnForPageX(b);if(!(c===null&&this.getContextMenuFromDataCellsOnly())&&
(!this.getShowCellFocusIndicator()||c===null||this.__rF&&c==this.__rF.row&&b==this.__rF.col))if(this.fireEvent("cellContextmenu",qx.ui.table.pane.CellEvent,[this,a,c,b],true),b=this.getTable().getContextMenu())b.getChildren().length>0?b.openAtMouse(a):b.exclude(),a.preventDefault()},_onContextMenuOpen:function(){},_onDblclickPane:function(a){var b=a.getDocumentLeft(),c=a.getDocumentTop();this._focusCellAtPagePos(b,c);this.startEditing();b=this._getRowForPagePos(b,c);b!=-1&&b!=null&&this.fireEvent("cellDblclick",
qx.ui.table.pane.CellEvent,[this,a,b],true)},_onMouseout:function(){this.getTable().getEnabled()&&(this.__rC==null&&(this.setCursor(null),this.getApplicationRoot().setGlobalCursor(null)),this.__rl.setMouseOverColumn(null),this.getFocusCellOnMouseMove()&&this.__rk.setFocusedCell())},_showResizeLine:function(a){var b=this._showChildControl("resize-line"),c=b.getWidth(),d=this.__rp.getBounds();b.setUserBounds(a-Math.round(c/2),0,c,d.height)},_hideResizeLine:function(){this._excludeChildControl("resize-line")},
showColumnMoveFeedback:function(a){for(var b=this.getTablePaneModel(),c=this.getTable().getTableColumnModel(),d=this.__rm.getContainerLocation().left,e=b.getColumnCount(),f=0,g=0,h=d,i=0;i<e;i++){var j=b.getColumnAtX(i),j=c.getColumnWidth(j);if(a<h+j/2)break;h+=j;f=i+1;g=h-d}c=this.__rp.getContainerLocation().left;a=this.__rp.getBounds().width;d=c-d;g=qx.lang.Number.limit(g,d+2,d+a-1);this._showResizeLine(g);return b.getFirstColumnX()+f},hideColumnMoveFeedback:function(){this._hideResizeLine()},_focusCellAtPagePos:function(a,
b){var c=this._getRowForPagePos(a,b);c!=-1&&c!=null&&this.__rk.setFocusedCell(this._getColumnForPageX(a),c)},setFocusedCell:function(a,b){if(!this.isEditing())this.__rm.setFocusedCell(a,b,this.__rv),this.__qo=a,this.__qp=b,this._updateFocusIndicator()},getFocusedColumn:function(){return this.__qo},getFocusedRow:function(){return this.__qp},scrollCellVisible:function(a,b){var c=this.getTablePaneModel();if(c.getX(a)!=-1){var d=this.__rp.getInnerSize();if(d){var e=this.getTable().getTableColumnModel(),
c=c.getColumnLeft(a),f=e.getColumnWidth(a),e=this.getTable().getRowHeight(),g=b*e,h=this.getScrollX(),i=this.getScrollY(),f=Math.min(c,c+f-d.width);this.setScrollX(Math.max(f,Math.min(c,h)));d=g+e-d.height;this.getTable().getKeepFirstVisibleRowComplete()&&(d+=e);this.setScrollY(Math.max(d,Math.min(g,i)),true)}}},isEditing:function(){return this.__rK!=null},startEditing:function(){var a=this.getTable(),b=a.getTableModel(),c=this.__qo;if(!this.isEditing()&&c!=null&&b.isColumnEditable(c)){var d=this.__qp,
e=this.getTablePaneModel().getX(c),b=b.getValue(c,d);this.scrollCellVisible(e,d);this.__rL=a.getTableColumnModel().getCellEditorFactory(c);c={col:c,row:d,xPos:e,value:b,table:a};this.__rK=this.__rL.createCellEditor(c);if(this.__rK===null)return false;else this.__rK instanceof qx.ui.window.Window?(this.__rK.setModal(true),this.__rK.setShowClose(false),this.__rK.addListener("close",this._onCellEditorModalWindowClose,this),a=a.getModalCellEditorPreOpenFunction(),a!=null&&a(this.__rK,c),this.__rK.open()):
(a=this.__rt.getInnerSize(),this.__rK.setUserBounds(0,0,a.width,a.height),this.__rt.addListener("mousedown",function(a){this.__rF={row:this.__qp,col:this.__qo};a.stopPropagation()},this),this.__rt.add(this.__rK),this.__rt.addState("editing"),this.__rt.setKeepActive(false),this.__rt.setDecorator("table-scroller-focus-indicator"),this.__rK.focus(),this.__rK.activate());return true}return false},stopEditing:function(){this.getShowCellFocusIndicator()||this.__rt.setDecorator(null);this.flushEditor();
this.cancelEditing()},flushEditor:function(){if(this.isEditing()){var a=this.__rL.getCellEditorValue(this.__rK),b=this.getTable().getTableModel().getValue(this.__qo,this.__qp);this.getTable().getTableModel().setValue(this.__qo,this.__qp,a);this.__rk.focus();this.__rk.fireDataEvent("dataEdited",{row:this.__qp,col:this.__qo,oldValue:b,value:a})}},cancelEditing:function(){if(this.isEditing()&&!this.__rK.pendingDispose)this._cellEditorIsModalWindow?(this.__rK.destroy(),this.__rL=this.__rK=null,this.__rK.pendingDispose=
true):(this.__rt.removeState("editing"),this.__rt.setKeepActive(true),this.__rK.destroy(),this.__rL=this.__rK=null)},_onCellEditorModalWindowClose:function(){this.stopEditing()},_getColumnForPageX:function(a){for(var b=this.getTable().getTableColumnModel(),c=this.getTablePaneModel(),d=c.getColumnCount(),e=this.__rm.getContentLocation().left,f=0;f<d;f++){var g=c.getColumnAtX(f),h=b.getColumnWidth(g);e+=h;if(a<e)return g}return null},_getResizeColumnForPageX:function(a){for(var b=this.getTable().getTableColumnModel(),
c=this.getTablePaneModel(),d=c.getColumnCount(),e=this.__rl.getContainerLocation().left,f=qx.ui.table.pane.Scroller.RESIZE_REGION_RADIUS,g=0;g<d;g++){var h=c.getColumnAtX(g),i=b.getColumnWidth(h);e+=i;if(a>=e-f&&a<=e+f)return h}return-1},_getRowForPagePos:function(a,b){var c=this.__rm.getContentLocation();if(a<c.left||a>c.right)return null;if(b>=c.top&&b<=c.bottom){var d=this.getTable().getRowHeight(),e=this.__rs.getPosition();this.getTable().getKeepFirstVisibleRowComplete()&&(e=Math.floor(e/d)*d);
c=Math.floor((e+b-c.top)/d);d=this.getTable().getTableModel().getRowCount();return c<d?c:null}c=this.__rl.getContainerLocation();return b>=c.top&&b<=c.bottom&&a<=c.right?-1:null},setTopRightWidget:function(a){var b=this.__rM;b!=null&&this.__rn.remove(b);a!=null&&this.__rn.add(a);this.__rM=a},getTopRightWidget:function(){return this.__rM},getHeader:function(){return this.__rl},getTablePane:function(){return this.__rm},getVerticalScrollBarWidth:function(){var a=this.__rs;return a.isVisible()?a.getSizeHint().width||
0:0},getNeededScrollBars:function(a,b){var c=this.__rs,c=c.getSizeHint().width+c.getMarginLeft()+c.getMarginRight(),d=this.__rr,d=d.getSizeHint().height+d.getMarginTop()+d.getMarginBottom(),e=this.__rp.getInnerSize(),f=e?e.width:0;this.getVerticalScrollBarVisible()&&(f+=c);var g=e?e.height:0;this.getHorizontalScrollBarVisible()&&(g+=d);var e=this.getTable().getTableModel().getRowCount(),h=this.getTablePaneModel().getTotalWidth(),i=this.getTable().getRowHeight()*e,j=e=false;h>f?(e=true,i>g-d&&(j=true)):
i>g&&(j=true,!b&&h>f-c&&(e=true));c=qx.ui.table.pane.Scroller.HORIZONTAL_SCROLLBAR;d=qx.ui.table.pane.Scroller.VERTICAL_SCROLLBAR;return(a||e?c:0)|(b||!j?0:d)},getPaneClipper:function(){return this.__rp},_applyScrollTimeout:function(a){this._startInterval(a)},_startInterval:function(a){this.__jk.setInterval(a);this.__jk.start()},_stopInterval:function(){this.__jk.stop()},_postponedUpdateContent:function(){this._updateContent()},_oninterval:qx.event.GlobalError.observeMethod(function(){if(this.__rv&&
!this.__rm._layoutPending)this.__rv=false,this._updateContent()}),_updateContent:function(){var a=this.__rp.getInnerSize();if(a){var b=a.height,a=this.__rr.getPosition(),c=this.__rs.getPosition(),d=this.getTable().getRowHeight(),e=Math.floor(c/d),f=this.__rm.getFirstVisibleRow();this.__rm.setFirstVisibleRow(e);var b=Math.ceil(b/d),g=0,h=this.getTable().getKeepFirstVisibleRowComplete();h||(b++,g=c%d);this.__rm.setVisibleRowCount(b);e!=f&&this._updateFocusIndicator();this.__rp.scrollToX(a);h||this.__rp.scrollToY(g)}},
_updateFocusIndicator:function(){this.getTable().getEnabled()&&this.__rt.moveToCell(this.__qo,this.__qp)}},destruct:function(){this._stopInterval();var a=this.getTablePaneModel();a&&a.dispose();this.__rF=this.__rM=this.__rk=null;this._disposeObjects("__rr","__rs","__ro","__rp","__rt","__rl","__rm","__rn","__jk","__rq")}})})();
(function(){qx.Class.define("qx.ui.table.pane.Clipper",{extend:qx.ui.container.Composite,construct:function(){qx.ui.container.Composite.call(this,new qx.ui.layout.Grow);this.setMinWidth(0)},members:{scrollToX:function(a){this.getContentElement().scrollToX(a,false)},scrollToY:function(a){this.getContentElement().scrollToY(a,true)}}})})();
(function(){qx.Class.define("qx.ui.table.pane.FocusIndicator",{extend:qx.ui.container.Composite,construct:function(a){qx.ui.container.Composite.call(this);this.__rP=a;this.setKeepActive(true);this.addListener("keypress",this._onKeyPress,this)},properties:{visibility:{refine:true,init:"excluded"},row:{check:"Integer",nullable:true},column:{check:"Integer",nullable:true}},members:{__rP:null,_onKeyPress:function(a){var b=a.getKeyIdentifier();b!=="Escape"&&b!=="Enter"&&a.stopPropagation()},moveToCell:function(a,
b){if(!this.__rP.getShowCellFocusIndicator()&&!this.__rP.getTable().getTableModel().isColumnEditable(a))this.exclude();else if(this.show(),a==null)this.hide(),this.setRow(null),this.setColumn(null);else if(this.__rP.getTablePaneModel().getX(a)==-1)this.hide(),this.setRow(null),this.setColumn(null);else{var c=this.__rP.getTable(),d=c.getTableColumnModel(),e=this.__rP.getTablePaneModel(),f=this.__rP.getTablePane().getFirstVisibleRow(),c=c.getRowHeight();this.setUserBounds(e.getColumnLeft(a)-2,(b-f)*
c-2,d.getColumnWidth(a)+3,c+3);this.show();this.setRow(b);this.setColumn(a)}}},destruct:function(){this.__rP=null}})})();
(function(){qx.Class.define("qx.ui.table.pane.CellEvent",{extend:qx.event.type.Mouse,properties:{row:{check:"Integer",nullable:true},column:{check:"Integer",nullable:true}},members:{init:function(a,b,c,d){b.clone(this);this.setBubbles(false);c!=null?this.setRow(c):this.setRow(a._getRowForPagePos(this.getDocumentLeft(),this.getDocumentTop()));d!=null?this.setColumn(d):this.setColumn(a._getColumnForPageX(this.getDocumentLeft()))},clone:function(a){a=qx.event.type.Mouse.prototype.clone.call(this,a);
a.set({row:this.getRow(),column:this.getColumn()});return a}}})})();(function(){qx.Class.define("qx.lang.Number",{statics:{isInRange:function(a,b,c){return a>=b&&a<=c},isBetweenRange:function(a,b,c){return a>b&&a<c},limit:function(a,b,c){return c!=null&&a>c?c:b!=null&&a<b?b:a}}})})();
(function(){qx.Class.define("qx.ui.table.pane.Model",{extend:qx.core.Object,construct:function(a){qx.core.Object.call(this);this.setTableColumnModel(a)},events:{modelChanged:"qx.event.type.Event"},statics:{EVENT_TYPE_MODEL_CHANGED:"modelChanged"},properties:{firstColumnX:{check:"Integer",init:0,apply:"_applyFirstColumnX"},maxColumnCount:{check:"Number",init:-1,apply:"_applyMaxColumnCount"}},members:{__rQ:null,__rR:null,_applyFirstColumnX:function(){this.__rQ=null;this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED)},
_applyMaxColumnCount:function(){this.__rQ=null;this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED)},setTableColumnModel:function(a){this.__rR&&(this.__rR.removeListener("visibilityChangedPre",this._onColVisibilityChanged,this),this.__rR.removeListener("headerCellRendererChanged",this._onColVisibilityChanged,this));this.__rR=a;this.__rR.addListener("visibilityChangedPre",this._onColVisibilityChanged,this);this.__rR.addListener("headerCellRendererChanged",this._onHeaderCellRendererChanged,
this);this.__rQ=null},_onColVisibilityChanged:function(){this.__rQ=null;this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED)},_onHeaderCellRendererChanged:function(){this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED)},getColumnCount:function(){if(this.__rQ==null){var a=this.getFirstColumnX(),b=this.getMaxColumnCount(),c=this.__rR.getVisibleColumnCount();this.__rQ=b==-1||a+b>c?c-a:b}return this.__rQ},getColumnAtX:function(a){return this.__rR.getVisibleColumnAtX(this.getFirstColumnX()+
a)},getX:function(a){var b=this.getFirstColumnX(),c=this.getMaxColumnCount(),a=this.__rR.getVisibleX(a)-b;return a>=0&&(c==-1||a<c)?a:-1},getColumnLeft:function(a){for(var b=0,c=this.getColumnCount(),d=0;d<c;d++){var e=this.getColumnAtX(d);if(e==a)return b;b+=this.__rR.getColumnWidth(e)}return-1},getTotalWidth:function(){for(var a=0,b=this.getColumnCount(),c=0;c<b;c++){var d=this.getColumnAtX(c);a+=this.__rR.getColumnWidth(d)}return a}},destruct:function(){this.__rR&&(this.__rR.removeListener("visibilityChangedPre",
this._onColVisibilityChanged,this),this.__rR.removeListener("headerCellRendererChanged",this._onColVisibilityChanged,this));this.__rR=null}})})();
(function(){qx.Class.define("arskom.ui.Table",{extend:qx.ui.table.Table,type:"abstract",construct:function(a,b){var c=this;this.__rS=[];b||(b={});if(!b.columnMenu)b.columnMenu=function(){var a=new arskom.ui.ColumnMenuButton;a._table=c;return a};qx.ui.table.Table.call(this,a,b);this.getPaneScroller(0).setShowCellFocusIndicator(false);this.getDataRowRenderer().setHighlightFocusRow(false);this.set_titles([]);this.set_fields([]);var d=this.getTableColumnModel();d.addListener("widthChanged",function(a){a.getData().isMouseAction&&
this._save_settings()},this);d.addListener("orderChanged",function(a){a.getData().isMouseAction&&this._save_settings()},this);this.set_kvs_cache(arskom.KvsCache.getInstance());this.addListener("changeTableModel",this.__rW,this);this.set_wsc(arskom.Application.wsc)},statics:{get_filter:function(a,b,c,d){a=a.get_object("arskom.query","FilterElement");a.set_field_name(b);a.set_op(c);a.set_values(d);return a}},properties:{_titles:{check:"Array"},_fields:{check:"Array"},_filter_columns:{check:"Array",
init:null,nullable:true},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc",init:null},_kvs_cache:{check:"arskom.KvsCache"},_excludeds_from_colmenu:{check:"Array",init:null},_search_qos:{check:"Array",init:null,nullable:true}},members:{__rT:-1,__rU:null,__rV:null,__rS:null,refresh:function(){this.programmatic_change=true},set_renderers:function(){},set_filter_ops:function(a,b,c){arskom.misc.is_na(c)&&this.refresh()},get_default_view:function(){},apply_wsc:function(a){this.get_kvs_cache().set_wsc(a)},
clear:function(){var a=this.get_titles(),b=this.get_fields(),c=this.getTableModel();if(!arskom.misc.is_na(c)){this.resetSelection();var d=new qx.ui.table.model.Simple;d.setColumns(a,b);this.setTableModel(d);c.dispose()}this.fireDataEvent("clear")},create_filter_columns:function(a,b,c){if(!arskom.misc.is_na(a)&&arskom.misc.is_na(this.get_filter_columns())){for(var d=a.service,e=a.output.message.split(":"),e=d.cache.prefix_map[e[0]],a=a.output.name,a=d.cache.schema[e].complex[a].children[0],e=a.ns,
a=a.type.split(":")[1],a=d.cache.schema[e].complex[a].children[0],e=a.ns,a=a.type.split(":")[1],d=d.cache.schema[e].complex[a],e=[],a=0,f=c.length;a<f;a++){var g=[b[a].toString(),c[a],d.children[c[a]].type.split(":")[1]];e.push(g)}e.length>0?this.set_filter_columns(e):this.set_filter_columns(null)}},add_search_qo_to_params:function(a,b){var c=this.get_search_qos();if(!arskom.misc.is_na(c)){for(var d=[],e=a.get_object("arskom.query","FilterElement"),f=0,g=c.length;f<g;++f)e.set_field_name(c[f][0]),
e.set_op(c[f][1]),e.set_values(c[f][2]),d.push(e);b.add("qos",d)}return b},get_key:function(){return this.classname},_save_settings:function(){for(var a=this.getTableColumnModel().getVisibleColumns(),b=qx.xml.Document.create(),c=soap.Client.createSubElementNS(b,b,"settings","arskom.ui.Table"),d=this.get_fields(),e=this.getTableColumnModel(),f=0,g=a.length;f<g;++f){var h=e.getColumnWidth(a[f]);if(h&&h!=null){var i=d[a[f]],j=soap.Client.createSubElementNS(b,c,"column","arskom.ui.Table");j.appendChild(b.createTextNode(i));
j.setAttribute("width",h.toString())}}a=this.get_wsc().c.kvs.get_object("arskom2.kvs.core","KvsValue");a.set_key(this.get_key());a.set_value(c);this.get_kvs_cache().set_entities([a],function(){qx.log.Logger.debug("kvs save: got a 500 from the server")})},_get_settings:function(){var a=this,b=a.get_fields(),c={};c[a.get_key()]=true;a.get_default_view();var d=this.get_kvs_cache();d.get_entities(c,function(c){if(c.length>0&&c[0]!=null)if(c=d.query_cache(c[0])){var c=qx.xml.Element.getElementsByTagNameNS(c.get_value(),
"arskom.ui.Table","column"),f=c.length;if(f>0){for(var g=a.getTableColumnModel(),h=0,i=b.length;h<i;++h)g.setColumnVisible(h,false);for(f-=1;f>=0;--f){var h=c[f].getAttribute("width"),i="",j=c[f].firstChild;if(j!=null)i=j.nodeValue;j=b.indexOf(i);j!=-1?(a.setColumnWidth(j,parseInt(h)),g.setColumnVisible(j,true),g.moveColumn(g.getOverallX(j),f)):qx.log.Logger.debug("kvs load: r["+i+"] does not exist.")}}else a.get_default_view(),qx.log.Logger.debug("kvs load: r[0] is empty")}else a.get_default_view(),
qx.log.Logger.debug("kvs load: r[0] doesn't exist on the server");else a.get_default_view(),qx.log.Logger.debug("kvs load: r is empty")},function(){a.get_default_view();qx.log.Logger.debug("kvs load: got a 500 from the server")});return a},__rW:function(){this.set_renderers();this.get_wsc()&&this._get_settings();var a=this.getTableModel();a.addListener("metaDataChanged",this.__rX,this);this.__rT>=0&&a.sortByColumn(this.__rT,this.__rU);this.programmatic_change=false},__rX:function(){this.__rT=this.getTableModel().getSortColumnIndex();
this.__rU=this.getTableModel().isSortAscending()},_applyTableModel:function(a,b){qx.ui.table.Table.prototype._applyTableModel.call(this,a,b);if(this.__rV)this.__rV.removeListener("metaDataChanged",this.__rX,this),this.__rV.dispose(),this.__rV=null;this.__rV=b}}})})();
(function(){qx.Class.define("arskom.ui.ColumnMenuButton",{extend:qx.ui.table.columnmenu.Button,members:{_table:null,factory:function(a,b){var c=qx.ui.table.columnmenu.Button.prototype.factory.call(this,a,b);if(a=="menu-button"){var d=this._table;c.addListener("changeValue",function(){qx.log.Logger.debug("arskom.ui.ColumnMenuButton.changeValue");d.programmatic_change||d._save_settings()});var e=d.get_excludeds_from_colmenu();e!=null&&e.indexOf(b.column)!=-1&&this.getMenu().remove(c)}return c}}})})();
(function(){qx.Class.define("arskom.KvsCache",{extend:arskom.EntityCache,type:"singleton",construct:function(){arskom.EntityCache.call(this);this.set_pk_field("keys");this.set_object_field("values");var a=this.get_wsc().c.kvs.get_call("get_values");a.get_params().add("domain_name",arskom.ui.impl.Login.s_domain_name);a.get_params().add("user_name",arskom.ui.impl.Login.s_user_name);this.set_by_id_call(a);a=this.get_wsc().c.kvs.get_call("set_values");a.get_params().add("domain_name",arskom.ui.impl.Login.s_domain_name);
a.get_params().add("user_name",arskom.ui.impl.Login.s_user_name);this.set_write_call(a)},members:{get_object_id:function(a){return a.get_key()}}})})();
(function(){qx.Class.define("arskom.ui.BroadcastingTable",{extend:arskom.ui.Table,properties:{_is_appearing:{check:"Boolean",init:false}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.addListener("appear",this.__rY,this);this.addListener("disappear",this.__sa,this)},members:{__rY:function(){this.set_is_appearing(true);var a=new qx.event.message.Message("table_appear",this);qx.event.message.Bus.dispatch(a)},__sa:function(){this.set_is_appearing(false);var a=new qx.event.message.Message("table_disappear",
this);qx.event.message.Bus.dispatch(a)}}})})();(function(){qx.Class.define("qx.event.message.Message",{extend:qx.core.Object,construct:function(a,b){qx.core.Object.call(this);a!=null&&this.setName(a);b!=null&&this.setData(b)},properties:{name:{check:"String"},data:{init:null,nullable:true},sender:{check:"Object"}}})})();
(function(){qx.Class.define("qx.event.message.Bus",{type:"singleton",extend:qx.core.Object,statics:{getSubscriptions:function(){return this.getInstance().getSubscriptions()},subscribe:function(a,b,c){return this.getInstance().subscribe(a,b,c)},checkSubscription:function(a,b,c){return this.getInstance().checkSubscription(a,b,c)},unsubscribe:function(a,b,c){return this.getInstance().unsubscribe(a,b,c)},dispatch:function(a){return this.getInstance().dispatch.apply(this.getInstance(),arguments)},dispatchByName:function(a,
b){return this.getInstance().dispatchByName.apply(this.getInstance(),arguments)}},construct:function(){this.__sb={}},members:{__sb:null,getSubscriptions:function(){return this.__sb},subscribe:function(a,b,c){if(!a||typeof b!="function")return this.error("Invalid parameters! "+[a,b,c]),false;var d=this.getSubscriptions();if(this.checkSubscription(a)){if(this.checkSubscription(a,b,c))return this.warn("Object method already subscribed to "+a),false;d[a].push({subscriber:b,context:c||null})}else d[a]=
[{subscriber:b,context:c||null}];return true},checkSubscription:function(a,b,c){var d=this.getSubscriptions();if(!d[a]||d[a].length===0)return false;if(b){for(var e=0;e<d[a].length;e++)if(d[a][e].subscriber===b&&d[a][e].context===(c||null))return true;return false}return true},unsubscribe:function(a,b,c){var d=this.getSubscriptions(),e=d[a];if(e)if(b){c||(c=null);var f=e.length,g;do if(g=e[--f],g.subscriber===b&&g.context===c)return e.splice(f,1),e.length===0&&(d[a]=null,delete d[a]),true;while(f)}else return d[a]=
null,delete d[a],true;return false},dispatch:function(a){var b=this.getSubscriptions(),c=a.getName(),d=false,e;for(e in b){var f=e.indexOf("*");if(f>-1){if(f===0||e.substr(0,f)===c.substr(0,f))this.__sc(b[e],a),d=true}else e===c&&(this.__sc(b[c],a),d=true)}return d},dispatchByName:function(a,b){return this.dispatch(new qx.event.message.Message(a,b))},__sc:function(a,b){for(var c=0;c<a.length;c++){var d=a[c].subscriber,e=a[c].context;e&&e.isDisposed?e.isDisposed()?(a.splice(c,1),c--):d.call(e,b):d.call(e,
b)}}}})})();
(function(){qx.Class.define("atr.comp.VehicleTable",{extend:arskom.ui.BroadcastingTable,events:{change_vehicle:"qx.event.type.Data",change_selection:"qx.event.type.Data"},properties:{update_map:{check:"Integer"},_domain_name:{check:"String",init:null,nullable:true},_fleet_id:{check:"Integer",init:null,nullable:true},_vehicle_name:{check:"String",init:null,nullable:true},_fleets:{check:"Array",init:null,nullable:true},_lrit_state:{check:"Integer",init:null,nullable:true},_waiting_row:{check:"Integer",init:0},
_map:{check:"arskom.ui.Map",init:null,nullable:true}},construct:function(a,b){arskom.ui.BroadcastingTable.call(this,a,b);this.__sd=new qx.event.Timer(150);this.__sd.setEnabled(false);this.__sd.addListener("interval",this.__sk,this);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);this.addListener("resize",this.__sl,this);this.addListener("cellDblclick",this.__sh,this);this.addListener("keypress",this.__mr,this);this.getSelectionModel().addListener("changeSelection",
this.__si,this);this.setUpdate_map(atr.proc.Vehicle.UPDATE_MAP);this.set_titles([this.tr("Record Id"),this.tr("Icon"),this.tr("Name"),this.tr("Last Activity"),this.tr("Evt. Type"),this.tr("Pos"),this.tr("Fleet ID"),this.tr("Device Type"),this.tr("Registration Number"),this.tr("Iccat Number"),this.tr("Has Messaging Support"),this.tr("Vehicle State Color"),this.tr("Fleet Color"),this.tr("User Color"),this.tr("Selected Option"),this.tr("W.ID"),this.tr("Temp"),this.tr("Water Temp"),this.tr("Wind Speed"),
this.tr("Swell Height"),this.tr("Weather Icon Url"),this.tr("Vehicle Type"),this.tr("Heading")]);this.set_fields("id,icon,name,ptime,evt,pos,fleet_id,device,register_number,iccat_reg_number,can_msg,color,fleet_color,user_color,user_option,w_id,w_temp_c,w_water_temp_c,w_windspeed_kmph,w_swell_height_m,w_weather_icon_url,vehicle_type,heading".split(","));this.set_excludeds_from_colmenu([10]);this.getPaneScroller(0).addListener("changeScrollY",this.__sj,this)},members:{first:true,__se:null,__sf:true,
__sd:null,dblclicked_vehicle_id:null,fields:null,__sg:function(){if(this.__sf)this.__sf=false,this.getUpdate_map()!=atr.proc.Vehicle.NO_UPDATE_MAP&&this.__sd.restart()},__mr:function(a){if(a.getKeyIdentifier()=="Enter"){var b;this.getSelectionModel().iterateSelection(function(a){b=a});(b||b===0)&&this.fireDataEvent("change_vehicle",this.getTableModel().getRowData(b))}},__sh:function(a){this.fireDataEvent("change_vehicle",this.getTableModel().getRowData(a.getRow()))},__si:function(){this.fireDataEvent("change_selection",
arskom.misc.selected_table_cell(this,"can_msg"))},__sj:function(a){this.set_waiting_row(parseInt(a.getData()/this.getRowHeight()));this.getUpdate_map()!=atr.proc.Vehicle.NO_UPDATE_MAP&&this.__sd.restart()},__sk:function(){this.__sd.stop();this.getUpdate_map()!=atr.proc.Vehicle.NO_UPDATE_MAP&&this.get_map()&&(this.get_map().clean_layers(["poi","geofence"]),this.__sn(this.get_waiting_row()))},__sl:function(){this.get_is_appearing()==true&&this.getUpdate_map()!=atr.proc.Vehicle.NO_UPDATE_MAP&&!this.first&&
this.__sd.restart()},set_renderers:function(){arskom.ui.BroadcastingTable.prototype.set_renderers.call(this);var a=this.getTableColumnModel();a.setDataCellRenderer(1,new qx.ui.table.cellrenderer.Image(21,21));a.setDataCellRenderer(3,arskom.misc.get_date_cellrenderer());a.setDataCellRenderer(5,new qx.ui.table.cellrenderer.Boolean);a.setDataCellRenderer(10,new qx.ui.table.cellrenderer.Boolean)},get_default_view:function(){arskom.ui.BroadcastingTable.prototype.get_default_view.call(this);var a=this.getTableColumnModel();
a.setColumnVisible(0,false);a.setColumnVisible(4,false);a.setColumnVisible(5,false);a.setColumnVisible(6,false);a.setColumnVisible(7,false);a.setColumnVisible(8,false);a.setColumnVisible(9,false);a.setColumnVisible(10,false);a.setColumnVisible(11,false);a.setColumnVisible(12,false);a.setColumnVisible(13,false);a.setColumnVisible(14,false);a.setColumnVisible(15,false);a.setColumnVisible(16,false);a.setColumnVisible(17,false);a.setColumnVisible(18,false);a.setColumnVisible(19,false);a.setColumnVisible(20,
false);a.setColumnVisible(21,false);a.setColumnVisible(22,false);a.setColumnWidth(1,40);a.setColumnWidth(2,150);a.setColumnWidth(3,100);a.setColumnWidth(5,30)},refresh:function(){arskom.ui.BroadcastingTable.prototype.refresh.call(this);var a=null;this.resetSelection();this.get_map()&&(a=this.get_map().get_srid());this.__sm(atr.proc.Vehicle.UPDATE_AND_CENTER_MAP,a)},__sm:function(a,b){var c=this.get_wsc().c.report,d=new soap.Parameters;d.add("domain_name",this.get_domain_name());d.add("fleet_id",this.get_fleet_id());
d.add("name_filter",this.get_vehicle_name());d.add("srid",b);d.add("time_zone",arskom.ui.impl.Login.s_user_prefs.get_time_zone());this.__se=[];this.__sf=true;c=new soap.RemoteImpl(c,atr.proc.report.vehicle.GET_COUNT,atr.proc.report.vehicle.GET_ALL,d,function(a){if(a.length>0)for(var b=0,c=a.length;b<c;++b){var d=null;switch(a[b].user_option){case "fleet":d=a[b].fleet_color;break;case "vehicle":d=a[b].color;break;case "user":d=a[b].user_color;break;default:d=a[b].fleet_color}a[b].icon="resource/atr/icons/circle/"+
d+"/"+a[b].icon}});c.addListener("dataLoaded",this.__sg,this);c.setColumns(this.get_titles(),this.get_fields());this.setTableModel(c)},__sn:function(a){var b;b=this.getInnerSize().height-this.getHeaderCellHeight();var c=Math.round(b/this.getRowHeight()-1);this.__se=[];var d=arskom.misc.get_table_cell_byrow;for(b=0;b<c;++b){var e=d(this,"name",a+b),f=d(this,"ptime",a+b),g=d(this,"pos",a+b),h=d(this,"vehicle_type",a+b),i=d(this,"w_id",a+b),j=d(this,"w_temp_c",a+b),k=d(this,"w_water_temp_c",a+b),l=d(this,
"w_windspeed_kmph",a+b),m=d(this,"w_swell_height_m",a+b),n=d(this,"w_weather_icon_url",a+b),o=d(this,"heading",a+b),r=d(this,"icon",a+b),q=r.lastIndexOf("/"),r=r.substr(q+1,5),q=d(this,"fleet_id",a+b),p=null;switch(d(this,"user_option",a+b)){case "fleet":p=d(this,"fleet_color",a+b);break;case "vehicle":p=d(this,"color",a+b);break;case "user":p=d(this,"user_color",a+b);break;default:p=d(this,"fleet_color",a+b)}this.__so(e,f,g,r,q,p,h,i,j,k,l,m,n,o)}if(!arskom.misc.is_na(this.get_map())&&!arskom.misc.is_na(this.__se)){this.get_map().clean_layers(["icon",
"line"]);for(b=0,a=this.__se.length;b<a;++b)c=this.__se[b][3],d=this.__se[b][4],this.get_map().add_marker_with_baloon(c,d);this.get_map().zoom_extent_by_layer("icon");this.first=false}},__so:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){if(!arskom.misc.is_na(this.get_map())&&!arskom.misc.is_na(a)&&!arskom.misc.is_na(c)){if(this.__se===null)this.__se=[];for(var o=0;o<this.__se.length;o++)if(this.__se[o][0]===a)return;o=arskom.ui.map.Segments.getInstance();if(o.check_pos(c)){var r=this.tr("Id:"),q=this.tr("Last Event:"),
p=this.get_map().get_srid(),h=o.get_standart_framed_cloud(r,a,q,b,e,g,c,p,h,i,j,k,l,m),c=o.get_standart_mark(c,d,f,g,n,a);this.__se.push([a,e,b,c,h])}}}}})})();(function(){qx.Class.define("atr.proc.Vehicle",{extend:qx.core.Object,statics:{ADD:"add_vehicle",DEL:"del_vehicle",GET:"get_vehicle",GET_ALL:"get_all_vehicle",GET_ALL_COUNT:"get_all_vehicle_count",EDT:"edt_vehicle",EDT_ADMIN:"edt_vehicle_admin",NO_UPDATE_MAP:1,UPDATE_MAP:2,UPDATE_AND_CENTER_MAP:3}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.AbstractImage",{extend:qx.ui.table.cellrenderer.Abstract,type:"abstract",construct:function(){qx.ui.table.cellrenderer.Abstract.call(this);var a=this.self(arguments);if(!a.stylesheet)a.stylesheet=qx.bom.Stylesheet.createElement(".qooxdoo-table-cell-icon {  text-align:center;  padding-top:1px;}")},properties:{repeat:{check:function(a){return qx.lang.Array.contains("scale,scale-x,scale-y,repeat,repeat-x,repeat-y,no-repeat".split(","),a)},init:"no-repeat"}},
members:{__sp:16,__sq:16,__sr:null,_insetY:2,_identifyImage:function(){throw Error("_identifyImage is abstract");},_getImageInfos:function(a){a=this._identifyImage(a);if(a==null||typeof a=="string")a={url:a,tooltip:null};if(!a.imageWidth||!a.imageHeight){var b=this.__ss(a.url);a.imageWidth=b.width;a.imageHeight=b.height}a.width=a.imageWidth;a.height=a.imageHeight;return a},__ss:function(a){var b=qx.util.ResourceManager.getInstance(),c=qx.io.ImageLoader,d;b.has(a)?(d=b.getImageWidth(a),a=b.getImageHeight(a)):
c.isLoaded(a)?(d=c.getWidth(a),a=c.getHeight(a)):(d=this.__sp,a=this.__sq);return{width:d,height:a}},createDataCellHtml:function(a,b){this.__sr=this._getImageInfos(a);return qx.ui.table.cellrenderer.Abstract.prototype.createDataCellHtml.call(this,a,b)},_getCellClass:function(){return qx.ui.table.cellrenderer.Abstract.prototype._getCellClass.call(this)+" qooxdoo-table-cell-icon"},_getContentHtml:function(){var a="<div></div>";this.__sr.url&&(a=qx.bom.element.Decoration.create(this.__sr.url,this.getRepeat(),
{width:this.__sr.width+"px",height:this.__sr.height+"px",display:qx.core.Environment.get("css.inlineblock"),verticalAlign:"top",position:"static"}));return a},_getCellAttributes:function(){var a=this.__sr.tooltip;return a?"title='"+a+"'":""}},destruct:function(){this.__sr=null}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Image",{extend:qx.ui.table.cellrenderer.AbstractImage,construct:function(a,b){qx.ui.table.cellrenderer.AbstractImage.call(this);if(a)this.__st=a;if(b)this.__su=b;this.__sv=qx.util.AliasManager.getInstance()},members:{__sv:null,__su:16,__st:16,_identifyImage:function(a){var b={imageWidth:this.__st,imageHeight:this.__su};b.url=a.value==""?null:this.__sv.resolve(a.value);b.tooltip=a.tooltip;return b}},destruct:function(){this.__sv=null}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Boolean",{extend:qx.ui.table.cellrenderer.AbstractImage,construct:function(){qx.ui.table.cellrenderer.AbstractImage.call(this);this.__sw=qx.util.AliasManager.getInstance();this.initIconTrue();this.initIconFalse()},properties:{iconTrue:{check:"String",init:"decoration/table/boolean-true.png",apply:"_applyIconTrue"},iconFalse:{check:"String",init:"decoration/table/boolean-false.png",apply:"_applyIconFalse"}},members:{__sx:null,__sy:false,__sw:null,
_applyIconTrue:function(a){this.__sx=this.__sw.resolve(a)},_applyIconFalse:function(a){this.__sy=this.__sw.resolve(a)},_insetY:5,_getCellStyle:function(a){return qx.ui.table.cellrenderer.AbstractImage.prototype._getCellStyle.call(this,a)+";padding-top:4px;"},_identifyImage:function(a){var b={imageWidth:11,imageHeight:11};switch(a.value){case true:b.url=this.__sx;break;case false:b.url=this.__sy;break;default:b.url=null}return b}},destruct:function(){this.__sw=null}})})();
(function(){qx.Class.define("qx.ui.table.model.Remote",{extend:qx.ui.table.model.Abstract,construct:function(){qx.ui.table.model.Abstract.call(this);this.__mz=-1;this.__mD=true;this.__sz=-1;this.__sA=0;this.__sD=this.__sC=this.__sB=-1;this.__sE=false;this.__sF={};this.__sG=0;this.__mB=this.__mC=null},properties:{blockSize:{check:"Integer",init:50},maxCachedBlockCount:{check:"Integer",init:15},clearCacheOnRemove:{check:"Boolean",init:false},blockConcurrentLoadRowCount:{check:"Boolean",init:true}},
members:{__sz:null,__sE:null,__sA:null,__sB:null,__sC:null,__sD:null,__sF:null,__sG:null,__mz:null,__mD:null,__mB:null,__mC:null,__sH:false,_getIgnoreCurrentRequest:function(){return this.__sE},getRowCount:function(){if(this.__sz==-1){if(!this.__sH||!this.getBlockConcurrentLoadRowCount())this.__sH=true,this._loadRowCount();return this.__sz==-1?0:this.__sz}else return this.__sz},_loadRowCount:function(){throw Error("_loadRowCount is abstract");},_onRowCountLoaded:function(a){if(this.getBlockConcurrentLoadRowCount())this.__sH=
false;if(a==null||a<0)a=0;this.__sz=Number(a);this.fireDataEvent("dataChanged",{firstRow:0,lastRow:a-1,firstColumn:0,lastColumn:this.getColumnCount()-1})},reloadData:function(){this.clearCache();if(this.__sB!=-1)this._cancelCurrentRequest()?(this.__sB=-1,this.__sE=false):this.__sE=true;this.__sD=this.__sC=-1;this.__sH=true;this._loadRowCount()},clearCache:function(){this.__sF={};this.__sG=0},getCacheContent:function(){return{sortColumnIndex:this.__mz,sortAscending:this.__mD,rowCount:this.__sz,lruCounter:this.__sA,
rowBlockCache:this.__sF,rowBlockCount:this.__sG}},restoreCacheContent:function(a){if(this.__sB!=-1)this._cancelCurrentRequest()?(this.__sB=-1,this.__sE=false):this.__sE=true;this.__mz=a.sortColumnIndex;this.__mD=a.sortAscending;this.__sz=a.rowCount;this.__sA=a.lruCounter;this.__sF=a.rowBlockCache;this.__sG=a.rowBlockCount;this.fireDataEvent("dataChanged",{firstRow:0,lastRow:this.__sz-1,firstColumn:0,lastColumn:this.getColumnCount()-1})},_cancelCurrentRequest:function(){return false},iterateCachedRows:function(a,
b){for(var c=this.getBlockSize(),d=Math.ceil(this.getRowCount()/c),e=0;e<=d;e++){var f=this.__sF[e];if(f!=null)for(var g=e*c,f=f.rowDataArr,h=0;h<f.length;h++){var i=a.call(b,g+h,f[h]);i!=null&&(f[h]=i)}}},prefetchRows:function(a,b){if(this.__sB==-1){var c=this.getBlockSize(),d=Math.ceil(this.__sz/c),e=parseInt(a/c,10)-1;e<0&&(e=0);var f=parseInt(b/c,10)+1;f>=d&&(f=d-1);for(var g=d=-1;e<=f;e++)if(this.__sF[e]==null||this.__sF[e].isDirty)d==-1&&(d=e),g=e;if(d!=-1)this.__sD=this.__sC=-1,this.__sB=d,
this._loadRowData(d*c,(g+1)*c-1)}else this.__sC=a,this.__sD=b},_loadRowData:function(){throw Error("_loadRowCount is abstract");},_onRowDataLoaded:function(a){if(a!=null&&!this.__sE){var b=this.getBlockSize(),c=Math.ceil(a.length/b);if(c==1)this._setRowBlockData(this.__sB,a);else for(var d=0;d<c;d++){for(var e=d*b,f=[],g=Math.min(b,a.length-e),h=0;h<g;h++)f.push(a[e+h]);this._setRowBlockData(this.__sB+d,f)}this.fireDataEvent("dataChanged",{firstRow:this.__sB*b,lastRow:(this.__sB+c+1)*b-1,firstColumn:0,
lastColumn:this.getColumnCount()-1})}this.__sB=-1;this.__sE=false;this.__sC!=-1&&this.prefetchRows(this.__sC,this.__sD)},_setRowBlockData:function(a,b){if(this.__sF[a]==null)for(this.__sG++;this.__sG>this.getMaxCachedBlockCount();){var c,d=this.__sA,e;for(e in this.__sF){var f=this.__sF[e].lru;f<d&&e>1&&(d=f,c=e)}delete this.__sF[c];this.__sG--}this.__sF[a]={lru:++this.__sA,rowDataArr:b}},removeRow:function(a){if(this.getClearCacheOnRemove())this.clearCache(),a={firstRow:0,lastRow:this.getRowCount()-
1,firstColumn:0,lastColumn:this.getColumnCount()-1},this.fireDataEvent("dataChanged",a);else{for(var b=this.getBlockSize(),c=Math.ceil(this.getRowCount()/b),d=parseInt(a/b,10),e=d;e<=c;e++){var f=this.__sF[e];if(f!=null){var g=0;e==d&&(g=a-e*b);f.rowDataArr.splice(g,1);e==c-1?f.rowDataArr.length==0&&delete this.__sF[e]:(g=this.__sF[e+1],g!=null?f.rowDataArr.push(g.rowDataArr[0]):f.isDirty=true)}}this.__sz!=-1&&this.__sz--;this.hasListener("dataChanged")&&(a={firstRow:a,lastRow:this.getRowCount()-
1,firstColumn:0,lastColumn:this.getColumnCount()-1},this.fireDataEvent("dataChanged",a))}},getRowData:function(a){var b=this.getBlockSize(),c=parseInt(a/b,10),d=this.__sF[c];if(d==null)return null;else{a=d.rowDataArr[a-c*b];if(d.lru!=this.__sA)d.lru=++this.__sA;return a}},getValue:function(a,b){var c=this.getRowData(b);if(c==null)return null;else{var d=this.getColumnId(a);return c[d]}},setValue:function(a,b,c){var d=this.getRowData(b);if(d!=null){var e=this.getColumnId(a);d[e]=c;this.hasListener("dataChanged")&&
this.fireDataEvent("dataChanged",{firstRow:b,lastRow:b,firstColumn:a,lastColumn:a})}},setEditable:function(a){this.__mB=[];for(var b=0;b<this.getColumnCount();b++)this.__mB[b]=a;this.fireEvent("metaDataChanged")},setColumnEditable:function(a,b){if(b!=this.isColumnEditable(a)){if(this.__mB==null)this.__mB=[];this.__mB[a]=b;this.fireEvent("metaDataChanged")}},isColumnEditable:function(a){return this.__mB?this.__mB[a]==true:false},setColumnSortable:function(a,b){if(b!=this.isColumnSortable(a)){if(this.__mC==
null)this.__mC=[];this.__mC[a]=b;this.fireEvent("metaDataChanged")}},isColumnSortable:function(a){return this.__mC?this.__mC[a]!==false:true},sortByColumn:function(a,b){if(this.__mz!=a||this.__mD!=b)this.__mz=a,this.__mD=b,this.clearCache(),this.fireEvent("metaDataChanged")},getSortColumnIndex:function(){return this.__mz},isSortAscending:function(){return this.__mD},setSortColumnIndexWithoutSortingData:function(a){this.__mz=a},setSortAscendingWithoutSortingData:function(a){this.__mD=a}},destruct:function(){this.__mC=
this.__mB=this.__sF=null}})})();
(function(){qx.Class.define("soap.RemoteImpl",{extend:qx.ui.table.model.Remote,include:[qx.locale.MTranslation],construct:function(a,b,c,d,e){qx.ui.table.model.Remote.call(this);this.__sI=a;this.__sJ=b;this.__sK=c;this.__iv=d;e&&this.setMapper(e)},properties:{mapper:{check:"Function",init:null,nullable:true}},events:{dataLoaded:"qx.event.type.Data"},members:{__sI:null,__sL:null,__sM:null,__sN:false,__iv:null,get_params:function(){return this.__iv},set_params:function(a){this.__iv=a},_loadRowCount:function(){var a=
this,b=a.__sI,c=a.__iv;if(!a.__sN)a.__sN=true,b.callAsync(this.__sJ,c,true,function(b){a.__sN=false;a._onRowCountLoaded(b)})},_loadRowData:function(a){var b=this,c=b.__sI,d=b.__iv,e=d.get_soap_req_header();e||(e=new (this.__sI.get_header_class()));this.getSortColumnIndex()>=0&&(e.set_sort_key(this.getColumnId(this.getSortColumnIndex())),e.set_sort_ord(this.isSortAscending()?"d":"a"));e.set_row(a);d.set_soap_req_header(e);c.callAsync(this.__sK,d,true,function(a){a?(b.getMapper()!=null&&b.getMapper()(a),
b._onRowDataLoaded(a)):qx.log.Logger.debug("Row data is empty! r is null!");b.fireDataEvent("dataLoaded",a)})},getValue:function(a,b){var c=this.getRowData(b),d=null;if(c!=null){var e=this.getColumnId(a);if(e.constructor==Array){d=c[e[0]];for(c=1;c<e.length;++c)d=d[e[c]]}else d=c[e]}return d}}})})();(function(){qx.Class.define("atr.proc.report.vehicle",{type:"static",statics:{GET_ALL:"query_vehicles",GET_COUNT:"query_vehicles_count"}})})();
(function(){qx.Class.define("arskom.ui.map.Segments",{extend:qx.core.Object,type:"singleton",include:[qx.locale.MTranslation],construct:function(){qx.core.Object.call(this)},members:{get_standart_mark:function(a,b,c,d,e,f){var g;e==null&&(e=0);a=(new OpenLayers.Format.WKT).read(a);d=="2"?(g=new OpenLayers.Size(28,28),d=new OpenLayers.Pixel(-(g.w/2),-(g.h/2)),b=new OpenLayers.Icon("resource/atr/icons/marker/maritime/"+c+"/"+e+".png",g),f=new OpenLayers.Marker.LabelMarker(a.geometry.getBounds().getCenterLonLat(),
b.clone(),"<table style='margin-top: -11px;' border='0' width='200px'><tr><td><font color='#000000' style='font-size:10px'><b>"+f+"</b></font></td></tr></table>",d)):(g=new OpenLayers.Size(20,34),d=new OpenLayers.Pixel(-(g.w/2),-g.h),b=new OpenLayers.Icon("resource/atr/icons/marker/"+c+"/"+b,g,d),f=new OpenLayers.Marker(a.geometry.getBounds().getCenterLonLat(),b.clone()));return f},get_standart_framed_cloud:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=new OpenLayers.Format.WKT,f=o.read(g),g=this.get_display_coords(o.read(g),
h),e=b.toString()+"-"+e.toString(),a="<div style='font-size:.8em'> <br/> <table><tr><td><b>"+a+"</b></td><td>"+b+"</td></tr><tr><td><b>"+c+"</b></td><td>"+arskom.misc.get_formatted_dt_string(d)+"</td></tr><tr><td><b>Latitude:</b></td><td>"+g.y+"</td></tr><tr><td><b>Longitude:</b></td><td>"+g.x+"</td></tr>";arskom.misc.is_na(j)||(a=a+"<tr><td></td><td> <img src="+n+" /> </td></tr><tr><td><b>Temperature:</b></td><td>"+j+" \u00b0C</td></tr><tr><td><b>Water Temperature:</b></td><td>"+k+" \u00b0C</td></tr><tr><td><b>Wind Speed:</b></td><td>"+
l+" kmph.</td></tr><tr><td><b>Swell Height:</b></td><td>"+m+" m.</td></tr><tr><td colspan='2' alignment='center'> <a href='http://tracking.arskom.com.tr/html/get_weather?weather_id="+i+"' target='_blank'>Click for detailed weather information</a> </td></tr>");a+="</table></div>";return new OpenLayers.Popup.FramedCloud(e,f.geometry.getBounds().getCenterLonLat(),null,a,null,true,null)},get_standart_pos_marker:function(a,b,c,d){var e="blue",f=new OpenLayers.Size(28,28);b>c&&(e="red");b=new OpenLayers.Pixel(-(f.w/
2),-(f.h/2));d=("000"+Math.round(d)%360).slice(-3);e=new OpenLayers.Icon("resource/atr/icons/56x56/arrows/"+e+"/"+d+".png",f,b);return new OpenLayers.Marker(a.geometry.getBounds().getCenterLonLat(),e)},get_standart_pos_cloud:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,r){d="km/h";if(i==2||i==3)d="knots";b=this.get_display_coords(a,b);c="<div style='font-size:.8em'> <br/> <table><tr><td><b>Vehicle Name:</b></td><td>"+h+"</td></tr><tr><td><b>Sent:</b></td><td>"+arskom.misc.get_formatted_dt_string(c)+"</td></tr><tr><td><b>Speed:</b></td><td>"+
e+" <b>"+d+"</b></td></tr><tr><td><b>Latitude:</b></td><td>"+b.y+"</td></tr><tr><td><b>Longitude:</b></td><td>"+b.x+"</td></tr><tr><td><b>Heading:</b></td><td>"+f+"</td></tr>";arskom.misc.is_na(l)||(c=c+"<tr><td></td><td> <img src="+r+" /> </td></tr><tr><td><b>Temperature:</b></td><td>"+l+" \u00b0C</td></tr><tr><td><b>Water Temperature:</b></td><td>"+m+" \u00b0C</td></tr><tr><td><b>Wind Speed:</b></td><td>"+n+" kmph.</td></tr><tr><td><b>Swell Height:</b></td><td>"+o+" m.</td></tr><tr><td colspan='2' alignment='center'> <a href='http://tracking.arskom.com.tr/html/get_weather?weather_id="+
k+"' target='_blank'>Click for detailed weather information</a> </td></tr>");c+="</table></div>";return new OpenLayers.Popup.FramedCloud(j,a.geometry.getBounds().getCenterLonLat(),null,c,null,true,null)},get_line_features:function(a){var b={strokeColor:"#339933",strokeOpacity:1,strokeWidth:3,pointRadius:6,pointerEvents:"visiblePainted"},c=[],d;for(d in a)if(a.hasOwnProperty(d)){var e=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString(a[d]),null,b);c.push(e)}return c},get_display_coords:function(a,
b){var c=a.geometry,c=new OpenLayers.Geometry.Point(c.x,c.y);if(b!=4326){var d=new OpenLayers.Projection("EPSG:"+b),e=new OpenLayers.Projection("EPSG:4326");OpenLayers.Projection.transform(c,d,e)}c.x=this.convert_dm(c.x,"LON");c.y=this.convert_dm(c.y,"LAT");return c},check_pos:function(a){a=(new OpenLayers.Format.WKT).read(a);return arskom.misc.is_na(a)?false:true},convert_dm:function(a,b){var c=[],d=Math.abs(a),c=Math.floor(d),d=(d-c)*60;d<10&&(d="0"+d);var d=d.toString(),e=d.split(".")[1];e!=null?
e.length>=5&&(e=e.substring(0,5)):e==null&&(e="0");d=d.split(".")[0]+"."+e;return c=c+"\u00b0 "+d+"' "+this.define_hemisphere(a,b)},define_hemisphere:function(a,b){var c="";b=="LAT"?c=a<0?"S":"N":b=="LON"&&(c=a<0?"W":"E");return c}}})})();
(function(){qx.Class.define("atr.comp.FleetSelectBox",{extend:qx.ui.form.SelectBox,properties:{_wsc:{check:"soap.ClientCollection"},_cache:{check:"atr.cache.Fleet"},_must_select:{check:"Boolean",init:true},_domain_name:{check:"String"}},construct:function(){qx.ui.form.SelectBox.call(this);this.set_cache(atr.cache.Fleet.getInstance())},members:{refresh:function(){var a=this,b=this.get_cache();a.removeAll();b.void_cache();var c=new soap.Parameters;c.add("domain_name",this.get_domain_name());var d=this.get_wsc().c.cvs.get_call(atr.proc.Fleet.GET_ALL),
e=this.get_wsc().c.cvs.get_call(atr.proc.Fleet.GET_ALL);d.set_params(c);b.set_by_page_call(d);b.set_count_call(e);b.fill_cache(function(c){var d;if(a.get_must_select())d=new qx.ui.form.ListItem(a.tr("[ Select ]")),a.add(d);else for(var e=arskom.ui.impl.Login.s_roles,i=0,j=e.length;i<j;++i)if(e[i].get_for_fleet()==null){d=a.get_wsc().c.cvs.get_object("track.core","Fleet");d.set_id(null);d=new qx.ui.form.ListItem(a.tr("[ All Fleets ]"),null,d);a.add(d);break}i=0;for(j=c.length;i<j;i++)e=b.query_cache(c[i]),
e=new qx.ui.form.ListItem(e.get_name(),null,e),a.add(e);d&&a.setSelection([d])})}}})})();(function(){qx.Class.define("atr.proc.Fleet",{type:"static",statics:{ADD:"add_corporation_fleet",DEL:"del_fleet",GET_ALL:"get_all_fleet",GET_ALL_COUNT:"get_all_count_fleet",EDT:"edt_corporation_fleet"}})})();
(function(){qx.Class.define("atr.comp.impl.FleetVehicleComposite",{extend:atr.comp.draw.FleetVehicleComposite,construct:function(a,b){atr.comp.draw.FleetVehicleComposite.call(this,a,b);this.btn_message.setVisibility("excluded");this.btn_rule.setVisibility("excluded")},properties:{_allow_add_del_vehicle:{check:"Boolean",apply:"apply_allow_add_del_vehicle"},_allow_edit_vehicle:{check:"Boolean",apply:"apply_allow_edit_vehicle"},_allow_edit_vehicle_option:{check:"Boolean",init:false},_allow_change_vehicle_type:{check:"Boolean"},
_allow_manage_comm_terminal:{check:"Boolean"},_allow_add_vehicle_corp_table:{check:"Boolean"},_allow_change_rule:{check:"Boolean"},_allow_view_rule:{check:"Boolean",apply:"apply_allow_view_rule"},_allow_use_message:{check:"Boolean",apply:"apply_allow_use_message",init:false},_domain_name:{check:"String",apply:"apply_domain_name"},_map:{check:"arskom.ui.Map",init:null,nullable:true,apply:"apply_map"},_tbl_selection_mode:{check:"Integer",init:qx.ui.table.selection.Model.SINGLE_SELECTION,apply:"apply_tbl_selection_mode"},
_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"}},events:{change_fleet:"qx.event.type.Data",change_vehicle:"qx.event.type.Data",add_message_to_vehicle:"qx.event.type.Data"},members:{rule_list:null,vehicle_list:null,apply_tbl_selection_mode:function(a){var b=this.tbl_vehicle.getSelectionModel();b.setSelectionMode(a);b.resetSelection()},apply_wsc:function(a){this.cmb_fleet.set_wsc(a);this.tbl_vehicle.set_wsc(a)},apply_allow_add_del_vehicle:function(a){a==false?(this.btn_add_vehicle.setVisibility("excluded"),
this.btn_del_vehicle.setVisibility("excluded")):(this.btn_add_vehicle.setVisibility("visible"),this.btn_del_vehicle.setVisibility("visible"))},apply_allow_edit_vehicle:function(){},apply_allow_view_rule:function(a){a==false?this.btn_rule.setVisibility("excluded"):this.btn_rule.setVisibility("visible")},apply_allow_use_message:function(a){this.set_allow_use_message(a)},apply_map:function(a){this.tbl_vehicle.set_map(a)},apply_domain_name:function(a){this.cmb_fleet.set_domain_name(a);this.tbl_vehicle.set_domain_name(a)},
on_cmb_fleet_change_selection:function(a){a=a.getData();a.length>0&&(a=a[0].getModel(),this.fireDataEvent("change_fleet",a),a!=null&&(this.tbl_vehicle.set_fleet_id(a.get_id()),this.tbl_vehicle.refresh()))},create_btn_rule:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_btn_rule.call(this);a.setIcon(atr.proc.Consts.ICON_RULE);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_VEH_RULE,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_rule_execute,this);
return a},create_btn_message:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_btn_message.call(this);a.setIcon(atr.proc.Consts.ICON_NEWMSG);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_MSG_ADD,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_message_execute,this);return a},__sO:function(){if(this.rule_list==null)this.rule_list=new atr.impl.rule.List;return this.rule_list},on_btn_rule_execute:function(){var a=this.get_domain_name(),b=arskom.misc.selected_table_cell(this.tbl_vehicle,
"id"),c=arskom.misc.selected_table_cell(this.tbl_vehicle,"fleet_id");if(arskom.misc.is_na(b))alert(this.tr("Please select a vehicle"));else{var d=this.__sO();d.set_wsc(this.get_wsc());d.set_domain_name(a);d.set_fleet_id(c);d.set_vehicle_id(b);d.set_allow_private_components(true);d.set_allow_change_rule(this.get_allow_change_rule());d.reset();d.refresh();d.show()}},on_btn_message_execute:function(){var a=arskom.misc.selected_table_row(this.tbl_vehicle);arskom.misc.is_na(a)?alert(this.tr("Please select a vehicle")):
this.fireDataEvent("add_message_to_vehicle",arskom.misc.selected_table_row(this.tbl_vehicle))},create_label_4:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_label_4.call(this);this.label_4.setVisibility("excluded");return a},create_vehicle_search_box:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_vehicle_search_box.call(this);a.addListener("keyup",this.on_vehicle_search_box_change,this);return a},on_vehicle_search_box_change:function(){qx.util.TimerManager.getInstance().start(function(){this.tbl_vehicle.set_vehicle_name(this.search_box.getValue());
this.tbl_vehicle.refresh()},0,this,null,333)},create_btn_refresh_vehicle:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_btn_refresh_vehicle.call(this);a.setIcon(atr.proc.Consts.ICON_REFRESH);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_VEH_REFRESH,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_refresh_vehicle_execute,this);return a},on_btn_refresh_vehicle_execute:function(){this.refresh_vehicle()},refresh_fleet:function(){this.cmb_fleet.refresh()},
refresh_vehicle:function(){this.tbl_vehicle.refresh()},create_btn_add_vehicle:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_btn_add_vehicle.call(this);a.setIcon(atr.proc.Consts.ICON_ADD);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_VEH_ADD,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_add_vehicle_execute,this);return a},__sP:function(){if(this.vehicle_list==null){var a=new atr.impl.vehicle.AddVehicle;a.addListener("close",this.refresh_vehicle,
this);this.vehicle_list=a}return this.vehicle_list},on_btn_add_vehicle_execute:function(){var a=this.get_domain_name(),b=this.__sP();b.set_allow_change_vehicle_type(this.get_allow_change_vehicle_type());b.reset();b.set_wsc(this.get_wsc());b.set_domain_name(a);b.set_vehicle_id(null);b.show()},create_btn_del_vehicle:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_btn_del_vehicle.call(this);a.setIcon(atr.proc.Consts.ICON_DEL);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_VEH_DEL,
atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_del_vehicle_execute,this);return a},on_btn_del_vehicle_execute:function(){var a=this,b=arskom.misc.selected_table_cell(this.tbl_vehicle,"fleet_id"),c=arskom.misc.selected_table_cell(this.tbl_vehicle,"id");c!==""&&confirm(this.tr("Are you sure that you want to delete selected record?"))&&this.get_wsc().c.cvs.easy(atr.proc.Vehicle.DEL,this.get_domain_name(),b,c,function(){a.tbl_vehicle.refresh()})},create_btn_edit_vehicle:function(){var a=
atr.comp.draw.FleetVehicleComposite.prototype.create_btn_edit_vehicle.call(this);a.setIcon(atr.proc.Consts.ICON_EDIT);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_VEH_EDIT,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_edit_vehicle_execute,this);return a},on_btn_edit_vehicle_execute:function(){var a=this.get_domain_name(),b=arskom.misc.selected_table_cell(this.tbl_vehicle,"fleet_id"),c=arskom.misc.selected_table_cell(this.tbl_vehicle,"id");if(c!==""){var d=null,
d=this.__sP();d.set_allow_change_vehicle_type(this.get_allow_change_vehicle_type());d.set_allow_edit_vehicle(this.get_allow_edit_vehicle());d.set_allow_edit_vehicle_option(this.get_allow_edit_vehicle_option());d.set_wsc(this.get_wsc());d.set_domain_name(a);d.set_fleet_id(b);d.set_vehicle_id(c);d.set_allow_small_corp_table(this.get_allow_add_vehicle_corp_table());d.reset();d.show()}},create_tbl_vehicle:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_tbl_vehicle.call(this);a.addListener("change_vehicle",
this.__sQ,this);a.addListener("change_selection",this.__sR,this);return a},__sQ:function(a){this.fireDataEvent("change_vehicle",a.getData())},__sR:function(a){this.get_allow_use_message()==true?(a=a.getData(),this.btn_message.setVisibility(!(a==null||a==false)?"visible":"excluded")):this.btn_message.setVisibility("excluded")},create_cmb_fleet:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_cmb_fleet.call(this);a.addListener("changeSelection",this.on_cmb_fleet_change_selection,
this);return a},create_btn_fleet_refresh:function(){var a=atr.comp.draw.FleetVehicleComposite.prototype.create_btn_fleet_refresh.call(this);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_FLE_REFRESH,atr.proc.Consts.ICON_TOOLTIP));a.setIcon(atr.proc.Consts.ICON_REFRESH);a.addListener("execute",this.cmb_fleet.refresh,this.cmb_fleet);return a},get_vehicle_selection:function(){var a=[],b=this;this.tbl_vehicle.getSelectionModel().iterateSelection(function(c){(c=b.tbl_vehicle.getTableModel().getValueById("id",
c))&&a.push(c)});return a},get_vehicle_fleet_selection:function(){var a=[],b=this;this.tbl_vehicle.getSelectionModel().iterateSelection(function(c){(c=b.tbl_vehicle.getTableModel().getValueById("fleet_id",c))&&a.push(c)});return a}}})})();
(function(){qx.Class.define("atr.proc.Consts",{type:"static",statics:{ICON_ADD:"atr/icons/22x22/list-add.png",ICON_EDIT:"atr/icons/22x22/edit-clear.png",ICON_DEL:"atr/icons/22x22/list-remove.png",ICON_REFRESH:"atr/icons/22x22/view-refresh.png",ICON_NEWMSG:"atr/icons/22x22/mail-message-new.png",ICON_RULE:"atr/icons/22x22/rule.png",ICON_TOOLTIP:"atr/icons/22x22/help-about.png",ICON_SEND_MAIL:"atr/icons/22x22/mail-forward.png",ICON_PRINT:"atr/icons/22x22/document-print.png",ICON_OFFICE_SPREAD:"atr/icons/22x22/office-spreadsheet.png",
ICON_PDF:"atr/icons/22x22/office-web.png",ICON_MOVEVEHICLE:"atr/icons/22x22/go-last.png",TITLE_VEH_ADD:"Add Vehicle",TITLE_VEH_EDIT:"Edit Selected Vehicle",TITLE_VEH_DEL:"Delete Selected Vehicle",TITLE_VEH_REFRESH:"Refresh Vehicle List",TITLE_VEH_RULE:"Rules",TITLE_SEMD_MAIL:"Positions Report  Send Mail",TITLE_PRINT:"Positions Report  Print",TITLE_OFFICE_SPREAD:"Positions Report  Export Excell",TITLE_PDF:"Positions Report  Export PDF",TITLE_MOVEVEHICLE:"Move Vehicle",TITLE_POI_ADD:"Add Poi",TITLE_POI_DEL:"Delete Selected Poi",
TITLE_POI_REFRESH:"Refresh Poi List",TITLE_GEO_ADD:"Add Geo-Fence",TITLE_GEO_DEL:"Delete Selected Geo-Fence",TITLE_GEO_REFRESH:"Refresh Geo-Fences List",TITLE_RULE_ADD:"Add Rule",TITLE_RULE_EDT:"Edit Selected Rule",TITLE_RULE_DEL:"Delete Selected Rule",TITLE_RULE_REFRESH:"Refresh Rule List",TITLE_EVENT_REFRESH:"Refresh Event List",TITLE_MSG_ADD:"Send New Message",TITLE_FLE_REFRESH:"Refresh Fleet List",DT_GLOBALWAVE:1,DT_GSM:2,DT_INMC:3,DT_DPLUS:4,DT_DPLUS_GSM:5,DT_ISATM2M:6,DT_SATAMATICS:7,DT_MAP:[null,
"globalwave_id","imei",null,"skywave_id","skywave_id","skywave_id","isn"],DEVICE_TYPE_NAMES:",Global Wave,GSM,Inmarsat C,Sky Wave D+,Sky Wave ISatM2M/GSM,Sky Wave ISATM2M,Satamatics,IsatData Pro".split(","),DEVICE_MODELS:"MT2000,MT3000,MT3300,MT3400,MT3550,Satamatics,Cybergraphy (G200x),Bios (MT863),Starsnav (RoverV9),Starsnav (PT33),Inmarsat C,DMR-200D,DMR-200L,SureLinx 8100,SureLinx 8100C,DMR-800,DMR-800L,DMR-800 LRIT,Skywave IDP 680,Skywave IDP 690".split(","),DEVICE_TYPES:[1,1,1,1,1,7,2,2,2,2,
3,4,4,5,5,6,6,6,8,8],VT_TERRESTRIAL:1,VT_FISHER:2,CIRCLE_ICONS:[new qx.ui.form.ListItem("Marker - A",null,"A.png"),new qx.ui.form.ListItem("Marker - B",null,"B.png"),new qx.ui.form.ListItem("Marker - C",null,"C.png"),new qx.ui.form.ListItem("Marker - D",null,"D.png"),new qx.ui.form.ListItem("Marker - E",null,"E.png"),new qx.ui.form.ListItem("Marker - F",null,"F.png"),new qx.ui.form.ListItem("Marker - G",null,"G.png"),new qx.ui.form.ListItem("Marker - H",null,"H.png"),new qx.ui.form.ListItem("Marker - I",
null,"I.png"),new qx.ui.form.ListItem("Marker - J",null,"J.png"),new qx.ui.form.ListItem("Marker - K",null,"K.png"),new qx.ui.form.ListItem("Marker - L",null,"L.png"),new qx.ui.form.ListItem("Marker - M",null,"M.png"),new qx.ui.form.ListItem("Marker - N",null,"N.png"),new qx.ui.form.ListItem("Marker - O",null,"O.png"),new qx.ui.form.ListItem("Marker - P",null,"P.png"),new qx.ui.form.ListItem("Marker - Q",null,"Q.png"),new qx.ui.form.ListItem("Marker - R",null,"R.png"),new qx.ui.form.ListItem("Marker - S",
null,"S.png"),new qx.ui.form.ListItem("Marker - T",null,"T.png"),new qx.ui.form.ListItem("Marker - U",null,"U.png"),new qx.ui.form.ListItem("Marker - V",null,"V.png"),new qx.ui.form.ListItem("Marker - X",null,"X.png"),new qx.ui.form.ListItem("Marker - Y",null,"Y.png"),new qx.ui.form.ListItem("Marker - Z",null,"Z.png"),new qx.ui.form.ListItem("Marker - 1",null,"1.png"),new qx.ui.form.ListItem("Marker - 2",null,"2.png"),new qx.ui.form.ListItem("Marker - 3",null,"3.png"),new qx.ui.form.ListItem("Marker - 4",
null,"4.png"),new qx.ui.form.ListItem("Marker - 5",null,"5.png"),new qx.ui.form.ListItem("Marker - 6",null,"6.png"),new qx.ui.form.ListItem("Marker - 7",null,"7.png"),new qx.ui.form.ListItem("Marker - 8",null,"8.png"),new qx.ui.form.ListItem("Marker - 9",null,"9.png")],ICCAT_COUNTRY_CODES:[new qx.ui.form.ListItem("AFGHANISTAN",null,"AFG"),new qx.ui.form.ListItem("ALBANIA",null,"ALB"),new qx.ui.form.ListItem("ALGERIA",null,"DZA"),new qx.ui.form.ListItem("AMERICAN SAMOA",null,"ASM"),new qx.ui.form.ListItem("ANDORRA",
null,"AND"),new qx.ui.form.ListItem("ANGOLA",null,"AGO"),new qx.ui.form.ListItem("ANGUILLA",null,"AIA"),new qx.ui.form.ListItem("ANTARCTICA",null,"ATA"),new qx.ui.form.ListItem("ANTIGUA AND BARBUDA",null,"ATG"),new qx.ui.form.ListItem("ARGENTINA",null,"ARG"),new qx.ui.form.ListItem("ARMENIA",null,"ARM"),new qx.ui.form.ListItem("ARUBA",null,"ABW"),new qx.ui.form.ListItem("AUSTRALIA",null,"AUS"),new qx.ui.form.ListItem("AUSTRIA",null,"AUT"),new qx.ui.form.ListItem("AZERBAIJAN",null,"AZE"),new qx.ui.form.ListItem("BAHAMAS",
null,"BHS"),new qx.ui.form.ListItem("BAHRAIN",null,"BHR"),new qx.ui.form.ListItem("BANGLADESH",null,"BGD"),new qx.ui.form.ListItem("BARBADOS",null,"BRB"),new qx.ui.form.ListItem("BELARUS",null,"BLR"),new qx.ui.form.ListItem("BELGIUM",null,"BEL"),new qx.ui.form.ListItem("BELIZE",null,"BLZ"),new qx.ui.form.ListItem("BENIN",null,"BEN"),new qx.ui.form.ListItem("BERMUDA",null,"BMU"),new qx.ui.form.ListItem("BHUTAN",null,"BTN"),new qx.ui.form.ListItem("BOLIVIA",null,"BOL"),new qx.ui.form.ListItem("BOSNIA AND HERZEGOWINA",
null,"BIH"),new qx.ui.form.ListItem("BOTSWANA",null,"BWA"),new qx.ui.form.ListItem("BOUVET ISLAND",null,"BVT"),new qx.ui.form.ListItem("BRAZIL",null,"BRA"),new qx.ui.form.ListItem("BRITISH INDIAN OCEAN TERRITORY",null,"IOT"),new qx.ui.form.ListItem("BRUNEI DARUSSALAM",null,"BRN"),new qx.ui.form.ListItem("BULGARIA",null,"BGR"),new qx.ui.form.ListItem("BURKINA FASO",null,"BFA"),new qx.ui.form.ListItem("BURUNDI",null,"BDI"),new qx.ui.form.ListItem("CAMBODIA",null,"KHM"),new qx.ui.form.ListItem("CAMEROON",
null,"CMR"),new qx.ui.form.ListItem("CANADA",null,"CAN"),new qx.ui.form.ListItem("CAPE VERDE",null,"CPV"),new qx.ui.form.ListItem("CAYMAN ISLANDS",null,"CYM"),new qx.ui.form.ListItem("CENTRAL AFRICAN REPUBLIC",null,"CAF"),new qx.ui.form.ListItem("CHAD",null,"TCD"),new qx.ui.form.ListItem("CHILE",null,"CHL"),new qx.ui.form.ListItem("CHINA",null,"CHN"),new qx.ui.form.ListItem("CHRISTMAS ISLAND",null,"CXR"),new qx.ui.form.ListItem("COCOS (KEELING) ISLANDS",null,"CCK"),new qx.ui.form.ListItem("COLOMBIA",
null,"COL"),new qx.ui.form.ListItem("COMOROS",null,"COM"),new qx.ui.form.ListItem("CONGO",null,"COG"),new qx.ui.form.ListItem("COOK ISLANDS",null,"COK"),new qx.ui.form.ListItem("COSTA RICA",null,"CRI"),new qx.ui.form.ListItem("CROATIA",null,"HRV"),new qx.ui.form.ListItem("CUBA",null,"CUB"),new qx.ui.form.ListItem("CYPRUS",null,"CYP"),new qx.ui.form.ListItem("CZECH REPUBLIC",null,"CZE"),new qx.ui.form.ListItem("DENMARK",null,"DNK"),new qx.ui.form.ListItem("DJIBOUTI",null,"DJI"),new qx.ui.form.ListItem("DOMINICA",
null,"DMA"),new qx.ui.form.ListItem("DOMINICAN REPUBLIC",null,"DOM"),new qx.ui.form.ListItem("EAST TIMOR",null,"TMP"),new qx.ui.form.ListItem("ECUADOR",null,"ECU"),new qx.ui.form.ListItem("EGYPT",null,"EGY"),new qx.ui.form.ListItem("EL SALVADOR",null,"SLV"),new qx.ui.form.ListItem("EQUATORIAL GUINEA",null,"GNQ"),new qx.ui.form.ListItem("ERITREA",null,"ERI"),new qx.ui.form.ListItem("ESTONIA",null,"EST"),new qx.ui.form.ListItem("ETHIOPIA",null,"ETH"),new qx.ui.form.ListItem("FALKLAND ISLANDS",null,
"FLK"),new qx.ui.form.ListItem("FAROE ISLANDS",null,"FRO"),new qx.ui.form.ListItem("FIJI",null,"FJI"),new qx.ui.form.ListItem("FINLAND",null,"FIN"),new qx.ui.form.ListItem("FRANCE",null,"FRA"),new qx.ui.form.ListItem("FRENCH GUIANA",null,"GUF"),new qx.ui.form.ListItem("FRENCH POLYNESIA",null,"PYF"),new qx.ui.form.ListItem("FRENCH SOUTHERN TERRITORIES",null,"ATF"),new qx.ui.form.ListItem("GABON",null,"GAB"),new qx.ui.form.ListItem("GAMBIA",null,"GMB"),new qx.ui.form.ListItem("GEORGIA",null,"GEO"),
new qx.ui.form.ListItem("GERMANY",null,"DEU"),new qx.ui.form.ListItem("GHANA",null,"GHA"),new qx.ui.form.ListItem("GIBRALTAR",null,"GIB"),new qx.ui.form.ListItem("GREECE",null,"GRC"),new qx.ui.form.ListItem("GREENLAND",null,"GRL"),new qx.ui.form.ListItem("GRENADA",null,"GRD"),new qx.ui.form.ListItem("GUADELOUPE",null,"GLP"),new qx.ui.form.ListItem("GUAM",null,"GUM"),new qx.ui.form.ListItem("GUATEMALA",null,"GTM"),new qx.ui.form.ListItem("GUINEA",null,"GIN"),new qx.ui.form.ListItem("GUINEA-BISSAU",
null,"GNB"),new qx.ui.form.ListItem("GUYANA",null,"GUY"),new qx.ui.form.ListItem("HAITI",null,"HTI"),new qx.ui.form.ListItem("HEARD AND MC DONALD ISLANDS",null,"HMD"),new qx.ui.form.ListItem("HOLY SEE (VATICAN CITY STATE)",null,"VAT"),new qx.ui.form.ListItem("HONDURAS",null,"HND"),new qx.ui.form.ListItem("HONG KONG",null,"HKG"),new qx.ui.form.ListItem("HUNGARY",null,"HUN"),new qx.ui.form.ListItem("ICELAND",null,"ISL"),new qx.ui.form.ListItem("INDIA",null,"IND"),new qx.ui.form.ListItem("INDONESIA",
null,"IDN"),new qx.ui.form.ListItem("IRAN",null,"IRN"),new qx.ui.form.ListItem("IRAQ",null,"IRQ"),new qx.ui.form.ListItem("IRELAND",null,"IRL"),new qx.ui.form.ListItem("ISRAEL",null,"ISR"),new qx.ui.form.ListItem("ITALY",null,"ITA"),new qx.ui.form.ListItem("JAMAICA",null,"JAM"),new qx.ui.form.ListItem("JAPAN",null,"JPN"),new qx.ui.form.ListItem("JORDAN",null,"JOR"),new qx.ui.form.ListItem("KAZAKHSTAN",null,"KAZ"),new qx.ui.form.ListItem("KENYA",null,"KEN"),new qx.ui.form.ListItem("KIRIBATI",null,
"KIR"),new qx.ui.form.ListItem("KOREA, REPUBLIC OF",null,"KOR"),new qx.ui.form.ListItem("KUWAIT",null,"KWT"),new qx.ui.form.ListItem("KYRGYZSTAN",null,"KGZ"),new qx.ui.form.ListItem("LAOS",null,"LAO"),new qx.ui.form.ListItem("LATVIA",null,"LVA"),new qx.ui.form.ListItem("LEBANON",null,"LBN"),new qx.ui.form.ListItem("LESOTHO",null,"LSO"),new qx.ui.form.ListItem("LIBERIA",null,"LBR"),new qx.ui.form.ListItem("LIBYAN ARAB JAMAHIRIYA",null,"LBY"),new qx.ui.form.ListItem("LIECHTENSTEIN",null,"LIE"),new qx.ui.form.ListItem("LITHUANIA",
null,"LTU"),new qx.ui.form.ListItem("LUXEMBOURG",null,"LUX"),new qx.ui.form.ListItem("MACAU",null,"MAC"),new qx.ui.form.ListItem("MACEDONIA",null,"MKD"),new qx.ui.form.ListItem("MADAGASCAR",null,"MDG"),new qx.ui.form.ListItem("MALAWI",null,"MWI"),new qx.ui.form.ListItem("MALAYSIA",null,"MYS"),new qx.ui.form.ListItem("MALDIVES",null,"MDV"),new qx.ui.form.ListItem("MALI",null,"MLI"),new qx.ui.form.ListItem("MALTA",null,"MLT"),new qx.ui.form.ListItem("MARSHALL ISLANDS",null,"MHL"),new qx.ui.form.ListItem("MARTINIQUE",
null,"MTQ"),new qx.ui.form.ListItem("MAURITANIA",null,"MRT"),new qx.ui.form.ListItem("MAURITIUS",null,"MUS"),new qx.ui.form.ListItem("MAYOTTE",null,"MYT"),new qx.ui.form.ListItem("MEXICO",null,"MEX"),new qx.ui.form.ListItem("MICRONESIA, FEDERATED STATES OF",null,"FSM"),new qx.ui.form.ListItem("MOLDOVA, REPUBLIC OF",null,"MDA"),new qx.ui.form.ListItem("MONACO",null,"MCO"),new qx.ui.form.ListItem("MONGOLIA",null,"MNG"),new qx.ui.form.ListItem("MONTSERRAT",null,"MSR"),new qx.ui.form.ListItem("MOROCCO",
null,"MAR"),new qx.ui.form.ListItem("MOZAMBIQUE",null,"MOZ"),new qx.ui.form.ListItem("MYANMAR",null,"MMR"),new qx.ui.form.ListItem("NAMIBIA",null,"NAM"),new qx.ui.form.ListItem("NAURU",null,"NRU"),new qx.ui.form.ListItem("NEPAL",null,"NPL"),new qx.ui.form.ListItem("NETHERLANDS",null,"NLD"),new qx.ui.form.ListItem("NETHERLANDS ANTILLES",null,"ANT"),new qx.ui.form.ListItem("NEW CALEDONIA",null,"NCL"),new qx.ui.form.ListItem("NEW ZEALAND",null,"NZL"),new qx.ui.form.ListItem("NICARAGUA",null,"NIC"),new qx.ui.form.ListItem("NIGER",
null,"NER"),new qx.ui.form.ListItem("NIGERIA",null,"NGA"),new qx.ui.form.ListItem("NIUE",null,"NIU"),new qx.ui.form.ListItem("NORFOLK ISLAND",null,"NFK"),new qx.ui.form.ListItem("NORTHERN MARIANA ISLANDS",null,"MNP"),new qx.ui.form.ListItem("NORWAY",null,"NOR"),new qx.ui.form.ListItem("OMAN",null,"OMN"),new qx.ui.form.ListItem("PAKISTAN",null,"PAK"),new qx.ui.form.ListItem("PALAU",null,"PLW"),new qx.ui.form.ListItem("PANAMA",null,"PAN"),new qx.ui.form.ListItem("PAPUA NEW GUINEA",null,"PNG"),new qx.ui.form.ListItem("PARAGUAY",
null,"PRY"),new qx.ui.form.ListItem("PERU",null,"PER"),new qx.ui.form.ListItem("PHILIPPINES",null,"PHL"),new qx.ui.form.ListItem("PITCAIRN",null,"PCN"),new qx.ui.form.ListItem("POLAND",null,"POL"),new qx.ui.form.ListItem("PORTUGAL",null,"PRT"),new qx.ui.form.ListItem("PUERTO RICO",null,"PRI"),new qx.ui.form.ListItem("QATAR",null,"QAT"),new qx.ui.form.ListItem("REUNION",null,"REU"),new qx.ui.form.ListItem("ROMANIA",null,"ROM"),new qx.ui.form.ListItem("RUSSIAN FEDERATION",null,"RUS"),new qx.ui.form.ListItem("RWANDA",
null,"RWA"),new qx.ui.form.ListItem("SAINT HELENA",null,"SHN"),new qx.ui.form.ListItem("SAINT KITTS AND NEVIS",null,"KNA"),new qx.ui.form.ListItem("SAINT LUCIA",null,"LCA"),new qx.ui.form.ListItem("SAINT PIERRE ET MIQUELON",null,"SPM"),new qx.ui.form.ListItem("SAINT VINCENT AND THE GRENADINES",null,"VCT"),new qx.ui.form.ListItem("SAMOA",null,"WSM"),new qx.ui.form.ListItem("SAN MARINO",null,"SMR"),new qx.ui.form.ListItem("SAO TOME AND PRINCIPE",null,"STP"),new qx.ui.form.ListItem("SAUDI ARABIA",null,
"SAU"),new qx.ui.form.ListItem("SENEGAL",null,"SEN"),new qx.ui.form.ListItem("SEYCHELLES",null,"SYC"),new qx.ui.form.ListItem("SIERRA LEONE",null,"SLE"),new qx.ui.form.ListItem("SINGAPORE",null,"SGP"),new qx.ui.form.ListItem("SLOVAKIA",null,"SVK"),new qx.ui.form.ListItem("SLOVENIA",null,"SVN"),new qx.ui.form.ListItem("SOLOMON ISLANDS",null,"SLB"),new qx.ui.form.ListItem("SOMALIA",null,"SOM"),new qx.ui.form.ListItem("SOUTH AFRICA",null,"ZAF"),new qx.ui.form.ListItem("SOUTH GEORGIA AND SOUTH SANDWICH ISLANDS",
null,"SGS"),new qx.ui.form.ListItem("SPAIN",null,"ESP"),new qx.ui.form.ListItem("SRI LANKA",null,"LKA"),new qx.ui.form.ListItem("SUDAN",null,"SDN"),new qx.ui.form.ListItem("SURINAME",null,"SUR"),new qx.ui.form.ListItem("SVALBARD AND JAN MAYEN ISLANDS",null,"SJM"),new qx.ui.form.ListItem("SWAZILAND",null,"SWZ"),new qx.ui.form.ListItem("SWEDEN",null,"SWE"),new qx.ui.form.ListItem("SWITZERLAND",null,"CHE"),new qx.ui.form.ListItem("SYRIAN ARAB REPUBLIC",null,"SYR"),new qx.ui.form.ListItem("TAIWAN, PROVINCE OF CHINA",
null,"TWN"),new qx.ui.form.ListItem("TAJIKISTAN",null,"TJK"),new qx.ui.form.ListItem("TANZANIA, UNITED REPUBLIC OF",null,"TZA"),new qx.ui.form.ListItem("THAILAND",null,"THA"),new qx.ui.form.ListItem("TOGO",null,"TGO"),new qx.ui.form.ListItem("TOKELAU",null,"TKL"),new qx.ui.form.ListItem("TONGA",null,"TON"),new qx.ui.form.ListItem("TRINIDAD AND TOBAGO",null,"TTO"),new qx.ui.form.ListItem("TUNISIA",null,"TUN"),new qx.ui.form.ListItem("TURKEY",null,"TUR"),new qx.ui.form.ListItem("TURKMENISTAN",null,
"TKM"),new qx.ui.form.ListItem("TURKS AND CAICOS ISLANDS",null,"TCA"),new qx.ui.form.ListItem("TUVALU",null,"TUV"),new qx.ui.form.ListItem("UGANDA",null,"UGA"),new qx.ui.form.ListItem("UKRAINE",null,"UKR"),new qx.ui.form.ListItem("UNITED ARAB EMIRATES",null,"ARE"),new qx.ui.form.ListItem("UNITED KINGDOM",null,"GBR"),new qx.ui.form.ListItem("UNITED STATES",null,"USA"),new qx.ui.form.ListItem("UNITED STATES MINOR OUTLYING ISLANDS",null,"UMI"),new qx.ui.form.ListItem("URUGUAY",null,"URY"),new qx.ui.form.ListItem("UZBEKISTAN",
null,"UZB"),new qx.ui.form.ListItem("VANUATU",null,"VUT"),new qx.ui.form.ListItem("VENEZUELA",null,"VEN"),new qx.ui.form.ListItem("VIET NAM",null,"VNM"),new qx.ui.form.ListItem("VIRGIN ISLANDS (BRITISH)",null,"VGB"),new qx.ui.form.ListItem("VIRGIN ISLANDS (U.S.)",null,"VIR"),new qx.ui.form.ListItem("WALLIS AND FUTUNA ISLANDS",null,"WLF"),new qx.ui.form.ListItem("WESTERN SAHARA",null,"ESH"),new qx.ui.form.ListItem("YEMEN",null,"YEM"),new qx.ui.form.ListItem("YUGOSLAVIA",null,"YUG"),new qx.ui.form.ListItem("ZAIRE",
null,"ZAR"),new qx.ui.form.ListItem("ZAMBIA",null,"ZMB"),new qx.ui.form.ListItem("ZIMBABWE",null,"ZWE")]}})})();
(function(){qx.Class.define("arskom.ui.draw.DataDisplay",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_add_toolbar:null,btn_close_toolbar:null,btn_del_toolbar:null,btn_details_toolbar:null,btn_edt_toolbar:null,btn_export_toolbar:null,btn_first_page:null,btn_last_page:null,btn_next_page:null,btn_previous_page:null,btn_refresh_toolbar:null,btn_select:null,
centralwidget:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(569);a.setWidth(543);a.setMargin(1);a.add(this.create_toolBar());a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_add_toolbar:function(){var a=this.btn_add_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Add"));return a},create_btn_close_toolbar:function(){var a=this.btn_close_toolbar=
new qx.ui.toolbar.Button;a.setLabel(this.tr("Close"));return a},create_btn_del_toolbar:function(){var a=this.btn_del_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Remove"));return a},create_btn_details_toolbar:function(){var a=this.btn_details_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Details"));return a},create_btn_edt_toolbar:function(){var a=this.btn_edt_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Edit"));return a},create_btn_export_toolbar:function(){var a=this.btn_export_toolbar=
new qx.ui.toolbar.Button;a.setLabel(this.tr("Export"));return a},create_btn_first_page:function(){var a=this.btn_first_page=new qx.ui.form.Button;a.setMargin(1);return a},create_btn_last_page:function(){var a=this.btn_last_page=new qx.ui.form.Button;a.setMargin(1);return a},create_btn_next_page:function(){var a=this.btn_next_page=new qx.ui.form.Button;a.setMargin(1);return a},create_btn_previous_page:function(){var a=this.btn_previous_page=new qx.ui.form.Button;a.setMargin(1);return a},create_btn_refresh_toolbar:function(){var a=
this.btn_refresh_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Refresh"));return a},create_btn_select:function(){var a=this.btn_select=new qx.ui.form.Button;a.setMaxHeight(26);a.setMaxWidth(75);a.setLabel(this.tr("Select"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_wgt_search(),{flex:1});a.add(this.create_wgt_table(),{flex:1});a.add(this.create_wgt_page_control(),
{flex:1});a.add(this.create_wgt_select_bar_implicit_container(),{flex:1});return a},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_horizontalLayout_5:function(){return this.horizontalLayout_5=new qx.ui.layout.HBox},create_horizontalSpacer_2:function(){var a=this.horizontalSpacer_2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(232);a.setMargin(1);return a},create_horizontalSpacer_3:function(){var a=this.horizontalSpacer_3=new qx.ui.core.Spacer;
a.setHeight(20);a.setWidth(231);a.setMargin(1);return a},create_horizontalSpacer_8:function(){var a=this.horizontalSpacer_8=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("Per Page: "));a.setMargin(1);return a},create_table:function(){var a=this.table=new qx.ui.table.Table;a.setMargin(1);return a},create_toolBar:function(){var a=this.toolBar=new qx.ui.toolbar.ToolBar;a.setMargin(1);
a.setAllowGrowY(false);a.add(this.create_btn_export_toolbar());a.add(new qx.ui.toolbar.Separator);a.add(this.create_btn_add_toolbar());a.add(this.create_btn_edt_toolbar());a.add(this.create_btn_details_toolbar());a.add(this.create_btn_refresh_toolbar());a.add(this.create_btn_del_toolbar());a.add(new qx.ui.toolbar.Separator);a.add(this.create_btn_close_toolbar());return a},create_txt_pertext:function(){var a=this.txt_pertext=new qx.ui.form.TextField;a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},create_wgt_page_control:function(){var a=this.wgt_page_control=new qx.ui.container.Composite(this.create_horizontalLayout_3());a.setMaxHeight(45);a.setMargin(1);a.add(this.create_horizontalSpacer_2(),{flex:1});a.add(this.create_btn_first_page(),{flex:1});a.add(this.create_btn_previous_page(),{flex:1});a.add(this.create_btn_next_page(),{flex:1});a.add(this.create_btn_last_page(),{flex:1});a.add(this.create_label_2(),{flex:1});a.add(this.create_txt_pertext(),{flex:1});a.add(this.create_horizontalSpacer_3(),
{flex:1});return a},create_wgt_search:function(){var a=this.wgt_search=new qx.ui.container.Composite(this.create_wgt_search_il());a.setMaxHeight(68);a.setMargin(1);return a},create_wgt_search_il:function(){return this.wgt_search_il=new qx.ui.layout.Canvas},create_wgt_select_bar:function(){return this.wgt_select_bar=new qx.ui.layout.HBox},create_wgt_select_bar_implicit_container:function(){var a=this.wgt_select_bar_implicit_container=new qx.ui.container.Composite(this.create_wgt_select_bar());a.setMargin(1);
a.add(this.create_btn_select(),{flex:1});a.add(this.create_horizontalSpacer_8(),{flex:1});return a},create_wgt_table:function(){var a=this.wgt_table=new qx.ui.container.Composite(this.create_horizontalLayout_5());a.setMargin(1);a.add(this.create_table(),{flex:1});return a},horizontalLayout_3:null,horizontalLayout_5:null,horizontalSpacer_2:null,horizontalSpacer_3:null,horizontalSpacer_8:null,label_2:null,table:null,toolBar:null,txt_pertext:null,verticalLayout:null,wgt_page_control:null,wgt_search:null,
wgt_search_il:null,wgt_select_bar:null,wgt_select_bar_implicit_container:null,wgt_table:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("qx.ui.toolbar.Button",{extend:qx.ui.form.Button,construct:function(a,b,c){qx.ui.form.Button.call(this,a,b,c);this.removeListener("keydown",this._onKeyDown);this.removeListener("keyup",this._onKeyUp)},properties:{appearance:{refine:true,init:"toolbar-button"},show:{refine:true,init:"inherit"},focusable:{refine:true,init:false}}})})();
(function(){qx.Mixin.define("arskom.MWindowedScreen",{properties:{_window_width:{check:"Integer",init:700},_window_height:{check:"Integer",init:500}},members:{__cy:null,get_window:function(a,b,c){arskom.misc.is_na(b)&&(b=this.get_window_width());arskom.misc.is_na(c)&&(c=this.get_window_height());var d;this.__cy==null?(d=new qx.ui.window.Window(a,""),d.set({modal:true,width:b,height:c,layout:new qx.ui.layout.VBox(1),showMaximize:true,useMoveFrame:true,useResizeFrame:true}),d.add(this.getWidget(),{flex:1}),
d.setResizable(true,true,true,true),d.addListener("appear",function(){d.center()},this),this.__cy=d):d=this.__cy;return d},close_window:function(){this.__cy.close()},show:function(a,b,c){this.get_window(a,b,c).open()},show_window:function(a,b,c){this.get_window(a,b,c).open()}}})})();
(function(){qx.Class.define("arskom.ui.impl.DataDisplay",{extend:arskom.ui.draw.DataDisplay,include:[arskom.MWindowedScreen],properties:{_pk_column_name:{check:"String",init:"id"},_allow_add:{check:"Boolean",init:true,apply:"__Aw"},_allow_edit:{check:"Boolean",init:true,apply:"__Ax"},_allow_close:{check:"Boolean",init:true,apply:"__AA"},_allow_delete:{check:"Boolean",init:true,apply:"__Ay"},_allow_detail:{check:"Boolean",init:true,apply:"__Az"},_method_add:{check:"soap.Method"},_method_edt:{check:"soap.Method"},
_method_del:{check:"soap.Method"},_method_get:{check:"soap.Method"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_client_address:{check:"String",apply:"apply_client_address"},_search:{check:"arskom.ui.impl.Search"},_code:{check:"String"},_desc:{check:"String"},_show_filters:{check:"Boolean",apply:"apply_show_filters"},_allow_select_bar:{check:"Boolean",apply:"apply_allow_select_bar"},_mini:{check:"Boolean",init:false,apply:"apply_mini"}},events:{select_row:"qx.event.type.Data",select_single_row:"qx.event.type.Data"},
construct:function(a){arskom.ui.draw.DataDisplay.call(this);a||(a=false);this.set_mini(a);this.set_allow_select_bar(false);this.set_show_filters(false)},members:{apply_allow_select_bar:function(a){a==true?this.wgt_select_bar_implicit_container.setVisibility("visible"):this.wgt_select_bar_implicit_container.setVisibility("excluded")},apply_wsc:function(a){this.table.set_wsc(a)},apply_client_address:function(a){this.table.set_client_address(a)},apply_mini:function(a){a==true?(this.btn_close_toolbar.setVisibility("excluded"),
this.btn_add_toolbar.resetLabel(),this.btn_close_toolbar.resetLabel(),this.btn_del_toolbar.resetLabel(),this.btn_details_toolbar.resetLabel(),this.btn_edt_toolbar.resetLabel(),this.btn_export_toolbar.resetLabel(),this.btn_refresh_toolbar.resetLabel()):(this.btn_close_toolbar.setVisibility("visible"),this.btn_add_toolbar.setLabel(this.tr("Add")),this.btn_close_toolbar.setLabel(this.tr("Close")),this.btn_del_toolbar.setLabel(this.tr("Remove")),this.btn_details_toolbar.setLabel(this.tr("Details")),this.btn_edt_toolbar.setLabel(this.tr("Edit")),
this.btn_export_toolbar.setLabel(this.tr("Export")),this.btn_refresh_toolbar.setLabel(this.tr("Refresh")))},apply_show_filters:function(a){a==true?this.wgt_search.setVisibility("visible"):this.wgt_search.setVisibility("excluded")},get_filter_results:function(){this.table.refresh()},__Aw:function(a){a==true?this.btn_add_toolbar.setVisibility("visible"):this.btn_add_toolbar.setVisibility("excluded")},__Ax:function(a){a==true?this.btn_edt_toolbar.setVisibility("visible"):this.btn_edt_toolbar.setVisibility("excluded")},
__Ay:function(a){a==true?this.btn_del_toolbar.setVisibility("visible"):this.btn_del_toolbar.setVisibility("excluded")},__Az:function(a){a==true?this.btn_details_toolbar.setVisibility("visible"):this.btn_details_toolbar.setVisibility("excluded")},__AA:function(a){a==true?this.btn_close_toolbar.setVisibility("visible"):this.btn_close_toolbar.setVisibility("excluded")},pop_add_dialog:function(){},pop_edt_dialog:function(){},pop_details_dialog:function(){},pop_del_dialog:function(){},get_pk_values:function(){return arskom.misc.selected_table_cells(this.table,
this.get_pk_column_name())},refresh:function(){this.table.set_search_qos(null);this.table.refresh();var a=this.table.get_filter_columns();this.get_show_filters()&&!arskom.misc.is_na(a)&&(this.get_search().reset(),this.get_search().set_filter_columns(a))},__sS:function(){this.refresh()},__sT:function(){this.close_window()},__sU:function(){this.pop_add_dialog()},__sV:function(){var a=this.get_pk_values();a.length==0?alert(this.tr("Please select an entry")):!arskom.misc.is_na(a)&&confirm(this.tr("Are you sure that you want to delete selected record?"))&&
this.pop_del_dialog(a)},__sW:function(){var a=this.get_pk_values();a.length==0?alert(this.tr("Please select an entry")):this.pop_edt_dialog(a)},__sX:function(){var a=this.get_pk_values();a.length==0?alert(this.tr("Please select an entry")):this.pop_details_dialog(a)},create_btn_add_toolbar:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_add_toolbar.call(this);a.setIcon("arskom/icons/22x22/add.png");a.addListener("execute",this.__sU,this);return a},create_btn_close_toolbar:function(){var a=
arskom.ui.draw.DataDisplay.prototype.create_btn_close_toolbar.call(this);a.setIcon("arskom/icons/22x22/exit.png");a.addListener("execute",this.__sT,this);return a},create_btn_details_toolbar:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_details_toolbar.call(this);a.setIcon("arskom/icons/22x22/dictionary.png");a.addListener("execute",this.__sX,this);return a},create_btn_edt_toolbar:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_edt_toolbar.call(this);a.setIcon("arskom/icons/22x22/edit_pen.png");
a.addListener("execute",this.__sW,this);return a},create_btn_export_toolbar:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_export_toolbar.call(this);a.setIcon("arskom/icons/22x22/excel.png");a.setVisibility("excluded");return a},create_btn_del_toolbar:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_del_toolbar.call(this);a.setIcon("arskom/icons/22x22/delete2.png");a.addListener("execute",this.__sV,this);return a},create_btn_search:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_search.call(this);
a.setIcon("arskom/icons/16x16/search-database-icon.png");return a},create_btn_detail_search:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_detail_search.call(this);a.setIcon("arskom/icons/34x34/search-database-icon.png");return a},create_btn_refresh_toolbar:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_refresh_toolbar.call(this);a.setIcon("arskom/icons/22x22/view-refresh.png");a.addListener("execute",this.__sS,this);return a},create_wgt_page_control:function(){var a=
arskom.ui.draw.DataDisplay.prototype.create_wgt_page_control.call(this);a.setVisibility("excluded");return a},create_btn_select:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_btn_select.call(this);a.addListener("execute",this._on_btn_select_execute,this);return a},create_wgt_search:function(){var a=arskom.ui.draw.DataDisplay.prototype.create_wgt_search.call(this);a.add(this.create_search().getWidget(),{edge:0});a.setBackgroundColor("#00ff00");return a},create_search:function(){this.set_search(new arskom.ui.impl.Search);
this.get_search().addListener("search",this._on_search_qo_execute,this);return this.get_search()},_on_search_qo_execute:function(a){this.table.set_search_qos(a.getData());this.table.refresh()},_on_btn_select_execute:function(){var a=[],b=arskom.misc.selected_table_cells(this.table,this.get_code()),c=arskom.misc.selected_table_cells(this.table,this.get_desc());b.length==0||c.length==0?alert(this.tr("Please select an entry")):(a[0]=b,a[1]=c,this.get_allow_select_bar(false),this.__sT(),this.fireDataEvent("select_row",
a))},get_row_count:function(){var a=this.table.getTableModel(),b=0;arskom.misc.is_na(a)||(b=a.getRowCount());return b},clear_table:function(){return this.table.clear()},add_parameter:function(a,b){this.table.add_parameter(a,b)},set_parameter:function(a,b){this.table.set_parameter(a,b)},set_filters:function(a){this.table.set_search_qos(a)}}})})();
(function(){qx.Class.define("arskom.ui.draw.Search",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_search:null,centralwidget:null,cmb_fields:null,cmb_operation:null,cmb_operator:null,cmb_value:null,cmb_value_2:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(66);a.setWidth(623);
a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_search:function(){var a=this.btn_search=new qx.ui.form.Button;a.setLabel(this.tr("Search"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_horizontalLayout_5());a.setMargin(1);a.add(this.create_grb_field(),{flex:1});a.add(this.create_cmb_operation(),{flex:1});a.add(this.create_cmb_value(),
{flex:1});a.add(this.create_cmb_value_2(),{flex:1});return a},create_cmb_fields:function(){var a=this.cmb_fields=new qx.ui.form.SelectBox;a.setHeight(20);a.setMargin(1);a.setMinHeight(20);a.setAllowGrowY(false);return a},create_cmb_operation:function(){var a=this.cmb_operation=new qx.ui.groupbox.GroupBox;a.setMaxHeight(70);a.setLegend(this.tr(""));a.setMargin(1);a.setLayout(this.create_horizontalLayout_2());a.add(this.create_label_8(),{flex:1});a.add(this.create_cmb_operator(),{flex:1});return a},
create_cmb_operator:function(){var a=this.cmb_operator=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);return a},create_cmb_value:function(){var a=this.cmb_value=new qx.ui.groupbox.GroupBox;a.setMaxHeight(70);a.setLegend(this.tr(""));a.setMargin(1);a.setLayout(this.create_horizontalLayout_3());a.add(this.create_label_12(),{flex:1});a.add(this.create_edt_value(),{flex:1});return a},create_cmb_value_2:function(){var a=this.cmb_value_2=new qx.ui.groupbox.GroupBox;a.setMaxHeight(70);a.setLegend(this.tr(""));
a.setMargin(1);a.setLayout(this.create_horizontalLayout_4());a.add(this.create_btn_search(),{flex:1});return a},create_edt_value:function(){var a=this.edt_value=new qx.ui.form.TextField;a.setHeight(20);a.setMargin(1);a.setMinHeight(20);return a},create_grb_field:function(){var a=this.grb_field=new qx.ui.groupbox.GroupBox;a.setMaxHeight(70);a.setLegend(this.tr(""));a.setMargin(1);a.setLayout(this.create_horizontalLayout());a.add(this.create_label_4(),{flex:1});a.add(this.create_cmb_fields(),{flex:1});
return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_horizontalLayout_4:function(){return this.horizontalLayout_4=new qx.ui.layout.HBox},create_horizontalLayout_5:function(){return this.horizontalLayout_5=new qx.ui.layout.HBox},create_label_12:function(){var a=this.label_12=
new qx.ui.basic.Label;a.setValue(this.tr("Value"));a.setMargin(1);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;a.setValue(this.tr("Field: "));a.setMargin(1);return a},create_label_8:function(){var a=this.label_8=new qx.ui.basic.Label;a.setValue(this.tr("Operator: "));a.setMargin(1);return a},edt_value:null,grb_field:null,horizontalLayout:null,horizontalLayout_2:null,horizontalLayout_3:null,horizontalLayout_4:null,horizontalLayout_5:null,label_12:null,label_4:null,label_8:null},
properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.Search",{extend:arskom.ui.draw.Search,properties:{_filter_columns:{check:"Array",init:null,nullable:true,apply:"__AB"},_operator_type:{check:"String",init:null,nullable:true,apply:"__AC"},_qos:{check:"Array",init:null,nullable:true}},events:{select_row:"qx.event.type.Data",search:"qx.event.type.Data"},members:{refresh:function(){},reset:function(){this.edt_value.resetValue();this.set_qos(null)},__AB:function(a){for(var b in a)this.cmb_fields.add(new qx.ui.form.ListItem(a[b][0],
null,a[b][1]))},__AC:function(a){var b=null;switch(a){case "string":b=[["Starts with","isw"],["Ends with","iew"],["Contains","icw"],["Starts with (case sensitive)","sw"],["Ends with (case sensitive)","ew"],["Contains (case sensitive)","cw"],["=","eq"],["!=","ne"],["<","lt"],["<=","le"],[">","gt"],[">=","ge"]];this.set_operators_to_cmb(b);break;case "integer":case "dateTime":case "date":case "time":b=[["=","eq"],["!=","ne"],["<","lt"],["<=","le"],[">","gt"],[">=","ge"]],this.set_operators_to_cmb(b)}},
set_operators_to_cmb:function(a){this.cmb_operator.removeAll();for(var b in a)this.cmb_operator.add(new qx.ui.form.ListItem(a[b][0],null,a[b][1]))},create_cmb_fields:function(){var a=arskom.ui.draw.Search.prototype.create_cmb_fields.call(this);a.addListener("changeSelection",this.__ta,this);return a},create_btn_search:function(){var a=arskom.ui.draw.Search.prototype.create_btn_search.call(this);a.addListener("execute",this.__sY,this);return a},get_value:function(){return this.edt_value.getValue()},
__sY:function(){var a=this.cmb_fields.getSelection()[0].getModel(),b=this.cmb_operator.getSelection()[0].getModel(),c=[],c=this.get_value().split(","),d=[];d.push([a,b,c]);this.set_qos(d);this.fireDataEvent("search",this.get_qos())},__ta:function(){var a=this.cmb_fields.getSelection()[0].getModel(),b=null,c=this.get_filter_columns(),d;for(d in c)if(a==c[d][1]){b=c[d][2];break}b&&this.set_operator_type(b)},__tb:function(){this.edt_value.getValue();var a=this.cmb_fields.getSelection()[0].getModel(),
b=this.cmb_options.getSelection()[0].getModel(),c=this.edt_value.getValue();this.table.set_filter_ops(a,b,c)}}})})();
(function(){qx.Class.define("atr.impl.rule.List",{extend:arskom.ui.impl.DataDisplay,construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id");this.set_allow_edit(false);this.set_allow_detail(false)},properties:{_allow_private_components:{check:"Boolean",apply:"apply_allow_private_components"},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,nullable:true,apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",
init:null,nullable:true,apply:"apply_vehicle_id"},_allow_change_rule:{check:"Boolean",init:true,apply:"apply_allow_change_rule"}},members:{apply_wsc:function(a){this.table.set_wsc(a)},apply_allow_change_rule:function(a){this.set_allow_add(a);this.set_allow_delete(a)},apply_domain_name:function(a){this.table.set_domain_name(a)},apply_fleet_id:function(a){this.table.set_fleet_id(a)},apply_vehicle_id:function(a){this.table.set_vehicle_id(a)},create_table:function(){var a=this.table=new atr.comp.RuleTable;
a.setMargin(1);return a},apply_allow_private_components:function(a){this.set_allow_add(a);this.set_allow_delete(a)},__tc:function(){var a=this;return a.get_factory().get_instance(atr.impl.rule.Detail,function(b){b.addListener("successful_save",a.__td,a)})},__td:function(){this.refresh()},pop_add_dialog:function(){var a=this.__tc();a.set_wsc(this.get_wsc());a.set_domain_name(this.get_domain_name());a.set_fleet_id(this.get_fleet_id());a.set_vehicle_id(this.get_vehicle_id());a.set_rule_id(null);a.reset();
a.show()},pop_del_dialog:function(a){var b=this;b.get_wsc().c.cvs.easy(atr.proc.Rule.DEL,b.get_domain_name(),b.get_fleet_id(),b.get_vehicle_id(),arskom.misc.selected_table_cells(this.table,"comm_terminal_id")[0],a[0],function(){b.__td()})},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Rule"),"","").open()},refresh:function(){this.table.refresh()}}})})();
(function(){qx.Class.define("atr.comp.RuleTable",{extend:arskom.ui.Table,construct:function(a,b){arskom.ui.Table.call(this,a,b);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);this.set_titles([this.tr("Id"),this.tr("Last Update"),this.tr("Rule"),this.tr("Message"),this.tr("Status"),this.tr("Comm. Terminal ID")]);this.set_fields("id,ptime,rule,msg_def,status,comm_terminal_id".split(","))},properties:{refresh_tbl_activity:{check:"Boolean",init:false},_domain_name:{check:"String",
init:null,nullable:true},_fleet_id:{check:"Integer",init:null,nullable:true},_vehicle_id:{check:"Integer",init:null,nullable:true},_rule_id:{check:"Integer",init:null,nullable:true},_commterminal_id:{check:"Integer",init:null,nullable:true}},members:{rule_object:null,map:null,refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this,b=this.get_wsc().c.cvs,c=new soap.Parameters;c.add("domain_name",a.get_domain_name());c.add("fleet_id",a.get_fleet_id());c.add("commterminal_id",a.get_commterminal_id());
c.add("vehicle_id",a.get_vehicle_id());c.add("time_zone",arskom.ui.impl.Login.s_user_prefs.get_time_zone());b=new soap.RemoteImpl(b,atr.proc.Rule.GET_ALL_RULE_COUNT,atr.proc.Rule.GET_ALL_RULE,c,function(b){for(var c=0;c<b.length;c++)b[c].msg_def=a.__te(b[c].msg_def),b[c].rule=a.__te(b[c].rule)});b.setColumns(this.get_titles(),this.get_fields());this.setTableModel(b)},__te:function(a){if(!a)return"";var b,c,d;c=a;d=this.tr("On entry to geofence id")+": ";var e=this.tr("On exit from geofence id")+": ";
b=this.tr("Position loss time")+": ";var f=" "+this.tr("or")+" ",g=this.tr("No Device Communications"),h=this.tr("Tag the event");if(a.childNodes[0].childNodes.length>0)switch(a=a.childNodes[0].childNodes[0],a.nodeName){case "soft":c=g;break;case "tag":c=h;break;case "or":b=a.childNodes[0].textContent;c=a.childNodes[1].textContent;c=d+b+f+e+c;break;case "sgen":b=a.textContent;c=d+b;break;case "sgex":c=a.textContent;c=e+c;break;case "pst":d=a.textContent,c=b+d}return c},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);
this.getTableColumnModel().setDataCellRenderer(1,arskom.misc.get_date_cellrenderer())},get_default_view:function(){arskom.ui.Table.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnVisible(0,false);a.setColumnWidth(1,60);a.setColumnWidth(2,150)}}})})();
(function(){qx.Class.define("atr.proc.Rule",{extend:qx.core.Object,statics:{Interval:[["Minite : 15",15],["Minite : 30",30],["Minite : 60 ",60],["Minite : 120",120],["Minite : 240",240],["Minite : 360",360]],OceanRegion:[["IOR",1],["AORW",2],["AORE",3],["POR",4]],ADD:"add_rule",GET:"get_rule",DEL:"del_rule",GET_ALL_RULE:"get_all_rule",GET_ALL_RULE_COUNT:"get_all_rule_count",EDT:"edt_rule"}})})();
(function(){qx.Class.define("atr.draw.rule.Detail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_Form())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{Form:null,__ow:null,btn_rule_type:null,create_Form:function(){var a=this.Form=new qx.ui.container.Composite(this.create___lv());a.setHeight(452);a.setWidth(372);a.setMargin(1);a.add(this.create_widget(),{flex:1});a.add(this.create_tbv_backend(),{flex:1});return a},create___lv:function(){return this.__ow=
new qx.ui.layout.VBox},create_btn_rule_type:function(){var a=this.btn_rule_type=new qx.ui.form.Button;a.setMaxHeight(45);a.setMaxWidth(45);a.setMargin(1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_label_5:function(){var a=this.label_5=new qx.ui.basic.Label;a.setValue(this.tr("Rule Type"));a.setMargin(1);
return a},create_tab_periodic:function(){var a=this.tab_periodic=new qx.ui.tabview.Page;a.setLabel(this.tr("Periodic"));a.setMargin(1);a.setLayout(this.create_tab_periodic_il());return a},create_tab_periodic_il:function(){return this.tab_periodic_il=new qx.ui.layout.Canvas},create_tab_pos_loss_time:function(){var a=this.tab_pos_loss_time=new qx.ui.tabview.Page;a.setLabel(this.tr("Position Loss Time"));a.setMargin(1);a.setLayout(this.create_tab_pos_loss_time_il());return a},create_tab_pos_loss_time_il:function(){return this.tab_pos_loss_time_il=
new qx.ui.layout.Canvas},create_tab_soft_geofence:function(){var a=this.tab_soft_geofence=new qx.ui.tabview.Page;a.setLabel(this.tr("Soft Geofences"));a.setMargin(1);a.setLayout(this.create_tab_soft_geofence_il());return a},create_tab_soft_geofence_il:function(){return this.tab_soft_geofence_il=new qx.ui.layout.Canvas},create_tbv_backend:function(){var a=this.tbv_backend=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab_periodic());a.add(this.create_tab_soft_geofence());a.add(this.create_tab_pos_loss_time());
return a},create_widget:function(){var a=this.widget=new qx.ui.container.Composite(this.create_horizontalLayout());a.setHeight(44);a.setMaxHeight(44);a.setMargin(1);a.setMinHeight(44);a.add(this.create_label_5(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});a.add(this.create_btn_rule_type(),{flex:1});return a},horizontalLayout:null,horizontalSpacer:null,label_5:null,tab_periodic:null,tab_periodic_il:null,tab_pos_loss_time:null,tab_pos_loss_time_il:null,tab_soft_geofence:null,tab_soft_geofence_il:null,
tbv_backend:null,widget:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("qx.ui.tabview.Page",{extend:qx.ui.container.Composite,construct:function(a,b){qx.ui.container.Composite.call(this);this._createChildControl("button");a!=null&&this.setLabel(a);b!=null&&this.setIcon(b)},events:{close:"qx.event.type.Event"},properties:{appearance:{refine:true,init:"tabview-page"},label:{check:"String",init:"",apply:"_applyLabel"},icon:{check:"String",init:"",apply:"_applyIcon"},showCloseButton:{check:"Boolean",init:false,apply:"_applyShowCloseButton"}},
members:{_forwardStates:{barTop:1,barRight:1,barBottom:1,barLeft:1,firstTab:1,lastTab:1},_applyIcon:function(a){this.getChildControl("button").setIcon(a)},_applyLabel:function(a){this.getChildControl("button").setLabel(a)},_applyEnabled:function(a,b){qx.ui.container.Composite.prototype._applyEnabled.call(this,a,b);var c=this.getChildControl("button");a==null?c.resetEnabled():c.setEnabled(a)},_createChildControlImpl:function(a){var b;switch(a){case "button":b=new qx.ui.tabview.TabButton,b.setAllowGrowX(true),
b.setAllowGrowY(true),b.setUserData("page",this),b.addListener("close",this._onButtonClose,this)}return b||qx.ui.container.Composite.prototype._createChildControlImpl.call(this,a)},_applyShowCloseButton:function(a){this.getChildControl("button").setShowCloseButton(a)},_onButtonClose:function(){this.fireEvent("close")},getButton:function(){return this.getChildControl("button")}}})})();
(function(){qx.Class.define("qx.ui.form.RadioButton",{extend:qx.ui.form.Button,include:[qx.ui.form.MForm,qx.ui.form.MModelProperty],implement:[qx.ui.form.IRadioItem,qx.ui.form.IForm,qx.ui.form.IBooleanForm,qx.ui.form.IModel],construct:function(a){qx.core.Environment.get("qx.debug")&&this.assertArgumentsCount(arguments,0,1);qx.ui.form.Button.call(this,a);this.addListener("execute",this._onExecute);this.addListener("keypress",this._onKeyPress)},properties:{group:{check:"qx.ui.form.RadioGroup",nullable:true,
apply:"_applyGroup"},value:{check:"Boolean",nullable:true,event:"changeValue",apply:"_applyValue",init:false},appearance:{refine:true,init:"radiobutton"},allowGrowX:{refine:true,init:false}},members:{_forwardStates:{checked:true,focused:true,invalid:true,hovered:true},_bindableProperties:["enabled","label","toolTipText","value","menu"],_applyValue:function(a){a?this.addState("checked"):this.removeState("checked")},_applyGroup:function(a,b){b&&b.remove(this);a&&a.add(this)},_onExecute:function(){var a=
this.getGroup();a&&a.getAllowEmptySelection()?this.toggleValue():this.setValue(true)},_onKeyPress:function(a){var b=this.getGroup();if(b)switch(a.getKeyIdentifier()){case "Left":case "Up":b.selectPrevious();break;case "Right":case "Down":b.selectNext()}}}})})();
(function(){qx.Class.define("qx.ui.tabview.TabButton",{extend:qx.ui.form.RadioButton,implement:qx.ui.form.IRadioItem,construct:function(){qx.ui.form.RadioButton.call(this);var a=new qx.ui.layout.Grid(2,0);a.setRowAlign(0,"left","middle");a.setColumnAlign(0,"right","middle");this._getLayout().dispose();this._setLayout(a);this.initShowCloseButton()},events:{close:"qx.event.type.Data"},properties:{showCloseButton:{check:"Boolean",init:false,apply:"_applyShowCloseButton"}},members:{_forwardStates:{focused:true,
checked:true},_applyIconPosition:function(a){var b={icon:this.getChildControl("icon"),label:this.getChildControl("label"),closeButton:this.getShowCloseButton()?this.getChildControl("close-button"):null},c;for(c in b)b[c]&&this._remove(b[c]);switch(a){case "top":this._add(b.label,{row:3,column:2});this._add(b.icon,{row:1,column:2});b.closeButton&&this._add(b.closeButton,{row:0,column:4});break;case "bottom":this._add(b.label,{row:1,column:2});this._add(b.icon,{row:3,column:2});b.closeButton&&this._add(b.closeButton,
{row:0,column:4});break;case "left":this._add(b.label,{row:0,column:2});this._add(b.icon,{row:0,column:0});b.closeButton&&this._add(b.closeButton,{row:0,column:4});break;case "right":this._add(b.label,{row:0,column:0}),this._add(b.icon,{row:0,column:2}),b.closeButton&&this._add(b.closeButton,{row:0,column:4})}},_createChildControlImpl:function(a){var b;switch(a){case "label":b=new qx.ui.basic.Label(this.getLabel());b.setAnonymous(true);this._add(b,{row:0,column:2});this._getLayout().setColumnFlex(2,
1);break;case "icon":b=new qx.ui.basic.Image(this.getIcon());b.setAnonymous(true);this._add(b,{row:0,column:0});break;case "close-button":b=new qx.ui.form.Button,b.setFocusable(false),b.setKeepActive(true),b.addListener("click",this._onCloseButtonClick,this),this._add(b,{row:0,column:4}),this.getShowCloseButton()||b.exclude()}return b||qx.ui.form.RadioButton.prototype._createChildControlImpl.call(this,a)},_onCloseButtonClick:function(){this.fireDataEvent("close",this)},_applyShowCloseButton:function(a){a?
this._showChildControl("close-button"):this._excludeChildControl("close-button")},_applyCenter:function(a){var b=this._getLayout();a?b.setColumnAlign(2,"center","middle"):b.setColumnAlign(2,"left","middle")}}})})();
(function(){qx.Class.define("qx.ui.tabview.TabView",{extend:qx.ui.core.Widget,implement:qx.ui.core.ISingleSelection,include:[qx.ui.core.MContentPadding],construct:function(a){qx.ui.core.Widget.call(this);this.__tf={top:"barTop",right:"barRight",bottom:"barBottom",left:"barLeft"};this._createChildControl("bar");this._createChildControl("pane");var b=this.__tg=new qx.ui.form.RadioGroup;b.setWrap(false);b.addListener("changeSelection",this._onChangeSelection,this);a!=null?this.setBarPosition(a):this.initBarPosition()},
events:{changeSelection:"qx.event.type.Data"},properties:{appearance:{refine:true,init:"tabview"},barPosition:{check:["left","right","top","bottom"],init:"top",apply:"_applyBarPosition"}},members:{__tg:null,_createChildControlImpl:function(a){var b;switch(a){case "bar":b=new qx.ui.container.SlideBar;b.setZIndex(10);this._add(b);break;case "pane":b=new qx.ui.container.Stack,b.setZIndex(5),this._add(b,{flex:1})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_getContentPaddingTarget:function(){return this.getChildControl("pane")},
add:function(a){if(qx.core.Environment.get("qx.debug")&&!(a instanceof qx.ui.tabview.Page))throw Error("Incompatible child for TabView: "+a);var b=a.getButton(),c=this.getChildControl("bar"),d=this.getChildControl("pane");a.exclude();c.add(b);d.add(a);this.__tg.add(b);a.addState(this.__tf[this.getBarPosition()]);a.addState("lastTab");b=this.getChildren();b[0]==a?a.addState("firstTab"):b[b.length-2].removeState("lastTab");a.addListener("close",this._onPageClose,this)},addAt:function(a,b){if(qx.core.Environment.get("qx.debug")&&
!(a instanceof qx.ui.tabview.Page))throw Error("Incompatible child for TabView: "+a);var c=this.getChildren();if(b!=null&&b>c.length)throw Error("Index should be less than : "+c.length);if(b==null)b=c.length;var c=a.getButton(),d=this.getChildControl("bar"),e=this.getChildControl("pane");a.exclude();d.addAt(c,b);e.addAt(a,b);this.__tg.add(c);a.addState(this.__tf[this.getBarPosition()]);c=this.getChildren();b==c.length-1&&a.addState("lastTab");c[0]==a?a.addState("firstTab"):c[c.length-2].removeState("lastTab");
a.addListener("close",this._onPageClose,this)},remove:function(a){var b=this.getChildControl("pane"),c=this.getChildControl("bar"),d=a.getButton(),e=b.getChildren();if(this.getSelection()[0]==a){var f=e.indexOf(a);f==0?e[1]?this.setSelection([e[1]]):this.resetSelection():this.setSelection([e[f-1]])}c.remove(d);b.remove(a);this.__tg.remove(d);a.removeState(this.__tf[this.getBarPosition()]);a.hasState("firstTab")&&(a.removeState("firstTab"),e[0]&&e[0].addState("firstTab"));a.hasState("lastTab")&&(a.removeState("lastTab"),
e.length>0&&e[e.length-1].addState("lastTab"));a.removeListener("close",this._onPageClose,this)},getChildren:function(){return this.getChildControl("pane").getChildren()},indexOf:function(a){return this.getChildControl("pane").indexOf(a)},__tf:null,_applyBarPosition:function(a,b){var c=this.getChildControl("bar"),d=a=="left"||a=="right",e=a=="right"||a=="bottom",f=d?qx.ui.layout.HBox:qx.ui.layout.VBox,g=this._getLayout();g&&g instanceof f||this._setLayout(g=new f);g.setReversed(e);c.setOrientation(d?
"vertical":"horizontal");d=this.getChildren();if(b){g=this.__tf[b];c.removeState(g);e=0;for(f=d.length;e<f;e++)d[e].removeState(g)}if(a){g=this.__tf[a];c.addState(g);e=0;for(f=d.length;e<f;e++)d[e].addState(g)}},getSelection:function(){for(var a=this.__tg.getSelection(),b=[],c=0;c<a.length;c++)b.push(a[c].getUserData("page"));return b},setSelection:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c].getChildControl("button"));this.__tg.setSelection(b)},resetSelection:function(){this.__tg.resetSelection()},
isSelected:function(a){return this.__tg.isSelected(a.getChildControl("button"))},isSelectionEmpty:function(){return this.__tg.isSelectionEmpty()},getSelectables:function(a){for(var a=this.__tg.getSelectables(a),b=[],c=0;c<a.length;c++)b.push(a[c].getUserData("page"));return b},_onChangeSelection:function(a){var b=this.getChildControl("pane"),c=a.getData()[0],a=a.getOldData()[0],d=[],e=[];c?(d=[c.getUserData("page")],b.setSelection(d),c.focus(),this.scrollChildIntoView(c,null,null,false)):b.resetSelection();
a&&(e=[a.getUserData("page")]);this.fireDataEvent("changeSelection",d,e)},_onBeforeChangeSelection:function(a){this.fireNonBubblingEvent("beforeChangeSelection",qx.event.type.Event,[false,true])||a.preventDefault()},_onRadioChangeSelection:function(a){(a=a.getData()[0])?this.setSelection([a.getUserData("page")]):this.resetSelection()},_onPageClose:function(a){a=a.getTarget();a.getButton().getChildControl("close-button").reset();this.remove(a)}},destruct:function(){this._disposeObjects("__tg");this.__tf=
null}})})();
(function(){qx.Class.define("qx.ui.container.Stack",{extend:qx.ui.core.Widget,implement:qx.ui.core.ISingleSelection,include:[qx.ui.core.MSingleSelectionHandling,qx.ui.core.MChildrenHandling],construct:function(){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.Grow);this.addListener("changeSelection",this.__nT,this)},properties:{dynamic:{check:"Boolean",init:false,apply:"_applyDynamic"}},members:{_applyDynamic:function(a){for(var b=this._getChildren(),c=this.getSelection()[0],d,e=0,f=
b.length;e<f;e++)d=b[e],d!=c&&(a?b[e].exclude():b[e].hide())},_getItems:function(){return this.getChildren()},_isAllowEmptySelection:function(){return true},_isItemSelectable:function(){return true},__nT:function(a){var b=a.getOldData()[0],a=a.getData()[0];b&&(this.isDynamic()?b.exclude():b.hide());a&&a.show()},_afterAddChild:function(a){var b=this.getSelection()[0];b?b!==a&&(this.isDynamic()?a.exclude():a.hide()):this.setSelection([a])},_afterRemoveChild:function(a){this.getSelection()[0]===a&&((a=
this._getChildren()[0])?this.setSelection([a]):this.resetSelection())},previous:function(){var a=this._indexOf(this.getSelection()[0])-1,b=this._getChildren();a<0&&(a=b.length-1);this.setSelection([b[a]])},next:function(){var a=this._indexOf(this.getSelection()[0])+1,b=this._getChildren();this.setSelection([b[a]||b[0]])}}})})();
(function(){qx.Class.define("atr.impl.rule.Detail",{extend:atr.draw.rule.Detail,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,nullable:true,apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",init:null,nullable:true,apply:"apply_vehicle_id"},_commterminal:{check:"Object",init:null,nullable:true},_rule_id:{check:"Integer",init:null,
nullable:true,apply:"apply_rule_id"}},construct:function(){atr.draw.rule.Detail.call(this);var a=new qx.ui.window.Window("Detail","");a.set({modal:true,width:650,height:455,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},events:{successful_save:"qx.event.type.Data"},members:{add_menu:null,periodic_detail:null,soft_geofence_detail:null,pos_loss_time_detail:null,
apply_wsc:function(a){this.add_menu.set_wsc(a)},apply_domain_name:function(a){this.add_menu.set_domain_name(a)},apply_fleet_id:function(a){this.add_menu.set_fleet_id(a)},apply_vehicle_id:function(a){this.add_menu.set_vehicle_id(a)},apply_rule_id:function(){},create_tab_periodic:function(){var a=atr.draw.rule.Detail.prototype.create_tab_periodic.call(this);this.periodic_detail=new atr.impl.rule.Periodic;this.periodic_detail.addListener("successful_save",this.save_close_handler,this);a.add(this.periodic_detail.getWidget(),
{edge:0});return a},create_tab_soft_geofence:function(){var a=atr.draw.rule.Detail.prototype.create_tab_soft_geofence.call(this);this.soft_geofence_detail=new atr.impl.rule.SoftGeofence;this.soft_geofence_detail.addListener("successful_save",this.save_close_handler,this);a.add(this.soft_geofence_detail.getWidget(),{edge:0});return a},create_tab_pos_loss_time:function(){var a=atr.draw.rule.Detail.prototype.create_tab_pos_loss_time.call(this);this.pos_loss_time_detail=new atr.impl.rule.PosLossTime;
this.pos_loss_time_detail.addListener("successful_save",this.save_close_handler,this);a.add(this.pos_loss_time_detail.getWidget(),{edge:0});return a},set_periodic_detail:function(){this.periodic_detail.set_wsc(this.get_wsc());this.periodic_detail.set_domain_name(this.get_domain_name());this.periodic_detail.set_fleet_id(this.get_fleet_id());this.periodic_detail.set_vehicle_id(this.get_vehicle_id());this.periodic_detail.set_commterminal(this.get_commterminal());this.periodic_detail.set_rule_id(this.get_rule_id())},
set_soft_geofence_detail:function(){this.soft_geofence_detail.set_wsc(this.get_wsc());this.soft_geofence_detail.set_domain_name(this.get_domain_name());this.soft_geofence_detail.set_fleet_id(this.get_fleet_id());this.soft_geofence_detail.set_vehicle_id(this.get_vehicle_id());this.soft_geofence_detail.set_rule_id(this.get_rule_id())},set_pos_loss_time_detail:function(){this.pos_loss_time_detail.set_wsc(this.get_wsc());this.pos_loss_time_detail.set_domain_name(this.get_domain_name());this.pos_loss_time_detail.set_fleet_id(this.get_fleet_id());
this.pos_loss_time_detail.set_vehicle_id(this.get_vehicle_id());this.pos_loss_time_detail.set_rule_id(this.get_rule_id())},create_btn_rule_type:function(){this.add_menu=new atr.comp.CommTerminalMenu;this.add_menu.addListener("select_comm_terminal",this.__th,this);var a=this.btn_rule_type=new qx.ui.form.MenuButton;a.set({menu:this.add_menu,maxHeight:26,maxWidth:250,margin:1});a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_RULE_ADD));a.setLabel(this.tr("Select Rule Type"));return a},__th:function(a){a=
a.getData();a[0]=="soft_geofence"?(arskom.misc.replace_pages(this.tbv_backend,[this.tab_soft_geofence]),this.set_soft_geofence_detail(),this.soft_geofence_detail.refresh()):a[0]=="pos_loss_time"?(arskom.misc.replace_pages(this.tbv_backend,[this.tab_pos_loss_time]),this.set_pos_loss_time_detail(),this.pos_loss_time_detail.reset(),this.pos_loss_time_detail.refresh()):a[0]=="periodic"&&(this.set_commterminal(a[1]),arskom.misc.replace_pages(this.tbv_backend,[this.tab_periodic]),this.set_periodic_detail(),
this.periodic_detail.refresh())},__ti:function(){var a=this.getWindow();a.open();a.center()},show:function(){arskom.misc.replace_pages(this.tbv_backend,[this.tab_soft_geofence]);this.set_soft_geofence_detail();this.soft_geofence_detail.refresh();this.refresh();var a=this.getWindow();a.open();a.center()},reset:function(){},refresh:function(){this.add_menu.refresh()},save_close_handler:function(){this.getWindow().close();this.fireDataEvent("successful_save",null)}}})})();
(function(){qx.Class.define("atr.draw.rule.Periodic",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_time_period_reset:null,btn_time_period_save:null,centralwidget:null,comboBox:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(274);a.setWidth(350);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_time_period_reset:function(){var a=this.btn_time_period_reset=new qx.ui.form.Button;a.setLabel(this.tr("Reset"));a.setMargin(1);return a},create_btn_time_period_save:function(){var a=this.btn_time_period_save=new qx.ui.form.Button;a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);
a.add(this.create_gridLayout_implicit_container(),{flex:1});return a},create_comboBox:function(){var a=this.comboBox=new qx.ui.form.SelectBox;a.setMaxWidth(120);a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[ Select ]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("AORW"),null,"2"));a.add(new qx.ui.form.ListItem(this.tr("AORE"),null,"1"));a.add(new qx.ui.form.ListItem(this.tr("IOR"),null,"3"));a.add(new qx.ui.form.ListItem(this.tr("POR"),null,"4"));return a},create_gb_specific_inmc:function(){var a=
this.gb_specific_inmc=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Terminal Specific"));a.setMargin(1);a.setLayout(this.create_horizontalLayout_6());a.add(this.create_wgt_inmc(),{flex:1});return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_gridLayout_implicit_container:function(){var a=this.gridLayout_implicit_container=new qx.ui.container.Composite(this.create_gridLayout());a.setMargin(1);a.add(this.create_label(),{column:0,row:0});a.add(this.create_horizontalLayout_3_implicit_container(),
{column:1,row:0});a.add(this.create_label_3(),{column:0,row:1});a.add(this.create_lst_report_elements(),{column:1,row:1});a.add(this.create_horizontalLayout_2_implicit_container(),{colSpan:2,column:0,row:4});a.add(this.create_gb_specific_inmc(),{colSpan:2,column:0,row:2});a.add(this.create_verticalSpacer(),{colSpan:2,column:0,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setRowFlex(4,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_horizontalLayout_2:function(){return this.horizontalLayout_2=
new qx.ui.layout.HBox},create_horizontalLayout_2_implicit_container:function(){var a=this.horizontalLayout_2_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMargin(1);a.add(this.create_btn_time_period_save(),{flex:1});a.add(this.create_btn_time_period_reset(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});return a},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_horizontalLayout_3_implicit_container:function(){var a=
this.horizontalLayout_3_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout_3());a.setMargin(1);a.add(this.create_spn_time_period(),{flex:1});a.add(this.create_label_2(),{flex:1});return a},create_horizontalLayout_5:function(){return this.horizontalLayout_5=new qx.ui.layout.HBox},create_horizontalLayout_6:function(){return this.horizontalLayout_6=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);
a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setMaxWidth(100);a.setValue(this.tr("Period"));a.setMargin(1);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("minute(s)"));a.setMargin(1);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setMaxWidth(100);a.setValue(this.tr("Report Elements"));a.setMargin(1);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;
a.setWidth(150);a.setMaxWidth(150);a.setValue(this.tr("Ocean Region"));a.setMargin(1);a.setMinWidth(150);return a},create_lst_report_elements:function(){var a=this.lst_report_elements=new qx.ui.form.List;a.setSelectionMode("additive");a.setMargin(1);return a},create_spn_time_period:function(){var a=this.spn_time_period=new qx.ui.form.Spinner;a.setMinimum(1);a.setMargin(1);a.setAllowGrowY(false);return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=
this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(40);a.setWidth(20);a.setMargin(1);return a},create_wgt_inmc:function(){var a=this.wgt_inmc=new qx.ui.container.Composite(this.create_horizontalLayout_5());a.setMargin(1);a.add(this.create_label_4(),{flex:1});a.add(this.create_comboBox(),{flex:1});return a},gb_specific_inmc:null,gridLayout:null,gridLayout_implicit_container:null,horizontalLayout_2:null,horizontalLayout_2_implicit_container:null,horizontalLayout_3:null,horizontalLayout_3_implicit_container:null,
horizontalLayout_5:null,horizontalLayout_6:null,horizontalSpacer:null,label:null,label_2:null,label_3:null,label_4:null,lst_report_elements:null,spn_time_period:null,verticalLayout:null,verticalSpacer:null,wgt_inmc:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("qx.ui.form.Spinner",{extend:qx.ui.core.Widget,implement:[qx.ui.form.INumberForm,qx.ui.form.IRange,qx.ui.form.IForm],include:[qx.ui.core.MContentPadding,qx.ui.form.MForm],construct:function(a,b,c){qx.ui.core.Widget.call(this);var d=new qx.ui.layout.Grid;d.setColumnFlex(0,1);d.setRowFlex(0,1);d.setRowFlex(1,1);this._setLayout(d);this.addListener("keydown",this._onKeyDown,this);this.addListener("keyup",this._onKeyUp,this);this.addListener("mousewheel",this._onMouseWheel,
this);qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().addListener("changeLocale",this._onChangeLocale,this);this._createChildControl("textfield");this._createChildControl("upbutton");this._createChildControl("downbutton");a!=null&&this.setMinimum(a);c!=null&&this.setMaximum(c);b!==void 0?this.setValue(b):this.initValue()},properties:{appearance:{refine:true,init:"spinner"},focusable:{refine:true,init:true},singleStep:{check:"Number",init:1},pageStep:{check:"Number",init:10},
minimum:{check:"Number",apply:"_applyMinimum",init:0,event:"changeMinimum"},value:{check:"this._checkValue(value)",nullable:true,apply:"_applyValue",init:0,event:"changeValue"},maximum:{check:"Number",apply:"_applyMaximum",init:100,event:"changeMaximum"},wrap:{check:"Boolean",init:false,apply:"_applyWrap"},editable:{check:"Boolean",init:true,apply:"_applyEditable"},numberFormat:{check:"qx.util.format.NumberFormat",apply:"_applyNumberFormat",nullable:true},allowShrinkY:{refine:true,init:false}},members:{__tj:null,
__tk:false,__tl:false,_createChildControlImpl:function(a){var b;switch(a){case "textfield":b=new qx.ui.form.TextField;b.setFilter(this._getFilterRegExp());b.addState("inner");b.setWidth(40);b.setFocusable(false);b.addListener("changeValue",this._onTextChange,this);this._add(b,{column:0,row:0,rowSpan:2});break;case "upbutton":b=new qx.ui.form.RepeatButton;b.addState("inner");b.setFocusable(false);b.addListener("execute",this._countUp,this);this._add(b,{column:1,row:0});break;case "downbutton":b=new qx.ui.form.RepeatButton,
b.addState("inner"),b.setFocusable(false),b.addListener("execute",this._countDown,this),this._add(b,{column:1,row:1})}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_getFilterRegExp:function(){var a=qx.locale.Number.getDecimalSeparator(qx.locale.Manager.getInstance().getLocale()),b=qx.locale.Number.getGroupSeparator(qx.locale.Manager.getInstance().getLocale()),c="",d="";this.getNumberFormat()!==null&&(c=this.getNumberFormat().getPrefix()||"",d=this.getNumberFormat().getPostfix()||
"");return RegExp("[0-9"+qx.lang.String.escapeRegexpChars(a)+qx.lang.String.escapeRegexpChars(b)+qx.lang.String.escapeRegexpChars(c)+qx.lang.String.escapeRegexpChars(d)+"-]")},_forwardStates:{focused:true,invalid:true},tabFocus:function(){var a=this.getChildControl("textfield");a.getFocusElement().focus();a.selectAllText()},_applyMinimum:function(a){this.getMaximum()<a&&this.setMaximum(a);this.getValue()<a?this.setValue(a):this._updateButtons()},_applyMaximum:function(a){this.getMinimum()>a&&this.setMinimum(a);
this.getValue()>a?this.setValue(a):this._updateButtons()},_applyEnabled:function(a,b){qx.ui.core.Widget.prototype._applyEnabled.call(this,a,b);this._updateButtons()},_checkValue:function(a){return typeof a==="number"&&a>=this.getMinimum()&&a<=this.getMaximum()},_applyValue:function(a){var b=this.getChildControl("textfield");this._updateButtons();this.__tj=a;a!==null?this.getNumberFormat()?b.setValue(this.getNumberFormat().format(a)):b.setValue(a+""):b.setValue("")},_applyEditable:function(a){var b=
this.getChildControl("textfield");b&&b.setReadOnly(!a)},_applyWrap:function(){this._updateButtons()},_applyNumberFormat:function(){this.getChildControl("textfield").setFilter(this._getFilterRegExp());this.getNumberFormat().addListener("changeNumberFormat",this._onChangeNumberFormat,this);this._applyValue(this.__tj,void 0)},_getContentPaddingTarget:function(){return this.getChildControl("textfield")},_updateButtons:function(){var a=this.getChildControl("upbutton"),b=this.getChildControl("downbutton"),
c=this.getValue();this.getEnabled()?this.getWrap()?(a.setEnabled(true),b.setEnabled(true)):(c!==null&&c<this.getMaximum()?a.setEnabled(true):a.setEnabled(false),c!==null&&c>this.getMinimum()?b.setEnabled(true):b.setEnabled(false)):(a.setEnabled(false),b.setEnabled(false))},_onKeyDown:function(a){switch(a.getKeyIdentifier()){case "PageUp":this.__tk=true;case "Up":this.getChildControl("upbutton").press();break;case "PageDown":this.__tl=true;case "Down":this.getChildControl("downbutton").press();break;
default:return}a.stopPropagation();a.preventDefault()},_onKeyUp:function(a){switch(a.getKeyIdentifier()){case "PageUp":this.getChildControl("upbutton").release();this.__tk=false;break;case "Up":this.getChildControl("upbutton").release();break;case "PageDown":this.getChildControl("downbutton").release();this.__tl=false;break;case "Down":this.getChildControl("downbutton").release()}},_onMouseWheel:function(a){var b=a.getWheelDelta("y");b>0?this._countDown():b<0&&this._countUp();a.stop()},_onTextChange:function(){var a=
this.getChildControl("textfield"),b;if(this.getNumberFormat())try{b=this.getNumberFormat().parse(a.getValue())}catch(c){}b===void 0&&(b=parseFloat(a.getValue()));isNaN(b)?this._applyValue(this.__tj,void 0):b>this.getMaximum()?a.setValue(this.getMaximum()+""):b<this.getMinimum()?a.setValue(this.getMinimum()+""):this.setValue(b)},_onChangeLocale:function(){if(this.getNumberFormat()!==null){this.setNumberFormat(this.getNumberFormat());var a=this.getChildControl("textfield");a.setFilter(this._getFilterRegExp());
a.setValue(this.getNumberFormat().format(this.getValue()))}},_onChangeNumberFormat:function(){var a=this.getChildControl("textfield");a.setFilter(this._getFilterRegExp());a.setValue(this.getNumberFormat().format(this.getValue()))},_countUp:function(){var a=this.__tk?this.getValue()+this.getPageStep():this.getValue()+this.getSingleStep();this.getWrap()&&a>this.getMaximum()&&(a=this.getMaximum()-a,a=this.getMinimum()+a);this.gotoValue(a)},_countDown:function(){var a=this.__tl?this.getValue()-this.getPageStep():
this.getValue()-this.getSingleStep();this.getWrap()&&a<this.getMinimum()&&(a=this.getMinimum()+a,a=this.getMaximum()-a);this.gotoValue(a)},gotoValue:function(a){return this.setValue(Math.min(this.getMaximum(),Math.max(this.getMinimum(),a)))}},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().removeListener("changeLocale",this._onChangeLocale,this)}})})();
(function(){qx.Class.define("atr.impl.rule.Periodic",{extend:atr.draw.rule.Periodic,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,nullable:true,apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",init:null,nullable:true,apply:"apply_vehicle_id"},_commterminal:{check:"Object",init:null,nullable:true,apply:"__to"},_rule_id:{check:"Integer",
init:null,nullable:true,apply:"apply_rule_id"}},construct:function(){atr.draw.rule.Periodic.call(this);var a=new qx.ui.window.Window("Periodic","");a.set({modal:true,width:350,height:350,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a);this.__tm={};this.__tm[atr.proc.Consts.DT_GLOBALWAVE]=this.gb_specific_gw;this.__tm[atr.proc.Consts.DT_GSM]=this.gb_specific_gsm;
this.__tm[atr.proc.Consts.DT_INMC]=this.gb_specific_inmc;this.__tm[atr.proc.Consts.DT_DPLUS]=this.gb_specific_dmr;this.__tm[atr.proc.Consts.DT_DPLUS_GSM]=this.gb_specific_slnx;this.__tm[atr.proc.Consts.DT_ISATM2M]=this.gb_specific_dmr;this.__tm[atr.proc.Consts.DT_SATAMATICS]=this.gb_specific_sata},events:{successful_save:"qx.event.type.Data"},members:{__tm:null,__tn:null,apply_wsc:function(){},apply_domain_name:function(){},apply_fleet_id:function(){},apply_vehicle_id:function(){},apply_rule_id:function(){},
__to:function(a){if(a)a=a.get_device(),this.__tn=atr.proc.Consts.DEVICE_TYPES[a],this.__tn=this.__tn.toString();for(var b in this.__tm)this.__tm.hasOwnProperty(b)&&((a=this.__tm[b])&&b==this.__tn?a.setVisibility("visible"):a&&a.setVisibility("excluded"))},create_lst_report_elements:function(){var a=this.lst_report_elements=new qx.ui.form.List;a.setSelectionMode("additive");a.setMargin(1);a.add(new qx.ui.form.ListItem(this.tr("Position"),null,"p2"));a.add(new qx.ui.form.ListItem(this.tr("Altitude"),
null,"p3"));a.add(new qx.ui.form.ListItem(this.tr("Ignition"),null,"ign"));a.add(new qx.ui.form.ListItem(this.tr("Speed"),null,"s"));a.add(new qx.ui.form.ListItem(this.tr("Heading"),null,"h"));a.add(new qx.ui.form.ListItem(this.tr("Odometer"),null,"o"));return a},create_btn_time_period_save:function(){var a=atr.draw.rule.Periodic.prototype.create_btn_time_period_save.call(this);a.addListener("execute",this.__tp,this);return a},__tp:function(){this.get_commterminal();var a=this.spn_time_period.getValue()*
60,b=qx.xml.Document.create(),c=soap.Client.createSubElementNS(b,b,"r","track"),d=soap.Client.createSubElementNS(b,c,"t","track");soap.Client.createSubElementNS(b,d,"i","track").appendChild(b.createTextNode(a));a=this.__tq();this.__tr(c,a)},__tq:function(){for(var a=qx.xml.Document.create(),b=soap.Client.createSubElementNS(a,a,"m","track"),c=this.lst_report_elements.getSelection(),d=0,e=c.length;d<e;++d)soap.Client.createSubElementNS(a,b,c[d].getModel(),"track");return b},__tr:function(a,b){var c=
this,d=this.get_wsc().c.cvs,e=d.get_object("track.core","Rule");e.set_msg_def(b);e.set_rule(a);var f=c.get_rule_id(),f=arskom.misc.is_na(f)?atr.proc.Rule.ADD:atr.proc.Rule.EDT,g=null;c.get_commterminal()&&(g=c.get_commterminal().get_id());d.easy(f,c.get_domain_name(),c.get_fleet_id(),c.get_vehicle_id(),g,e,function(a){c.fireDataEvent("successful_save",a)})},refresh:function(){}}})})();
(function(){qx.Class.define("atr.draw.rule.SoftGeofence",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_soft_geofence_both:null,btn_soft_geofence_on_entry:null,btn_soft_geofence_on_exit:null,btn_wgt:null,centralwidget:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(350);a.setWidth(350);
a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_soft_geofence_both:function(){var a=this.btn_soft_geofence_both=new qx.ui.form.Button;a.setLabel(this.tr("Both"));a.setMargin(1);return a},create_btn_soft_geofence_on_entry:function(){var a=this.btn_soft_geofence_on_entry=new qx.ui.form.Button;a.setLabel(this.tr("On Enter"));a.setMargin(1);return a},create_btn_soft_geofence_on_exit:function(){var a=this.btn_soft_geofence_on_exit=
new qx.ui.form.Button;a.setLabel(this.tr("On Exit"));a.setMargin(1);return a},create_btn_wgt:function(){var a=this.btn_wgt=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMargin(1);a.add(this.create_btn_soft_geofence_on_entry(),{flex:1});a.add(this.create_btn_soft_geofence_on_exit(),{flex:1});a.add(this.create_btn_soft_geofence_both(),{flex:1});return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);
a.add(this.create_lbl_rule(),{flex:1});a.add(this.create_tbl_soft_geofence(),{flex:1});a.add(this.create_btn_wgt(),{flex:1});return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_lbl_rule:function(){var a=this.lbl_rule=new qx.ui.basic.Label;a.setMargin(1);return a},create_tbl_soft_geofence:function(){var a=this.tbl_soft_geofence=new qx.ui.table.Table;a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},
horizontalLayout:null,lbl_rule:null,tbl_soft_geofence:null,verticalLayout:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.rule.SoftGeofence",{extend:atr.draw.rule.SoftGeofence,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,nullable:true,apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",init:null,nullable:true,apply:"apply_vehicle_id"},_commterminal:{check:"Object",init:null,nullable:true},_rule_id:{check:"Integer",
init:null,nullable:true,apply:"apply_rule_id"},_geofence_id:{check:"Integer",init:null}},construct:function(){atr.draw.rule.SoftGeofence.call(this);var a=new qx.ui.window.Window("Geofence","");a.set({modal:true,width:350,height:350,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},events:{successful_save:"qx.event.type.Data"},members:{apply_wsc:function(){},
apply_domain_name:function(){},apply_fleet_id:function(){},apply_vehicle_id:function(){},apply_rule_id:function(){},create_btn_soft_geofence_on_entry:function(){var a=atr.draw.rule.SoftGeofence.prototype.create_btn_soft_geofence_on_entry.call(this);a.addListener("execute",this.__ts,this);return a},__ts:function(){if(this.__tv()){soap.WsdlCache.nsmap.track="track";var a=qx.xml.Document.create(),b=soap.Client.createSubElementNS(a,a,"r","track");soap.Client.createSubElementNS(a,b,"sgen","track").appendChild(a.createTextNode(this.get_geofence_id()));
this.__tw(b)}},create_btn_soft_geofence_on_exit:function(){var a=atr.draw.rule.SoftGeofence.prototype.create_btn_soft_geofence_on_exit.call(this);a.addListener("execute",this.__tt,this);return a},__tt:function(){if(this.__tv()){var a=qx.xml.Document.create(),b=soap.Client.createSubElementNS(a,a,"r","track");soap.Client.createSubElementNS(a,b,"sgex","track").appendChild(a.createTextNode(this.get_geofence_id()));this.__tw(b)}},create_btn_soft_geofence_both:function(){var a=atr.draw.rule.SoftGeofence.prototype.create_btn_soft_geofence_both.call(this);
a.addListener("execute",this.__tu,this);return a},__tu:function(){if(this.__tv()){var a=qx.xml.Document.create(),b=soap.Client.createSubElementNS(a,a,"r","track"),c=soap.Client.createSubElementNS(a,b,"or","rproc");soap.Client.createSubElementNS(a,c,"sgen","track").appendChild(a.createTextNode(this.get_geofence_id()));soap.Client.createSubElementNS(a,c,"sgex","track").appendChild(a.createTextNode(this.get_geofence_id()));this.__tw(b)}},__tv:function(){return!this.set_selected_geofence_id()?false:true},
set_selected_geofence_id:function(){var a=arskom.misc.selected_table_cell(this.tbl_soft_geofence,"id");if(arskom.misc.is_na(a))return alert(this.tr("Please select a geofence")),false;this.set_geofence_id(a);return true},__tw:function(a){var b=this.__ty();this.__tr(a,b)},__tx:function(a,b){var c=qx.xml.Document.create();return soap.Client.createSubElementNS(c,c,a,b)},__ty:function(){var a=qx.xml.Document.create(),b=soap.Client.createSubElementNS(a,a,"m","track");soap.Client.createSubElementNS(a,b,
"tag","track");return b},__tr:function(a,b){var c=this,d=this.get_wsc().c.cvs,e=d.get_object("track.core","Rule");e.set_msg_def(b);e.set_rule(a);var f=c.get_rule_id(),f=arskom.misc.is_na(f)?atr.proc.Rule.ADD:atr.proc.Rule.EDT,g=null;c.get_commterminal()&&(g=c.get_commterminal().get_id());d.easy(f,c.get_domain_name(),c.get_fleet_id(),c.get_vehicle_id(),g,e,function(a){c.fireDataEvent("successful_save",a)})},refresh:function(){var a=this.get_wsc().c.cvs,b=new soap.Parameters;b.add("domain_name",this.get_domain_name());
b.add("srid",4326);a=new soap.RemoteImpl(a,atr.proc.Geofence.GET_ALL_COUNT,atr.proc.Geofence.GET_ALL,b);a.setColumns([this.tr("Id"),this.tr("Name"),this.tr("Type"),this.tr("Geometry")],["id","name","type","geom"]);this.tbl_soft_geofence.setTableModel(a)}}})})();
(function(){qx.Class.define("atr.draw.rule.PosLossTime",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_save:null,centralwidget:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(350);a.setWidth(350);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=
new qx.ui.layout.VBox},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setMaxHeight(26);a.setMaxWidth(75);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_gridLayout());a.setMargin(1);a.add(this.create_label(),{column:0,row:0});a.add(this.create_edt_pos_loss_time(),{column:1,row:0});a.add(this.create_verticalSpacer(),{column:1,row:1});a.add(this.create_horizontalLayout_2_implicit_container(),
{colSpan:2,column:0,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_edt_pos_loss_time:function(){var a=this.edt_pos_loss_time=new qx.ui.form.TextField;a.setMargin(1);return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalLayout_2_implicit_container:function(){var a=this.horizontalLayout_2_implicit_container=
new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMargin(1);a.add(this.create_btn_save(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});return a},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Time (minutes)"));a.setMargin(1);return a},create_verticalSpacer:function(){var a=this.verticalSpacer=
new qx.ui.core.Spacer;a.setHeight(266);a.setWidth(20);a.setMargin(1);return a},edt_pos_loss_time:null,gridLayout:null,horizontalLayout_2:null,horizontalLayout_2_implicit_container:null,horizontalSpacer:null,label:null,verticalSpacer:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.rule.PosLossTime",{extend:atr.draw.rule.PosLossTime,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,nullable:true,apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",init:null,nullable:true,apply:"apply_vehicle_id"},_rule_id:{check:"Integer",init:null,nullable:true,apply:"apply_rule_id"}},
construct:function(){atr.draw.rule.PosLossTime.call(this);var a=new qx.ui.window.Window("Periodic","");a.set({modal:true,width:350,height:350,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},events:{successful_save:"qx.event.type.Data"},members:{__tm:null,__tn:null,apply_wsc:function(){},apply_domain_name:function(){},apply_fleet_id:function(){},apply_vehicle_id:function(){},
apply_rule_id:function(){},create_btn_save:function(){var a=atr.draw.rule.PosLossTime.prototype.create_btn_save.call(this);a.addListener("execute",this.__tz,this);return a},__tz:function(){soap.WsdlCache.nsmap.track="track";var a=qx.xml.Document.create(),b=soap.Client.createSubElementNS(a,a,"r","track");soap.Client.createSubElementNS(a,b,"pst","track").appendChild(a.createTextNode(this.edt_pos_loss_time.getValue()));this.__tw(b)},__tw:function(a){var b=this.__ty();this.__tr(a,b)},__tx:function(a,
b){var c=qx.xml.Document.create();return soap.Client.createSubElementNS(c,c,a,b)},__ty:function(){var a=qx.xml.Document.create();return soap.Client.createSubElementNS(a,a,"m","track")},__tr:function(a,b){var c=this,d=this.get_wsc().c.cvs,e=d.get_object("track.core","Rule");e.set_msg_def(b);e.set_rule(a);var f=c.get_rule_id(),f=arskom.misc.is_na(f)?atr.proc.Rule.ADD:atr.proc.Rule.EDT;d.easy(f,c.get_domain_name(),c.get_fleet_id(),c.get_vehicle_id(),null,e,function(a){c.fireDataEvent("successful_save",
a)})},reset:function(){this.edt_pos_loss_time.resetValue()},refresh:function(){}}})})();
(function(){qx.Class.define("atr.comp.CommTerminalMenu",{extend:qx.ui.menu.Menu,properties:{_wsc:{check:"soap.ClientCollection"},_domain_name:{check:"String"},_fleet_id:{check:"Integer"},_vehicle_id:{check:"Integer"},_cache:{check:"atr.cache.CommTerminal"}},events:{select_comm_terminal:"qx.event.type.Data"},construct:function(){qx.ui.menu.Menu.call(this);this.set_cache(atr.cache.CommTerminal.getInstance())},members:{refresh:function(){var a=this,b=this.get_cache();a.removeAll();b.void_cache();var c=
new soap.Parameters;c.add("domain_name",this.get_domain_name());c.add("fleet_id",this.get_fleet_id());c.add("vehicle_id",this.get_vehicle_id());var d=this.get_wsc().c.cvs.get_call(atr.proc.CommTerminal.GET_ALL),e=this.get_wsc().c.cvs.get_call(atr.proc.CommTerminal.GET_ALL_COUNT);d.set_params(c);b.set_by_page_call(d);b.set_count_call(e);b.fill_cache(function(c){var d=new qx.ui.menu.Button(a.tr("[ Soft Geofence ]"));d.addListener("execute",function(){a.fireDataEvent("select_comm_terminal",["soft_geofence",
null])},this);a.add(d);d=new qx.ui.menu.Button(a.tr("[ Position Loss Time ]"));d.addListener("execute",function(){a.fireDataEvent("select_comm_terminal",["pos_loss_time",null])},this);a.add(d);for(var d=0,e=c.length;d<e;d++){var i=b.query_cache(c[d]),j=atr.proc.Consts.DEVICE_MODELS[i.get_device()],j=new qx.ui.menu.Button("Periodic Reporting with "+j);j.addListener("execute",function(){a.fireDataEvent("select_comm_terminal",["periodic",i])},this);a.add(j)}})}}})})();
(function(){qx.Class.define("atr.cache.CommTerminal",{extend:arskom.EntityCache,type:"singleton",properties:{_domain_name:{check:"String",apply:"__tA"},_fleet_id:{check:"String",apply:"__tB"},_vehicle_id:{check:"String",apply:"__tC"}},construct:function(){arskom.EntityCache.call(this);this.set_pk_field("geofence_ids")},members:{__tA:function(a){this.get_by_id_call().get_params().add("domain_name",a)},__tB:function(a){this.get_by_id_call().get_params().add("fleet_id",a)},__tC:function(a){this.get_by_id_call().get_params().add("vehicle_id",
a)}}})})();(function(){qx.Class.define("atr.proc.CommTerminal",{type:"static",statics:{ADD:"add_comm_terminal",DEL:"del_comm_terminal",GET:"get_comm_terminal",EDT:"edt_comm_terminal",GET_ALL:"get_all_comm_terminal",GET_ALL_COUNT:"get_all_comm_terminal_count",GET_ALL_MSG:"get_all_message_comm_terminal",GET_ALL_MSG_COUNT:"get_all_message_comm_terminal_count"}})})();
(function(){qx.Class.define("qx.util.TimerManager",{extend:qx.core.Object,type:"singleton",statics:{__tD:[],__tE:{},__tF:0},members:{__tG:false,start:function(a,b,c,d,e){e||(e=b||0);var f=(new Date).getTime()+e;this.self(arguments).__tE[++this.self(arguments).__tF]={callback:a,userData:d||null,expireAt:f,recurTime:b,context:c||this};this.__tH(f,this.self(arguments).__tF);return this.self(arguments).__tF},stop:function(a){for(var b=this.self(arguments).__tD,c=b.length,d=0;d<c;d++)if(b[d]==a){b.splice(d,
1);break}delete this.self(arguments).__tE[a];if(b.length==0&&this.__tG)qx.event.Idle.getInstance().removeListener("interval",this.__tI,this),this.__tG=false},__tH:function(a,b){for(var c=this.self(arguments).__tD,d=this.self(arguments).__tE,e=c.length,f=0;f<e;f++)if(d[c[f]].expireAt>a){c.splice(f,0,b);break}c.length==e&&c.push(b);if(!this.__tG)qx.event.Idle.getInstance().addListener("interval",this.__tI,this),this.__tG=true},__tI:function(){for(var a=(new Date).getTime(),b=this.self(arguments).__tD,
c=this.self(arguments).__tE;b.length>0&&c[b[0]].expireAt<=a;){var d=b.shift(),e=c[d];e.callback.call(e.context,e.userData,d);if(e.recurTime&&c[d]){var f=(new Date).getTime();e.expireAt=f+e.recurTime;this.__tH(e.expireAt,d)}else delete c[d]}if(b.length==0&&this.__tG)qx.event.Idle.getInstance().removeListener("interval",this.__tI,this),this.__tG=false}}})})();
(function(){qx.Class.define("atr.draw.vehicle.AddVehicle",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_wnd())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,bottom_bar:null,btn_close:null,btn_save:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_bottom_bar:function(){var a=this.bottom_bar=new qx.ui.container.Composite(this.create_horizontalLayout());a.setHeight(48);a.setMaxHeight(48);a.setMargin(1);
a.setMinHeight(48);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(70);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(22);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(70);a.setLabel(this.tr("Save"));
a.setMargin(1);a.setMinHeight(22);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_tabWidget:function(){var a=this.tabWidget=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab_vehicle());a.add(this.create_tab_option());a.add(this.create_tab_device());a.add(this.create_tab_asg_fleet());return a},
create_tab_asg_fleet:function(){var a=this.tab_asg_fleet=new qx.ui.tabview.Page;a.setLabel(this.tr("Assigned Fleets"));a.setMargin(1);a.setLayout(this.create_tab_asg_fleet_il());return a},create_tab_asg_fleet_il:function(){return this.tab_asg_fleet_il=new qx.ui.layout.Canvas},create_tab_device:function(){var a=this.tab_device=new qx.ui.tabview.Page;a.setLabel(this.tr("Devices"));a.setMargin(1);a.setLayout(this.create_verticalLayout_3());a.add(this.create_wgt_device_list(),{flex:1});return a},create_tab_option:function(){var a=
this.tab_option=new qx.ui.tabview.Page;a.setLabel(this.tr("Options"));a.setMargin(1);a.setLayout(this.create_tab_option_il());return a},create_tab_option_il:function(){return this.tab_option_il=new qx.ui.layout.Canvas},create_tab_vehicle:function(){var a=this.tab_vehicle=new qx.ui.tabview.Page;a.setLabel(this.tr("Vehicle"));a.setMargin(1);a.setLayout(this.create_tab_vehicle_il());return a},create_tab_vehicle_il:function(){return this.tab_vehicle_il=new qx.ui.layout.Canvas},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},create_verticalLayout_3:function(){return this.verticalLayout_3=new qx.ui.layout.VBox},create_wgt:function(){var a=this.wgt=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_tabWidget(),{flex:1});a.add(this.create_bottom_bar(),{flex:1});return a},create_wgt_device_list:function(){var a=this.wgt_device_list=new qx.ui.container.Composite(this.create_wgt_device_list_il());a.setMargin(1);return a},create_wgt_device_list_il:function(){return this.wgt_device_list_il=
new qx.ui.layout.Canvas},create_wnd:function(){var a=this.wnd=new qx.ui.container.Composite(this.create___lv());a.setHeight(680);a.setWidth(559);a.setMargin(1);a.add(this.create_wgt(),{flex:1});return a},horizontalLayout:null,horizontalSpacer:null,tabWidget:null,tab_asg_fleet:null,tab_asg_fleet_il:null,tab_device:null,tab_option:null,tab_option_il:null,tab_vehicle:null,tab_vehicle_il:null,verticalLayout:null,verticalLayout_3:null,wgt:null,wgt_device_list:null,wgt_device_list_il:null,wnd:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.vehicle.AddVehicle",{extend:atr.draw.vehicle.AddVehicle,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection"},_domain_name:{check:"String",init:null,nullable:true},_fleet_id:{check:"Integer",init:null,nullable:true},_vehicle_id:{check:"Integer",init:null,nullable:true},_allow_small_corp_table:{check:"Boolean"},_allow_change_vehicle_type:{check:"Boolean"},_allow_edit_vehicle:{check:"Boolean",init:false},_allow_edit_vehicle_option:{check:"Boolean",
init:false}},construct:function(){atr.draw.vehicle.AddVehicle.call(this);var a=new qx.ui.window.Window("Vehicle","");a.set({modal:true,width:450,height:660,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},events:{close:"qx.event.type.Data"},members:{vehicle_detail:null,comm_terminal_list:null,vehicle_option:null,asg_fleet:null,create_tab_vehicle:function(){var a=
atr.draw.vehicle.AddVehicle.prototype.create_tab_vehicle.call(this);this.vehicle_detail=this.__tJ();a.add(this.vehicle_detail.getWidget(),{edge:0});return a},__tJ:function(){var a=this;return a.get_factory().get_instance(atr.impl.vehicle.Vehicle,function(b){b.addListener("close",a.on_btn_close_execute,a);b.addListener("save",a.save_handler,a)})},set_vehicle_detail:function(a){this.vehicle_detail.set_wsc(this.get_wsc());this.vehicle_detail.set_domain_name(this.get_domain_name());this.vehicle_detail.set_fleet_id(this.get_fleet_id());
this.vehicle_detail.set_vehicle_id(this.get_vehicle_id());this.vehicle_detail.set_allow_change_vehicle_type(this.get_allow_change_vehicle_type());this.vehicle_detail.set_allow_cmb_fleet(a)},create_wgt_device_list:function(){var a=atr.draw.vehicle.AddVehicle.prototype.create_wgt_device_list.call(this);this.comm_terminal_list=this.__tK();this.comm_terminal_list.set_show_filters(false);a.add(this.comm_terminal_list.getWidget(),{edge:0});return a},__tK:function(){return this.get_factory().get_instance(atr.impl.comm_terminal.List,
function(){})},set_comm_terminal_list:function(){this.comm_terminal_list.set_wsc(this.get_wsc());this.comm_terminal_list.set_domain_name(this.get_domain_name());this.comm_terminal_list.set_fleet_id(this.get_fleet_id());this.comm_terminal_list.set_vehicle_id(this.get_vehicle_id())},create_tab_option:function(){var a=atr.draw.vehicle.AddVehicle.prototype.create_tab_option.call(this);this.vehicle_option=this.__tL();a.add(this.vehicle_option.getWidget(),{edge:0});return a},__tL:function(){var a=this;
return a.get_factory().get_instance(atr.impl.vehicle.Option,function(b){b.addListener("close",a.on_btn_close_execute,a);b.addListener("save",a.save_handler,a)})},set_vehicle_option:function(){this.vehicle_option.set_wsc(this.get_wsc());this.vehicle_option.set_vehicle_id(this.get_vehicle_id())},create_tab_asg_fleet:function(){var a=atr.draw.vehicle.AddVehicle.prototype.create_tab_asg_fleet.call(this);this.asg_fleet=this.__tM();a.add(this.asg_fleet.getWidget(),{edge:0});return a},__tM:function(){return this.get_factory().get_instance(atr.impl.vehicle.AssignedFleet,
function(){})},set_asg_fleet:function(){this.asg_fleet.set_wsc(this.get_wsc());this.asg_fleet.set_domain_name(this.get_domain_name());this.asg_fleet.set_fleet_id(this.get_fleet_id());this.asg_fleet.set_vehicle_id(this.get_vehicle_id());this.asg_fleet.set_allow_small_corp_table(this.get_allow_small_corp_table())},show:function(){arskom.misc.is_na(this.get_vehicle_id());arskom.misc.is_na(this.get_vehicle_id())?(arskom.misc.replace_pages(this.tabWidget,[this.tab_vehicle]),this.set_vehicle_detail(true),
this.vehicle_detail.reset(),this.vehicle_detail.refresh()):this.get_allow_edit_vehicle_option()==true&&(this.get_allow_edit_vehicle()==true?(arskom.misc.replace_pages(this.tabWidget,[this.tab_vehicle,this.tab_device,this.tab_asg_fleet,this.tab_option]),this.set_vehicle_detail(false),this.vehicle_detail.reset(),this.vehicle_detail.refresh(),this.set_comm_terminal_list(),this.comm_terminal_list.reset(),this.comm_terminal_list.refresh(),this.set_asg_fleet(),this.asg_fleet.reset(),this.asg_fleet.refresh()):
arskom.misc.replace_pages(this.tabWidget,[this.tab_option]),this.set_vehicle_option(),this.vehicle_option.reset(),this.vehicle_option.refresh());this.__ti()},__ti:function(){var a=this.getWindow();a.open();a.center()},reset:function(){},create_btn_save:function(){var a=atr.draw.vehicle.AddVehicle.prototype.create_btn_save.call(this);a.addListener("execute",this.on_btn_save_execute,this);return a},on_btn_save_execute:function(a){this.btn_save.setIcon("atr/loaders/loader1.gif");var b=this.tabWidget.getSelection()[0];
b==this.tab_vehicle&&this.vehicle_detail.save(a);b==this.tab_option&&this.vehicle_option.save(a)},create_btn_close:function(){var a=atr.draw.vehicle.AddVehicle.prototype.create_btn_close.call(this);a.addListener("execute",this.on_btn_close_execute,this);return a},on_btn_close_execute:function(){this.getWindow().close()},save_handler:function(){this.getWindow().close();this.fireDataEvent("close",null)}}})})();
(function(){qx.Class.define("atr.draw.vehicle.Vehicle",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,centralwidget:null,cmb_fleet:null,cmb_ic_count:null,cmb_icon:null,cmb_vh_type:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(413);a.setWidth(305);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout_2());a.setMargin(1);a.add(this.create_grp_vehicle_detail(),{flex:1});a.add(this.create_tbv_main(),{flex:1});return a},create_cmb_fleet:function(){var a=this.cmb_fleet=new atr.comp.FleetSelectBox;a.setMargin(1);a.setAllowGrowY(false);return a},create_cmb_ic_count:function(){var a=this.cmb_ic_count=new qx.ui.form.SelectBox;
a.setMargin(1);a.setAllowGrowY(false);return a},create_cmb_icon:function(){var a=this.cmb_icon=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);return a},create_cmb_vh_type:function(){var a=this.cmb_vh_type=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Terrestrial"),null,"1"));a.add(new qx.ui.form.ListItem(this.tr("Fisher"),null,"2"));return a},create_edt_callsign:function(){var a=this.edt_callsign=new qx.ui.form.TextField;a.setMargin(1);
return a},create_edt_ic_num:function(){var a=this.edt_ic_num=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_res_num:function(){var a=this.edt_res_num=new qx.ui.form.TextField;a.setMargin(1);return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},create_grp_vehicle_detail:function(){var a=
this.grp_vehicle_detail=new qx.ui.groupbox.GroupBox;a.setMaxHeight(135);a.setMaxWidth(542);a.setLegend(this.tr("Vehicle Detail"));a.setMargin(1);a.setLayout(this.create_gridLayout());a.add(this.create_lbl_icon(),{column:0,row:2});a.add(this.create_cmb_icon(),{column:2,row:2});a.add(this.create_lbl_vh_type(),{column:0,row:3});a.add(this.create_cmb_fleet(),{column:2,row:0});a.add(this.create_lbl_fleet(),{column:0,row:0});a.add(this.create_lbl_name(),{column:0,row:1});a.add(this.create_edt_name(),{column:2,
row:1});a.add(this.create_cmb_vh_type(),{column:2,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setColumnFlex(0,1);b.setColumnFlex(2,1);return a},create_grp_vehicle_detail_2:function(){var a=this.grp_vehicle_detail_2=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Vehicle Detail"));a.setMargin(1);a.setLayout(this.create_gridLayout_2());a.add(this.create_lbl_iccat(),{column:0,row:0});a.add(this.create_lbl_reg_num(),{column:0,row:1});a.add(this.create_edt_res_num(),
{column:1,row:1});a.add(this.create_lbl_callsg(),{column:0,row:2});a.add(this.create_lbl_ic_count(),{column:0,row:3});a.add(this.create_cmb_ic_count(),{column:1,row:3});a.add(this.create_edt_ic_num(),{column:1,row:0});a.add(this.create_edt_callsign(),{column:1,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_lbl_callsg:function(){var a=this.lbl_callsg=new qx.ui.basic.Label;a.setWidth(100);
a.setMaxWidth(100);a.setValue(this.tr("Callsign"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_fleet:function(){var a=this.lbl_fleet=new qx.ui.basic.Label;a.setValue(this.tr("Fleet"));a.setMargin(1);return a},create_lbl_ic_count:function(){var a=this.lbl_ic_count=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("ICCAT Country"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_iccat:function(){var a=this.lbl_iccat=new qx.ui.basic.Label;a.setValue(this.tr("ICCAT Num"));
a.setMargin(1);return a},create_lbl_icon:function(){var a=this.lbl_icon=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Icon"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_name:function(){var a=this.lbl_name=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Name"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_reg_num:function(){var a=this.lbl_reg_num=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Registration Num"));
a.setMargin(1);a.setMinWidth(100);return a},create_lbl_vh_type:function(){var a=this.lbl_vh_type=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Vehicle Type"));a.setMargin(1);a.setMinWidth(100);return a},create_tab_fisher:function(){var a=this.tab_fisher=new qx.ui.tabview.Page;a.setLabel(this.tr("Fisher"));a.setMargin(1);a.setLayout(this.create_verticalLayout());a.add(this.create_grp_vehicle_detail_2(),{flex:1});a.add(this.create_verticalSpacer(),{flex:1});return a},
create_tab_terrestrial:function(){var a=this.tab_terrestrial=new qx.ui.tabview.Page;a.setLabel(this.tr("Terrestrial"));a.setMargin(1);a.setLayout(this.create_tab_terrestrial_il());return a},create_tab_terrestrial_il:function(){return this.tab_terrestrial_il=new qx.ui.layout.Canvas},create_tbv_main:function(){var a=this.tbv_main=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab_terrestrial());a.add(this.create_tab_fisher());return a},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},create_verticalLayout_2:function(){return this.verticalLayout_2=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(216);a.setWidth(20);a.setMargin(1);return a},edt_callsign:null,edt_ic_num:null,edt_name:null,edt_res_num:null,gridLayout:null,gridLayout_2:null,grp_vehicle_detail:null,grp_vehicle_detail_2:null,lbl_callsg:null,lbl_fleet:null,lbl_ic_count:null,lbl_iccat:null,lbl_icon:null,lbl_name:null,lbl_reg_num:null,
lbl_vh_type:null,tab_fisher:null,tab_terrestrial:null,tab_terrestrial_il:null,tbv_main:null,verticalLayout:null,verticalLayout_2:null,verticalSpacer:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.vehicle.Vehicle",{extend:atr.draw.vehicle.Vehicle,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,nullable:true},_vehicle_id:{check:"Integer",init:null,nullable:true},_name:{check:"String",init:null,nullable:true},_allow_cmb_fleet:{check:"Boolean",apply:"apply_allow_cmb_fleet",init:true},_allow_change_vehicle_type:{check:"Boolean",
apply:"apply_allow_change_vehicle_type"}},construct:function(){atr.draw.vehicle.Vehicle.call(this);var a=new qx.ui.window.Window("Vehicle","");a.set({modal:true,width:450,height:660,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},events:{close:"qx.event.type.Data",save:"qx.event.type.Data"},members:{apply_wsc:function(a){this.cmb_fleet.set_wsc(a)},apply_domain_name:function(a){this.cmb_fleet.set_domain_name(a)},
apply_allow_change_vehicle_type:function(a){a==true?(this.cmb_vh_type.setVisibility("visible"),this.lbl_vh_type.setVisibility("visible")):(this.cmb_vh_type.setVisibility("excluded"),this.lbl_vh_type.setVisibility("excluded"))},apply_allow_cmb_fleet:function(a){a==true?(this.cmb_fleet.setVisibility("visible"),this.lbl_fleet.setVisibility("visible")):(this.cmb_fleet.setVisibility("excluded"),this.lbl_fleet.setVisibility("excluded"))},create_cmb_fleet:function(){var a=atr.draw.vehicle.Vehicle.prototype.create_cmb_fleet.call(this);
a.set_must_select(true);a.addListener("changeSelection",this.on_cmb_fleet_change_selection,this);return a},on_cmb_fleet_change_selection:function(){for(var a=this.get_fleet_id(),b=this.cmb_fleet.get_cache(),c=0;c<b.length;c++)if(b.getItem(c).id===a)var d=b.getItem(c);arskom.misc.is_na(a)||arskom.misc.set_selectbox_label(this.cmb_fleet,d)},create_cmb_ic_count:function(){for(var a=atr.draw.vehicle.Vehicle.prototype.create_cmb_ic_count.call(this),b=atr.proc.Consts.ICCAT_COUNTRY_CODES,c=0;c<b.length;c++)this.cmb_ic_count.add(b[c]);
return a},create_cmb_vh_type:function(){var a=atr.draw.vehicle.Vehicle.prototype.create_cmb_vh_type.call(this);a.addListener("changeSelection",this.on_cmb_vh_type_execute,this);return a},on_cmb_vh_type_execute:function(){var a=this.cmb_vh_type.getSelection()[0].getModel(),b=atr.proc.Consts;switch(parseInt(a)){case b.VT_TERRESTRIAL:arskom.misc.replace_pages(this.tbv_main,[this.tab_terrestrial]);break;case b.VT_FISHER:arskom.misc.replace_pages(this.tbv_main,[this.tab_fisher])}},refresh:function(){this.show()},
show:function(){var a=this;arskom.misc.is_na(a.get_vehicle_id())?(arskom.misc.set_selectbox_label(a.cmb_vh_type,1),a.on_cmb_vh_type_execute(),this.cmb_fleet.refresh()):a.get_wsc().c.cvs.easy(atr.proc.Vehicle.GET,a.get_domain_name(),a.get_fleet_id(),a.get_vehicle_id(),function(b){typeof b==="object"&&a.set_values(b)})},set_values:function(a){if(!arskom.misc.is_na(a.get_name())){this.edt_name.setValue(a.get_name());arskom.misc.set_selectbox_label(this.cmb_icon,a.get_icon());arskom.misc.set_selectbox_label(this.cmb_vh_type,
a.get_vehicle_type());this.on_cmb_vh_type_execute();var b=a.get_vehicle_type();!arskom.misc.is_na(b)&&b==2&&(this.edt_ic_num.setValue(a.get_iccat_id()),this.edt_res_num.setValue(a.get_reg_number()),this.edt_callsign.setValue(a.get_callsign()),arskom.misc.set_selectbox_label(this.cmb_ic_count,a.get_iccat_country()))}},reset:function(){this.cmb_fleet.resetSelection();this.edt_name.resetValue();this.cmb_icon.resetSelection();this.cmb_vh_type.resetSelection();this.edt_ic_num.resetValue();this.edt_res_num.resetValue();
this.edt_callsign.resetValue();this.cmb_ic_count.resetSelection()},create_cmb_icon:function(){for(var a=atr.draw.vehicle.Vehicle.prototype.create_cmb_icon.call(this),b=atr.proc.Consts.CIRCLE_ICONS,c=0,d=b.length;c<d;++c)a.add(b[c]);return a},save:function(){var a=this,b=arskom.misc.get_selectbox_value(this.cmb_fleet);if(a.get_allow_cmb_fleet())if(b)this.set_fleet_id(b.get_id());else return;var b=this.get_wsc().c.cvs,c=a.cmb_icon.getSelection()[0].getModel(),d=parseInt(a.cmb_vh_type.getSelection()[0].getModel()),
e=b.get_object("track.core","Vehicle");e.set_name(a.edt_name.getValue());e.set_icon(c.toString());e.set_vehicle_type(d);e.set_iccat_id(a.edt_ic_num.getValue());e.set_reg_number(a.edt_res_num.getValue());e.set_callsign(a.edt_callsign.getValue());e.set_iccat_country(a.cmb_ic_count.getSelection()[0].getModel());if(arskom.misc.is_na(this.get_vehicle_id()))b.easy(atr.proc.Vehicle.ADD,this.get_domain_name(),this.get_fleet_id(),e,function(b){a.save_handler(b)});else{c=atr.proc.Vehicle.EDT;if(this.get_allow_change_vehicle_type()==
true)c=atr.proc.Vehicle.EDT_ADMIN;e.set_id(this.get_vehicle_id());b.easy(c,this.get_domain_name(),this.get_fleet_id(),e,function(b){a.save_handler(b)})}},on_btn_close_execute:function(){this.fireDataEvent("close",null)},save_handler:function(){this.fireDataEvent("save",null)}}})})();
(function(){qx.Class.define("atr.impl.comm_terminal.List",{extend:arskom.ui.impl.DataDisplay,include:[qx.locale.MTranslation],properties:{_domain_name:{check:"String",apply:"apply_domain_name"},_fleet_id:{check:"Integer",init:null,apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",init:null,apply:"apply_vehicle_id"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id")},members:{__tN:null,apply_domain_name:function(a){this.table.set_domain_name(a)},apply_fleet_id:function(a){this.table.set_fleet_id(a)},
apply_vehicle_id:function(a){this.table.set_vehicle_id(a)},__tO:function(){if(this.__tN==null){var a=atr.impl.comm_terminal.DeviceDetail.getInstance();a.addListener("successful_save",this.__td,this);this.__tN=a}return this.__tN},create_table:function(){var a=this.table=new atr.comp.CommTerminalTable;a.setMargin(1);return a},__td:function(){this.refresh()},show:function(){this.get_window(this.tr("DeviceList"),"","").open()},pop_add_dialog:function(){var a=this.__tO();a.reset();a.set_wsc(this.get_wsc());
a.set_domain_name(this.get_domain_name());a.set_vehicle_id(this.get_vehicle_id());a.set_fleet_id(this.get_fleet_id());a.set_comm_terminal_id(null);a.set_allow_btn_save(true);a.show()},pop_del_dialog:function(a){var b=this;b.get_wsc().c.cvs.easy(atr.proc.CommTerminal.DEL,b.get_domain_name(),b.get_fleet_id(),b.get_vehicle_id(),a[0],function(){b.refresh()})},pop_edt_dialog:function(a){var b=this.__tO();b.reset();b.set_wsc(this.get_wsc());b.set_domain_name(this.get_domain_name());b.set_vehicle_id(this.get_vehicle_id());
b.set_fleet_id(this.get_fleet_id());b.set_comm_terminal_id(a[0]);b.set_allow_btn_save(true);b.show()},pop_details_dialog:function(a){var b=this.__tO();b.reset();b.set_wsc(this.get_wsc());b.set_domain_name(this.get_domain_name());b.set_vehicle_id(this.get_vehicle_id());b.set_fleet_id(this.get_fleet_id());b.set_comm_terminal_id(a[0]);b.set_allow_btn_save(false);b.show()},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})}}})})();
(function(){qx.Class.define("atr.draw.DeviceDetail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_Device())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{Device:null,__ow:null,bottom_bar:null,btn_close:null,btn_save:null,centralwidget:null,chk_position_msg:null,cmb_device_type:null,cmb_dplus_device:null,cmb_globalwave_device:null,cmb_gsm_device:null,cmb_hybrid_device:null,cmb_isatm2m_device:null,cmb_satamatics_device:null,create_Device:function(){var a=
this.Device=new qx.ui.container.Composite(this.create___lv());a.setWidth(581);a.setMargin(1);a.setMinWidth(581);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_bottom_bar:function(){var a=this.bottom_bar=new qx.ui.container.Composite(this.create_horizontalLayout());a.setHeight(36);a.setMargin(1);a.setMinHeight(36);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer_3(),
{flex:1});return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(70);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(22);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(70);a.setLabel(this.tr("Save"));a.setMargin(1);a.setMinHeight(22);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout_2());
a.setMargin(1);a.add(this.create_grb_device(),{flex:1});a.add(this.create_bottom_bar(),{flex:1});return a},create_chk_position_msg:function(){var a=this.chk_position_msg=new qx.ui.form.CheckBox;a.setLabel(this.tr("Send position e-mail"));a.setMargin(1);return a},create_cmb_device_type:function(){var a=this.cmb_device_type=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Globalwave"),null,"1"));a.add(new qx.ui.form.ListItem(this.tr("GSM"),null,"2"));
a.add(new qx.ui.form.ListItem(this.tr("Inmarsat C"),null,"3"));a.add(new qx.ui.form.ListItem(this.tr("Satamatics"),null,"7"));a.add(new qx.ui.form.ListItem(this.tr("SkyWave D+"),null,"4"));a.add(new qx.ui.form.ListItem(this.tr("SkyWave ISatM2M/GSM"),null,"5"));a.add(new qx.ui.form.ListItem(this.tr("SkyWave ISatM2M"),null,"6"));return a},create_cmb_dplus_device:function(){var a=this.cmb_dplus_device=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),
null,null));a.add(new qx.ui.form.ListItem(this.tr("DMR-200D"),null,"11"));a.add(new qx.ui.form.ListItem(this.tr("DMR-200L"),null,"12"));return a},create_cmb_globalwave_device:function(){var a=this.cmb_globalwave_device=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("MT2000"),null,"0"));a.add(new qx.ui.form.ListItem(this.tr("MT3000"),null,"1"));a.add(new qx.ui.form.ListItem(this.tr("MT3300"),
null,"2"));a.add(new qx.ui.form.ListItem(this.tr("MT3400"),null,"3"));a.add(new qx.ui.form.ListItem(this.tr("MT3550"),null,"4"));return a},create_cmb_gsm_device:function(){var a=this.cmb_gsm_device=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("Cybergraphy (G200x)"),null,"6"));a.add(new qx.ui.form.ListItem(this.tr("Bios (MT863)"),null,"7"));a.add(new qx.ui.form.ListItem(this.tr("Starsnav (RoverV9)"),
null,"8"));a.add(new qx.ui.form.ListItem(this.tr("Starsnav (PT33)"),null,"9"));return a},create_cmb_hybrid_device:function(){var a=this.cmb_hybrid_device=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("SureLinx 8100"),null,"13"));a.add(new qx.ui.form.ListItem(this.tr("SureLinx 8100C"),null,"14"));return a},create_cmb_isatm2m_device:function(){var a=this.cmb_isatm2m_device=new qx.ui.form.SelectBox;
a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("DMR-800"),null,"15"));a.add(new qx.ui.form.ListItem(this.tr("DMR-800L"),null,"16"));a.add(new qx.ui.form.ListItem(this.tr("DMR-800 LRIT"),null,"17"));return a},create_cmb_satamatics_device:function(){var a=this.cmb_satamatics_device=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("Satamatics"),
null,"5"));return a},create_edt_dplus_id:function(){var a=this.edt_dplus_id=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_e_mail:function(){var a=this.edt_e_mail=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_globalwave_id:function(){var a=this.edt_globalwave_id=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_hybrid_id:function(){var a=this.edt_hybrid_id=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);
return a},create_edt_hybrid_imei:function(){var a=this.edt_hybrid_imei=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_hybrid_sim_number:function(){var a=this.edt_hybrid_sim_number=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_imei:function(){var a=this.edt_imei=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_inmc_dnid:function(){var a=this.edt_inmc_dnid=new qx.ui.form.TextField;a.setMargin(1);
a.setAllowGrowY(false);return a},create_edt_inmc_member_number:function(){var a=this.edt_inmc_member_number=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_inmc_mobile:function(){var a=this.edt_inmc_mobile=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_inmc_serial:function(){var a=this.edt_inmc_serial=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_inmc_sub_address:function(){var a=this.edt_inmc_sub_address=
new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_inmc_terminal_sn:function(){var a=this.edt_inmc_terminal_sn=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_isatm2m_id:function(){var a=this.edt_isatm2m_id=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_isn:function(){var a=this.edt_isn=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_sim_number:function(){var a=
this.edt_sim_number=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_grb_device:function(){var a=this.grb_device=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Device"));a.setMargin(1);a.setLayout(this.create_verticalLayout());a.add(this.create_horizontalLayout_3_implicit_container(),{flex:1});a.add(this.create_tbv_backend(),{flex:1});a.add(this.create_grp_speet_over(),{flex:1});return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_gridLayout_10:function(){return this.gridLayout_10=
new qx.ui.layout.Grid},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},create_gridLayout_3:function(){return this.gridLayout_3=new qx.ui.layout.Grid},create_gridLayout_4:function(){return this.gridLayout_4=new qx.ui.layout.Grid},create_gridLayout_5:function(){return this.gridLayout_5=new qx.ui.layout.Grid},create_gridLayout_8:function(){return this.gridLayout_8=new qx.ui.layout.Grid},create_gridLayout_9:function(){return this.gridLayout_9=new qx.ui.layout.Grid},create_grp_gprs:function(){var a=
this.grp_gprs=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("GPRS"));a.setMargin(1);a.setLayout(this.create_gridLayout_4());a.add(this.create_label_7(),{column:0,row:0});a.add(this.create_edt_hybrid_imei(),{column:1,row:0});a.add(this.create_label_8(),{column:0,row:1});a.add(this.create_edt_hybrid_sim_number(),{column:1,row:1});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setColumnFlex(0,1);return a},create_grp_hybrid_pre_msg_grp:function(){var a=this.grp_hybrid_pre_msg_grp=new qx.ui.groupbox.GroupBox;
a.setHeight(70);a.setMaxHeight(70);a.setLegend(this.tr("PredefinedMessageGroup"));a.setMargin(1);a.setMinHeight(70);a.setLayout(this.create_grp_hybrid_pre_msg_grp_il());return a},create_grp_hybrid_pre_msg_grp_il:function(){return this.grp_hybrid_pre_msg_grp_il=new qx.ui.layout.Canvas},create_grp_inmarsat:function(){var a=this.grp_inmarsat=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Inmarsat D+"));a.setMargin(1);a.setLayout(this.create_horizontalLayout_4());a.add(this.create_label_11(),{flex:1});
a.add(this.create_edt_hybrid_id(),{flex:1});return a},create_grp_isatm2m_pre_msg_grp:function(){var a=this.grp_isatm2m_pre_msg_grp=new qx.ui.groupbox.GroupBox;a.setHeight(70);a.setMaxHeight(70);a.setLegend(this.tr("PredefinedMessageGroup"));a.setMargin(1);a.setMinHeight(70);a.setLayout(this.create_grp_isatm2m_pre_msg_grp_il());return a},create_grp_isatm2m_pre_msg_grp_il:function(){return this.grp_isatm2m_pre_msg_grp_il=new qx.ui.layout.Canvas},create_grp_speet_over:function(){var a=this.grp_speet_over=
new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Speed Over"));a.setMargin(1);a.setLayout(this.create_gridLayout_3());a.add(this.create_label(),{column:0,row:0});a.add(this.create_edt_e_mail(),{column:1,row:0});a.add(this.create_label_2(),{column:0,row:1});a.add(this.create_spn_critical_speed(),{column:1,row:1});a.add(this.create_label_3(),{column:0,row:2});a.add(this.create_spn_period_msg_send(),{column:1,row:2});a.add(this.create_label_4(),{column:2,row:2});a.add(this.create_chk_position_msg(),
{column:1,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);b.setColumnFlex(2,1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_horizontalLayout_3_implicit_container:function(){var a=
this.horizontalLayout_3_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout_3());a.setMargin(1);a.add(this.create_lbl_dv_type(),{flex:1});a.add(this.create_cmb_device_type(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});return a},create_horizontalLayout_4:function(){return this.horizontalLayout_4=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_horizontalSpacer_3:function(){var a=
this.horizontalSpacer_3=new qx.ui.core.Spacer;a.setHeight(15);a.setWidth(382);a.setMargin(1);return a},create_l1:function(){var a=this.l1=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("IMEI: "));a.setMargin(1);a.setMinWidth(100);return a},create_l14:function(){var a=this.l14=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Sub Address"));a.setMargin(1);a.setMinWidth(100);return a},create_l15:function(){var a=this.l15=new qx.ui.basic.Label;
a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Terminal S/N"));a.setMargin(1);a.setMinWidth(100);return a},create_l2:function(){var a=this.l2=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("SIM Number"));a.setMargin(1);a.setMinWidth(100);return a},create_l2_2:function(){var a=this.l2_2=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Mobile Number"));a.setMargin(1);a.setMinWidth(100);return a},create_l3:function(){var a=this.l3=new qx.ui.basic.Label;
a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Device Make/Model"));a.setMargin(1);a.setMinWidth(100);return a},create_l4:function(){var a=this.l4=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Global Wave Id"));a.setMargin(1);a.setMinWidth(100);return a},create_l4_2:function(){var a=this.l4_2=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Serial Number"));a.setMargin(1);a.setMinWidth(100);return a},create_l4_3:function(){var a=this.l4_3=
new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("ISN"));a.setMargin(1);a.setMinWidth(100);return a},create_l5:function(){var a=this.l5=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Device Make/Model"));a.setMargin(1);a.setMinWidth(100);return a},create_l5_2:function(){var a=this.l5_2=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("DNID"));a.setMargin(1);a.setMinWidth(100);return a},create_l5_3:function(){var a=
this.l5_3=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Device Make/Model"));a.setMargin(1);a.setMinWidth(100);return a},create_l6:function(){var a=this.l6=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Device Make/Model"));a.setMargin(1);a.setMinWidth(100);return a},create_l6_2:function(){var a=this.l6_2=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Member Number"));a.setMargin(1);a.setMinWidth(100);return a},
create_l7:function(){var a=this.l7=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Skywave Id"));a.setMargin(1);a.setMinWidth(100);return a},create_l8:function(){var a=this.l8=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Skywave Id"));a.setMargin(1);a.setMinWidth(100);return a},create_l9:function(){var a=this.l9=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Device Make/Model"));a.setMargin(1);a.setMinWidth(100);
return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("E-mail: "));a.setMargin(1);return a},create_label_11:function(){var a=this.label_11=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("ID"));a.setMargin(1);a.setMinWidth(100);return a},create_label_13:function(){var a=this.label_13=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Device Make/Model"));a.setMargin(1);a.setMinWidth(100);a.setAllowGrowX(false);
a.setAllowGrowY(false);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("Critical speed: "));a.setMargin(1);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setValue(this.tr("Period e-mail send: "));a.setMargin(1);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;a.setValue(this.tr("minutes"));a.setMargin(1);return a},create_label_7:function(){var a=this.label_7=new qx.ui.basic.Label;a.setWidth(100);
a.setMaxWidth(100);a.setValue(this.tr("IMEI"));a.setMargin(1);a.setMinWidth(100);return a},create_label_8:function(){var a=this.label_8=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("SIM Number"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_dv_type:function(){var a=this.lbl_dv_type=new qx.ui.basic.Label;a.setValue(this.tr("Device Type"));a.setMargin(1);return a},create_spc1:function(){var a=this.spc1=new qx.ui.core.Spacer;a.setHeight(4E3);a.setWidth(20);a.setMargin(1);
return a},create_spc2:function(){var a=this.spc2=new qx.ui.core.Spacer;a.setHeight(4E3);a.setWidth(20);a.setMargin(1);return a},create_spc3:function(){var a=this.spc3=new qx.ui.core.Spacer;a.setHeight(4E3);a.setWidth(20);a.setMargin(1);return a},create_spc3_2:function(){var a=this.spc3_2=new qx.ui.core.Spacer;a.setHeight(4E3);a.setWidth(20);a.setMargin(1);return a},create_spc4:function(){var a=this.spc4=new qx.ui.core.Spacer;a.setHeight(4E3);a.setWidth(20);a.setMargin(1);return a},create_spn_critical_speed:function(){var a=
this.spn_critical_speed=new qx.ui.form.Spinner;a.setMaximum(1E3);a.setMargin(1);a.setAllowGrowY(false);return a},create_spn_period_msg_send:function(){var a=this.spn_period_msg_send=new qx.ui.form.Spinner;a.setMaximum(1E3);a.setMargin(1);a.setAllowGrowY(false);return a},create_tab_dplus:function(){var a=this.tab_dplus=new qx.ui.tabview.Page;a.setLabel(this.tr("SkyWave D+"));a.setMargin(1);a.setLayout(this.create_gridLayout_5());a.add(this.create_l7(),{column:0,row:2});a.add(this.create_edt_dplus_id(),
{column:1,row:2});a.add(this.create_spc3(),{colSpan:2,column:0,row:4});a.add(this.create_cmb_dplus_device(),{column:1,row:1});a.add(this.create_l6(),{column:0,row:1});var b=a.getLayout();b.setRowFlex(1,0);b.setRowFlex(2,1);b.setRowFlex(4,1);b.setColumnFlex(0,1);return a},create_tab_dplus_gprs:function(){var a=this.tab_dplus_gprs=new qx.ui.tabview.Page;a.setLabel(this.tr("SkyWave ISatM2M/GSM"));a.setMargin(1);a.setLayout(this.create_verticalLayout_3());a.add(this.create_wgt_skywave_hbrid(),{flex:1});
a.add(this.create_grp_inmarsat(),{flex:1});a.add(this.create_grp_gprs(),{flex:1});a.add(this.create_grp_hybrid_pre_msg_grp(),{flex:1});a.add(this.create_verticalSpacer(),{flex:1});return a},create_tab_globalwave:function(){var a=this.tab_globalwave=new qx.ui.tabview.Page;a.setLabel(this.tr("Global Wave"));a.setMargin(1);a.setLayout(this.create_gridLayout_8());a.add(this.create_l5(),{column:0,row:0});a.add(this.create_cmb_globalwave_device(),{column:1,row:0});a.add(this.create_l4(),{column:0,row:1});
a.add(this.create_edt_globalwave_id(),{column:1,row:1});a.add(this.create_spc2(),{colSpan:2,column:0,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);return a},create_tab_gprs:function(){var a=this.tab_gprs=new qx.ui.tabview.Page;a.setLabel(this.tr("GSM"));a.setMargin(1);a.setLayout(this.create_gridLayout_2());a.add(this.create_l1(),{column:0,row:2});a.add(this.create_edt_imei(),{column:1,row:2});a.add(this.create_l2(),{column:0,row:4});a.add(this.create_edt_sim_number(),
{column:1,row:4});a.add(this.create_spc1(),{colSpan:2,column:0,row:5});a.add(this.create_l3(),{column:0,row:1});a.add(this.create_cmb_gsm_device(),{column:1,row:1});var b=a.getLayout();b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(4,1);b.setRowFlex(5,1);b.setColumnFlex(0,1);return a},create_tab_inmc:function(){var a=this.tab_inmc=new qx.ui.tabview.Page;a.setLabel(this.tr("Inmarsat C"));a.setMargin(1);a.setLayout(this.create_gridLayout_9());a.add(this.create_l2_2(),{column:0,row:0});a.add(this.create_l5_2(),
{column:0,row:4});a.add(this.create_l6_2(),{column:0,row:5});a.add(this.create_l4_2(),{column:0,row:1});a.add(this.create_edt_inmc_serial(),{column:2,row:1});a.add(this.create_edt_inmc_mobile(),{column:2,row:0});a.add(this.create_edt_inmc_terminal_sn(),{column:2,row:3});a.add(this.create_edt_inmc_dnid(),{column:2,row:4});a.add(this.create_edt_inmc_member_number(),{column:2,row:5});a.add(this.create_edt_inmc_sub_address(),{column:2,row:6});a.add(this.create_l15(),{column:0,row:3});a.add(this.create_l14(),
{column:0,row:6});a.add(this.create_spc3_2(),{column:2,row:7});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(3,0);b.setRowFlex(4,1);b.setRowFlex(5,1);b.setRowFlex(6,0);b.setRowFlex(7,1);b.setColumnFlex(0,1);b.setColumnFlex(2,1);return a},create_tab_isatm2m:function(){var a=this.tab_isatm2m=new qx.ui.tabview.Page;a.setLabel(this.tr("SkyWave ISatM2M"));a.setMargin(1);a.setLayout(this.create_gridLayout());a.add(this.create_l9(),{column:0,row:0});a.add(this.create_cmb_isatm2m_device(),
{column:1,row:0});a.add(this.create_l8(),{column:0,row:1});a.add(this.create_edt_isatm2m_id(),{column:1,row:1});a.add(this.create_grp_isatm2m_pre_msg_grp(),{colSpan:2,column:0,row:2});a.add(this.create_spc4(),{column:1,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_tab_satamatics:function(){var a=this.tab_satamatics=new qx.ui.tabview.Page;a.setLabel(this.tr("Satamatics"));a.setMargin(1);
a.setLayout(this.create_gridLayout_10());a.add(this.create_l5_3(),{column:0,row:0});a.add(this.create_cmb_satamatics_device(),{column:1,row:0});a.add(this.create_l4_3(),{column:0,row:1});a.add(this.create_edt_isn(),{column:1,row:1});a.add(this.create_verticalSpacer_3(),{colSpan:2,column:0,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);return a},create_tbv_backend:function(){var a=this.tbv_backend=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab_globalwave());
a.add(this.create_tab_satamatics());a.add(this.create_tab_gprs());a.add(this.create_tab_inmc());a.add(this.create_tab_dplus());a.add(this.create_tab_dplus_gprs());a.add(this.create_tab_isatm2m());return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalLayout_2:function(){return this.verticalLayout_2=new qx.ui.layout.VBox},create_verticalLayout_3:function(){return this.verticalLayout_3=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=
this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(16);a.setWidth(20);a.setMargin(1);return a},create_verticalSpacer_3:function(){var a=this.verticalSpacer_3=new qx.ui.core.Spacer;a.setHeight(4E3);a.setWidth(20);a.setMargin(1);return a},create_wgt_skywave_hbrid:function(){var a=this.wgt_skywave_hbrid=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMargin(1);a.add(this.create_label_13());a.add(this.create_cmb_hybrid_device(),{flex:1});return a},edt_dplus_id:null,edt_e_mail:null,
edt_globalwave_id:null,edt_hybrid_id:null,edt_hybrid_imei:null,edt_hybrid_sim_number:null,edt_imei:null,edt_inmc_dnid:null,edt_inmc_member_number:null,edt_inmc_mobile:null,edt_inmc_serial:null,edt_inmc_sub_address:null,edt_inmc_terminal_sn:null,edt_isatm2m_id:null,edt_isn:null,edt_sim_number:null,grb_device:null,gridLayout:null,gridLayout_10:null,gridLayout_2:null,gridLayout_3:null,gridLayout_4:null,gridLayout_5:null,gridLayout_8:null,gridLayout_9:null,grp_gprs:null,grp_hybrid_pre_msg_grp:null,grp_hybrid_pre_msg_grp_il:null,
grp_inmarsat:null,grp_isatm2m_pre_msg_grp:null,grp_isatm2m_pre_msg_grp_il:null,grp_speet_over:null,horizontalLayout:null,horizontalLayout_2:null,horizontalLayout_3:null,horizontalLayout_3_implicit_container:null,horizontalLayout_4:null,horizontalSpacer:null,horizontalSpacer_3:null,l1:null,l14:null,l15:null,l2:null,l2_2:null,l3:null,l4:null,l4_2:null,l4_3:null,l5:null,l5_2:null,l5_3:null,l6:null,l6_2:null,l7:null,l8:null,l9:null,label:null,label_11:null,label_13:null,label_2:null,label_3:null,label_4:null,
label_7:null,label_8:null,lbl_dv_type:null,spc1:null,spc2:null,spc3:null,spc3_2:null,spc4:null,spn_critical_speed:null,spn_period_msg_send:null,tab_dplus:null,tab_dplus_gprs:null,tab_globalwave:null,tab_gprs:null,tab_inmc:null,tab_isatm2m:null,tab_satamatics:null,tbv_backend:null,verticalLayout:null,verticalLayout_2:null,verticalLayout_3:null,verticalSpacer:null,verticalSpacer_3:null,wgt_skywave_hbrid:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.comm_terminal.DeviceDetail",{extend:atr.draw.DeviceDetail,type:"singleton",properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection"},_domain_name:{check:"String"},_fleet_id:{check:"Integer",init:null},_vehicle_id:{check:"Integer",init:null},_comm_terminal_id:{check:"Integer",init:null,nullable:true},_allow_manage_comm_terminal:{check:"Boolean",apply:"apply_allow_manage_comm_terminal",init:true},_allow_btn_save:{check:"Boolean",apply:"apply__allow_btn_save",
init:true}},events:{successful_save:"qx.event.type.Data"},construct:function(){atr.draw.DeviceDetail.call(this);var a=new qx.ui.window.Window("Device","");a.set({modal:true,width:600,height:500,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},members:{__tP:null,isatm2m_pre_msg_grp_list:null,hybrid_pre_msg_grp_list:null,apply__allow_btn_save:function(a){a==
true?this.btn_save.setVisibility("visible"):this.btn_save.setVisibility("excluded")},create_cmb_device_type:function(){var a=atr.draw.DeviceDetail.prototype.create_cmb_device_type.call(this);a.addListener("changeSelection",this.__tQ,this);return a},__tQ:function(){var a=this.cmb_device_type.getSelection()[0].getModel();if(arskom.misc.is_na(a))this.tbv_backend.setVisibility("excluded");else{var b=atr.proc.Consts;switch(parseInt(a)){case b.DT_GLOBALWAVE:arskom.misc.replace_pages(this.tbv_backend,[this.tab_globalwave]);
break;case b.DT_GSM:arskom.misc.replace_pages(this.tbv_backend,[this.tab_gprs]);break;case b.DT_INMC:arskom.misc.replace_pages(this.tbv_backend,[this.tab_inmc]);break;case b.DT_DPLUS:arskom.misc.replace_pages(this.tbv_backend,[this.tab_dplus]);break;case b.DT_DPLUS_GSM:arskom.misc.replace_pages(this.tbv_backend,[this.tab_dplus_gprs]);break;case b.DT_ISATM2M:arskom.misc.replace_pages(this.tbv_backend,[this.tab_isatm2m]);break;case b.DT_SATAMATICS:arskom.misc.replace_pages(this.tbv_backend,[this.tab_satamatics]);
break;default:return}this.tbv_backend.setVisibility("visible")}},__tR:function(){var a=this;arskom.misc.is_na(a.get_comm_terminal_id())||a.get_wsc().c.cvs.easy(atr.proc.CommTerminal.GET,a.get_domain_name(),a.get_fleet_id(),a.get_vehicle_id(),a.get_comm_terminal_id(),function(b){var c=atr.proc.Consts,d=parseInt(atr.proc.Consts.DEVICE_TYPES[b.get_device()]);arskom.misc.set_selectbox_label(a.cmb_device_type,d);var e=parseInt(b.get_device());switch(d){case c.DT_GLOBALWAVE:a.edt_globalwave_id.setValue(b.get_globalwave_id());
arskom.misc.set_selectbox_label(a.cmb_globalwave_device,e);break;case c.DT_GSM:arskom.misc.set_selectbox_label(a.cmb_gsm_device,e);a.edt_imei.setValue(b.get_imei());a.edt_sim_number.setValue(b.get_sim());break;case c.DT_INMC:a.edt_inmc_mobile.setValue(b.get_imn());a.edt_inmc_serial.setValue(b.get_isn());a.edt_inmc_terminal_sn.setValue(b.get_terminal_sn());a.edt_inmc_dnid.setValue(""+b.get_dnid());a.edt_inmc_member_number.setValue(""+b.get_member_number());a.edt_inmc_sub_address.setValue(b.get_sub_address());
break;case c.DT_DPLUS:arskom.misc.set_selectbox_label(a.cmb_dplus_device,e);a.edt_dplus_id.setValue(""+b.get_skywave_id());break;case c.DT_DPLUS_GSM:arskom.misc.set_selectbox_label(a.cmb_hybrid_device,e);a.edt_hybrid_id.setValue(""+b.get_skywave_id());a.edt_hybrid_imei.setValue(b.get_imei());a.edt_hybrid_sim_number.setValue(b.get_sim());c=b.get_PredefinedMessageGroup();arskom.misc.is_na(c)||a.hybrid_pre_msg_grp_list.edt_code.setValue(""+c);break;case c.DT_ISATM2M:arskom.misc.set_selectbox_label(a.cmb_isatm2m_device,
e);a.edt_isatm2m_id.setValue(""+b.get_skywave_id());c=b.get_PredefinedMessageGroup();arskom.misc.is_na(c)||a.isatm2m_pre_msg_grp_list.edt_code.setValue(""+c);break;case c.DT_SATAMATICS:arskom.misc.set_selectbox_label(a.cmb_satamatics_device,e),a.edt_isn.setValue(b.get_isn())}a.edt_e_mail.setValue(b.get_e_mail());a.spn_critical_speed.setValue(b.get_critical_speed());a.spn_period_msg_send.setValue(b.get_period_msg_send());a.chk_position_msg.setValue(b.get_position_msg());a.cmb_device_type.setVisibility("excluded");
a.lbl_dv_type.setVisibility("excluded");b=a.getWindow();b.open();b.center()})},reset:function(){arskom.misc.set_selectbox_label(this.cmb_device_type,atr.proc.Consts.DT_GLOBALWAVE);this.__tQ();this.cmb_device_type.setVisibility("visible");this.lbl_dv_type.setVisibility("visible");this.cmb_globalwave_device.resetSelection();this.edt_globalwave_id.resetValue();this.cmb_satamatics_device.resetSelection();this.edt_isn.resetValue();this.cmb_gsm_device.resetSelection();this.edt_imei.resetValue();this.edt_sim_number.resetValue();
this.edt_inmc_mobile.resetValue();this.edt_inmc_serial.resetValue();this.edt_inmc_terminal_sn.resetValue();this.edt_inmc_dnid.resetValue();this.edt_inmc_member_number.resetValue();this.edt_inmc_sub_address.resetValue();this.cmb_dplus_device.resetSelection();this.edt_dplus_id.resetValue();this.cmb_hybrid_device.resetSelection();this.edt_hybrid_id.resetValue();this.edt_hybrid_imei.resetValue();this.edt_hybrid_sim_number.resetValue();this.cmb_isatm2m_device.resetSelection();this.edt_isatm2m_id.resetValue();
this.hybrid_pre_msg_grp_list.edt_code.resetValue();this.hybrid_pre_msg_grp_list.edt_description.resetValue();this.isatm2m_pre_msg_grp_list.edt_code.resetValue();this.isatm2m_pre_msg_grp_list.edt_description.resetValue();this.edt_e_mail.resetValue();this.spn_critical_speed.setValue(100);this.spn_period_msg_send.setValue(10);this.chk_position_msg.setValue(false)},create_btn_save:function(){var a=atr.draw.DeviceDetail.prototype.create_btn_save.call(this);a.addListener("execute",this.on_btn_save_execute,
this);return a},on_btn_save_execute:function(){function a(a){a=a.getSelection()[0].getModel();return arskom.misc.is_na(a)?(alert(b.tr("Please select a device!")),false):a}var b=this;b.btn_save.setIcon("atr/loaders/loader1.gif");var c=b.get_wsc().c.cvs,d=c.get_object("track.core","CommTerminal");d.set_e_mail(b.edt_e_mail.getValue());d.set_critical_speed(b.spn_critical_speed.getValue());d.set_period_msg_send(b.spn_period_msg_send.getValue());d.set_position_msg(b.chk_position_msg.getValue());var e=null,
e=atr.proc.Consts,f=b.cmb_device_type.getSelection()[0].getModel();switch(parseInt(f)){case e.DT_GLOBALWAVE:e=parseInt(a(b.cmb_globalwave_device));if(e===false)return;d.set_globalwave_id(b.edt_globalwave_id.getValue());break;case e.DT_GSM:e=parseInt(a(b.cmb_gsm_device));if(e===false)return;d.set_sim(b.edt_sim_number.getValue());d.set_imei(b.edt_imei.getValue());break;case e.DT_INMC:d.set_imn(b.edt_inmc_mobile.getValue());d.set_isn(b.edt_inmc_serial.getValue());d.set_terminal_sn(b.edt_inmc_terminal_sn.getValue());
d.set_dnid(parseInt(b.edt_inmc_dnid.getValue()));d.set_member_number(parseInt(b.edt_inmc_member_number.getValue()));d.set_sub_address(b.edt_inmc_sub_address.getValue());e=10;break;case e.DT_DPLUS:e=parseInt(a(b.cmb_dplus_device));if(e===false)return;d.set_skywave_id(parseInt(b.edt_dplus_id.getValue()));break;case e.DT_DPLUS_GSM:e=parseInt(a(b.cmb_hybrid_device));if(e===false)return;d.set_skywave_id(parseInt(b.edt_hybrid_id.getValue()));d.set_imei(b.edt_hybrid_imei.getValue());d.set_sim(b.edt_hybrid_sim_number.getValue());
f=b.hybrid_pre_msg_grp_list.edt_code.getValue();arskom.misc.is_na(f)||d.set_PredefinedMessageGroup(parseInt(g));d.set_PredefinedMessageGroup(parseInt(f));break;case e.DT_ISATM2M:e=parseInt(a(b.cmb_isatm2m_device));if(e===false)return;d.set_skywave_id(parseInt(b.edt_isatm2m_id.getValue()));var g=b.isatm2m_pre_msg_grp_list.edt_code.getValue();arskom.misc.is_na(g)||d.set_PredefinedMessageGroup(parseInt(g));break;case e.DT_SATAMATICS:e=parseInt(a(b.cmb_satamatics_device));if(e===false)return;d.set_isn(b.edt_isn.getValue());
break;default:throw Error("Index ayarlamasinin yapilmasi lazim.");}arskom.misc.is_na(e)||d.set_device(e);g=function(a){b.on_btn_close_execute();b.fireDataEvent("successful_save",a)};arskom.misc.is_na(b.get_comm_terminal_id())?c.easy(atr.proc.CommTerminal.ADD,b.get_domain_name(),b.get_fleet_id(),b.get_vehicle_id(),d,g):(d.set_id(b.get_comm_terminal_id()),c.easy(atr.proc.CommTerminal.EDT,b.get_domain_name(),b.get_fleet_id(),b.get_vehicle_id(),d,g))},__tS:function(){return this.get_factory().get_instance(atr.impl.predefined_message_group.List,
function(){})},create_grp_isatm2m_pre_msg_grp:function(){var a=atr.draw.DeviceDetail.prototype.create_grp_isatm2m_pre_msg_grp.call(this),b=this;this.isatm2m_pre_msg_grp_list=new arskom.ui.impl.SelectItem(function(){var a=b.__tS();a.set_wsc(b.get_wsc());a.set_allow_private_components(false);a.set_show_filters(false);a.set_code("id");a.set_desc("name");return a});a.add(this.isatm2m_pre_msg_grp_list.getWidget(),{edge:0});return a},create_grp_hybrid_pre_msg_grp:function(){var a=atr.draw.DeviceDetail.prototype.create_grp_hybrid_pre_msg_grp.call(this),
b=this;this.hybrid_pre_msg_grp_list=new arskom.ui.impl.SelectItem(function(){var a=b.__tS();a.set_wsc(b.get_wsc());a.set_allow_private_components(false);a.set_show_filters(false);a.set_code("id");a.set_desc("name");return a});a.add(this.hybrid_pre_msg_grp_list.getWidget(),{edge:0});return a},create_btn_close:function(){var a=atr.draw.DeviceDetail.prototype.create_btn_close.call(this);a.addListener("execute",this.on_btn_close_execute,this);return a},on_btn_close_execute:function(){this.getWindow().close()},
show:function(){if(arskom.misc.is_na(this.get_comm_terminal_id())){var a=this.getWindow();a.open();a.center()}else this.__tR()}}})})();
(function(){qx.Class.define("atr.impl.predefined_message_group.List",{extend:arskom.ui.impl.DataDisplay,properties:{_allow_private_components:{check:"Boolean",apply:"apply_allow_private_components"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id");this.set_allow_delete(false)},members:{__tT:null,apply_allow_private_components:function(a){this.set_allow_add(a);this.set_allow_edit(a);this.set_allow_delete(a);this.set_allow_detail(a)},__td:function(){this.refresh()},
__tU:function(){if(this.__tT==null){var a=atr.impl.predefined_message_group.Detail.getInstance();a.addListener("successful_save",this.__td,this);this.__tT=a}return this.__tT},create_table:function(){var a=this.table=new atr.comp.PredefinedMessageGroupTable;a.setMargin(1);return a},on_add_dialog_successful_save:function(){this.refresh()},pop_add_dialog:function(){var a=this.__tU();a.reset();a.set_wsc(this.get_wsc());a.set_predefined_message_group_id(null);a.show()},pop_edt_dialog:function(a){var b=
this.__tU();b.reset();b.set_wsc(this.get_wsc());b.set_predefined_message_group_id(a[0]);b.show()},pop_details_dialog:function(a){var b=this.__tU();b.reset();b.set_wsc(this.get_wsc());b.set_predefined_message_group_id(a[0]);b.set_allow_save(false);b.show()},on_btn_close_toolbar_execute:function(){arskom.ui.impl.DataDisplay.prototype.on_btn_close_toolbar_execute.call(this)},create_toolBar:function(){var a=arskom.ui.impl.DataDisplay.prototype.create_toolBar.call(this),b=new qx.ui.toolbar.Part;b.add(this.__tV());
a.add(b);return a},__tV:function(){var a=this.btn_pre_msg_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Predefined Message"));a.setIcon("arskom/icons/22x22/edit_pen.png");a.addListener("execute",this.__tX,this);return a},__tW:function(){return this.get_factory().get_instance(atr.impl.predefined_message.List,function(){})},__tX:function(){var a=arskom.misc.selected_table_cells(this.table,this.get_pk_column_name());if(a.length==0)return alert(this.tr("Please select an entry")),false;var b=this.__tW();
b.set_wsc(this.get_wsc());b.set_predefined_message_group_id(a[0]);b.reset();b.refresh();b.show()},reset:function(){this.set_allow_delete(false);this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Predefined Messages Group"),"","").open();this.refresh()}}})})();
(function(){qx.Class.define("atr.draw.PredefinedMessageGroupDetail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,chb_lock:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(134);a.setWidth(297);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setMaxHeight(26);a.setMaxWidth(75);a.setLabel(this.tr("Close"));a.setMargin(1);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setMaxHeight(26);a.setMaxWidth(75);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());
a.setMargin(1);a.add(this.create_label(),{flex:1});a.add(this.create_edt_name(),{flex:1});a.add(this.create_chb_lock(),{flex:1});a.add(this.create_horizontalLayout_2_implicit_container(),{flex:1});return a},create_chb_lock:function(){var a=this.chb_lock=new qx.ui.form.CheckBox;a.setLabel(this.tr("Lock"));a.setMargin(1);return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setMargin(1);return a},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},
create_horizontalLayout_2_implicit_container:function(){var a=this.horizontalLayout_2_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMargin(1);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer_4(),{flex:1});return a},create_horizontalSpacer_4:function(){var a=this.horizontalSpacer_4=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(118);a.setMargin(1);return a},create_label:function(){var a=this.label=
new qx.ui.basic.Label;a.setValue(this.tr("Predefined Message Group Name"));a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},edt_name:null,horizontalLayout_2:null,horizontalLayout_2_implicit_container:null,horizontalSpacer_4:null,label:null,verticalLayout:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.predefined_message_group.Detail",{extend:atr.draw.PredefinedMessageGroupDetail,type:"singleton",include:[qx.locale.MTranslation],properties:{_allow_save:{check:"Boolean",apply:"apply_allow_save",init:true},_wsc:{check:"soap.ClientCollection"},_predefined_message_group_id:{check:"Integer",nullable:true,init:null}},events:{successful_save:"qx.event.type.Data"},construct:function(){atr.draw.PredefinedMessageGroupDetail.call(this);this.__tY();this.__cy=(new qx.ui.window.Window(this.tr("Predefined Message Group - Detail"),
"")).set({width:300,height:95})},members:{__cy:null,__tY:function(){this.btn_save.addListener("execute",this.save,this);this.btn_close.addListener("execute",this.close,this)},apply_allow_save:function(a){a==true?this.btn_save.setVisibility("visible"):this.btn_save.setVisibility("excluded")},reset:function(){this.edt_name.resetValue();this.chb_lock.setValue(false);this.set_allow_save(true)},show:function(){this.set_to_screen()},private_show:function(){this.__cy.setLayout(new qx.ui.layout.VBox(10));
this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},set_to_screen:function(){var a=this,b=this.get_predefined_message_group_id();arskom.misc.is_na(b)?a.private_show():a.get_wsc().c.cvs.easy(atr.proc.PredefinedMessageGroup.GET,b,function(b){a.edt_name.setValue(b.get_name());a.chb_lock.setValue(b.get_lock());a.private_show()})},test_screen_arguments:function(){return arskom.misc.is_na(this.edt_name.getValue())?
(alert("Please enter name"),false):true},save:function(){var a=this;if(this.test_screen_arguments()){var b=this.get_wsc().c.cvs,c=b.get_object("track.core","PredefinedMessageGroup");c.set_name(a.edt_name.getValue());c.set_lock(a.chb_lock.getValue());var d=function(b){a.close();a.fireDataEvent("successful_save",b)};this.get_predefined_message_group_id()==null?b.easy(atr.proc.PredefinedMessageGroup.ADD,c,d):(c.set_id(this.get_predefined_message_group_id()),b.easy(atr.proc.PredefinedMessageGroup.EDT,
c,d))}},close:function(){this.__cy.close()}}})})();(function(){qx.Class.define("atr.proc.PredefinedMessageGroup",{type:"static",statics:{ADD:"add_predefined_message_group",EDT:"edt_predefined_message_group",GET:"get_predefined_message_group",GET_ALL:"get_all_predefined_message_group",GET_ALL_COUNT:"get_all_predefined_message_group_count"}})})();
(function(){qx.Class.define("atr.comp.PredefinedMessageGroupTable",{extend:arskom.ui.Table,properties:{},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("ID"),this.tr("Name"),this.tr("Lock")]);this.set_fields(["id","name","lock"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters,a=new soap.RemoteImpl(a,atr.proc.PredefinedMessageGroup.GET_ALL_COUNT,
atr.proc.PredefinedMessageGroup.GET_ALL,b);a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a)},get_default_view:function(){arskom.ui.Table.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnWidth(0,90);a.setColumnWidth(1,120);a.setColumnWidth(2,90)},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);this.getTableColumnModel().setDataCellRenderer(2,new qx.ui.table.cellrenderer.Boolean)}}})})();
(function(){qx.Class.define("atr.impl.predefined_message.List",{extend:arskom.ui.impl.DataDisplay,properties:{_predefined_message_group_id:{check:"Integer",apply:"apply_predefined_message_group_id"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id");this.set_allow_edit(false);this.set_allow_delete(false)},members:{__ua:null,apply_predefined_message_group_id:function(a){this.table.set_predefined_message_group_id(a)},__td:function(){this.refresh()},__ub:function(){if(this.__ua==
null){var a=atr.impl.predefined_message.Detail.getInstance();a.addListener("successful_save",this.__td,this);this.__ua=a}return this.__ua},create_table:function(){var a=this.table=new atr.comp.PredefinedMessageTable;a.setMargin(1);return a},on_add_dialog_successful_save:function(){this.refresh()},pop_add_dialog:function(){var a=this.__ub();a.reset();a.set_wsc(this.get_wsc());a.set_predefined_message_group_id(this.get_predefined_message_group_id());a.set_pre_message_id(null);a.show()},pop_details_dialog:function(a){var b=
this.__ub();b.reset();b.set_wsc(this.get_wsc());b.set_predefined_message_group_id(this.get_predefined_message_group_id());b.set_pre_message_id(a[0]);b.set_allow_save(false);b.show()},on_btn_close_toolbar_execute:function(){arskom.ui.impl.DataDisplay.prototype.on_btn_close_toolbar_execute.call(this)},reset:function(){this.set_allow_edit(false);this.set_allow_delete(false);this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Predefined Messages"),
"","").open();this.refresh()}}})})();
(function(){qx.Class.define("atr.draw.PredefinedMessageDetail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,cmb_terminal:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(86);a.setWidth(577);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setMaxHeight(26);a.setMaxWidth(75);a.setLabel(this.tr("Close"));a.setMargin(1);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setMaxHeight(26);a.setMaxWidth(75);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());
a.setMargin(1);a.add(this.create_horizontalLayout_implicit_container(),{flex:1});a.add(this.create_horizontalLayout_2_implicit_container(),{flex:1});return a},create_cmb_terminal:function(){var a=this.cmb_terminal=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("To Terminal"),null,"1"));a.add(new qx.ui.form.ListItem(this.tr("From Terminal"),null,"2"));return a},create_edt_pre_message:function(){var a=this.edt_pre_message=new qx.ui.form.TextField;
a.setMargin(1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalLayout_2_implicit_container:function(){var a=this.horizontalLayout_2_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMargin(1);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer_4(),
{flex:1});return a},create_horizontalLayout_implicit_container:function(){var a=this.horizontalLayout_implicit_container=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMargin(1);a.add(this.create_cmb_terminal(),{flex:1});a.add(this.create_label_2(),{flex:1});a.add(this.create_spn_message_id(),{flex:1});a.add(this.create_label(),{flex:1});a.add(this.create_edt_pre_message(),{flex:1});return a},create_horizontalSpacer_4:function(){var a=this.horizontalSpacer_4=new qx.ui.core.Spacer;
a.setHeight(20);a.setWidth(118);a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Message: "));a.setMargin(1);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("Message ID: "));a.setMargin(1);return a},create_spn_message_id:function(){var a=this.spn_message_id=new qx.ui.form.Spinner;a.setMaxWidth(60);a.setMargin(1);a.setAllowGrowY(false);return a},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},edt_pre_message:null,horizontalLayout:null,horizontalLayout_2:null,horizontalLayout_2_implicit_container:null,horizontalLayout_implicit_container:null,horizontalSpacer_4:null,label:null,label_2:null,spn_message_id:null,verticalLayout:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.predefined_message.Detail",{extend:atr.draw.PredefinedMessageDetail,type:"singleton",include:[qx.locale.MTranslation],properties:{_allow_save:{check:"Boolean",apply:"apply_allow_save",init:true},_predefined_message_group_id:{check:"Integer",nullable:true,init:null},_wsc:{check:"soap.ClientCollection"},_pre_message_id:{check:"Integer",nullable:true,init:null}},events:{successful_save:"qx.event.type.Data"},construct:function(){atr.draw.PredefinedMessageDetail.call(this);
this.__tY();this.__cy=(new qx.ui.window.Window(this.tr("Predefined Message - Detail"),"")).set({width:580,height:90})},members:{__cy:null,__tY:function(){this.btn_save.addListener("execute",this.save,this);this.btn_close.addListener("execute",this.close,this)},apply_allow_save:function(a){a==true?this.btn_save.setVisibility("visible"):this.btn_save.setVisibility("excluded")},reset:function(){this.edt_pre_message.resetValue();this.spn_message_id.resetValue();this.cmb_terminal.resetSelection();this.set_allow_save(true)},
show:function(){this.set_to_screen()},private_show:function(){this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},set_to_screen:function(){var a=this,b=this.get_pre_message_id();arskom.misc.is_na(b)?a.private_show():a.get_wsc().c.cvs.easy(atr.proc.PredefinedMessage.GET,a.get_predefined_message_group_id(),
a.get_pre_message_id(),function(b){a.edt_pre_message.setValue(b.get_message());a.spn_message_id.setValue(b.get_message_id());b=b.get_direction();arskom.misc.set_selectbox_label(a.cmb_terminal,b);a.private_show()})},test_screen_arguments:function(){if(arskom.misc.is_na(this.edt_pre_message.getValue()))return alert("Please enter Predefined Message"),false;return arskom.misc.is_na(this.spn_message_id.getValue())?(alert("Please enter Predefined Message ID"),false):true},save:function(){var a=this;if(this.test_screen_arguments()){var b=
this.get_wsc().c.cvs,c=b.get_object("track.core","PredefinedMessage");c.set_PredefinedMessageGroup(a.get_predefined_message_group_id());c.set_message(a.edt_pre_message.getValue());c.set_message_id(a.spn_message_id.getValue());c.set_direction(""+a.cmb_terminal.getSelection()[0].getModel());var d=function(b){a.close();a.fireDataEvent("successful_save",b)};this.get_pre_message_id()==null&&b.easy(atr.proc.PredefinedMessage.ADD,c,d)}},close:function(){this.__cy.close()}}})})();
(function(){qx.Class.define("atr.proc.PredefinedMessage",{type:"static",statics:{ADD:"add_predefined_message",GET:"get_predefined_message",GET_ALL:"get_all_predefined_message",GET_ALL_COUNT:"get_all_predefined_message_count",GET_BY_DEV_ALL:"get_all_predefined_message_by_device",GET_BY_DEV_ALL_COUNT:"get_all_predefined_message_by_device_count"}})})();
(function(){qx.Class.define("atr.comp.PredefinedMessageTable",{extend:arskom.ui.Table,properties:{_predefined_message_group_id:{check:"Integer"}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("ID"),this.tr("Predefined Message Group"),this.tr("Message ID"),this.tr("Message"),this.tr("Direction")]);this.set_fields(["id","PredefinedMessageGroup","message_id","message","direction"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},
members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters;b.add("pre_msg_grp_id",this.get_predefined_message_group_id());a=new soap.RemoteImpl(a,atr.proc.PredefinedMessage.GET_ALL_COUNT,atr.proc.PredefinedMessage.GET_ALL,b);a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a)},get_default_view:function(){arskom.ui.Table.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnWidth(0,90);a.setColumnWidth(1,
90);a.setColumnWidth(2,90);a.setColumnWidth(3,90);a.setColumnWidth(4,90)}}})})();
(function(){qx.Class.define("arskom.ui.draw.SelectItem",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_open_list:null,centralwidget:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(44);a.setWidth(304);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=
new qx.ui.layout.VBox},create_btn_open_list:function(){var a=this.btn_open_list=new qx.ui.form.Button;a.setMaxWidth(30);a.setLabel(this.tr("..."));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMargin(1);a.add(this.create_edt_code(),{flex:1});a.add(this.create_btn_open_list(),{flex:1});a.add(this.create_edt_description(),{flex:1});return a},create_edt_code:function(){var a=this.edt_code=new qx.ui.form.TextField;
a.setMargin(1);return a},create_edt_description:function(){var a=this.edt_description=new qx.ui.form.TextField;a.setMargin(1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},edt_code:null,edt_description:null,horizontalLayout:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.SelectItem",{extend:arskom.ui.draw.SelectItem,properties:{},construct:function(a){arskom.ui.draw.SelectItem.call(this);this.__bM=a},members:{__bM:null,create_btn_open_list:function(){var a=arskom.ui.draw.SelectItem.prototype.create_btn_open_list.call(this);a.addListener("execute",this.on_btn_open_execute,this);return a},__uc:function(){var a=this;return a.get_factory().get_instance(a.get_data_display_class(),function(b){b.addListener("select_row",a._on_select_row_bring,
a)})},on_btn_open_execute:function(){if(this.__bM){var a=this.__bM();a.addListener("select_row",this.__Bz,this);a.addListener("select_pair",this.__Bz,this);a.set_allow_select_bar(true);a.refresh();a.show()}},__Bz:function(a){a=a.getData();this.edt_code.setValue(""+a[0]);this.edt_description.setValue(""+a[1])},get_id:function(){return this.edt_code.getValue().parseInt()},get_description:function(){return this.edt_description.getValue().parseInt()}}})})();
(function(){qx.Class.define("atr.comp.CommTerminalTable",{extend:arskom.ui.Table,properties:{_domain_name:{check:"String"},_fleet_id:{check:"Integer",init:null,nullable:true},_vehicle_id:{check:"Integer",init:null,nullable:true}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("ID"),this.tr("Type"),this.tr("Device ID"),this.tr("Model")]);this.set_fields(["id","type","device_id","model"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},
members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters;b.add("domain_name",this.get_domain_name());b.add("fleet_id",this.get_fleet_id());b.add("vehicle_id",this.get_vehicle_id());a=new soap.RemoteImpl(a,atr.proc.CommTerminal.GET_ALL_COUNT,atr.proc.CommTerminal.GET_ALL,b,function(a){for(var b=0;b<a.length;++b){var e=parseInt(a[b].device),f=atr.proc.Consts.DEVICE_TYPES[e],g=atr.proc.Consts;f==g.DT_INMC?a[b].device_id=a[b].dnid+", "+
a[b].member_number:a[b].device_id=a[b][g.DT_MAP[f]];a[b].type=g.DEVICE_TYPE_NAMES[f];a[b].model=g.DEVICE_MODELS[e]}});a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a)},get_default_view:function(){var a=this.getTableColumnModel();a.setColumnVisible(0,false);a.setColumnWidth(0,90);a.setColumnWidth(1,90);a.setColumnWidth(2,90);a.setColumnWidth(3,120)}}})})();
(function(){qx.Class.define("atr.draw.vehicle.Option",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,centralwidget:null,cmb_image_option:null,cmb_user_image_color:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(345);a.setWidth(359);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_gridLayout());a.setMargin(1);a.add(this.create_lbl_image_color_alg(),{column:0,row:0});a.add(this.create_cmb_image_option(),{column:1,row:0});a.add(this.create_tab_op(),{colSpan:2,column:0,row:1});a.add(this.create_verticalSpacer(),{column:1,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,
1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_cmb_image_option:function(){var a=this.cmb_image_option=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Fleet"),null,"fleet"));a.add(new qx.ui.form.ListItem(this.tr("Vehicle"),null,"vehicle"));a.add(new qx.ui.form.ListItem(this.tr("User"),null,"user"));return a},create_cmb_user_image_color:function(){var a=this.cmb_user_image_color=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);
a.add(new qx.ui.form.ListItem(this.tr("Blue"),null,"0000ff"));a.add(new qx.ui.form.ListItem(this.tr("Green"),null,"00ff00"));a.add(new qx.ui.form.ListItem(this.tr("Turquoise"),null,"00ffff"));a.add(new qx.ui.form.ListItem(this.tr("Red"),null,"ff0000"));a.add(new qx.ui.form.ListItem(this.tr("Pink"),null,"ff00ff"));a.add(new qx.ui.form.ListItem(this.tr("Classic"),null,"ff776b"));a.add(new qx.ui.form.ListItem(this.tr("Yellow"),null,"ffff00"));a.add(new qx.ui.form.ListItem(this.tr("White"),null,"ffffff"));
a.add(new qx.ui.form.ListItem(this.tr("Black"),null,"000000"));return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_gridLayout_4:function(){return this.gridLayout_4=new qx.ui.layout.Grid},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Vehicle color will be set as current Fleet's color."));a.setMargin(1);return a},create_lbl_image_color_alg:function(){var a=this.lbl_image_color_alg=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);
a.setValue(this.tr("Image Color ALG"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_on_way:function(){var a=this.lbl_on_way=new qx.ui.basic.Label;a.setValue(this.tr("On the way"));a.setMargin(1);return a},create_lbl_opt_image_color:function(){var a=this.lbl_opt_image_color=new qx.ui.basic.Label;a.setWidth(100);a.setMaxWidth(100);a.setValue(this.tr("Image Color"));a.setMargin(1);a.setMinWidth(100);return a},create_lbl_stop:function(){var a=this.lbl_stop=new qx.ui.basic.Label;a.setValue(this.tr("Stop"));
a.setMargin(1);return a},create_lbl_vh_no_pos:function(){var a=this.lbl_vh_no_pos=new qx.ui.basic.Label;a.setValue(this.tr("Could not get the position"));a.setMargin(1);return a},create_tab_fleet:function(){var a=this.tab_fleet=new qx.ui.tabview.Page;a.setLabel(this.tr("Fleet"));a.setMargin(1);a.setLayout(this.create_verticalLayout_7());a.add(this.create_label(),{flex:1});return a},create_tab_op:function(){var a=this.tab_op=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab_fleet());a.add(this.create_tab_vehicle());
a.add(this.create_tab_user());return a},create_tab_user:function(){var a=this.tab_user=new qx.ui.tabview.Page;a.setLabel(this.tr("User"));a.setMargin(1);a.setLayout(this.create_gridLayout_4());a.add(this.create_lbl_opt_image_color(),{column:0,row:0});a.add(this.create_cmb_user_image_color(),{column:1,row:0});a.add(this.create_verticalSpacer_3(),{column:1,row:1});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_tab_vehicle:function(){var a=
this.tab_vehicle=new qx.ui.tabview.Page;a.setLabel(this.tr("Vehicle"));a.setMargin(1);a.setLayout(this.create_verticalLayout_6());a.add(this.create_lbl_vh_no_pos(),{flex:1});a.add(this.create_lbl_stop(),{flex:1});a.add(this.create_lbl_on_way(),{flex:1});return a},create_verticalLayout_6:function(){return this.verticalLayout_6=new qx.ui.layout.VBox},create_verticalLayout_7:function(){return this.verticalLayout_7=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;
a.setHeight(24);a.setWidth(20);a.setMargin(1);return a},create_verticalSpacer_3:function(){var a=this.verticalSpacer_3=new qx.ui.core.Spacer;a.setHeight(183);a.setWidth(20);a.setMargin(1);return a},gridLayout:null,gridLayout_4:null,label:null,lbl_image_color_alg:null,lbl_on_way:null,lbl_opt_image_color:null,lbl_stop:null,lbl_vh_no_pos:null,tab_fleet:null,tab_op:null,tab_user:null,tab_vehicle:null,verticalLayout_6:null,verticalLayout_7:null,verticalSpacer:null,verticalSpacer_3:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.vehicle.Option",{extend:atr.draw.vehicle.Option,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_color_option_id:{check:"Integer",init:null,nullable:true},_vehicle_id:{check:"Integer",init:null,nullable:true},_kvs_cache:{check:"arskom.KvsCache"}},construct:function(){atr.draw.vehicle.Option.call(this);var a=new qx.ui.window.Window("Vehicle","");a.set({modal:true,width:450,height:660,layout:new qx.ui.layout.VBox(10),
showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a);this.set_kvs_cache(arskom.KvsCache.getInstance())},events:{close:"qx.event.type.Data"},members:{apply_wsc:function(a){this.get_kvs_cache().set_wsc(a)},apply_allow_tab_vehicle:function(){},create_grp_vehicle_detail:function(){var a=atr.draw.vehicle.Option.prototype.create_grp_vehicle_detail.call(this);a.getLayout().setColumnFlex(1,100);
return a},create_btn_remove_from_list:function(){var a=atr.draw.vehicle.Option.prototype.create_btn_remove_from_list.call(this);a.addListener("execute",this.on_btn_remove_from_list_execute,this);return a},create_cmb_fleet:function(){var a=atr.draw.vehicle.Option.prototype.create_cmb_fleet.call(this);a.set_must_select(true);a.addListener("changeSelection",this.on_cmb_fleet_change_selection,this);return a},refresh:function(){this.set_values()},reset:function(){arskom.misc.set_selectbox_label(this.cmb_image_option,
"user");arskom.misc.set_selectbox_label(this.cmb_image_option,"fleet");this.set_color_option_id(null)},set_values:function(){var a=this,b=a.get_vehicle_id();arskom.misc.is_na(b)||a.get_wsc().c.cvs.easy(atr.proc.UserVehicleColorOption.GET,b,function(b){if(!arskom.misc.is_na(b)){a.set_color_option_id(b.get_id());var d=b.get_option();arskom.misc.set_selectbox_label(a.cmb_image_option,d);d=="user"&&arskom.misc.set_selectbox_label(a.cmb_user_image_color,b.get_color())}})},save:function(){var a=this,b=
this.get_wsc().c.cvs,c=b.get_object("track.core","UserVehicleColorOption");c.set_Vehicle(a.get_vehicle_id());var d=a.cmb_image_option.getSelection()[0].getModel();c.set_option(d);d=="user"&&c.set_color(a.cmb_user_image_color.getSelection()[0].getModel());var d=function(){a.save_handler()},e=a.get_color_option_id();arskom.misc.is_na(e)?b.easy(atr.proc.UserVehicleColorOption.ADD,c,d):(c.set_id(e),b.easy(atr.proc.UserVehicleColorOption.EDT,c,d))},create_cmb_image_option:function(){var a=atr.draw.vehicle.Option.prototype.create_cmb_image_option.call(this);
a.addListener("changeSelection",this.__ud,this);return a},__ud:function(){var a=this.cmb_image_option.getSelection()[0].getModel();if(!arskom.misc.is_na(a))switch(a){case "fleet":arskom.misc.replace_pages(this.tab_op,[this.tab_fleet]);break;case "vehicle":arskom.misc.replace_pages(this.tab_op,[this.tab_vehicle]);break;case "user":arskom.misc.replace_pages(this.tab_op,[this.tab_user])}},create_lbl_vh_no_pos:function(){var a=atr.draw.vehicle.Option.prototype.create_lbl_vh_no_pos.call(this);a.setBackgroundColor("#000000");
a.setTextColor("#ffffff");return a},create_lbl_stop:function(){var a=atr.draw.vehicle.Option.prototype.create_lbl_stop.call(this);a.setBackgroundColor("#ff0000");a.setTextColor("#ffffff");return a},create_lbl_on_way:function(){var a=atr.draw.vehicle.Option.prototype.create_lbl_on_way.call(this);a.setBackgroundColor("#00ff00");a.setTextColor("#000000");return a},close:function(){this.getWindow().close()},save_handler:function(){this.fireDataEvent("close",null)}}})})();
(function(){qx.Class.define("atr.proc.UserVehicleColorOption",{type:"static",statics:{ADD:"add_color_option",GET:"get_color_option",EDT:"edt_color_option"}})})();
(function(){qx.Class.define("atr.draw.vehicle.AssignedFleet",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_wnd())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,bottom_bar_2:null,bottom_bar_3:null,btn_add_into_list:null,btn_assign:null,btn_remove_from_list:null,centralwidget:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_bottom_bar_2:function(){var a=this.bottom_bar_2=new qx.ui.container.Composite(this.create_horizontalLayout_3());
a.setHeight(48);a.setMaxHeight(48);a.setMargin(1);a.setMinHeight(48);a.add(this.create_btn_assign(),{flex:1});a.add(this.create_btn_remove_from_list(),{flex:1});a.add(this.create_hs1(),{flex:1});return a},create_bottom_bar_3:function(){var a=this.bottom_bar_3=new qx.ui.container.Composite(this.create_horizontalLayout_4());a.setMargin(1);a.add(this.create_btn_add_into_list(),{flex:1});a.add(this.create_hs1_2(),{flex:1});return a},create_btn_add_into_list:function(){var a=this.btn_add_into_list=new qx.ui.form.Button;
a.setHeight(24);a.setWidth(90);a.setMaxHeight(24);a.setMaxWidth(90);a.setLabel(this.tr("Add"));a.setMargin(1);a.setMinWidth(90);a.setMinHeight(24);return a},create_btn_assign:function(){var a=this.btn_assign=new qx.ui.form.Button;a.setHeight(24);a.setWidth(100);a.setMaxHeight(24);a.setMaxWidth(100);a.setLabel(this.tr("Assign Fleets"));a.setMargin(1);a.setMinWidth(100);a.setMinHeight(24);return a},create_btn_remove_from_list:function(){var a=this.btn_remove_from_list=new qx.ui.form.Button;a.setHeight(24);
a.setWidth(90);a.setMaxHeight(24);a.setMaxWidth(90);a.setLabel(this.tr("Remove"));a.setMargin(1);a.setMinWidth(90);a.setMinHeight(24);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_grb_corporation(),{flex:1});a.add(this.create_grb_fleet(),{flex:1});a.add(this.create_bottom_bar_3(),{flex:1});a.add(this.create_grb_fleet_2(),{flex:1});a.add(this.create_bottom_bar_2(),{flex:1});return a},create_grb_corporation:function(){var a=
this.grb_corporation=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Corporations "));a.setMargin(1);a.setLayout(this.create_horizontalLayout_5());a.add(this.create_tbl_corporation(),{flex:1});return a},create_grb_fleet:function(){var a=this.grb_fleet=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Fleets"));a.setMargin(1);a.setLayout(this.create_horizontalLayout_6());a.add(this.create_tbl_fleet(),{flex:1});return a},create_grb_fleet_2:function(){var a=this.grb_fleet_2=new qx.ui.groupbox.GroupBox;
a.setLegend(this.tr("Selected Fleets"));a.setMargin(1);a.setLayout(this.create_horizontalLayout_8());a.add(this.create_tbl_assigned_fleets(),{flex:1});return a},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_horizontalLayout_4:function(){return this.horizontalLayout_4=new qx.ui.layout.HBox},create_horizontalLayout_5:function(){return this.horizontalLayout_5=new qx.ui.layout.HBox},create_horizontalLayout_6:function(){return this.horizontalLayout_6=
new qx.ui.layout.HBox},create_horizontalLayout_8:function(){return this.horizontalLayout_8=new qx.ui.layout.HBox},create_hs1:function(){var a=this.hs1=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(4E3);a.setMargin(1);return a},create_hs1_2:function(){var a=this.hs1_2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(4E3);a.setMargin(1);return a},create_tbl_assigned_fleets:function(){var a=this.tbl_assigned_fleets=new qx.ui.table.Table;a.setMargin(1);return a},create_tbl_corporation:function(){var a=
this.tbl_corporation=new arskom.ui.comp.SmallCorporationTable;a.setMargin(1);return a},create_tbl_fleet:function(){var a=this.tbl_fleet=new atr.comp.FleetTable;a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_wnd:function(){var a=this.wnd=new qx.ui.container.Composite(this.create___lv());a.setHeight(576);a.setWidth(413);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},grb_corporation:null,grb_fleet:null,grb_fleet_2:null,
horizontalLayout_3:null,horizontalLayout_4:null,horizontalLayout_5:null,horizontalLayout_6:null,horizontalLayout_8:null,hs1:null,hs1_2:null,tbl_assigned_fleets:null,tbl_corporation:null,tbl_fleet:null,verticalLayout:null,wnd:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.comp.SmallCorporationTable",{extend:arskom.ui.Table,construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("id"),this.tr("Domain"),this.tr("Name")]);this.set_fields(["id","domain","name"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);this.setColumnVisibilityButtonVisible(false)},members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters,
a=new soap.RemoteImpl(a,arskom.ui.proc.Corporation.GET_ALL_NAME_COUNT,arskom.ui.proc.Corporation.GET_ALL_NAME,b);a.setColumns(this.get_titles(),this.get_fields());b=this.getTableModel();this.setTableModel(a);b&&b.dispose();this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},get_default_view:function(){arskom.ui.Table.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnVisible(0,false);a.setColumnWidth(1,90);a.setColumnWidth(2,180)}}})})();
(function(){qx.Class.define("arskom.ui.proc.Corporation",{type:"static",statics:{ADD:"add_corporation",GET:"get_corporation",EDT:"edt_corporation_admin",DEL:"del_corporation",GET_ALL:"get_all_corporation",GET_ALL_COUNT:"get_all_corporation_count",GET_ALL_NAME:"get_all_corporation_name",GET_ALL_NAME_COUNT:"get_all_corporation_name_count"}})})();
(function(){qx.Class.define("atr.comp.FleetTable",{extend:arskom.ui.Table,properties:{_domain_name:{check:"String"}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("Id"),this.tr("Name"),this.tr("Type"),this.tr("Color")]);this.set_fields(["id","name","type","color"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters;
b.add("domain_name",this.get_domain_name());a=new soap.RemoteImpl(a,atr.proc.Fleet.GET_ALL_COUNT,atr.proc.Fleet.GET_ALL,b,function(a){for(var b=0;b<a.length;++b){var e=' width="100%" height="100%" bgcolor="#'+a[b].color+'" ';a[b].color="<table "+e+"><tr "+e+"><td "+e+">&nbsp;</td></tr></table>";switch(a[b].type.toString()){case "m":a[b].type="Maritime";break;case "t":a[b].type="Terrestrial"}}});a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a);arskom.ui.Table.prototype.refresh.call(this)},
get_default_view:function(){arskom.ui.Table.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnVisible(0,false);a.setColumnWidth(3,20)},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);this.getTableColumnModel().setDataCellRenderer(3,new qx.ui.table.cellrenderer.Html)}}})})();(function(){qx.Class.define("qx.ui.table.cellrenderer.Html",{extend:qx.ui.table.cellrenderer.Conditional,members:{_getContentHtml:function(a){return a.value||""},_getCellClass:function(){return"qooxdoo-table-cell"}}})})();
(function(){var a="OK";qx.Class.define("atr.impl.vehicle.AssignedFleet",{extend:atr.draw.vehicle.AssignedFleet,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_domain_name:{check:"String",init:null,nullable:true},_fleet_id:{check:"Integer",init:null,nullable:true},_vehicle_id:{check:"Integer",init:null,nullable:true},_allow_small_corp_table:{check:"Boolean",apply:"apply_allow_small_corp_table",init:true}},construct:function(){atr.draw.vehicle.AssignedFleet.call(this);
var a=new qx.ui.window.Window("Vehicle","");a.set({modal:true,width:450,height:660,layout:new qx.ui.layout.VBox(10),showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a);this.getWidget().addListener("appear",this.on_appear,this)},members:{get_taf_titles:function(){return[this.tr("Corporation ID"),this.tr("Domain Name"),this.tr("Fleet ID"),this.tr("Fleet Name"),this.tr("Primary Fleet")]},get_taf_fields:function(){return["corporation_id",
"domain_name","fleet_id","fleet_name","primary_fleet"]},apply_wsc:function(a){this.tbl_corporation.set_wsc(a);this.tbl_fleet.set_wsc(a)},apply_allow_small_corp_table:function(a){a==true?this.grb_corporation.setVisibility("visible"):this.grb_corporation.setVisibility("excluded")},create_tbl_assigned_fleets:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_tbl_assigned_fleets.call(this);a.addListener("appear",this.on_tbl_assigned_fleets_appear,this);arskom.misc.clear_table(a,this.get_taf_titles(),
this.get_taf_fields());var c=a.getTableColumnModel();c.setDataCellRenderer(4,new qx.ui.table.cellrenderer.Boolean);c.setCellEditorFactory(4,new qx.ui.table.celleditor.CheckBox);a.getTableModel().setColumnEditable(4,true);return a},on_tbl_assigned_fleets_appear:function(){function a(b){for(var d=[],e=0;e<b.length;e++)d.push([b[e].get_corporation_id(),b[e].get_domain_name(),b[e].get_fleet_id(),b[e].get_fleet_name(),b[e].get_is_primary_fleet()]);d.length!=0&&c.setData(d)}var c=this.tbl_assigned_fleets.getTableModel();
c.setData([]);var d=this.get_wsc().c.cvs,e=atr.proc.FleetVehicle.GET_ALL;e=="get_all_fleet_vehicle_admin"?d.easy(e,this.get_vehicle_id(),a):d.easy(e,this.get_domain_name(),this.get_vehicle_id(),a)},create_grp_vehicle_detail:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_grp_vehicle_detail.call(this);a.getLayout().setColumnFlex(1,100);return a},create_btn_remove_from_list:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_btn_remove_from_list.call(this);a.addListener("execute",
this.on_btn_remove_from_list_execute,this);return a},on_btn_remove_from_list_execute:function(){for(var a=this.tbl_assigned_fleets,c=a.getTableModel(),d=arskom.misc.selected_table_cells(a,"corporation_id"),a=arskom.misc.selected_table_cells(a,"fleet_id"),e=c.getData(),f=0;f<d.length;f++)for(var g=0;g<e.length;g++){var h=e[g],i=h[2];d[f]==h[0]&&a[f]==i&&c.removeRows(g,1)}},create_btn_assign:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_btn_assign.call(this);a.addListener("execute",
this.on_btn_assign_execute,this);return a},on_btn_assign_execute:function(){function b(b){b.toString()==a?alert("Vehicle has been assigned in the fleets!"):alert("An error has occured!\n"+b.toString())}for(var c=null,d=new qx.data.Array,e=this.tbl_assigned_fleets.getTableModel().getData(),f=this.get_wsc().c.cvs,g=0;g<e.length;g++){var h=e[g],i=h[2];if(c==null&&h[4])c=h[2];else if(c!=null&&h[4]){alert("Only one primary_fleet should be selected!");return}d.push(parseInt(i))}c==null?alert("At least one primary_fleet should be selected!"):
d.getLength()==0?alert("Vehicle must be assigned in one fleet at least!"):arskom.ui.impl.Login.s_role_names.indexOf("0001_track_hostmaster")>-1?f.easy(atr.proc.FleetVehicle.ASSIGN_ADMIN,d.toArray(),c,this.get_vehicle_id(),b):f.easy(atr.proc.FleetVehicle.ASSIGN,this.get_domain_name(),d.toArray(),c,this.get_vehicle_id(),b)},create_btn_add_into_list:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_btn_add_into_list.call(this);a.addListener("execute",this.__ue,this);return a},__ue:function(){var a,
c,d,e;this.get_allow_small_corp_table()==true?(a=arskom.misc.selected_table_cell(this.tbl_corporation,"id"),c=arskom.misc.selected_table_cell(this.tbl_corporation,"domain")):c=this.get_domain_name();d=arskom.misc.selected_table_cells(this.tbl_fleet,"id");e=arskom.misc.selected_table_cells(this.tbl_fleet,"name");if(d.length!=0)for(var f=this.tbl_assigned_fleets.getTableModel(),g=f.getData(),h=0,i=d.length;h<i;h++){for(var j=false,k=0,l=g.length;k<l;k++){var m=g[k],n=m[2];a==m[0]&&d[h]==n&&(j=true)}j==
false&&(arskom.misc.is_na(d[h])||f.addRows([[a,c,d[h],e[h],false]]))}},on_appear:function(){this.get_allow_small_corp_table()==false&&(this.tbl_fleet.set_domain_name(this.get_domain_name()),this.tbl_fleet.refresh())},reset:function(){this.tbl_corporation.clear();this.tbl_fleet.clear()},refresh:function(){this.show()},show:function(){this.tbl_corporation.refresh()},create_tbl_corporation:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_tbl_corporation.call(this);a.getSelectionModel().addListener("changeSelection",
this.on_tbl_corporation_changeselection,this);return a},on_tbl_corporation_changeselection:function(){this.tbl_fleet.set_domain_name(arskom.misc.selected_table_cell(this.tbl_corporation,"domain"));this.tbl_fleet.refresh()},create_tbl_fleet:function(){var a=atr.draw.vehicle.AssignedFleet.prototype.create_tbl_fleet.call(this);a.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE);return a}}})})();
(function(){qx.Class.define("qx.ui.table.celleditor.CheckBox",{extend:qx.core.Object,implement:qx.ui.table.ICellEditorFactory,members:{createCellEditor:function(a){var b=(new qx.ui.container.Composite((new qx.ui.layout.HBox).set({alignX:"center",alignY:"middle"}))).set({focusable:true}),c=(new qx.ui.form.CheckBox).set({value:a.value});b.add(c);b.addListener("focus",function(){c.focus()});b.addListener("activate",function(){c.activate()});c.addListener("keydown",function(a){if(a.getKeyIdentifier()==
"Enter"){var c=qx.event.Pool.getInstance().getObject(qx.event.type.KeySequence),f=b.getContainerElement().getDomElement();c.init(a.getNativeEvent(),f,a.getKeyIdentifier());c.setType("keypress");qx.event.Registration.dispatchEvent(f,c)}},this);return b},getCellEditorValue:function(a){return a.getChildren()[0].getValue()}}})})();
(function(){qx.Class.define("atr.proc.FleetVehicle",{type:"static",statics:{GET_ALL:"get_all_fleet_vehicle",GET_ALL_COUNT:"get_all_fleet_vehicle_count",ASSIGN:"assign_fleet_vehicle",ASSIGN_ADMIN:"assign_fleet_vehicle_admin"}})})();
(function(){qx.Class.define("qx.ui.form.DateField",{extend:qx.ui.core.Widget,include:[qx.ui.core.MRemoteChildrenHandling,qx.ui.form.MForm],implement:[qx.ui.form.IForm,qx.ui.form.IDateForm],construct:function(){qx.ui.core.Widget.call(this);var a=new qx.ui.layout.HBox;this._setLayout(a);a.setAlignY("middle");var b=this._createChildControl("textfield");this._createChildControl("button");this.addListener("click",this._onClick,this);this.addListener("blur",this._onBlur,this);this.addListener("focusin",
function(){b.fireNonBubblingEvent("focusin",qx.event.type.Focus)},this);this.addListener("focusout",function(){b.fireNonBubblingEvent("focusout",qx.event.type.Focus)},this);this._setDefaultDateFormat();this._addLocaleChangeLeistener()},events:{changeValue:"qx.event.type.Data"},properties:{dateFormat:{check:"qx.util.format.DateFormat",apply:"_applyDateFormat"},placeholder:{check:"String",nullable:true,apply:"_applyPlaceholder"},appearance:{refine:true,init:"datefield"},focusable:{refine:true,init:true},
width:{refine:true,init:120}},statics:{__uf:null,__ug:null,getDefaultDateFormatter:function(){var a=qx.locale.Date.getDateFormat("medium").toString();if(a==this.__uf)return this.__ug;this.__ug&&this.__ug.dispose();this.__ug=new qx.util.format.DateFormat(a,qx.locale.Manager.getInstance().getLocale());this.__uf=a;return this.__ug}},members:{__uh:null,_forwardStates:{focused:true,invalid:true},_setDefaultDateFormat:function(){this.setDateFormat(qx.ui.form.DateField.getDefaultDateFormatter())},_addLocaleChangeLeistener:function(){if(qx.core.Environment.get("qx.dynlocale"))this.__uh=
qx.locale.Manager.getInstance().addListener("changeLocale",function(){this._setDefaultDateFormat()},this)},setValue:function(a){this.getChildControl("textfield").setValue(this.getDateFormat().format(a));this.getChildControl("list").setValue(a)},getValue:function(){var a=this.getChildControl("textfield").getValue();try{return this.getDateFormat().parse(a)}catch(b){return null}},resetValue:function(){this.getChildControl("textfield").setValue("");this.getChildControl("list").setValue(null)},open:function(){var a=
this.getChildControl("popup");a.placeToWidget(this,true);a.show()},close:function(){this.getChildControl("popup").hide()},toggle:function(){this.getChildControl("popup").isVisible()?this.close():this.open()},_applyDateFormat:function(a,b){if(b)try{var c=this.getChildControl("textfield"),d=c.getValue(),e=b.parse(d);c.setValue(a.format(e))}catch(f){}},_applyPlaceholder:function(a){this.getChildControl("textfield").setPlaceholder(a)},_createChildControlImpl:function(a){var b;switch(a){case "textfield":b=
new qx.ui.form.TextField;b.setFocusable(false);b.addState("inner");b.addListener("changeValue",this._onTextFieldChangeValue,this);b.addListener("blur",this.close,this);this._add(b,{flex:1});break;case "button":b=new qx.ui.form.Button;b.setFocusable(false);b.setKeepActive(true);b.addState("inner");this._add(b);break;case "list":b=new qx.ui.control.DateChooser;b.setFocusable(false);b.setKeepFocus(true);b.addListener("execute",this._onChangeDate,this);break;case "popup":b=new qx.ui.popup.Popup(new qx.ui.layout.VBox),
b.setAutoHide(false),b.add(this.getChildControl("list")),b.addListener("mouseup",this._onChangeDate,this),b.addListener("changeVisibility",this._onPopupChangeVisibility,this)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_onChangeDate:function(){var a=this.getChildControl("textfield"),b=this.getChildControl("list").getValue();a.setValue(this.getDateFormat().format(b));this.close()},_onClick:function(a){a.getTarget()==this.getChildControl("button")?this.toggle():this.close()},
_onBlur:function(){this.close()},_onKeyPress:function(a){var b=a.getKeyIdentifier();b=="Down"&&a.isAltPressed()?(this.toggle(),a.stopPropagation()):this.getChildControl("popup").getVisibility()!="hidden"&&(b=="Escape"?(this.close(),a.stopPropagation()):((b==="Left"||b==="Right"||b==="Down"||b==="Up")&&a.preventDefault(),this.getChildControl("list").handleKeyPress(a)))},_onPopupChangeVisibility:function(a){a.getData()=="visible"?this.addState("popupOpen"):this.removeState("popupOpen");if(this.getChildControl("popup").isVisible()){var a=
this.getChildControl("list"),b=this.getValue();a.setValue(b)}},_onTextFieldChangeValue:function(){var a=this.getValue();a!=null&&this.getChildControl("list").setValue(a);this.fireDataEvent("changeValue",this.getValue())},isEmpty:function(){var a=this.getChildControl("textfield").getValue();return a==null||a==""}},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&this.__uh&&qx.locale.Manager.getInstance().removeListenerById(this.__uh)}})})();
(function(){qx.Class.define("qx.ui.control.DateChooser",{extend:qx.ui.core.Widget,include:[qx.ui.core.MExecutable,qx.ui.form.MForm],implement:[qx.ui.form.IExecutable,qx.ui.form.IForm,qx.ui.form.IDateForm],construct:function(a){qx.ui.core.Widget.call(this);this._setLayout(new qx.ui.layout.VBox);this._createChildControl("navigation-bar");this._createChildControl("date-pane");this.addListener("keypress",this._onKeyPress);a=a!=null?a:new Date;this.showMonth(a.getMonth(),a.getFullYear());qx.core.Environment.get("qx.dynlocale")&&
qx.locale.Manager.getInstance().addListener("changeLocale",this._updateDatePane,this);this.addListener("mousedown",this._onMouseUpDown,this);this.addListener("mouseup",this._onMouseUpDown,this)},statics:{MONTH_YEAR_FORMAT:qx.locale.Date.getDateTimeFormat("yyyyMMMM","MMMM yyyy"),WEEKDAY_FORMAT:"EE",WEEK_FORMAT:"ww"},properties:{appearance:{refine:true,init:"datechooser"},width:{refine:true,init:200},height:{refine:true,init:150},shownMonth:{check:"Integer",init:null,nullable:true,event:"changeShownMonth"},
shownYear:{check:"Integer",init:null,nullable:true,event:"changeShownYear"},value:{check:"Date",init:null,nullable:true,event:"changeValue",apply:"_applyValue"}},members:{__ui:null,__uj:null,__uk:null,_forwardStates:{invalid:true},_createChildControlImpl:function(a){var b;switch(a){case "navigation-bar":b=new qx.ui.container.Composite(new qx.ui.layout.HBox);b.add(this.getChildControl("last-year-button"));b.add(this.getChildControl("last-month-button"));b.add(this.getChildControl("month-year-label"),
{flex:1});b.add(this.getChildControl("next-month-button"));b.add(this.getChildControl("next-year-button"));this._add(b);break;case "last-year-button-tooltip":b=new qx.ui.tooltip.ToolTip(this.tr("Last year"));break;case "last-year-button":b=new qx.ui.toolbar.Button;b.addState("lastYear");b.setFocusable(false);b.setToolTip(this.getChildControl("last-year-button-tooltip"));b.addListener("click",this._onNavButtonClicked,this);break;case "last-month-button-tooltip":b=new qx.ui.tooltip.ToolTip(this.tr("Last month"));
break;case "last-month-button":b=new qx.ui.toolbar.Button;b.addState("lastMonth");b.setFocusable(false);b.setToolTip(this.getChildControl("last-month-button-tooltip"));b.addListener("click",this._onNavButtonClicked,this);break;case "next-month-button-tooltip":b=new qx.ui.tooltip.ToolTip(this.tr("Next month"));break;case "next-month-button":b=new qx.ui.toolbar.Button;b.addState("nextMonth");b.setFocusable(false);b.setToolTip(this.getChildControl("next-month-button-tooltip"));b.addListener("click",
this._onNavButtonClicked,this);break;case "next-year-button-tooltip":b=new qx.ui.tooltip.ToolTip(this.tr("Next year"));break;case "next-year-button":b=new qx.ui.toolbar.Button;b.addState("nextYear");b.setFocusable(false);b.setToolTip(this.getChildControl("next-year-button-tooltip"));b.addListener("click",this._onNavButtonClicked,this);break;case "month-year-label":b=new qx.ui.basic.Label;b.setAllowGrowX(true);b.setAnonymous(true);break;case "week":b=new qx.ui.basic.Label;b.setAllowGrowX(true);b.setAllowGrowY(true);
b.setSelectable(false);b.setAnonymous(true);b.setCursor("default");break;case "weekday":b=new qx.ui.basic.Label;b.setAllowGrowX(true);b.setAllowGrowY(true);b.setSelectable(false);b.setAnonymous(true);b.setCursor("default");break;case "day":b=new qx.ui.basic.Label;b.setAllowGrowX(true);b.setAllowGrowY(true);b.setCursor("default");b.addListener("mousedown",this._onDayClicked,this);b.addListener("dblclick",this._onDayDblClicked,this);break;case "date-pane":var c=new qx.ui.layout.Grid;b=new qx.ui.container.Composite(c);
for(var d=0;d<8;d++)c.setColumnFlex(d,1);for(d=0;d<7;d++)c.setRowFlex(d,1);c=this.getChildControl("week#0");c.addState("header");b.add(c,{column:0,row:0});this.__ui=[];for(d=0;d<7;d++)c=this.getChildControl("weekday#"+d),b.add(c,{column:d+1,row:0}),this.__ui.push(c);this.__uj=[];this.__uk=[];for(d=0;d<6;d++){c=this.getChildControl("week#"+(d+1));b.add(c,{column:0,row:d+1});this.__uk.push(c);for(var e=0;e<7;e++)c=this.getChildControl("day#"+(d*7+e)),b.add(c,{column:e+1,row:d+1}),this.__uj.push(c)}this._add(b)}return b||
qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},_applyValue:function(a){if(a!=null&&(this.getShownMonth()!=a.getMonth()||this.getShownYear()!=a.getFullYear()))this.showMonth(a.getMonth(),a.getFullYear());else for(var a=a==null?-1:a.getDate(),b=0;b<42;b++){var c=this.__uj[b];c.hasState("otherMonth")?c.hasState("selected")&&c.removeState("selected"):parseInt(c.getValue(),10)==a?c.addState("selected"):c.hasState("selected")&&c.removeState("selected")}},_onMouseUpDown:function(a){var b=
a.getTarget();(b==this.getChildControl("navigation-bar")||b==this.getChildControl("date-pane"))&&a.stopPropagation()},_onNavButtonClicked:function(a){var b=this.getShownYear(),c=this.getShownMonth();switch(a.getCurrentTarget()){case this.getChildControl("last-year-button"):b--;break;case this.getChildControl("last-month-button"):c--;c<0&&(c=11,b--);break;case this.getChildControl("next-month-button"):c++;c>=12&&(c=0,b++);break;case this.getChildControl("next-year-button"):b++}this.showMonth(c,b)},
_onDayClicked:function(a){a=a.getCurrentTarget().dateTime;this.setValue(new Date(a))},_onDayDblClicked:function(){this.execute()},_onKeyPress:function(a){var b=null,c=null,d=null;if(a.getModifiers()==0)switch(a.getKeyIdentifier()){case "Left":b=-1;break;case "Right":b=1;break;case "Up":b=-7;break;case "Down":b=7;break;case "PageUp":c=-1;break;case "PageDown":c=1;break;case "Escape":if(this.getValue()!=null)return this.setValue(null),true;break;case "Enter":case "Space":this.getValue()!=null&&this.execute();
return}else if(a.isShiftPressed())switch(a.getKeyIdentifier()){case "PageUp":d=-1;break;case "PageDown":d=1}if(b!=null||c!=null||d!=null)a=this.getValue(),a!=null&&(a=new Date(a.getTime())),a==null?a=new Date:(b!=null&&a.setDate(a.getDate()+b),c!=null&&a.setMonth(a.getMonth()+c),d!=null&&a.setFullYear(a.getFullYear()+d)),this.setValue(a)},showMonth:function(a,b){if(a!=null&&a!=this.getShownMonth()||b!=null&&b!=this.getShownYear())a!=null&&this.setShownMonth(a),b!=null&&this.setShownYear(b),this._updateDatePane()},
handleKeyPress:function(a){this._onKeyPress(a)},_updateDatePane:function(){var a=qx.ui.control.DateChooser,b=new Date,c=b.getFullYear(),d=b.getMonth(),b=b.getDate(),e=this.getValue(),f=e==null?-1:e.getFullYear(),g=e==null?-1:e.getMonth(),e=e==null?-1:e.getDate(),h=this.getShownMonth(),i=this.getShownYear(),j=qx.locale.Date.getWeekStart(),k=new Date(this.getShownYear(),this.getShownMonth(),1),l=new qx.util.format.DateFormat(a.MONTH_YEAR_FORMAT);this.getChildControl("month-year-label").setValue(l.format(k));
for(var m=k.getDay(),n=1+(7-m)%7,o=new qx.util.format.DateFormat(a.WEEKDAY_FORMAT),r=0;r<7;r++){var q=(r+j)%7,p=this.__ui[r];k.setDate(n+q);p.setValue(o.format(k));qx.locale.Date.isWeekend(q)?p.addState("weekend"):p.removeState("weekend")}k=new Date(i,h,1,12,0,0);k.setDate(k.getDate()-(7+m-j)%7);a=new qx.util.format.DateFormat(a.WEEK_FORMAT);for(i=0;i<6;i++){this.__uk[i].setValue(a.format(k));for(r=0;r<7;r++)p=this.__uj[i*7+r],j=k.getFullYear(),m=k.getMonth(),n=k.getDate(),f==j&&g==m&&e==n?p.addState("selected"):
p.removeState("selected"),m!=h?p.addState("otherMonth"):p.removeState("otherMonth"),j==c&&m==d&&n==b?p.addState("today"):p.removeState("today"),p.setValue(""+n),p.dateTime=k.getTime(),k.setDate(k.getDate()+1)}l.dispose();o.dispose();a.dispose()}},destruct:function(){qx.core.Environment.get("qx.dynlocale")&&qx.locale.Manager.getInstance().removeListener("changeLocale",this._updateDatePane,this);this.__ui=this.__uj=this.__uk=null}})})();
(function(){qx.Class.define("qx.ui.splitpane.Pane",{extend:qx.ui.core.Widget,construct:function(a){qx.ui.core.Widget.call(this);this.__fp=[];a?this.setOrientation(a):this.initOrientation();this.__kb.addListener("mousedown",this._onMouseDown,this);this.__kb.addListener("mouseup",this._onMouseUp,this);this.__kb.addListener("mousemove",this._onMouseMove,this);this.__kb.addListener("mouseout",this._onMouseOut,this);this.__kb.addListener("losecapture",this._onMouseUp,this)},properties:{appearance:{refine:true,
init:"splitpane"},offset:{check:"Integer",init:6,apply:"_applyOffset"},orientation:{init:"horizontal",check:["horizontal","vertical"],apply:"_applyOrientation"}},members:{__ul:null,__um:false,__un:null,__uo:null,__oT:null,__up:null,__uq:null,__fp:null,__kb:null,_createChildControlImpl:function(a){var b;switch(a){case "slider":b=new qx.ui.splitpane.Slider(this);b.exclude();this._add(b,{type:a});break;case "splitter":b=new qx.ui.splitpane.Splitter(this),this._add(b,{type:a}),b.addListener("move",this.__ur,
this)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)},__ur:function(a){this.__ut(a.getData())},__us:function(a){this.__kb=new qx.ui.splitpane.Blocker(a);this.getContentElement().add(this.__kb);a=this.getChildControl("splitter");a.getWidth()||a.addListenerOnce("appear",function(){this.__ut()},this);a.addListener("resize",function(a){a=a.getData();a.height==0||a.width==0?this.__kb.hide():this.__kb.show()},this)},getBlocker:function(){return this.__kb},_applyOrientation:function(a,
b){var c=this.getChildControl("slider"),d=this.getChildControl("splitter");this.__oT=a==="horizontal";this.__kb||this.__us(a);this.__kb.setOrientation(a);var e=this._getLayout();e&&e.dispose();this._setLayout(a==="vertical"?new qx.ui.splitpane.VLayout:new qx.ui.splitpane.HLayout);d.removeState(b);d.addState(a);d.getChildControl("knob").removeState(b);d.getChildControl("knob").addState(a);c.removeState(b);c.addState(a);qx.ui.core.queue.Manager.flush();this.__ut()},_applyOffset:function(){this.__ut()},
__ut:function(a){var b=this.getChildControl("splitter"),c=this.getOffset(),d=b.getBounds();if(b=b.getContainerElement().getDomElement())if(this.__oT){var e=null;if(a)e=a.width;else if(d)e=d.width;a=a&&a.left;if(e){if(isNaN(a))a=qx.bom.element.Location.getPosition(b).left;this.__kb.setWidth(c,e);this.__kb.setLeft(c,a)}}else{e=null;if(a)e=a.height;else if(d)e=d.height;a=a&&a.top;if(e){if(isNaN(a))a=qx.bom.element.Location.getPosition(b).top;this.__kb.setHeight(c,e);this.__kb.setTop(c,a)}}},add:function(a,
b){b==null?this._add(a):this._add(a,{flex:b});this.__fp.push(a)},remove:function(a){this._remove(a);qx.lang.Array.remove(this.__fp,a)},getChildren:function(){return this.__fp},_onMouseDown:function(a){if(a.isLeftPressed()){var b=this.getChildControl("splitter"),c=b.getContainerLocation(),d=this.getContentLocation();this.__ul=this.__oT?a.getDocumentLeft()-c.left+d.left:a.getDocumentTop()-c.top+d.top;c=this.getChildControl("slider");d=b.getBounds();c.setUserBounds(d.left,d.top,d.width,d.height);c.setZIndex(b.getZIndex()+
1);c.show();this.__um=true;this.__kb.capture();a.stop()}},_onMouseMove:function(a){this._setLastMousePosition(a.getDocumentLeft(),a.getDocumentTop());if(this.__um){this.__uu();var b=this.getChildControl("slider"),c=this.__up;this.__oT?(b.setDomLeft(c),this.__kb.setStyle("left",c-this.getOffset()+"px")):(b.setDomTop(c),this.__kb.setStyle("top",c-this.getOffset()+"px"));a.stop()}},_onMouseOut:function(a){this._setLastMousePosition(a.getDocumentLeft(),a.getDocumentTop())},_onMouseUp:function(a){if(this.__um)this._finalizeSizes(),
this.getChildControl("slider").exclude(),this.__um=false,this.releaseCapture(),a.stop()},_finalizeSizes:function(){var a=this.__up,b=this.__uq;if(a!=null){var c=this._getChildren(),d=c[2],c=c[3],e=d.getLayoutProperties().flex,f=c.getLayoutProperties().flex;e!=0&&f!=0?(d.setLayoutProperties({flex:a}),c.setLayoutProperties({flex:b})):this.__oT?(d.setWidth(a),c.setWidth(b)):(d.setHeight(a),c.setHeight(b))}},__uu:function(){if(this.__oT)var a="minWidth",b="width",c="maxWidth",d=this.__un;else a="minHeight",
b="height",c="maxHeight",d=this.__uo;var e=this._getChildren(),f=e[2].getSizeHint(),g=e[3].getSizeHint(),b=e[2].getBounds()[b]+e[3].getBounds()[b];d-=this.__ul;b-=d;d<f[a]?(b-=f[a]-d,d=f[a]):b<g[a]&&(d-=g[a]-b,b=g[a]);d>f[c]?(b+=d-f[c],d=f[c]):b>g[c]&&(d+=b-g[c],b=g[c]);this.__up=d;this.__uq=b},_isActiveDragSession:function(){return this.__um},_setLastMousePosition:function(a,b){this.__un=a;this.__uo=b}},destruct:function(){this.__fp=null}})})();
(function(){qx.Class.define("qx.ui.splitpane.Slider",{extend:qx.ui.core.Widget,properties:{allowShrinkX:{refine:true,init:false},allowShrinkY:{refine:true,init:false}}})})();
(function(){qx.Class.define("qx.ui.splitpane.Splitter",{extend:qx.ui.core.Widget,construct:function(a){qx.ui.core.Widget.call(this);a.getOrientation()=="vertical"?(this._setLayout(new qx.ui.layout.HBox(0,"center")),this._getLayout().setAlignY("middle")):(this._setLayout(new qx.ui.layout.VBox(0,"middle")),this._getLayout().setAlignX("center"));this._createChildControl("knob")},properties:{allowShrinkX:{refine:true,init:false},allowShrinkY:{refine:true,init:false}},members:{_createChildControlImpl:function(a){var b;
switch(a){case "knob":b=new qx.ui.basic.Image,this._add(b)}return b||qx.ui.core.Widget.prototype._createChildControlImpl.call(this,a)}}})})();
(function(){qx.Class.define("qx.ui.splitpane.Blocker",{extend:qx.html.Element,construct:function(a){var b={position:"absolute",zIndex:11};if(qx.core.Environment.get("engine.name")=="mshtml")b.backgroundImage="url("+qx.util.ResourceManager.getInstance().toUri("qx/static/blank.gif")+")",b.backgroundRepeat="repeat";qx.html.Element.call(this,"div",b);a?this.setOrientation(a):this.initOrientation()},properties:{orientation:{init:"horizontal",check:["horizontal","vertical"],apply:"_applyOrientation"}},
members:{_applyOrientation:function(a){a=="horizontal"?(this.setStyle("height","100%"),this.setStyle("cursor","col-resize"),this.setStyle("top",null)):(this.setStyle("width","100%"),this.setStyle("left",null),this.setStyle("cursor","row-resize"))},setWidth:function(a,b){this.setStyle("width",b+2*a+"px")},setHeight:function(a,b){this.setStyle("height",b+2*a+"px")},setLeft:function(a,b){this.setStyle("left",b-a+"px")},setTop:function(a,b){this.setStyle("top",b-a+"px")}}})})();
(function(){qx.Class.define("qx.ui.splitpane.VLayout",{extend:qx.ui.layout.Abstract,members:{verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b,c){this.assert(b==="type"||b==="flex","The property '"+b+"' is not supported by the split layout!");b=="flex"&&this.assertNumber(c);b=="type"&&this.assertString(c)},"false":null}),renderLayout:function(a,b){for(var c=this._getLayoutChildren(),d=c.length,e,f,g,h,i,j=0;j<d;j++)e=c[j],f=e.getLayoutProperties().type,f==="splitter"?
h=e:f!=="slider"&&(g?i=e:g=e);if(g&&i){d=g.getLayoutProperties().flex;e=i.getLayoutProperties().flex;d==null&&(d=1);e==null&&(e=1);f=g.getSizeHint();var k=h.getSizeHint(),j=i.getSizeHint(),c=f.height,k=k.height,l=j.height;if(d>0&&e>0)l=b-k,c=Math.round(l/(d+e)*d),d=qx.ui.layout.Util.arrangeIdeals(f.minHeight,c,f.maxHeight,j.minHeight,l-c,j.maxHeight),c=d.begin,l=d.end;else if(d>0){c=b-k-l;if(c<f.minHeight)c=f.minHeight;if(c>f.maxHeight)c=f.maxHeight}else if(e>0){l=b-c-k;if(l<j.minHeight)l=j.minHeight;
if(l>j.maxHeight)l=j.maxHeight}g.renderLayout(0,0,a,c);h.renderLayout(0,c,a,k);i.renderLayout(0,c+k,a,l)}else h.renderLayout(0,0,0,0),g?g.renderLayout(0,0,a,b):i&&i.renderLayout(0,0,a,b)},_computeSizeHint:function(){for(var a=this._getLayoutChildren(),b=a.length,c,d,e=0,f=0,g=0,h=0,i=0,j=0,k=0;k<b;k++)if(c=a[k],d=c.getLayoutProperties(),d.type!=="slider"){c=c.getSizeHint();e+=c.minHeight;f+=c.height;g+=c.maxHeight;if(c.minWidth>h)h=c.minWidth;if(c.width>i)i=c.width;if(c.maxWidth>j)j=c.maxWidth}return{minHeight:e,
height:f,maxHeight:g,minWidth:h,width:i,maxWidth:j}}}})})();
(function(){qx.Class.define("qx.ui.splitpane.HLayout",{extend:qx.ui.layout.Abstract,members:{verifyLayoutProperty:qx.core.Environment.select("qx.debug",{"true":function(a,b,c){this.assert(b==="type"||b==="flex","The property '"+b+"' is not supported by the split layout!");b=="flex"&&this.assertNumber(c);b=="type"&&this.assertString(c)},"false":null}),renderLayout:function(a,b){for(var c=this._getLayoutChildren(),d=c.length,e,f,g,h,i,j=0;j<d;j++)e=c[j],f=e.getLayoutProperties().type,f==="splitter"?
h=e:f!=="slider"&&(g?i=e:g=e);if(g&&i){d=g.getLayoutProperties().flex;e=i.getLayoutProperties().flex;d==null&&(d=1);e==null&&(e=1);f=g.getSizeHint();var k=h.getSizeHint(),j=i.getSizeHint(),c=f.width,k=k.width,l=j.width;if(d>0&&e>0)l=a-k,c=Math.round(l/(d+e)*d),d=qx.ui.layout.Util.arrangeIdeals(f.minWidth,c,f.maxWidth,j.minWidth,l-c,j.maxWidth),c=d.begin,l=d.end;else if(d>0){c=a-k-l;if(c<f.minWidth)c=f.minWidth;if(c>f.maxWidth)c=f.maxWidth}else if(e>0){l=a-c-k;if(l<j.minWidth)l=j.minWidth;if(l>j.maxWidth)l=
j.maxWidth}g.renderLayout(0,0,c,b);h.renderLayout(c,0,k,b);i.renderLayout(c+k,0,l,b)}else h.renderLayout(0,0,0,0),g?g.renderLayout(0,0,a,b):i&&i.renderLayout(0,0,a,b)},_computeSizeHint:function(){for(var a=this._getLayoutChildren(),b=a.length,c,d,e=0,f=0,g=0,h=0,i=0,j=0,k=0;k<b;k++)if(c=a[k],d=c.getLayoutProperties(),d.type!=="slider"){c=c.getSizeHint();e+=c.minWidth;f+=c.width;g+=c.maxWidth;if(c.minHeight>h)h=c.minHeight;if(c.height>i)i=c.height;if(c.maxHeight>j)j=c.maxHeight}return{minWidth:e,width:f,
maxWidth:g,minHeight:h,height:i,maxHeight:j}}}})})();(function(){qx.Class.define("qx.ui.toolbar.CheckBox",{extend:qx.ui.form.ToggleButton,construct:function(a,b){qx.ui.form.ToggleButton.call(this,a,b);this.removeListener("keydown",this._onKeyDown);this.removeListener("keyup",this._onKeyUp)},properties:{appearance:{refine:true,init:"toolbar-button"},show:{refine:true,init:"inherit"},focusable:{refine:true,init:false}}})})();
(function(){qx.Class.define("atr.comp.GeofenceTable",{extend:arskom.ui.BroadcastingTable,construct:function(a,b){arskom.ui.BroadcastingTable.call(this,a,b);this.set_titles([this.tr("Id"),this.tr("Name"),this.tr("Type"),this.tr("Geometry")]);this.set_fields(["id","name","type","geom"]);this.addListener("cellDblclick",this.__uv,this);this.addListener("keypress",this.__mr,this);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);this.setColumnVisibilityButtonVisible(false)},
properties:{_map:{check:"arskom.ui.Map"},_domain_name:{check:"String"}},members:{refresh:function(){arskom.ui.BroadcastingTable.prototype.refresh.call(this);var a=this.get_map();a.clean_layers(["icon","line","geofence","poi"]);var b=this.get_wsc().c.cvs,c=new soap.Parameters;c.add("domain_name",this.get_domain_name());c.add("srid",a.get_srid());a=new soap.RemoteImpl(b,atr.proc.Geofence.GET_ALL_COUNT,atr.proc.Geofence.GET_ALL,c);a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a)},
__mr:function(a){a.getKeyIdentifier()=="Enter"&&this.__uv(a)},__uv:function(){var a=arskom.misc.selected_table_cell(this,"geom"),b=this.get_map(),c=[];b.clean_layers(["icon","line","geofence","poi"]);c.push(b.wkt_to_vector(a));b.draw_geofences(c);b.zoom_extent_by_layer("geofence")},get_default_view:function(){arskom.ui.BroadcastingTable.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnVisible(2,false);a.setColumnVisible(3,false);a.setColumnWidth(0,30);a.setColumnWidth(1,
90)}}})})();
(function(){qx.Class.define("atr.comp.PoiTable",{extend:arskom.ui.BroadcastingTable,construct:function(a,b){arskom.ui.BroadcastingTable.call(this,a,b);this.addListener("cellDblclick",this.__uv,this);this.addListener("keypress",this.__mr,this);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);this.setColumnVisibilityButtonVisible(false);this.set_titles([this.tr("Id"),this.tr("Name"),this.tr("Type"),this.tr("Geometry")]);this.set_fields(["id","name","type","geom"])},
properties:{_map:{check:"arskom.ui.Map"},_domain_name:{check:"String"}},members:{map:null,refresh:function(){var a=this.get_wsc().c.cvs,b=new soap.Parameters;b.add("domain_name",this.get_domain_name());b.add("srid",this.get_map().get_srid());a=new soap.RemoteImpl(a,atr.proc.Poi.GET_ALL_COUNT,atr.proc.Poi.GET_ALL,b);a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a);this.getTableColumnModel().setColumnVisible(3,false);arskom.ui.BroadcastingTable.prototype.refresh.call(this)},__mr:function(a){if(a.getKeyIdentifier()==
"Enter")this.on_dblclick(a)},__uv:function(){var a=arskom.misc.selected_table_cell(this,"geom"),b=this.get_map(),c=[];b.clean_layers(["icon","line","geofence","poi"]);c.push(b.wkt_to_vector(a));b.draw_poi(c);b.zoom_extent_by_layer("poi")}}})})();(function(){qx.Class.define("atr.proc.Poi",{type:"static",statics:{ADD:"add_poi",DEL:"del_poi",GET_ALL:"get_all_poi",GET_ALL_COUNT:"get_all_poi_count"}})})();
(function(){qx.Class.define("atr.comp.ActivityTable",{extend:arskom.ui.BroadcastingTable,properties:{_update_map:{check:"Integer",init:1},_domain_name:{check:"String",init:null,nullable:true,apply:"apply_domain_name"},_fleets:{check:"Array",init:null,nullable:true},_vehicles:{check:"Array",init:null,nullable:true},_event_types:{check:"Array",init:null,nullable:true},_start:{check:"Date",init:null,nullable:true},_end:{check:"Date",init:null,nullable:true},_extra_data:{check:"Object",init:null,nullable:true},
_waiting_row:{check:"Integer",init:0},_top_row:{check:"Integer"},_prev_focused_row:{check:"Integer",init:null,nullable:true},_allow_use_message:{check:"Boolean",apply:"apply_allow_use_message",init:false}},construct:function(a,b){arskom.ui.BroadcastingTable.call(this,a,b);this.__uw={};this.__uw.request=new qx.event.Timer(150);this.__uw.request.setEnabled(false);this.__uw.request.addListener("interval",this.__sk,this);this.__uw.line=new qx.event.Timer(30);this.__uw.line.setEnabled(false);this.__uw.line.addListener("interval",
this.__uE,this);this.__uw.geofence=new qx.event.Timer(60);this.__uw.geofence.setEnabled(false);this.__uw.geofence.addListener("interval",this.__uF,this);this.__uw.icon=new qx.event.Timer(90);this.__uw.icon.setEnabled(false);this.__uw.icon.addListener("interval",this.__uD,this);this.__ux=new OpenLayers.Format.WKT;this.__uy=atr.proc.report.tracker.QUERY_COUNT;this.__uz=atr.proc.report.tracker.QUERY;this.set_titles([this.tr("Extra Data"),this.tr("Vehicle Id"),this.tr("Name"),this.tr("First Event Time"),
this.tr("Last Event Time"),this.tr("Address"),this.tr("Speed"),this.tr("Heading"),this.tr("Event Type"),this.tr("Pos"),this.tr("Event Id"),this.tr("Num. of Updates"),this.tr("Fleet"),this.tr("Geofences"),this.tr("Message"),this.tr("W.ID"),this.tr("Temp"),this.tr("Water Temp"),this.tr("Wind Speed"),this.tr("Swell Height"),this.tr("Weather Icon Url"),this.tr("Vehicle Type"),this.tr("Odometer")]);this.set_fields("extra_data,vehicle_id,vehicle_name,event_time_first,event_time,address,speed,heading,event_type,pos,event_id,num_updates,vehicle_fleet_id,geofences,message,w_id,w_temp_c,w_water_temp_c,w_windspeed_kmph,w_swell_height_m,w_weather_icon_url,vehicle_type,event_distance".split(","));
this.__uA=atr.cache.Geofence.getInstance();this.getPaneScroller(0).addListener("changeScrollY",this.__sj,this)},members:{map:null,__uy:null,__uz:null,__se:null,__uw:null,__ux:null,__uB:null,__sf:false,__uC:null,__uA:null,apply_wsc:function(){},apply_domain_name:function(a){var b=this.__uA;a!=null&&b!=null&&b.set_domain_name(this.get_domain_name())},set_map:function(a){this.map=a;var b=this.__uA;a!=null&&b!=null&&b.set_map(a)},__sk:function(){this.__uw.request.stop();this.get_update_map()!=atr.proc.Vehicle.NO_UPDATE_MAP&&
this.show_row_on_screen(this.get_waiting_row())},__uD:function(){this.__uw.icon.stop();this.map.clean_layers(["icon"]);for(var a=0;a<this.__se.length;a++)this.map.add_marker_with_baloon(this.__se[a][2],this.__se[a][3])},__uE:function(){arskom.misc.selected_table_cell(this,"vehicle_type");this.__uw.line.stop();if(this.map&&this.map.map){this.map.clean_layers(["line"]);var a=arskom.ui.map.Segments.getInstance().get_line_features(this.__uC);this.map.get_layer("line").addFeatures(a);this.map.zoom_extent_by_layer("line")}},
__uF:function(){this.__uw.geofence.stop();this.map&&(this.map.clean_layers(["geofence"]),this.__uA.draw_on_map(this.__uB))},__sj:function(a){a=parseInt(a.getData()/this.getRowHeight());this.set_waiting_row(a);this.set_top_row(a);this.set_prev_focused_row(a);this.__uw.request.restart()},apply_allow_use_message:function(a){a==true?(this.__uy=atr.proc.report.tracker.QUERY_MS_POS_COUNT,this.__uz=atr.proc.report.tracker.QUERY_MS_POS):(this.__uy=atr.proc.report.tracker.QUERY_COUNT,this.__uz=atr.proc.report.tracker.QUERY)},
refresh:function(){arskom.ui.BroadcastingTable.prototype.refresh.call(this);var a=this.get_event_types();if(a==null||a.length<1)arskom.misc.clear_table(this,this.get_titles(),this.get_fields());else{var b=this,c=this.get_wsc().c.report;this.__sf=true;var d=c.get_object("track.report.tracker","ActivityQuery");d.set_vehicles(this.get_vehicles());d.set_start(this.get_start());d.set_end(this.get_end());d.set_extra_data(this.get_extra_data());d.set_event_types(a);var a=this.map.get_srid(),e=b.get_domain_name(),
f=arskom.ui.impl.Login.s_user_prefs.get_time_zone(),g=new soap.Parameters;g.add("domain_name",e);g.add("qo",d);g.add("srid",a);g.add("time_zone",f);c=new soap.RemoteImpl(c,b.__uy,b.__uz,g,function(a){for(var c=0,d=a.length;c<d;++c)b.__uG(a[c])});c.setColumns(this.get_titles(),this.get_fields());this.apply_new_table_model(c);b.setTableModel(c)}},apply_new_table_model:function(){},__uG:function(a){var b,c,d,e,f;b=a.event_extra_data.childNodes;a.geofences={};var g='<table><tr height="100%"><td width="100%">';
if(b.length>0){var h=b[0].childNodes;for(c=0,e=h.length;c<e;++c){var i=h[c].nodeName;if(i.substr(0,1)!="#")if(b="resource/atr/icons/16x16/events/"+i+".png",i=="g"&&h[c].childNodes.length>0){var j=h[c].childNodes;for(d=0,f=j.length;d<f;++d)if(i=j[d].nodeName,b="resource/atr/icons/16x16/events/"+i+".png",g+='<img src="'+b+'"/>',i=="sgen"||i=="sgex")a.geofences[j[d].textContent]=true}else if(g+='<img src="'+b+'"/>',i=="sgen"||i=="sgex")a.geofences[h[c].textContent]=true}}g+="</td></tr></table>";a.extra_data=
g;if(a.vehicle_type==2||a.vehicle_type==3)a.speed/=1.852},show_row_on_screen:function(a){if(a+""!="undefined"){var b,c,d=arskom.misc.get_table_cell_byrow;this.__uC={};c=this.getInnerSize().height-this.getHeaderCellHeight();c=Math.round(c/this.getRowHeight()-1);var e=this.getTableModel().getRowCount();e<c?b=e:b=c;this.__se=[];for(b-=1;b>=0;--b)if(e=d(this,"pos",a+b)){var f=d(this,"event_time",a+b),g=d(this,"event_time_first",a+b),h=d(this,"speed",a+b),i=d(this,"heading",a+b),j=d(this,"vehicle_name",
a+b),k=d(this,"geofences",a+b),l=d(this,"w_id",a+b),m=d(this,"w_temp_c",a+b),n=d(this,"w_water_temp_c",a+b),o=d(this,"w_windspeed_kmph",a+b),r=d(this,"w_swell_height_m",a+b),q=d(this,"w_weather_icon_url",a+b),p=d(this,"vehicle_type",a+b),s=this.__ux.read(e);c=d(this,"vehicle_id",a+b);var u=d(this,"num_updates",a+b);this.__uC[c]?this.__uC[c].push(s.geometry):this.__uC[c]=[s.geometry];this.__uH(a+b,f,g,h,e,i,u,j,p,l,m,n,o,r,q);for(var v in k)this.__uB[parseInt(v)]=true}this.map&&this.map.clean_layers(["poi"]);
this.__uw.line.restart();this.__uw.geofence.restart();this.__uw.icon.restart()}},__uH:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){if(!arskom.misc.is_na(this.map)&&!arskom.misc.is_na(e)){for(var r=0;r<this.__se.length;r++)if(this.__se[r][0]===a)return;r=this.__ux.read(e);if(!arskom.misc.is_na(r)){var q=arskom.ui.map.Segments.getInstance(),e=q.get_standart_pos_marker(r,b,c,f),c=q.get_standart_pos_cloud(r,this.map.get_srid(),b,c,d,f,g,h,i,a,j,k,l,m,n,o);this.__se.push([a,b,e,c])}}},on_data_loaded:function(){this.__uB=
{};if(this.get_update_map()!=atr.proc.Vehicle.NO_UPDATE_MAP&&this.__sf)this.show_row_on_screen(this.get_waiting_row()),this.__sf=false},on_change_selection:function(){var a=this.map.get_layer("icon").markers.length,b=this.get_top_row(),c;this.getSelectionModel().iterateSelection(function(a){c=a});b=a-(c-b)-1;if(!(b<0||b.toString()=="NaN")){var d=this.get_prev_focused_row();if(d==null||d>a-1)d=a-1;this.__uI(d,false);d!=a-1&&this.__uI(a-1,false);this.__uI(b,true);this.set_prev_focused_row(b)}},__uI:function(a,
b){var c=this.map.get_layer("icon").markers[a];if(c!=void 0){if(b){var d=new OpenLayers.Size(56,56);c.icon.offset.x=-28;c.icon.offset.y=-28}else d=new OpenLayers.Size(28,28),c.icon.offset.x=-14,c.icon.offset.y=-14;c.icon.setSize(d)}}}})})();(function(){qx.Class.define("atr.proc.report.tracker",{type:"static",statics:{QUERY_MS_POS:"query_activity_archive",QUERY_MS_POS_COUNT:"query_activity_archive_count",QUERY:"query_position_archive",QUERY_COUNT:"query_position_archive_count"}})})();
(function(){qx.Class.define("atr.comp.SmallActivityTable",{extend:atr.comp.ActivityTable,construct:function(a,b){atr.comp.ActivityTable.call(this,a,b);this.addListener("changeTableModel",this.__AP,this);this.addListener("cellDblclick",this.__uv,this)},members:{prev:null,event_object:null,__AP:function(a){this.set_prev_focused_row(null);this.set_top_row(0);a.getData().addListener("dataLoaded",this.on_data_loaded,this);this.getSelectionModel().addListener("changeSelection",this.on_change_selection,
this)},apply_new_table_model:function(a){a.sortByColumn(4,true)},__uv:function(){var a=arskom.misc.selected_table_cell(this,"event_time_first");if(a){var a=a.toString(),b=arskom.misc.selected_table_cell(this,"event_ptime").toString();if(a!=b){var a=arskom.misc.selected_table_cell(this,"vehicle_fleet_id"),b=arskom.misc.selected_table_cell(this,"vehicle_id"),c=arskom.misc.selected_table_cell(this,"event_id");this.event_object=atr.impl.EventUpdate.getInstance();this.event_object.set_wsc(this.get_wsc());
this.event_object.set_domain_name(this.get_domain_name());this.event_object.set_fleet_id(a);this.event_object.set_vehicle_id(b);this.event_object.set_event_id(c);this.refresh();a=this.event_object.getWindow();a.open();a.center()}}},get_default_view:function(){atr.comp.ActivityTable.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnVisible(0,true);a.setColumnVisible(1,false);a.setColumnVisible(2,false);a.setColumnVisible(3,false);a.setColumnVisible(4,true);a.setColumnVisible(5,
true);a.setColumnVisible(6,true);a.setColumnVisible(7,false);a.setColumnVisible(8,false);a.setColumnVisible(9,false);a.setColumnVisible(10,false);a.setColumnVisible(11,false);a.setColumnVisible(12,false);a.setColumnVisible(13,false);a.setColumnVisible(14,false);a.setColumnVisible(15,false);a.setColumnVisible(16,false);a.setColumnVisible(17,false);a.setColumnVisible(18,false);a.setColumnVisible(19,false);a.setColumnVisible(20,false);a.setColumnWidth(0,30);a.setColumnWidth(3,120);a.setColumnWidth(4,
120);a.setColumnWidth(5,30)},set_renderers:function(){atr.comp.ActivityTable.prototype.set_renderers.call(this);var a=this.getTableColumnModel();a.setDataCellRenderer(0,new qx.ui.table.cellrenderer.Html);a.setDataCellRenderer(3,arskom.misc.get_date_cellrenderer());a.setDataCellRenderer(4,arskom.misc.get_date_cellrenderer())}}})})();
(function(){qx.Class.define("atr.draw.EventUpdate",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_EventUpdate())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{EventUpdate:null,__ow:null,bottom_bar:null,btn_close:null,create_EventUpdate:function(){var a=this.EventUpdate=new qx.ui.container.Composite(this.create___lv());a.setHeight(311);a.setWidth(450);a.setMargin(1);a.add(this.create_wgt(),{flex:1});return a},create___lv:function(){return this.__ow=
new qx.ui.layout.VBox},create_bottom_bar:function(){var a=this.bottom_bar=new qx.ui.container.Composite(this.create_horizontalLayout_10());a.setHeight(25);a.setMaxHeight(25);a.setMargin(1);a.setMinHeight(25);a.add(this.create_btn_close(),{flex:1});a.add(this.create_hs_5(),{flex:1});return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(22);return a},create_horizontalLayout_10:function(){return this.horizontalLayout_10=
new qx.ui.layout.HBox},create_hs_5:function(){var a=this.hs_5=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_tbl_event_update:function(){var a=this.tbl_event_update=new atr.comp.EventUpdateTable;a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_wgt:function(){var a=this.wgt=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_tbl_event_update(),{flex:1});a.add(this.create_bottom_bar(),
{flex:1});return a},horizontalLayout_10:null,hs_5:null,tbl_event_update:null,verticalLayout:null,wgt:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.comp.EventUpdateTable",{extend:arskom.ui.Table,properties:{_domain_name:{check:"String"},_fleet_id:{check:"Integer"},_vehicle_id:{check:"Integer"},_event_id:{check:"Integer"}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("Event ID"),this.tr("Time"),this.tr("Event Extra Data")]);this.set_fields(["Event","ptime","extra_data"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},members:{event_object:null,
refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters;b.add("domain_name",this.get_domain_name());b.add("fleet_id",this.get_fleet_id());b.add("vehicle_id",this.get_vehicle_id());b.add("event_id",this.get_event_id());a=new soap.RemoteImpl(a,atr.proc.EventUpdate.GET_ALL_COUNT,atr.proc.EventUpdate.GET_ALL,b,function(a){for(var b,e,f=new qx.type.BaseArray,g,h,i=0;i<a.length;++i)if(g=0,h="",f.push("</table>"),f.push("</tr>"),f.push("</td>"),b=
a[i].extra_data.childNodes,b[0]==null)a[i].extra_data=null;else{e=b[0].childNodes;if(e.length>0)for(var j=0;j<e.length;++j)e[j].nodeName=="gen"?(b="resource/atr/icons/16x16/events/gen.png",f.push('<img src="'+b+'"/>')):e[j].nodeName=="gex"?(b="resource/atr/icons/16x16/events/gex.png",f.push('<img src="'+b+'"/>')):e[j].nodeName=="t"?(b="resource/atr/icons/16x16/events/t.png",f.push('<img src="'+b+'"/>')):e[j].nodeName=="stom"?(b="resource/atr/icons/16x16/events/stom.png",f.push('<img src="'+b+'"/>')):
e[j].nodeName=="stam"&&(b="resource/atr/icons/16x16/events/stam.png",f.push('<img src="'+b+'"/>'));f.push('<td width="100%" height="100%">');f.push('<tr width="100%" height="100%">');f.push("<table>");for(b=f.length;g<b;)h+=f.pop(),++g;a[i].extra_data=h}});a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a)},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);var a=this.getTableColumnModel();a.setDataCellRenderer(1,arskom.misc.get_date_cellrenderer());a.setDataCellRenderer(2,
new qx.ui.table.cellrenderer.Html)},get_default_view:function(){var a=this.getTableColumnModel();a.setColumnWidth(0,60);a.setColumnWidth(1,150);a.setColumnWidth(2,60)}}})})();(function(){qx.Class.define("atr.proc.EventUpdate",{type:"static",statics:{GET_ALL:"get_all_event_update",GET_ALL_COUNT:"get_all_event_update_count"}})})();
(function(){var a="number";qx.Class.define("qx.type.BaseArray",{extend:Array,construct:function(){},members:{toArray:null,valueOf:null,pop:null,push:null,reverse:null,shift:null,sort:null,splice:null,unshift:null,concat:null,join:null,slice:null,toString:null,indexOf:null,lastIndexOf:null,forEach:null,filter:null,map:null,some:null,every:null}});(function(){function b(b){arguments.length===1&&typeof b===a?this.length=-1<b&&b===b>>0.5?b:this.push(b):arguments.length&&this.push.apply(this,arguments)}
function c(){}c.prototype=[];b.prototype=new c;b.prototype.length=0;qx.type.BaseArray=function(){if(qx.core.Environment.get("engine.name")=="mshtml"){b.prototype={length:0,$$isArray:true};for(var a="pop.push.reverse.shift.sort.splice.unshift.join.slice".split("."),c=a.length;c;)b.prototype[a[--c]]=Array.prototype[a[c]]}var f=Array.prototype.slice;b.prototype.concat=function(){for(var a=this.slice(0),c=0,d=arguments.length;c<d;c++){var e;e=arguments[c]instanceof b?f.call(arguments[c],0):arguments[c]instanceof
Array?arguments[c]:[arguments[c]];a.push.apply(a,e)}return a};b.prototype.toString=function(){return f.call(this,0).toString()};b.prototype.toLocaleString=function(){return f.call(this,0).toLocaleString()};b.prototype.constructor=b;b.prototype.indexOf=qx.lang.Core.arrayIndexOf;b.prototype.lastIndexOf=qx.lang.Core.arrayLastIndexOf;b.prototype.forEach=qx.lang.Core.arrayForEach;b.prototype.some=qx.lang.Core.arraySome;b.prototype.every=qx.lang.Core.arrayEvery;var g=qx.lang.Core.arrayFilter,h=qx.lang.Core.arrayMap;
b.prototype.filter=function(){var a=new this.constructor;a.push.apply(a,g.apply(this,arguments));return a};b.prototype.map=function(){var a=new this.constructor;a.push.apply(a,h.apply(this,arguments));return a};b.prototype.slice=function(){var a=new this.constructor;a.push.apply(a,Array.prototype.slice.apply(this,arguments));return a};b.prototype.splice=function(){var a=new this.constructor;a.push.apply(a,Array.prototype.splice.apply(this,arguments));return a};b.prototype.toArray=function(){return Array.prototype.slice.call(this,
0)};b.prototype.valueOf=function(){return this.length};return b}(b)})()})();
(function(){qx.Class.define("atr.impl.EventUpdate",{extend:atr.draw.EventUpdate,type:"singleton",properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_id:{check:"Integer",init:null,nullable:true},_name:{check:"String",init:null,nullable:true},_domain_name:{check:"String",apply:"apply_domain_name"},_fleet_id:{check:"Integer",apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",apply:"apply_vehicle_id"},_event_id:{check:"Integer",apply:"apply_event_id"}},
construct:function(){atr.draw.EventUpdate.call(this);var a=new qx.ui.window.Window("Event Updates","");a.set({width:450,height:450,layout:new qx.ui.layout.VBox(10),modal:true,showMinimize:false,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});this.setWindow(a)},members:{apply_wsc:function(a){this.tbl_event_update.set_wsc(a)},apply_domain_name:function(a){this.tbl_event_update.set_domain_name(a)},apply_fleet_id:function(a){this.tbl_event_update.set_fleet_id(a)},apply_vehicle_id:function(a){this.tbl_event_update.set_vehicle_id(a)},
apply_event_id:function(a){this.tbl_event_update.set_event_id(a)},create_btn_close:function(){var a=atr.draw.EventUpdate.prototype.create_btn_close.call(this);a.addListener("execute",this.on_btn_close_execute,this);return a},on_btn_close_execute:function(){this.getWindow().close()},refresh:function(){this.tbl_event_update.refresh()}}})})();
(function(){qx.Class.define("atr.impl.Main",{extend:atr.draw.Main,properties:{current_user_name:{check:"String"},current_domain_name:{check:"String",apply:"apply_domain_name"},_toolbar:{check:"qx.ui.toolbar.ToolBar",init:null},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_map:{check:"arskom.ui.Map",apply:"apply_map",init:null,nullable:true},_allow_adminmenu:{check:"Boolean",apply:"apply_allow_adminmenu",init:true},_allow_view_rule:{check:"Boolean",apply:"apply_allow_view_rule",init:true},
_allow_use_message:{check:"Boolean",apply:"apply_allow_use_message",init:true},_allow_change_rule:{check:"Boolean",apply:"apply_allow_change_rule",init:true},_allow_manage_user:{check:"Boolean",apply:"apply_allow_manage_user",init:true},_allow_manage_log:{check:"Boolean",apply:"apply_allow_manage_log",init:true},_allow_predefined_message_group:{check:"Boolean",apply:"apply_allow_predefined_message_group",init:true},_allow_add_del_poi:{check:"Boolean",apply:"apply_allow_add_del_poi",init:true},_allow_edit_vehicle:{check:"Boolean",
apply:"apply_allow_edit_vehicle",init:true},_allow_edit_vehicle_option:{check:"Boolean",apply:"apply_allow_edit_vehicle_option",init:false},_allow_add_del_vehicle:{check:"Boolean",apply:"apply_allow_add_del_vehicle",init:true},_allow_add_edt_del_corporation:{check:"Boolean",init:true},_allow_manuser_switch_corporation:{check:"Boolean",init:true},_allow_add_del_geofence:{check:"Boolean",apply:"apply_allow_add_del_geofence",init:true},_allow_manage_comm_terminal:{check:"Boolean",apply:"apply_allow_manage_comm_terminal",
init:true},_allow_add_vehicle_corp_table:{check:"Boolean",apply:"apply_allow_add_vehicle_corp_table",init:true},_allow_change_vehicle_type:{check:"Boolean",apply:"apply_allow_change_vehicle_type"}},construct:function(){atr.draw.Main.call(this);arskom.misc.replace_pages(this.tab_left_bar,[this.tab_vehicle,this.tab_event]);this.btn_add_message.setVisibility("excluded");this.btn_rule.setVisibility("excluded")},statics:{SCR_POI:0,SCR_GEOFENCE:1,SCR_MESSAGE:2},members:{subtoolbar_id:-1,map:null,__cy:null,
scr_poi:null,scr_geofence:null,scr_message:null,btn_tb_admin:null,btn_tb_admin_corp:null,btn_tb_admin_dd_corp:null,btn_tb_admin_user:null,btn_tb_admin_log:null,mn_tb_admin_corp:null,mn_tb_admin_user:null,mn_tb_admin_viewer:null,btn_tb_admin_pre_msg_grp:null,top_tb:null,lbl_tb_title:null,lbl_tb_info:null,btn_tb_logout:null,btn_tb_geofence:null,fsm:null,input_str:"",rule_list:null,__uJ:function(){var a=this;return a.get_factory().get_instance(atr.impl.activity_archive.List,function(b){b.addListener("dock",
a.__uW,a)})},__uL:function(){var a=this;return a.get_factory().get_instance(arskom.ui.impl.corporation.List,function(b){b.addListener("switch",a.switch_to,a)})},apply_wsc:function(a){this.tbl_vehicle_activity.set_wsc(a);this.tbl_geofence.set_wsc(a);this.tbl_poi.set_wsc(a);this.comp_fleet_vehicle.set_wsc(a)},apply_map:function(a){a.set_wsc(this.get_wsc());this.tbl_geofence.set_map(a);this.tbl_poi.set_map(a);this.comp_fleet_vehicle.set_map(a);this.tbl_vehicle_activity.set_map(a);this.verticalLayoutWidget.removeAll();
this.verticalLayoutWidget.add(a.getWidget(),{flex:1})},apply_domain_name:function(a){this.tbl_geofence.set_domain_name(a);this.tbl_poi.set_domain_name(a);this.comp_fleet_vehicle.set_domain_name(a);this.tbl_vehicle_activity.set_domain_name(a)},apply_allow_change_rule:function(a){this.comp_fleet_vehicle.set_allow_change_rule(a)},apply_allow_view_rule:function(a){this.comp_fleet_vehicle.set_allow_view_rule(a);a==false?this.btn_rule.setVisibility("excluded"):this.btn_rule.setVisibility("visible")},apply_allow_use_message:function(a){this.comp_fleet_vehicle.set_allow_use_message(a);
a==true?(this.__ve.start(),this.tb_btn_message_toolbar.setVisibility("visible")):(this.__ve.stop(),this.tb_btn_message_toolbar.setVisibility("excluded"))},apply_allow_change_vehicle_type:function(a){this.comp_fleet_vehicle.set_allow_change_vehicle_type(a)},apply_allow_manage_comm_terminal:function(a){this.comp_fleet_vehicle.set_allow_manage_comm_terminal(a)},apply_allow_add_del_vehicle:function(a){this.comp_fleet_vehicle.set_allow_add_del_vehicle(a)},apply_allow_edit_vehicle:function(a){this.comp_fleet_vehicle.set_allow_edit_vehicle(a)},
apply_allow_edit_vehicle_option:function(a){this.comp_fleet_vehicle.set_allow_edit_vehicle_option(a)},apply_allow_add_del_poi:function(a){a==true?(this.btn_add_poi.setVisibility("visible"),this.btn_del_poi.setVisibility("visible")):(this.btn_add_poi.setVisibility("excluded"),this.btn_del_poi.setVisibility("excluded"))},apply_allow_add_del_geofence:function(a){a==true?(this.btn_add_geofence.setVisibility("visible"),this.btn_del_geofence.setVisibility("visible")):(this.btn_add_geofence.setVisibility("excluded"),
this.btn_del_geofence.setVisibility("excluded"))},apply_allow_add_vehicle_corp_table:function(a){this.comp_fleet_vehicle.set_allow_add_vehicle_corp_table(a)},apply_allow_manage_user:function(a){a==true?this.btn_tb_admin_user.setVisibility("visible"):this.btn_tb_admin_user.setVisibility("excluded")},apply_allow_manage_log:function(a){a==true?this.btn_tb_admin_user.setVisibility("visible"):this.btn_tb_admin_user.setVisibility("excluded")},apply_allow_adminmenu:function(a){a==true?this.btn_tb_admin_corp.setVisibility("visible"):
this.btn_tb_admin_corp.setVisibility("excluded")},apply_allow_predefined_message_group:function(a){a==true?this.btn_tb_admin_pre_msg_grp.setVisibility("visible"):this.btn_tb_admin_pre_msg_grp.setVisibility("excluded")},create_comp_fleet_vehicle:function(){var a=this.comp_fleet_vehicle=new atr.comp.impl.FleetVehicleComposite(this.create_comp_fleet_vehicle_il(),atr.comp.MainVehicleTable);a.setMargin(1);a.cmb_fleet.set_must_select(false);a.addListener("change_fleet",this.__va,this);a.addListener("change_vehicle",
this.__uR,this);a.addListener("add_message_to_vehicle",this.__uN,this);return a},__uM:function(){if(this.scr_message==null){var a=new atr.impl.AddMessage;a.addListener("save",this.on_scr_message_save,this);a.addListener("close",this.on_scr_message_close,this);this.scr_message=a}return this.scr_message},__uN:function(a){var a=a.getData(),b=this.__uM();b.set_wsc(this.get_wsc());b.set_domain_name(this.getCurrent_domain_name());b.set_fleet_id(a.fleet_id);b.set_vehicle_id(a.id);b.refresh();this.show_bar(atr.impl.Main.SCR_MESSAGE)},
create_splitter:function(){var a=this.splitter=new qx.ui.splitpane.Pane("horizontal");a.setMargin(1);a.add(this.create_left_bar(),1);a.add(this.create_verticalLayoutWidget(),100);return a},create_toolbar:function(){var a=atr.draw.Main.prototype.create_toolbar.call(this);this.set_toolbar(a);this.mn_tb_admin_corp=new qx.ui.menu.Menu;this.btn_tb_admin_corp=new qx.ui.menu.Button(this.tr("Corporations"));this.btn_tb_admin_corp.addListener("execute",this.on_btn_tb_admin_corp_execute,this);this.mn_tb_admin_corp.add(this.btn_tb_admin_corp);
this.btn_tb_user_preferences=new qx.ui.menu.Button(this.tr("User Preferences"));this.btn_tb_user_preferences.addListener("execute",this.on_btn_tb_user_preferences,this);this.mn_tb_admin_corp.add(this.btn_tb_user_preferences);this.btn_tb_log=new qx.ui.menu.Button(this.tr("Logs"));this.btn_tb_log.addListener("execute",this.on_btn_tb_log,this);this.mn_tb_admin_corp.add(this.btn_tb_log);this.btn_tb_admin_user=new qx.ui.menu.Button(this.tr("Users"));this.btn_tb_admin_user.addListener("execute",this.on_admin_user_execute,
this);this.mn_tb_admin_corp.add(this.btn_tb_admin_user);this.btn_tb_admin_pre_msg_grp=new qx.ui.menu.Button(this.tr("Predefined Message Group"));this.btn_tb_admin_pre_msg_grp.addListener("execute",this.__uY,this);this.mn_tb_admin_corp.add(this.btn_tb_admin_pre_msg_grp);this.btn_tb_admin=new qx.ui.toolbar.MenuButton(this.tr("Administration"),null,this.mn_tb_admin_corp);this.lbl_tb_info=(new qx.ui.basic.Label).set({font:(new qx.bom.Font(11)).set({bold:true})});this.lbl_tb_info.setMarginTop(8);var b=
new qx.ui.toolbar.Part;b.add(this.lbl_tb_info);a.add(b);var b=new arskom.ui.impl.RefreshComposite,c=new qx.ui.toolbar.Part;c.add(b.widget);a.add(c);a.addSpacer();b=new qx.ui.toolbar.Part;b.add(this.btn_tb_admin);a.add(b);this.btn_tb_logout=new qx.ui.toolbar.Button;this.btn_tb_logout.setLabel(this.tr("Logout"));this.btn_tb_logout.addListener("execute",this.on_logout_execute,this);b=new qx.ui.toolbar.Part;b.add(this.btn_tb_logout);a.add(b);return a},create_tb_btn_fleet_toolbar:function(){var a=atr.draw.Main.prototype.create_tb_btn_fleet_toolbar.call(this);
a.addListener("execute",this.on_btn_fleet_execute,this);return a},create_chb_position:function(){var a=atr.draw.Main.prototype.create_chb_position.call(this);a.addListener("changeValue",this.__uO,this);return a},__uO:function(a){var b=[];a.getData()&&b.push(atr.proc.Event.ET_POSITION);this.chb_message.getValue()&&(b.push(atr.proc.Event.ET_INCOMING_PREDEFINED_MESSAGE),b.push(atr.proc.Event.ET_OUTGOING_PREDEFINED_MESSAGE),b.push(atr.proc.Event.ET_INCOMING_FREEFORM_MESSAGE),b.push(atr.proc.Event.ET_OUTGOING_FREEFORM_MESSAGE));
this.tbl_vehicle_activity.set_event_types(b);this.tbl_vehicle_activity.refresh()},create_chb_message:function(){var a=atr.draw.Main.prototype.create_chb_message.call(this);a.addListener("changeValue",this.__uP,this);return a},__uP:function(a){var b=[];a.getData()&&(b.push(atr.proc.Event.ET_INCOMING_MESSAGE),b.push(atr.proc.Event.ET_OUTGOING_MESSAGE));this.chb_position.getValue()&&b.push(atr.proc.Event.ET_POSITION);this.tbl_vehicle_activity.set_event_types(b);this.tbl_vehicle_activity.refresh()},create_btn_add_message:function(){var a=
atr.draw.Main.prototype.create_btn_add_message.call(this);a.setIcon(atr.proc.Consts.ICON_NEWMSG);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_MSG_ADD,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.__uQ,this);return a},__uQ:function(){this.on_message_execute();this.show_bar(atr.impl.Main.SCR_MESSAGE)},create_tb_btn_activity_archive_toolbar:function(){var a=atr.draw.Main.prototype.create_tb_btn_activity_archive_toolbar.call(this);a.addListener("execute",this.__uS,this);
return a},create_tb_btn_vehicle_toolbar:function(){var a=atr.draw.Main.prototype.create_tb_btn_vehicle_toolbar.call(this);a.setValue(true);a.addListener("changeValue",this.__wY,this);return a},__wY:function(a){a.getData()&&(a=[],a=[this.tab_vehicle,this.tab_event],arskom.misc.replace_pages(this.tab_left_bar,a),this.tb_btn_poi_toolbar.setValue(false),this.tb_btn_geo_fences_toolbar.setValue(false));this.__xa()},__xa:function(){this.tb_btn_poi_toolbar.getValue()||this.tb_btn_geo_fences_toolbar.getValue()||
this.tb_btn_vehicle_toolbar.getValue()?this.left_bar.setVisibility("visible"):this.left_bar.setVisibility("excluded")},create_tb_btn_poi_toolbar:function(){var a=atr.draw.Main.prototype.create_tb_btn_poi_toolbar.call(this);a.addListener("changeValue",this.__xb,this);return a},__xb:function(a){if(a.getData()){if(!this.scr_poi)a=atr.impl.AddPoi.getInstance(),a.addListener("save",this.on_scr_poi_save,this),a.addListener("close",this.on_scr_poi_close,this),a.set_wsc(this.get_wsc()),a.set_map(this.get_map()),
a.set_domain_name(this.getCurrent_domain_name()),this.scr_poi=a;arskom.misc.replace_pages(this.tab_left_bar,[this.tab_poi]);this.tbl_poi.refresh();this.tb_btn_vehicle_toolbar.setValue(false);this.tb_btn_geo_fences_toolbar.setValue(false)}this.__xa()},create_tb_btn_geo_fences_toolbar:function(){var a=atr.draw.Main.prototype.create_tb_btn_geo_fences_toolbar.call(this);a.addListener("changeValue",this.__xc,this);return a},__xc:function(a){if(a.getData())a=atr.impl.AddGeofence.getInstance(),a.addListener("save",
this.on_scr_geofence_save,this),a.addListener("close",this.on_scr_geofence_close,this),a.set_wsc(this.get_wsc()),a.set_map(this.get_map()),a.set_domain_name(this.getCurrent_domain_name()),this.scr_geofence=a,arskom.misc.replace_pages(this.tab_left_bar,[this.tab_geofence]),this.tbl_geofence.refresh(),this.tb_btn_vehicle_toolbar.setValue(false),this.tb_btn_poi_toolbar.setValue(false);this.__xa()},create_btn_add_geofence:function(){var a=atr.draw.Main.prototype.create_btn_add_geofence.call(this);a.setIcon(atr.proc.Consts.ICON_ADD);
a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_GEO_ADD,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_add_geofence_execute,this);return a},create_btn_del_geofence:function(){var a=atr.draw.Main.prototype.create_btn_del_geofence.call(this);a.setIcon(atr.proc.Consts.ICON_DEL);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_GEO_DEL,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_del_geofence_execute,this);return a},create_btn_refresh_geofence:function(){var a=
atr.draw.Main.prototype.create_btn_refresh_geofence.call(this);a.setIcon(atr.proc.Consts.ICON_REFRESH);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_GEO_REFRESH,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_refresh_geofence_execute,this);return a},create_btn_refresh_event:function(){var a=atr.draw.Main.prototype.create_btn_refresh_event.call(this);a.setIcon(atr.proc.Consts.ICON_REFRESH);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_EVENT_REFRESH,
atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_refresh_event_execute,this);return a},create_btn_add_poi:function(){var a=atr.draw.Main.prototype.create_btn_add_poi.call(this);a.setIcon(atr.proc.Consts.ICON_ADD);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_POI_ADD,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_add_poi_execute,this);return a},create_btn_del_poi:function(){var a=atr.draw.Main.prototype.create_btn_del_poi.call(this);a.setIcon(atr.proc.Consts.ICON_DEL);
a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_POI_DEL,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_del_poi_execute,this);return a},create_btn_refresh_poi:function(){var a=atr.draw.Main.prototype.create_btn_refresh_poi.call(this);a.setIcon(atr.proc.Consts.ICON_REFRESH);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_POI_REFRESH,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.on_btn_refresh_poi_execute,this);return a},create_dte_day_shown:function(){var a=
atr.draw.Main.prototype.create_dte_day_shown.call(this);a.addListener("changeValue",this.on_dte_day_shown_change_value,this);return a},create_tbl_poi:function(){return atr.draw.Main.prototype.create_tbl_poi.call(this)},create_tbl_vehicle_activity:function(){var a=atr.draw.Main.prototype.create_tbl_vehicle_activity.call(this);a.set_update_map(atr.proc.Vehicle.UPDATE_AND_CENTER_MAP);return a},on_scr_poi_save:function(){var a=this.get_map();this.hbox_subtoolbar_implicit_container.removeAll();this.tbl_poi.refresh();
a.clean_layers(["icon","line","geofence","poi"]);a.deactivate_point()},on_scr_poi_close:function(){this.hbox_subtoolbar_implicit_container.removeAll()},on_scr_geofence_save:function(){this.hbox_subtoolbar_implicit_container.removeAll();this.tbl_geofence.refresh();this.get_map().deactivate_polygon()},on_scr_geofence_close:function(){this.hbox_subtoolbar_implicit_container.removeAll()},on_scr_message_save:function(){this.hbox_subtoolbar_implicit_container.removeAll();this.tbl_vehicle_activity.refresh()},
on_scr_message_close:function(){this.hbox_subtoolbar_implicit_container.removeAll()},on_switch_domain:function(a){(a=arskom.misc.selected_table_cell(a,"domain"))?this.setCurrent_domain_name(a):alert(this.tr("You must select a domain from the list."))},refresh:function(){this.comp_fleet_vehicle.refresh_fleet();this.__vg()},on_hide_execute:function(){this.hbox_activity_archive_implicit_container.removeAll()},__uR:function(a){var b=arskom.misc.selected_table_cell(this.comp_fleet_vehicle.tbl_vehicle,
"ptime"),a=a.getData();this.lbl_event_vehicle.setValue(a.name);this.tbl_vehicle_activity.set_vehicles([a.id]);this.tbl_vehicle_activity.set_fleets([a.fleet_id]);var c=[];this.chb_message.getValue()&&(c.push(atr.proc.Event.ET_INCOMING_MESSAGE),c.push(atr.proc.Event.ET_OUTGOING_MESSAGE));this.chb_position.getValue()&&c.push(atr.proc.Event.ET_POSITION);this.tbl_vehicle_activity.set_event_types(c);this.get_allow_use_message()==true?(a=!(a.can_msg==null||a.can_msg==false)?"visible":"excluded",this.btn_add_message.setVisibility(a),
this.chb_position.setVisibility(a),this.chb_message.setVisibility(a)):(this.btn_add_message.setVisibility("excluded"),this.chb_position.setVisibility("excluded"),this.chb_message.setVisibility("excluded"));arskom.misc.replace_pages(this.tab_left_bar,[this.tab_vehicle,this.tab_event]);this.tab_left_bar.setSelection([this.tab_event]);this.dte_day_shown.no_change_selection=true;this.dte_day_shown.setValue(b);this.dte_day_shown.no_change_selection=false;this.tbl_vehicle_activity.refresh()},__uK:function(){var a=
this;return a.get_factory().get_instance(atr.impl.activity_archive.ArchiveQuery,function(b){b.addListener("show_on_table",a.__uT,a);b.addListener("show_on_map",a.__uV,a)})},__uS:function(){var a=this.__uK();a.reset();a.set_wsc(this.get_wsc());a.set_domain_name(this.getCurrent_domain_name());a.set_map(this.get_map());a=a.getWindow();a.open();a.center()},__uT:function(a){this.on_hide_execute();var b=this.__uJ();b.set_show_filters(false);b.set_allow_delete(false);b.set_allow_add(false);b.set_allow_edit(false);
b.set_allow_detail(false);b.reset();a=a.getData();arskom.misc.is_na(a)||(b.set_wsc(this.get_wsc()),b.set_domain_name(this.getCurrent_domain_name()),b.set_map(this.get_map()),b.set_geofence_cache(atr.cache.Geofence.getInstance()),b.set_start(a.get_start()),b.set_end(a.get_end()),b.set_vehicles(a.get_vehicles()),b.set_event_types(a.get_event_types()),b.set_fleets(a.get_fleets()),b.set_extra_data(a.get_extra_data()),b.refresh());b.show()},__uU:function(){return this.get_factory().get_instance(atr.impl.activity_archive.Earth,
function(){})},__uV:function(a){var b=this.__uU(),a=a.getData();arskom.misc.is_na(a)||(b.set_wsc(this.get_wsc()),b.set_domain_name(this.getCurrent_domain_name()),b.set_qo(a),b.reset(),b.refresh(),b.show())},__uW:function(a){var b=a.getData(),a=new atr.impl.activity_archive.ActivityArchiveList;a.addListener("hide",this.on_hide_execute,this);a.addListener("undock",this.__uT,this);b.set_update_map(atr.proc.Vehicle.UPDATE_AND_CENTER_MAP);a.set_table(b);a.get_table().refresh();b=this.hbox_activity_archive_implicit_container;
b.removeAll();b.add(a.getWidget(),{flex:1})},on_btn_fleet_execute:function(){var a=atr.impl.fleet.List.getInstance();a.set_wsc(this.get_wsc());a.set_domain_name(this.getCurrent_domain_name());a.set_show_filters(false);a.reset();a.show()},on_btn_tb_user_preferences:function(){var a=arskom.ui.impl.user.Preferences.getInstance();a.set_wsc(this.get_wsc());a.reset();a.setDomain_name(this.getCurrent_domain_name());a.setUser_name(this.getCurrent_user_name());a.set_to_screen();a.show()},on_btn_tb_log:function(){var a=
new arskom.ui.impl.LogList;a.set_wsc(this.get_wsc());a.show()},on_message_execute:function(){var a=this.__uM();a.set_wsc(this.get_wsc());a.set_domain_name(this.tbl_vehicle_activity.get_domain_name());a.set_fleet_id(this.tbl_vehicle_activity.get_fleets()[0]);a.set_vehicle_id(this.tbl_vehicle_activity.get_vehicles()[0]);a.refresh()},on_btn_add_geofence_execute:function(){this.show_bar(atr.impl.Main.SCR_GEOFENCE)},on_btn_add_poi_execute:function(){this.show_bar(atr.impl.Main.SCR_POI)},on_btn_del_poi_execute:function(){var a=
this,b=arskom.misc.selected_table_cell(this.tbl_poi,"id");b!==""&&confirm(this.tr("Are you sure that you want to delete selected record?"))&&(this.get_wsc().c.cvs.easy(atr.proc.Poi.DEL,this.getCurrent_domain_name(),b,function(){a.tbl_poi.refresh()}),this.get_map().clean_layers(["icon","line","geofence","poi"]))},on_btn_del_geofence_execute:function(){var a=this,b=arskom.misc.selected_table_cell(this.tbl_geofence,"id");!arskom.misc.is_na(b)&&confirm(a.tr("Are you sure that you want to delete selected record?"))&&
this.get_wsc().c.cvs.easy(atr.proc.Geofence.DEL,this.getCurrent_domain_name(),b,function(){a.tbl_geofence.refresh()})},on_dte_day_shown_change_value:function(a){var a=a.getData().getTime(),b=new Date(a);this.tbl_vehicle_activity.set_end(new Date(a+864E5));this.tbl_vehicle_activity.set_start(b);this.dte_day_shown.no_change_selection||this.tbl_vehicle_activity.refresh()},on_btn_refresh_event_execute:function(){this.tbl_vehicle_activity.refresh()},on_btn_refresh_geofence_execute:function(){this.tbl_geofence.refresh()},
on_btn_refresh_poi_execute:function(){this.tbl_poi.refresh()},on_btn_tb_admin_corp_execute:function(){var a=this.__uL();a.set_wsc(this.get_wsc());a.set_allow_add_edt_del_corporation(this.get_allow_add_edt_del_corporation());a.set_allow_manuser_switch_corporation(this.get_allow_manuser_switch_corporation());a.set_show_filters(false);a.reset();a.refresh();a.show()},__uX:function(){return this.get_factory().get_instance(arskom.ui.impl.user.List,function(){})},on_admin_user_execute:function(){var a=this.__uX();
a.set_wsc(this.get_wsc());a.set_domain_name(this.getCurrent_domain_name());a.set_user_object_name(["track.core","User"]);a.set_show_filters(false);a.refresh();a.show()},__tS:function(){return this.get_factory().get_instance(atr.impl.predefined_message_group.List,function(){})},__uY:function(){var a=this.__tS();a.set_wsc(this.get_wsc());a.reset();a.refresh();a.show()},on_logout_execute:function(){this.fsm.fireImmediateEvent("logout")},__va:function(a){var a=a.getData(),b=this.get_map();b==null&&(b=
new arskom.ui.Map);b.set_kvs_id(a.get_id());a.get_id()==null?b.get_map_type()!="google"&&b.init_google():a.get_type()=="t"?b.get_map_type()!="google"&&b.init_google():b.get_map_type()!="custom_maritime"&&b.init_maritime();this.set_map(b)},current_fleet_id:function(){return this.comp_fleet_vehicle.tbl_vehicle.get_fleet_id()},show_bar:function(a){var b=null,c=this.get_map();c.clean_layers(["icon","line","geofence","poi"]);this.reset_bar(a);switch(a){case 0:c.activate_point();b=this.scr_poi;break;case 1:c.activate_polygon();
b=this.scr_geofence;break;case 2:b=this.scr_message}b!==null&&(b.reset(),this.hbox_subtoolbar_implicit_container.add(b.getWidget(),{flex:1}))},reset_bar:function(a){var b=this.get_map();a==atr.impl.Main.SCR_POI?(this.scr_poi.reset(),b.deactivate_point()):a==atr.impl.Main.SCR_GEOFENCE&&(this.scr_geofence.reset(),b.deactivate_polygon());this.hbox_subtoolbar_implicit_container.removeAll()},switch_to:function(a){(a=a.getData())?this.setCurrent_domain_name(a):alert(this.tr("You must select a domain from the list."));
this.comp_fleet_vehicle.refresh_fleet();this.tbl_geofence.refresh();this.tbl_poi.refresh()},create_btn_rule:function(){var a=atr.draw.Main.prototype.create_btn_rule.call(this);a.setIcon(atr.proc.Consts.ICON_RULE);a.setToolTip(new qx.ui.tooltip.ToolTip(atr.proc.Consts.TITLE_VEH_RULE,atr.proc.Consts.ICON_TOOLTIP));a.addListener("execute",this.__vb,this);return a},__sO:function(){if(this.rule_list==null)this.rule_list=new atr.impl.rule.List;return this.rule_list},__vb:function(){var a=this.__sO();a.set_wsc(this.get_wsc());
a.set_domain_name(this.getCurrent_domain_name());a.set_fleet_id(this.tbl_vehicle_activity.get_fleets()[0]);a.set_vehicle_id(this.tbl_vehicle_activity.get_vehicles()[0]);a.set_allow_private_components(true);a.set_allow_change_rule(this.get_allow_change_rule());a.reset();a.refresh();a.show()},__vc:function(){var a=this;return a.get_factory().get_instance(atr.impl.message.List,function(b){b.addListener("close",a.__vg,a)})},create_tb_btn_message_toolbar:function(){var a=atr.draw.Main.prototype.create_tb_btn_message_toolbar.call(this);
a.addListener("execute",this.__vd,this);this.create_message_timer();return a},__vd:function(){var a="?_cookie="+arskom.misc.url_encode(arskom.ui.impl.Login.s_cookie)+"&_user_name="+arskom.misc.url_encode(arskom.ui.impl.Login.s_user_name)+"&_domain_name="+arskom.misc.url_encode(arskom.ui.impl.Login.s_domain_name);window.open("/messaging/"+a)},create_message_timer:function(){this.__ve=new qx.event.Timer;this.__ve.stop();this.__ve.setInterval(3E5);this.__ve.setEnabled(false);this.__ve.addListener("interval",
this.__vf,this)},__vf:function(){this.__vg()},__vg:function(){},__ve:null}})})();
(function(){qx.Class.define("atr.impl.activity_archive.List",{extend:arskom.ui.impl.DataDisplay,include:[qx.locale.MTranslation],properties:{_domain_name:{check:"String",apply:"apply_domain_name"},_vehicles:{check:"Array",apply:"apply_vehicles"},_fleets:{check:"Array",apply:"apply_fleets"},_event_types:{check:"Array",apply:"apply_event_types"},_map:{check:"arskom.ui.Map",apply:"apply_map",init:null,nullable:true},_update_map:{check:"Integer",apply:"apply_update_map",init:1},_start:{check:"Date",init:null,
apply:"apply_start",nullable:true},_end:{check:"Date",init:null,apply:"apply_end",nullable:true},_extra_data:{check:"Object",init:null,apply:"apply_extra_data",nullable:true},_geofence_cache:{check:"atr.cache.Geofence",apply:"apply_geofence_cache"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id")},events:{dock:"qx.event.type.Data"},members:{btn_msg_user_toolbar:null,btn_switch_to_toolbar:null,apply_map:function(a){this.table.set_map(a)},apply_archive_q:function(){},
apply_domain_name:function(a){this.table.set_domain_name(a)},apply_vehicles:function(a){this.table.set_vehicles(a)},apply_fleets:function(a){this.table.set_fleets(a)},apply_event_types:function(a){this.table.set_event_types(a)},apply_update_map:function(a){this.table.set_update_map(a)},apply_start:function(a){this.table.set_start(a)},apply_end:function(a){this.table.set_end(a)},apply_extra_data:function(a){this.table.set_extra_data(a)},apply_prev_focused_row:function(a){this.table.set_prev_focused_row(a)},
apply_geofence_cache:function(){},create_table:function(){var a=this.table=new atr.comp.ArchiveQueryResultTable;a.setMargin(1);return a},create_toolBar:function(){var a=arskom.ui.impl.DataDisplay.prototype.create_toolBar.call(this),b=new qx.ui.toolbar.Part;b.add(this.create_btn_show_on_map_toolbar());b.add(this.create_btn_show_on_google_earth_toolbar());b.add(this.create_btn_export_to_csv_toolbar());a.add(b);return a},create_btn_show_on_map_toolbar:function(){var a=this.btn_show_on_map_toolbar=new qx.ui.toolbar.Button;
a.setLabel(this.tr("Show On Map"));a.setIcon("arskom/icons/22x22/edit_pen.png");a.addListener("execute",this.__xd,this);return a},__xd:function(){this.wgt_table.remove(this.table);this.get_window().close();this.fireDataEvent("dock",this.table)},create_btn_show_on_google_earth_toolbar:function(){var a=this.btn_show_on_map_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Show On Google Earth"));a.setIcon("http://www.google.com/earth/images/google_earth_link.gif");a.addListener("execute",this.__xe,
this);return a},__xe:function(){var a={qo_end:this.get_end()?soap.Client.datetime_isoformat(this.get_end()):null,qo_start:this.get_end()?soap.Client.datetime_isoformat(this.get_start()):null,qo_fleets_integer:this.get_fleets(),qo_vehicles_integer:this.get_vehicles(),domain_name:this.get_domain_name(),qo_event_types_string:this.get_event_types()},b="?_who="+arskom.misc.url_encode(arskom.ui.impl.Login.s_who),c;for(c in a)if(a.hasOwnProperty(c)&&a[c])if(c=="qo_vehicles_integer"||c=="qo_fleets_integer")for(var d=
0,e=a[c].length;d<e;++d)b+="&"+c+"="+arskom.misc.url_encode(a[c][d]);else b+="&"+c+"="+arskom.misc.url_encode(a[c]);window.open("/report_kml/query_activity_archive_full"+b)},create_btn_export_to_csv_toolbar:function(){var a=this.btn_show_on_map_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Export to CSV"));a.setIcon("atr/icons/22x22/csv.png");a.addListener("execute",this.__xf,this);return a},__xf:function(){var a={qo_end:this.get_end()?soap.Client.datetime_isoformat(this.get_end()):null,qo_start:this.get_end()?
soap.Client.datetime_isoformat(this.get_start()):null,qo_fleets_integer:this.get_fleets(),qo_vehicles_integer:this.get_vehicles(),domain_name:this.get_domain_name(),qo_event_types_string:this.get_event_types()},b="?_who="+arskom.misc.url_encode(arskom.ui.impl.Login.s_who),c;for(c in a)if(a.hasOwnProperty(c)&&a[c])if(c=="qo_vehicles_integer"||c=="qo_fleets_integer")for(var d=0,e=a[c].length;d<e;++d)b+="&"+c+"="+arskom.misc.url_encode(a[c][d]);else b+="&"+c+"="+arskom.misc.url_encode(a[c]);window.open("/report_csv/query_activity_archive_full"+
b)},show:function(){this.get_window(this.tr("Vehicle"),"","").open()},reset:function(){this.table.set_update_map(atr.proc.Vehicle.NO_UPDATE_MAP);this.set_update_map(atr.proc.Vehicle.NO_UPDATE_MAP);this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},refresh:function(){this.table.refresh()}}})})();
(function(){qx.Class.define("atr.comp.ArchiveQueryResultTable",{extend:atr.comp.ActivityTable,construct:function(a,b){atr.comp.ActivityTable.call(this,a,b);this.addListener("changeTableModel",this.__vh,this)},members:{__vh:function(a){this.set_top_row(0);a.getData().addListener("dataLoaded",this.on_data_loaded,this)},get_default_view:function(){var a=this.getTableColumnModel();a.setColumnVisible(1,false);a.setColumnVisible(8,false);a.setColumnVisible(9,false);a.setColumnVisible(12,false);a.setColumnVisible(13,
false);a.setColumnVisible(14,false);a.setColumnVisible(15,false);a.setColumnVisible(16,false);a.setColumnVisible(17,false);a.setColumnVisible(18,false);a.setColumnVisible(19,false);a.setColumnWidth(0,30);a.setColumnWidth(1,30);a.setColumnWidth(2,60);a.setColumnWidth(3,90);a.setColumnWidth(4,90);a.setColumnWidth(5,150);a.setColumnWidth(6,30);a.setColumnWidth(7,30);a.setColumnWidth(10,60);a.setColumnWidth(11,30)},set_renderers:function(){atr.comp.ActivityTable.prototype.set_renderers.call(this);var a=
this.getTableColumnModel();a.setDataCellRenderer(0,new qx.ui.table.cellrenderer.Html);a.setDataCellRenderer(3,arskom.misc.get_date_cellrenderer());a.setDataCellRenderer(4,arskom.misc.get_date_cellrenderer())}}})})();
(function(){qx.Class.define("arskom.ui.impl.corporation.List",{extend:arskom.ui.impl.DataDisplay,properties:{_allow_add_edt_del_corporation:{check:"Boolean",apply:"apply_allow_add_edt_del_corporation"},_allow_manuser_switch_corporation:{check:"Boolean",apply:"apply_allow_manuser_switch_corporation"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("domain")},events:{"switch":"qx.event.type.Data"},members:{btn_msg_user_toolbar:null,btn_switch_to_toolbar:null,__vi:null,
apply_allow_add_edt_del_corporation:function(a){a==false?(this.btn_add_toolbar.setVisibility("excluded"),this.btn_edt_toolbar.setVisibility("excluded"),this.btn_del_toolbar.setVisibility("excluded")):(this.btn_add_toolbar.setVisibility("visible"),this.btn_edt_toolbar.setVisibility("visible"),this.btn_del_toolbar.setVisibility("visible"))},apply_allow_manuser_switch_corporation:function(a){a==false?(this.btn_switch_to_toolbar.setVisibility("excluded"),this.btn_msg_user_toolbar.setVisibility("excluded")):
(this.btn_switch_to_toolbar.setVisibility("visible"),this.btn_msg_user_toolbar.setVisibility("visible"))},__vj:function(){if(this.__vi==null){var a=arskom.ui.impl.corporation.Detail.getInstance();a.addListener("successful_save",this.__td,this);this.__vi=a}return this.__vi},create_table:function(){var a=this.table=new arskom.ui.comp.CorporationTable(null);a.setMargin(1);return a},__td:function(){this.refresh()},pop_add_dialog:function(){var a=this.__vj();a.set_domain_name(null);a.set_wsc(this.get_wsc());
a.reset();a.show()},pop_edt_dialog:function(a){var b=this.__vj();b.set_domain_name(a[0]);b.set_wsc(this.get_wsc());b.reset();b.show()},pop_del_dialog:function(a){var b=this;b.get_wsc().c.cvs.easy(arskom.ui.proc.Corporation.DEL,a[0],function(){b.refresh()})},pop_details_dialog:function(a){var b=this.__vj();b.set_domain_name(a[0]);b.set_wsc(this.get_wsc());b.reset();b.set_allow_save(false);b.show()},create_toolBar:function(){var a=arskom.ui.impl.DataDisplay.prototype.create_toolBar.call(this),b=new qx.ui.toolbar.Part;
b.add(this.create_btn_msg_user_toolbar());a.add(b);a.add(this.create_btn_switch_to_toolbar());return a},create_btn_msg_user_toolbar:function(){var a=this.btn_msg_user_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Manage Users"));a.setIcon("arskom/icons/22x22/edit_pen.png");a.addListener("execute",this.on_btn_msg_user_toolbar_execute,this);return a},create_btn_switch_to_toolbar:function(){var a=this.btn_switch_to_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Switch to"));a.setIcon("arskom/icons/22x22/edit_pen.png");
a.addListener("execute",this.on_btn_switch_to_toolbar_execute,this);return a},on_btn_msg_user_toolbar_execute:function(){var a=new arskom.ui.impl.user.List,b=this.get_pk_values();b.length>0?(a.set_domain_name(b[0]),a.set_wsc(this.get_wsc()),a.set_user_object_name(["track.core","User"]),a.set_show_filters(false),a.reset(),a.refresh(),a.show()):alert(this.tr("Please select an entry"))},on_btn_switch_to_toolbar_execute:function(){var a=this.get_pk_values();a.length>0?this.fireDataEvent("switch",a[0]):
alert(this.tr("Please select an entry"))},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Corporation"),"","").open()}}})})();
(function(){qx.Class.define("arskom.ui.draw.corporation.Detail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_CorporationDetail())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{CorporationDetail:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,chk_active:null,create_CorporationDetail:function(){var a=this.CorporationDetail=new qx.ui.container.Composite(this.create___lv());a.setHeight(527);a.setWidth(439);a.setMargin(1);
a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setMaxHeight(23);a.setMaxWidth(75);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(23);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setMaxHeight(23);a.setMaxWidth(75);a.setLabel(this.tr("Save"));a.setMargin(1);a.setMinHeight(23);return a},
create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_tbv_corporation(),{flex:1});a.add(this.create_pnl_bottom(),{flex:1});return a},create_chk_active:function(){var a=this.chk_active=new qx.ui.form.CheckBox;a.setHeight(22);a.setWidth(20);a.setMaxHeight(22);a.setLabel(this.tr(""));a.setMargin(1);a.setMinWidth(20);a.setMinHeight(22);return a},create_det_country:function(){var a=this.det_country=new qx.ui.container.Composite(this.create_verticalLayout_6());
a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_dte_signup_date:function(){var a=this.dte_signup_date=new qx.ui.form.DateField;a.setMargin(1);return a},create_edt_admin_contact:function(){var a=this.edt_admin_contact=new qx.ui.form.TextField;a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_edt_avenue:function(){var a=this.edt_avenue=new qx.ui.form.TextField;a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);
return a},create_edt_building_name:function(){var a=this.edt_building_name=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);a.setAllowGrowY(false);return a},create_edt_building_number:function(){var a=this.edt_building_number=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);a.setAllowGrowY(false);return a},
create_edt_city:function(){var a=this.edt_city=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);a.setAllowGrowY(false);return a},create_edt_comments:function(){var a=this.edt_comments=new qx.ui.form.TextArea;a.setHeight(80);a.setWidth(250);a.setMargin(1);a.setMinWidth(250);a.setMinHeight(80);return a},create_edt_district:function(){var a=this.edt_district=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);
a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);a.setAllowGrowY(false);return a},create_edt_domain:function(){var a=this.edt_domain=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},create_edt_door_number:function(){var a=this.edt_door_number=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);
a.setMinWidth(200);a.setMinHeight(22);a.setAllowGrowY(false);return a},create_edt_email:function(){var a=this.edt_email=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},create_edt_phone:function(){var a=this.edt_phone=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_street:function(){var a=
this.edt_street=new qx.ui.form.TextField;a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_edt_tax_authority:function(){var a=this.edt_tax_authority=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},create_edt_tax_number:function(){var a=this.edt_tax_number=new qx.ui.form.TextField;a.setHeight(20);a.setWidth(200);a.setMaxHeight(20);a.setMaxWidth(200);a.setMargin(1);
a.setMinWidth(200);a.setMinHeight(20);return a},create_edt_tech_contact:function(){var a=this.edt_tech_contact=new qx.ui.form.TextField;a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_edt_webpage:function(){var a=this.edt_webpage=new qx.ui.form.TextField;a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_edt_zipcode:function(){var a=this.edt_zipcode=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);
a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(13);
a.setWidth(256);a.setMargin(1);return a},create_label_14:function(){var a=this.label_14=new qx.ui.basic.Label;a.setWidth(140);a.setMaxWidth(140);a.setValue(this.tr("Street"));a.setMargin(1);a.setMinWidth(140);return a},create_label_15:function(){var a=this.label_15=new qx.ui.basic.Label;a.setValue(this.tr("Avenue"));a.setMargin(1);return a},create_label_17:function(){var a=this.label_17=new qx.ui.basic.Label;a.setValue(this.tr("Door Number"));a.setMargin(1);return a},create_label_18:function(){var a=
this.label_18=new qx.ui.basic.Label;a.setValue(this.tr("Building Number"));a.setMargin(1);return a},create_label_19:function(){var a=this.label_19=new qx.ui.basic.Label;a.setValue(this.tr("Building Name"));a.setMargin(1);return a},create_label_20:function(){var a=this.label_20=new qx.ui.basic.Label;a.setValue(this.tr("City"));a.setMargin(1);return a},create_label_21:function(){var a=this.label_21=new qx.ui.basic.Label;a.setValue(this.tr("District"));a.setMargin(1);return a},create_label_22:function(){var a=
this.label_22=new qx.ui.basic.Label;a.setValue(this.tr("Country"));a.setMargin(1);return a},create_label_23:function(){var a=this.label_23=new qx.ui.basic.Label;a.setValue(this.tr("Phone"));a.setMargin(1);return a},create_label_24:function(){var a=this.label_24=new qx.ui.basic.Label;a.setValue(this.tr("E-Mail"));a.setMargin(1);return a},create_label_25:function(){var a=this.label_25=new qx.ui.basic.Label;a.setValue(this.tr("Webpage"));a.setMargin(1);return a},create_label_26:function(){var a=this.label_26=
new qx.ui.basic.Label;a.setValue(this.tr("Administrative Contact"));a.setMargin(1);return a},create_label_27:function(){var a=this.label_27=new qx.ui.basic.Label;a.setValue(this.tr("Technical Contact"));a.setMargin(1);return a},create_label_29:function(){var a=this.label_29=new qx.ui.basic.Label;a.setValue(this.tr("Zipcode"));a.setMargin(1);return a},create_label_30:function(){var a=this.label_30=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Domain"));a.setMargin(1);
a.setMinWidth(110);return a},create_label_32:function(){var a=this.label_32=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Name"));a.setMargin(1);a.setMinWidth(110);return a},create_label_34:function(){var a=this.label_34=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Tax Authority"));a.setMargin(1);a.setMinWidth(110);return a},create_label_35:function(){var a=this.label_35=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Tax Number"));
a.setMargin(1);a.setMinWidth(110);return a},create_label_41:function(){var a=this.label_41=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Active"));a.setMargin(1);a.setMinWidth(110);return a},create_label_42:function(){var a=this.label_42=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Signup Date"));a.setMargin(1);a.setMinWidth(110);return a},create_label_43:function(){var a=this.label_43=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);
a.setValue(this.tr("Comments"));a.setMargin(1);a.setMinWidth(110);return a},create_pnl_bottom:function(){var a=this.pnl_bottom=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setHeight(36);a.setMaxHeight(36);a.setMaxWidth(420);a.setMargin(1);a.setMinHeight(36);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer(),{flex:1});return a},create_scr1:function(){var a=this.scr1=new qx.ui.container.Scroll;a.setMargin(1);a.add(this.create_scr1area(),
{left:0,top:0});return a},create_scr1area:function(){var a=this.scr1area=new qx.ui.container.Composite(this.create_gridLayout_2());a.setHeight(413);a.setWidth(395);a.setMargin(1);a.add(this.create_label_30(),{column:0,row:0});a.add(this.create_edt_domain(),{column:1,row:0});a.add(this.create_label_32(),{column:0,row:1});a.add(this.create_edt_name(),{column:1,row:1});a.add(this.create_label_34(),{column:0,row:2});a.add(this.create_edt_tax_authority(),{column:1,row:2});a.add(this.create_label_35(),
{column:0,row:3});a.add(this.create_edt_tax_number(),{column:1,row:3});a.add(this.create_label_41(),{column:0,row:4});a.add(this.create_chk_active(),{column:1,row:4});a.add(this.create_label_42(),{column:0,row:5});a.add(this.create_dte_signup_date(),{column:1,row:5});a.add(this.create_label_43(),{column:0,row:6});a.add(this.create_edt_comments(),{column:1,row:6});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setRowFlex(4,1);b.setRowFlex(5,1);b.setRowFlex(6,
1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_scr2:function(){var a=this.scr2=new qx.ui.container.Scroll;a.setMargin(1);a.add(this.create_scr2_2(),{left:0,top:0});return a},create_scr2_2:function(){var a=this.scr2_2=new qx.ui.container.Composite(this.create_gridLayout());a.setHeight(414);a.setWidth(395);a.setMargin(1);a.add(this.create_label_14(),{column:0,row:0});a.add(this.create_edt_street(),{column:1,row:0});a.add(this.create_label_15(),{column:0,row:1});a.add(this.create_edt_avenue(),
{column:1,row:1});a.add(this.create_label_17(),{column:0,row:2});a.add(this.create_edt_door_number(),{column:1,row:2});a.add(this.create_label_18(),{column:0,row:3});a.add(this.create_edt_building_number(),{column:1,row:3});a.add(this.create_label_19(),{column:0,row:4});a.add(this.create_edt_building_name(),{column:1,row:4});a.add(this.create_label_20(),{column:0,row:5});a.add(this.create_edt_city(),{column:1,row:5});a.add(this.create_label_29(),{column:0,row:6});a.add(this.create_edt_zipcode(),{column:1,
row:6});a.add(this.create_label_21(),{column:0,row:7});a.add(this.create_edt_district(),{column:1,row:7});a.add(this.create_label_22(),{column:0,row:8});a.add(this.create_det_country(),{column:1,row:8});a.add(this.create_label_23(),{column:0,row:9});a.add(this.create_edt_phone(),{column:1,row:9});a.add(this.create_label_24(),{column:0,row:10});a.add(this.create_edt_email(),{column:1,row:10});a.add(this.create_label_25(),{column:0,row:11});a.add(this.create_edt_webpage(),{column:1,row:11});a.add(this.create_label_26(),
{column:0,row:12});a.add(this.create_edt_admin_contact(),{column:1,row:12});a.add(this.create_label_27(),{column:0,row:13});a.add(this.create_edt_tech_contact(),{column:1,row:13});a.add(this.create_verticalSpacer_2(),{column:0,row:14});a.add(this.create_verticalSpacer(),{column:1,row:14});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setRowFlex(4,1);b.setRowFlex(5,1);b.setRowFlex(6,1);b.setRowFlex(7,1);b.setRowFlex(8,1);b.setRowFlex(9,1);b.setRowFlex(10,
1);b.setRowFlex(11,1);b.setRowFlex(12,1);b.setRowFlex(13,1);b.setRowFlex(14,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_tbs_contact:function(){var a=this.tbs_contact=new qx.ui.tabview.Page;a.setLabel(this.tr("Contact"));a.setMargin(1);a.setLayout(this.create_verticalLayout_2());a.add(this.create_scr2(),{flex:1});return a},create_tbs_general:function(){var a=this.tbs_general=new qx.ui.tabview.Page;a.setLabel(this.tr("General"));a.setMargin(1);a.setLayout(this.create_horizontalLayout());
a.add(this.create_scr1(),{flex:1});return a},create_tbv_corporation:function(){var a=this.tbv_corporation=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tbs_general());a.add(this.create_tbs_contact());return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalLayout_2:function(){return this.verticalLayout_2=new qx.ui.layout.VBox},create_verticalLayout_6:function(){return this.verticalLayout_6=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=
this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(64);a.setWidth(20);a.setMargin(1);return a},create_verticalSpacer_2:function(){var a=this.verticalSpacer_2=new qx.ui.core.Spacer;a.setHeight(64);a.setWidth(20);a.setMargin(1);return a},det_country:null,dte_signup_date:null,edt_admin_contact:null,edt_avenue:null,edt_building_name:null,edt_building_number:null,edt_city:null,edt_comments:null,edt_district:null,edt_domain:null,edt_door_number:null,edt_email:null,edt_name:null,edt_phone:null,edt_street:null,
edt_tax_authority:null,edt_tax_number:null,edt_tech_contact:null,edt_webpage:null,edt_zipcode:null,gridLayout:null,gridLayout_2:null,horizontalLayout:null,horizontalLayout_2:null,horizontalSpacer:null,label_14:null,label_15:null,label_17:null,label_18:null,label_19:null,label_20:null,label_21:null,label_22:null,label_23:null,label_24:null,label_25:null,label_26:null,label_27:null,label_29:null,label_30:null,label_32:null,label_34:null,label_35:null,label_41:null,label_42:null,label_43:null,pnl_bottom:null,
scr1:null,scr1area:null,scr2:null,scr2_2:null,tbs_contact:null,tbs_general:null,tbv_corporation:null,verticalLayout:null,verticalLayout_2:null,verticalLayout_6:null,verticalSpacer:null,verticalSpacer_2:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("qx.ui.form.TextArea",{extend:qx.ui.form.AbstractField,construct:function(a){qx.ui.form.AbstractField.call(this,a);this.initWrap();this.addListener("mousewheel",this._onMousewheel,this)},properties:{wrap:{check:"Boolean",init:true,apply:"_applyWrap"},appearance:{refine:true,init:"textarea"},singleStep:{check:"Integer",init:20},minimalLineHeight:{check:"Integer",apply:"_applyMinimalLineHeight",init:4},autoSize:{check:"Boolean",apply:"_applyAutoSize",init:false}},members:{__vk:null,
__vl:null,__vm:null,setValue:function(a){a=qx.ui.form.AbstractField.prototype.setValue.call(this,a);this.__vn();return a},_onMousewheel:function(a){var b=this.getContentElement(),c=b.getScrollY();b.scrollToY(c+a.getWheelDelta("y")*this.getSingleStep());b.getScrollY()!=c&&a.stop()},__vn:function(){if(this.isAutoSize())if(this.__vo()){this.__vm=this.__vm||this._getAreaHeight();var a=this._getScrolledAreaHeight();if(this.getMaxHeight()){var b=this.getInsets(),b=-b.top+this.getMaxHeight()-b.bottom;a>
b?this.getContentElement().setStyle("overflowY","auto"):this.getContentElement().setStyle("overflowY","hidden")}this._setAreaHeight(Math.max(a,this.__vm))}else this.addListenerOnce("appear",function(){this.__vn()},this)},_getAreaHeight:function(){return this.getInnerSize().height},_setAreaHeight:function(a){if(this._getAreaHeight()!==a)this.__vl=a,qx.ui.core.queue.Layout.add(this),qx.ui.core.queue.Manager.flush(),this.__vr()},_getScrolledAreaHeight:function(){var a=this.__vo(),b=a.getDomElement();
if(b){if(!b.parentNode)return qx.html.Element.flush(),this._getScrolledAreaHeight();qx.core.Environment.get("engine.name")==="webkit"&&a.setWrap(!this.getWrap(),true);a.setWrap(this.getWrap(),true);if(qx.core.Environment.get("engine.name")=="webkit")b.style.overflow="hidden";if(qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("browser.documentmode")>=8)b.style.overflow="visible";a.setValue(this.getValue());this.__vq(a);return qx.core.Environment.get("engine.name")=="mshtml"?
(b.scrollTop||qx.html.Element.flush(),b.scrollTop+this._getTextSize().height):b.scrollTop}},__vo:function(){return this.__vk=this.__vk||this.__vp()},__vp:function(){var a,b,c;a=this.getContentElement();if(a.getDomElement())return b=qx.bom.Collection.create(a.getDomElement()).clone()[0],c=new qx.html.Input("textarea"),c.useElement(b),c.setStyles({position:"absolute",top:0,left:-9999,height:0,overflow:"hidden"},true),c.removeAttribute("id"),c.removeAttribute("name"),c.setAttribute("tabIndex","-1"),
c.setValue(a.getValue()),c.insertBefore(a),this.__vq(c),c},__vq:function(a){if(a=a.getDomElement())a.scrollTop=1E4},_createInputElement:function(){return new qx.html.Input("textarea",{overflowX:"auto",overflowY:"auto"})},_applyWrap:function(a){this.getContentElement().setWrap(a);this.__vn()},_applyMinimalLineHeight:function(){qx.ui.core.queue.Layout.add(this)},_applyAutoSize:function(a){qx.core.Environment.get("qx.debug")&&this.__vs();a?(this.__vn(),this.addListener("input",this.__vn,this),this.addListenerOnce("appear",
function(){this.getContentElement().setStyle("overflowY","hidden")})):(this.removeListener("input",this.__vn),this.getContentElement().setStyle("overflowY","auto"))},_applyDimension:function(a){qx.ui.form.AbstractField.prototype._applyDimension.call(this);qx.core.Environment.get("qx.debug")&&this.__vs();a===this.getMaxHeight()&&this.__vn()},__vr:function(){var a=this.getContentElement(),b=a.getDomElement(),c=a.getStyle("width");a.setStyle("width",parseInt(c,10)+1E3+"px",true);b&&qx.bom.element.Dimension.getWidth(b);
a.setStyle("width",c,true)},__vs:function(){this.isAutoSize()&&this.getHeight()&&this.warn("autoSize is ignored when the height property is set. If you want to set an initial height, use the minHeight property instead.")},_getContentHint:function(){var a=qx.ui.form.AbstractField.prototype._getContentHint.call(this);a.height*=this.getMinimalLineHeight();a.width=this._getTextSize().width*20;if(this.isAutoSize())a.height=this.__vl||a.height;return a}}})})();
(function(){qx.Class.define("qx.bom.element.Class",{statics:{__vt:/\s+/g,__vu:/^\s+|\s+$/g,add:qx.lang.Object.select(qx.core.Environment.get("html.classlist")?"native":"default",{"native":function(a,b){a.classList.add(b);return b},"default":function(a,b){this.has(a,b)||(a.className+=(a.className?" ":"")+b);return b}}),addClasses:qx.lang.Object.select(qx.core.Environment.get("html.classlist")?"native":"default",{"native":function(a,b){for(var c=0;c<b.length;c++)a.classList.add(b[c]);return a.className},
"default":function(a,b){var c={},d;if(d=a.className){d=d.split(this.__vt);for(var e=0,f=d.length;e<f;e++)c[d[e]]=true;e=0;for(f=b.length;e<f;e++)c[b[e]]||d.push(b[e])}else d=b;return a.className=d.join(" ")}}),get:function(a){var b=a.className;if(typeof b.split!=="function"){if(typeof b==="object")qx.Bootstrap.getClass(b)=="SVGAnimatedString"?b=b.baseVal:(qx.core.Environment.get("qx.debug")&&qx.log.Logger.warn(this,"className for element "+a+" cannot be determined"),b="");typeof b==="undefined"&&
(qx.core.Environment.get("qx.debug")&&qx.log.Logger.warn(this,"className for element "+a+" is undefined"),b="")}return b},has:qx.lang.Object.select(qx.core.Environment.get("html.classlist")?"native":"default",{"native":function(a,b){return a.classList.contains(b)},"default":function(a,b){return RegExp("(^|\\s)"+b+"(\\s|$)").test(a.className)}}),remove:qx.lang.Object.select(qx.core.Environment.get("html.classlist")?"native":"default",{"native":function(a,b){a.classList.remove(b);return b},"default":function(a,
b){a.className=a.className.replace(RegExp("(^|\\s)"+b+"(\\s|$)"),"$2");return b}}),removeClasses:qx.lang.Object.select(qx.core.Environment.get("html.classlist")?"native":"default",{"native":function(a,b){for(var c=0;c<b.length;c++)a.classList.remove(b[c]);return a.className},"default":function(a,b){var c=RegExp("\\b"+b.join("\\b|\\b")+"\\b","g");return a.className=a.className.replace(c,"").replace(this.__vu,"").replace(this.__vt," ")}}),replace:function(a,b,c){this.remove(a,b);return this.add(a,c)},
toggle:qx.lang.Object.select(qx.core.Environment.get("html.classlist")?"native":"default",{"native":function(a,b,c){c===void 0?a.classList.toggle(b):c?this.add(a,b):this.remove(a,b);return b},"default":function(a,b,c){c==null&&(c=!this.has(a,b));c?this.add(a,b):this.remove(a,b);return b}})}})})();
(function(){var a=function(a,b){return function(e,f,g,h,i,j){var k=this.length;if(k>0)for(var l=a[b],m=0;m<k;m++)this[m].nodeType===1&&l.call(a,this[m],e,f,g,h,i,j);return this}},b=function(a,b){return function(e,f,g,h,i,j){return this.length>0?(e=this[0].nodeType===1?a[b](this[0],e,f,g,h,i,j):null)&&e.nodeType?this.__vz([e]):e:null}};qx.Class.define("qx.bom.Collection",{extend:qx.type.BaseArray,construct:function(a){qx.type.BaseArray.apply(this,arguments)},statics:{query:function(a,b){var e=qx.bom.Selector.query(a,
b);return qx.lang.Array.cast(e,qx.bom.Collection)},id:function(a){var b=document.getElementById(a);return b&&b.id!=a?qx.bom.Collection.query("#"+a):b?new qx.bom.Collection(b):new qx.bom.Collection},html:function(a,b){var e=qx.bom.Html.clean([a],b);return qx.lang.Array.cast(e,qx.bom.Collection)},__vv:/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,create:function(a,b){var e=qx.bom.Collection;if(a.nodeType)return new e(a);else if(typeof a==="string"){var f=e.__vv.exec(a);return f?f[1]?e.html(f[1],b):e.id(f[3]):
e.query(a,b)}else return qx.lang.Array.cast(a,qx.bom.Collection)}},members:{__vw:null,setAttribute:a(qx.bom.element.Attribute,"set"),resetAttribute:a(qx.bom.element.Attribute,"reset"),getAttribute:b(qx.bom.element.Attribute,"get"),addClass:a(qx.bom.element.Class,"add"),getClass:b(qx.bom.element.Class,"get"),hasClass:b(qx.bom.element.Class,"has"),removeClass:a(qx.bom.element.Class,"remove"),replaceClass:a(qx.bom.element.Class,"replace"),toggleClass:a(qx.bom.element.Class,"toggle"),setValue:a(qx.bom.Input,
"setValue"),getValue:b(qx.bom.Input,"getValue"),setStyle:a(qx.bom.element.Style,"set"),setStyles:a(qx.bom.element.Style,"setStyles"),resetStyle:a(qx.bom.element.Style,"reset"),getStyle:b(qx.bom.element.Style,"get"),setCss:a(qx.bom.element.Style,"setCss"),getCss:b(qx.bom.element.Style,"getCss"),getOffset:b(qx.bom.element.Location,"get"),getPosition:b(qx.bom.element.Location,"getPosition"),getOffsetParent:b(qx.bom.element.Location,"getOffsetParent"),setScrollLeft:function(a){for(var b=qx.dom.Node,e=
0,f=this.length,g;e<f;e++)g=this[e],b.isElement(g)?g.scrollLeft=a:b.isWindow(g)?g.scrollTo(a,this.getScrollTop(g)):b.isDocument(g)&&b.getWindow(g).scrollTo(a,this.getScrollTop(g));return this},setScrollTop:function(a){for(var b=qx.dom.Node,e=0,f=this.length,g;e<f;e++)g=this[e],b.isElement(g)?g.scrollTop=a:b.isWindow(g)?g.scrollTo(this.getScrollLeft(g),a):b.isDocument(g)&&b.getWindow(g).scrollTo(this.getScrollLeft(g),a);return this},getScrollLeft:function(){var a=this[0];if(!a)return null;var b=qx.dom.Node;
return b.isWindow(a)||b.isDocument(a)?qx.bom.Viewport.getScrollLeft():a.scrollLeft},getScrollTop:function(){var a=this[0];if(!a)return null;var b=qx.dom.Node;return b.isWindow(a)||b.isDocument(a)?qx.bom.Viewport.getScrollTop():a.scrollTop},getWidth:function(){var a=this[0],b=qx.dom.Node;if(a)if(b.isElement(a))return qx.bom.element.Dimension.getWidth(a);else if(b.isDocument(a))return qx.bom.Document.getWidth(b.getWindow(a));else if(b.isWindow(a))return qx.bom.Viewport.getWidth(a);return null},getContentWidth:function(){var a=
this[0];return qx.dom.Node.isElement(a)?qx.bom.element.Dimension.getContentWidth(a):null},getHeight:function(){var a=this[0],b=qx.dom.Node;if(a)if(b.isElement(a))return qx.bom.element.Dimension.getHeight(a);else if(b.isDocument(a))return qx.bom.Document.getHeight(b.getWindow(a));else if(b.isWindow(a))return qx.bom.Viewport.getHeight(a);return null},getContentHeight:function(){var a=this[0];return qx.dom.Node.isElement(a)?qx.bom.element.Dimension.getContentHeight(a):null},addListener:a(qx.bom.Element,
"addListener"),removeListener:a(qx.bom.Element,"removeListener"),eq:function(a){return this.slice(a,+a+1)},filter:function(a,b){return this.__vz(qx.lang.Type.isFunction(a)?qx.type.BaseArray.prototype.filter.call(this,a,b):qx.bom.Selector.matches(a,this))},is:function(a){return!!a&&qx.bom.Selector.matches(a,this).length>0},__vx:/^.[^:#\[\.,]*$/,not:function(a){if(this.__vx.test(a)){var b=qx.bom.Selector.matches(":not("+a+")",this);return this.__vz(b)}b=qx.bom.Selector.matches(a,this);return this.filter(function(a){return b.indexOf(a)===
-1})},add:function(a,b){var e=qx.bom.Selector.query(a,b);return this.__vz(qx.lang.Array.unique(this.concat(e)))},children:function(a){for(var b=[],e=0,f=this.length;e<f;e++)b.push.apply(b,qx.dom.Hierarchy.getChildElements(this[e]));a&&(b=qx.bom.Selector.matches(a,b));return this.__vz(b)},closest:function(a){var b=new qx.bom.Collection(1),e=qx.bom.Selector,f=this.map(function(f){for(;f&&f.ownerDocument;){b[0]=f;if(e.matches(a,b).length>0)return f;f=f.parentNode}});return this.__vz(qx.lang.Array.unique(f))},
contents:function(){for(var a=[],b=qx.lang.Array,e=0,f=this.length;e<f;e++)a.push.apply(a,b.fromCollection(this[e].childNodes));return this.__vz(a)},find:function(a){var b=qx.bom.Selector;if(this.length===1)return this.__vz(b.query(a,this[0]));else{for(var e=[],f=0,g=this.length;f<g;f++)e.push.apply(e,b.query(a,this[f]));return this.__vz(qx.lang.Array.unique(e))}},next:function(a){var b=qx.dom.Hierarchy,b=this.map(b.getNextElementSibling,b);a&&(b=qx.bom.Selector.matches(a,b));return this.__vz(b)},
nextAll:function(a){return this.__vy("getNextSiblings",a)},prev:function(a){var b=qx.dom.Hierarchy,b=this.map(b.getPreviousElementSibling,b);a&&(b=qx.bom.Selector.matches(a,b));return this.__vz(b)},prevAll:function(a){return this.__vy("getPreviousSiblings",a)},parent:function(a){var b=qx.dom.Element,b=qx.lang.Array.unique(this.map(b.getParentElement,b));a&&(b=qx.bom.Selector.matches(a,b));return this.__vz(b)},parents:function(a){return this.__vy("getAncestors",a)},siblings:function(a){return this.__vy("getSiblings",
a)},__vy:function(a,b){for(var e=[],f=qx.dom.Hierarchy,g=0,h=this.length;g<h;g++)e.push.apply(e,f[a](this[g]));e=qx.lang.Array.unique(e);b&&(e=qx.bom.Selector.matches(b,e));return this.__vz(e)},__vz:function(a){var b=new qx.bom.Collection;b.__vw=this;a=Array.prototype.slice.call(a,0);b.push.apply(b,a);return b},andSelf:function(){return this.add(this.__vw)},end:function(){return this.__vw||new qx.bom.Collection},__vA:function(a,b){var e=this[0],e=e.ownerDocument||e,f=e.createDocumentFragment(),e=
qx.bom.Html.clean(a,e,f);if(f.firstChild){for(var g=this.length-1,h=0,i=g;h<i;h++)b.call(this,this[h],f.cloneNode(true));b.call(this,this[g],f)}if(e)for(var g=qx.io.ScriptLoader,j=qx.lang.Function,h=0,i=e.length;h<i;h++)f=e[h],f.src?(new g).load(f.src):j.globalEval(f.text||f.textContent||f.innerHTML||""),f.parentNode&&f.parentNode.removeChild(f);return this},__vB:function(a,b){for(var e=qx.bom.Selector,f=qx.lang.Array,g=[],h=0,i=a.length;h<i;h++){if(qx.core.Environment.get("qx.debug")&&typeof a[h]!==
"string")throw Error("Invalid argument for selector query: "+a[h]);g.push.apply(g,e.query(a[h]))}g=f.cast(f.unique(g),qx.bom.Collection);h=0;for(e=this.length;h<e;h++)g[b](this[h]);return this},append:function(a){return this.__vA(arguments,this.__vC)},prepend:function(a){return this.__vA(arguments,this.__vD)},__vC:function(a,b){a.appendChild(b)},__vD:function(a,b){a.insertBefore(b,a.firstChild)},appendTo:function(a){return this.__vB(arguments,"append")},prependTo:function(a){return this.__vB(arguments,
"prepend")},before:function(a){return this.__vA(arguments,this.__vE)},after:function(a){return this.__vA(arguments,this.__vF)},__vE:function(a,b){a.parentNode.insertBefore(b,a)},__vF:function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},insertBefore:function(a){return this.__vB(arguments,"before")},insertAfter:function(a){return this.__vB(arguments,"after")},wrapAll:function(a){var b=this[0];b&&(a=qx.bom.Collection.create(a,b.ownerDocument).clone(),b.parentNode&&b.parentNode.insertBefore(a[0],
b),a.map(this.__vG).append(this));return this},__vG:function(a){for(;a.firstChild;)a=a.firstChild;return a},wrapInner:function(a){for(var b=new qx.bom.Collection(1),e=0,f=this.length;e<f;e++)b[0]=this[e],b.contents().wrapAll(a);return this},wrap:function(a){for(var b=new qx.bom.Collection(1),e=0,f=this.length;e<f;e++)b[0]=this[e],b.wrapAll(a);return this},replaceWith:function(a){return this.after(a).remove()},replaceAll:function(a){return this.__vB(arguments,"replaceWith")},remove:function(a){var b=
this;if(a&&(b=this.filter(a),b.length==0))return this;for(var a=0,e=b.length,f;a<e;a++)f=b[a],f.parentNode&&f.parentNode.removeChild(f);return b},destroy:function(a){if(this.length==0)return this;var b=qx.bom.Selector,e=this;if(a&&(e=this.filter(a),e.length==0))return this;for(var f=qx.event.Registration.getManager(this[0]),g=0,h=e.length,i,j;g<h;g++){i=e[g];f.removeAllListeners(i);j=b.query("*",i);for(var k=0,l=j.length;k<l;k++)f.removeAllListeners(j[k]);i.parentNode&&i.parentNode.removeChild(i)}a?
(e.end(),qx.lang.Array.exclude(this,e)):this.length=0;return this},empty:function(){for(var a=qx.bom.Collection,b=0,e=this.length;b<e;b++)for(a.query(">*",this[b]).destroy();this.firstChild;)this.removeChild(this.firstChild);return this},clone:function(a){var b=qx.bom.Element;return a?this.map(function(a){return b.clone(a,true)}):this.map(b.clone,b)}},defer:function(a){if(window.$==null)window.$=a.create}})})();
(function(){qx.Class.define("qx.bom.Html",{statics:{__vH:function(a,b,c){return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?a:b+"></"+c+">"},__vI:{opt:[1,"<select multiple='multiple'>","</select>"],leg:[1,"<fieldset>","</fieldset>"],table:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],def:qx.core.Environment.select("engine.name",{mshtml:[1,
"div<div>","</div>"],"default":null})},__vJ:function(a,b){var c=b.createElement("div"),a=a.replace(/(<(\w+)[^>]*?)\/>/g,this.__vH),d=a.replace(/^\s+/,"").substring(0,5).toLowerCase(),e;e=this.__vI;if(e=d.indexOf("<opt")?d.indexOf("<leg")?d.match(/^<(thead|tbody|tfoot|colg|cap)/)?e.table:d.indexOf("<tr")?!d.indexOf("<td")||!d.indexOf("<th")?e.td:d.indexOf("<col")?e.def:e.col:e.tr:e.leg:e.opt){c.innerHTML=e[1]+a+e[2];for(var f=e[0];f--;)c=c.lastChild}else c.innerHTML=a;if(qx.core.Environment.get("engine.name")==
"mshtml"){f=/<tbody/i.test(a);d=!d.indexOf("<table")&&!f?c.firstChild&&c.firstChild.childNodes:e[1]=="<table>"&&!f?c.childNodes:[];for(e=d.length-1;e>=0;--e)d[e].tagName.toLowerCase()==="tbody"&&!d[e].childNodes.length&&d[e].parentNode.removeChild(d[e]);/^\s/.test(a)&&c.insertBefore(b.createTextNode(a.match(/^\s*/)[0]),c.firstChild)}return qx.lang.Array.fromCollection(c.childNodes)},clean:function(a,b,c){b=b||document;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||
document);if(!c&&a.length===1&&typeof a[0]==="string"){var d=/^<(\w+)\s*\/?>$/.exec(a[0]);if(d)return[b.createElement(d[1])]}for(var e,d=[],f=0,g=a.length;f<g;f++)e=a[f],typeof e==="string"&&(e=this.__vJ(e,b)),e.nodeType?d.push(e):e instanceof qx.type.BaseArray?d.push.apply(d,Array.prototype.slice.call(e,0)):e.toElement?d.push(e.toElement()):d.push.apply(d,e);if(c){a=[];b=qx.lang.Array;for(f=0;d[f];f++)e=d[f],e.nodeType==1&&e.tagName.toLowerCase()==="script"&&(!e.type||e.type.toLowerCase()==="text/javascript")?
(e.parentNode&&e.parentNode.removeChild(d[f]),a.push(e)):(e.nodeType===1&&(g=b.fromCollection(e.getElementsByTagName("script")),d.splice.apply(d,[f+1,0].concat(g))),c.appendChild(e));return a}return d}}})})();
(function(){qx.Bootstrap.define("qx.io.ScriptLoader",{construct:function(){this.__vK=qx.Bootstrap.bind(this.__vO,this);this.__vL=document.createElement("script")},statics:{TIMEOUT:15},members:{__vM:null,__vN:null,__bM:null,__bN:null,__vK:null,__vL:null,load:function(a,b,c){if(this.__vM)throw Error("Another request is still running!");this.__vM=true;this.__vN=false;var d=document.getElementsByTagName("head")[0],e=this.__vL;this.__bM=b||null;this.__bN=c||window;e.type="text/javascript";e.onerror=e.onload=
e.onreadystatechange=this.__vK;var f=this;qx.bom.client.Engine.getName()==="opera"&&this._getTimeout()>0&&setTimeout(function(){f.dispose("fail")},this._getTimeout()*1E3);e.src=a;setTimeout(function(){d.appendChild(e)},0)},abort:function(){this.__vM&&this.dispose("abort")},dispose:function(a){if(!this.__vN){this.__vN=true;var b=this.__vL;b.onerror=b.onload=b.onreadystatechange=null;var c=b.parentNode;c&&c.removeChild(b);delete this.__vM;if(this.__bM)if(b=qx.bom.client.Engine.getName(),b=="mshtml"||
b=="webkit"){var d=this;setTimeout(qx.event.GlobalError.observeMethod(function(){d.__bM.call(d.__bN,a);delete d.__bM}),0)}else this.__bM.call(this.__bN,a),delete this.__bM}},_getTimeout:function(){return qx.io.ScriptLoader.TIMEOUT},__vO:qx.event.GlobalError.observeMethod(function(a){var b=qx.bom.client.Engine.getName();if(b=="mshtml")a=this.__vL.readyState,a=="loaded"?this.dispose("success"):a=="complete"&&this.dispose("success");else if(b=="opera")if(qx.Bootstrap.isString(a)||a.type==="error")return this.dispose("fail");
else{if(a.type==="load")return this.dispose("success")}else qx.Bootstrap.isString(a)||a.type==="error"?this.dispose("fail"):a.type==="load"?this.dispose("success"):a.type==="readystatechange"&&(a.target.readyState==="complete"||a.target.readyState==="loaded")&&this.dispose("success")})}})})();
(function(){qx.Class.define("qx.ui.container.Scroll",{extend:qx.ui.core.scroll.AbstractScrollArea,include:[qx.ui.core.MContentPadding],construct:function(a){qx.ui.core.scroll.AbstractScrollArea.call(this);a&&this.add(a)},members:{add:function(a){this.getChildControl("pane").add(a)},remove:function(a){this.getChildControl("pane").remove(a)},getChildren:function(){return this.getChildControl("pane").getChildren()},_getContentPaddingTarget:function(){return this.getChildControl("pane")}}})})();
(function(){qx.Class.define("arskom.ui.impl.corporation.Detail",{extend:arskom.ui.draw.corporation.Detail,type:"singleton",include:[qx.locale.MTranslation],properties:{_allow_save:{check:"Boolean",apply:"apply_allow_save",init:true},_domain_name:{check:"String",nullable:true,init:null},_wsc:{check:"soap.ClientCollection"},_det_country:{check:"arskom.ui.DialogEdit"},_country_id:{check:"Integer",init:null,nullable:true},_corporation_id:{check:"Integer",init:null,nullable:true}},events:{successful_save:"qx.event.type.Data"},
construct:function(){arskom.ui.draw.corporation.Detail.call(this);this.__tY();this.__cy=(new qx.ui.window.Window(this.tr("Corporation - Detail"),"")).set({width:480,height:550})},members:{__cy:null,apply_allow_save:function(a){a==true?this.btn_save.setVisibility("visible"):this.btn_save.setVisibility("excluded")},__tY:function(){this.set_det_country(new arskom.ui.DialogEdit(this,this.select_country));this.det_country.add(this.get_det_country().getWidget(),{flex:1});this.btn_save.addListener("execute",
this.save,this);this.btn_close.addListener("execute",this.close,this);this.get_det_country().edt_description.setVisibility("hidden");this.dte_signup_date.setEnabled(false)},reset:function(){this.edt_domain.resetValue();this.edt_name.resetValue();this.edt_tax_authority.resetValue();this.edt_tax_number.resetValue();this.chk_active.resetValue();this.dte_signup_date.resetValue();this.edt_comments.resetValue();this.edt_street.resetValue();this.edt_avenue.resetValue();this.edt_door_number.resetValue();
this.edt_building_number.resetValue();this.edt_building_name.resetValue();this.edt_city.resetValue();this.edt_zipcode.resetValue();this.edt_district.resetValue();this.edt_phone.resetValue();this.edt_email.resetValue();this.edt_webpage.resetValue();this.edt_admin_contact.resetValue();this.edt_tech_contact.resetValue();this.get_det_country().edt_code.resetValue();this.get_det_country().edt_description.resetValue();this.set_country_id(null);this.set_corporation_id(null);this.set_allow_save(true)},show:function(){this.set_to_screen();
this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},set_to_screen:function(){var a=this;this.get_domain_name()==null?(a.edt_domain.setValue(""),a.edt_domain.setReadOnly(false)):(a.edt_domain.setValue(this.get_domain_name()),a.edt_domain.setReadOnly(true),this.get_wsc().c.cvs.easy(arskom.ui.proc.Corporation.GET,
this.get_domain_name(),function(b){a.set_corporation_id(b.get_corporation_id());a.edt_name.setValue(b.get_name());a.chk_active.setValue(b.get_active());a.dte_signup_date.setValue(b.get_signup_date());a.edt_comments.setValue(b.get_comment());a.edt_street.setValue(b.get_street());a.edt_avenue.setValue(b.get_avenue());a.edt_door_number.setValue(b.get_door_number());a.edt_building_number.setValue(b.get_building_num());a.edt_building_name.setValue(b.get_building_name());a.edt_city.setValue(b.get_city());
a.edt_district.setValue(b.get_district());a.edt_phone.setValue(b.get_phone());a.edt_email.setValue(b.get_email());a.edt_zipcode.setValue(b.get_zipcode());a.edt_webpage.setValue(b.get_web_page());a.edt_admin_contact.setValue(b.get_admin_contact());a.edt_tech_contact.setValue(b.get_tech_contact());a.edt_tax_authority.setValue(b.get_tax_auth());a.edt_tax_number.setValue(b.get_tax_number());a.edt_tax_authority.setValue(b.get_tax_auth());a.get_det_country().edt_code.setValue(b.get_country_code());b.get_country_id()!=
0&&a.set_country_id(b.get_country_id());arskom.ui.impl.Dialogs.row_object=null}))},save:function(){var a=this,b=arskom.ui.impl.Dialogs.row_object;arskom.misc.is_na(b)||this.set_country_id(b.country_id);var b=this.get_wsc().c.cvs,c=b.get_object("track.core","Country");c.set_id(this.get_country_id());c.set_name(a.get_det_country().edt_code.getValue());var d=b.get_object("track.core","Address");d.set_sub1(a.edt_city.getValue());d.set_sub2(a.edt_district.getValue());d.set_door_num(a.edt_door_number.getValue());
d.set_country(c);d.set_building_num(a.edt_building_number.getValue());d.set_street(a.edt_street.getValue());d.set_avenue(a.edt_avenue.getValue());d.set_building_name(a.edt_building_name.getValue());d.set_zipcode(a.edt_zipcode.getValue());c=b.get_object("track.core","Company");c.set_name(a.edt_name.getValue());c.set_webpage(a.edt_webpage.getValue());c.set_phone(a.edt_phone.getValue());c.set_admin_contact(a.edt_admin_contact.getValue());c.set_tech_contact(a.edt_tech_contact.getValue());c.set_address(d);
c.set_email(a.edt_phone.getValue());b=b.get_object("track.core","Corporation");b.set_id(a.get_corporation_id());b.set_domain_name(a.edt_domain.getValue());b.set_company(c);b.set_active(a.chk_active.getValue());b.set_comment(a.edt_comments.getValue());b.set_tax_auth(a.edt_tax_authority.getValue());b.set_tax_num(a.edt_tax_number.getValue());d=function(b){a.close();a.fireDataEvent("successful_save",b)};this.get_domain_name()==null?this.get_wsc().c.cvs.easy(arskom.ui.proc.Corporation.ADD,b,d):this.get_wsc().c.cvs.easy(arskom.ui.proc.Corporation.EDT,
b,d)},close:function(){this.__cy.close()},select_country:function(){var a=new arskom.ui.impl.Dialogs,b=arskom.ui.impl.country.List.getInstance();b.set_wsc(this.get_wsc());b.refresh();var c=this.get_det_country();a.select_country(b,c.edt_code,c.edt_description)}}})})();
(function(){qx.Class.define("arskom.ui.DialogEdit",{extend:qx.core.Object,properties:{widget:{check:"Object"}},construct:function(a,b){qx.core.Object.call(this);this.handler=a;this.callback=b;this.__vQ()},members:{__vP:null,edt_code:null,edt_description:null,btn_dialog:null,handler:null,callback:null,row_object:null,reset:function(){this.edt_code.setReadOnly(true);this.edt_description.setReadOnly(true);this.edt_code.resetValue();this.edt_description.resetValue();this.callback=this.handler=this.row_object=
null},__vQ:function(){this.__vP=new qx.ui.container.Composite(new qx.ui.layout.VBox(0));var a=new qx.ui.container.Composite,b=new qx.ui.layout.Grid(1,3);b.setRowFlex(0,1);b.setColumnFlex(0,1);b.setColumnFlex(2,4);a.setLayout(b);this.edt_code=new qx.ui.form.TextField("");this.edt_code.setReadOnly(true);this.edt_description=new qx.ui.form.TextField("");this.edt_description.setReadOnly(true);this.btn_dialog=new qx.ui.form.Button("...");arskom.misc.is_na(this.callback)||this.btn_dialog.addListener("execute",
this.callback,this.handler);a.add(this.edt_code.set({minWidth:50,maxHeight:22}),{row:0,column:0});a.add(this.btn_dialog.set({width:30,maxHeight:20}),{row:0,column:1});a.add(this.edt_description.set({minWidth:50,maxHeight:22}),{row:0,column:2});this.__vP.add(a,{flex:1});this.setWidget(this.__vP)}}})})();
(function(){qx.Class.define("arskom.ui.impl.Dialogs",{extend:qx.core.Object,include:[qx.locale.MTranslation],construct:function(){qx.core.Object.call(this)},statics:{row_object:null},members:{title:"",module:null,code_field:"",edt_code:null,desc_field:"",edt_desc:"",__vR:function(){var a=this;arskom.ui.impl.Dialogs.row_object=null;var b=(new qx.ui.window.Window(a.title,"")).set({width:640,height:480}),c=new qx.ui.toolbar.ToolBar,d=new qx.ui.toolbar.Button(this.tr("Select"));d.addListener("execute",
function(){var c=arskom.misc.selected_table_cell(a.module.table,a.code_field),d="";arskom.ui.impl.Dialogs.row_object=arskom.misc.selected_table_row(a.module.table);arskom.misc.is_na(arskom.misc.force_trim(c))||(a.edt_code.setValue(c+""),arskom.misc.is_na(arskom.misc.force_trim(a.desc_field))||(d=arskom.misc.selected_table_cell(a.module.table,a.desc_field),a.edt_desc.setValue(d+"")),b.removeAll(),a.module.reset(),b.close())});var e=new qx.ui.toolbar.Button(this.tr("Close"));e.addListener("execute",
function(){b.removeAll();a.module.reset();b.close()});c.add(new qx.ui.toolbar.Separator);c.add(d);c.add(new qx.ui.toolbar.Separator);c.add(e);c.add(new qx.ui.toolbar.Separator);b.setLayout(new qx.ui.layout.VBox(10));b.setModal(true);b.setShowMinimize(false);b.setUseMoveFrame(true);b.setUseResizeFrame(true);b.add(a.module.table,{flex:1});a.module.refresh();b.add(c);b.open();b.center()},select_corporation:function(a,b,c){this.title=this.tr("Corporation");this.module=a;this.code_field="domain";this.edt_code=
b;this.desc_field="name";this.edt_desc=c;this.__vR()},select_fleet:function(a,b,c){this.title=this.tr("Fleet");this.module=a;this.code_field="id";this.edt_code=b;this.desc_field="name";this.edt_desc=c;this.__vR()},select_vehicle:function(a,b,c){this.title=this.tr("Fleet");this.module=a;this.code_field="id";this.edt_code=b;this.desc_field="name";this.edt_desc=c;this.__vR()},select_currency_type:function(a,b,c){this.title=this.tr("Currency Types");this.module=a;this.code_field="code";this.edt_code=
b;this.desc_field="description";this.edt_desc=c;this.__vR()},select_country:function(a,b){this.title=this.tr("Countries");this.module=a;this.code_field="name";this.edt_code=b;this.__vR()},select_company_type:function(a,b,c){b.setValue("UCT");c.setValue("Unknown Company Type");alert(this.tr("Company Type module has not been implemented yet!"))},select_vessel_type:function(a,b,c){b.setValue("UVT");c.setValue("Unknown Vessel Type");alert(this.tr("Vessel Type module has not been implemented yet!"))},
select_port:function(a,b,c){b.setValue("UP");c.setValue("Unknown Port");alert(this.tr("Port module has not been implemented yet!"))}}})})();
(function(){qx.Class.define("arskom.ui.impl.country.List",{extend:arskom.ui.impl.DataDisplay,type:"singleton",include:[qx.locale.MTranslation],properties:{},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id")},events:{"switch":"qx.event.type.Data"},members:{btn_msg_user_toolbar:null,btn_switch_to_toolbar:null,create_table:function(){var a=this.table=new arskom.ui.comp.CountryTable(null);a.setMargin(1);return a},on_add_dialog_successful_save:function(){this.refresh()},
pop_add_dialog:function(){var a=arskom.ui.impl.country.Detail.getInstance();a.reset();a.setC_list(this);a.set_wsc(this.get_wsc());a.show()},pop_edt_dialog:function(){var a=arskom.misc.selected_table_cell(this.table,"id"),b=arskom.misc.selected_table_cell(this.table,"name"),c=arskom.misc.selected_table_cell(this.table,["currency","id"]),d=arskom.misc.selected_table_cell(this.table,["currency","code"]),e=arskom.misc.selected_table_cell(this.table,["currency","description"]);if(!arskom.misc.is_na(b)){var f=
arskom.ui.impl.country.Detail.getInstance();f.reset();f.setC_list(this);f.setId(a);f.setName(b);f.setCur_id(c);f.setCur_code(d);f.setCur_desc(e);f.set_wsc(this.get_wsc());f.show()}},pop_del_dialog:function(a){var b=this;arskom.ui.proc.Country.getInstance().del(b.get_wsc(),a[0],1,function(a){a==="OK"&&b.refresh()})},pop_details_dialog:function(a){var b=arskom.misc.selected_table_cell(this.table,"name"),c=arskom.misc.selected_table_cell(this.table,["currency","id"]),d=arskom.misc.selected_table_cell(this.table,
["currency","code"]),e=arskom.misc.selected_table_cell(this.table,["currency","description"]);if(!arskom.misc.is_na(b)){var f=arskom.ui.impl.country.Detail.getInstance();f.reset();f.setC_list(this);f.setId(a[0]);f.setName(b);f.setCur_id(c);f.setCur_code(d);f.setCur_desc(e);f.set_wsc(this.get_wsc());f.show()}},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Country"),"","").open()}}})})();
(function(){qx.Class.define("arskom.ui.comp.CountryTable",{extend:arskom.ui.Table,construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("ID"),this.tr("Name"),this.tr("Currency ID"),this.tr("Currency Code"),this.tr("Currency Desc.")]);this.set_fields(["country_id","name","currenceid","code","description"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=
this.get_wsc().c.cvs,b=new soap.Parameters,a=new soap.RemoteImpl(a,arskom.ui.proc.Country.GET_ALL_COUNT,arskom.ui.proc.Country.GET_ALL,b);a.setColumns(this.get_titles(),this.get_fields());b=this.getTableModel();this.setTableModel(a);b&&b.dispose();this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},set_renderers:function(){this.getTableColumnModel().setDataCellRenderer(3,new qx.ui.table.cellrenderer.Boolean)}}})})();
(function(){qx.Class.define("arskom.ui.proc.Country",{extend:qx.core.Object,type:"singleton",include:[qx.locale.MTranslation],statics:{GET:"get_country",EDT:"edt_predefinedtypegroup_country",ADD:"add_predefinedtypegroup_country",GET_ALL:"get_all_country",GET_ALL_COUNT:"get_all_count_country",DEL:"del_country"}})})();
(function(){qx.Class.define("arskom.ui.draw.country.Detail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_CountryDetail())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{CountryDetail:null,__ow:null,_det_currency_type:null,btn_close:null,btn_save:null,centralwidget:null,create_CountryDetail:function(){var a=this.CountryDetail=new qx.ui.container.Composite(this.create___lv());a.setHeight(175);a.setWidth(400);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create__det_currency_type:function(){var a=this._det_currency_type=new qx.ui.container.Composite(this.create_verticalLayout_9());a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Close"));a.setMargin(1);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;
a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_tbv_country_detail(),{flex:1});a.add(this.create_pnl_bottom(),{flex:1});return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setHeight(20);a.setWidth(200);a.setMaxHeight(20);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(20);
return a},create_grd_general:function(){return this.grd_general=new qx.ui.layout.Grid},create_grd_general_implicit_container:function(){var a=this.grd_general_implicit_container=new qx.ui.container.Composite(this.create_grd_general());a.setMargin(1);a.add(this.create_label_35(),{column:0,row:0});a.add(this.create_label_36(),{column:0,row:1});a.add(this.create__det_currency_type(),{column:1,row:1});a.add(this.create_edt_name(),{column:1,row:0});a.add(this.create_verticalSpacer(),{column:1,row:2});
var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_label_35:function(){var a=this.label_35=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Name"));a.setMargin(1);a.setMinWidth(110);return a},create_label_36:function(){var a=
this.label_36=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Currency Type"));a.setMargin(1);a.setMinWidth(110);return a},create_pnl_bottom:function(){var a=this.pnl_bottom=new qx.ui.container.Composite(this.create_pnl_bottom_il());a.setHeight(28);a.setMaxHeight(28);a.setMargin(1);a.setMinHeight(28);a.add(this.create_btn_save(),{left:8,top:3});a.add(this.create_btn_close(),{left:83,top:3});return a},create_pnl_bottom_il:function(){return this.pnl_bottom_il=new qx.ui.layout.Canvas},
create_scr1:function(){var a=this.scr1=new qx.ui.container.Scroll;a.setMargin(1);a.add(this.create_scr1area(),{left:0,top:0});return a},create_scr1area:function(){var a=this.scr1area=new qx.ui.container.Composite(this.create_horizontalLayout_3());a.setHeight(84);a.setWidth(364);a.setMargin(1);a.add(this.create_grd_general_implicit_container(),{flex:1});return a},create_tbs_general:function(){var a=this.tbs_general=new qx.ui.tabview.Page;a.setLabel(this.tr("General"));a.setMargin(1);a.setLayout(this.create_horizontalLayout());
a.add(this.create_scr1(),{flex:1});return a},create_tbv_country_detail:function(){var a=this.tbv_country_detail=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tbs_general());return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalLayout_9:function(){return this.verticalLayout_9=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(1E3);a.setWidth(20);a.setMargin(1);return a},
edt_name:null,grd_general:null,grd_general_implicit_container:null,horizontalLayout:null,horizontalLayout_3:null,label_35:null,label_36:null,pnl_bottom:null,pnl_bottom_il:null,scr1:null,scr1area:null,tbs_general:null,tbv_country_detail:null,verticalLayout:null,verticalLayout_9:null,verticalSpacer:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.country.Detail",{extend:arskom.ui.draw.country.Detail,type:"singleton",include:[qx.locale.MTranslation],properties:{id:{check:"Integer"},name:{check:"String"},c_list:{check:"Object"},cur_id:{check:"Integer"},cur_code:{check:"String"},cur_desc:{check:"String"},_wsc:{check:"soap.ClientCollection"},det_currency_type:{check:"Object"}},construct:function(){arskom.ui.draw.country.Detail.call(this);this.__tY();this.__cy=(new qx.ui.window.Window(this.tr("Country - Detail"),
"")).set({width:440,height:245})},members:{__vS:null,__cy:null,__tY:function(){this.setDet_currency_type(new arskom.ui.DialogEdit(this,this.select_currency_type));this._det_currency_type.add(this.getDet_currency_type().getWidget(),{flex:1});this.btn_save.addListener("execute",this.save,this);this.btn_close.addListener("execute",this.close,this)},show:function(){this.__vS=this.getName()==="";this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);
this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center();this.set_to_screen()},set_to_screen:function(){this.__vS?this.edt_name.setReadOnly(false):(this.edt_name.setReadOnly(true),this.edt_name.setValue(this.getName()),this.getDet_currency_type().edt_code.setValue(this.getCur_code()),this.getDet_currency_type().edt_description.setValue(this.getCur_desc()))},save:function(){var a=this,b=this.get_wsc().c.cvs,c=arskom.ui.impl.Dialogs.row_object,d=
b.get_object("track.core","CurrencyType"),b=b.get_object("track.core","Country");b.set_id(a.getId());b.set_name(a.edt_name.getValue());arskom.misc.is_na(c)?(d.set_id(a.getCur_id()),d.set_code(a.getCur_code())):(d.set_id(c.id),d.set_code(c.code));b.set_currency(d);c=function(b){b==="OK"&&(a.close(),arskom.misc.is_na(a.getC_list())||a.getC_list().refresh())};try{this.__vS?arskom.ui.proc.Country.getInstance().add(this.get_wsc(),b,1,c):arskom.ui.proc.Country.getInstance().set(this.get_wsc(),b,1,c)}catch(e){alert(e.message)}},
close:function(){this.__cy.close()},select_currency_type:function(){var a=new arskom.ui.impl.Dialogs,b=arskom.ui.impl.currency_type.List.getInstance();b.set_wsc(this.get_wsc());var c=this.getDet_currency_type();a.select_currency_type(b,c.edt_code,c.edt_description)},reset:function(){this.edt_name.resetValue();this.setId(-1);this.setName("");this.setCur_code("");this.setCur_desc("");arskom.misc.is_na(this.getDet_currency_type())||(this.getDet_currency_type().edt_code.resetValue(),this.getDet_currency_type().edt_description.resetValue())}}})})();
(function(){qx.Class.define("arskom.ui.draw.currency_type.List",{extend:qx.core.Object,include:[qx.locale.MTranslation],properties:{widget:{check:"Object"}},construct:function(){qx.core.Object.call(this);this.__vQ()},members:{__mq:null,__vT:null,tool_bar:null,btn_add:null,btn_edit:null,btn_delete:null,btn_refresh:null,table_model:null,table:null,__vQ:function(){this.__mq=new qx.ui.container.Composite(new qx.ui.layout.VBox(0));this.tool_bar=new qx.ui.toolbar.ToolBar;var a=new qx.ui.toolbar.Part;this.btn_add=
new qx.ui.toolbar.Button(this.tr("Add"));this.btn_edit=new qx.ui.toolbar.Button(this.tr("Edit"));this.btn_delete=new qx.ui.toolbar.Button(this.tr("Delete"));this.btn_refresh=new qx.ui.toolbar.Button(this.tr("Refresh"));a.add(new qx.ui.toolbar.Separator);a.add((new qx.ui.basic.Label(this.tr("Currency Types"))).set({font:(new qx.bom.Font(20,["Verdana","sans-serif"])).set({bold:true})}));a.add(new qx.ui.toolbar.Separator);this.btn_add.addListener("execute",this.add,this);this.btn_edit.addListener("execute",
this.edit,this);this.btn_delete.addListener("execute",this.del,this);this.btn_refresh.addListener("execute",this.refresh,this);a.add(this.btn_add);a.add(this.btn_edit);a.add(this.btn_delete);a.add(this.btn_refresh);a.add(new qx.ui.toolbar.Separator);this.tool_bar.add(a);this.__mq.add(this.tool_bar);this.__vT=new qx.ui.container.Composite(new qx.ui.layout.HBox(0));this.__mq.add(this.__vT,{flex:1});this.table_model=new qx.ui.table.model.Simple;this.table_model.setColumns([this.tr("ID"),this.tr("Code"),
this.tr("Description")]);this.table=new qx.ui.table.Table(this.table_model);this.__vT.add(this.table,{flex:1});this.setWidget(this.__mq)},add:function(){},edit:function(){},del:function(){},refresh:function(){}}})})();
(function(){qx.Class.define("arskom.ui.impl.currency_type.List",{extend:arskom.ui.draw.currency_type.List,type:"singleton",include:[qx.locale.MTranslation],properties:{_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"}},construct:function(){arskom.ui.draw.currency_type.List.call(this);this.__tY()},members:{__tY:function(){},apply_wsc:function(){this.refresh()},add:function(){var a=arskom.ui.impl.currency_type.Detail.getInstance();a.reset();a.setCt_list(this);a.set_wsc(this.get_wsc());a.show()},
edit:function(){var a=arskom.misc.selected_table_cell(this.table,"id"),b=arskom.misc.selected_table_cell(this.table,"code"),c=arskom.misc.selected_table_cell(this.table,"description");if(!arskom.misc.is_na(b)){var d=arskom.ui.impl.currency_type.Detail.getInstance();d.reset();d.setId(parseInt(a));d.setCode(b);d.setCode(b);d.setDescription(c);d.setCt_list(this);d.set_wsc(this.get_wsc());d.show()}},del:function(){var a=this,b=arskom.misc.selected_table_cell(this.table,"id");!arskom.misc.is_na(b)&&confirm(this.tr("Are you sure that you want to delete selected record?"))&&
arskom.ui.proc.CurrencyType.getInstance().del(a.get_wsc(),b,1,function(b){b==="OK"&&a.refresh()})},reset:function(){this.table.getLayoutParent()!=this.__bottom&&this.__bottom.add(this.table,{flex:1})},refresh:function(){arskom.ui.proc.CurrencyType.getInstance().get_all(this.get_wsc(),this.table,1)}}})})();
(function(){qx.Class.define("arskom.ui.draw.currency_type.Detail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_CurrencyTypeDetail())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{CurrencyTypeDetail:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,create_CurrencyTypeDetail:function(){var a=this.CurrencyTypeDetail=new qx.ui.container.Composite(this.create___lv());a.setHeight(228);a.setWidth(400);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Close"));a.setMargin(1);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());
a.setMargin(1);a.add(this.create_tbv_currency_type_detail(),{flex:1});a.add(this.create_pnl_bottom(),{flex:1});return a},create_edt_code:function(){var a=this.edt_code=new qx.ui.form.TextField;a.setHeight(20);a.setWidth(200);a.setMaxHeight(20);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(20);return a},create_edt_description:function(){var a=this.edt_description=new qx.ui.form.TextArea;a.setHeight(80);a.setWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(80);return a},
create_grd_general:function(){return this.grd_general=new qx.ui.layout.Grid},create_grd_general_implicit_container:function(){var a=this.grd_general_implicit_container=new qx.ui.container.Composite(this.create_grd_general());a.setMargin(1);a.add(this.create_label_43(),{column:0,row:1});a.add(this.create_edt_description(),{column:1,row:1});a.add(this.create_label_35(),{column:0,row:0});a.add(this.create_edt_code(),{column:1,row:0});a.add(this.create_verticalSpacer(),{column:1,row:2});var b=a.getLayout();
b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_label_35:function(){var a=this.label_35=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Code"));a.setMargin(1);a.setMinWidth(110);return a},create_label_43:function(){var a=this.label_43=
new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Description"));a.setMargin(1);a.setMinWidth(110);return a},create_pnl_bottom:function(){var a=this.pnl_bottom=new qx.ui.container.Composite(this.create_pnl_bottom_il());a.setHeight(28);a.setMaxHeight(28);a.setMargin(1);a.setMinHeight(28);a.add(this.create_btn_save(),{left:8,top:3});a.add(this.create_btn_close(),{left:83,top:3});return a},create_pnl_bottom_il:function(){return this.pnl_bottom_il=new qx.ui.layout.Canvas},create_scr1:function(){var a=
this.scr1=new qx.ui.container.Scroll;a.setMargin(1);a.add(this.create_scr1area(),{left:0,top:0});return a},create_scr1area:function(){var a=this.scr1area=new qx.ui.container.Composite(this.create_horizontalLayout_3());a.setHeight(137);a.setWidth(364);a.setMargin(1);a.add(this.create_grd_general_implicit_container(),{flex:1});return a},create_tbs_general:function(){var a=this.tbs_general=new qx.ui.tabview.Page;a.setLabel(this.tr("General"));a.setMargin(1);a.setLayout(this.create_horizontalLayout());
a.add(this.create_scr1(),{flex:1});return a},create_tbv_currency_type_detail:function(){var a=this.tbv_currency_type_detail=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tbs_general());return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(1E3);a.setWidth(20);a.setMargin(1);return a},edt_code:null,edt_description:null,grd_general:null,grd_general_implicit_container:null,
horizontalLayout:null,horizontalLayout_3:null,label_35:null,label_43:null,pnl_bottom:null,pnl_bottom_il:null,scr1:null,scr1area:null,tbs_general:null,tbv_currency_type_detail:null,verticalLayout:null,verticalSpacer:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.currency_type.Detail",{extend:arskom.ui.draw.currency_type.Detail,type:"singleton",include:[qx.locale.MTranslation],properties:{id:{check:"Integer"},code:{check:"String"},ct_list:{check:"Object"},description:{check:"String"},_wsc:{check:"soap.ClientCollection"}},construct:function(){arskom.ui.draw.currency_type.Detail.call(this);this.__tY();this.__cy=(new qx.ui.window.Window(this.tr("Currency Type - Detail"),"")).set({width:440,height:300})},members:{__vS:null,
__cy:null,__tY:function(){this.btn_save.addListener("execute",this.save,this);this.btn_close.addListener("execute",this.close,this)},show:function(){this.__vS=this.getCode()==="";this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center();this.set_to_screen()},set_to_screen:function(){this.__vS?this.edt_code.setReadOnly(false):
(this.edt_code.setReadOnly(true),this.edt_code.setValue(this.getCode()),this.edt_description.setValue(this.getDescription()))},save:function(){var a=this,b=this.get_wsc().c.cvs.get_object("track.core","CurrencyType");b.set_id(a.getId());b.set_code(a.edt_code.getValue());b.set_description(a.edt_description.getValue());var c=function(b){b==="OK"&&(a.close(),arskom.misc.is_na(a.getCt_list())||a.getCt_list().refresh())};try{this.__vS?arskom.ui.proc.CurrencyType.getInstance().add(this.get_wsc(),b,1,c):
arskom.ui.proc.CurrencyType.getInstance().set(this.get_wsc(),b,1,c)}catch(d){alert(d.message)}},close:function(){this.__cy.close()},reset:function(){this.setId(-1);this.setCode("");this.setDescription("");this.edt_code.resetValue();this.edt_description.resetValue()}}})})();
(function(){qx.Class.define("arskom.ui.proc.CurrencyType",{extend:qx.core.Object,type:"singleton",include:[qx.locale.MTranslation],statics:{WS_READ:"get_currency_type",WS_EDT:"edt_currency_type",WS_ADD:"add_currency_type",WS_GET_ALL:"get_all_currency_type",WS_GET_ALL_COUNT:"get_all_count_currency_type",WS_DEL:"del_currency_type",validate:function(a,b){var c=a.c.cvs.get_class("CurrencyType");if(!(b instanceof c))throw Error(this.tr("Object type is not an instance of 'CurrencyType'"));if(arskom.misc.force_trim(b.getCode())===
"")throw Error(this.tr("Code should be specified!"));return true}},members:{read:function(a,b,c,d){var e=new soap.Parameters;e.add("currency_type",code);e.add("id",c);a.callAsync(this.self(arguments).WS_GET,e,d)},get_all:function(a,b,c){var d=new soap.Parameters;d.add("id",c);var e=arskom.ui.impl.Login.s_who,d=new soap.RemoteImpl(a.c.cvs,this.self(arguments).WS_GET_ALL_COUNT,this.self(arguments).WS_GET_ALL,d,e);d.setColumns([this.tr("ID"),this.tr("Code"),this.tr("Description")],["id","code","description"]);
b.setTableModel(d);b.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);b.setShowCellFocusIndicator(false)},del:function(a,b,c,d){var e=new soap.Parameters;e.add("currency_type",b);e.add("id",c);a.callAsync(this.self(arguments).WS_DEL,e,d)},set:function(a,b,c,d){this.self(arguments).validate(b);var e=new soap.Parameters;e.add("currency_type",b);e.add("id",c);a.callAsync(this.self(arguments).WS_EDT,e,d)},add:function(a,b,c,d){this.self(arguments).validate(b);var e=new soap.Parameters;
e.add("currency_type",b);e.add("id",c);a.callAsync(this.self(arguments).WS_ADD,e,d)}}})})();
(function(){qx.Class.define("arskom.ui.comp.CorporationTable",{extend:arskom.ui.Table,construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("Domain"),this.tr("Name"),this.tr("User Count"),this.tr("Status")]);this.set_fields(["domain","name","user_count","status"]);this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.cvs,b=new soap.Parameters,
a=new soap.RemoteImpl(a,arskom.ui.proc.Corporation.GET_ALL_COUNT,arskom.ui.proc.Corporation.GET_ALL,b);a.setColumns(this.get_titles(),this.get_fields());b=this.getTableModel();this.setTableModel(a);b&&b.dispose();this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);this.getTableColumnModel().setDataCellRenderer(3,new qx.ui.table.cellrenderer.Boolean)},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);this.getTableColumnModel().setDataCellRenderer(3,
new qx.ui.table.cellrenderer.Boolean)}}})})();
(function(){qx.Class.define("arskom.ui.impl.user.List",{extend:arskom.ui.impl.DataDisplay,include:[qx.locale.MTranslation],properties:{_domain_name:{check:"String",apply:"apply_domain_name"},_user_object_name:{check:"Array",nullable:false,init:"track.core"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("user_name")},members:{apply_domain_name:function(a){this.table.add_parameter("domain_name",a)},__vU:function(){var a=this;return a.get_factory().get_instance(arskom.ui.impl.user.Detail,
function(b){b.addListener("successful_save",a.__td,a)})},create_table:function(){this.table=new arskom.screen.Table("get_all_user_count","get_all_user");this.table.set_client_address("cvs");var a=this.table;a.setMargin(1);return a},__td:function(){this.refresh()},show:function(){this.get_window(this.tr("Users"),"","").open()},pop_add_dialog:function(){var a=this.__vU();a.set_wsc(this.get_wsc());a.reset();a.set_domain_name(this.get_domain_name());a.set_user_name("");a.set_user_object_name(this.get_user_object_name());
a.set_allow_manage_roles(false);a.show()},pop_del_dialog:function(a){var b=this;b.get_wsc().c.cvs.easy(arskom.ui.proc.User.DEL,this.get_domain_name(),a[0],function(){b.refresh()})},pop_edt_dialog:function(a){var b=this.__vU();b.set_wsc(this.get_wsc());b.reset();b.set_domain_name(this.get_domain_name());b.set_user_name(a[0]);b.set_user_object_name(this.get_user_object_name());b.set_allow_manage_roles(true);b.show()},pop_details_dialog:function(a){var b=this.__vU();b.set_wsc(this.get_wsc());b.reset();
b.set_domain_name(this.get_domain_name());b.set_user_name(a[0]);b.set_user_object_name(this.get_user_object_name());b.set_allow_manage_roles(true);b.set_allow_save(false);b.show()},create_toolBar:function(){var a=arskom.ui.impl.DataDisplay.prototype.create_toolBar.call(this),b=new qx.ui.toolbar.Part;b.add(this.create_btn_reset_password_toolbar());a.add(b);return a},create_btn_reset_password_toolbar:function(){var a=this.btn_reset_password_toolbar=new qx.ui.toolbar.Button;a.setLabel(this.tr("Reset Password"));
a.setIcon("arskom/icons/22x22/edit_pen.png");a.addListener("execute",this.on_btn_reset_password_toolbar_execute,this);return a},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},on_btn_reset_password_toolbar_execute:function(){var a=this.get_pk_values();if(a.length>0){var b=arskom.ui.impl.user.ResetPassword.getInstance();b.reset();b.set_domain_name(this.get_domain_name());b.set_user_name(a[0]);b.set_wsc(this.get_wsc());b.show()}else alert(this.tr("Please select an entry"))}}})})();
(function(){qx.Class.define("arskom.ui.draw.user.Detail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_UserDetail())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{UserDetail:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,chk_active:null,create_UserDetail:function(){var a=this.UserDetail=new qx.ui.container.Composite(this.create___lv());a.setHeight(485);a.setWidth(465);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setMaxHeight(23);a.setMaxWidth(75);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(23);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setMaxHeight(23);a.setMaxWidth(75);a.setLabel(this.tr("Save"));a.setMargin(1);a.setMinHeight(23);return a},create_centralwidget:function(){var a=
this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_tbv_corporation(),{flex:1});a.add(this.create_pnl_bottom(),{flex:1});return a},create_chk_active:function(){var a=this.chk_active=new qx.ui.form.CheckBox;a.setHeight(22);a.setWidth(20);a.setMaxHeight(22);a.setLabel(this.tr(""));a.setMargin(1);a.setMinWidth(20);a.setMinHeight(22);return a},create_dte_last_login:function(){var a=this.dte_last_login=new qx.ui.form.DateField;a.setMargin(1);
return a},create_dte_signup:function(){var a=this.dte_signup=new qx.ui.form.DateField;a.setMargin(1);return a},create_edt_comments:function(){var a=this.edt_comments=new qx.ui.form.TextArea;a.setHeight(80);a.setWidth(250);a.setMargin(1);a.setMinWidth(250);a.setMinHeight(80);return a},create_edt_domain_name:function(){var a=this.edt_domain_name=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},
create_edt_email:function(){var a=this.edt_email=new qx.ui.form.TextField;a.setHeight(20);a.setWidth(200);a.setMaxHeight(20);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(20);return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},create_edt_surname:function(){var a=this.edt_surname=new qx.ui.form.TextField;a.setHeight(20);
a.setWidth(200);a.setMaxHeight(20);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(20);return a},create_edt_user_name:function(){var a=this.edt_user_name=new qx.ui.form.TextField;a.setHeight(22);a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(22);return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=
new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(256);a.setMargin(1);return a},create_label_30:function(){var a=this.label_30=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Domain Name: "));a.setMargin(1);a.setMinWidth(110);return a},create_label_32:function(){var a=this.label_32=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("User Name: "));a.setMargin(1);
a.setMinWidth(110);return a},create_label_34:function(){var a=this.label_34=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Name: "));a.setMargin(1);a.setMinWidth(110);return a},create_label_35:function(){var a=this.label_35=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Surname: "));a.setMargin(1);a.setMinWidth(110);return a},create_label_36:function(){var a=this.label_36=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("E-Mail: "));
a.setMargin(1);a.setMinWidth(110);return a},create_label_41:function(){var a=this.label_41=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Active"));a.setMargin(1);a.setMinWidth(110);return a},create_label_42:function(){var a=this.label_42=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Last Login Date: "));a.setMargin(1);a.setMinWidth(110);return a},create_label_43:function(){var a=this.label_43=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);
a.setValue(this.tr("Comments"));a.setMargin(1);a.setMinWidth(110);return a},create_label_44:function(){var a=this.label_44=new qx.ui.basic.Label;a.setWidth(110);a.setMaxWidth(110);a.setValue(this.tr("Signup Date"));a.setMargin(1);a.setMinWidth(110);return a},create_pnl_bottom:function(){var a=this.pnl_bottom=new qx.ui.container.Composite(this.create_horizontalLayout_2());a.setMaxHeight(35);a.setMargin(1);a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer(),
{flex:1});return a},create_scr1:function(){var a=this.scr1=new qx.ui.container.Scroll;a.setMargin(1);a.add(this.create_scr1area(),{left:0,top:0});return a},create_scr1area:function(){var a=this.scr1area=new qx.ui.container.Composite(this.create_gridLayout());a.setHeight(373);a.setWidth(421);a.setMargin(1);a.add(this.create_label_30(),{column:0,row:0});a.add(this.create_edt_domain_name(),{column:1,row:0});a.add(this.create_label_32(),{column:0,row:1});a.add(this.create_edt_user_name(),{column:1,row:1});
a.add(this.create_label_34(),{column:0,row:2});a.add(this.create_edt_name(),{column:1,row:2});a.add(this.create_label_35(),{column:0,row:3});a.add(this.create_edt_surname(),{column:1,row:3});a.add(this.create_label_36(),{column:0,row:4});a.add(this.create_edt_email(),{column:1,row:4});a.add(this.create_label_41(),{column:0,row:5});a.add(this.create_chk_active(),{column:1,row:5});a.add(this.create_label_42(),{column:0,row:6});a.add(this.create_dte_last_login(),{column:1,row:6});a.add(this.create_label_44(),
{column:0,row:7});a.add(this.create_dte_signup(),{column:1,row:7});a.add(this.create_label_43(),{column:0,row:8});a.add(this.create_edt_comments(),{column:1,row:8});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setRowFlex(4,1);b.setRowFlex(5,1);b.setRowFlex(6,1);b.setRowFlex(7,1);b.setRowFlex(8,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_tab_role:function(){var a=this.tab_role=new qx.ui.tabview.Page;a.setLabel(this.tr("Page"));a.setMargin(1);
a.setLayout(this.create_tab_role_il());return a},create_tab_role_il:function(){return this.tab_role_il=new qx.ui.layout.Canvas},create_tbs_general:function(){var a=this.tbs_general=new qx.ui.tabview.Page;a.setLabel(this.tr("General"));a.setMargin(1);a.setLayout(this.create_horizontalLayout());a.add(this.create_scr1(),{flex:1});return a},create_tbv_corporation:function(){var a=this.tbv_corporation=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tbs_general());a.add(this.create_tab_role());
return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},dte_last_login:null,dte_signup:null,edt_comments:null,edt_domain_name:null,edt_email:null,edt_name:null,edt_surname:null,edt_user_name:null,gridLayout:null,horizontalLayout:null,horizontalLayout_2:null,horizontalSpacer:null,label_30:null,label_32:null,label_34:null,label_35:null,label_36:null,label_41:null,label_42:null,label_43:null,label_44:null,pnl_bottom:null,scr1:null,scr1area:null,tab_role:null,tab_role_il:null,
tbs_general:null,tbv_corporation:null,verticalLayout:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.user.Detail",{extend:arskom.ui.draw.user.Detail,properties:{_allow_save:{check:"Boolean",apply:"apply_allow_save",init:true},_user_list:{check:"Object"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_user_id:{check:"Integer",init:null,nullable:true},_user_name:{check:"String",init:null,nullable:true,apply:"apply_user_name"},_allow_manage_roles:{check:"Boolean",apply:"apply_allow_manage_roles",init:true},_domain_name:{check:"String",init:null,nullable:true,
apply:"apply_domain_name"},_user_object_name:{check:"Array",nullable:false,init:["track.core","User"]}},events:{successful_save:"qx.event.type.Data"},construct:function(){arskom.ui.draw.user.Detail.call(this);this.__tY();this.__cy=(new qx.ui.window.Window(this.tr("User - Detail"),"")).set({width:480,height:550})},members:{__vS:null,__cy:null,user_role_list:null,apply_allow_manage_roles:function(a){a===true?arskom.misc.replace_pages(this.tbv_corporation,[this.tbs_general,this.tab_role]):arskom.misc.replace_pages(this.tbv_corporation,
[this.tbs_general])},apply_allow_save:function(a){a==true?this.btn_save.setVisibility("visible"):this.btn_save.setVisibility("excluded")},__tY:function(){this.btn_save.addListener("execute",this.save,this);this.btn_close.addListener("execute",this.close,this);this.dte_signup.setEnabled(false);this.dte_last_login.setEnabled(false);this.edt_domain_name.setReadOnly(true)},apply_wsc:function(a){this.user_role_list.set_wsc(a)},apply_domain_name:function(a){this.user_role_list.set_domain_name(a)},apply_user_name:function(a){this.user_role_list.set_user_name(a)},
show:function(){this.set_to_screen();this.user_role_list.refresh()},private_show:function(){this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},reset:function(){this.edt_domain_name.resetValue();this.edt_user_name.setReadOnly(false);this.edt_user_name.resetValue();this.edt_name.resetValue();this.edt_surname.resetValue();
this.edt_email.resetValue();this.chk_active.resetValue();this.dte_last_login.resetValue();this.dte_signup.resetValue();this.edt_comments.resetValue();this.set_allow_save(true)},set_to_screen:function(){var a=this,b=a.get_user_name();a.edt_domain_name.setValue(a.get_domain_name());arskom.misc.is_na(b)?a.private_show():a.get_wsc().c.cvs.easy(arskom.ui.proc.User.GET,a.get_domain_name(),a.get_user_name(),function(b){a.set_user_id(b.get_id());a.edt_user_name.setValue(b.get_user_name());a.edt_user_name.setReadOnly(true);
a.edt_name.setValue(b.get_name());a.edt_surname.setValue(b.get_surname());a.edt_email.setValue(b.get_email());a.dte_signup.setValue(b.get_registered());a.dte_last_login.setValue(b.get_last_login());a.chk_active.setValue(b.get_active());a.edt_comments.setValue(b.get_comment());a.private_show()})},save:function(){var a=this,b=this.get_wsc().c.cvs,c=b.get_object(a.get_user_object_name()[0],a.get_user_object_name()[1]);c.set_user_name(a.edt_user_name.getValue());c.set_name(a.edt_name.getValue());c.set_surname(a.edt_surname.getValue());
c.set_email(a.edt_email.getValue());c.set_active(a.chk_active.getValue());c.set_comment(a.edt_comments.getValue());var d=function(b){a.close();a.fireDataEvent("successful_save",b)},e=[],f=a.get_user_id();arskom.misc.is_na(f)?b.easy(arskom.ui.proc.User.ADD,a.get_domain_name(),c,e,d):b.easy(arskom.ui.proc.User.EDT,a.get_domain_name(),c,d)},close:function(){this.__cy.close()},select_currency_type:function(){(new arskom.ui.impl.Dialogs).select_currency_type(this.edt_code,this.edt_description)},select_company_type:function(){(new arskom.ui.impl.Dialogs).select_company_type(this.edt_code,
this.edt_description)},select_country:function(){(new arskom.ui.impl.Dialogs).select_country(this.edt_code,this.edt_description)},create_tab_role:function(){var a=arskom.ui.draw.user.Detail.prototype.create_tab_role.call(this);this.user_role_list=new arskom.ui.impl.user_role.List;this.user_role_list.set_show_close(false);this.user_role_list.set_allow_edit(false);this.user_role_list.set_allow_detail(false);a.add(this.user_role_list.getWidget());return a}}})})();
(function(){qx.Class.define("arskom.ui.impl.user_role.List",{extend:arskom.ui.impl.DataDisplay,include:[qx.locale.MTranslation],properties:{_domain_name:{check:"String",apply:"apply_domain_name"},_user_name:{check:"String",init:null,nullable:true,apply:"apply_user_name"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id")},members:{apply_domain_name:function(a){this.table.set_domain_name(a)},apply_user_name:function(a){this.table.set_user_name(a)},__vV:function(){var a=
this;return a.get_factory().get_instance(arskom.ui.impl.user_role.Detail,function(b){b.addListener("successful_save",a.__td,a)})},create_table:function(){var a=this.table=new arskom.ui.comp.RoleUserTable;a.setMargin(1);return a},__td:function(){this.refresh()},show:function(){this.get_window(this.tr("User Roles"),"","").open()},pop_add_dialog:function(){var a=this.__vV();a.reset();a.set_domain_name(this.get_domain_name());a.set_user_name(this.get_user_name());a.set_wsc(this.get_wsc());a.show()},pop_del_dialog:function(a){var b=
this;arskom.misc.is_na(a[0])||b.get_wsc().c.authz.easy("revoke_role",a[0],function(){b.refresh()})},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})}}})})();
(function(){qx.Class.define("arskom.ui.draw.user.RoleDetail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_RoleDetail())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{RoleDetail:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,cmb_role:null,create_RoleDetail:function(){var a=this.RoleDetail=new qx.ui.container.Composite(this.create___lv());a.setHeight(402);a.setWidth(472);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Close"));a.setMargin(1);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());
a.setMargin(1);a.add(this.create_tabWidget(),{flex:1});a.add(this.create_pnl_bottom(),{flex:1});return a},create_cmb_role:function(){var a=this.cmb_role=new qx.ui.form.SelectBox;a.setWidth(200);a.setMaxHeight(22);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("[Select]"),null,null));a.add(new qx.ui.form.ListItem(this.tr("0002_track_reseller"),null,"0002_track_reseller"));a.add(new qx.ui.form.ListItem(this.tr("00031_track_corporation_admin"),
null,"00031_track_corporation_admin"));a.add(new qx.ui.form.ListItem(this.tr("0003_track_corporation_admin"),null,"0003_track_corporation_admin"));a.add(new qx.ui.form.ListItem(this.tr("0004_track_viewer"),null,"0004_track_viewer"));return a},create_det_domain:function(){var a=this.det_domain=new qx.ui.container.Composite(this.create_verticalLayout_6());a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_det_fleet:function(){var a=this.det_fleet=new qx.ui.container.Composite(this.create_verticalLayout_7());
a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_det_vehicle:function(){var a=this.det_vehicle=new qx.ui.container.Composite(this.create_verticalLayout_8());a.setHeight(22);a.setMaxHeight(22);a.setMargin(1);a.setMinHeight(22);return a},create_edt_domain_name:function(){var a=this.edt_domain_name=new qx.ui.form.TextField;a.setMargin(1);a.setAllowGrowY(false);return a},create_edt_user_name:function(){var a=this.edt_user_name=new qx.ui.form.TextField;a.setMargin(1);
a.setAllowGrowY(false);return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},create_groupBox:function(){var a=this.groupBox=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Context"));a.setMargin(1);a.setLayout(this.create_gridLayout());a.add(this.create_label(),{column:0,row:0});a.add(this.create_label_3(),{column:0,row:3});a.add(this.create_label_2(),{column:0,row:1});a.add(this.create_det_domain(),
{column:1,row:0});a.add(this.create_det_fleet(),{column:1,row:1});a.add(this.create_det_vehicle(),{column:1,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(3,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setWidth(70);a.setMaxWidth(70);a.setValue(this.tr("For Domain"));a.setMargin(1);a.setMinWidth(70);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setWidth(70);a.setMaxWidth(70);
a.setValue(this.tr("For Fleet"));a.setMargin(1);a.setMinWidth(70);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setWidth(70);a.setMaxWidth(70);a.setValue(this.tr("For Vehicle"));a.setMargin(1);a.setMinWidth(70);return a},create_label_5:function(){var a=this.label_5=new qx.ui.basic.Label;a.setWidth(70);a.setMaxWidth(70);a.setValue(this.tr("Domain Name: "));a.setMargin(1);a.setMinWidth(70);return a},create_label_6:function(){var a=this.label_6=new qx.ui.basic.Label;
a.setWidth(70);a.setMaxWidth(70);a.setValue(this.tr("User Name: "));a.setMargin(1);a.setMinWidth(70);return a},create_label_7:function(){var a=this.label_7=new qx.ui.basic.Label;a.setWidth(70);a.setMaxWidth(70);a.setValue(this.tr("Role: "));a.setMargin(1);a.setMinWidth(70);return a},create_pnl_bottom:function(){var a=this.pnl_bottom=new qx.ui.container.Composite(this.create_pnl_bottom_il());a.setHeight(28);a.setMaxHeight(28);a.setMargin(1);a.setMinHeight(28);a.add(this.create_btn_save(),{left:8,top:3});
a.add(this.create_btn_close(),{left:83,top:3});return a},create_pnl_bottom_il:function(){return this.pnl_bottom_il=new qx.ui.layout.Canvas},create_tab:function(){var a=this.tab=new qx.ui.tabview.Page;a.setLabel(this.tr("Role Detail"));a.setMargin(1);a.setLayout(this.create_gridLayout_2());a.add(this.create_label_5(),{column:0,row:0});a.add(this.create_edt_domain_name(),{column:1,row:0});a.add(this.create_label_6(),{column:0,row:1});a.add(this.create_edt_user_name(),{column:1,row:1});a.add(this.create_label_7(),
{column:0,row:2});a.add(this.create_cmb_role(),{column:1,row:2});a.add(this.create_groupBox(),{colSpan:2,column:0,row:3});a.add(this.create_verticalSpacer(),{colSpan:2,column:0,row:4});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setRowFlex(4,1);b.setColumnFlex(0,1);return a},create_tabWidget:function(){var a=this.tabWidget=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab());return a},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},create_verticalLayout_6:function(){return this.verticalLayout_6=new qx.ui.layout.VBox},create_verticalLayout_7:function(){return this.verticalLayout_7=new qx.ui.layout.VBox},create_verticalLayout_8:function(){return this.verticalLayout_8=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(40);a.setWidth(20);a.setMargin(1);return a},det_domain:null,det_fleet:null,det_vehicle:null,edt_domain_name:null,edt_user_name:null,
gridLayout:null,gridLayout_2:null,groupBox:null,label:null,label_2:null,label_3:null,label_5:null,label_6:null,label_7:null,pnl_bottom:null,pnl_bottom_il:null,tab:null,tabWidget:null,verticalLayout:null,verticalLayout_6:null,verticalLayout_7:null,verticalLayout_8:null,verticalSpacer:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.user_role.Detail",{extend:arskom.ui.draw.user.RoleDetail,properties:{_user_name:{check:"String"},_domain_name:{check:"String"},_wsc:{check:"soap.ClientCollection"},_det_fleet:{check:"arskom.ui.DialogEdit",apply:"apply_det_fleet",init:null,nullable:true},_det_domain:{check:"arskom.ui.DialogEdit",apply:"apply_det_domain",init:null,nullable:true},_det_vehicle:{check:"arskom.ui.DialogEdit",apply:"apply_det_vehicle",init:null,nullable:true}},events:{successful_save:"qx.event.type.Data"},
construct:function(){arskom.ui.draw.user.RoleDetail.call(this);this.set_det_domain(new arskom.ui.DialogEdit(this,this.select_domain));this.set_det_fleet(new arskom.ui.DialogEdit(this,this.select_fleet));this.set_det_vehicle(new arskom.ui.DialogEdit(this,function(){var a=new arskom.ui.impl.Dialogs,b=this.__vW,c=this.__vX;if(!arskom.misc.is_na(b)&&!arskom.misc.is_na(c)){var d=this.get_wsc(),e=atr.comp.impl.VehicleList.getInstance();e.set_wsc(d);e.set_domain_name(b);e.set_fleet_id(c);b=this.get_det_vehicle();
a.select_vehicle(e,b.edt_code,b.edt_description)}}));this.__cy=(new qx.ui.window.Window(this.tr("Role Detail"),"")).set({width:400,height:380,showMinimize:false,showMaximize:false});this.__cy.setResizable(false,false,false,false)},members:{__cy:null,__vW:null,__vX:null,__vY:null,__wa:null,apply_det_domain:function(a){var b=this;b.create_det_domain().removeAll();b.create_det_domain().add(a.getWidget(),{flex:1});a.edt_code.addListener("changeValue",function(){var c=a.edt_code.getValue();b.__vW=null;
if(!arskom.misc.is_na(c))b.__vW=c,b.get_det_fleet().reset(),b.get_det_vehicle().reset()},b)},apply_det_fleet:function(a){var b=this;b.create_det_fleet().removeAll();b.create_det_fleet().add(a.getWidget(),{flex:1});a.edt_code.addListener("changeValue",function(){var c=a.edt_code.getValue();b.__vX=null;if(!arskom.misc.is_na(c))b.__vX=parseInt(a.edt_code.getValue()),b.get_det_vehicle().reset()},b)},apply_det_vehicle:function(a){var b=this;b.create_det_vehicle().removeAll();b.create_det_vehicle().add(a.getWidget(),
{flex:1});b.__vY=null;a.edt_code.addListener("changeValue",function(){b.__vY=parseInt(a.edt_code.getValue())},b)},create_btn_save:function(){var a=this.base(arguments);a.addListener("execute",this.on_btn_save_execute,this);return a},create_btn_close:function(){var a=this.base(arguments);a.addListener("execute",this.on_btn_close_execute,this);return a},create_det_domain:function(){this.create_det_vehicle();return this.det_domain==null?this.base(arguments):this.det_domain},create_det_fleet:function(){return this.det_fleet==
null?this.base(arguments):this.det_fleet},create_det_vehicle:function(){return this.det_vehicle==null?this.base(arguments):this.det_vehicle},create_edt_user_name:function(){var a=this.base(arguments);a.setReadOnly(true);return a},create_edt_domain_name:function(){var a=this.base(arguments);a.setReadOnly(true);return a},reset:function(){this.edt_domain_name.resetValue();this.edt_user_name.resetValue();this.__wa=this.__vY=this.__vX=this.__vW=null;this.get_det_domain().reset();this.get_det_fleet().reset();
this.get_det_vehicle().reset()},show:function(){this.edt_domain_name.setValue(this.get_domain_name());this.edt_user_name.setValue(this.get_user_name());this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},set_to_screen:function(){this.edt_domain_name.setValue(this.get_domain_name());this.edt_user_name.setValue(this.get_user_name());
this.edt_ctx_domain.setValue("");this.edt_ctx_fleet.setValue("");this.edt_ctx_vehicle.setValue("")},on_btn_save_execute:function(){var a=this,b=this.get_wsc().c.authz,c=a.cmb_role.getSelection();c.length>0?(c=c[0].getModel(),c==""?alert(a.tr("Please select a role")):(b=b.get_object("arskom.rbac.core","GenericUserRole"),b.set_role(c),b.set_state("g"),b.set_for_domain(a.__vW),b.set_for_fleet(a.__vX),b.set_for_vehicle(a.__vY),a.get_wsc().c.authz.easy("grant_role",a.get_domain_name(),a.get_user_name(),
b,function(b){a.__cy.close();a.fireDataEvent("successful_save",b)}))):alert(a.tr("Please select a role"))},on_btn_close_execute:function(){this.__cy.close()},__uL:function(){return this.get_factory().get_instance(arskom.ui.impl.corporation.List,function(){})},select_domain:function(){var a=new arskom.ui.impl.Dialogs,b=this.__uL();b.set_wsc(this.get_wsc());b.refresh();var c=this.get_det_domain();a.select_corporation(b,c.edt_code,c.edt_description)},select_fleet:function(){var a=new arskom.ui.impl.Dialogs,
b=atr.impl.fleet.List.getInstance(),c=this.get_det_domain().edt_code.getValue();arskom.misc.is_na(c)||(b.set_wsc(this.get_wsc()),b.set_domain_name(c),c=this.get_det_fleet(),a.select_fleet(b,c.edt_code,c.edt_description))}}})})();
(function(){qx.Class.define("atr.comp.draw.VehicleList",{extend:qx.core.Object,type:"abstract",include:[qx.locale.MTranslation],properties:{widget:{check:"Object"}},construct:function(){qx.core.Object.call(this);this.__vQ()},members:{__mq:null,bottom:null,tool_bar:null,btn_refresh:null,table:null,__vQ:function(){this.__mq=new qx.ui.container.Composite(new qx.ui.layout.VBox(0));this.tool_bar=new qx.ui.toolbar.ToolBar;var a=new qx.ui.toolbar.Part;a.add(new qx.ui.toolbar.Separator);a.add((new qx.ui.basic.Label(this.tr("Vehicles"))).set({font:(new qx.bom.Font(20,
["Verdana","sans-serif"])).set({bold:true})}));a.add(new qx.ui.toolbar.Separator);a.add(this.create_btn_refresh());a.add(new qx.ui.toolbar.Separator);this.tool_bar.add(a);this.__mq.add(this.tool_bar);this.bottom=new qx.ui.container.Composite(new qx.ui.layout.HBox(0));this.__mq.add(this.bottom,{flex:1});this.bottom.add(this.create_table(),{flex:1});this.setWidget(this.__mq)},create_table:function(){var a=new atr.comp.VehicleTable(null);return this.table=a},create_btn_refresh:function(){var a=this.btn_refresh=
new qx.ui.toolbar.Button;a.setLabel(this.tr("Refresh"));a.setMargin(1);return a}}})})();
(function(){qx.Class.define("atr.comp.impl.VehicleList",{extend:atr.comp.draw.VehicleList,type:"singleton",include:[qx.locale.MTranslation],properties:{_wsc:{check:"soap.ClientCollection"},_domain_name:{check:"String",init:null,nullable:true},_fleet_color:{check:"String",init:null,nullable:true},_fleet_id:{check:"Integer",init:null,nullable:true}},construct:function(){atr.comp.draw.VehicleList.call(this);this.titles=[this.tr("Icon"),this.tr("Record Id"),this.tr("Id"),this.tr("Last Activity"),this.tr("Evt. Type"),
this.tr("SoM"),this.tr("Pos"),this.tr("Fleet ID"),this.tr("Device_Type"),this.tr("Register Number")];this.fields="icon,id,name,ptime,evt,som,pos,fleet_id,Device_Type,register_number".split(",");this.__wb=(new qx.ui.window.Window(this.tr("Vehicle - List"),"")).set({width:640,height:380})},members:{__wb:null,create_btn_refresh:function(){var a=atr.comp.draw.VehicleList.prototype.create_btn_refresh.call(this);a.addListener("execute",this.refresh,this);return a},clear:function(){arskom.misc.clear_table(this.table,
this.titles,this.fields)},create_table:function(){var a=null;this.table==null?a=atr.comp.draw.VehicleList.prototype.create_table.call(this):(this.refresh(),a=this.table);return a},refresh:function(){this.table.set_wsc(this.get_wsc());this.table.set_domain_name(this.get_domain_name());this.table.set_fleet_id(this.get_fleet_id());this.table.refresh()},reset:function(){this.table.getLayoutParent()!=this.bottom&&this.bottom.add(this.table,{flex:1})},show:function(){this.__wb.setLayout(new qx.ui.layout.VBox(10));
this.__wb.setModal(true);this.__wb.setShowMinimize(false);this.__wb.setUseMoveFrame(true);this.__wb.setUseResizeFrame(true);this.__wb.add(this.getWidget(),{flex:1});this.__wb.open();this.__wb.center()}}})})();
(function(){qx.Class.define("atr.impl.fleet.List",{extend:arskom.ui.impl.DataDisplay,type:"singleton",include:[qx.locale.MTranslation],properties:{_domain_name:{check:"String",apply:"apply_domain_name"}},construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id")},events:{close:"qx.event.type.Data"},members:{btn_msg_user_toolbar:null,btn_switch_to_toolbar:null,__wc:null,apply_domain_name:function(a){this.table.set_domain_name(a)},__td:function(){this.refresh()},__wd:function(){if(this.__wc==
null){var a=atr.impl.fleet.Detail.getInstance();a.addListener("successful_save",this.__td,this);this.__wc=a}return this.__wc},create_table:function(){var a=this.table=new atr.comp.FleetTable;a.setMargin(1);return a},on_add_dialog_successful_save:function(){this.refresh()},pop_add_dialog:function(){var a=this.__wd();a.reset();a.set_row(null);a.set_wsc(this.get_wsc());a.set_domain_name(this.get_domain_name());a.show()},pop_edt_dialog:function(){var a=this.__wd();a.reset();a.set_row(arskom.misc.selected_table_row(this.table));
a.set_wsc(this.get_wsc());a.set_domain_name(this.get_domain_name());a.show()},pop_del_dialog:function(a){var b=this;b.get_wsc().c.cvs.easy(atr.proc.Fleet.DEL,b.get_domain_name(),a[0],function(){b.refresh()})},pop_details_dialog:function(){var a=this.__wd();a.reset();a.set_row(arskom.misc.selected_table_row(this.table));a.set_wsc(this.get_wsc());a.set_domain_name(this.get_domain_name());a.set_allow_save(false);a.show()},on_btn_close_toolbar_execute:function(){arskom.ui.impl.DataDisplay.prototype.on_btn_close_toolbar_execute.call(this);
this.fireDataEvent("close",null)},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Fleets"),"","").open();this.refresh()}}})})();
(function(){qx.Class.define("atr.draw.fleet.Detail",{construct:function(){qx.core.Object.call(this);this.setWidget(this.create_AddFleet())},destruct:function(){},extend:qx.core.Object,include:[qx.locale.MTranslation],members:{AddFleet:null,__ow:null,bottom_bar_5:null,btn_fleet_close:null,btn_fleet_save:null,cmb_color:null,cmb_type:null,create_AddFleet:function(){var a=this.AddFleet=new qx.ui.container.Composite(this.create___lv());a.setHeight(186);a.setWidth(383);a.setMargin(1);a.add(this.create_cw(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_bottom_bar_5:function(){var a=this.bottom_bar_5=new qx.ui.container.Composite(this.create_horizontalLayout_15());a.setHeight(25);a.setMaxHeight(25);a.setMargin(1);a.setMinHeight(25);a.add(this.create_btn_fleet_save(),{flex:1});a.add(this.create_btn_fleet_close(),{flex:1});a.add(this.create_hs_8(),{flex:1});return a},create_btn_fleet_close:function(){var a=this.btn_fleet_close=new qx.ui.form.Button;a.setHeight(22);
a.setWidth(90);a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinWidth(90);a.setMinHeight(22);return a},create_btn_fleet_save:function(){var a=this.btn_fleet_save=new qx.ui.form.Button;a.setHeight(22);a.setWidth(90);a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("Add"));a.setMargin(1);a.setMinWidth(90);a.setMinHeight(22);return a},create_cmb_color:function(){var a=this.cmb_color=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Classic"),
null,"ff776b"));a.add(new qx.ui.form.ListItem(this.tr("Red"),null,"ff0000"));a.add(new qx.ui.form.ListItem(this.tr("Green"),null,"00ff00"));a.add(new qx.ui.form.ListItem(this.tr("Blue"),null,"0000ff"));return a},create_cmb_type:function(){var a=this.cmb_type=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Maritime"),null,"m"));a.add(new qx.ui.form.ListItem(this.tr("Terrestrial"),null,"t"));return a},create_cw:function(){var a=this.cw=new qx.ui.container.Composite(this.create_horizontalLayout());
a.setMargin(1);a.add(this.create_groupBox(),{flex:1});return a},create_edt_fleet:function(){var a=this.edt_fleet=new qx.ui.form.TextField;a.setWidth(100);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(100);return a},create_gridLayout_3:function(){return this.gridLayout_3=new qx.ui.layout.Grid},create_groupBox:function(){var a=this.groupBox=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr("Add Fleet"));a.setMargin(1);a.setLayout(this.create_verticalLayout_4());a.add(this.create_widget(),{flex:1});
a.add(this.create_bottom_bar_5(),{flex:1});return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_15:function(){return this.horizontalLayout_15=new qx.ui.layout.HBox},create_hs_8:function(){var a=this.hs_8=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;a.setValue(this.tr("Name"));a.setMargin(1);return a},create_label_5:function(){var a=
this.label_5=new qx.ui.basic.Label;a.setValue(this.tr("Type"));a.setMargin(1);return a},create_label_6:function(){var a=this.label_6=new qx.ui.basic.Label;a.setValue(this.tr("Color"));a.setMargin(1);return a},create_verticalLayout_4:function(){return this.verticalLayout_4=new qx.ui.layout.VBox},create_widget:function(){var a=this.widget=new qx.ui.container.Composite(this.create_gridLayout_3());a.setMargin(1);a.add(this.create_label_4(),{column:0,row:0});a.add(this.create_edt_fleet(),{column:1,row:0});
a.add(this.create_label_5(),{column:0,row:1});a.add(this.create_cmb_type(),{column:1,row:1});a.add(this.create_label_6(),{column:0,row:2});a.add(this.create_cmb_color(),{column:1,row:2});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},cw:null,edt_fleet:null,gridLayout_3:null,groupBox:null,horizontalLayout:null,horizontalLayout_15:null,hs_8:null,label_4:null,label_5:null,label_6:null,verticalLayout_4:null,widget:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.fleet.Detail",{extend:atr.draw.fleet.Detail,type:"singleton",include:[qx.locale.MTranslation],properties:{_allow_save:{check:"Boolean",apply:"apply_allow_save",init:true},_domain_name:{check:"String",nullable:true,init:null},_wsc:{check:"soap.ClientCollection"},_row:{check:"Object",init:null,nullable:true}},events:{successful_save:"qx.event.type.Data"},construct:function(){atr.draw.fleet.Detail.call(this);this.__cy=(new qx.ui.window.Window(this.tr("Fleet - Detail"),
"")).set({width:400,height:200})},members:{__cy:null,apply_allow_save:function(a){a==true?this.btn_fleet_save.setVisibility("visible"):this.btn_fleet_save.setVisibility("excluded")},reset:function(){this.cmb_color.resetSelection();this.cmb_type.resetSelection();this.edt_fleet.resetValue();this.set_allow_save(true);this.edt_fleet.setReadOnly(false)},show:function(){this.set_to_screen();this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);
this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},set_to_screen:function(){if(!arskom.misc.is_na(this.get_row())){var a=this.get_row();this.edt_fleet.setReadOnly(true);this.edt_fleet.setValue(a.name);var b=a.color,b=/\#[a-z0-9]+/.exec(b).toString().toLowerCase().substring(1);arskom.misc.set_selectbox_label(this.cmb_type,a.type[0].toLowerCase());arskom.misc.set_selectbox_label(this.cmb_color,b)}},create_btn_fleet_save:function(){var a=atr.draw.fleet.Detail.prototype.create_btn_fleet_save.call(this);
a.addListener("execute",this.btn_fleet_save_execute,this);return a},btn_fleet_save_execute:function(){var a=this;if(arskom.misc.is_na(a.edt_fleet.getValue()))alert(this.tr("Fleet name should be specified!"));else{var b=this.get_wsc().c.cvs,c=b.get_object("track.core","Fleet");c.set_name(a.edt_fleet.getValue());c.set_color(arskom.misc.get_selectbox_value(a.cmb_color));c.set_type(arskom.misc.get_selectbox_value(a.cmb_type));var d=function(b){a.fireDataEvent("successful_save",b);a.__cy.close()};arskom.misc.is_na(a.get_row())?
b.easy(atr.proc.Fleet.ADD,a.get_domain_name(),c,d):(c.set_id(a.get_row().id),b.easy(atr.proc.Fleet.EDT,a.get_domain_name(),c,d))}},create_btn_fleet_close:function(){var a=atr.draw.fleet.Detail.prototype.create_btn_fleet_close.call(this);a.addListener("execute",this.btn_fleet_close_execute,this);return a},btn_fleet_close_execute:function(){this.__cy.close()}}})})();
(function(){qx.Class.define("arskom.ui.comp.RoleUserTable",{extend:arskom.ui.Table,construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("id"),this.tr("Role Name"),this.tr("Role State"),this.tr("Domain Name"),this.tr("Fleet Id"),this.tr("Vehicle Id")]);this.set_fields("id,role,state,for_domain,for_fleet,for_vehicle".split(","));this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},properties:{_domain_name:{check:"String",init:null,nullable:true,
apply:"__tA"},_user_name:{check:"String",init:null,nullable:true,apply:"__we"}},members:{apply_wsc:function(){this.__wf()},__tA:function(){this.__wf()},__we:function(){this.__wf()},__wf:function(){this.get_wsc().c.authz!=null&&this.get_domain_name()!=null&&(this.get_user_name()==null?this.clear():this.refresh())},get_default_view:function(){var a=this.getTableColumnModel();a.setColumnWidth(0,30);a.setColumnWidth(1,90);a.setColumnWidth(2,30);a.setColumnWidth(3,90);a.setColumnWidth(4,60);a.setColumnWidth(5,
60)},clear:function(){this.resetSelection();var a=this.getTableModel(),b=new qx.ui.table.model.Simple;b.waiting_row=0;b.setColumns(this.get_titles(),this.get_fields());this.setTableModel(b);a&&a.dispose()},refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=new soap.Parameters;a.add("domain_name",this.get_domain_name());a.add("user_name",this.get_user_name());a=new soap.RemoteImpl(this.get_wsc().c.authz,"get_all_role_user_count","get_all_role_user",a);a.setColumns(this.get_titles(),
this.get_fields());var b=this.getTableModel();this.setTableModel(a);b&&b.dispose();this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)}}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.Number",{extend:qx.ui.table.cellrenderer.Conditional,properties:{numberFormat:{check:"qx.util.format.NumberFormat",init:null,nullable:true}},members:{_getContentHtml:function(a){var b=this.getNumberFormat();return b?a.value||a.value==0?b.format(a.value):"":a.value==0?"0":a.value||""},_getCellClass:function(){return"qooxdoo-table-cell qooxdoo-table-cell-right"}}})})();
(function(){qx.Class.define("qx.ui.table.cellrenderer.String",{extend:qx.ui.table.cellrenderer.Conditional,members:{_getContentHtml:function(a){return qx.bom.String.escape(a.value||"")},_getCellClass:function(){return"qooxdoo-table-cell"}}})})();
(function(){qx.Class.define("arskom.ui.SettingsTable",{extend:qx.ui.table.Table,properties:{_wsc:{check:"soap.ClientCollection"},_fields:{check:"Array"}},construct:function(a,b){qx.ui.table.Table.call(this,a,b);this.getPaneScroller(0).setShowCellFocusIndicator(false);this.getDataRowRenderer().setHighlightFocusRow(false);this.__AD=arskom.KvsCache.getInstance();this.set_wsc(arskom.Application.wsc);var c=this.getTableColumnModel();c.addListener("widthChanged",this.__AE,this);c.addListener("orderChanged",
this.__AE,this)},members:{__AD:null,_createColumnVisibilityCheckBoxHandler:function(a){return function(b){this.getTableColumnModel().setColumnVisible(a,b.getData());this.save_display_settings()}},__AE:function(a){a.getData().isMouseAction&&this.save_display_settings()},save_display_settings:function(){for(var a=this.getTableColumnModel().getVisibleColumns(),b=qx.xml.Document.create(),c=soap.Client.createSubElementNS(b,b,"settings","arskom.ui.Table"),d=this.get_fields(),e=this.getTableColumnModel(),
f=0,g=a.length;f<g;++f){var h=e.getColumnWidth(a[f]);if(h&&h!=null){var i=d[a[f]],j=soap.Client.createSubElementNS(b,c,"column","arskom.ui.Table");j.appendChild(b.createTextNode(i));j.setAttribute("width",h.toString())}}a=this.get_wsc().c.kvs.get_object("arskom2.kvs.core","KvsValue");a.set_key(this.get_key());a.set_value(c);this.__AD.set_entities([a],function(){qx.log.Logger.debug("kvs save: got a 500 from the server")})},load_display_settings:function(){var a=this,b=a.get_fields(),c={};c[a.get_key()]=
true;a.load_default_view();var d=this.__AD;d.get_entities(c,function(c){if(c.length>0&&c[0]!=null)if(c=d.query_cache(c[0])){var c=qx.xml.Element.getElementsByTagNameNS(c.get_value(),"arskom.ui.Table","column"),f=c.length;if(f>0){for(var g=a.getTableColumnModel(),h=0,i=b.length;h<i;++h)g.setColumnVisible(h,false);for(f-=1;f>=0;--f){var h=c[f].getAttribute("width"),i="",j=c[f].firstChild;if(j!=null)i=j.nodeValue;j=b.indexOf(i);j!=-1?(a.setColumnWidth(j,parseInt(h)),g.setColumnVisible(j,true),g.moveColumn(g.getOverallX(j),
f)):qx.log.Logger.debug("kvs load: r["+i+"] does not exist.")}}else a.load_default_view(),qx.log.Logger.debug("kvs load: r[0] is empty")}else a.load_default_view(),qx.log.Logger.debug("kvs load: r[0] doesn't exist on the server");else a.load_default_view(),qx.log.Logger.debug("kvs load: r is empty")},function(){a.load_default_view();qx.log.Logger.debug("kvs load: got a 500 from the server")});return a},load_default_view:function(){},refresh:function(){this.getTableModel().reloadData()},get_key:function(){return this.classname}}})})();
(function(){qx.Class.define("arskom.screen.Table",{extend:arskom.ui.SettingsTable,properties:{_data_call:{check:String},_count_call:{check:String},_kvs_id:{check:"String",nullable:true,init:null},_params:{check:"soap.Parameters",apply:"__CQ"},_editable:{check:"Boolean",init:false}},construct:function(a,b,c,d){arskom.ui.SettingsTable.call(this);this.__CP=false;this.__AF=a;this.__AG=this.get_wsc().c[a];this.__xg=d;this.set_data_call(b);this.set_count_call(c);this.set_params(new soap.Parameters);this.addListener("changeTableModel",
this.__AP,this);this.produce_table_model()},statics:{RENDERER_MAP:{"boolean":qx.ui.table.cellrenderer.Boolean,dateTime:qx.ui.table.cellrenderer.Date,integer:qx.ui.table.cellrenderer.Number,"long":qx.ui.table.cellrenderer.Number,unsignedLong:qx.ui.table.cellrenderer.Number,"int":qx.ui.table.cellrenderer.Number,unsignedInt:qx.ui.table.cellrenderer.Number,nonNegativeInteger:qx.ui.table.cellrenderer.Number,nonPositiveInteger:qx.ui.table.cellrenderer.Number,"short":qx.ui.table.cellrenderer.Number,unsignedShort:qx.ui.table.cellrenderer.Number,
"byte":qx.ui.table.cellrenderer.Number,unsignedByte:qx.ui.table.cellrenderer.Number,decimal:qx.ui.table.cellrenderer.Number,"float":qx.ui.table.cellrenderer.Number,"double":qx.ui.table.cellrenderer.Number,string:qx.ui.table.cellrenderer.String,normalizedString:qx.ui.table.cellrenderer.String,token:qx.ui.table.cellrenderer.String,anyURI:qx.ui.table.cellrenderer.String}},members:{__xg:null,__CP:null,__AG:null,__AF:null,__AH:null,__hf:null,__AI:null,__AJ:null,__AK:null,__AL:false,__CQ:function(a){this.__AI!=
null&&this.__AI.set_params(a)},get_titles:function(){return this.__AN},get_fields:function(){return this.__AH},get_query_class:function(){return this.__AK},is_searchable:function(){return this.__AL},produce_table_model:function(){var a=this.__AG,b=a.cache.methods[this.get_data_call()];if(!b)throw Error("function "+this.get_function()+" not exposed via WSDL!");var c=a.get_target(b.output,3);this.__AH=[];this.__AN=[];this.__hf=[];for(var d in c.children)c.children.hasOwnProperty(d)&&isNaN(d)&&(this.__AH.push(d),
this.__AN.push(this.tr(d)),this.__hf.push(c.children[d].type.split(":")[1]));this.__AI=new soap.RemoteImpl(this.__AG,this.get_count_call(),this.get_data_call(),this.get_params(),this.__xg);this.__AI.setColumns(this.__AN,this.__AH);this.__AI.setEditable(this.get_editable());this.__AO={};a=a.get_target(b.input);try{var e=a.children.conditions.type.split(":")[1],f=a.children.conditions.ns,g=this.__AG.cache.schema[f].complex[e];this.__AK=this.__AG.cache.get_class(f,e);var g=this.__AG.cache.schema[g.ann.source_ns].complex[g.ann.source_name],
h;for(h in g.children)g.children.hasOwnProperty(h)&&isNaN(h)&&(this.__AO[h]={type:g.children[h].type.split(":")[1],title:this.tr(h)});this.__AL=true}catch(i){this.__AL=false}return this.__AI},__AP:function(a){for(var b=this.self(arguments).RENDERER_MAP,c=this.getTableColumnModel(),d=0,e=this.__hf.length;d<e;d++){var f=b[this.__hf[d]];if(f){var g=new f;f==qx.ui.table.cellrenderer.Date&&g.setDateFormat(new qx.util.format.DateFormat("yyyy/MM/dd HH:mm"));c.setDataCellRenderer(d,g)}}},refresh:function(){if(!this.__CP)this.setTableModel(this.__AI),
this.load_display_settings(),this.__CP=true;this.__AI.reloadData()},get_key:function(){var a=this.classname+"."+this.get_data_call();this.get_kvs_id()&&(a+="."+this.get_kvs_id());return a},set_parameter:function(a,b){this.get_params().add(a,b)},clean:function(){},get_filter_columns:function(){return null},get_field_info:function(){return this.__AO},set_search_qos:function(){qx.log.Logger.debug("arskom.screen.Table ignores set_search_qos call.")},set_client_address:function(){qx.log.Logger.debug("arskom.screen.Table ignores set_client_address call.")},
set_titles:function(){qx.log.Logger.debug("arskom.screen.Table.set_titles ignored")},set_fields:function(){qx.log.Logger.debug("arskom.screen.Table.set_fields ignored")}}})})();
(function(){qx.Class.define("arskom.ui.draw.user.ResetPassword",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_ResetPassword())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{ResetPassword:null,__ow:null,btn_close:null,btn_save:null,centralwidget:null,create_ResetPassword:function(){var a=this.ResetPassword=new qx.ui.container.Composite(this.create___lv());a.setHeight(245);a.setWidth(339);a.setMargin(1);a.add(this.create_centralwidget(),
{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Close"));a.setMargin(1);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setWidth(65);a.setLabel(this.tr("Save"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());
a.setMargin(1);a.add(this.create_tbv_password(),{flex:1});a.add(this.create_pnl_bottom(),{flex:1});return a},create_edt_domain_name:function(){var a=this.edt_domain_name=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_password_1:function(){var a=this.edt_password_1=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_password_2:function(){var a=this.edt_password_2=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_user_name:function(){var a=this.edt_user_name=new qx.ui.form.TextField;
a.setMargin(1);return a},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},create_horizontalLayout_2:function(){return this.horizontalLayout_2=new qx.ui.layout.HBox},create_label_5:function(){var a=this.label_5=new qx.ui.basic.Label;a.setValue(this.tr("Domain Name: "));a.setMargin(1);return a},create_label_6:function(){var a=this.label_6=new qx.ui.basic.Label;a.setValue(this.tr("User Name: "));a.setMargin(1);return a},create_label_7:function(){var a=this.label_7=new qx.ui.basic.Label;
a.setValue(this.tr("Password: "));a.setMargin(1);return a},create_label_8:function(){var a=this.label_8=new qx.ui.basic.Label;a.setValue(this.tr("Password (again): "));a.setMargin(1);return a},create_pnl_bottom:function(){var a=this.pnl_bottom=new qx.ui.container.Composite(this.create_pnl_bottom_il());a.setHeight(28);a.setMaxHeight(28);a.setMargin(1);a.setMinHeight(28);a.add(this.create_btn_save(),{left:8,top:3});a.add(this.create_btn_close(),{left:83,top:3});return a},create_pnl_bottom_il:function(){return this.pnl_bottom_il=
new qx.ui.layout.Canvas},create_scr1:function(){var a=this.scr1=new qx.ui.container.Scroll;a.setMargin(1);a.add(this.create_scr1area_2(),{left:0,top:0});return a},create_scr1area_2:function(){var a=this.scr1area_2=new qx.ui.container.Composite(this.create_gridLayout_2());a.setHeight(159);a.setWidth(309);a.setMargin(1);a.add(this.create_label_5(),{column:0,row:0});a.add(this.create_edt_domain_name(),{column:1,row:0});a.add(this.create_label_6(),{column:0,row:1});a.add(this.create_edt_user_name(),{column:1,
row:1});a.add(this.create_label_7(),{column:0,row:2});a.add(this.create_edt_password_1(),{column:1,row:2});a.add(this.create_label_8(),{column:0,row:3});a.add(this.create_edt_password_2(),{column:1,row:3});a.add(this.create_verticalSpacer(),{colSpan:2,column:0,row:4});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setRowFlex(4,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_tbs_password:function(){var a=this.tbs_password=new qx.ui.tabview.Page;
a.setLabel(this.tr("Reset Rassword"));a.setMargin(1);a.setLayout(this.create_horizontalLayout_2());a.add(this.create_scr1(),{flex:1});return a},create_tbv_password:function(){var a=this.tbv_password=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tbs_password());return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(40);a.setWidth(20);a.setMargin(1);return a},
edt_domain_name:null,edt_password_1:null,edt_password_2:null,edt_user_name:null,gridLayout_2:null,horizontalLayout_2:null,label_5:null,label_6:null,label_7:null,label_8:null,pnl_bottom:null,pnl_bottom_il:null,scr1:null,scr1area_2:null,tbs_password:null,tbv_password:null,verticalLayout:null,verticalSpacer:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.user.ResetPassword",{extend:arskom.ui.draw.user.ResetPassword,type:"singleton",include:[qx.locale.MTranslation],properties:{_wsc:{check:"soap.ClientCollection"},_domain_name:{check:"String"},_user_name:{check:"String"}},construct:function(){arskom.ui.draw.user.ResetPassword.call(this);this.__cy=(new qx.ui.window.Window(this.tr("Reset Password"),"")).set({width:350,height:260,showMinimize:false,showMaximize:false});this.__cy.setResizable(false,false,false,
false)},members:{__cy:null,create_btn_save:function(){var a=arskom.ui.draw.user.ResetPassword.prototype.create_btn_save.call(this);a.addListener("execute",this.save,this);return a},create_btn_close:function(){var a=arskom.ui.draw.user.ResetPassword.prototype.create_btn_close.call(this);a.addListener("execute",this.close,this);return a},create_edt_password_1:function(){var a=this.edt_password_1=new qx.ui.form.PasswordField;a.setMargin(1);return a},create_edt_password_2:function(){var a=this.edt_password_2=
new qx.ui.form.PasswordField;a.setMargin(1);return a},create_edt_user_name:function(){var a=arskom.ui.draw.user.ResetPassword.prototype.create_edt_user_name.call(this);a.setReadOnly(true);return a},create_edt_domain_name:function(){var a=arskom.ui.draw.user.ResetPassword.prototype.create_edt_domain_name.call(this);a.setReadOnly(true);return a},reset:function(){this.edt_domain_name.resetValue();this.edt_user_name.resetValue();this.edt_password_1.resetValue();this.edt_password_2.resetValue()},show:function(){this.edt_domain_name.setValue(this.get_domain_name());
this.edt_user_name.setValue(this.get_user_name());this.__cy.setLayout(new qx.ui.layout.VBox(10));this.__cy.setModal(true);this.__cy.setShowMinimize(false);this.__cy.setUseMoveFrame(true);this.__cy.setUseResizeFrame(true);this.__cy.add(this.getWidget(),{flex:1});this.__cy.open();this.__cy.center()},set_to_screen:function(){this.edt_domain_name.setValue(this.get_domain_name());this.edt_user_name.setValue(this.get_user_name());this.edt_password_1.setValue("");this.edt_password_2.setValue("")},save:function(){var a=
this;if(a.edt_password_1.getValue()!=a.edt_password_2.getValue())alert(this.tr("Passwords do not match!"));else{var b;try{this.get_wsc().c.cvs.easy(arskom.ui.proc.User.RESET_PASSWORD,this.get_domain_name(),this.get_user_name(),this.edt_password_1.getValue(),function(b){b==="OK"&&a.close()})}catch(c){alert(c.message)}}},close:function(){this.__cy.close()}}})})();
(function(){qx.Class.define("atr.comp.MainVehicleTable",{extend:atr.comp.VehicleTable,construct:function(a,b){atr.comp.VehicleTable.call(this,a,b)}})})();
(function(){qx.Class.define("atr.draw.AddMessage",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_wnd())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,btn_close:null,btn_send:null,cmb_device:null,cmb_msg_type:null,cmb_predefined_msg:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);
a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinWidth(70);a.setMinHeight(23);return a},create_btn_send:function(){var a=this.btn_send=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);a.setLabel(this.tr("Send"));a.setMargin(1);a.setMinWidth(70);a.setMinHeight(23);return a},create_cmb_device:function(){var a=this.cmb_device=new atr.comp.CommTerminalSelectBox;a.setHeight(23);a.setWidth(180);a.setMaxHeight(23);a.setMaxWidth(180);a.setMargin(1);a.setMinWidth(180);
a.setMinHeight(23);a.setAllowGrowY(false);return a},create_cmb_msg_type:function(){var a=this.cmb_msg_type=new qx.ui.form.SelectBox;a.setHeight(23);a.setWidth(150);a.setMaxHeight(23);a.setMaxWidth(150);a.setMargin(1);a.setMinWidth(150);a.setMinHeight(23);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Free Text"),null,"free"));a.add(new qx.ui.form.ListItem(this.tr("Predefined"),null,"predef"));return a},create_cmb_predefined_msg:function(){var a=this.cmb_predefined_msg=new atr.comp.PredefinedMessageSelectBox;
a.setHeight(23);a.setWidth(150);a.setMaxHeight(23);a.setMaxWidth(150);a.setMargin(1);a.setMinWidth(150);a.setMinHeight(23);a.setAllowGrowY(false);return a},create_edt_free_text:function(){var a=this.edt_free_text=new qx.ui.form.TextField;a.setHeight(23);a.setWidth(200);a.setMaxHeight(23);a.setMaxWidth(200);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(23);a.setAllowGrowY(false);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalLayout_2:function(){return this.horizontalLayout_2=
new qx.ui.layout.HBox},create_horizontalLayout_3:function(){return this.horizontalLayout_3=new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(133);a.setMargin(1);return a},create_horizontalSpacer_2:function(){var a=this.horizontalSpacer_2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(133);a.setMargin(1);return a},create_wdg_device:function(){var a=this.wdg_device=new qx.ui.container.Composite(this.create_horizontalLayout_2());
a.setMaxWidth(750);a.setMargin(1);a.add(this.create_btn_close(),{flex:1});a.add(this.create_cmb_device(),{flex:1});return a},create_wdg_message:function(){var a=this.wdg_message=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMaxWidth(750);a.setMargin(1);a.add(this.create_cmb_msg_type(),{flex:1});a.add(this.create_edt_free_text(),{flex:3});a.add(this.create_cmb_predefined_msg(),{flex:1});a.add(this.create_btn_send(),{flex:1});return a},create_wgt:function(){var a=this.wgt=new qx.ui.container.Composite(this.create_horizontalLayout_3());
a.setMargin(1);a.add(this.create_horizontalSpacer(),{flex:1});a.add(this.create_wdg_device(),{flex:1});a.add(this.create_wdg_message(),{flex:1});a.add(this.create_horizontalSpacer_2(),{flex:1});return a},create_wnd:function(){var a=this.wnd=new qx.ui.container.Composite(this.create___lv());a.setMaxHeight(59);a.setMargin(1);a.add(this.create_wgt(),{flex:1});return a},edt_free_text:null,horizontalLayout:null,horizontalLayout_2:null,horizontalLayout_3:null,horizontalSpacer:null,horizontalSpacer_2:null,
wdg_device:null,wdg_message:null,wgt:null,wnd:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.comp.CommTerminalSelectBox",{extend:qx.ui.form.SelectBox,properties:{_wsc:{check:"soap.ClientCollection"},_domain_name:{check:"String"},_fleet_id:{check:"Integer"},_vehicle_id:{check:"Integer"},_cache:{check:"atr.cache.CommTerminal"}},construct:function(){qx.ui.form.SelectBox.call(this);this.set_cache(atr.cache.CommTerminal.getInstance())},members:{refresh:function(){var a=this,b=this.get_cache();a.removeAll();b.void_cache();var c=new soap.Parameters;c.add("domain_name",
this.get_domain_name());c.add("fleet_id",this.get_fleet_id());c.add("vehicle_id",this.get_vehicle_id());var d=this.get_wsc().c.cvs.get_call(atr.proc.CommTerminal.GET_ALL_MSG),e=this.get_wsc().c.cvs.get_call(atr.proc.CommTerminal.GET_ALL_MSG_COUNT);d.set_params(c);b.set_by_page_call(d);b.set_count_call(e);b.fill_cache(function(c){var d=new qx.ui.form.ListItem(a.tr("[ Select Device ]"));a.add(d);for(var e=0,i=c.length;e<i;e++){var j=b.query_cache(c[e]),k=atr.proc.Consts.DEVICE_MODELS[parseInt(j.get_device())],
j=new qx.ui.form.ListItem(k,null,j);a.add(j)}a.setSelection([d])})}}})})();
(function(){qx.Class.define("atr.comp.PredefinedMessageSelectBox",{extend:qx.ui.form.SelectBox,properties:{_wsc:{check:"soap.ClientCollection"},_device_id:{check:"Integer"},_cache:{check:"atr.cache.PredefinedMessage"}},construct:function(){qx.ui.form.SelectBox.call(this);this.set_cache(atr.cache.PredefinedMessage.getInstance())},members:{refresh:function(){var a=this,b=this.get_cache();a.removeAll();b.void_cache();var c=new soap.Parameters;c.add("device_id",this.get_device_id());var d=this.get_wsc().c.cvs.get_call(atr.proc.PredefinedMessage.GET_BY_DEV_ALL),
e=this.get_wsc().c.cvs.get_call(atr.proc.PredefinedMessage.GET_BY_DEV_ALL_COUNT);d.set_params(c);b.set_by_page_call(d);b.set_count_call(e);b.fill_cache(function(c){var d=new qx.ui.form.ListItem(a.tr("[ Select PDM ]"));a.add(d);for(var e=0,i=c.length;e<i;e++){var j=b.query_cache(c[e]),j=new qx.ui.form.ListItem(j.get_message(),null,j);a.add(j)}a.setSelection([d])})}}})})();(function(){qx.Class.define("atr.cache.PredefinedMessage",{extend:arskom.EntityCache,type:"singleton",members:{}})})();
(function(){qx.Class.define("atr.impl.AddMessage",{extend:atr.draw.AddMessage,construct:function(){atr.draw.AddMessage.call(this)},properties:{_map:{check:"arskom.ui.Map"},_domain_name:{check:"String",apply:"apply_domain_name"},_fleet_id:{check:"Integer",apply:"apply_fleet_id"},_vehicle_id:{check:"Integer",apply:"apply_vehicle_id"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"}},events:{save:"qx.event.type.Data",close:"qx.event.type.Data"},members:{apply_domain_name:function(a){this.cmb_device.set_domain_name(a)},
apply_fleet_id:function(a){this.cmb_device.set_fleet_id(a)},apply_vehicle_id:function(a){this.cmb_device.set_vehicle_id(a)},apply_wsc:function(a){this.cmb_predefined_msg.set_wsc(a);this.cmb_device.set_wsc(a)},reset:function(){},create_btn_send:function(){var a=atr.draw.AddMessage.prototype.create_btn_send.call(this);a.addListener("execute",this.on_message_btn_send_execute,this);return a},create_btn_close:function(){var a=atr.draw.AddMessage.prototype.create_btn_close.call(this);a.addListener("execute",
this.on_message_btn_close_execute,this);return a},create_btn_clear:function(){var a=atr.draw.AddMessage.prototype.create_btn_clear.call(this);a.addListener("execute",this.on_message_btn_clear_execute,this);return a},on_message_btn_close_execute:function(){this.fireDataEvent("close",null)},on_message_btn_clear_execute:function(){this.edt_free_text.resetValue()},create_cmb_device:function(){var a=atr.draw.AddMessage.prototype.create_cmb_device.call(this);a.addListener("changeSelection",this.__wg,this);
return a},__wg:function(){arskom.misc.is_na(this.cmb_device.getSelection()[0])||(this.cmb_device.getSelection()[0].getModel()==null?this.wdg_message.setVisibility("excluded"):(this.__wh(),this.wdg_message.setVisibility("visible")))},create_cmb_msg_type:function(){var a=atr.draw.AddMessage.prototype.create_cmb_msg_type.call(this);a.addListener("changeSelection",this.__wh,this);return a},__wh:function(){var a=this.cmb_msg_type.getSelection()[0].getModel();a=="predef"?(this.cmb_device.setVisibility("visible"),
this.btn_send.setVisibility("visible"),this.cmb_predefined_msg.setVisibility("visible"),this.edt_free_text.setVisibility("excluded"),a=this.cmb_device.getSelection()[0].getModel(),arskom.misc.is_na(a)||(this.cmb_predefined_msg.set_device_id(parseInt(a.get_id())),this.cmb_predefined_msg.refresh())):a=="free"?(this.cmb_device.setVisibility("visible"),this.btn_send.setVisibility("visible"),this.cmb_predefined_msg.setVisibility("excluded"),this.edt_free_text.setVisibility("visible")):(this.cmb_device.setVisibility("excluded"),
this.btn_send.setVisibility("excluded"),this.cmb_predefined_msg.setVisibility("excluded"),this.edt_free_text.setVisibility("excluded"))},refresh:function(){this.cmb_device.refresh()},__wi:function(a,b){if(b==null)return alert(this.tr("Please select device")),false;if(a=="predef")if(this.cmb_predefined_msg.getSelection()[0].getModel()==null)alert(this.tr("Please select predefined message"));else return true;else if(a=="free")if(arskom.misc.is_na(this.edt_free_text.getValue()))alert(this.tr("Please fill text"));
else return true;return false},on_message_btn_send_execute:function(){var a=this,b=a.cmb_msg_type.getSelection()[0].getModel(),c=a.cmb_device.getSelection()[0].getModel();if(a.__wi(b,c)){var c=c.get_id(),d=this.get_wsc().c.cvs,e=null,f=null;b=="predef"?e=a.cmb_predefined_msg.getSelection()[0].getModel().get_id():f=a.edt_free_text.getValue();d.easy(atr.proc.Message.SEND,a.get_domain_name(),a.get_fleet_id(),a.get_vehicle_id(),c,f,e,function(){a.fireDataEvent("save",null)})}}}})})();
(function(){qx.Class.define("atr.proc.Message",{type:"static",statics:{GET:"get_message",SEND:"send_message",GET_ALL:"get_all_message",GET_ALL_COUNT:"get_all_message_count",SET_MSG_STATE:"set_message_read_state",CHECK_NEW_MSG:"get_all_unread_message_count",UNREAD:1,READ:2}})})();
(function(){qx.Class.define("qx.ui.toolbar.MenuButton",{extend:qx.ui.menubar.Button,properties:{appearance:{refine:true,init:"toolbar-menubutton"},showArrow:{check:"Boolean",init:false,themeable:true,apply:"_applyShowArrow"}},members:{_applyVisibility:function(a,b){qx.ui.menubar.Button.prototype._applyVisibility.call(this,a,b);var c=this.getMenu();a!="visible"&&c&&c.hide()},_createChildControlImpl:function(a){var b;switch(a){case "arrow":b=new qx.ui.basic.Image,b.setAnonymous(true),this._addAt(b,
10)}return b||qx.ui.menubar.Button.prototype._createChildControlImpl.call(this,a)},_applyShowArrow:function(a){a?this._showChildControl("arrow"):this._excludeChildControl("arrow")}}})})();
(function(){qx.Class.define("arskom.ui.draw.RefreshComposite",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_refresh_composite())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,chk_auto_refresh:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_chk_auto_refresh:function(){var a=this.chk_auto_refresh=new qx.ui.form.CheckBox;a.setLabel(this.tr("Auto Refresh"));a.setMargin(1);return a},create_horizontalLayout:function(){return this.horizontalLayout=
new qx.ui.layout.HBox},create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_lbl_counter:function(){var a=this.lbl_counter=new qx.ui.basic.Label;a.setValue(this.tr("100"));a.setMargin(1);return a},create_lbl_every:function(){var a=this.lbl_every=new qx.ui.basic.Label;a.setValue(this.tr("every"));a.setMargin(1);return a},create_lbl_next:function(){var a=this.lbl_next=new qx.ui.basic.Label;a.setValue(this.tr("min. Next Refresh: "));
a.setMargin(1);return a},create_refresh_composite:function(){var a=this.refresh_composite=new qx.ui.container.Composite(this.create___lv());a.setHeight(209);a.setWidth(542);a.setMargin(1);a.add(this.create_widget(),{flex:1});return a},create_spn_period:function(){var a=this.spn_period=new qx.ui.form.Spinner;a.setMaxWidth(50);a.setMargin(1);a.setAllowGrowY(false);return a},create_widget:function(){var a=this.widget=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMaxHeight(32);a.setMargin(1);
a.add(this.create_chk_auto_refresh(),{flex:1});a.add(this.create_lbl_every(),{flex:0});a.add(this.create_spn_period(),{flex:1});a.add(this.create_lbl_next(),{flex:0});a.add(this.create_lbl_counter(),{flex:0});a.add(this.create_horizontalSpacer(),{flex:1});return a},horizontalLayout:null,horizontalSpacer:null,lbl_counter:null,lbl_every:null,lbl_next:null,refresh_composite:null,spn_period:null,widget:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("arskom.ui.impl.RefreshComposite",{extend:arskom.ui.draw.RefreshComposite,properties:{_bound_widget:{check:"Object",init:null,apply:"apply_bound_widget"},_time_start:{check:"Boolean",init:true,apply:"apply_time_start"},_time_to_refresh:{check:"Integer",init:true,apply:"__wv"}},construct:function(){arskom.ui.draw.RefreshComposite.call(this);this.__wj=new qx.event.Timer;this.__wj.setInterval(200);this.__wj.setEnabled(false);this.__wj.addListener("interval",this.__wu,this);
this.spn_period.setValue(25);this.lbl_every.setVisibility("excluded");this.spn_period.setVisibility("excluded");this.lbl_next.setVisibility("excluded");this.lbl_counter.setVisibility("excluded");qx.event.message.Bus.subscribe("table_appear",this.__wn,this);qx.event.message.Bus.subscribe("table_disappear",this.__wo,this);this.__wk=new qx.data.Array},members:{__wk:null,__wl:null,__wm:null,apply_time_start:function(a){this.chb_start.setValue(a)},apply_bound_widget:function(a){this.__wk.push(a)},__wn:function(a){this.__wk.push(a.getData())},
__wo:function(a){this.__wk.removeAt(this.__wk.indexOf(a.getData()))},create_spn_period:function(){var a=arskom.ui.draw.RefreshComposite.prototype.create_spn_period.call(this);a.set({maximum:99,minimum:5});a.setAlignY("middle");a.addListener("changeValue",this.__wr,this);return a},create_lbl_every:function(){var a=arskom.ui.draw.RefreshComposite.prototype.create_lbl_every.call(this);a.setAlignY("middle");return a},create_lbl_next:function(){var a=arskom.ui.draw.RefreshComposite.prototype.create_lbl_next.call(this);
a.setAlignY("middle");return a},create_lbl_counter:function(){var a=arskom.ui.draw.RefreshComposite.prototype.create_lbl_counter.call(this);a.setAlignY("middle");a.addListener("click",this.__ws,this);return a},create_chk_auto_refresh:function(){var a=arskom.ui.draw.RefreshComposite.prototype.create_chk_auto_refresh.call(this);a.setValue(false);a.addListener("changeValue",this.__wq,this);return a},__wp:function(){if(this.chk_auto_refresh.getValue()==true){var a=this.__wk.getItem(this.__wk.getLength()-
1);arskom.misc.is_na(a)||(a.refresh(),this.__wt())}},__wq:function(){this.__wt()},__wr:function(){this.__wt()},__ws:function(){this.__wt()},__wt:function(){this.chk_auto_refresh.getValue()==true?(this.lbl_every.setVisibility("visible"),this.spn_period.setVisibility("visible"),this.lbl_next.setVisibility("visible"),this.lbl_counter.setVisibility("visible"),this.lbl_counter.setBackgroundColor("#D3D3D3"),this.lbl_counter.setMargin(2,2,2,0),this.set_time_to_refresh(parseInt(this.spn_period.getValue())*
6E4),this.__wm=new Date((new Date).getTime()+this.get_time_to_refresh()),this.__wj.start()):(this.lbl_every.setVisibility("excluded"),this.spn_period.setVisibility("excluded"),this.lbl_next.setVisibility("excluded"),this.lbl_counter.setVisibility("excluded"),this.__wj.stop())},__wu:function(){this.set_time_to_refresh(this.__wm-(new Date).getTime());this.get_time_to_refresh()<=0&&(this.__wp(),this.__wt())},__wv:function(a){var b=Math.floor(a/6E4),a=Math.floor(a/1E3)%60;b<1&&this.lbl_counter.setBackgroundColor("#FFFF00");
a<10&&(a="0"+a);b<10&&(b="0"+b);this.lbl_counter.setValue(b+":"+a)},reset:function(){this.__wt()}}})})();(function(){qx.Class.define("atr.proc.Event",{type:"static",statics:{WS_GET_ALL:"get_all_event",WS_GET_ALL_COUNT:"get_all_event_count",ET_POSITION:1,ET_INCOMING_PREDEFINED_MESSAGE:2,ET_OUTGOING_PREDEFINED_MESSAGE:3,ET_INCOMING_FREEFORM_MESSAGE:5,ET_OUTGOING_FREEFORM_MESSAGE:6,EVENT_TYPE:",ET_POSITION,ET_INCOMING_PREDEFINED_MESSAGE,ET_OUTGOING_PREDEFINED_MESSAGE,,ET_INCOMING_FREEFORM_MESSAGE,ET_OUTGOING_FREEFORM_MESSAGE".split(",")}})})();
(function(){qx.Class.define("atr.draw.AddPoi",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_wnd())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,btn_close:null,btn_save:null,cmb_type:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);a.setLabel(this.tr("Close"));a.setMargin(1);
a.setMinWidth(70);a.setMinHeight(23);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);a.setLabel(this.tr("Save"));a.setMargin(1);a.setMinWidth(70);a.setMinHeight(23);return a},create_cmb_type:function(){var a=this.cmb_type=new qx.ui.form.SelectBox;a.setHeight(23);a.setWidth(150);a.setMaxHeight(23);a.setMaxWidth(150);a.setMargin(1);a.setMinWidth(150);a.setMinHeight(23);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Office"),
null,"1"));a.add(new qx.ui.form.ListItem(this.tr("Client"),null,"2"));a.add(new qx.ui.form.ListItem(this.tr("Station"),null,"3"));return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setHeight(23);a.setWidth(200);a.setMaxHeight(23);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(23);a.setAllowGrowY(false);return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_hsp1:function(){var a=this.hsp1=new qx.ui.core.Spacer;a.setHeight(28);
a.setWidth(30);a.setMargin(1);return a},create_hsp2:function(){var a=this.hsp2=new qx.ui.core.Spacer;a.setHeight(28);a.setWidth(30);a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Poi Name: "));a.setMargin(1);return a},create_wgt:function(){var a=this.wgt=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMargin(1);a.add(this.create_hsp1(),{flex:1});a.add(this.create_label(),{flex:1});a.add(this.create_edt_name(),{flex:3});
a.add(this.create_cmb_type(),{flex:1});a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_hsp2(),{flex:1});return a},create_wnd:function(){var a=this.wnd=new qx.ui.container.Composite(this.create___lv());a.setHeight(48);a.setWidth(637);a.setMargin(1);a.add(this.create_wgt(),{flex:1});return a},edt_name:null,horizontalLayout:null,hsp1:null,hsp2:null,label:null,wgt:null,wnd:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.AddPoi",{extend:atr.draw.AddPoi,type:"singleton",construct:function(){atr.draw.AddPoi.call(this)},properties:{_map:{check:"arskom.ui.Map"},_domain_name:{check:"String"},_wsc:{check:"soap.ClientCollection"}},events:{close:"qx.event.type.Data",save:"qx.event.type.Data"},members:{reset:function(){this.edt_name.resetValue()},create_btn_save:function(){var a=atr.draw.AddPoi.prototype.create_btn_save.call(this);a.addListener("execute",this.on_poi_btn_save_execute,this);
return a},create_btn_close:function(){var a=atr.draw.AddPoi.prototype.create_btn_close.call(this);a.addListener("execute",this.on_poi_btn_close_execute,this);return a},on_poi_btn_close_execute:function(){this.clear_map();this.fireDataEvent("close",null)},clear_map:function(){var a=this.get_map();a.clean_layers(["icon","line","geofence","poi"]);a.deactivate_point()},on_poi_btn_save_execute:function(){var a=this,b=this.get_map(),c=b.get_layer("poi");if(c.features.length==0)alert(this.tr("No POI was marked!")+
"\n"+this.tr("You should mark a point of interest on the map before clicking 'Save' button.")+"\n\n\n ("+this.tr("Tip")+":"+this.tr("You may use the top-right buttons on the map to mark a point of interest."));else{var c=c.features[0].geometry.toString(),d=this.get_wsc().c.cvs,e=d.get_object("track.core","Poi");e.set_type(a.cmb_type.getSelection()[0].getModel());e.set_name(a.edt_name.getValue());e.set_geom(c);d.easy(atr.proc.Poi.ADD,a.get_domain_name(),e,b.get_srid(),function(){a.btn_save.resetIcon();
a.fireDataEvent("save",null)})}}}})})();
(function(){qx.Class.define("atr.draw.AddGeofence",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_wnd())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,btn_clear:null,btn_close:null,btn_save:null,cmb_type:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_clear:function(){var a=this.btn_clear=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);a.setLabel(this.tr("Clear"));
a.setMargin(1);a.setMinWidth(70);a.setMinHeight(23);return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinWidth(70);a.setMinHeight(23);return a},create_btn_save:function(){var a=this.btn_save=new qx.ui.form.Button;a.setHeight(23);a.setWidth(70);a.setMaxHeight(23);a.setMaxWidth(70);a.setLabel(this.tr("Save"));a.setMargin(1);a.setMinWidth(70);a.setMinHeight(23);
return a},create_cmb_type:function(){var a=this.cmb_type=new qx.ui.form.SelectBox;a.setHeight(23);a.setWidth(150);a.setMaxHeight(23);a.setMaxWidth(150);a.setMargin(1);a.setMinWidth(150);a.setMinHeight(23);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("Service Region"),null,"1"));return a},create_edt_name:function(){var a=this.edt_name=new qx.ui.form.TextField;a.setHeight(23);a.setWidth(200);a.setMaxHeight(23);a.setMargin(1);a.setMinWidth(200);a.setMinHeight(23);a.setAllowGrowY(false);
return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_hsp1:function(){var a=this.hsp1=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(30);a.setMargin(1);return a},create_hsp2:function(){var a=this.hsp2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(30);a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Geo-fence name: "));a.setMargin(1);return a},create_wgt:function(){var a=this.wgt=new qx.ui.container.Composite(this.create_horizontalLayout());
a.setMargin(1);a.add(this.create_hsp1(),{flex:1});a.add(this.create_label(),{flex:1});a.add(this.create_edt_name(),{flex:3});a.add(this.create_cmb_type(),{flex:1});a.add(this.create_btn_save(),{flex:1});a.add(this.create_btn_clear(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_hsp2(),{flex:1});return a},create_wnd:function(){var a=this.wnd=new qx.ui.container.Composite(this.create___lv());a.setHeight(48);a.setWidth(742);a.setMargin(1);a.add(this.create_wgt(),{flex:1});return a},
edt_name:null,horizontalLayout:null,hsp1:null,hsp2:null,label:null,wgt:null,wnd:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.AddGeofence",{extend:atr.draw.AddGeofence,type:"singleton",construct:function(){atr.draw.AddGeofence.call(this)},properties:{_map:{check:"arskom.ui.Map"},_domain_name:{check:"String"},_wsc:{check:"soap.ClientCollection"}},events:{save:"qx.event.type.Data",close:"qx.event.type.Data"},members:{reset:function(){this.edt_name.resetValue()},create_btn_save:function(){var a=atr.draw.AddGeofence.prototype.create_btn_save.call(this);a.addListener("execute",this.on_geofence_btn_save_execute,
this);return a},create_btn_close:function(){var a=atr.draw.AddGeofence.prototype.create_btn_close.call(this);a.addListener("execute",this.on_geofence_btn_close_execute,this);return a},create_btn_clear:function(){var a=atr.draw.AddGeofence.prototype.create_btn_clear.call(this);a.addListener("execute",this.on_geofence_btn_clear_execute,this);return a},on_geofence_btn_close_execute:function(){var a=this.get_map();a.clean_layers(["geofence"]);a.deactivate_polygon();this.fireDataEvent("close",null)},on_geofence_btn_clear_execute:function(){var a=
this.get_map();a.clean_layers(["geofence"]);a.deactivate_polygon();a.activate_polygon()},on_geofence_btn_save_execute:function(){var a=this,b=this.get_map(),c=b.get_layer("geofence"),d=c.features.length;if(d==0)alert(this.tr("No Geo-Fence was marked!")+"\n"+this.tr("You should mark a Geo-Fence on the map before clicking 'Save' button")+"\n\n\n ("+this.tr("Tip")+":"+this.tr("You may use the top-right buttons on the map to mark Geo-Fences"));else{for(var e,f=[],g=0;g<d;g++)e=c.features[g].geometry,
f.push(e);c=(new OpenLayers.Geometry.MultiPolygon(f)).toString();d=this.get_wsc().c.cvs;e=d.get_object("track.core","Geofence");e.set_type(parseInt(a.cmb_type.getSelection()[0].getModel()));e.set_name(a.edt_name.getValue());e.set_geom(c);d.easy(atr.proc.Geofence.ADD,a.get_domain_name(),e,b.get_srid(),function(){a.btn_save.resetIcon();a.fireDataEvent("save",null)})}}}})})();
(function(){qx.Class.define("atr.draw.activity_archive.ArchiveQuery",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_ArchiveQuery())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{ArchiveQuery:null,__ow:null,bottom_bar:null,btn_close:null,btn_on_map:null,btn_on_table:null,centralwidget:null,cmb_entity:null,cmb_event:null,comp_fleet_vehicle:null,comp_fleet_vehicle_il:null,create_ArchiveQuery:function(){var a=this.ArchiveQuery=new qx.ui.container.Composite(this.create___lv());
a.setHeight(515);a.setWidth(350);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_bottom_bar:function(){var a=this.bottom_bar=new qx.ui.container.Composite(this.create_horizontalLayout());a.setHeight(25);a.setMaxHeight(41);a.setMargin(1);a.setMinHeight(25);a.add(this.create_btn_on_table(),{flex:1});a.add(this.create_btn_on_map(),{flex:1});a.add(this.create_btn_close(),{flex:1});a.add(this.create_horizontalSpacer_2(),
{flex:1});return a},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(22);return a},create_btn_on_map:function(){var a=this.btn_on_map=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("On Map"));a.setMargin(1);a.setMinHeight(22);return a},create_btn_on_table:function(){var a=this.btn_on_table=new qx.ui.form.Button;a.setHeight(22);
a.setMaxHeight(22);a.setMaxWidth(90);a.setLabel(this.tr("On Table"));a.setMargin(1);a.setMinHeight(22);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_grp1(),{flex:1});a.add(this.create_bottom_bar(),{flex:1});return a},create_cmb_entity:function(){var a=this.cmb_entity=new qx.ui.form.SelectBox;a.setWidth(200);a.setMaxHeight(22);a.setMargin(1);a.setMinWidth(200);a.add(new qx.ui.form.ListItem(this.tr("Vehicle"),
null,null));a.add(new qx.ui.form.ListItem(this.tr("Geo-Fence"),null,null));return a},create_cmb_event:function(){var a=this.cmb_event=new qx.ui.form.SelectBox;a.setMargin(1);a.setAllowGrowY(false);a.add(new qx.ui.form.ListItem(this.tr("All"),null,null));a.add(new qx.ui.form.ListItem(this.tr("Positions"),null,"t"));a.add(new qx.ui.form.ListItem(this.tr("Soft Geofence Entry"),null,"sgen"));a.add(new qx.ui.form.ListItem(this.tr("Soft Geofence Exit"),null,"sgex"));a.add(new qx.ui.form.ListItem(this.tr("Start Moving"),
null,"stam"));a.add(new qx.ui.form.ListItem(this.tr("Stop Moving"),null,"stom"));a.add(new qx.ui.form.ListItem(this.tr("Start Device"),null,"Stad"));a.add(new qx.ui.form.ListItem(this.tr("Stop Device"),null,"stod"));a.add(new qx.ui.form.ListItem(this.tr("Start Engine"),null,"stae"));a.add(new qx.ui.form.ListItem(this.tr("Stop Engine"),null,"stoe"));return a},create_comp_fleet_vehicle:function(){var a=this.comp_fleet_vehicle=new atr.comp.impl.FleetVehicleComposite(this.create_comp_fleet_vehicle_il());
a.setMargin(1);return a},create_comp_fleet_vehicle_il:function(){return this.comp_fleet_vehicle_il=new qx.ui.layout.Canvas},create_det_end:function(){var a=this.det_end=new qx.ui.form.DateField;a.setWidth(200);a.setMaxHeight(22);a.setMargin(1);a.setMinWidth(200);return a},create_det_start:function(){var a=this.det_start=new qx.ui.form.DateField;a.setWidth(200);a.setMaxHeight(22);a.setMargin(1);a.setMinWidth(200);return a},create_gridLayout_2:function(){return this.gridLayout_2=new qx.ui.layout.Grid},
create_grp1:function(){var a=this.grp1=new qx.ui.groupbox.GroupBox;a.setLegend(this.tr(""));a.setMargin(1);a.setLayout(this.create_verticalLayout_4());a.add(this.create_widget(),{flex:1});a.add(this.create_tabWidget(),{flex:1});return a},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},create_horizontalSpacer_2:function(){var a=this.horizontalSpacer_2=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(40);a.setMargin(1);return a},create_label:function(){var a=this.label=
new qx.ui.basic.Label;a.setWidth(100);a.setMaxHeight(22);a.setMaxWidth(100);a.setValue(this.tr("Start Date: "));a.setMargin(1);a.setMinWidth(100);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setWidth(100);a.setMaxHeight(22);a.setMaxWidth(100);a.setValue(this.tr("End Date: "));a.setMargin(1);a.setMinWidth(100);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setWidth(100);a.setMaxHeight(22);a.setMaxWidth(100);a.setValue(this.tr("Event: "));
a.setMargin(1);a.setMinWidth(100);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;a.setWidth(100);a.setMaxHeight(22);a.setMaxWidth(100);a.setValue(this.tr("Entity: "));a.setMargin(1);a.setMinWidth(100);return a},create_tabWidget:function(){var a=this.tabWidget=new qx.ui.tabview.TabView;a.setMargin(1);a.add(this.create_tab_vehicles());a.add(this.create_tab_geofences());return a},create_tab_geofences:function(){var a=this.tab_geofences=new qx.ui.tabview.Page;a.setLabel(this.tr("Geofences"));
a.setMargin(1);a.setLayout(this.create_verticalLayout_3());a.add(this.create_tbl_geofence(),{flex:1});return a},create_tab_vehicles:function(){var a=this.tab_vehicles=new qx.ui.tabview.Page;a.setLabel(this.tr("Vehicles"));a.setMargin(1);a.setLayout(this.create_verticalLayout_2());a.add(this.create_comp_fleet_vehicle(),{flex:1});return a},create_tbl_geofence:function(){var a=this.tbl_geofence=new atr.comp.GeofenceTable;a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=
new qx.ui.layout.VBox},create_verticalLayout_2:function(){return this.verticalLayout_2=new qx.ui.layout.VBox},create_verticalLayout_3:function(){return this.verticalLayout_3=new qx.ui.layout.VBox},create_verticalLayout_4:function(){return this.verticalLayout_4=new qx.ui.layout.VBox},create_widget:function(){var a=this.widget=new qx.ui.container.Composite(this.create_gridLayout_2());a.setHeight(100);a.setMaxHeight(100);a.setMargin(1);a.setMinHeight(100);a.add(this.create_label(),{column:0,row:0});
a.add(this.create_det_start(),{column:1,row:0});a.add(this.create_label_2(),{column:0,row:1});a.add(this.create_det_end(),{column:1,row:1});a.add(this.create_label_4(),{column:0,row:2});a.add(this.create_cmb_entity(),{column:1,row:2});a.add(this.create_label_3(),{column:0,row:3});a.add(this.create_cmb_event(),{column:1,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,1);b.setColumnFlex(0,1);b.setColumnFlex(1,0);return a},det_end:null,det_start:null,
gridLayout_2:null,grp1:null,horizontalLayout:null,horizontalSpacer_2:null,label:null,label_2:null,label_3:null,label_4:null,tabWidget:null,tab_geofences:null,tab_vehicles:null,tbl_geofence:null,verticalLayout:null,verticalLayout_2:null,verticalLayout_3:null,verticalLayout_4:null,widget:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.activity_archive.ArchiveQuery",{extend:atr.draw.activity_archive.ArchiveQuery,properties:{window:{check:"qx.ui.window.Window"},_domain_name:{check:"String",apply:"apply_domain_name"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_map:{check:"arskom.ui.Map",apply:"apply_map",init:null,nullable:true}},construct:function(){atr.draw.activity_archive.ArchiveQuery.call(this);var a=new qx.ui.window.Window("Archive","");a.set({width:450,height:550,layout:new qx.ui.layout.VBox(10),
modal:true,showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(false,false,false,false);this.setWindow(a);this.getWidget().addListener("appear",this.on_appear,this);arskom.misc.replace_pages(this.tabWidget,[this.tab_vehicles])},events:{show_on_table:"qx.event.type.Data",show_on_map:"qx.event.type.Data"},members:{selection:"Vehicle",apply_domain_name:function(a){this.tbl_geofence.set_domain_name(a);this.comp_fleet_vehicle.set_domain_name(a)},
apply_wsc:function(a){this.tbl_geofence.set_wsc(a);this.comp_fleet_vehicle.set_wsc(this.get_wsc(a))},apply_map:function(a){this.tbl_geofence.set_map(a)},create_comp_fleet_vehicle:function(){var a=this.comp_fleet_vehicle=new atr.comp.impl.FleetVehicleComposite(this.create_comp_fleet_vehicle_il(),atr.comp.ActivityVehicleTable);a.setMargin(1);a.cmb_fleet.set_must_select(false);a.set_allow_add_del_vehicle(false);a.set_allow_edit_vehicle(false);a.set_allow_view_rule(false);a.set_tbl_selection_mode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE);
return a},create_tbl_geofence:function(){var a=atr.draw.activity_archive.ArchiveQuery.prototype.create_tbl_geofence.call(this);a.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.MULTIPLE_INTERVAL_SELECTION_TOGGLE);return a},create_btn_close:function(){var a=atr.draw.activity_archive.ArchiveQuery.prototype.create_btn_close.call(this);a.addListener("execute",this.on_btn_close_execute,this);return a},create_btn_on_table:function(){var a=atr.draw.activity_archive.ArchiveQuery.prototype.create_btn_on_table.call(this);
a.addListener("execute",this.on_btn_on_table_execute,this);return a},create_btn_on_map:function(){var a=atr.draw.activity_archive.ArchiveQuery.prototype.create_btn_on_map.call(this);a.addListener("execute",this.on_btn_on_map_execute,this);a.setVisibility("excluded");return a},create_cmb_entity:function(){var a=atr.draw.activity_archive.ArchiveQuery.prototype.create_cmb_entity.call(this);a.addListener("changeSelection",this.on_cmb_entity_change_selection,this);return a},on_cmb_entity_change_selection:function(){this.selection=
this.cmb_entity.getSelection()[0].getLabel().valueOf();this.selection=="Geo-Fence"?(this.tbl_geofence.refresh(),arskom.misc.replace_pages(this.tabWidget,[this.tab_geofences]),this.tabWidget.setSelection([this.tab_geofences])):(this.comp_fleet_vehicle.refresh_fleet(),arskom.misc.replace_pages(this.tabWidget,[this.tab_vehicles]),this.tabWidget.setSelection([this.tab_vehicles]))},on_appear:function(){this.refresh_table()},refresh_table:function(){this.tabWidget.getSelection()[0].getLabel().valueOf()==
"Vehicles"?this.comp_fleet_vehicle.refresh_fleet():this.tbl_geofence.refresh()},get_geofence_selection:function(){var a=[],b=this;this.tbl_geofence.getSelectionModel().iterateSelection(function(c){a.push(b.tbl_geofence.getTableModel().getValueById("id",c))});return a},make_archive_q:function(){var a=[],b=[],c=null;if(this.selection=="Vehicle"){if(a=this.comp_fleet_vehicle.get_vehicle_selection(),b=this.comp_fleet_vehicle.get_vehicle_fleet_selection(),a.length==0){alert("No Vehicles Selected!");return}}else if(c=
this.get_geofence_selection(),c.length==0){alert("No Geofences Selected!");return}var d=[],e=this.cmb_event.getSelection()[0].getModel(),d=e==null?null:e=="sgen"||e=="sgex"?["sgen","sgex"]:[e],f=this.get_wsc().c.report,e=[f.get_object("track.report.tracker","ExtraDataQuery")];e[0].set_names(d);e[0].set_geofence_ids(c);c=f.get_object("track.report.tracker","ActivityQuery");d=this.det_start.getValue();d!=null&&c.set_start(d);d=this.det_end.getValue();d!=null&&c.set_end(new Date(d.getTime()+864E5));
c.set_vehicles(a);c.set_fleets(b);a=[];a.push(atr.proc.Event.ET_INCOMING_MESSAGE);a.push(atr.proc.Event.ET_OUTGOING_MESSAGE);a.push(atr.proc.Event.ET_POSITION);c.set_event_types(a);c.set_extra_data(e);return c},on_btn_on_table_execute:function(){this.fireDataEvent("show_on_table",this.make_archive_q());this.getWindow().close()},on_btn_on_map_execute:function(){this.fireDataEvent("show_on_map",this.make_archive_q());this.getWindow().close()},on_btn_close_execute:function(){this.getWindow().close()},
reset:function(){this.det_start.resetValue();this.det_end.resetValue()},get_default_view:function(){atr.draw.activity_archive.ArchiveQuery.prototype.get_default_view.call(this);this.comp_fleet_vehicle.tbl_vehicle.getTableColumnModel().setColumnVisible(5,false)}}})})();(function(){qx.Class.define("atr.comp.ActivityVehicleTable",{extend:atr.comp.VehicleTable,construct:function(a,b){atr.comp.VehicleTable.call(this,a,b)}})})();
(function(){qx.Class.define("atr.draw.activity_archive.Earth",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,centralwidget:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(218);a.setWidth(282);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=
new qx.ui.layout.VBox},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_verticalLayout());a.setMargin(1);a.add(this.create_wdt_earth(),{flex:1});return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_wdt_earth:function(){var a=this.wdt_earth=new qx.ui.container.Composite(this.create_wdt_earth_il());a.setMargin(1);return a},create_wdt_earth_il:function(){return this.wdt_earth_il=new qx.ui.layout.Canvas},
verticalLayout:null,wdt_earth:null,wdt_earth_il:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.activity_archive.Earth",{extend:atr.draw.activity_archive.Earth,properties:{window:{check:"qx.ui.window.Window"},_wsc:{check:"soap.ClientCollection",apply:"apply_wsc"},_earth:{check:"arskom.ui.earth.Earth",init:null,nullable:true},_domain_name:{check:"String",apply:"apply_domain_name"},_qo:{check:"Object",apply:"apply_qo"},_srid:{check:"Integer",init:4326},_archive_result:{check:"Object"}},construct:function(){atr.draw.activity_archive.Earth.call(this);var a=
new qx.ui.window.Window("Archive Earth","");a.set({width:800,height:600,layout:new qx.ui.layout.VBox(10),modal:true,showMinimize:false,showMaximize:true,useMoveFrame:true,useResizeFrame:true});a.add(this.getWidget(),{flex:1});a.setResizable(true,true,true,true);this.setWindow(a)},members:{apply_domain_name:function(){},apply_wsc:function(a){this.get_earth().set_wsc(a)},apply_qo:function(){},create_wdt_earth:function(){var a=atr.draw.activity_archive.Earth.prototype.create_wdt_earth.call(this),b=new arskom.ui.earth.Earth("archive_earth");
a.add(b.getWidget(),{edge:0});this.set_earth(b);return a},reset:function(){},refresh:function(){this.get_qo().set_fleets(null);var a=arskom.ui.impl.Login.s_user_prefs.get_time_zone();this.get_wsc().c.report.easy(atr.proc.report.kml.GET,this.get_domain_name(),this.get_qo(),this.get_srid(),a,function(a){alert(""+a)})},show:function(){this.getWindow().open()},close:function(){this.getWindow().close()}}})})();
(function(){qx.Class.define("arskom.ui.earth.Earth",{extend:qx.core.Object,properties:{widget:{check:"Object",init:null,nullable:true},_srid:{check:"Integer"},_map_type:{check:"String",init:null,nullable:true},_wsc:{check:"soap.ClientCollection"}},events:{init:"qx.event.DataEvent"},construct:function(){qx.core.Object.call(this);this.setWidget(new qx.ui.container.Composite(new qx.ui.layout.Canvas));this.earth=new qx.ui.embed.Html;this.getWidget().add(this.earth,{edge:0})},members:{earth:null,__ww:function(){var a=
this.getWidget().getChildren()[0].getContentElement();qx.bom.element.Attribute.set(a,"id",this.__id);qx.html.Element.flush()},__wx:function(){var a;a=this.getWidget().getChildren();a.length>0&&(a=a[0],this.getWidget().removeAll(),a.destroy());a=new qx.ui.core.Widget;this.getWidget().add(a,{edge:0});return a},show:function(){var a=this;this.earth.addListener("appear",function(){var b=new google.earth.createInstance(a.earth.getContentElement().getDomElement(),function(){},function(){}),c=new GGeoXml("http://example.com/phpmysql_kmlnl.kml");
b.addOverlay(c)},a)}}})})();(function(){qx.Mixin.define("qx.ui.core.MNativeOverflow",{properties:{overflowX:{check:["hidden","visible","scroll","auto"],nullable:true,apply:"_applyOverflowX"},overflowY:{check:["hidden","visible","scroll","auto"],nullable:true,apply:"_applyOverflowY"},overflow:{group:["overflowX","overflowY"]}},members:{_applyOverflowX:function(a){this.getContentElement().setStyle("overflowX",a)},_applyOverflowY:function(a){this.getContentElement().setStyle("overflowY",a)}}})})();
(function(){qx.Class.define("qx.ui.embed.Html",{extend:qx.ui.core.Widget,include:[qx.ui.core.MNativeOverflow],construct:function(a){qx.ui.core.Widget.call(this);a!=null&&this.setHtml(a)},properties:{html:{check:"String",apply:"_applyHtml",event:"changeHtml",nullable:true},cssClass:{check:"String",init:"",apply:"_applyCssClass"},selectable:{refine:true,init:true},focusable:{refine:true,init:true}},members:{getFocusElement:function(){return this.getContentElement()},_applyHtml:function(a){var b=this.getContentElement();
b.setAttribute("html",a||"");b.setStyles({padding:"0px",border:"none"})},_applyCssClass:function(a){this.getContentElement().setAttribute("class",a)},_applySelectable:function(a){qx.ui.core.Widget.prototype._applySelectable.call(this,a);qx.core.Environment.get("engine.name")=="webkit"&&this.getContainerElement().setStyle("userSelect",a?"text":"none")},_applyFont:function(a){a=a?qx.theme.manager.Font.getInstance().resolve(a).getStyles():qx.bom.Font.getDefaultStyles();this.getTextColor()!=null&&delete a.color;
this.getContentElement().setStyles(a)},_applyTextColor:function(a){a?this.getContentElement().setStyle("color",qx.theme.manager.Color.getInstance().resolve(a)):this.getContentElement().removeStyle("color")}}})})();(function(){qx.Class.define("atr.proc.report.kml",{type:"static",statics:{GET:"kml_query_position_archive"}})})();
(function(){qx.Class.define("atr.draw.activity_archive.ActivityArchiveList",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_win_activity_archive())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{__ow:null,btn_automation:null,btn_hide:null,btn_open_list:null,btn_refresh:null,btn_start:null,centralwidget:null,create___lv:function(){return this.__ow=new qx.ui.layout.VBox},create_btn_automation:function(){var a=this.btn_automation=new qx.ui.form.Button;
a.setLabel(this.tr("Auto / Man"));a.setMargin(1);return a},create_btn_hide:function(){var a=this.btn_hide=new qx.ui.form.Button;a.setLabel(this.tr("Hide"));a.setMargin(1);return a},create_btn_open_list:function(){var a=this.btn_open_list=new qx.ui.form.Button;a.setLabel(this.tr("Open like Window"));a.setMargin(1);return a},create_btn_refresh:function(){var a=this.btn_refresh=new qx.ui.form.Button;a.setLabel(this.tr("Refresh Map"));a.setMargin(1);return a},create_btn_start:function(){var a=this.btn_start=
new qx.ui.form.Button;a.setLabel(this.tr("Start / Stop"));a.setMargin(1);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_gridLayout());a.setMargin(1);a.add(this.create_wgt_list(),{column:0,row:0,rowSpan:2});a.add(this.create_wgt_buttons(),{column:1,row:0});a.add(this.create_vspace(),{column:1,row:1});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);return a},create_gridLayout:function(){return this.gridLayout=
new qx.ui.layout.Grid},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_vspace:function(){var a=this.vspace=new qx.ui.core.Spacer;a.setHeight(57);a.setWidth(147);a.setMargin(1);return a},create_wgt_buttons:function(){var a=this.wgt_buttons=new qx.ui.container.Composite(this.create_verticalLayout());a.setWidth(150);a.setMaxWidth(150);a.setMargin(1);a.setMinWidth(150);a.add(this.create_btn_start(),{flex:1});a.add(this.create_btn_refresh(),{flex:1});a.add(this.create_btn_automation(),
{flex:1});a.add(this.create_btn_open_list(),{flex:1});a.add(this.create_btn_hide(),{flex:1});return a},create_wgt_list:function(){var a=this.wgt_list=new qx.ui.container.Composite(this.create_wgt_list_il());a.setMargin(1);return a},create_wgt_list_il:function(){return this.wgt_list_il=new qx.ui.layout.Canvas},create_win_activity_archive:function(){var a=this.win_activity_archive=new qx.ui.container.Composite(this.create___lv());a.setHeight(200);a.setWidth(400);a.setMargin(1);a.setMinWidth(400);a.setMinHeight(200);
a.add(this.create_centralwidget(),{flex:1});return a},gridLayout:null,verticalLayout:null,vspace:null,wgt_buttons:null,wgt_list:null,wgt_list_il:null,win_activity_archive:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.activity_archive.ActivityArchiveList",{extend:atr.draw.activity_archive.ActivityArchiveList,construct:function(){atr.draw.activity_archive.ActivityArchiveList.call(this)},properties:{_table:{check:"atr.comp.ArchiveQueryResultTable",init:null,apply:"apply_table"}},events:{hide:"qx.event.type.Data",undock:"qx.event.type.Data"},members:{apply_table:function(a){this.wgt_list.add(a,{edge:1})},create_btn_start:function(){var a=atr.draw.activity_archive.ActivityArchiveList.prototype.create_btn_start.call(this);
a.addListener("execute",this.on_btn_hide_execute,this);a.setVisibility("excluded");return a},create_btn_hide:function(){var a=atr.draw.activity_archive.ActivityArchiveList.prototype.create_btn_hide.call(this);a.addListener("execute",this.on_btn_hide_execute,this);return a},create_btn_automation:function(){var a=atr.draw.activity_archive.ActivityArchiveList.prototype.create_btn_automation.call(this);a.addListener("execute",this.on_btn_automation_execute,this);a.setLabel("Map refresh: Auto");a.setVisibility("excluded");
return a},create_btn_refresh:function(){var a=atr.draw.activity_archive.ActivityArchiveList.prototype.create_btn_refresh.call(this);a.addListener("execute",this.on_btn_refresh_execute,this);return a},create_btn_open_list:function(){var a=atr.draw.activity_archive.ActivityArchiveList.prototype.create_btn_open_list.call(this);a.addListener("execute",this.btn_open_list_execute,this);return a},btn_open_list_execute:function(){this.wgt_list.removeAll();this.fireDataEvent("undock",null)},on_btn_refresh_execute:function(){this.get_table().refresh()},
on_btn_automation_execute:function(){this.get_table.get_update_map()==atr.proc.Vehicle.NO_UPDATE_MAP?(this.btn_automation.setLabel(this.tr("Map refresh: Auto")),this.table.set_update_map(atr.proc.Vehicle.UPDATE_AND_CENTER_MAP)):this.table.get_update_map()==atr.proc.Vehicle.UPDATE_AND_CENTER_MAP&&(this.btn_automation.setLabel(this.tr("Map refresh: Manual")),this.table.set_update_map(atr.proc.Vehicle.NO_UPDATE_MAP))},on_btn_hide_execute:function(){this.fireDataEvent("hide",null)}}})})();
(function(){qx.Class.define("arskom.ui.impl.LogList",{extend:arskom.ui.impl.DataDisplay,construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id");this.btn_add_toolbar.setVisibility("excluded");this.btn_edt_toolbar.setVisibility("excluded");this.btn_del_toolbar.setVisibility("excluded");this.btn_details_toolbar.setVisibility("excluded");this.btn_close_toolbar.setVisibility("excluded");this.set_show_filters(false)},members:{create_table:function(){var a=this.table=new arskom.ui.comp.LogTable(null);
a.setMargin(1);return a},pop_add_dialog:function(){},pop_edt_dialog:function(){},pop_del_dialog:function(){},pop_details_dialog:function(){},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Logging"),"","").open();this.refresh()}}})})();
(function(){qx.Class.define("arskom.ui.comp.LogTable",{extend:arskom.ui.Table,properties:{_filter_ops:{check:"Array",init:null,nullable:true}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("Domain"),this.tr("User"),this.tr("Daemon"),this.tr("Method"),this.tr("Date"),this.tr("Data"),this.tr("Error Type"),this.tr("Error Data"),this.tr("Read Only")]);this.set_fields("dom,usr,dn,mn,t,d,et,ed,ro".split(","));this.setDataRowRenderer(new arskom.ui.comp.RowRenderer(this))},
members:{refresh:function(){arskom.ui.Table.prototype.refresh.call(this);var a=this.get_wsc().c.log,b=new soap.Parameters,a=new soap.RemoteImpl(a,"get_all_log_count","get_all_log",b);a.setColumns(this.get_titles(),this.get_fields());this.setTableModel(a)},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);var a=this.getTableColumnModel();a.setDataCellRenderer(4,arskom.misc.get_date_cellrenderer());a.setDataCellRenderer(5,new qx.ui.table.cellrenderer.Html);a.setDataCellRenderer(8,
new qx.ui.table.cellrenderer.Boolean)}}})})();(function(){qx.Class.define("arskom.ui.comp.RowRenderer",{extend:qx.ui.table.rowrenderer.Default,members:{createRowStyle:function(a){for(var b=qx.ui.table.rowrenderer.Default.prototype.createRowStyle.call(this,a).split(";"),c=0;c<=b.length;c++)b[c]!=null&&b[c].indexOf("background-color")==0&&a.rowData!=null&&(b[c]=a.rowData.error_type==0?"background-color: #7fff7f":a.rowData.error_type==1?"background-color: yellow":"background-color: #ff7f7f");return b.join(";")}}})})();
(function(){qx.Class.define("arskom.ui.Map",{extend:qx.core.Object,properties:{widget:{check:"Object",init:null,nullable:true},_srid:{check:"Integer"},_map_type:{check:"String",init:null,nullable:true},_wsc:{check:"soap.ClientCollection"},_kvs_cache:{check:"arskom.KvsCache"},_kvs_id:{check:"Integer",init:null,nullable:true}},events:{init:"qx.event.DataEvent",change_base_layer:"qx.event.DataEvent"},construct:function(a){qx.core.Object.call(this);this.set_kvs_cache(arskom.KvsCache.getInstance());this.__wy=
"png";this.__cq=a;if(!this.__cq)this.__cq="default_map_id";this.setWidget(new qx.ui.container.Composite(new qx.ui.layout.Canvas));this.__wz={};var b=this;this.__wA={eventListeners:{changebaselayer:function(a){if(!b.__wB){var c=qx.xml.Document.create(),f=soap.Client.createSubElementNS(c,c,"settings","arskom.ui.Map"),g=soap.Client.createSubElementNS(c,f,"base_layer","arskom.ui.Map"),h=a.layer.CLASS_NAME;a.layer.type&&(h+="."+a.layer.type);g.appendChild(c.createTextNode(h));a=b.get_wsc().c.kvs.get_object("arskom2.kvs.core",
"KvsValue");a.set_key(b.get_key());a.set_value(f);b.get_kvs_cache().set_entities([a],function(){qx.log.Logger.debug("kvs save: got a 500 from the server")})}}},controls:[new OpenLayers.Control.Navigation,new OpenLayers.Control.PanZoomBar,new OpenLayers.Control.ScaleLine],displayProjection:new OpenLayers.Projection("EPSG:4326"),units:"m"};a={};a[b.get_key()]=true;var c=this.get_kvs_cache();c.get_entities(a,function(a){if(a.length>0&&a[0]!=null&&(a=c.query_cache(a[0])))a=qx.xml.Element.getElementsByTagNameNS(a.get_value(),
"arskom.ui.Map","base_layer"),a=a[0].textContent||a[0].nodeValue||a[0].innerText,b.__wB=true,b.__wE[a]&&b.map.setBaseLayer(b.__wE[a]),b.__wB=false})},statics:{NAMES:{poi:"Points of Interest",icon:"Icons",line:"Lines",geofence:"Geofences"}},members:{map:null,__cq:null,__wC:null,__wD:null,__wA:null,__wz:null,__wB:false,__wE:null,get_key:function(){var a=this.get_kvs_id();return a==null?this.classname:this.classname+"."+a.toString()},__wF:function(a){var b=arskom.ui.Map.NAMES[a];switch(a){case "icon":a=
new OpenLayers.Layer.Markers(b);break;case "line":case "geofence":case "poi":a=new OpenLayers.Layer.Vector(b);break;default:throw Error("invalid parameter. must be one of arskom.ui.Map.NAMES");}this.map.addLayer(a);return a},__wG:function(a){return this.map.getLayerIndex(this.__wF(a))},__wH:function(){this.__wC=new OpenLayers.Control.EditingToolbar(this.map.layers[this.__wz.geofence],{showPanSwitch:true,showPolygonSwitch:true});this.__wD=new OpenLayers.Control.EditingToolbar(this.map.layers[this.__wz.poi],
{showPanSwitch:true,showPointSwitch:true})},__wx:function(){var a;a=this.getWidget().getChildren();a.length>0&&(a=a[0],this.getWidget().removeAll(),a.destroy());a=new qx.ui.core.Widget;this.getWidget().add(a,{edge:0});return a},__wI:function(){this.__wH();this.map.addControl(new OpenLayers.Control.LayerSwitcher);this.map.addControl(new OpenLayers.Control.MousePosition({formatOutput:function(a){var b=[],c=arskom.ui.map.Segments.getInstance();b[0]=c.convert_dm(a.lat,"LAT");b[1]=" "+c.convert_dm(a.lon,
"LON");return b}}));this.map.getCenter()||this.map.zoomToMaxExtent();this.__wB=false},__ww:function(){var a=this.getWidget().getChildren()[0].getContentElement();qx.bom.element.Attribute.set(a,"id",this.__cq);qx.html.Element.flush()},__wJ:function(){this.__wz.geofence=this.__wG("geofence");this.__wz.poi=this.__wG("poi");this.__wz.line=this.__wG("line");this.__wz.icon=this.__wG("icon")},add_marker_with_baloon:function(a,b){!arskom.misc.is_na(b)&&!arskom.misc.is_na(a)&&(this.get_layer("icon").addMarker(a),
this.map.addPopup(b),a.events.register("click",a,function(){b.toggle()}),b.hide())},activate_polygon:function(){this.deactivate_point();this.__wH();this.get_layer("geofence").events.unregister("beforefeatureadded");this.map.addControl(this.__wC)},activate_point:function(){this.deactivate_polygon();this.__wH();this.map.addControl(this.__wD);this.get_layer("poi").events.register("beforefeatureadded",this.get_layer("poi"),function(){this.features.length===2&&this.removeFeatures(this.features[0])})},
clean_layers:function(a){if(this.map)for(var b,c=0,d=a.length;c<d;c++)(b=this.map.layers[this.__wz[a[c]]])&&b.destroy(),b=this.__wF(a[c]),this.map.setLayerIndex(b,this.__wz[a[c]])},deactivate_point:function(){this.map.removeControl(this.__wD);this.get_layer("poi").events.unregister("beforefeatureadded");this.restore_navigation()},deactivate_polygon:function(){this.map.removeControl(this.__wC);this.restore_navigation()},__wK:function(a,b){for(var c=0,d=a.length;c<d;c++){var e=new OpenLayers.Feature.Vector(a[c]);
this.get_layer(b).addFeatures(e)}},draw_geofences:function(a){this.__wK(a,"geofence")},draw_poi:function(a){this.__wK(a,"poi")},get_layer:function(a){return this.map.layers[this.__wz[a]]},init_yahoo:function(){var a=this;a.__wB=true;this.set_srid(900913);this.set_map_type("yahoo");this.__wx().addListener("appear",function(){a.__ww();this.__wA.projection=new OpenLayers.Projection("EPSG:900913");this.__wA.numZoomLevels=18;this.__wA.maxResolution=156543.0339;this.__wA.maxExtent=new OpenLayers.Bounds(-2.003750834E7,
-2.003750834E7,2.003750834E7,2.003750834E7);a.map=new OpenLayers.Map(a.__cq,this.__wA);var b=new OpenLayers.Layer.Yahoo("Yahoo Streets",{sphericalMercator:true});a.__wJ();a.map.addLayers([b]);a.__wI()},a)},init_google:function(){var a=this;a.__wB=true;this.set_srid(900913);this.set_map_type("google");this.__wx().addListener("appear",function(){a.__ww();this.__wA.projection=new OpenLayers.Projection("EPSG:900913");a.map=new OpenLayers.Map(a.__cq,this.__wA);a.__wJ();if(google&&google.maps){var b=new OpenLayers.Layer.Google("Google Streets",
{numZoomLevels:20,visibility:false}),c=new OpenLayers.Layer.Google("Google Satellite",{type:google.maps.MapTypeId.SATELLITE,numZoomLevels:22}),d=new OpenLayers.Layer.Google("Google Hybrid",{type:google.maps.MapTypeId.HYBRID,numZoomLevels:22,visibility:false}),e=new OpenLayers.Layer.Google("Google Physical",{type:google.maps.MapTypeId.TERRAIN,visibility:false});this.__wE={};this.__wE["OpenLayers.Layer.Google."+google.maps.MapTypeId.ROADMAP]=b;this.__wE["OpenLayers.Layer.Google."+google.maps.MapTypeId.SATELLITE]=
c;this.__wE["OpenLayers.Layer.Google."+google.maps.MapTypeId.HYBRID]=d;this.__wE["OpenLayers.Layer.Google."+google.maps.MapTypeId.TERRAIN]=e;a.map.addLayers([b,e,c,d])}a.__wI()},a)},init_maritime:function(){var a=this;this.set_srid(4326);this.set_map_type("custom_maritime");this.__wA.numZoomLevels=12;this.__wx().addListener("appear",function(){a.__ww();var b=new OpenLayers.Layer.TMS("Base Map","http://213.144.119.187/~plq/data/",{type:"png",getURL:function(b){var d=a.map.getResolution(),e=Math.round((b.left-
this.maxExtent.left)/(d*this.tileSize.w)),b=Math.round((this.maxExtent.top-b.top)/(d*this.tileSize.h)),d=a.map.getZoom(),f=Math.pow(2,d);return b<0||b>=f?OpenLayers.Util.getImagesLocation()+"404.png":this.url+d+"/"+(e%f+f)%f+"/"+b+"."+this.type},wrapDateLine:true,displayOutsideMaxExtent:true});a.map=new OpenLayers.Map(a.__cq,this.__wA);a.map.addLayer(b);a.__wJ();a.__wI();a.map.addControl(new OpenLayers.Control.LayerSwitcher);a.map.fallThrough=true},a)},restore_navigation:function(){for(var a=false,
b=0;b<this.map.controls.length;++b)this.map.controls[b]instanceof OpenLayers.Control.Navigation&&!a?(this.map.controls[b].activate(),a=true):this.map.controls[b].deactivate()},wkt_to_vector:function(a){return(new OpenLayers.Format.WKT).read(a).geometry},zoom_extent_by_layer:function(a){var b=null;this.map&&(b=this.map.layers[this.__wz[a]].getDataExtent(),b!=null&&this.map.zoomToExtent(b))}}})})();
(function(){qx.Class.define("atr.impl.message.List",{extend:arskom.ui.impl.DataDisplay,construct:function(){arskom.ui.impl.DataDisplay.call(this);this.set_pk_column_name("id");this.__wO();var a=[];a.push(atr.proc.Event.ET_INCOMING_PREDEFINED_MESSAGE);a.push(atr.proc.Event.ET_OUTGOING_PREDEFINED_MESSAGE);a.push(atr.proc.Event.ET_INCOMING_FREEFORM_MESSAGE);a.push(atr.proc.Event.ET_OUTGOING_FREEFORM_MESSAGE);this.set_event_types(a);this.detail.getWidget().setVisibility("excluded");this.getWidget().addListener("disappear",
this.__wL,this)},events:{close:"qx.event.type.Data"},properties:{_domain_name:{check:"String",apply:"apply_domain_name"},_event_types:{check:"Array",init:null,nullable:true,apply:"apply_event_types"},_start:{check:"Date",init:null,nullable:true,apply:"apply_start"},_end:{check:"Date",init:null,nullable:true,apply:"apply_end"}},members:{detail:null,apply_domain_name:function(a){this.table.set_domain_name(a)},apply_event_types:function(a){this.table.set_event_types(a)},apply_start:function(a){this.table.set_start(a)},
apply_end:function(a){this.table.set_end(a)},__wL:function(a){this.fireDataEvent("close",a)},create_table:function(){var a=this.table=new atr.comp.MessageTable;a.addListener("cellDblclick",this.__uv,this);a.addListener("keypress",this.__wM,this);a.setMargin(1);return a},__wM:function(a){a.getKeyIdentifier()=="Enter"&&this.__uv(a)},__uv:function(a){var b=a.getRow(),c=this.table.getTableModel(),a=c.getValueById("message_id",b),d=c.getValueById("message_read",b);this.set_detail_prameters(b);if(d!="read"){var d=
this.get_wsc().c.cvs,e=d.get_object("track.core","MessageRead");e.set_event_id(a);e.set_state(atr.proc.Message.READ);d.easy(atr.proc.Message.SET_MSG_STATE,e,function(a){a==1&&c.setValueById("message_read",b,"read")})}},create_centralwidget:function(){var a=arskom.ui.impl.DataDisplay.prototype.create_centralwidget.call(this);a.add(this.create_detail().getWidget(),{flex:1});return a},create_detail:function(){var a=this.detail=new atr.impl.message.Detail;a.addListener("btn_close",this.__wN,this);return a},
__wN:function(){this.detail.getWidget().setVisibility("excluded")},set_detail_prameters:function(a){this.detail.reset();this.detail.set_to_screen(this.table.getTableModel().getRowData(a));this.detail.getWidget().setVisibility("visible")},__wO:function(){this.btn_add_toolbar.setVisibility("excluded");this.btn_edt_toolbar.setVisibility("excluded");this.btn_del_toolbar.setVisibility("excluded");this.btn_details_toolbar.setVisibility("excluded")},reset:function(){this.table.getLayoutParent()!=this.wgt_table&&
this.wgt_table.add(this.table,{flex:1})},show:function(){this.get_window(this.tr("Corporation Messages"),"","").open()},refresh:function(){this.table.refresh()}}})})();
(function(){qx.Class.define("atr.comp.MessageTable",{extend:arskom.ui.Table,properties:{_domain_name:{check:"String"},_event_types:{check:"Array",init:null,nullable:true},_start:{check:"Date",init:null,nullable:true},_end:{check:"Date",init:null,nullable:true}},construct:function(a,b){arskom.ui.Table.call(this,a,b);this.set_titles([this.tr("Message ID"),this.tr("Read State"),this.tr("Domain Name"),this.tr("Fleet Name"),this.tr("Vehicle Name"),this.tr("Message Time"),this.tr("Message Type"),this.tr("Message")]);
this.set_fields("message_id,message_read,domain_name,fleet_name,vehicle_name,message_time,message_type,message".split(","));this.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION)},members:{filter_field:null,filter_op:null,filter_values:null,refresh:function(){var a=arskom.ui.Table.get_filter;arskom.ui.Table.prototype.refresh.call(this);var b=this.get_wsc().c.cvs,c=[];!arskom.misc.is_na(this.filter_field)&&!arskom.misc.is_na(this.filter_op)&&!arskom.misc.is_na(this.filter_values)&&
c.push(a(b,this.filter_field,this.filter_op,this.filter_values));var a=this.get_domain_name(),d=arskom.ui.impl.Login.s_user_prefs.get_time_zone(),e=new soap.Parameters;e.add("domain_name",a);e.add("time_zone",d);e.add("filters",c);b=new soap.RemoteImpl(b,atr.proc.Message.GET_ALL_COUNT,atr.proc.Message.GET_ALL,e,function(a){for(var b=0,c=a.length;b<c;++b)if(a[b]){a[b].message_type&&(a[b].message_type=atr.proc.Event.EVENT_TYPE[a[b].message_type]);a[b].message_read=a[b].message_read==null?'<table  width="100%" height="100%" bgcolor="#FF2400" ><tr  width="100%" height="100%" bgcolor="#FF2400" ><td  width="100%" height="100%" bgcolor="#FF2400" >unread</td></tr></table>':
"read";try{a[b].message=a[b].extra_data.childNodes[0].getElementsByTagName("msg")[0].childNodes[0].childNodes[0].data}catch(d){}}});b.setColumns(this.get_titles(),this.get_fields());this.setTableModel(b)},set_filter_ops:function(a,b,c){this.filter_field=a;this.filter_op=b;this.filter_values=arskom.misc.is_na(c)?null:[c];this.refresh()},get_default_view:function(){arskom.ui.Table.prototype.get_default_view.call(this);var a=this.getTableColumnModel();a.setColumnWidth(0,90);a.setColumnWidth(1,60);a.setColumnWidth(2,
90);a.setColumnWidth(3,90);a.setColumnWidth(4,90);a.setColumnWidth(5,90);a.setColumnWidth(6,90);a.setColumnWidth(7,90)},set_renderers:function(){arskom.ui.Table.prototype.set_renderers.call(this);var a=this.getTableColumnModel();a.setDataCellRenderer(1,new qx.ui.table.cellrenderer.Html);a.setDataCellRenderer(5,arskom.misc.get_date_cellrenderer())}}})})();
(function(){qx.Class.define("atr.draw.MessageDetail",{construct:function(){arskom.Object.call(this);this.setWidget(this.create_MainWindow())},destruct:function(){},extend:arskom.Object,include:[qx.locale.MTranslation],members:{MainWindow:null,__ow:null,btn_close:null,centralwidget:null,create_MainWindow:function(){var a=this.MainWindow=new qx.ui.container.Composite(this.create___lv());a.setHeight(146);a.setWidth(452);a.setMargin(1);a.add(this.create_centralwidget(),{flex:1});return a},create___lv:function(){return this.__ow=
new qx.ui.layout.VBox},create_btn_close:function(){var a=this.btn_close=new qx.ui.form.Button;a.setHeight(22);a.setMaxHeight(22);a.setMaxWidth(70);a.setLabel(this.tr("Close"));a.setMargin(1);a.setMinHeight(22);return a},create_centralwidget:function(){var a=this.centralwidget=new qx.ui.container.Composite(this.create_horizontalLayout());a.setMargin(1);a.add(this.create_widget(),{flex:1});a.add(this.create_widget_2(),{flex:1});return a},create_edt_msg:function(){var a=this.edt_msg=new qx.ui.form.TextField;
a.setMargin(1);return a},create_edt_msg_time:function(){var a=this.edt_msg_time=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_msg_type:function(){var a=this.edt_msg_type=new qx.ui.form.TextField;a.setMargin(1);return a},create_edt_vehicle_name:function(){var a=this.edt_vehicle_name=new qx.ui.form.TextField;a.setMargin(1);return a},create_gridLayout:function(){return this.gridLayout=new qx.ui.layout.Grid},create_horizontalLayout:function(){return this.horizontalLayout=new qx.ui.layout.HBox},
create_horizontalSpacer:function(){var a=this.horizontalSpacer=new qx.ui.core.Spacer;a.setHeight(20);a.setWidth(96);a.setMargin(1);return a},create_label:function(){var a=this.label=new qx.ui.basic.Label;a.setValue(this.tr("Vehicle Name: "));a.setMargin(1);return a},create_label_2:function(){var a=this.label_2=new qx.ui.basic.Label;a.setValue(this.tr("Message Time: "));a.setMargin(1);return a},create_label_3:function(){var a=this.label_3=new qx.ui.basic.Label;a.setValue(this.tr("Message Type: "));
a.setMargin(1);return a},create_label_4:function(){var a=this.label_4=new qx.ui.basic.Label;a.setValue(this.tr("Message: "));a.setMargin(1);return a},create_verticalLayout:function(){return this.verticalLayout=new qx.ui.layout.VBox},create_verticalSpacer:function(){var a=this.verticalSpacer=new qx.ui.core.Spacer;a.setHeight(40);a.setWidth(20);a.setMargin(1);return a},create_widget:function(){var a=this.widget=new qx.ui.container.Composite(this.create_gridLayout());a.setMargin(1);a.add(this.create_label(),
{column:0,row:0});a.add(this.create_edt_vehicle_name(),{column:1,row:0});a.add(this.create_label_2(),{column:0,row:1});a.add(this.create_edt_msg_time(),{column:1,row:1});a.add(this.create_horizontalSpacer(),{column:2,row:1,rowSpan:2});a.add(this.create_label_3(),{column:0,row:2});a.add(this.create_edt_msg_type(),{column:1,row:2});a.add(this.create_label_4(),{column:0,row:3});a.add(this.create_edt_msg(),{column:1,row:3});var b=a.getLayout();b.setRowFlex(0,1);b.setRowFlex(1,1);b.setRowFlex(2,1);b.setRowFlex(3,
1);b.setColumnFlex(0,1);b.setColumnFlex(1,1);b.setColumnFlex(2,1);return a},create_widget_2:function(){var a=this.widget_2=new qx.ui.container.Composite(this.create_verticalLayout());a.setMaxWidth(80);a.setMargin(1);a.add(this.create_verticalSpacer(),{flex:1});a.add(this.create_btn_close(),{flex:1});return a},edt_msg:null,edt_msg_time:null,edt_msg_type:null,edt_vehicle_name:null,gridLayout:null,horizontalLayout:null,horizontalSpacer:null,label:null,label_2:null,label_3:null,label_4:null,verticalLayout:null,
verticalSpacer:null,widget:null,widget_2:null},properties:{widget:{check:"qx.ui.container.Composite"}}})})();
(function(){qx.Class.define("atr.impl.message.Detail",{extend:atr.draw.MessageDetail,properties:{},events:{btn_close:"qx.event.type.Data"},construct:function(){atr.draw.MessageDetail.call(this);this.getWidget().setBackgroundColor("#8C9DE8");this.set_default()},members:{reset:function(){this.edt_vehicle_name.resetValue();this.edt_msg_time.resetValue();this.edt_msg_type.resetValue();this.edt_msg.resetValue()},set_default:function(){this.edt_vehicle_name.setReadOnly(true);this.edt_msg_time.setReadOnly(true);
this.edt_msg_type.setReadOnly(true);this.edt_msg.setReadOnly(true)},set_to_screen:function(a){var b=a.vehicle_name,c=a.message_time,d=a.message_type,a=a.extra_data.childNodes[0].getElementsByTagName("msg")[0].childNodes[0].childNodes[0].data;this.edt_vehicle_name.setValue(b);this.edt_msg_time.setValue(c.toString());this.edt_msg_type.setValue(d);this.edt_msg.setValue(a)},create_btn_close:function(){var a=atr.draw.MessageDetail.prototype.create_btn_close.call(this);a.addListener("execute",this.__wP,
this);return a},__wP:function(a){this.fireDataEvent("btn_close",a)}}})})();
(function(){qx.Theme.define("qx.theme.modern.Appearance",{appearances:{widget:{},root:{style:function(){return{backgroundColor:"background-application",textColor:"text-label",font:"default"}}},label:{style:function(a){return{textColor:a.disabled?"text-disabled":void 0}}},"move-frame":{style:function(){return{decorator:"main"}}},"resize-frame":"move-frame","dragdrop-cursor":{style:function(a){var b="nodrop";a.copy?b="copy":a.move?b="move":a.alias&&(b="alias");return{source:"decoration/cursors/"+b+
".gif",position:"right-top",offset:[2,16,2,6]}}},image:{style:function(a){return{opacity:!a.replacement&&a.disabled?0.3:1}}},atom:{},"atom/label":"label","atom/icon":"image",popup:{style:function(){var a=qx.core.Environment.get("css.boxshadow");return{decorator:a?"popup-css":"main",backgroundColor:"background-light",shadow:a?void 0:"shadow-popup"}}},"button-frame":{alias:"atom",style:function(a){var b,c,d=[3,9];a.checked&&a.focused&&!a.inner?(b="button-checked-focused",c=void 0,d=[1,7]):a.disabled?
(b="button-disabled",c=void 0):a.pressed?(b="button-pressed",c="text-hovered"):a.checked?(b="button-checked",c=void 0):a.hovered?(b="button-hovered",c="text-hovered"):a.focused&&!a.inner?(b="button-focused",c=void 0,d=[1,7]):(b="button",c=void 0);var e;qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.gradient.linear")?b+=a.invalid&&!a.disabled?"-invalid-css":"-css":(e=a.invalid&&!a.disabled?"button-invalid-shadow":void 0,d=[2,8]);return{decorator:b,textColor:c,shadow:e,padding:d,
margin:[1,0]}}},"button-frame/image":{style:function(a){return{opacity:!a.replacement&&a.disabled?0.5:1}}},button:{alias:"button-frame",include:"button-frame",style:function(){return{center:true}}},"hover-button":{alias:"atom",include:"atom",style:function(a){var b=a.hovered?"selected":void 0;b&&qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b,textColor:a.hovered?"text-selected":void 0}}},splitbutton:{},"splitbutton/button":"button","splitbutton/arrow":{alias:"button",
include:"button",style:function(a,b){return{icon:"decoration/arrows/down.png",padding:[b.padding[0],b.padding[1]-6],marginLeft:1}}},"form-renderer-label":{include:"label",style:function(){return{paddingTop:4}}},checkbox:{alias:"atom",style:function(a){var b=qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.boxshadow"),c;b?c=a.checked?"decoration/form/checked.png":a.undetermined?"decoration/form/undetermined.png":"qx/static/blank.gif":(a.checked?c=a.disabled?"checkbox-checked":
a.focused?"checkbox-checked-focused":a.pressed?"checkbox-checked-pressed":a.hovered?"checkbox-checked-hovered":"checkbox-checked":a.undetermined?c=a.disabled?"checkbox-undetermined":a.focused?"checkbox-undetermined-focused":a.hovered?"checkbox-undetermined-hovered":"checkbox-undetermined":a.disabled||(a.focused?c="checkbox-focused":a.pressed?c="checkbox-pressed":a.hovered&&(c="checkbox-hovered")),c="decoration/form/"+(c||"checkbox")+(a.invalid&&!a.disabled?"-invalid":"")+".png");return{icon:c,minWidth:b?
14:void 0,gap:b?8:6}}},"checkbox/icon":{style:function(a){if(!qx.core.Environment.get("css.gradient.linear")||!qx.core.Environment.get("css.boxshadow"))return{opacity:!a.replacement&&a.disabled?0.3:1};var b;b=a.disabled?"checkbox-disabled":a.focused?"checkbox-focused":a.hovered?"checkbox-hovered":"checkbox";b+=a.invalid&&!a.disabled?"-invalid":"";var c;a.undetermined&&(c=[2,0]);return{decorator:b,padding:c,width:12,height:10}}},radiobutton:{alias:"atom",style:function(a){var b=qx.core.Environment.get("css.borderradius")&&
qx.core.Environment.get("css.boxshadow"),c;b?c="qx/static/blank.gif":(c=a.checked&&a.focused?"radiobutton-checked-focused":a.checked&&a.disabled?"radiobutton-checked-disabled":a.checked&&a.hovered?"radiobutton-checked-hovered":a.checked?"radiobutton-checked":a.focused?"radiobutton-focused":a.hovered?"radiobutton-hovered":"radiobutton",c="decoration/form/"+c+(a.invalid&&!a.disabled?"-invalid":"")+".png");return{icon:c,gap:b?8:6}}},"radiobutton/icon":{style:function(a){if(!qx.core.Environment.get("css.borderradius")||
!qx.core.Environment.get("css.boxshadow"))return{opacity:!a.replacement&&a.disabled?0.3:1};var b;b=a.disabled&&!a.checked?"radiobutton-disabled":a.checked&&a.focused?"radiobutton-checked-focused":a.checked&&a.disabled?"radiobutton-checked-disabled":a.checked&&a.hovered?"radiobutton-checked-hovered":a.checked?"radiobutton-checked":a.focused?"radiobutton-focused":a.hovered?"radiobutton-hovered":"radiobutton";b+=a.invalid&&!a.disabled?"-invalid":"";return{decorator:b,width:12,height:10}}},textfield:{style:function(a){var b;
b=!!a.focused;var c=!!a.invalid,d=!!a.disabled;b=b&&c&&!d?"input-focused-invalid":b&&!c&&!d?"input-focused":d?"input-disabled":!b&&c&&!d?"border-invalid":"input";qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b,padding:[2,4,1],textColor:a.disabled?"text-disabled":a.showingPlaceholder?"text-placeholder":"text-input"}}},textarea:{include:"textfield",style:function(){return{padding:4}}},spinner:{style:function(a){var b;b=!!a.focused;var c=!!a.invalid,a=!!a.disabled;b=b&&
c&&!a?"input-focused-invalid":b&&!c&&!a?"input-focused":a?"input-disabled":!b&&c&&!a?"border-invalid":"input";qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b}}},"spinner/textfield":{style:function(a){return{marginRight:2,padding:[2,4,1],textColor:a.disabled?"text-disabled":"text-input"}}},"spinner/upbutton":{alias:"button-frame",include:"button-frame",style:function(a,b){return{icon:"decoration/arrows/up-small.png",padding:[b.padding[0]-1,b.padding[1]-5],shadow:void 0,
margin:0}}},"spinner/downbutton":{alias:"button-frame",include:"button-frame",style:function(a,b){return{icon:"decoration/arrows/down-small.png",padding:[b.padding[0]-1,b.padding[1]-5],shadow:void 0,margin:0}}},datefield:"combobox","datefield/button":{alias:"combobox/button",include:"combobox/button",style:function(){return{icon:"icon/16/apps/office-calendar.png",padding:[0,3],decorator:void 0}}},"datefield/textfield":"combobox/textfield","datefield/list":{alias:"datechooser",include:"datechooser",
style:function(){return{decorator:void 0}}},groupbox:{style:function(){return{legendPosition:"top"}}},"groupbox/legend":{alias:"atom",style:function(a){return{padding:[1,0,1,4],textColor:a.invalid?"invalid":"text-title",font:"bold"}}},"groupbox/frame":{style:function(){var a=qx.core.Environment.get("css.borderradius");return{padding:a?10:12,margin:a?1:void 0,decorator:a?"group-css":"group"}}},"check-groupbox":"groupbox","check-groupbox/legend":{alias:"checkbox",include:"checkbox",style:function(a){return{padding:[1,
0,1,4],textColor:a.invalid?"invalid":"text-title",font:"bold"}}},"radio-groupbox":"groupbox","radio-groupbox/legend":{alias:"radiobutton",include:"radiobutton",style:function(a){return{padding:[1,0,1,4],textColor:a.invalid?"invalid":"text-title",font:"bold"}}},scrollarea:{style:function(){return{minWidth:50,minHeight:50}}},"scrollarea/corner":{style:function(){return{backgroundColor:"background-application"}}},"scrollarea/pane":"widget","scrollarea/scrollbar-x":"scrollbar","scrollarea/scrollbar-y":"scrollbar",
scrollbar:{style:function(a){if(a["native"])return{};var b=qx.core.Environment.get("css.gradient.linear"),c=a.horizontal?"scrollbar-horizontal":"scrollbar-vertical";b&&(c+="-css");return{width:a.horizontal?void 0:16,height:a.horizontal?16:void 0,decorator:c,padding:1}}},"scrollbar/slider":{alias:"slider",style:function(a){return{padding:a.horizontal?[0,1,0,1]:[1,0,1,0]}}},"scrollbar/slider/knob":{include:"button-frame",style:function(a){var b=qx.core.Environment.get("css.gradient.linear"),c=a.horizontal?
"scrollbar-slider-horizontal":"scrollbar-slider-vertical";a.disabled&&(c+="-disabled");b&&(c+="-css");return{decorator:c,minHeight:a.horizontal?void 0:9,minWidth:a.horizontal?9:void 0,padding:void 0,margin:0}}},"scrollbar/button":{alias:"button-frame",include:"button-frame",style:function(a){var b="decoration/scrollbar/scrollbar-";b+=a.left?"left.png":a.right?"right.png":a.up?"up.png":"down.png";var c=qx.core.Environment.get("css.gradient.linear");return a.left||a.right?(a=a.left?3:4,{padding:c?[3,
0,3,a]:[2,0,2,a],icon:b,width:15,height:14,margin:0}):{padding:c?3:[3,2],icon:b,width:14,height:15,margin:0}}},"scrollbar/button-begin":"scrollbar/button","scrollbar/button-end":"scrollbar/button",slider:{style:function(a){var b;b=!!a.focused;var c=!!a.invalid,a=!!a.disabled;b=b&&c&&!a?"input-focused-invalid":b&&!c&&!a?"input-focused":a?"input-disabled":!b&&c&&!a?"border-invalid":"input";qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b}}},"slider/knob":{include:"button-frame",
style:function(a){return{decorator:a.disabled?"scrollbar-slider-horizontal-disabled":"scrollbar-slider-horizontal",shadow:void 0,height:14,width:14,padding:0}}},list:{alias:"scrollarea",style:function(a){var b;b=!!a.focused;var c=!!a.invalid,a=!!a.disabled;b=b&&c&&!a?"input-focused-invalid":b&&!c&&!a?"input-focused":a?"input-disabled":!b&&c&&!a?"border-invalid":"input";qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{backgroundColor:"background-light",decorator:b}}},"list/pane":"widget",
listitem:{alias:"atom",style:function(a){var b;a.dragover?b=a.selected?"selected-dragover":"dragover":(b=a.selected?"selected":void 0)&&qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{padding:a.dragover?[4,4,2,4]:4,textColor:a.selected?"text-selected":void 0,decorator:b}}},slidebar:{},"slidebar/scrollpane":{},"slidebar/content":{},"slidebar/button-forward":{alias:"button-frame",include:"button-frame",style:function(a){return{padding:5,center:true,icon:a.vertical?"decoration/arrows/down.png":
"decoration/arrows/right.png"}}},"slidebar/button-backward":{alias:"button-frame",include:"button-frame",style:function(a){return{padding:5,center:true,icon:a.vertical?"decoration/arrows/up.png":"decoration/arrows/left.png"}}},tabview:{style:function(){return{contentPadding:16}}},"tabview/bar":{alias:"slidebar",style:function(a){var b=qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.boxshadow")&&qx.core.Environment.get("css.gradient.linear"),b={marginBottom:a.barTop?-1:0,
marginTop:a.barBottom?b?-4:-7:0,marginLeft:a.barRight?b?-3:-5:0,marginRight:a.barLeft?-1:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};a.barTop||a.barBottom?(b.paddingLeft=5,b.paddingRight=7):(b.paddingTop=5,b.paddingBottom=7);return b}},"tabview/bar/button-forward":{include:"slidebar/button-forward",alias:"slidebar/button-forward",style:function(a){return a.barTop||a.barBottom?{marginTop:2,marginBottom:2}:{marginLeft:2,marginRight:2}}},"tabview/bar/button-backward":{include:"slidebar/button-backward",
alias:"slidebar/button-backward",style:function(a){return a.barTop||a.barBottom?{marginTop:2,marginBottom:2}:{marginLeft:2,marginRight:2}}},"tabview/bar/scrollpane":{},"tabview/pane":{style:function(a){return{decorator:qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.borderradius")?"tabview-pane-css":"tabview-pane",minHeight:100,marginBottom:a.barBottom?-1:0,marginTop:a.barTop?-1:0,marginLeft:a.barLeft?-1:0,marginRight:a.barRight?-1:0}}},"tabview-page":{alias:"widget",
include:"widget",style:function(){return{padding:qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.borderradius")?[4,3]:void 0}}},"tabview-page/button":{alias:"atom",style:function(a){var b,c=0,d=0,e=0,f=0,g=0,h=qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.boxshadow")&&qx.core.Environment.get("css.gradient.linear");a.checked?a.barTop?(b="tabview-page-button-top-active",c=h?[5,11]:[6,14],f=a.firstTab?0:-5,g=a.lastTab?0:-5):a.barBottom?(b="tabview-page-button-bottom-active",
c=h?[5,11]:[6,14],f=a.firstTab?0:-5,g=a.lastTab?0:-5,d=3):a.barRight?(b="tabview-page-button-right-active",c=h?[5,10]:[6,13],d=a.firstTab?0:-5,e=a.lastTab?0:-5,f=2):(b="tabview-page-button-left-active",c=h?[5,10]:[6,13],d=a.firstTab?0:-5,e=a.lastTab?0:-5):a.barTop?(b="tabview-page-button-top-inactive",c=h?[3,9]:[4,10],d=4,f=a.firstTab?5:1,g=1):a.barBottom?(b="tabview-page-button-bottom-inactive",c=h?[3,9]:[4,10],e=4,f=a.firstTab?5:1,g=1,d=3):a.barRight?(b="tabview-page-button-right-inactive",c=h?
[3,9]:[4,10],g=5,d=a.firstTab?5:1,e=1,f=3):(b="tabview-page-button-left-inactive",c=h?[3,9]:[4,10],f=5,d=a.firstTab?5:1,g=e=1);b&&h&&(b+="-css");return{zIndex:a.checked?10:5,decorator:b,padding:c,marginTop:d,marginBottom:e,marginLeft:f,marginRight:g,textColor:a.disabled?"text-disabled":a.checked?"text-active":"text-inactive"}}},"tabview-page/button/label":{alias:"label",style:function(a){return{padding:[0,1,0,1],margin:a.focused?0:1,decorator:a.focused?"keyboard-focus":void 0}}},"tabview-page/button/close-button":{alias:"atom",
style:function(){return{icon:"qx/icon/Tango/16/actions/window-close.png"}}},toolbar:{style:function(){return{decorator:qx.core.Environment.get("css.gradient.linear")?"toolbar-css":"toolbar",spacing:2}}},"toolbar/part":{style:function(){return{decorator:"toolbar-part",spacing:2}}},"toolbar/part/container":{style:function(){return{paddingLeft:2,paddingRight:2}}},"toolbar/part/handle":{style:function(){return{source:"decoration/toolbar/toolbar-handle-knob.gif",marginLeft:3,marginRight:3}}},"toolbar-button":{alias:"atom",
style:function(a){var b;a.pressed||a.checked&&!a.hovered||a.checked&&a.disabled?b="toolbar-button-checked":a.hovered&&!a.disabled&&(b="toolbar-button-hovered");qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.borderradius")&&b&&(b+="-css");return{marginTop:2,marginBottom:2,padding:(a.pressed||a.checked||a.hovered)&&!a.disabled||a.disabled&&a.checked?3:5,decorator:b}}},"toolbar-menubutton":{alias:"toolbar-button",include:"toolbar-button",style:function(){return{showArrow:true}}},
"toolbar-menubutton/arrow":{alias:"image",include:"image",style:function(){return{source:"decoration/arrows/down-small.png"}}},"toolbar-splitbutton":{style:function(){return{marginTop:2,marginBottom:2}}},"toolbar-splitbutton/button":{alias:"toolbar-button",include:"toolbar-button",style:function(){return{icon:"decoration/arrows/down.png",marginTop:void 0,marginBottom:void 0}}},"toolbar-splitbutton/arrow":{alias:"toolbar-button",include:"toolbar-button",style:function(a){return{padding:a.pressed||
a.checked||a.hovered&&!a.disabled?1:3,icon:"decoration/arrows/down.png",marginTop:void 0,marginBottom:void 0}}},"toolbar-separator":{style:function(){return{decorator:"toolbar-separator",margin:7}}},tree:"list","tree-item":{style:function(a){var b=a.selected?"selected":void 0;b&&qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{padding:[2,6],textColor:a.selected?"text-selected":void 0,decorator:b}}},"tree-item/icon":{include:"image",style:function(){return{paddingRight:5}}},"tree-item/label":"label",
"tree-item/open":{include:"image",style:function(a){return{padding:[0,5,0,2],source:a.selected&&a.opened?"decoration/tree/open-selected.png":a.selected&&!a.opened?"decoration/tree/closed-selected.png":a.opened?"decoration/tree/open.png":"decoration/tree/closed.png"}}},"tree-folder":{include:"tree-item",alias:"tree-item",style:function(a){var b;a.small?(a=a.opened?"icon/16/places/folder-open.png":"icon/16/places/folder.png",b="icon/16/places/folder-open.png"):a.large?(a=a.opened?"icon/32/places/folder-open.png":
"icon/32/places/folder.png",b="icon/32/places/folder-open.png"):(a=a.opened?"icon/22/places/folder-open.png":"icon/22/places/folder.png",b="icon/22/places/folder-open.png");return{icon:a,iconOpened:b}}},"tree-file":{include:"tree-item",alias:"tree-item",style:function(a){return{icon:a.small?"icon/16/mimetypes/office-document.png":a.large?"icon/32/mimetypes/office-document.png":"icon/22/mimetypes/office-document.png"}}},treevirtual:"table","treevirtual-folder":{style:function(a){return{icon:a.opened?
"icon/16/places/folder-open.png":"icon/16/places/folder.png"}}},"treevirtual-file":{include:"treevirtual-folder",alias:"treevirtual-folder",style:function(){return{icon:"icon/16/mimetypes/office-document.png"}}},"treevirtual-line":{style:function(){return{icon:"qx/static/blank.gif"}}},"treevirtual-contract":{style:function(){return{icon:"decoration/tree/open.png",paddingLeft:5,paddingTop:2}}},"treevirtual-expand":{style:function(){return{icon:"decoration/tree/closed.png",paddingLeft:5,paddingTop:2}}},
"treevirtual-only-contract":"treevirtual-contract","treevirtual-only-expand":"treevirtual-expand","treevirtual-start-contract":"treevirtual-contract","treevirtual-start-expand":"treevirtual-expand","treevirtual-end-contract":"treevirtual-contract","treevirtual-end-expand":"treevirtual-expand","treevirtual-cross-contract":"treevirtual-contract","treevirtual-cross-expand":"treevirtual-expand","treevirtual-end":{style:function(){return{icon:"qx/static/blank.gif"}}},"treevirtual-cross":{style:function(){return{icon:"qx/static/blank.gif"}}},
tooltip:{include:"popup",style:function(){return{backgroundColor:"background-tip",padding:[1,3,2,3],offset:[15,5,5,5]}}},"tooltip/atom":"atom","tooltip-error":{include:"tooltip",style:function(){var a=qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.boxshadow");return{textColor:"text-selected",backgroundColor:void 0,placeMethod:"widget",offset:[0,0,0,14],marginTop:-2,position:"right-top",showTimeout:100,hideTimeout:1E4,decorator:a?"tooltip-error-css":"tooltip-error",shadow:"tooltip-error-arrow",
font:"bold",padding:a?3:void 0}}},"tooltip-error/atom":"atom",window:{style:function(a){var b,c;qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.boxshadow")?b=a.showStatusbar?"window-incl-statusbar-css":"window-css":c="shadow-window";return{decorator:b,shadow:c,contentPadding:[10,10,10,10],margin:a.maximized?0:[0,5,5,0]}}},"window-resize-frame":{style:function(a){return{decorator:qx.core.Environment.get("css.borderradius")?a.showStatusbar?
"window-resize-frame-incl-statusbar-css":"window-resize-frame-css":"main"}}},"window/pane":{style:function(){return{decorator:qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.boxshadow")?"window-pane-css":"window"}}},"window/captionbar":{style:function(a){var b=qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.boxshadow"),c=a.active?"window-captionbar-active":
"window-captionbar-inactive";b&&(c+="-css");return{decorator:c,textColor:a.active?"window-caption-active-text":"text-gray",minHeight:26,paddingRight:2}}},"window/icon":{style:function(){return{margin:[5,0,3,6]}}},"window/title":{style:function(){return{alignY:"middle",font:"bold",marginLeft:6,marginRight:12}}},"window/minimize-button":{alias:"atom",style:function(a){return{icon:a.active?a.hovered?"decoration/window/minimize-active-hovered.png":"decoration/window/minimize-active.png":"decoration/window/minimize-inactive.png",
margin:[4,8,2,0]}}},"window/restore-button":{alias:"atom",style:function(a){return{icon:a.active?a.hovered?"decoration/window/restore-active-hovered.png":"decoration/window/restore-active.png":"decoration/window/restore-inactive.png",margin:[5,8,2,0]}}},"window/maximize-button":{alias:"atom",style:function(a){return{icon:a.active?a.hovered?"decoration/window/maximize-active-hovered.png":"decoration/window/maximize-active.png":"decoration/window/maximize-inactive.png",margin:[4,8,2,0]}}},"window/close-button":{alias:"atom",
style:function(a){return{icon:a.active?a.hovered?"decoration/window/close-active-hovered.png":"decoration/window/close-active.png":"decoration/window/close-inactive.png",margin:[4,8,2,0]}}},"window/statusbar":{style:function(){return{padding:[2,6],decorator:qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.boxshadow")?"window-statusbar-css":"window-statusbar",minHeight:18}}},"window/statusbar-text":{style:function(){return{font:"small"}}},
iframe:{style:function(){return{decorator:"main"}}},resizer:{style:function(){return{decorator:qx.core.Environment.get("css.boxshadow")&&qx.core.Environment.get("css.borderradius")&&qx.core.Environment.get("css.gradient.linear")?"pane-css":"pane"}}},splitpane:{style:function(){return{decorator:"splitpane"}}},"splitpane/splitter":{style:function(a){return{width:a.horizontal?3:void 0,height:a.vertical?3:void 0,backgroundColor:"background-splitpane"}}},"splitpane/splitter/knob":{style:function(a){return{source:a.horizontal?
"decoration/splitpane/knob-horizontal.png":"decoration/splitpane/knob-vertical.png"}}},"splitpane/slider":{style:function(a){return{width:a.horizontal?3:void 0,height:a.vertical?3:void 0,backgroundColor:"background-splitpane"}}},selectbox:"button-frame","selectbox/atom":"atom","selectbox/popup":"popup","selectbox/list":{alias:"list"},"selectbox/arrow":{include:"image",style:function(){return{source:"decoration/arrows/down.png",paddingLeft:5}}},datechooser:{style:function(a){var b;b=!!a.focused;var c=
!!a.invalid,a=!!a.disabled;b=b&&c&&!a?"input-focused-invalid":b&&!c&&!a?"input-focused":a?"input-disabled":!b&&c&&!a?"border-invalid":"input";qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{padding:2,decorator:b,backgroundColor:"background-light"}}},"datechooser/navigation-bar":{},"datechooser/nav-button":{include:"button-frame",alias:"button-frame",style:function(a){var b={padding:[2,4],shadow:void 0};if(a.lastYear)b.icon="decoration/arrows/rewind.png",b.marginRight=1;else if(a.lastMonth)b.icon=
"decoration/arrows/left.png";else if(a.nextYear)b.icon="decoration/arrows/forward.png",b.marginLeft=1;else if(a.nextMonth)b.icon="decoration/arrows/right.png";return b}},"datechooser/last-year-button-tooltip":"tooltip","datechooser/last-month-button-tooltip":"tooltip","datechooser/next-year-button-tooltip":"tooltip","datechooser/next-month-button-tooltip":"tooltip","datechooser/last-year-button":"datechooser/nav-button","datechooser/last-month-button":"datechooser/nav-button","datechooser/next-month-button":"datechooser/nav-button",
"datechooser/next-year-button":"datechooser/nav-button","datechooser/month-year-label":{style:function(a){return{font:"bold",textAlign:"center",textColor:a.disabled?"text-disabled":void 0}}},"datechooser/date-pane":{style:function(a){return{textColor:a.disabled?"text-disabled":void 0,marginTop:2}}},"datechooser/weekday":{style:function(a){return{textColor:a.disabled?"text-disabled":a.weekend?"text-light":void 0,textAlign:"center",paddingTop:2,backgroundColor:"background-medium"}}},"datechooser/week":{style:function(){return{textAlign:"center",
padding:[2,4],backgroundColor:"background-medium"}}},"datechooser/day":{style:function(a){var b=a.disabled?void 0:a.selected?"selected":void 0;b&&qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{textAlign:"center",decorator:b,textColor:a.disabled?"text-disabled":a.selected?"text-selected":a.otherMonth?"text-light":void 0,font:a.today?"bold":void 0,padding:[2,4]}}},combobox:{style:function(a){var b;b=!!a.focused;var c=!!a.invalid,a=!!a.disabled;b=b&&c&&!a?"input-focused-invalid":
b&&!c&&!a?"input-focused":a?"input-disabled":!b&&c&&!a?"border-invalid":"input";qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b}}},"combobox/popup":"popup","combobox/list":{alias:"list"},"combobox/button":{include:"button-frame",alias:"button-frame",style:function(a,b){var c={icon:"decoration/arrows/down.png",padding:[b.padding[0],b.padding[1]-6],shadow:void 0,margin:void 0};if(a.selected)c.decorator="button-focused";return c}},"combobox/textfield":{include:"textfield",
style:function(){return{decorator:void 0}}},menu:{style:function(a){var b=qx.core.Environment.get("css.gradient.linear")&&qx.core.Environment.get("css.boxshadow"),b={decorator:b?"menu-css":"menu",shadow:b?void 0:"shadow-popup",spacingX:6,spacingY:1,iconColumnWidth:16,arrowColumnWidth:4,placementModeY:a.submenu||a.contextmenu?"best-fit":"keep-align"};if(a.submenu)b.position="right-top",b.offset=[-2,-3];return b}},"menu/slidebar":"menu-slidebar","menu-slidebar":"widget","menu-slidebar-button":{style:function(a){(a=
a.hovered?"selected":void 0)&&qx.core.Environment.get("css.gradient.linear")&&(a+="-css");return{decorator:a,padding:7,center:true}}},"menu-slidebar/button-backward":{include:"menu-slidebar-button",style:function(a){return{icon:a.hovered?"decoration/arrows/up-invert.png":"decoration/arrows/up.png"}}},"menu-slidebar/button-forward":{include:"menu-slidebar-button",style:function(a){return{icon:a.hovered?"decoration/arrows/down-invert.png":"decoration/arrows/down.png"}}},"menu-separator":{style:function(){return{height:0,
decorator:"menu-separator",margin:[4,2]}}},"menu-button":{alias:"atom",style:function(a){var b=a.selected?"selected":void 0;b&&qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b,textColor:a.selected?"text-selected":void 0,padding:[4,6]}}},"menu-button/icon":{include:"image",style:function(){return{alignY:"middle"}}},"menu-button/label":{include:"label",style:function(){return{alignY:"middle",padding:1}}},"menu-button/shortcut":{include:"label",style:function(){return{alignY:"middle",
marginLeft:14,padding:1}}},"menu-button/arrow":{include:"image",style:function(a){return{source:a.selected?"decoration/arrows/right-invert.png":"decoration/arrows/right.png",alignY:"middle"}}},"menu-checkbox":{alias:"menu-button",include:"menu-button",style:function(a){return{icon:!a.checked?void 0:a.selected?"decoration/menu/checkbox-invert.gif":"decoration/menu/checkbox.gif"}}},"menu-radiobutton":{alias:"menu-button",include:"menu-button",style:function(a){return{icon:!a.checked?void 0:a.selected?
"decoration/menu/radiobutton-invert.gif":"decoration/menu/radiobutton.gif"}}},menubar:{style:function(){return{decorator:qx.core.Environment.get("css.gradient.linear")?"menubar-css":"menubar"}}},"menubar-button":{alias:"atom",style:function(a){var b=(a.pressed||a.hovered)&&!a.disabled?"selected":void 0;b&&qx.core.Environment.get("css.gradient.linear")&&(b+="-css");return{decorator:b,textColor:a.pressed||a.hovered?"text-selected":void 0,padding:[3,8]}}},colorselector:"widget","colorselector/control-bar":"widget",
"colorselector/control-pane":"widget","colorselector/visual-pane":"groupbox","colorselector/preset-grid":"widget","colorselector/colorbucket":{style:function(){return{decorator:"main",width:16,height:16}}},"colorselector/preset-field-set":"groupbox","colorselector/input-field-set":"groupbox","colorselector/preview-field-set":"groupbox","colorselector/hex-field-composite":"widget","colorselector/hex-field":"textfield","colorselector/rgb-spinner-composite":"widget","colorselector/rgb-spinner-red":"spinner",
"colorselector/rgb-spinner-green":"spinner","colorselector/rgb-spinner-blue":"spinner","colorselector/hsb-spinner-composite":"widget","colorselector/hsb-spinner-hue":"spinner","colorselector/hsb-spinner-saturation":"spinner","colorselector/hsb-spinner-brightness":"spinner","colorselector/preview-content-old":{style:function(){return{decorator:"main",width:50,height:10}}},"colorselector/preview-content-new":{style:function(){return{decorator:"main",backgroundColor:"background-light",width:50,height:10}}},
"colorselector/hue-saturation-field":{style:function(){return{decorator:"main",margin:5}}},"colorselector/brightness-field":{style:function(){return{decorator:"main",margin:[5,7]}}},"colorselector/hue-saturation-pane":"widget","colorselector/hue-saturation-handle":"widget","colorselector/brightness-pane":"widget","colorselector/brightness-handle":"widget",colorpopup:{alias:"popup",include:"popup",style:function(){return{padding:5,backgroundColor:"background-application"}}},"colorpopup/field":{style:function(){return{decorator:"main",
margin:2,width:14,height:14,backgroundColor:"background-light"}}},"colorpopup/selector-button":"button","colorpopup/auto-button":"button","colorpopup/preview-pane":"groupbox","colorpopup/current-preview":{style:function(){return{height:20,padding:4,marginLeft:4,decorator:"main",allowGrowX:true}}},"colorpopup/selected-preview":{style:function(){return{height:20,padding:4,marginRight:4,decorator:"main",allowGrowX:true}}},"colorpopup/colorselector-okbutton":{alias:"button",include:"button",style:function(){return{icon:"icon/16/actions/dialog-ok.png"}}},
"colorpopup/colorselector-cancelbutton":{alias:"button",include:"button",style:function(){return{icon:"icon/16/actions/dialog-cancel.png"}}},table:{alias:"widget",style:function(){return{decorator:"table"}}},"table/statusbar":{style:function(){return{decorator:"table-statusbar",padding:[0,2]}}},"table/column-button":{alias:"button-frame",style:function(){return{decorator:qx.core.Environment.get("css.gradient.linear")?"table-scroller-header-css":"table-scroller-header",padding:3,icon:"decoration/table/select-column-order.png"}}},
"table-column-reset-button":{include:"menu-button",alias:"menu-button",style:function(){return{icon:"icon/16/actions/view-refresh.png"}}},"table-scroller":"widget","table-scroller/scrollbar-x":"scrollbar","table-scroller/scrollbar-y":"scrollbar","table-scroller/header":{style:function(){return{decorator:qx.core.Environment.get("css.gradient.linear")?"table-scroller-header-css":"table-scroller-header"}}},"table-scroller/pane":{style:function(){return{backgroundColor:"table-pane"}}},"table-scroller/focus-indicator":{style:function(){return{decorator:"table-scroller-focus-indicator"}}},
"table-scroller/resize-line":{style:function(){return{backgroundColor:"border-separator",width:2}}},"table-header-cell":{alias:"atom",style:function(a){return{minWidth:13,minHeight:20,padding:a.hovered?[3,4,2,4]:[3,4],decorator:a.hovered?"table-header-cell-hovered":"table-header-cell",sortIcon:a.sorted?a.sortedAscending?"decoration/table/ascending.png":"decoration/table/descending.png":void 0}}},"table-header-cell/label":{style:function(){return{minWidth:0,alignY:"middle",paddingRight:5}}},"table-header-cell/sort-icon":{style:function(){return{alignY:"middle",
alignX:"right"}}},"table-header-cell/icon":{style:function(){return{minWidth:0,alignY:"middle",paddingRight:5}}},"table-editor-textfield":{include:"textfield",style:function(){return{decorator:void 0,padding:[2,2],backgroundColor:"background-light"}}},"table-editor-selectbox":{include:"selectbox",alias:"selectbox",style:function(){return{padding:[0,2],backgroundColor:"background-light"}}},"table-editor-combobox":{include:"combobox",alias:"combobox",style:function(){return{decorator:void 0,backgroundColor:"background-light"}}},
"progressive-table-header":{alias:"widget",style:function(){return{decorator:"progressive-table-header"}}},"progressive-table-header-cell":{alias:"atom",style:function(){return{minWidth:40,minHeight:25,paddingLeft:6,decorator:qx.core.Environment.get("css.gradient.linear")?"progressive-table-header-cell-css":"progressive-table-header-cell"}}},"app-header":{style:function(){return{font:"bold",textColor:"text-selected",padding:[8,12],decorator:"app-header"}}},"app-header-label":"label","virtual-list":"list",
"virtual-list/row-layer":"row-layer","row-layer":"widget","group-item":{include:"label",alias:"label",style:function(){return{padding:4,decorator:qx.core.Environment.get("css.gradient.linear")?"group-item-css":"group-item",textColor:"groupitem-text",font:"bold"}}},"virtual-selectbox":"selectbox","virtual-selectbox/dropdown":"popup","virtual-selectbox/dropdown/list":{alias:"virtual-list"},"virtual-combobox":"combobox","virtual-combobox/dropdown":"popup","virtual-combobox/dropdown/list":{alias:"virtual-list"},
"virtual-tree":{include:"tree",alias:"tree",style:function(){return{itemHeight:26}}},"virtual-tree-folder":"tree-folder","virtual-tree-file":"tree-file","column-layer":"widget",cell:{style:function(a){return{textColor:a.selected?"text-selected":"text-label",padding:[3,6],font:"default"}}},"cell-string":"cell","cell-number":{include:"cell",style:function(){return{textAlign:"right"}}},"cell-image":"cell","cell-boolean":{include:"cell",style:function(){return{iconTrue:"decoration/table/boolean-true.png",
iconFalse:"decoration/table/boolean-false.png"}}},"cell-atom":"cell","cell-date":"cell","cell-html":"cell",htmlarea:{include:"widget",style:function(){return{backgroundColor:"htmlarea-background"}}},progressbar:{style:function(){return{decorator:"progressbar",padding:[1],backgroundColor:"progressbar-background",width:200,height:20}}},"progressbar/progress":{style:function(a){a=a.disabled?"group-item":"selected";qx.core.Environment.get("css.gradient.linear")&&(a+="-css");return{decorator:a}}}}})})();
(function(){qx.Theme.define("qx.theme.icon.Tango",{title:"Tango",aliases:{icon:"qx/icon/Tango"}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MBackgroundColor",{properties:{backgroundColor:{check:"Color",nullable:true,apply:"_applyBackgroundColor"}},members:{_tintBackgroundColor:function(a,b,c){b==null&&(b=this.getBackgroundColor());qx.core.Environment.get("qx.theme")&&(b=qx.theme.manager.Color.getInstance().resolve(b));c.backgroundColor=b||""},_resizeBackgroundColor:function(a,b,c){a=this.getInsets();b-=a.left+a.right;c-=a.top+a.bottom;return{left:a.left,top:a.top,width:b,height:c}},_applyBackgroundColor:function(){if(qx.core.Environment.get("qx.debug")&&
this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");}}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MBackgroundImage",{properties:{backgroundImage:{check:"String",nullable:true,apply:"_applyBackgroundImage"},backgroundRepeat:{check:["repeat","repeat-x","repeat-y","no-repeat","scale"],init:"repeat",apply:"_applyBackgroundImage"},backgroundPositionX:{nullable:true,apply:"_applyBackgroundImage"},backgroundPositionY:{nullable:true,apply:"_applyBackgroundImage"},backgroundPosition:{group:["backgroundPositionY","backgroundPositionX"]}},members:{_generateMarkup:this._generateBackgroundMarkup,
_generateBackgroundMarkup:function(a,b){var c="",d=this.getBackgroundImage(),c=this.getBackgroundRepeat(),e=this.getBackgroundPositionY();e==null&&(e=0);var f=this.getBackgroundPositionX();f==null&&(f=0);a.backgroundPosition=f+" "+e;if(d)d=qx.util.AliasManager.getInstance().resolve(d),c=qx.bom.element.Decoration.create(d,c,a);else{if(qx.core.Environment.get("engine.name")=="mshtml"&&(parseFloat(qx.core.Environment.get("engine.version"))<7||qx.core.Environment.get("browser.quirksmode")))a.overflow=
"hidden";b||(b="");c='<div style="'+qx.bom.element.Style.compile(a)+'">'+b+"</div>"}return c},_applyBackgroundImage:function(){if(qx.core.Environment.get("qx.debug")&&this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");}}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MSingleBorder",{properties:{widthTop:{check:"Number",init:0,apply:"_applyWidth"},widthRight:{check:"Number",init:0,apply:"_applyWidth"},widthBottom:{check:"Number",init:0,apply:"_applyWidth"},widthLeft:{check:"Number",init:0,apply:"_applyWidth"},styleTop:{nullable:true,check:["solid","dotted","dashed","double"],init:"solid",apply:"_applyStyle"},styleRight:{nullable:true,check:["solid","dotted","dashed","double"],init:"solid",apply:"_applyStyle"},styleBottom:{nullable:true,
check:["solid","dotted","dashed","double"],init:"solid",apply:"_applyStyle"},styleLeft:{nullable:true,check:["solid","dotted","dashed","double"],init:"solid",apply:"_applyStyle"},colorTop:{nullable:true,check:"Color",apply:"_applyStyle"},colorRight:{nullable:true,check:"Color",apply:"_applyStyle"},colorBottom:{nullable:true,check:"Color",apply:"_applyStyle"},colorLeft:{nullable:true,check:"Color",apply:"_applyStyle"},left:{group:["widthLeft","styleLeft","colorLeft"]},right:{group:["widthRight","styleRight",
"colorRight"]},top:{group:["widthTop","styleTop","colorTop"]},bottom:{group:["widthBottom","styleBottom","colorBottom"]},width:{group:["widthTop","widthRight","widthBottom","widthLeft"],mode:"shorthand"},style:{group:["styleTop","styleRight","styleBottom","styleLeft"],mode:"shorthand"},color:{group:["colorTop","colorRight","colorBottom","colorLeft"],mode:"shorthand"}},members:{_styleBorder:function(a){if(qx.core.Environment.get("qx.theme"))var b=qx.theme.manager.Color.getInstance(),c=b.resolve(this.getColorTop()),
d=b.resolve(this.getColorRight()),e=b.resolve(this.getColorBottom()),b=b.resolve(this.getColorLeft());else c=this.getColorTop(),d=this.getColorRight(),e=this.getColorBottom(),b=this.getColorLeft();var f=this.getWidthTop();f>0&&(a["border-top"]=f+"px "+this.getStyleTop()+" "+(c||""));f=this.getWidthRight();f>0&&(a["border-right"]=f+"px "+this.getStyleRight()+" "+(d||""));f=this.getWidthBottom();f>0&&(a["border-bottom"]=f+"px "+this.getStyleBottom()+" "+(e||""));f=this.getWidthLeft();f>0&&(a["border-left"]=
f+"px "+this.getStyleLeft()+" "+(b||""));if(qx.core.Environment.get("qx.debug")&&a.length===0)throw Error("Invalid Single decorator (zero border width). Use qx.ui.decorator.Background instead!");a.position="absolute";a.top=0;a.left=0},_resizeBorder:function(a,b,c){a=this.getInsets();b-=a.left+a.right;c-=a.top+a.bottom;b<0&&(b=0);c<0&&(c=0);return{left:a.left-this.getWidthLeft(),top:a.top-this.getWidthTop(),width:b,height:c}},_getDefaultInsetsForBorder:function(){return{top:this.getWidthTop(),right:this.getWidthRight(),
bottom:this.getWidthBottom(),left:this.getWidthLeft()}},_applyWidth:function(){this._applyStyle();this._resetInsets()},_applyStyle:function(){if(qx.core.Environment.get("qx.debug")&&this._markup)throw Error("This decorator is already in-use. Modification is not possible anymore!");}}})})();
(function(){qx.Class.define("qx.ui.decoration.Single",{extend:qx.ui.decoration.Abstract,include:[qx.ui.decoration.MBackgroundImage,qx.ui.decoration.MBackgroundColor,qx.ui.decoration.MSingleBorder],construct:function(a,b,c){qx.ui.decoration.Abstract.call(this);a!=null&&this.setWidth(a);b!=null&&this.setStyle(b);c!=null&&this.setColor(c)},members:{_markup:null,getMarkup:function(){if(this._markup)return this._markup;var a={};this._styleBorder(a);return this._markup=this._generateBackgroundMarkup(a)},
resize:function(a,b,c){b=this._resizeBorder(a,b,c);a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.left=parseInt(a.style.left)+b.left+"px";a.style.top=parseInt(a.style.top)+b.top+"px"},tint:function(a,b){this._tintBackgroundColor(a,b,a.style)},_isInitialized:function(){return!!this._markup},_getDefaultInsets:function(){return this._getDefaultInsetsForBorder()}},destruct:function(){this._markup=null}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MBorderRadius",{properties:{radiusTopLeft:{nullable:true,check:"Integer",apply:"_applyBorderRadius"},radiusTopRight:{nullable:true,check:"Integer",apply:"_applyBorderRadius"},radiusBottomLeft:{nullable:true,check:"Integer",apply:"_applyBorderRadius"},radiusBottomRight:{nullable:true,check:"Integer",apply:"_applyBorderRadius"},radius:{group:["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"],mode:"shorthand"}},members:{_styleBorderRadius:function(a){a["-webkit-background-clip"]=
"padding-box";var b=this.getRadiusTopLeft();b>0&&(a["-moz-border-radius-topleft"]=b+"px",a["-webkit-border-top-left-radius"]=b+"px",a["border-top-left-radius"]=b+"px");b=this.getRadiusTopRight();b>0&&(a["-moz-border-radius-topright"]=b+"px",a["-webkit-border-top-right-radius"]=b+"px",a["border-top-right-radius"]=b+"px");b=this.getRadiusBottomLeft();b>0&&(a["-moz-border-radius-bottomleft"]=b+"px",a["-webkit-border-bottom-left-radius"]=b+"px",a["border-bottom-left-radius"]=b+"px");b=this.getRadiusBottomRight();
b>0&&(a["-moz-border-radius-bottomright"]=b+"px",a["-webkit-border-bottom-right-radius"]=b+"px",a["border-bottom-right-radius"]=b+"px")},_applyBorderRadius:function(){if(qx.core.Environment.get("qx.debug")&&this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");}}})})();
(function(){qx.Class.define("qx.ui.decoration.Background",{extend:qx.ui.decoration.Abstract,include:[qx.ui.decoration.MBackgroundImage,qx.ui.decoration.MBackgroundColor],construct:function(a){qx.ui.decoration.Abstract.call(this);a!=null&&this.setBackgroundColor(a)},members:{__wQ:null,_getDefaultInsets:function(){return{top:0,right:0,bottom:0,left:0}},_isInitialized:function(){return!!this.__wQ},getMarkup:function(){return this.__wQ?this.__wQ:this.__wQ=this._generateBackgroundMarkup({position:"absolute",
top:0,left:0})},resize:function(a,b,c){var d=this.getInsets();a.style.width=b-d.left-d.right+"px";a.style.height=c-d.top-d.bottom+"px";a.style.left=-d.left+"px";a.style.top=-d.top+"px"},tint:function(a,b){this._tintBackgroundColor(a,b,a.style)}},destruct:function(){this.__wQ=null}})})();
(function(){qx.Class.define("qx.ui.decoration.Beveled",{extend:qx.ui.decoration.Abstract,include:[qx.ui.decoration.MBackgroundImage,qx.ui.decoration.MBackgroundColor],construct:function(a,b,c){qx.ui.decoration.Abstract.call(this);a!=null&&this.setOuterColor(a);b!=null&&this.setInnerColor(b);c!=null&&this.setInnerOpacity(c)},properties:{innerColor:{check:"Color",nullable:true,apply:"_applyStyle"},innerOpacity:{check:"Number",init:1,apply:"_applyStyle"},outerColor:{check:"Color",nullable:true,apply:"_applyStyle"}},
members:{__wQ:null,_getDefaultInsets:function(){return{top:2,right:2,bottom:2,left:2}},_isInitialized:function(){return!!this.__wQ},_applyStyle:function(){if(qx.core.Environment.get("qx.debug")&&this.__wQ)throw Error("This decorator is already in-use. Modification is not possible anymore!");},getMarkup:function(){if(this.__wQ)return this.__wQ;var a=qx.theme.manager.Color.getInstance(),b=[],c="1px solid "+a.resolve(this.getOuterColor())+";",a="1px solid "+a.resolve(this.getInnerColor())+";";b.push('<div style="overflow:hidden;font-size:0;line-height:0;">');
b.push('<div style="');b.push("border:",c);b.push(qx.bom.element.Opacity.compile(0.35));b.push('"></div>');b.push('<div style="position:absolute;top:1px;left:0px;');b.push("border-left:",c);b.push("border-right:",c);b.push(qx.bom.element.Opacity.compile(1));b.push('"></div>');b.push('<div style="');b.push("position:absolute;top:0px;left:1px;");b.push("border-top:",c);b.push("border-bottom:",c);b.push(qx.bom.element.Opacity.compile(1));b.push('"></div>');b.push(this._generateBackgroundMarkup({position:"absolute",
top:"1px",left:"1px",opacity:1}));b.push('<div style="position:absolute;top:1px;left:1px;');b.push("border:",a);b.push(qx.bom.element.Opacity.compile(this.getInnerOpacity()));b.push('"></div>');b.push("</div>");return this.__wQ=b.join("")},resize:function(a,b,c){b<4&&(b=4);c<4&&(c=4);if(qx.core.Environment.get("css.boxmodel")=="content"){var d=b-2,e=c-2,f=d,g=e;b-=4;c-=4}else d=b,e=c,f=b-2,g=c-2,b=f,c=g;var h=a.childNodes[0].style;h.width=d+"px";h.height=e+"px";h=a.childNodes[1].style;h.width=d+"px";
h.height=g+"px";d=a.childNodes[2].style;d.width=f+"px";d.height=e+"px";e=a.childNodes[3].style;e.width=f+"px";e.height=g+"px";a=a.childNodes[4].style;a.width=b+"px";a.height=c+"px"},tint:function(a,b){this._tintBackgroundColor(a,b,a.childNodes[3].style)}},destruct:function(){this.__wQ=null}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MLinearBackgroundGradient",{properties:{startColor:{check:"Color",nullable:true,apply:"_applyLinearBackgroundGradient"},endColor:{check:"Color",nullable:true,apply:"_applyLinearBackgroundGradient"},orientation:{check:["horizontal","vertical"],init:"vertical",apply:"_applyLinearBackgroundGradient"},startColorPosition:{check:"Number",init:0,apply:"_applyLinearBackgroundGradient"},endColorPosition:{check:"Number",init:100,apply:"_applyLinearBackgroundGradient"},
colorPositionUnit:{check:["px","%"],init:"%",apply:"_applyLinearBackgroundGradient"},gradientStart:{group:["startColor","startColorPosition"],mode:"shorthand"},gradientEnd:{group:["endColor","endColorPosition"],mode:"shorthand"}},members:{_styleLinearBackgroundGradient:function(a){if(qx.core.Environment.get("qx.theme"))var b=qx.theme.manager.Color.getInstance(),c=b.resolve(this.getStartColor()),b=b.resolve(this.getEndColor());else c=this.getStartColor(),b=this.getEndColor();var d=this.getColorPositionUnit();
if(qx.core.Environment.get("css.gradient.legacywebkit")){d=d==="px"?"":d;if(this.getOrientation()=="horizontal")var e=this.getStartColorPosition()+d+" 0"+d,d=this.getEndColorPosition()+d+" 0"+d;else e="0"+d+" "+this.getStartColorPosition()+d,d="0"+d+" "+this.getEndColorPosition()+d;a.background="-webkit-gradient(linear,"+e+","+d+","+("from("+c+"),to("+b+")")+")"}else e=this.getOrientation()=="horizontal"?0:270,c=c+" "+this.getStartColorPosition()+d,b=b+" "+this.getEndColorPosition()+d,d=qx.core.Environment.get("css.gradient.linear"),
a["background-image"]=d+"("+e+"deg, "+c+","+b+")"},_resizeLinearBackgroundGradient:function(a,b,c){a=this.getInsets();b-=a.left+a.right;c-=a.top+a.bottom;return{left:a.left,top:a.top,width:b,height:c}},_applyLinearBackgroundGradient:function(){if(qx.core.Environment.get("qx.debug")&&this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");}}})})();
(function(){qx.Class.define("qx.ui.decoration.Grid",{extend:qx.core.Object,implement:[qx.ui.decoration.IDecorator],construct:function(a,b){qx.core.Object.call(this);qx.ui.decoration.css3.BorderImage.IS_SUPPORTED?(this.__wR=new qx.ui.decoration.css3.BorderImage,a&&this.__wS(a)):this.__wR=new qx.ui.decoration.GridDiv(a);b!=null&&this.__wR.setInsets(b);if(qx.core.Environment.get("qx.debug.dispose"))this.__wR.$$ignoreDisposeWarning=true},properties:{baseImage:{check:"String",nullable:true,apply:"_applyBaseImage"},
insetLeft:{check:"Number",nullable:true,apply:"_applyInsets"},insetRight:{check:"Number",nullable:true,apply:"_applyInsets"},insetBottom:{check:"Number",nullable:true,apply:"_applyInsets"},insetTop:{check:"Number",nullable:true,apply:"_applyInsets"},insets:{group:["insetTop","insetRight","insetBottom","insetLeft"],mode:"shorthand"}},members:{__wR:null,getMarkup:function(){return this.__wR.getMarkup()},resize:function(a,b,c){this.__wR.resize(a,b,c)},tint:function(){},getInsets:function(){return this.__wR.getInsets()},
_applyInsets:function(a,b,c){this.__wR["set"+qx.lang.String.firstUp(c)](a)},_applyBaseImage:function(a){this.__wR instanceof qx.ui.decoration.GridDiv?this.__wR.setBaseImage(a):this.__wS(a)},__wS:function(a){this.__wR.setBorderImage(a);var b=/(.*)(\.[a-z]+)$/.exec(qx.util.AliasManager.getInstance().resolve(a)),a=b[1],b=b[2],c=qx.util.ResourceManager.getInstance(),d=c.getImageHeight(a+"-t"+b),e=c.getImageWidth(a+"-r"+b),f=c.getImageHeight(a+"-b"+b),c=c.getImageWidth(a+"-l"+b);if(qx.core.Environment.get("qx.debug")){var g=
"The value of the property 'rightSlice' is null! Please verify the image '"+a+"-r"+b+"' is present.",h="The value of the property 'bottomSlice' is null! Please verify the image '"+a+"-b"+b+"' is present.",i="The value of the property 'leftSlice' is null! Please verify the image '"+a+"-l"+b+"' is present.";qx.core.Assert.assertNotNull(d,"The value of the property 'topSlice' is null! Please verify the image '"+a+"-t"+b+"' is present.");qx.core.Assert.assertNotNull(e,g);qx.core.Assert.assertNotNull(f,
h);qx.core.Assert.assertNotNull(c,i)}this.__wR.setSlice([d,e,f,c])}},destruct:function(){this.__wR.dispose();this.__wR=null}})})();
(function(){qx.Class.define("qx.ui.decoration.css3.BorderImage",{extend:qx.ui.decoration.Abstract,construct:function(a,b){qx.ui.decoration.Abstract.call(this);a!=null&&this.setBorderImage(a);b!=null&&this.setSlice(b)},statics:{IS_SUPPORTED:qx.bom.element.Style.isPropertySupported("borderImage")},properties:{borderImage:{check:"String",nullable:true,apply:"_applyStyle"},sliceTop:{check:"Integer",init:0,apply:"_applyStyle"},sliceRight:{check:"Integer",init:0,apply:"_applyStyle"},sliceBottom:{check:"Integer",
init:0,apply:"_applyStyle"},sliceLeft:{check:"Integer",init:0,apply:"_applyStyle"},slice:{group:["sliceTop","sliceRight","sliceBottom","sliceLeft"],mode:"shorthand"},repeatX:{check:["stretch","repeat","round"],init:"stretch",apply:"_applyStyle"},repeatY:{check:["stretch","repeat","round"],init:"stretch",apply:"_applyStyle"},repeat:{group:["repeatX","repeatY"],mode:"shorthand"}},members:{__wQ:null,_getDefaultInsets:function(){return{top:0,right:0,bottom:0,left:0}},_isInitialized:function(){return!!this.__wQ},
getMarkup:function(){if(this.__wQ)return this.__wQ;var a=this._resolveImageUrl(this.getBorderImage()),b=[this.getSliceTop(),this.getSliceRight(),this.getSliceBottom(),this.getSliceLeft()],c=[this.getRepeatX(),this.getRepeatY()].join(" ");return this.__wQ=["<div style='",qx.bom.element.Style.compile({borderImage:'url("'+a+'") '+b.join(" ")+" "+c,position:"absolute",lineHeight:0,fontSize:0,overflow:"hidden",boxSizing:"border-box",borderWidth:b.join("px ")+"px"}),";'></div>"].join("")},resize:function(a,
b,c){a.style.width=b+"px";a.style.height=c+"px"},tint:function(){},_applyStyle:function(){if(qx.core.Environment.get("qx.debug")&&this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");},_resolveImageUrl:function(a){return qx.util.ResourceManager.getInstance().toUri(qx.util.AliasManager.getInstance().resolve(a))}},destruct:function(){this.__wQ=null}})})();
(function(){qx.Class.define("qx.ui.decoration.GridDiv",{extend:qx.ui.decoration.Abstract,construct:function(a,b){qx.ui.decoration.Abstract.call(this);a!=null&&this.setBaseImage(a);b!=null&&this.setInsets(b)},properties:{baseImage:{check:"String",nullable:true,apply:"_applyBaseImage"}},members:{_markup:null,_images:null,_edges:null,_getDefaultInsets:function(){return{top:0,right:0,bottom:0,left:0}},_isInitialized:function(){return!!this._markup},getMarkup:function(){if(this._markup)return this._markup;
var a=qx.bom.element.Decoration,b=this._images,c=this._edges,d=[];d.push('<div style="position:absolute;top:0;left:0;overflow:hidden;font-size:0;line-height:0;">');d.push(a.create(b.tl,"no-repeat",{top:0,left:0}));d.push(a.create(b.t,"scale-x",{top:0,left:c.left+"px"}));d.push(a.create(b.tr,"no-repeat",{top:0,right:0}));d.push(a.create(b.bl,"no-repeat",{bottom:0,left:0}));d.push(a.create(b.b,"scale-x",{bottom:0,left:c.left+"px"}));d.push(a.create(b.br,"no-repeat",{bottom:0,right:0}));d.push(a.create(b.l,
"scale-y",{top:c.top+"px",left:0}));d.push(a.create(b.c,"scale",{top:c.top+"px",left:c.left+"px"}));d.push(a.create(b.r,"scale-y",{top:c.top+"px",right:0}));d.push("</div>");return this._markup=d.join("")},resize:function(a,b,c){var d=this._edges,e=b-d.left-d.right,d=c-d.top-d.bottom;e<0&&(e=0);d<0&&(d=0);a.style.width=b+"px";a.style.height=c+"px";a.childNodes[1].style.width=e+"px";a.childNodes[4].style.width=e+"px";a.childNodes[7].style.width=e+"px";a.childNodes[6].style.height=d+"px";a.childNodes[7].style.height=
d+"px";a.childNodes[8].style.height=d+"px";if(qx.core.Environment.get("engine.name")=="mshtml"&&(parseFloat(qx.core.Environment.get("engine.version"))<7||qx.core.Environment.get("browser.quirksmode")&&parseFloat(qx.core.Environment.get("engine.version"))<8))b%2==1?(a.childNodes[2].style.marginRight="-1px",a.childNodes[5].style.marginRight="-1px",a.childNodes[8].style.marginRight="-1px"):(a.childNodes[2].style.marginRight="0px",a.childNodes[5].style.marginRight="0px",a.childNodes[8].style.marginRight=
"0px"),c%2==1?(a.childNodes[3].style.marginBottom="-1px",a.childNodes[4].style.marginBottom="-1px",a.childNodes[5].style.marginBottom="-1px"):(a.childNodes[3].style.marginBottom="0px",a.childNodes[4].style.marginBottom="0px",a.childNodes[5].style.marginBottom="0px")},tint:function(){},_applyBaseImage:function(a){if(qx.core.Environment.get("qx.debug")&&this._markup)throw Error("This decorator is already in-use. Modification is not possible anymore!");if(a){var b=/(.*)(\.[a-z]+)$/.exec(this._resolveImageUrl(a)),
a=b[1],b=b[2];this._edges=this._computeEdgeSizes(this._images={tl:a+"-tl"+b,t:a+"-t"+b,tr:a+"-tr"+b,bl:a+"-bl"+b,b:a+"-b"+b,br:a+"-br"+b,l:a+"-l"+b,c:a+"-c"+b,r:a+"-r"+b})}},_resolveImageUrl:function(a){return qx.util.AliasManager.getInstance().resolve(a)},_computeEdgeSizes:function(a){var b=qx.util.ResourceManager.getInstance();return{top:b.getImageHeight(a.t),bottom:b.getImageHeight(a.b),left:b.getImageWidth(a.l),right:b.getImageWidth(a.r)}}},destruct:function(){this._markup=this._images=this._edges=
null}})})();(function(){qx.Class.define("qx.ui.decoration.Uniform",{extend:qx.ui.decoration.Single,construct:function(a,b,c){qx.ui.decoration.Single.call(this);a!=null&&this.setWidth(a);b!=null&&this.setStyle(b);c!=null&&this.setColor(c)}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MDoubleBorder",{include:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBackgroundImage],construct:function(){this._getDefaultInsetsForBorder=this.__wX;this._resizeBorder=this.__wW;this._styleBorder=this.__wU;this._generateMarkup=this.__wV},properties:{innerWidthTop:{check:"Number",init:0},innerWidthRight:{check:"Number",init:0},innerWidthBottom:{check:"Number",init:0},innerWidthLeft:{check:"Number",init:0},innerWidth:{group:["innerWidthTop","innerWidthRight",
"innerWidthBottom","innerWidthLeft"],mode:"shorthand"},innerColorTop:{nullable:true,check:"Color"},innerColorRight:{nullable:true,check:"Color"},innerColorBottom:{nullable:true,check:"Color"},innerColorLeft:{nullable:true,check:"Color"},innerColor:{group:["innerColorTop","innerColorRight","innerColorBottom","innerColorLeft"],mode:"shorthand"}},members:{__wT:null,__wU:function(a){if(qx.core.Environment.get("qx.theme"))var b=qx.theme.manager.Color.getInstance(),c=b.resolve(this.getInnerColorTop()),
d=b.resolve(this.getInnerColorRight()),e=b.resolve(this.getInnerColorBottom()),b=b.resolve(this.getInnerColorLeft());else c=this.getInnerColorTop(),d=this.getInnerColorRight(),e=this.getInnerColorBottom(),b=this.getInnerColorLeft();a.position="relative";var f=this.getInnerWidthTop();f>0&&(a["border-top"]=f+"px "+this.getStyleTop()+" "+c);f=this.getInnerWidthRight();f>0&&(a["border-right"]=f+"px "+this.getStyleRight()+" "+d);f=this.getInnerWidthBottom();f>0&&(a["border-bottom"]=f+"px "+this.getStyleBottom()+
" "+e);f=this.getInnerWidthLeft();f>0&&(a["border-left"]=f+"px "+this.getStyleLeft()+" "+b);if(qx.core.Environment.get("qx.debug")&&!a["border-top"]&&!a["border-right"]&&!a["border-bottom"]&&!a["border-left"])throw Error("Invalid Double decorator (zero inner border width). Use qx.ui.decoration.Single instead!");},__wV:function(a){var b=this._generateBackgroundMarkup(a);if(qx.core.Environment.get("qx.theme"))var c=qx.theme.manager.Color.getInstance(),d=c.resolve(this.getColorTop()),e=c.resolve(this.getColorRight()),
f=c.resolve(this.getColorBottom()),c=c.resolve(this.getColorLeft());else d=this.getColorTop(),e=this.getColorRight(),f=this.getColorBottom(),c=this.getColorLeft();a["border-top"]="";a["border-right"]="";a["border-bottom"]="";a["border-left"]="";a["line-height"]=0;if(qx.core.Environment.get("engine.name")=="mshtml"&&parseFloat(qx.core.Environment.get("engine.version"))<8||qx.core.Environment.get("engine.name")=="mshtml"&&qx.core.Environment.get("browser.documentmode")<8)a["line-height"]="";var g=this.getWidthTop();
g>0&&(a["border-top"]=g+"px "+this.getStyleTop()+" "+d);g=this.getWidthRight();g>0&&(a["border-right"]=g+"px "+this.getStyleRight()+" "+e);g=this.getWidthBottom();g>0&&(a["border-bottom"]=g+"px "+this.getStyleBottom()+" "+f);g=this.getWidthLeft();g>0&&(a["border-left"]=g+"px "+this.getStyleLeft()+" "+c);if(qx.core.Environment.get("qx.debug")&&a["border-top"]==""&&a["border-right"]==""&&a["border-bottom"]==""&&a["border-left"]=="")throw Error("Invalid Double decorator (zero outer border width). Use qx.ui.decoration.Single instead!");
a.position="absolute";a.top=0;a.left=0;return this.__wT=this._generateBackgroundMarkup(a,b)},__wW:function(a,b,c){var d=this.getInsets();b-=d.left+d.right;c-=d.top+d.bottom;var e=d.left-this.getWidthLeft()-this.getInnerWidthLeft(),d=d.top-this.getWidthTop()-this.getInnerWidthTop();return{left:e,top:d,width:b,height:c,elementToApplyDimensions:a.firstChild}},__wX:function(){return{top:this.getWidthTop()+this.getInnerWidthTop(),right:this.getWidthRight()+this.getInnerWidthRight(),bottom:this.getWidthBottom()+
this.getInnerWidthBottom(),left:this.getWidthLeft()+this.getInnerWidthLeft()}}}})})();
(function(){qx.Mixin.define("qx.ui.decoration.MBoxShadow",{properties:{shadowHorizontalLength:{nullable:true,check:"Integer",apply:"_applyBoxShadow"},shadowVerticalLength:{nullable:true,check:"Integer",apply:"_applyBoxShadow"},shadowBlurRadius:{nullable:true,check:"Integer",apply:"_applyBoxShadow"},shadowColor:{nullable:true,check:"Color",apply:"_applyBoxShadow"},shadowLength:{group:["shadowHorizontalLength","shadowVerticalLength"],mode:"shorthand"}},members:{_styleBoxShadow:function(a){var b=qx.core.Environment.get("qx.theme")?
qx.theme.manager.Color.getInstance().resolve(this.getShadowColor()):this.getShadowColor();if(b!=null){var c=this.getShadowVerticalLength()||0,d=this.getShadowHorizontalLength()||0,e=this.getShadowBlurRadius()||0,b=d+"px "+c+"px "+e+"px "+b;a["-moz-box-shadow"]=b;a["-webkit-box-shadow"]=b;a["box-shadow"]=b}},_applyBoxShadow:function(){if(qx.core.Environment.get("qx.debug")&&this._isInitialized())throw Error("This decorator is already in-use. Modification is not possible anymore!");}}})})();
(function(){qx.Theme.define("qx.theme.modern.Decoration",{aliases:{decoration:"qx/decoration/Modern"},decorations:{main:{decorator:qx.ui.decoration.Uniform,style:{width:1,color:"border-main"}},selected:{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/selection.png",backgroundRepeat:"scale"}},"selected-css":{decorator:[qx.ui.decoration.MLinearBackgroundGradient],style:{startColorPosition:0,endColorPosition:100,startColor:"selected-start",endColor:"selected-end"}},"selected-dragover":{decorator:qx.ui.decoration.Single,
style:{backgroundImage:"decoration/selection.png",backgroundRepeat:"scale",bottom:[2,"solid","border-dragover"]}},dragover:{decorator:qx.ui.decoration.Single,style:{bottom:[2,"solid","border-dragover"]}},pane:{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/pane/pane.png",insets:[0,2,3,0]}},"pane-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBorderRadius,qx.ui.decoration.MBoxShadow,qx.ui.decoration.MLinearBackgroundGradient],style:{width:1,color:"tabview-background",
radius:3,shadowColor:"shadow",shadowBlurRadius:2,shadowLength:0,gradientStart:["pane-start",0],gradientEnd:["pane-end",100]}},group:{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/groupbox/groupbox.png"}},"group-css":{decorator:[qx.ui.decoration.MBackgroundColor,qx.ui.decoration.MBorderRadius,qx.ui.decoration.MSingleBorder],style:{backgroundColor:"group-background",radius:4,color:"group-border",width:1}},"border-invalid":{decorator:qx.ui.decoration.Beveled,style:{outerColor:"invalid",
innerColor:"border-inner-input",innerOpacity:0.5,backgroundImage:"decoration/form/input.png",backgroundRepeat:"repeat-x",backgroundColor:"background-light"}},"keyboard-focus":{decorator:qx.ui.decoration.Single,style:{width:1,color:"keyboard-focus",style:"dotted"}},radiobutton:{decorator:[qx.ui.decoration.MDoubleBorder,qx.ui.decoration.MBackgroundColor,qx.ui.decoration.MBorderRadius,qx.ui.decoration.MBoxShadow],style:{backgroundColor:"radiobutton-background",radius:5,width:1,innerWidth:2,color:"checkbox-border",
innerColor:"radiobutton-background",shadowLength:0,shadowBlurRadius:0,shadowColor:"checkbox-focus",insetLeft:5}},"radiobutton-checked":{include:"radiobutton",style:{backgroundColor:"radiobutton-checked"}},"radiobutton-checked-focused":{include:"radiobutton-checked",style:{shadowBlurRadius:4}},"radiobutton-checked-hovered":{include:"radiobutton-checked",style:{innerColor:"checkbox-hovered"}},"radiobutton-focused":{include:"radiobutton",style:{shadowBlurRadius:4}},"radiobutton-hovered":{include:"radiobutton",
style:{backgroundColor:"checkbox-hovered",innerColor:"checkbox-hovered"}},"radiobutton-disabled":{include:"radiobutton",style:{innerColor:"radiobutton-disabled",backgroundColor:"radiobutton-disabled",color:"checkbox-disabled-border"}},"radiobutton-checked-disabled":{include:"radiobutton-disabled",style:{backgroundColor:"radiobutton-checked-disabled"}},"radiobutton-invalid":{include:"radiobutton",style:{color:"invalid"}},"radiobutton-checked-invalid":{include:"radiobutton-checked",style:{color:"invalid"}},
"radiobutton-checked-focused-invalid":{include:"radiobutton-checked-focused",style:{color:"invalid",shadowColor:"invalid"}},"radiobutton-checked-hovered-invalid":{include:"radiobutton-checked-hovered",style:{color:"invalid",innerColor:"radiobutton-hovered-invalid"}},"radiobutton-focused-invalid":{include:"radiobutton-focused",style:{color:"invalid",shadowColor:"invalid"}},"radiobutton-hovered-invalid":{include:"radiobutton-hovered",style:{color:"invalid",innerColor:"radiobutton-hovered-invalid",backgroundColor:"radiobutton-hovered-invalid"}},
"separator-horizontal":{decorator:qx.ui.decoration.Single,style:{widthLeft:1,colorLeft:"border-separator"}},"separator-vertical":{decorator:qx.ui.decoration.Single,style:{widthTop:1,colorTop:"border-separator"}},"tooltip-error":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/tooltip-error.png",insets:[2,5,5,2]}},"tooltip-error-css":{decorator:[qx.ui.decoration.MBackgroundColor,qx.ui.decoration.MBorderRadius,qx.ui.decoration.MBoxShadow],style:{backgroundColor:"tooltip-error",radius:4,
shadowColor:"shadow",shadowBlurRadius:2,shadowLength:1}},"tooltip-error-arrow":{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/form/tooltip-error-arrow.png",backgroundPositionY:"center",backgroundRepeat:"no-repeat",insets:[0,0,0,10]}},"shadow-window":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/shadow/shadow.png",insets:[4,8,8,4]}},"shadow-window-css":{decorator:[qx.ui.decoration.MBoxShadow,qx.ui.decoration.MBackgroundColor],style:{shadowColor:"shadow",shadowBlurRadius:2,
shadowLength:1}},"shadow-popup":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/shadow/shadow-small.png",insets:[0,3,3,0]}},"popup-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBoxShadow,qx.ui.decoration.MBackgroundColor],style:{width:1,color:"border-main",shadowColor:"shadow",shadowBlurRadius:3,shadowLength:1}},"scrollbar-horizontal":{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/scrollbar/scrollbar-bg-horizontal.png",backgroundRepeat:"repeat-x"}},
"scrollbar-vertical":{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/scrollbar/scrollbar-bg-vertical.png",backgroundRepeat:"repeat-y"}},"scrollbar-slider-horizontal":{decorator:qx.ui.decoration.Beveled,style:{backgroundImage:"decoration/scrollbar/scrollbar-button-bg-horizontal.png",backgroundRepeat:"scale",outerColor:"border-main",innerColor:"border-inner-scrollbar",innerOpacity:0.5}},"scrollbar-slider-horizontal-disabled":{decorator:qx.ui.decoration.Beveled,style:{backgroundImage:"decoration/scrollbar/scrollbar-button-bg-horizontal.png",
backgroundRepeat:"scale",outerColor:"border-disabled",innerColor:"border-inner-scrollbar",innerOpacity:0.3}},"scrollbar-slider-vertical":{decorator:qx.ui.decoration.Beveled,style:{backgroundImage:"decoration/scrollbar/scrollbar-button-bg-vertical.png",backgroundRepeat:"scale",outerColor:"border-main",innerColor:"border-inner-scrollbar",innerOpacity:0.5}},"scrollbar-slider-vertical-disabled":{decorator:qx.ui.decoration.Beveled,style:{backgroundImage:"decoration/scrollbar/scrollbar-button-bg-vertical.png",
backgroundRepeat:"scale",outerColor:"border-disabled",innerColor:"border-inner-scrollbar",innerOpacity:0.3}},"scrollbar-horizontal-css":{decorator:[qx.ui.decoration.MLinearBackgroundGradient],style:{gradientStart:["scrollbar-start",0],gradientEnd:["scrollbar-end",100]}},"scrollbar-vertical-css":{include:"scrollbar-horizontal-css",style:{orientation:"horizontal"}},"scrollbar-slider-horizontal-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MLinearBackgroundGradient],style:{gradientStart:["scrollbar-slider-start",
0],gradientEnd:["scrollbar-slider-end",100],color:"border-main",width:1}},"scrollbar-slider-vertical-css":{include:"scrollbar-slider-horizontal-css",style:{orientation:"horizontal"}},"scrollbar-slider-horizontal-disabled-css":{include:"scrollbar-slider-horizontal-css",style:{color:"button-border-disabled"}},"scrollbar-slider-vertical-disabled-css":{include:"scrollbar-slider-vertical-css",style:{color:"button-border-disabled"}},"button-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MLinearBackgroundGradient,
qx.ui.decoration.MBorderRadius],style:{radius:3,color:"border-button",width:1,startColor:"button-start",endColor:"button-end",startColorPosition:35,endColorPosition:100}},"button-disabled-css":{include:"button-css",style:{color:"button-border-disabled",startColor:"button-disabled-start",endColor:"button-disabled-end"}},"button-hovered-css":{include:"button-css",style:{startColor:"button-hovered-start",endColor:"button-hovered-end"}},"button-checked-css":{include:"button-css",style:{endColor:"button-start",
startColor:"button-end"}},"button-pressed-css":{include:"button-css",style:{endColor:"button-hovered-start",startColor:"button-hovered-end"}},"button-focused-css":{decorator:[qx.ui.decoration.MDoubleBorder,qx.ui.decoration.MLinearBackgroundGradient,qx.ui.decoration.MBorderRadius],style:{radius:3,color:"border-button",width:1,innerColor:"button-focused",innerWidth:2,startColor:"button-start",endColor:"button-end",startColorPosition:30,endColorPosition:100}},"button-checked-focused-css":{include:"button-focused-css",
style:{endColor:"button-start",startColor:"button-end"}},"button-invalid-css":{include:"button-css",style:{color:"border-invalid"}},"button-disabled-invalid-css":{include:"button-disabled-css",style:{color:"border-invalid"}},"button-hovered-invalid-css":{include:"button-hovered-css",style:{color:"border-invalid"}},"button-checked-invalid-css":{include:"button-checked-css",style:{color:"border-invalid"}},"button-pressed-invalid-css":{include:"button-pressed-css",style:{color:"border-invalid"}},"button-focused-invalid-css":{include:"button-focused-css",
style:{color:"border-invalid"}},"button-checked-focused-invalid-css":{include:"button-checked-focused-css",style:{color:"border-invalid"}},button:{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/button.png",insets:2}},"button-disabled":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/button-disabled.png",insets:2}},"button-focused":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/button-focused.png",insets:2}},"button-hovered":{decorator:qx.ui.decoration.Grid,
style:{baseImage:"decoration/form/button-hovered.png",insets:2}},"button-pressed":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/button-pressed.png",insets:2}},"button-checked":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/button-checked.png",insets:2}},"button-checked-focused":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/form/button-checked-focused.png",insets:2}},"button-invalid-shadow":{decorator:qx.ui.decoration.Single,style:{color:"invalid",
width:1}},"checkbox-invalid-shadow":{decorator:qx.ui.decoration.Beveled,style:{outerColor:"invalid",innerColor:"border-focused-invalid",insets:[0]}},checkbox:{decorator:[qx.ui.decoration.MDoubleBorder,qx.ui.decoration.MLinearBackgroundGradient,qx.ui.decoration.MBoxShadow],style:{width:1,color:"checkbox-border",innerWidth:1,innerColor:"checkbox-inner",gradientStart:["checkbox-start",0],gradientEnd:["checkbox-end",100],shadowLength:0,shadowBlurRadius:0,shadowColor:"checkbox-focus",insetLeft:4}},"checkbox-hovered":{include:"checkbox",
style:{innerColor:"checkbox-hovered-inner",gradientStart:["checkbox-hovered",0],gradientEnd:["checkbox-hovered",100]}},"checkbox-focused":{include:"checkbox",style:{shadowBlurRadius:4}},"checkbox-disabled":{include:"checkbox",style:{color:"checkbox-disabled-border",innerColor:"checkbox-disabled-inner",gradientStart:["checkbox-disabled-start",0],gradientEnd:["checkbox-disabled-end",100]}},"checkbox-invalid":{include:"checkbox",style:{color:"invalid"}},"checkbox-hovered-invalid":{include:"checkbox-hovered",
style:{color:"invalid",innerColor:"checkbox-hovered-inner-invalid",gradientStart:["checkbox-hovered-invalid",0],gradientEnd:["checkbox-hovered-invalid",100]}},"checkbox-focused-invalid":{include:"checkbox-focused",style:{color:"invalid",shadowColor:"invalid"}},"input-css":{decorator:[qx.ui.decoration.MDoubleBorder,qx.ui.decoration.MLinearBackgroundGradient,qx.ui.decoration.MBackgroundColor],style:{color:"border-input",innerColor:"border-inner-input",innerWidth:1,width:1,backgroundColor:"background-light",
startColor:"input-start",endColor:"input-end",startColorPosition:0,endColorPosition:12,colorPositionUnit:"px"}},"border-invalid-css":{include:"input-css",style:{color:"border-invalid"}},"input-focused-css":{include:"input-css",style:{startColor:"input-focused-start",innerColor:"input-focused-end",endColorPosition:4}},"input-focused-invalid-css":{include:"input-focused-css",style:{innerColor:"input-focused-inner-invalid",color:"border-invalid"}},"input-disabled-css":{include:"input-css",style:{color:"input-border-disabled"}},
input:{decorator:qx.ui.decoration.Beveled,style:{outerColor:"border-input",innerColor:"border-inner-input",innerOpacity:0.5,backgroundImage:"decoration/form/input.png",backgroundRepeat:"repeat-x",backgroundColor:"background-light"}},"input-focused":{decorator:qx.ui.decoration.Beveled,style:{outerColor:"border-input",innerColor:"border-focused",backgroundImage:"decoration/form/input-focused.png",backgroundRepeat:"repeat-x",backgroundColor:"background-light"}},"input-focused-invalid":{decorator:qx.ui.decoration.Beveled,
style:{outerColor:"invalid",innerColor:"border-focused-invalid",backgroundImage:"decoration/form/input-focused.png",backgroundRepeat:"repeat-x",backgroundColor:"background-light",insets:[2]}},"input-disabled":{decorator:qx.ui.decoration.Beveled,style:{outerColor:"border-disabled",innerColor:"border-inner-input",innerOpacity:0.5,backgroundImage:"decoration/form/input.png",backgroundRepeat:"repeat-x",backgroundColor:"background-light"}},toolbar:{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/toolbar/toolbar-gradient.png",
backgroundRepeat:"scale"}},"toolbar-css":{decorator:[qx.ui.decoration.MLinearBackgroundGradient],style:{startColorPosition:40,endColorPosition:60,startColor:"toolbar-start",endColor:"toolbar-end"}},"toolbar-button-hovered":{decorator:qx.ui.decoration.Beveled,style:{outerColor:"border-toolbar-button-outer",innerColor:"border-toolbar-border-inner",backgroundImage:"decoration/form/button-c.png",backgroundRepeat:"scale"}},"toolbar-button-checked":{decorator:qx.ui.decoration.Beveled,style:{outerColor:"border-toolbar-button-outer",
innerColor:"border-toolbar-border-inner",backgroundImage:"decoration/form/button-checked-c.png",backgroundRepeat:"scale"}},"toolbar-button-hovered-css":{decorator:[qx.ui.decoration.MDoubleBorder,qx.ui.decoration.MLinearBackgroundGradient,qx.ui.decoration.MBorderRadius],style:{color:"border-toolbar-button-outer",width:1,innerWidth:1,innerColor:"border-toolbar-border-inner",radius:2,gradientStart:["button-start",30],gradientEnd:["button-end",100]}},"toolbar-button-checked-css":{include:"toolbar-button-hovered-css",
style:{gradientStart:["button-end",30],gradientEnd:["button-start",100]}},"toolbar-separator":{decorator:qx.ui.decoration.Single,style:{widthLeft:1,widthRight:1,colorLeft:"border-toolbar-separator-left",colorRight:"border-toolbar-separator-right",styleLeft:"solid",styleRight:"solid"}},"toolbar-part":{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/toolbar/toolbar-part.gif",backgroundRepeat:"repeat-y"}},"tabview-pane":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tabview-pane.png",
insets:[4,6,7,4]}},"tabview-pane-css":{decorator:[qx.ui.decoration.MBorderRadius,qx.ui.decoration.MLinearBackgroundGradient,qx.ui.decoration.MSingleBorder],style:{width:1,color:"window-border",radius:3,gradientStart:["tabview-start",90],gradientEnd:["tabview-end",100]}},"tabview-page-button-top-active":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-top-active.png"}},"tabview-page-button-top-inactive":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-top-inactive.png"}},
"tabview-page-button-bottom-active":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-bottom-active.png"}},"tabview-page-button-bottom-inactive":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-bottom-inactive.png"}},"tabview-page-button-left-active":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-left-active.png"}},"tabview-page-button-left-inactive":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-left-inactive.png"}},
"tabview-page-button-right-active":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-right-active.png"}},"tabview-page-button-right-inactive":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/tabview/tab-button-right-inactive.png"}},"tabview-page-button-top-active-css":{decorator:[qx.ui.decoration.MBorderRadius,qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBackgroundColor,qx.ui.decoration.MBoxShadow],style:{radius:[3,3,0,0],width:[1,1,0,1],color:"tabview-background",
backgroundColor:"tabview-start",shadowLength:1,shadowColor:"shadow",shadowBlurRadius:2}},"tabview-page-button-top-inactive-css":{decorator:[qx.ui.decoration.MBorderRadius,qx.ui.decoration.MSingleBorder,qx.ui.decoration.MLinearBackgroundGradient],style:{radius:[3,3,0,0],color:"tabview-inactive",colorBottom:"tabview-background",width:1,gradientStart:["tabview-inactive-start",0],gradientEnd:["tabview-inactive-end",100]}},"tabview-page-button-bottom-active-css":{include:"tabview-page-button-top-active-css",
style:{radius:[0,0,3,3],width:[0,1,1,1],backgroundColor:"tabview-inactive-start"}},"tabview-page-button-bottom-inactive-css":{include:"tabview-page-button-top-inactive-css",style:{radius:[0,0,3,3],width:[0,1,1,1],colorBottom:"tabview-inactive",colorTop:"tabview-background"}},"tabview-page-button-left-active-css":{include:"tabview-page-button-top-active-css",style:{radius:[3,0,0,3],width:[1,0,1,1],shadowLength:0,shadowBlurRadius:0}},"tabview-page-button-left-inactive-css":{include:"tabview-page-button-top-inactive-css",
style:{radius:[3,0,0,3],width:[1,0,1,1],colorBottom:"tabview-inactive",colorRight:"tabview-background"}},"tabview-page-button-right-active-css":{include:"tabview-page-button-top-active-css",style:{radius:[0,3,3,0],width:[1,1,1,0],shadowLength:0,shadowBlurRadius:0}},"tabview-page-button-right-inactive-css":{include:"tabview-page-button-top-inactive-css",style:{radius:[0,3,3,0],width:[1,1,1,0],colorBottom:"tabview-inactive",colorLeft:"tabview-background"}},splitpane:{decorator:qx.ui.decoration.Uniform,
style:{backgroundColor:"background-pane",width:3,color:"background-splitpane",style:"solid"}},window:{decorator:qx.ui.decoration.Single,style:{backgroundColor:"background-pane",width:1,color:"border-main",widthTop:0}},"window-captionbar-active":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/window/captionbar-active.png"}},"window-captionbar-inactive":{decorator:qx.ui.decoration.Grid,style:{baseImage:"decoration/window/captionbar-inactive.png"}},"window-statusbar":{decorator:qx.ui.decoration.Grid,
style:{baseImage:"decoration/window/statusbar.png"}},"window-css":{decorator:[qx.ui.decoration.MBorderRadius,qx.ui.decoration.MBoxShadow,qx.ui.decoration.MSingleBorder],style:{radius:[5,5,0,0],shadowBlurRadius:4,shadowLength:2,shadowColor:"shadow"}},"window-incl-statusbar-css":{include:"window-css",style:{radius:[5,5,5,5]}},"window-resize-frame-css":{decorator:[qx.ui.decoration.MBorderRadius,qx.ui.decoration.MSingleBorder],style:{radius:[5,5,0,0],width:1,color:"border-main"}},"window-resize-frame-incl-statusbar-css":{include:"window-resize-frame-css",
style:{radius:[5,5,5,5]}},"window-captionbar-active-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBorderRadius,qx.ui.decoration.MLinearBackgroundGradient],style:{width:1,color:"window-border",colorBottom:"window-border-caption",radius:[5,5,0,0],gradientStart:["window-caption-active-start",30],gradientEnd:["window-caption-active-end",70]}},"window-captionbar-inactive-css":{include:"window-captionbar-active-css",style:{gradientStart:["window-caption-inactive-start",30],gradientEnd:["window-caption-inactive-end",
70]}},"window-statusbar-css":{decorator:[qx.ui.decoration.MBackgroundColor,qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBorderRadius],style:{backgroundColor:"window-statusbar-background",width:[0,1,1,1],color:"window-border",radius:[0,0,5,5]}},"window-pane-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MBackgroundColor],style:{backgroundColor:"background-pane",width:1,color:"window-border",widthTop:0}},table:{decorator:qx.ui.decoration.Single,style:{width:1,color:"border-main",
style:"solid"}},"table-statusbar":{decorator:qx.ui.decoration.Single,style:{widthTop:1,colorTop:"border-main",style:"solid"}},"table-scroller-header":{decorator:qx.ui.decoration.Single,style:{backgroundImage:"decoration/table/header-cell.png",backgroundRepeat:"scale",widthBottom:1,colorBottom:"border-main",style:"solid"}},"table-scroller-header-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MLinearBackgroundGradient],style:{gradientStart:["table-header-start",10],gradientEnd:["table-header-end",
90],widthBottom:1,colorBottom:"border-main"}},"table-header-cell":{decorator:qx.ui.decoration.Single,style:{widthRight:1,colorRight:"border-separator",styleRight:"solid"}},"table-header-cell-hovered":{decorator:qx.ui.decoration.Single,style:{widthRight:1,colorRight:"border-separator",styleRight:"solid",widthBottom:1,colorBottom:"table-header-hovered",styleBottom:"solid"}},"table-scroller-focus-indicator":{decorator:qx.ui.decoration.Single,style:{width:2,color:"table-focus-indicator",style:"solid"}},
"progressive-table-header":{decorator:qx.ui.decoration.Single,style:{width:1,color:"border-main",style:"solid"}},"progressive-table-header-cell":{decorator:qx.ui.decoration.Single,style:{backgroundImage:"decoration/table/header-cell.png",backgroundRepeat:"scale",widthRight:1,colorRight:"progressive-table-header-border-right",style:"solid"}},"progressive-table-header-cell-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MLinearBackgroundGradient],style:{gradientStart:["table-header-start",
10],gradientEnd:["table-header-end",90],widthRight:1,colorRight:"progressive-table-header-border-right"}},menu:{decorator:qx.ui.decoration.Single,style:{backgroundImage:"decoration/menu/background.png",backgroundRepeat:"scale",width:1,color:"border-main",style:"solid"}},"menu-css":{decorator:[qx.ui.decoration.MLinearBackgroundGradient,qx.ui.decoration.MBoxShadow,qx.ui.decoration.MSingleBorder],style:{gradientStart:["menu-start",0],gradientEnd:["menu-end",100],shadowColor:"shadow",shadowBlurRadius:2,
shadowLength:1,width:1,color:"border-main"}},"menu-separator":{decorator:qx.ui.decoration.Single,style:{widthTop:1,colorTop:"menu-separator-top",widthBottom:1,colorBottom:"menu-separator-bottom"}},menubar:{decorator:qx.ui.decoration.Single,style:{backgroundImage:"decoration/menu/bar-background.png",backgroundRepeat:"scale",width:1,color:"border-separator",style:"solid"}},"menubar-css":{decorator:[qx.ui.decoration.MSingleBorder,qx.ui.decoration.MLinearBackgroundGradient],style:{gradientStart:["menubar-start",
0],gradientEnd:["menu-end",100],width:1,color:"border-separator"}},"app-header":{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/app-header.png",backgroundRepeat:"scale"}},progressbar:{decorator:qx.ui.decoration.Single,style:{width:1,color:"border-input"}},"group-item":{decorator:qx.ui.decoration.Background,style:{backgroundImage:"decoration/group-item.png",backgroundRepeat:"scale"}},"group-item-css":{decorator:[qx.ui.decoration.MLinearBackgroundGradient],style:{startColorPosition:0,
endColorPosition:100,startColor:"groupitem-start",endColor:"groupitem-end"}}}})})();
(function(){qx.Theme.define("qx.theme.modern.Color",{colors:{"background-application":"#DFDFDF","background-pane":"#F3F3F3","background-light":"#FCFCFC","background-medium":"#EEEEEE","background-splitpane":"#AFAFAF","background-tip":"#ffffdd","background-tip-error":"#C72B2B","background-odd":"#E4E4E4","htmlarea-background":"white","progressbar-background":"white","text-light":"#909090","text-gray":"#4a4a4a","text-label":"#1a1a1a","text-title":"#314a6e","text-input":"#000000","text-hovered":"#001533",
"text-disabled":"#7B7A7E","text-selected":"#fffefe","text-active":"#26364D","text-inactive":"#404955","text-placeholder":"#CBC8CD","border-inner-scrollbar":"white","border-main":"#4d4d4d","menu-separator-top":"#C5C5C5","menu-separator-bottom":"#FAFAFA","border-separator":"#808080","border-toolbar-button-outer":"#b6b6b6","border-toolbar-border-inner":"#f8f8f8","border-toolbar-separator-right":"#f4f4f4","border-toolbar-separator-left":"#b8b8b8","border-input":"#334866","border-inner-input":"white",
"border-disabled":"#B6B6B6","border-pane":"#00204D","border-button":"#666666","border-column":"#CCCCCC","border-focused":"#99C3FE",invalid:"#990000","border-focused-invalid":"#FF9999","border-dragover":"#33508D","keyboard-focus":"black","table-pane":"#F3F3F3","table-focus-indicator":"#0880EF","table-row-background-focused-selected":"#084FAB","table-row-background-focused":"#80B4EF","table-row-background-selected":"#084FAB","table-row-background-even":"#F3F3F3","table-row-background-odd":"#E4E4E4",
"table-row-selected":"#fffefe","table-row":"#1a1a1a","table-row-line":"#CCC","table-column-line":"#CCC","table-header-hovered":"white","progressive-table-header":"#AAAAAA","progressive-table-header-border-right":"#F2F2F2","progressive-table-row-background-even":"#F4F4F4","progressive-table-row-background-odd":"#E4E4E4","progressive-progressbar-background":"gray","progressive-progressbar-indicator-done":"#CCCCCC","progressive-progressbar-indicator-undone":"white","progressive-progressbar-percent-background":"gray",
"progressive-progressbar-percent-text":"white","selected-start":"#004DAD","selected-end":"#00368A","tabview-background":"#07125A",shadow:qx.core.Environment.get("css.rgba")?"rgba(0, 0, 0, 0.4)":"#999999","pane-start":"#FBFBFB","pane-end":"#F0F0F0","group-background":"#E8E8E8","group-border":"#B4B4B4","radiobutton-background":"#EFEFEF","checkbox-border":"#314A6E","checkbox-focus":"#87AFE7","checkbox-hovered":"#B2D2FF","checkbox-hovered-inner":"#D1E4FF","checkbox-inner":"#EEEEEE","checkbox-start":"#E4E4E4",
"checkbox-end":"#F3F3F3","checkbox-disabled-border":"#787878","checkbox-disabled-inner":"#CACACA","checkbox-disabled-start":"#D0D0D0","checkbox-disabled-end":"#D8D8D8","checkbox-hovered-inner-invalid":"#FAF2F2","checkbox-hovered-invalid":"#F7E9E9","radiobutton-checked":"#005BC3","radiobutton-disabled":"#D5D5D5","radiobutton-checked-disabled":"#7B7B7B","radiobutton-hovered-invalid":"#F7EAEA","tooltip-error":"#C82C2C","scrollbar-start":"#CCCCCC","scrollbar-end":"#F1F1F1","scrollbar-slider-start":"#EEEEEE",
"scrollbar-slider-end":"#C3C3C3","button-border-disabled":"#959595","button-start":"#F0F0F0","button-end":"#AFAFAF","button-disabled-start":"#F4F4F4","button-disabled-end":"#BABABA","button-hovered-start":"#F0F9FE","button-hovered-end":"#8EB8D6","button-focused":"#83BAEA","border-invalid":"#930000","input-start":"#F0F0F0","input-end":"#FBFCFB","input-focused-start":"#D7E7F4","input-focused-end":"#5CB0FD","input-focused-inner-invalid":"#FF6B78","input-border-disabled":"#9B9B9B","input-border-inner":"white",
"toolbar-start":"#EFEFEF","toolbar-end":"#DDDDDD","window-border":"#00204D","window-border-caption":"#727272","window-caption-active-text":"white","window-caption-active-start":"#084FAA","window-caption-active-end":"#003B91","window-caption-inactive-start":"#F2F2F2","window-caption-inactive-end":"#DBDBDB","window-statusbar-background":"#EFEFEF","tabview-start":"#FCFCFC","tabview-end":"#EEEEEE","tabview-inactive":"#777D8D","tabview-inactive-start":"#EAEAEA","tabview-inactive-end":"#CECECE","table-header-start":"#E8E8E8",
"table-header-end":"#B3B3B3","menu-start":"#E8E8E9","menu-end":"#D9D9D9","menubar-start":"#E8E8E8","groupitem-start":"#A7A7A7","groupitem-end":"#949494","groupitem-text":"white","virtual-row-layer-background-even":"white","virtual-row-layer-background-odd":"white"}})})();
(function(){qx.Theme.define("qx.theme.modern.Font",{fonts:{"default":{size:qx.core.Environment.get("os.name")=="win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?12:11,lineHeight:1.4,family:qx.core.Environment.get("os.name")=="osx"?["Lucida Grande"]:qx.core.Environment.get("os.name")=="win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?["Segoe UI","Candara"]:["Tahoma","Liberation Sans","Arial","sans-serif"]},
bold:{size:qx.core.Environment.get("os.name")=="win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?12:11,lineHeight:1.4,family:qx.core.Environment.get("os.name")=="osx"?["Lucida Grande"]:qx.core.Environment.get("os.name")=="win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?["Segoe UI","Candara"]:["Tahoma","Liberation Sans","Arial","sans-serif"],bold:true},small:{size:qx.core.Environment.get("os.name")==
"win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?11:10,lineHeight:1.4,family:qx.core.Environment.get("os.name")=="osx"?["Lucida Grande"]:qx.core.Environment.get("os.name")=="win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?["Segoe UI","Candara"]:["Tahoma","Liberation Sans","Arial","sans-serif"]},monospace:{size:11,lineHeight:1.4,family:qx.core.Environment.get("os.name")=="osx"?["Lucida Console","Monaco"]:
qx.core.Environment.get("os.name")=="win"&&(qx.core.Environment.get("os.version")=="7"||qx.core.Environment.get("os.version")=="vista")?["Consolas"]:["Consolas","DejaVu Sans Mono","Courier New","monospace"]}}})})();(function(){qx.Theme.define("qx.theme.Modern",{title:"Modern",meta:{color:qx.theme.modern.Color,decoration:qx.theme.modern.Decoration,font:qx.theme.modern.Font,appearance:qx.theme.modern.Appearance,icon:qx.theme.icon.Tango}})})();qx.$$loader.init();(function(){if(!window.google||!google.gears){var a=null;if(typeof GearsFactory!="undefined")a=new GearsFactory;else try{a=new ActiveXObject("Gears.Factory"),a.getBuildInfo().indexOf("ie_mobile")!=-1&&a.privateSetGlobalObject(this)}catch(b){if(typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-googlegears"])a=document.createElement("object"),a.style.display="none",a.width=0,a.height=0,a.type="application/x-googlegears",document.documentElement.appendChild(a)}if(a&&(window.google||
(google={}),!google.gears))google.gears={factory:a}}})();var OpenLayers={VERSION_NUMBER:"Release 2.11",singleFile:true,_getScriptLocation:function(){for(var a=/(^|(.*?\/))(OpenLayers.js)(\?|$)/,b=document.getElementsByTagName("script"),c,d="",e=0,f=b.length;e<f;e++)if(c=b[e].getAttribute("src"))if(c=c.match(a)){d=c[1];break}return function(){return d}}()};
OpenLayers.Class=function(){var a=arguments.length,b=arguments[0],c=arguments[a-1],d=typeof c.initialize=="function"?c.initialize:function(){b.prototype.initialize.apply(this,arguments)};a>1?(a=[d,b].concat(Array.prototype.slice.call(arguments).slice(1,a-1),c),OpenLayers.inherit.apply(null,a)):d.prototype=c;return d};OpenLayers.Class.isPrototype=function(){};OpenLayers.Class.create=function(){return function(){arguments&&arguments[0]!=OpenLayers.Class.isPrototype&&this.initialize.apply(this,arguments)}};
OpenLayers.Class.inherit=function(a){var b=function(){a.call(this)},c=[b].concat(Array.prototype.slice.call(arguments));OpenLayers.inherit.apply(null,c);return b.prototype};OpenLayers.inherit=function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;var d,e;for(c=2,d=arguments.length;c<d;c++){e=arguments[c];if(typeof e==="function")e=e.prototype;OpenLayers.Util.extend(a.prototype,e)}};OpenLayers.Util=OpenLayers.Util||{};
OpenLayers.Util.extend=function(a,b){a=a||{};if(b){for(var c in b){var d=b[c];d!==void 0&&(a[c]=d)}if(!(typeof window.Event=="function"&&b instanceof window.Event)&&b.hasOwnProperty&&b.hasOwnProperty("toString"))a.toString=b.toString}return a};
OpenLayers.Protocol=OpenLayers.Class({format:null,options:null,autoDestroy:true,defaultFilter:null,initialize:function(a){a=a||{};OpenLayers.Util.extend(this,a);this.options=a},mergeWithDefaultFilter:function(a){return a&&this.defaultFilter?new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND,filters:[this.defaultFilter,a]}):a||this.defaultFilter||void 0},destroy:function(){this.format=this.options=null},read:function(a){a=a||{};a.filter=this.mergeWithDefaultFilter(a.filter)},create:function(){},
update:function(){},"delete":function(){},commit:function(){},abort:function(){},createCallback:function(a,b,c){return OpenLayers.Function.bind(function(){a.apply(this,[b,c])},this)},CLASS_NAME:"OpenLayers.Protocol"});OpenLayers.Protocol.Response=OpenLayers.Class({code:null,requestType:null,last:true,features:null,reqFeatures:null,priv:null,error:null,initialize:function(a){OpenLayers.Util.extend(this,a)},success:function(){return this.code>0},CLASS_NAME:"OpenLayers.Protocol.Response"});
OpenLayers.Protocol.Response.SUCCESS=1;OpenLayers.Protocol.Response.FAILURE=0;OpenLayers.Protocol.SQL=OpenLayers.Class(OpenLayers.Protocol,{databaseName:"ol",tableName:"ol_vector_features",postReadFiltering:true,initialize:function(a){OpenLayers.Protocol.prototype.initialize.apply(this,[a])},destroy:function(){OpenLayers.Protocol.prototype.destroy.apply(this)},supported:function(){return false},evaluateFilter:function(a,b){return b&&this.postReadFiltering?b.evaluate(a):true},CLASS_NAME:"OpenLayers.Protocol.SQL"});
OpenLayers.Console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},userError:function(a){alert(a)},assert:function(){},dir:function(){},dirxml:function(){},trace:function(){},group:function(){},groupEnd:function(){},time:function(){},timeEnd:function(){},profile:function(){},profileEnd:function(){},count:function(){},CLASS_NAME:"OpenLayers.Console"};
(function(){for(var a=document.getElementsByTagName("script"),b=0,c=a.length;b<c;++b)if(a[b].src.indexOf("firebug.js")!=-1&&console){OpenLayers.Util.extend(OpenLayers.Console,console);break}})();
OpenLayers.Lang={code:null,defaultCode:"en",getCode:function(){OpenLayers.Lang.code||OpenLayers.Lang.setCode();return OpenLayers.Lang.code},setCode:function(a){var b;a||(a=OpenLayers.BROWSER_NAME=="msie"?navigator.userLanguage:navigator.language);a=a.split("-");a[0]=a[0].toLowerCase();typeof OpenLayers.Lang[a[0]]=="object"&&(b=a[0]);if(a[1]){var c=a[0]+"-"+a[1].toUpperCase();typeof OpenLayers.Lang[c]=="object"&&(b=c)}if(!b)OpenLayers.Console.warn("Failed to find OpenLayers.Lang."+a.join("-")+" dictionary, falling back to default language"),
b=OpenLayers.Lang.defaultCode;OpenLayers.Lang.code=b},translate:function(a,b){var c=OpenLayers.Lang[OpenLayers.Lang.getCode()];(c=c&&c[a])||(c=a);b&&(c=OpenLayers.String.format(c,b));return c}};OpenLayers.i18n=OpenLayers.Lang.translate;
OpenLayers.String={startsWith:function(a,b){return a.indexOf(b)==0},contains:function(a,b){return a.indexOf(b)!=-1},trim:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(a){for(var a=a.split("-"),b=a[0],c=1,d=a.length;c<d;c++){var e=a[c];b+=e.charAt(0).toUpperCase()+e.substring(1)}return b},format:function(a,b,c){b||(b=window);return a.replace(OpenLayers.String.tokenRegEx,function(a,e){for(var f,g=e.split(/\.+/),h=0;h<g.length;h++)h==0&&(f=b),f=f[g[h]];typeof f=="function"&&
(f=c?f.apply(null,c):f());return typeof f=="undefined"?"undefined":f})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(a){return OpenLayers.String.numberRegEx.test(a)},numericIf:function(a){return OpenLayers.String.isNumeric(a)?parseFloat(a):a}};
if(!String.prototype.startsWith)String.prototype.startsWith=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.startsWith"}));return OpenLayers.String.startsWith(this,a)};if(!String.prototype.contains)String.prototype.contains=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.contains"}));return OpenLayers.String.contains(this,a)};
if(!String.prototype.trim)String.prototype.trim=function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.trim"}));return OpenLayers.String.trim(this)};if(!String.prototype.camelize)String.prototype.camelize=function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.camelize"}));return OpenLayers.String.camelize(this)};
OpenLayers.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(a,b){var c=0;b>0&&(c=parseFloat(a.toPrecision(b)));return c},format:function(a,b,c,d){b=typeof b!="undefined"?b:0;c=typeof c!="undefined"?c:OpenLayers.Number.thousandsSeparator;d=typeof d!="undefined"?d:OpenLayers.Number.decimalSeparator;b!=null&&(a=parseFloat(a.toFixed(b)));var e=a.toString().split(".");e.length==1&&b==null&&(b=0);a=e[0];if(c)for(var f=/(-?[0-9]+)([0-9]{3})/;f.test(a);)a=a.replace(f,"$1"+c+"$2");
b==0?b=a:(c=e.length>1?e[1]:"0",b!=null&&(c+=Array(b-c.length+1).join("0")),b=a+d+c);return b}};if(!Number.prototype.limitSigDigs)Number.prototype.limitSigDigs=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Number.limitSigDigs"}));return OpenLayers.Number.limitSigDigs(this,a)};
OpenLayers.Function={bind:function(a,b){var c=Array.prototype.slice.apply(arguments,[2]);return function(){var d=c.concat(Array.prototype.slice.apply(arguments,[0]));return a.apply(b,d)}},bindAsEventListener:function(a,b){return function(c){return a.call(b,c||window.event)}},False:function(){return false},True:function(){return true},Void:function(){}};
if(!Function.prototype.bind)Function.prototype.bind=function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Function.bind"}));Array.prototype.unshift.apply(arguments,[this]);return OpenLayers.Function.bind.apply(null,arguments)};
if(!Function.prototype.bindAsEventListener)Function.prototype.bindAsEventListener=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Function.bindAsEventListener"}));return OpenLayers.Function.bindAsEventListener(this,a)};OpenLayers.Array={filter:function(a,b,c){var d=[];if(Array.prototype.filter)d=a.filter(b,c);else{var e=a.length;if(typeof b!="function")throw new TypeError;for(var f=0;f<e;f++)if(f in a){var g=a[f];b.call(c,g,f,a)&&d.push(g)}}return d}};
OpenLayers.Bounds=OpenLayers.Class({left:null,bottom:null,right:null,top:null,centerLonLat:null,initialize:function(a,b,c,d){if(a!=null)this.left=OpenLayers.Util.toFloat(a);if(b!=null)this.bottom=OpenLayers.Util.toFloat(b);if(c!=null)this.right=OpenLayers.Util.toFloat(c);if(d!=null)this.top=OpenLayers.Util.toFloat(d)},clone:function(){return new OpenLayers.Bounds(this.left,this.bottom,this.right,this.top)},equals:function(a){var b=false;a!=null&&(b=this.left==a.left&&this.right==a.right&&this.top==
a.top&&this.bottom==a.bottom);return b},toString:function(){return[this.left,this.bottom,this.right,this.top].join(",")},toArray:function(a){return a===true?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]},toBBOX:function(a,b){a==null&&(a=6);var c=Math.pow(10,a),d=Math.round(this.left*c)/c,e=Math.round(this.bottom*c)/c,f=Math.round(this.right*c)/c,c=Math.round(this.top*c)/c;return b===true?e+","+d+","+c+","+f:d+","+e+","+f+","+c},toGeometry:function(){return new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing([new OpenLayers.Geometry.Point(this.left,
this.bottom),new OpenLayers.Geometry.Point(this.right,this.bottom),new OpenLayers.Geometry.Point(this.right,this.top),new OpenLayers.Geometry.Point(this.left,this.top)])])},getWidth:function(){return this.right-this.left},getHeight:function(){return this.top-this.bottom},getSize:function(){return new OpenLayers.Size(this.getWidth(),this.getHeight())},getCenterPixel:function(){return new OpenLayers.Pixel((this.left+this.right)/2,(this.bottom+this.top)/2)},getCenterLonLat:function(){if(!this.centerLonLat)this.centerLonLat=
new OpenLayers.LonLat((this.left+this.right)/2,(this.bottom+this.top)/2);return this.centerLonLat},scale:function(a,b){b==null&&(b=this.getCenterLonLat());var c,d;b.CLASS_NAME=="OpenLayers.LonLat"?(c=b.lon,d=b.lat):(c=b.x,d=b.y);return new OpenLayers.Bounds((this.left-c)*a+c,(this.bottom-d)*a+d,(this.right-c)*a+c,(this.top-d)*a+d)},add:function(a,b){if(a==null||b==null){var c=OpenLayers.i18n("boundsAddError");OpenLayers.Console.error(c);return null}return new OpenLayers.Bounds(this.left+a,this.bottom+
b,this.right+a,this.top+b)},extend:function(a){var b=null;if(a){switch(a.CLASS_NAME){case "OpenLayers.LonLat":b=new OpenLayers.Bounds(a.lon,a.lat,a.lon,a.lat);break;case "OpenLayers.Geometry.Point":b=new OpenLayers.Bounds(a.x,a.y,a.x,a.y);break;case "OpenLayers.Bounds":b=a}if(b){this.centerLonLat=null;if(this.left==null||b.left<this.left)this.left=b.left;if(this.bottom==null||b.bottom<this.bottom)this.bottom=b.bottom;if(this.right==null||b.right>this.right)this.right=b.right;if(this.top==null||b.top>
this.top)this.top=b.top}}},containsLonLat:function(a,b){return this.contains(a.lon,a.lat,b)},containsPixel:function(a,b){return this.contains(a.x,a.y,b)},contains:function(a,b,c){c==null&&(c=true);if(a==null||b==null)return false;var a=OpenLayers.Util.toFloat(a),b=OpenLayers.Util.toFloat(b),d=false;return d=c?a>=this.left&&a<=this.right&&b>=this.bottom&&b<=this.top:a>this.left&&a<this.right&&b>this.bottom&&b<this.top},intersectsBounds:function(a,b){b==null&&(b=true);var c=false,d=this.left==a.right||
this.right==a.left||this.top==a.bottom||this.bottom==a.top;if(b||!d)var c=a.top>=this.bottom&&a.top<=this.top||this.top>a.bottom&&this.top<a.top,d=a.left>=this.left&&a.left<=this.right||this.left>=a.left&&this.left<=a.right,e=a.right>=this.left&&a.right<=this.right||this.right>=a.left&&this.right<=a.right,c=(a.bottom>=this.bottom&&a.bottom<=this.top||this.bottom>=a.bottom&&this.bottom<=a.top||c)&&(d||e);return c},containsBounds:function(a,b,c){b==null&&(b=false);c==null&&(c=true);var d=this.contains(a.left,
a.bottom,c),e=this.contains(a.right,a.bottom,c),f=this.contains(a.left,a.top,c),a=this.contains(a.right,a.top,c);return b?d||e||f||a:d&&e&&f&&a},determineQuadrant:function(a){var b="",c=this.getCenterLonLat();b+=a.lat<c.lat?"b":"t";b+=a.lon<c.lon?"l":"r";return b},transform:function(a,b){this.centerLonLat=null;var c=OpenLayers.Projection.transform({x:this.left,y:this.bottom},a,b),d=OpenLayers.Projection.transform({x:this.right,y:this.bottom},a,b),e=OpenLayers.Projection.transform({x:this.left,y:this.top},
a,b),f=OpenLayers.Projection.transform({x:this.right,y:this.top},a,b);this.left=Math.min(c.x,e.x);this.bottom=Math.min(c.y,d.y);this.right=Math.max(d.x,f.x);this.top=Math.max(e.y,f.y);return this},wrapDateLine:function(a,b){var b=b||{},c=b.leftTolerance||0,d=b.rightTolerance||0,e=this.clone();if(a){for(;e.left<a.left&&e.right-d<=a.left;)e=e.add(a.getWidth(),0);for(;e.left+c>=a.right&&e.right>a.right;)e=e.add(-a.getWidth(),0)}return e},CLASS_NAME:"OpenLayers.Bounds"});
OpenLayers.Bounds.fromString=function(a,b){var c=a.split(",");return OpenLayers.Bounds.fromArray(c,b)};OpenLayers.Bounds.fromArray=function(a,b){return b===true?new OpenLayers.Bounds(parseFloat(a[1]),parseFloat(a[0]),parseFloat(a[3]),parseFloat(a[2])):new OpenLayers.Bounds(parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]))};OpenLayers.Bounds.fromSize=function(a){return new OpenLayers.Bounds(0,a.h,a.w,0)};
OpenLayers.Bounds.oppositeQuadrant=function(a){var b="";b+=a.charAt(0)=="t"?"b":"t";b+=a.charAt(1)=="l"?"r":"l";return b};
OpenLayers.Element={visible:function(a){return OpenLayers.Util.getElement(a).style.display!="none"},toggle:function(){for(var a=0,b=arguments.length;a<b;a++){var c=OpenLayers.Util.getElement(arguments[a]),d=OpenLayers.Element.visible(c)?"hide":"show";OpenLayers.Element[d](c)}},hide:function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"element.style.display = 'none';"}));for(var a=0,b=arguments.length;a<b;a++){var c=OpenLayers.Util.getElement(arguments[a]);if(c)c.style.display=
"none"}},show:function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"element.style.display = '';"}));for(var a=0,b=arguments.length;a<b;a++){var c=OpenLayers.Util.getElement(arguments[a]);if(c)c.style.display=""}},remove:function(a){a=OpenLayers.Util.getElement(a);a.parentNode.removeChild(a)},getHeight:function(a){a=OpenLayers.Util.getElement(a);return a.offsetHeight},getDimensions:function(a){a=OpenLayers.Util.getElement(a);if(OpenLayers.Element.getStyle(a,"display")!=
"none")return{width:a.offsetWidth,height:a.offsetHeight};var b=a.style,c=b.visibility,d=b.position,e=b.display;b.visibility="hidden";b.position="absolute";b.display="";var f=a.clientWidth,a=a.clientHeight;b.display=e;b.position=d;b.visibility=c;return{width:f,height:a}},hasClass:function(a,b){var c=a.className;return!!c&&RegExp("(^|\\s)"+b+"(\\s|$)").test(c)},addClass:function(a,b){OpenLayers.Element.hasClass(a,b)||(a.className+=(a.className?" ":"")+b);return a},removeClass:function(a,b){var c=a.className;
if(c)a.className=OpenLayers.String.trim(c.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)")," "));return a},toggleClass:function(a,b){OpenLayers.Element.hasClass(a,b)?OpenLayers.Element.removeClass(a,b):OpenLayers.Element.addClass(a,b);return a},getStyle:function(a,b){var a=OpenLayers.Util.getElement(a),c=null;if(a&&a.style){c=a.style[OpenLayers.String.camelize(b)];c||(document.defaultView&&document.defaultView.getComputedStyle?c=(c=document.defaultView.getComputedStyle(a,null))?c.getPropertyValue(b):null:
a.currentStyle&&(c=a.currentStyle[OpenLayers.String.camelize(b)]));var d=["left","top","right","bottom"];window.opera&&OpenLayers.Util.indexOf(d,b)!=-1&&OpenLayers.Element.getStyle(a,"position")=="static"&&(c="auto")}return c=="auto"?null:c}};
OpenLayers.LonLat=OpenLayers.Class({lon:0,lat:0,initialize:function(a,b){this.lon=OpenLayers.Util.toFloat(a);this.lat=OpenLayers.Util.toFloat(b)},toString:function(){return"lon="+this.lon+",lat="+this.lat},toShortString:function(){return this.lon+", "+this.lat},clone:function(){return new OpenLayers.LonLat(this.lon,this.lat)},add:function(a,b){if(a==null||b==null){var c=OpenLayers.i18n("lonlatAddError");OpenLayers.Console.error(c);return null}return new OpenLayers.LonLat(this.lon+OpenLayers.Util.toFloat(a),
this.lat+OpenLayers.Util.toFloat(b))},equals:function(a){var b=false;a!=null&&(b=this.lon==a.lon&&this.lat==a.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(a.lon)&&isNaN(a.lat));return b},transform:function(a,b){var c=OpenLayers.Projection.transform({x:this.lon,y:this.lat},a,b);this.lon=c.x;this.lat=c.y;return this},wrapDateLine:function(a){var b=this.clone();if(a){for(;b.lon<a.left;)b.lon+=a.getWidth();for(;b.lon>a.right;)b.lon-=a.getWidth()}return b},CLASS_NAME:"OpenLayers.LonLat"});
OpenLayers.LonLat.fromString=function(a){a=a.split(",");return new OpenLayers.LonLat(a[0],a[1])};OpenLayers.LonLat.fromArray=function(a){var b=OpenLayers.Util.isArray(a);return new OpenLayers.LonLat(b&&a[0],b&&a[1])};
OpenLayers.Pixel=OpenLayers.Class({x:0,y:0,initialize:function(a,b){this.x=parseFloat(a);this.y=parseFloat(b)},toString:function(){return"x="+this.x+",y="+this.y},clone:function(){return new OpenLayers.Pixel(this.x,this.y)},equals:function(a){var b=false;a!=null&&(b=this.x==a.x&&this.y==a.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(a.x)&&isNaN(a.y));return b},distanceTo:function(a){return Math.sqrt(Math.pow(this.x-a.x,2)+Math.pow(this.y-a.y,2))},add:function(a,b){if(a==null||b==null){var c=OpenLayers.i18n("pixelAddError");
OpenLayers.Console.error(c);return null}return new OpenLayers.Pixel(this.x+a,this.y+b)},offset:function(a){var b=this.clone();a&&(b=this.add(a.x,a.y));return b},CLASS_NAME:"OpenLayers.Pixel"});
OpenLayers.Size=OpenLayers.Class({w:0,h:0,initialize:function(a,b){this.w=parseFloat(a);this.h=parseFloat(b)},toString:function(){return"w="+this.w+",h="+this.h},clone:function(){return new OpenLayers.Size(this.w,this.h)},equals:function(a){var b=false;a!=null&&(b=this.w==a.w&&this.h==a.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(a.w)&&isNaN(a.h));return b},CLASS_NAME:"OpenLayers.Size"});OpenLayers.Util=OpenLayers.Util||{};
OpenLayers.Util.getElement=function(){for(var a=[],b=0,c=arguments.length;b<c;b++){var d=arguments[b];typeof d=="string"&&(d=document.getElementById(d));if(arguments.length==1)return d;a.push(d)}return a};OpenLayers.Util.isElement=function(a){return!!(a&&a.nodeType===1)};OpenLayers.Util.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"};if(typeof window.$==="undefined")window.$=OpenLayers.Util.getElement;
OpenLayers.Util.removeItem=function(a,b){for(var c=a.length-1;c>=0;c--)a[c]==b&&a.splice(c,1);return a};OpenLayers.Util.clearArray=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"array = []"}));a.length=0};OpenLayers.Util.indexOf=function(a,b){if(typeof a.indexOf=="function")return a.indexOf(b);else{for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}};
OpenLayers.Util.modifyDOMElement=function(a,b,c,d,e,f,g,h){if(b)a.id=b;if(c)a.style.left=c.x+"px",a.style.top=c.y+"px";if(d)a.style.width=d.w+"px",a.style.height=d.h+"px";if(e)a.style.position=e;if(f)a.style.border=f;if(g)a.style.overflow=g;if(parseFloat(h)>=0&&parseFloat(h)<1)a.style.filter="alpha(opacity="+h*100+")",a.style.opacity=h;else if(parseFloat(h)==1)a.style.filter="",a.style.opacity=""};
OpenLayers.Util.createDiv=function(a,b,c,d,e,f,g,h){var i=document.createElement("div");if(d)i.style.backgroundImage="url("+d+")";a||(a=OpenLayers.Util.createUniqueID("OpenLayersDiv"));e||(e="absolute");OpenLayers.Util.modifyDOMElement(i,a,b,c,e,f,g,h);return i};
OpenLayers.Util.createImage=function(a,b,c,d,e,f,g,h){var i=document.createElement("img");a||(a=OpenLayers.Util.createUniqueID("OpenLayersDiv"));e||(e="relative");OpenLayers.Util.modifyDOMElement(i,a,b,c,e,f,null,g);if(h)i.style.display="none",OpenLayers.Event.observe(i,"load",OpenLayers.Function.bind(OpenLayers.Util.onImageLoad,i)),OpenLayers.Event.observe(i,"error",OpenLayers.Function.bind(OpenLayers.Util.onImageLoadError,i));i.style.alt=a;i.galleryImg="no";if(d)i.src=d;return i};
OpenLayers.Util.setOpacity=function(a,b){OpenLayers.Util.modifyDOMElement(a,null,null,null,null,null,null,b)};OpenLayers.Util.onImageLoad=function(){if(!this.viewRequestID||this.map&&this.viewRequestID==this.map.viewRequestID)this.style.display="";OpenLayers.Element.removeClass(this,"olImageLoadError")};OpenLayers.IMAGE_RELOAD_ATTEMPTS=0;
OpenLayers.Util.onImageLoadError=function(){this._attempts=this._attempts?this._attempts+1:1;if(this._attempts<=OpenLayers.IMAGE_RELOAD_ATTEMPTS){var a=this.urls;if(a&&OpenLayers.Util.isArray(a)&&a.length>1){var b=this.src.toString(),c,d;for(d=0;c=a[d];d++)if(b.indexOf(c)!=-1)break;var e=Math.floor(a.length*Math.random()),e=a[e];for(d=0;e==c&&d++<4;)e=Math.floor(a.length*Math.random()),e=a[e];this.src=b.replace(c,e)}else this.src=this.src}else OpenLayers.Element.addClass(this,"olImageLoadError");
this.style.display=""};OpenLayers.Util.alphaHackNeeded=null;OpenLayers.Util.alphaHack=function(){if(OpenLayers.Util.alphaHackNeeded==null){var a=navigator.appVersion.split("MSIE"),a=parseFloat(a[1]),b=false;try{b=!!document.body.filters}catch(c){}OpenLayers.Util.alphaHackNeeded=b&&a>=5.5&&a<7}return OpenLayers.Util.alphaHackNeeded};
OpenLayers.Util.modifyAlphaImageDiv=function(a,b,c,d,e,f,g,h,i){OpenLayers.Util.modifyDOMElement(a,b,c,d,f,null,null,i);b=a.childNodes[0];if(e)b.src=e;OpenLayers.Util.modifyDOMElement(b,a.id+"_innerImage",null,d,"relative",g);if(OpenLayers.Util.alphaHack()){if(a.style.display!="none")a.style.display="inline-block";h==null&&(h="scale");a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b.src+"', sizingMethod='"+h+"')";parseFloat(a.style.opacity)>=0&&parseFloat(a.style.opacity)<
1&&(a.style.filter+=" alpha(opacity="+a.style.opacity*100+")");b.style.filter="alpha(opacity=0)"}};
OpenLayers.Util.createAlphaImageDiv=function(a,b,c,d,e,f,g,h,i){var j=OpenLayers.Util.createDiv(),k=OpenLayers.Util.createImage(null,null,null,null,null,null,null,false);j.appendChild(k);if(i)k.style.display="none",OpenLayers.Event.observe(k,"load",OpenLayers.Function.bind(OpenLayers.Util.onImageLoad,j)),OpenLayers.Event.observe(k,"error",OpenLayers.Function.bind(OpenLayers.Util.onImageLoadError,j));OpenLayers.Util.modifyAlphaImageDiv(j,a,b,c,d,e,f,g,h);return j};
OpenLayers.Util.upperCaseObject=function(a){var b={},c;for(c in a)b[c.toUpperCase()]=a[c];return b};OpenLayers.Util.applyDefaults=function(a,b){var a=a||{},c=typeof window.Event=="function"&&b instanceof window.Event,d;for(d in b)if(a[d]===void 0||!c&&b.hasOwnProperty&&b.hasOwnProperty(d)&&!a.hasOwnProperty(d))a[d]=b[d];if(!c&&b&&b.hasOwnProperty&&b.hasOwnProperty("toString")&&!a.hasOwnProperty("toString"))a.toString=b.toString;return a};
OpenLayers.Util.getParameterString=function(a){var b=[],c;for(c in a){var d=a[c];if(d!=null&&typeof d!="function"){if(typeof d=="object"&&d.constructor==Array){for(var e=[],f,g=0,h=d.length;g<h;g++)f=d[g],e.push(encodeURIComponent(f===null||f===void 0?"":f));d=e.join(",")}else d=encodeURIComponent(d);b.push(encodeURIComponent(c)+"="+d)}}return b.join("&")};OpenLayers.Util.urlAppend=function(a,b){var c=a;if(b){var d=(a+" ").split(/[?&]/);c+=d.pop()===" "?b:d.length?"&"+b:"?"+b}return c};
OpenLayers.ImgPath="";OpenLayers.Util.getImagesLocation=function(){return OpenLayers.ImgPath||OpenLayers._getScriptLocation()+"img/"};OpenLayers.Util.Try=function(){for(var a=null,b=0,c=arguments.length;b<c;b++){var d=arguments[b];try{a=d();break}catch(e){}}return a};OpenLayers.Util.getXmlNodeValue=function(a){var b=null;OpenLayers.Util.Try(function(){b=a.text;if(!b)b=a.textContent;if(!b)b=a.firstChild.nodeValue},function(){b=a.textContent});return b};
OpenLayers.Util.mouseLeft=function(a,b){for(var c=a.relatedTarget?a.relatedTarget:a.toElement;c!=b&&c!=null;)c=c.parentNode;return c!=b};OpenLayers.Util.DEFAULT_PRECISION=14;OpenLayers.Util.toFloat=function(a,b){if(b==null)b=OpenLayers.Util.DEFAULT_PRECISION;typeof a!=="number"&&(a=parseFloat(a));return b===0?a:parseFloat(a.toPrecision(b))};OpenLayers.Util.rad=function(a){return a*Math.PI/180};OpenLayers.Util.deg=function(a){return a*180/Math.PI};
OpenLayers.Util.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563};
OpenLayers.Util.distVincenty=function(a,b){for(var c=OpenLayers.Util.VincentyConstants,d=c.a,e=c.b,c=c.f,f=OpenLayers.Util.rad(b.lon-a.lon),g=Math.atan((1-c)*Math.tan(OpenLayers.Util.rad(a.lat))),h=Math.atan((1-c)*Math.tan(OpenLayers.Util.rad(b.lat))),i=Math.sin(g),g=Math.cos(g),j=Math.sin(h),h=Math.cos(h),k=f,l=2*Math.PI,m=20;Math.abs(k-l)>1.0E-12&&--m>0;){var n=Math.sin(k),o=Math.cos(k),r=Math.sqrt(h*n*h*n+(g*j-i*h*o)*(g*j-i*h*o));if(r==0)return 0;var o=i*j+g*h*o,q=Math.atan2(r,o),p=Math.asin(g*
h*n/r),s=Math.cos(p)*Math.cos(p),n=o-2*i*j/s,u=c/16*s*(4+c*(4-3*s)),l=k,k=f+(1-u)*c*Math.sin(p)*(q+u*r*(n+u*o*(-1+2*n*n)))}if(m==0)return NaN;d=s*(d*d-e*e)/(e*e);c=d/1024*(256+d*(-128+d*(74-47*d)));return(e*(1+d/16384*(4096+d*(-768+d*(320-175*d))))*(q-c*r*(n+c/4*(o*(-1+2*n*n)-c/6*n*(-3+4*r*r)*(-3+4*n*n))))).toFixed(3)/1E3};
OpenLayers.Util.destinationVincenty=function(a,b,c){for(var d=OpenLayers.Util,e=d.VincentyConstants,f=e.a,g=e.b,h=e.f,e=a.lon,a=a.lat,i=d.rad(b),b=Math.sin(i),i=Math.cos(i),a=(1-h)*Math.tan(d.rad(a)),j=1/Math.sqrt(1+a*a),k=a*j,l=Math.atan2(a,i),a=j*b,m=1-a*a,f=m*(f*f-g*g)/(g*g),n=1+f/16384*(4096+f*(-768+f*(320-175*f))),o=f/1024*(256+f*(-128+f*(74-47*f))),f=c/(g*n),r=2*Math.PI;Math.abs(f-r)>1.0E-12;)var q=Math.cos(2*l+f),p=Math.sin(f),s=Math.cos(f),u=o*p*(q+o/4*(s*(-1+2*q*q)-o/6*q*(-3+4*p*p)*(-3+4*
q*q))),r=f,f=c/(g*n)+u;c=k*p-j*s*i;g=Math.atan2(k*s+j*p*i,(1-h)*Math.sqrt(a*a+c*c));b=Math.atan2(p*b,j*s-k*p*i);i=h/16*m*(4+h*(4-3*m));q=b-(1-i)*h*a*(f+i*p*(q+i*s*(-1+2*q*q)));Math.atan2(a,-c);return new OpenLayers.LonLat(e+d.deg(q),d.deg(g))};
OpenLayers.Util.getParameters=function(a){var a=a===null||a===void 0?window.location.href:a,b="";if(OpenLayers.String.contains(a,"?"))var b=a.indexOf("?")+1,c=OpenLayers.String.contains(a,"#")?a.indexOf("#"):a.length,b=a.substring(b,c);for(var a={},b=b.split(/[&;]/),c=0,d=b.length;c<d;++c){var e=b[c].split("=");if(e[0]){var f=e[0];try{f=decodeURIComponent(f)}catch(g){f=unescape(f)}e=(e[1]||"").replace(/\+/g," ");try{e=decodeURIComponent(e)}catch(h){e=unescape(e)}e=e.split(",");e.length==1&&(e=e[0]);
a[f]=e}}return a};OpenLayers.Util.getArgs=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Util.getParameters"}));return OpenLayers.Util.getParameters(a)};OpenLayers.Util.lastSeqID=0;OpenLayers.Util.createUniqueID=function(a){a==null&&(a="id_");OpenLayers.Util.lastSeqID+=1;return a+OpenLayers.Util.lastSeqID};OpenLayers.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36};OpenLayers.INCHES_PER_UNIT["in"]=OpenLayers.INCHES_PER_UNIT.inches;
OpenLayers.INCHES_PER_UNIT.degrees=OpenLayers.INCHES_PER_UNIT.dd;OpenLayers.INCHES_PER_UNIT.nmi=1852*OpenLayers.INCHES_PER_UNIT.m;OpenLayers.METERS_PER_INCH=0.0254000508001016;
OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{Inch:OpenLayers.INCHES_PER_UNIT.inches,Meter:1/OpenLayers.METERS_PER_INCH,Foot:0.3048006096012192/OpenLayers.METERS_PER_INCH,IFoot:0.3048/OpenLayers.METERS_PER_INCH,ClarkeFoot:0.3047972651151/OpenLayers.METERS_PER_INCH,SearsFoot:0.30479947153867626/OpenLayers.METERS_PER_INCH,GoldCoastFoot:0.3047997101815088/OpenLayers.METERS_PER_INCH,IInch:0.0254/OpenLayers.METERS_PER_INCH,MicroInch:2.54E-5/OpenLayers.METERS_PER_INCH,Mil:2.54E-8/OpenLayers.METERS_PER_INCH,
Centimeter:0.01/OpenLayers.METERS_PER_INCH,Kilometer:1E3/OpenLayers.METERS_PER_INCH,Yard:0.9144018288036576/OpenLayers.METERS_PER_INCH,SearsYard:0.914398414616029/OpenLayers.METERS_PER_INCH,IndianYard:0.9143985307444408/OpenLayers.METERS_PER_INCH,IndianYd37:0.91439523/OpenLayers.METERS_PER_INCH,IndianYd62:0.9143988/OpenLayers.METERS_PER_INCH,IndianYd75:0.9143985/OpenLayers.METERS_PER_INCH,IndianFoot:0.30479951/OpenLayers.METERS_PER_INCH,IndianFt37:0.30479841/OpenLayers.METERS_PER_INCH,IndianFt62:0.3047996/
OpenLayers.METERS_PER_INCH,IndianFt75:0.3047995/OpenLayers.METERS_PER_INCH,Mile:1609.3472186944373/OpenLayers.METERS_PER_INCH,IYard:0.9144/OpenLayers.METERS_PER_INCH,IMile:1609.344/OpenLayers.METERS_PER_INCH,NautM:1852/OpenLayers.METERS_PER_INCH,"Lat-66":110943.31648893273/OpenLayers.METERS_PER_INCH,"Lat-83":110946.25736872235/OpenLayers.METERS_PER_INCH,Decimeter:0.1/OpenLayers.METERS_PER_INCH,Millimeter:0.0010/OpenLayers.METERS_PER_INCH,Dekameter:10/OpenLayers.METERS_PER_INCH,Decameter:10/OpenLayers.METERS_PER_INCH,
Hectometer:100/OpenLayers.METERS_PER_INCH,GermanMeter:1.0000135965/OpenLayers.METERS_PER_INCH,CaGrid:0.999738/OpenLayers.METERS_PER_INCH,ClarkeChain:20.1166194976/OpenLayers.METERS_PER_INCH,GunterChain:20.11684023368047/OpenLayers.METERS_PER_INCH,BenoitChain:20.116782494375872/OpenLayers.METERS_PER_INCH,SearsChain:20.11676512155/OpenLayers.METERS_PER_INCH,ClarkeLink:0.201166194976/OpenLayers.METERS_PER_INCH,GunterLink:0.2011684023368047/OpenLayers.METERS_PER_INCH,BenoitLink:0.20116782494375873/OpenLayers.METERS_PER_INCH,
SearsLink:0.2011676512155/OpenLayers.METERS_PER_INCH,Rod:5.02921005842012/OpenLayers.METERS_PER_INCH,IntnlChain:20.1168/OpenLayers.METERS_PER_INCH,IntnlLink:0.201168/OpenLayers.METERS_PER_INCH,Perch:5.02921005842012/OpenLayers.METERS_PER_INCH,Pole:5.02921005842012/OpenLayers.METERS_PER_INCH,Furlong:201.1684023368046/OpenLayers.METERS_PER_INCH,Rood:3.778266898/OpenLayers.METERS_PER_INCH,CapeFoot:0.3047972615/OpenLayers.METERS_PER_INCH,Brealey:375/OpenLayers.METERS_PER_INCH,ModAmFt:0.304812252984506/
OpenLayers.METERS_PER_INCH,Fathom:1.8288/OpenLayers.METERS_PER_INCH,"NautM-UK":1853.184/OpenLayers.METERS_PER_INCH,"50kilometers":5E4/OpenLayers.METERS_PER_INCH,"150kilometers":15E4/OpenLayers.METERS_PER_INCH});
OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{mm:OpenLayers.INCHES_PER_UNIT.Meter/1E3,cm:OpenLayers.INCHES_PER_UNIT.Meter/100,dm:OpenLayers.INCHES_PER_UNIT.Meter*100,km:OpenLayers.INCHES_PER_UNIT.Meter*1E3,kmi:OpenLayers.INCHES_PER_UNIT.nmi,fath:OpenLayers.INCHES_PER_UNIT.Fathom,ch:OpenLayers.INCHES_PER_UNIT.IntnlChain,link:OpenLayers.INCHES_PER_UNIT.IntnlLink,"us-in":OpenLayers.INCHES_PER_UNIT.inches,"us-ft":OpenLayers.INCHES_PER_UNIT.Foot,"us-yd":OpenLayers.INCHES_PER_UNIT.Yard,"us-ch":OpenLayers.INCHES_PER_UNIT.GunterChain,
"us-mi":OpenLayers.INCHES_PER_UNIT.Mile,"ind-yd":OpenLayers.INCHES_PER_UNIT.IndianYd37,"ind-ft":OpenLayers.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/OpenLayers.METERS_PER_INCH});OpenLayers.DOTS_PER_INCH=72;OpenLayers.Util.normalizeScale=function(a){return a>1?1/a:a};OpenLayers.Util.getResolutionFromScale=function(a,b){var c;a&&(b==null&&(b="degrees"),c=1/(OpenLayers.Util.normalizeScale(a)*OpenLayers.INCHES_PER_UNIT[b]*OpenLayers.DOTS_PER_INCH));return c};
OpenLayers.Util.getScaleFromResolution=function(a,b){b==null&&(b="degrees");return a*OpenLayers.INCHES_PER_UNIT[b]*OpenLayers.DOTS_PER_INCH};OpenLayers.Util.safeStopPropagation=function(a){OpenLayers.Event.stop(a,true)};
OpenLayers.Util.pagePosition=function(a){var b=[0,0],c=OpenLayers.Util.getViewportElement();if(!a||a==window||a==c)return b;var d=OpenLayers.IS_GECKO&&document.getBoxObjectFor&&OpenLayers.Element.getStyle(a,"position")=="absolute"&&(a.style.top==""||a.style.left==""),e=null;if(a.getBoundingClientRect)a=a.getBoundingClientRect(),e=c.scrollTop,b[0]=a.left+c.scrollLeft,b[1]=a.top+e;else if(document.getBoxObjectFor&&!d)a=document.getBoxObjectFor(a),c=document.getBoxObjectFor(c),b[0]=a.screenX-c.screenX,
b[1]=a.screenY-c.screenY;else{b[0]=a.offsetLeft;b[1]=a.offsetTop;e=a.offsetParent;if(e!=a)for(;e;)b[0]+=e.offsetLeft,b[1]+=e.offsetTop,e=e.offsetParent;c=OpenLayers.BROWSER_NAME;if(c=="opera"||c=="safari"&&OpenLayers.Element.getStyle(a,"position")=="absolute")b[1]-=document.body.offsetTop;for(e=a.offsetParent;e&&e!=document.body;){b[0]-=e.scrollLeft;if(c!="opera"||e.tagName!="TR")b[1]-=e.scrollTop;e=e.offsetParent}}return b};
OpenLayers.Util.getViewportElement=function(){var a=arguments.callee.viewportElement;if(a==void 0)a=OpenLayers.BROWSER_NAME=="msie"&&document.compatMode!="CSS1Compat"?document.body:document.documentElement,arguments.callee.viewportElement=a;return a};
OpenLayers.Util.isEquivalentUrl=function(a,b,c){c=c||{};OpenLayers.Util.applyDefaults(c,{ignoreCase:true,ignorePort80:true,ignoreHash:true});var a=OpenLayers.Util.createUrlObject(a,c),b=OpenLayers.Util.createUrlObject(b,c),d;for(d in a)if(d!=="args"&&a[d]!=b[d])return false;for(d in a.args){if(a.args[d]!=b.args[d])return false;delete b.args[d]}for(d in b.args)return false;return true};
OpenLayers.Util.createUrlObject=function(a,b){b=b||{};if(!/^\w+:\/\//.test(a)){var c=window.location,d=c.port?":"+c.port:"",d=c.protocol+"//"+c.host.split(":").shift()+d;a.indexOf("/")===0?a=d+a:(c=c.pathname.split("/"),c.pop(),a=d+c.join("/")+"/"+a)}b.ignoreCase&&(a=a.toLowerCase());c=document.createElement("a");c.href=a;d={};d.host=c.host.split(":").shift();d.protocol=c.protocol;d.port=b.ignorePort80?c.port=="80"||c.port=="0"?"":c.port:c.port==""||c.port=="0"?"80":c.port;d.hash=b.ignoreHash||c.hash===
"#"?"":c.hash;var e=c.search;e||(e=a.indexOf("?"),e=e!=-1?a.substr(e):"");d.args=OpenLayers.Util.getParameters(e);d.pathname=c.pathname.charAt(0)=="/"?c.pathname:"/"+c.pathname;return d};OpenLayers.Util.removeTail=function(a){var b=null,b=a.indexOf("?"),c=a.indexOf("#");return b=b==-1?c!=-1?a.substr(0,c):a:c!=-1?a.substr(0,Math.min(b,c)):a.substr(0,b)};OpenLayers.IS_GECKO=function(){var a=navigator.userAgent.toLowerCase();return a.indexOf("webkit")==-1&&a.indexOf("gecko")!=-1}();
OpenLayers.BROWSER_NAME=function(){var a="",b=navigator.userAgent.toLowerCase();b.indexOf("opera")!=-1?a="opera":b.indexOf("msie")!=-1?a="msie":b.indexOf("safari")!=-1?a="safari":b.indexOf("mozilla")!=-1&&(a=b.indexOf("firefox")!=-1?"firefox":"mozilla");return a}();OpenLayers.Util.getBrowserName=function(){return OpenLayers.BROWSER_NAME};
OpenLayers.Util.getRenderedDimensions=function(a,b,c){var d,e,f=document.createElement("div");f.style.visibility="hidden";var g=c&&c.containerElement?c.containerElement:document.body;if(b)if(b.w)d=b.w,f.style.width=d+"px";else if(b.h)e=b.h,f.style.height=e+"px";if(c&&c.displayClass)f.className=c.displayClass;b=document.createElement("div");b.innerHTML=a;b.style.overflow="visible";if(b.childNodes){a=0;for(c=b.childNodes.length;a<c;a++)if(b.childNodes[a].style)b.childNodes[a].style.overflow="visible"}f.appendChild(b);
g.appendChild(f);a=false;for(c=f.parentNode;c&&c.tagName.toLowerCase()!="body";){var h=OpenLayers.Element.getStyle(c,"position");if(h=="absolute"){a=true;break}else if(h&&h!="static")break;c=c.parentNode}if(!a)f.style.position="absolute";if(!d)d=parseInt(b.scrollWidth),f.style.width=d+"px";e||(e=parseInt(b.scrollHeight));f.removeChild(b);g.removeChild(f);return new OpenLayers.Size(d,e)};
OpenLayers.Util.getScrollbarWidth=function(){var a=OpenLayers.Util._scrollbarWidth;if(a==null){var b=null,c=null,b=a=0,b=document.createElement("div");b.style.position="absolute";b.style.top="-1000px";b.style.left="-1000px";b.style.width="100px";b.style.height="50px";b.style.overflow="hidden";c=document.createElement("div");c.style.width="100%";c.style.height="200px";b.appendChild(c);document.body.appendChild(b);a=c.offsetWidth;b.style.overflow="scroll";b=c.offsetWidth;document.body.removeChild(document.body.lastChild);
OpenLayers.Util._scrollbarWidth=a-b;a=OpenLayers.Util._scrollbarWidth}return a};
OpenLayers.Util.getFormattedLonLat=function(a,b,c){c||(c="dms");var a=(a+540)%360-180,d=Math.abs(a),e=Math.floor(d),f=d=(d-e)/(1/60),d=Math.floor(d),f=Math.round((f-d)/(1/60)*10);f/=10;f>=60&&(f-=60,d+=1,d>=60&&(d-=60,e+=1));e<10&&(e="0"+e);e+="\u00b0";c.indexOf("dm")>=0&&(d<10&&(d="0"+d),e+=d+"'",c.indexOf("dms")>=0&&(f<10&&(f="0"+f),e+=f+'"'));e+=b=="lon"?a<0?OpenLayers.i18n("W"):OpenLayers.i18n("E"):a<0?OpenLayers.i18n("S"):OpenLayers.i18n("N");return e};
OpenLayers.Format=OpenLayers.Class({options:null,externalProjection:null,internalProjection:null,data:null,keepData:false,initialize:function(a){OpenLayers.Util.extend(this,a);this.options=a},destroy:function(){},read:function(){OpenLayers.Console.userError(OpenLayers.i18n("readNotImplemented"))},write:function(){OpenLayers.Console.userError(OpenLayers.i18n("writeNotImplemented"))},CLASS_NAME:"OpenLayers.Format"});
OpenLayers.Format.JSON=OpenLayers.Class(OpenLayers.Format,{indent:"    ",space:" ",newline:"\n",level:0,pretty:false,nativeJSON:function(){return!(!window.JSON||!(typeof JSON.parse=="function"&&typeof JSON.stringify=="function"))}(),read:function(a,b){var c;if(this.nativeJSON)c=JSON.parse(a,b);else try{if(/^[\],:{}\s]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))&&(c=eval("("+a+")"),typeof b===
"function")){var d=function(a,c){if(c&&typeof c==="object")for(var e in c)c.hasOwnProperty(e)&&(c[e]=d(e,c[e]));return b(a,c)};c=d("",c)}}catch(e){}if(this.keepData)this.data=c;return c},write:function(a,b){this.pretty=!!b;var c=null,d=typeof a;if(this.serialize[d])try{c=!this.pretty&&this.nativeJSON?JSON.stringify(a):this.serialize[d].apply(this,[a])}catch(e){OpenLayers.Console.error("Trouble serializing: "+e)}return c},writeIndent:function(){var a=[];if(this.pretty)for(var b=0;b<this.level;++b)a.push(this.indent);
return a.join("")},writeNewline:function(){return this.pretty?this.newline:""},writeSpace:function(){return this.pretty?this.space:""},serialize:{object:function(a){if(a==null)return"null";if(a.constructor==Date)return this.serialize.date.apply(this,[a]);if(a.constructor==Array)return this.serialize.array.apply(this,[a]);var b=["{"];this.level+=1;var c,d,e,f=false;for(c in a)a.hasOwnProperty(c)&&(d=OpenLayers.Format.JSON.prototype.write.apply(this,[c,this.pretty]),e=OpenLayers.Format.JSON.prototype.write.apply(this,
[a[c],this.pretty]),d!=null&&e!=null&&(f&&b.push(","),b.push(this.writeNewline(),this.writeIndent(),d,":",this.writeSpace(),e),f=true));this.level-=1;b.push(this.writeNewline(),this.writeIndent(),"}");return b.join("")},array:function(a){var b,c=["["];this.level+=1;for(var d=0,e=a.length;d<e;++d)b=OpenLayers.Format.JSON.prototype.write.apply(this,[a[d],this.pretty]),b!=null&&(d>0&&c.push(","),c.push(this.writeNewline(),this.writeIndent(),b));this.level-=1;c.push(this.writeNewline(),this.writeIndent(),
"]");return c.join("")},string:function(a){var b={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(a)?'"'+a.replace(/([\x00-\x1f\\"])/g,function(a,d){var e=b[d];if(e)return e;e=d.charCodeAt();return"\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16)})+'"':'"'+a+'"'},number:function(a){return isFinite(a)?String(a):"null"},"boolean":function(a){return String(a)},date:function(a){function b(a){return a<10?"0"+a:a}return'"'+a.getFullYear()+
"-"+b(a.getMonth()+1)+"-"+b(a.getDate())+"T"+b(a.getHours())+":"+b(a.getMinutes())+":"+b(a.getSeconds())+'"'}},CLASS_NAME:"OpenLayers.Format.JSON"});
OpenLayers.Feature=OpenLayers.Class({layer:null,id:null,lonlat:null,data:null,marker:null,popupClass:null,popup:null,initialize:function(a,b,c){this.layer=a;this.lonlat=b;this.data=c!=null?c:{};this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){this.layer!=null&&this.layer.map!=null&&this.popup!=null&&this.layer.map.removePopup(this.popup);this.layer!=null&&this.marker!=null&&this.layer.removeMarker(this.marker);this.data=this.lonlat=this.id=this.layer=null;if(this.marker!=
null)this.destroyMarker(this.marker),this.marker=null;if(this.popup!=null)this.destroyPopup(this.popup),this.popup=null},onScreen:function(){var a=false;this.layer!=null&&this.layer.map!=null&&(a=this.layer.map.getExtent().containsLonLat(this.lonlat));return a},createMarker:function(){if(this.lonlat!=null)this.marker=new OpenLayers.Marker(this.lonlat,this.data.icon);return this.marker},destroyMarker:function(){this.marker.destroy()},createPopup:function(a){if(this.lonlat!=null){if(!this.popup)this.popup=
new (this.popupClass?this.popupClass:OpenLayers.Popup.AnchoredBubble)(this.id+"_popup",this.lonlat,this.data.popupSize,this.data.popupContentHTML,this.marker?this.marker.icon:null,a);if(this.data.overflow!=null)this.popup.contentDiv.style.overflow=this.data.overflow;this.popup.feature=this}return this.popup},destroyPopup:function(){if(this.popup)this.popup.feature=null,this.popup.destroy(),this.popup=null},CLASS_NAME:"OpenLayers.Feature"});
OpenLayers.State={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"};
OpenLayers.Feature.Vector=OpenLayers.Class(OpenLayers.Feature,{fid:null,geometry:null,attributes:null,bounds:null,state:null,style:null,url:null,renderIntent:"default",modified:null,initialize:function(a,b,c){OpenLayers.Feature.prototype.initialize.apply(this,[null,null,b]);this.lonlat=null;this.geometry=a?a:null;this.state=null;this.attributes={};if(b)this.attributes=OpenLayers.Util.extend(this.attributes,b);this.style=c?c:null},destroy:function(){if(this.layer)this.layer.removeFeatures(this),this.layer=
null;this.modified=this.geometry=null;OpenLayers.Feature.prototype.destroy.apply(this,arguments)},clone:function(){return new OpenLayers.Feature.Vector(this.geometry?this.geometry.clone():null,this.attributes,this.style)},onScreen:function(a){var b=false;this.layer&&this.layer.map&&(b=this.layer.map.getExtent(),a?(a=this.geometry.getBounds(),b=b.intersectsBounds(a)):b=b.toGeometry().intersects(this.geometry));return b},getVisibility:function(){return!(this.style&&this.style.display=="none"||!this.layer||
this.layer&&this.layer.styleMap&&this.layer.styleMap.createSymbolizer(this,this.renderIntent).display=="none"||this.layer&&!this.layer.getVisibility())},createMarker:function(){return null},destroyMarker:function(){},createPopup:function(){return null},atPoint:function(a,b,c){var d=false;this.geometry&&(d=this.geometry.atPoint(a,b,c));return d},destroyPopup:function(){},move:function(a){if(this.layer&&this.geometry.move){var a=a.CLASS_NAME=="OpenLayers.LonLat"?this.layer.getViewPortPxFromLonLat(a):
a,b=this.layer.getViewPortPxFromLonLat(this.geometry.getBounds().getCenterLonLat()),c=this.layer.map.getResolution();this.geometry.move(c*(a.x-b.x),c*(b.y-a.y));this.layer.drawFeature(this);return b}},toState:function(a){if(a==OpenLayers.State.UPDATE)switch(this.state){case OpenLayers.State.UNKNOWN:case OpenLayers.State.DELETE:this.state=a}else if(a==OpenLayers.State.INSERT)switch(this.state){case OpenLayers.State.UNKNOWN:break;default:this.state=a}else if(a==OpenLayers.State.DELETE)switch(this.state){case OpenLayers.State.UNKNOWN:case OpenLayers.State.UPDATE:this.state=
a}else if(a==OpenLayers.State.UNKNOWN)this.state=a},CLASS_NAME:"OpenLayers.Feature.Vector"});
OpenLayers.Feature.Vector.style={"default":{fillColor:"#ee9900",fillOpacity:0.4,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit"},select:{fillColor:"blue",fillOpacity:0.4,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"blue",strokeOpacity:1,
strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer"},temporary:{fillColor:"#66cccc",fillOpacity:0.2,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"#66cccc",strokeOpacity:1,strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,
hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit"},"delete":{display:"none"}};
OpenLayers.Format.WKT=OpenLayers.Class(OpenLayers.Format,{initialize:function(a){this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/};OpenLayers.Format.prototype.initialize.apply(this,[a])},read:function(a){var b,c,a=a.replace(/[\n\r]/g," ");if(c=this.regExes.typeStr.exec(a))if(a=c[1].toLowerCase(),c=c[2],this.parse[a]&&(b=this.parse[a].apply(this,[c])),this.internalProjection&&this.externalProjection)if(b&&
b.CLASS_NAME=="OpenLayers.Feature.Vector")b.geometry.transform(this.externalProjection,this.internalProjection);else if(b&&a!="geometrycollection"&&typeof b=="object"){a=0;for(c=b.length;a<c;a++)b[a].geometry.transform(this.externalProjection,this.internalProjection)}return b},write:function(a){var b,c;a.constructor==Array?c=true:(a=[a],c=false);var d=[];c&&d.push("GEOMETRYCOLLECTION(");for(var e=0,f=a.length;e<f;++e)c&&e>0&&d.push(","),b=a[e].geometry,d.push(this.extractGeometry(b));c&&d.push(")");
return d.join("")},extractGeometry:function(a){var b=a.CLASS_NAME.split(".")[2].toLowerCase();if(!this.extract[b])return null;this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));return(b=="collection"?"GEOMETRYCOLLECTION":b.toUpperCase())+"("+this.extract[b].apply(this,[a])+")"},extract:{point:function(a){return a.x+" "+a.y},multipoint:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.point.apply(this,
[a.components[c]])+")");return b.join(",")},linestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.point.apply(this,[a.components[c]]));return b.join(",")},multilinestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.linestring.apply(this,[a.components[c]])+")");return b.join(",")},polygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.linestring.apply(this,[a.components[c]])+")");return b.join(",")},
multipolygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push("("+this.extract.polygon.apply(this,[a.components[c]])+")");return b.join(",")},collection:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extractGeometry.apply(this,[a.components[c]]));return b.join(",")}},parse:{point:function(a){a=OpenLayers.String.trim(a).split(this.regExes.spaces);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(a[0],a[1]))},multipoint:function(a){for(var b=
OpenLayers.String.trim(a).split(","),c=[],d=0,e=b.length;d<e;++d)a=b[d].replace(this.regExes.trimParens,"$1"),c.push(this.parse.point.apply(this,[a]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiPoint(c))},linestring:function(a){for(var a=OpenLayers.String.trim(a).split(","),b=[],c=0,d=a.length;c<d;++c)b.push(this.parse.point.apply(this,[a[c]]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString(b))},multilinestring:function(a){for(var b=
OpenLayers.String.trim(a).split(this.regExes.parenComma),c=[],d=0,e=b.length;d<e;++d)a=b[d].replace(this.regExes.trimParens,"$1"),c.push(this.parse.linestring.apply(this,[a]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiLineString(c))},polygon:function(a){for(var b,a=OpenLayers.String.trim(a).split(this.regExes.parenComma),c=[],d=0,e=a.length;d<e;++d)b=a[d].replace(this.regExes.trimParens,"$1"),b=this.parse.linestring.apply(this,[b]).geometry,b=new OpenLayers.Geometry.LinearRing(b.components),
c.push(b);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon(c))},multipolygon:function(a){for(var b=OpenLayers.String.trim(a).split(this.regExes.doubleParenComma),c=[],d=0,e=b.length;d<e;++d)a=b[d].replace(this.regExes.trimParens,"$1"),c.push(this.parse.polygon.apply(this,[a]).geometry);return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiPolygon(c))},geometrycollection:function(a){for(var a=a.replace(/,\s*([A-Za-z])/g,"|$1"),a=OpenLayers.String.trim(a).split("|"),
b=[],c=0,d=a.length;c<d;++c)b.push(OpenLayers.Format.WKT.prototype.read.apply(this,[a[c]]));return b}},CLASS_NAME:"OpenLayers.Format.WKT"});
OpenLayers.Protocol.SQL.Gears=OpenLayers.Class(OpenLayers.Protocol.SQL,{FID_PREFIX:"__gears_fid__",NULL_GEOMETRY:"__gears_null_geometry__",NULL_FEATURE_STATE:"__gears_null_feature_state__",jsonParser:null,wktParser:null,fidRegExp:null,saveFeatureState:true,typeOfFid:"string",db:null,initialize:function(a){if(this.supported())OpenLayers.Protocol.SQL.prototype.initialize.apply(this,[a]),this.jsonParser=new OpenLayers.Format.JSON,this.wktParser=new OpenLayers.Format.WKT,this.fidRegExp=RegExp("^"+this.FID_PREFIX),
this.initializeDatabase()},initializeDatabase:function(){this.db=google.gears.factory.create("beta.database");this.db.open(this.databaseName);this.db.execute("CREATE TABLE IF NOT EXISTS "+this.tableName+" (fid TEXT UNIQUE, geometry TEXT, properties TEXT,  state TEXT)")},destroy:function(){this.db.close();this.wktParser=this.jsonParser=this.db=null;OpenLayers.Protocol.SQL.prototype.destroy.apply(this)},supported:function(){return!(!window.google||!google.gears)},read:function(a){OpenLayers.Protocol.prototype.read.apply(this,
arguments);for(var a=OpenLayers.Util.applyDefaults(a,this.options),b,c=[],d=this.db.execute("SELECT * FROM "+this.tableName);d.isValidRow();){b=this.unfreezeFeature(d);if(this.evaluateFilter(b,a.filter)){if(!a.noFeatureStateReset)b.state=null;c.push(b)}d.next()}d.close();b=new OpenLayers.Protocol.Response({code:OpenLayers.Protocol.Response.SUCCESS,requestType:"read",features:c});a&&a.callback&&a.callback.call(a.scope,b);return b},unfreezeFeature:function(a){var b;b=a.fieldByName("geometry");b=b==
this.NULL_GEOMETRY?new OpenLayers.Feature.Vector:this.wktParser.read(b);b.attributes=this.jsonParser.read(a.fieldByName("properties"));b.fid=this.extractFidFromField(a.fieldByName("fid"));a=a.fieldByName("state");a==this.NULL_FEATURE_STATE&&(a=null);b.state=a;return b},extractFidFromField:function(a){!a.match(this.fidRegExp)&&this.typeOfFid=="number"&&(a=parseFloat(a));return a},create:function(a,b){var b=OpenLayers.Util.applyDefaults(b,this.options),c=this.createOrUpdate(a);c.requestType="create";
b&&b.callback&&b.callback.call(b.scope,c);return c},update:function(a,b){var b=OpenLayers.Util.applyDefaults(b,this.options),c=this.createOrUpdate(a);c.requestType="update";b&&b.callback&&b.callback.call(b.scope,c);return c},createOrUpdate:function(a){OpenLayers.Util.isArray(a)||(a=[a]);var b,c=a.length,d,e=Array(c);for(b=0;b<c;b++){d=a[b];var f=this.freezeFeature(d);this.db.execute("REPLACE INTO "+this.tableName+" (fid, geometry, properties, state) VALUES (?, ?, ?, ?)",f);d=d.clone();d.fid=this.extractFidFromField(f[0]);
e[b]=d}return new OpenLayers.Protocol.Response({code:OpenLayers.Protocol.Response.SUCCESS,features:e,reqFeatures:a})},freezeFeature:function(a){a.fid=a.fid!=null?""+a.fid:OpenLayers.Util.createUniqueID(this.FID_PREFIX);var b=a.geometry!=null?a.geometry.toString():this.NULL_GEOMETRY,c=this.jsonParser.write(a.attributes),d=this.getFeatureStateForFreeze(a);return[a.fid,b,c,d]},getFeatureStateForFreeze:function(a){return this.saveFeatureState?this.createdOffline(a)?OpenLayers.State.INSERT:a.state:this.NULL_FEATURE_STATE},
"delete":function(a,b){OpenLayers.Util.isArray(a)||(a=[a]);var b=OpenLayers.Util.applyDefaults(b,this.options),c,d,e;for(c=0,d=a.length;c<d;c++)if(e=a[c],this.saveFeatureState&&!this.createdOffline(e)){var f=e.clone();f.fid=e.fid;if(f.geometry)f.geometry.destroy(),f.geometry=null;f.state=e.state;this.createOrUpdate(f)}else this.db.execute("DELETE FROM "+this.tableName+" WHERE fid = ?",[e.fid]);c=new OpenLayers.Protocol.Response({code:OpenLayers.Protocol.Response.SUCCESS,requestType:"delete",reqFeatures:a});
b&&b.callback&&b.callback.call(b.scope,c);return c},createdOffline:function(a){return typeof a.fid=="string"&&!!a.fid.match(this.fidRegExp)},commit:function(a,b){function c(a){if(++g<f)a.last=false;this.callUserCallback(b,a)}for(var d,e=[],f=0,g=0,h=[],i=[],j=[],k=a.length-1;k>=0;k--)switch(d=a[k],d.state){case OpenLayers.State.INSERT:h.push(d);break;case OpenLayers.State.UPDATE:i.push(d);break;case OpenLayers.State.DELETE:j.push(d)}h.length>0&&(f++,d=OpenLayers.Util.applyDefaults({callback:c,scope:this},
b.create),e.push(this.create(h,d)));i.length>0&&(f++,d=OpenLayers.Util.applyDefaults({callback:c,scope:this},b.update),e.push(this.update(i,d)));j.length>0&&(f++,d=OpenLayers.Util.applyDefaults({callback:c,scope:this},b["delete"]),e.push(this["delete"](j,d)));return e},clear:function(){this.db.execute("DELETE FROM "+this.tableName)},callUserCallback:function(a,b){var c=a[b.requestType];c&&c.callback&&c.callback.call(c.scope,b);b.last&&a.callback&&a.callback.call(a.scope)},CLASS_NAME:"OpenLayers.Protocol.SQL.Gears"});
OpenLayers.Format.CSWGetRecords=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Format.CSWGetRecords.DEFAULTS),b=OpenLayers.Format.CSWGetRecords["v"+a.version.replace(/\./g,"_")];if(!b)throw"Unsupported CSWGetRecords version: "+a.version;return new b(a)};OpenLayers.Format.CSWGetRecords.DEFAULTS={version:"2.0.2"};
OpenLayers.Format.XML=OpenLayers.Class(OpenLayers.Format,{namespaces:null,namespaceAlias:null,defaultPrefix:null,readers:{},writers:{},xmldom:null,initialize:function(a){if(window.ActiveXObject)this.xmldom=new ActiveXObject("Microsoft.XMLDOM");OpenLayers.Format.prototype.initialize.apply(this,[a]);this.namespaces=OpenLayers.Util.extend({},this.namespaces);this.namespaceAlias={};for(var b in this.namespaces)this.namespaceAlias[this.namespaces[b]]=b},destroy:function(){this.xmldom=null;OpenLayers.Format.prototype.destroy.apply(this,
arguments)},setNamespace:function(a,b){this.namespaces[a]=b;this.namespaceAlias[b]=a},read:function(a){var b=a.indexOf("<");b>0&&(a=a.substring(b));b=OpenLayers.Util.Try(OpenLayers.Function.bind(function(){var b;b=window.ActiveXObject&&!this.xmldom?new ActiveXObject("Microsoft.XMLDOM"):this.xmldom;b.loadXML(a);return b},this),function(){return(new DOMParser).parseFromString(a,"text/xml")},function(){var b=new XMLHttpRequest;b.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(a),false);
b.overrideMimeType&&b.overrideMimeType("text/xml");b.send(null);return b.responseXML});if(this.keepData)this.data=b;return b},write:function(a){if(this.xmldom)a=a.xml;else{var b=new XMLSerializer;if(a.nodeType==1){var c=document.implementation.createDocument("","",null);c.importNode&&(a=c.importNode(a,true));c.appendChild(a);a=b.serializeToString(c)}else a=b.serializeToString(a)}return a},createElementNS:function(a,b){return this.xmldom?typeof a=="string"?this.xmldom.createNode(1,b,a):this.xmldom.createNode(1,
b,""):document.createElementNS(a,b)},createTextNode:function(a){typeof a!=="string"&&(a=String(a));return this.xmldom?this.xmldom.createTextNode(a):document.createTextNode(a)},getElementsByTagNameNS:function(a,b,c){var d=[];if(a.getElementsByTagNameNS)d=a.getElementsByTagNameNS(b,c);else for(var a=a.getElementsByTagName("*"),e,f,g=0,h=a.length;g<h;++g)if(e=a[g],f=e.prefix?e.prefix+":"+c:c,c=="*"||f==e.nodeName)(b=="*"||b==e.namespaceURI)&&d.push(e);return d},getAttributeNodeNS:function(a,b,c){var d=
null;if(a.getAttributeNodeNS)d=a.getAttributeNodeNS(b,c);else for(var a=a.attributes,e,f,g=0,h=a.length;g<h;++g)if(e=a[g],e.namespaceURI==b&&(f=e.prefix?e.prefix+":"+c:c,f==e.nodeName)){d=e;break}return d},getAttributeNS:function(a,b,c){var d="";if(a.getAttributeNS)d=a.getAttributeNS(b,c)||"";else if(a=this.getAttributeNodeNS(a,b,c))d=a.nodeValue;return d},getChildValue:function(a,b){var c=b||"";if(a)for(var d=a.firstChild;d;d=d.nextSibling)switch(d.nodeType){case 3:case 4:c+=d.nodeValue}return c},
concatChildValues:function(a,b){for(var c="",d=a.firstChild,e;d;)(e=d.nodeValue)&&(c+=e),d=d.nextSibling;c==""&&b!=void 0&&(c=b);return c},isSimpleContent:function(a){for(var b=true,a=a.firstChild;a;a=a.nextSibling)if(a.nodeType===1){b=false;break}return b},contentType:function(a){for(var b=false,c=false,d=OpenLayers.Format.XML.CONTENT_TYPE.EMPTY,a=a.firstChild;a;a=a.nextSibling){switch(a.nodeType){case 1:c=true;break;case 8:break;default:b=true}if(c&&b)break}if(c&&b)d=OpenLayers.Format.XML.CONTENT_TYPE.MIXED;
else if(c)return OpenLayers.Format.XML.CONTENT_TYPE.COMPLEX;else if(b)return OpenLayers.Format.XML.CONTENT_TYPE.SIMPLE;return d},hasAttributeNS:function(a,b,c){var d=false;return d=a.hasAttributeNS?a.hasAttributeNS(b,c):!!this.getAttributeNodeNS(a,b,c)},setAttributeNS:function(a,b,c,d){if(a.setAttributeNS)a.setAttributeNS(b,c,d);else if(this.xmldom)b?(b=a.ownerDocument.createNode(2,c,b),b.nodeValue=d,a.setAttributeNode(b)):a.setAttribute(c,d);else throw"setAttributeNS not implemented";},createElementNSPlus:function(a,
b){var b=b||{},c=b.uri||this.namespaces[b.prefix];c||(c=a.indexOf(":"),c=this.namespaces[a.substring(0,c)]);c||(c=this.namespaces[this.defaultPrefix]);c=this.createElementNS(c,a);b.attributes&&this.setAttributes(c,b.attributes);var d=b.value;d!=null&&c.appendChild(this.createTextNode(d));return c},setAttributes:function(a,b){var c,d,e;for(e in b)b[e]!=null&&b[e].toString&&(c=b[e].toString(),d=this.namespaces[e.substring(0,e.indexOf(":"))]||null,this.setAttributeNS(a,d,e,c))},readNode:function(a,b){b||
(b={});var c=this.readers[a.namespaceURI?this.namespaceAlias[a.namespaceURI]:this.defaultPrefix];if(c){var d=a.localName||a.nodeName.split(":").pop();(c=c[d]||c["*"])&&c.apply(this,[a,b])}return b},readChildNodes:function(a,b){b||(b={});for(var c=a.childNodes,d,e=0,f=c.length;e<f;++e)d=c[e],d.nodeType==1&&this.readNode(d,b);return b},writeNode:function(a,b,c){var d,e=a.indexOf(":");e>0?(d=a.substring(0,e),a=a.substring(e+1)):d=c?this.namespaceAlias[c.namespaceURI]:this.defaultPrefix;b=this.writers[d][a].apply(this,
[b]);c&&c.appendChild(b);return b},getChildEl:function(a,b,c){return a&&this.getThisOrNextEl(a.firstChild,b,c)},getNextEl:function(a,b,c){return a&&this.getThisOrNextEl(a.nextSibling,b,c)},getThisOrNextEl:function(a,b,c){a:for(;a;a=a.nextSibling)switch(a.nodeType){case 1:if((!b||b===(a.localName||a.nodeName.split(":").pop()))&&(!c||c===a.namespaceURI))break a;a=null;break a;case 3:if(/^\s*$/.test(a.nodeValue))break;case 4:case 6:case 12:case 10:case 11:a=null;break a}return a||null},lookupNamespaceURI:function(a,
b){var c=null;if(a)if(a.lookupNamespaceURI)c=a.lookupNamespaceURI(b);else a:switch(a.nodeType){case 1:if(a.namespaceURI!==null&&a.prefix===b){c=a.namespaceURI;break a}if(c=a.attributes.length)for(var d,e=0;e<c;++e)if(d=a.attributes[e],d.prefix==="xmlns"&&d.name==="xmlns:"+b){c=d.value||null;break a}else if(d.name==="xmlns"&&b===null){c=d.value||null;break a}c=this.lookupNamespaceURI(a.parentNode,b);break a;case 2:c=this.lookupNamespaceURI(a.ownerElement,b);break a;case 9:c=this.lookupNamespaceURI(a.documentElement,
b);break a;case 6:case 12:case 10:case 11:break a;default:c=this.lookupNamespaceURI(a.parentNode,b)}return c},getXMLDoc:function(){if(!OpenLayers.Format.XML.document&&!this.xmldom)if(document.implementation&&document.implementation.createDocument)OpenLayers.Format.XML.document=document.implementation.createDocument("","",null);else if(!this.xmldom&&window.ActiveXObject)this.xmldom=new ActiveXObject("Microsoft.XMLDOM");return OpenLayers.Format.XML.document||this.xmldom},CLASS_NAME:"OpenLayers.Format.XML"});
OpenLayers.Format.XML.CONTENT_TYPE={EMPTY:0,SIMPLE:1,COMPLEX:2,MIXED:3};OpenLayers.Format.XML.lookupNamespaceURI=OpenLayers.Function.bind(OpenLayers.Format.XML.prototype.lookupNamespaceURI,OpenLayers.Format.XML.prototype);OpenLayers.Format.XML.document=null;
OpenLayers.Format.OGCExceptionReport=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ogc:"http://www.opengis.net/ogc"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},defaultPrefix:"ogc",read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b={exceptionReport:null};a.documentElement&&(this.readChildNodes(a,b),b.exceptionReport===null&&(b=(new OpenLayers.Format.OWSCommon).read(a)));return b},readers:{ogc:{ServiceExceptionReport:function(a,
b){b.exceptionReport={exceptions:[]};this.readChildNodes(a,b.exceptionReport)},ServiceException:function(a,b){var c={code:a.getAttribute("code"),locator:a.getAttribute("locator"),text:this.getChildValue(a)};b.exceptions.push(c)}}},CLASS_NAME:"OpenLayers.Format.OGCExceptionReport"});
OpenLayers.Format.XML.VersionedOGC=OpenLayers.Class(OpenLayers.Format.XML,{defaultVersion:null,version:null,profile:null,errorProperty:null,name:null,stringifyOutput:false,parser:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);a=this.CLASS_NAME;this.name=a.substring(a.lastIndexOf(".")+1)},getVersion:function(a,b){var c;if(a){if(c=this.version,!c&&(c=a.getAttribute("version"),!c))c=this.defaultVersion}else c=b&&b.version||this.version||this.defaultVersion;return c},
getParser:function(a){var a=a||this.defaultVersion,b=this.profile?"_"+this.profile:"";if(!this.parser||this.parser.VERSION!=a){var c=OpenLayers.Format[this.name]["v"+a.replace(/\./g,"_")+b];if(!c)throw"Can't find a "+this.name+" parser for version "+a+b;this.parser=new c(this.options)}return this.parser},write:function(a,b){this.parser=this.getParser(this.getVersion(null,b));var c=this.parser.write(a,b);return this.stringifyOutput===false?c:OpenLayers.Format.XML.prototype.write.apply(this,[c])},read:function(a,
b){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var c=this.getVersion(a.documentElement);this.parser=this.getParser(c);var d=this.parser.read(a,b);if(this.errorProperty!==null&&d[this.errorProperty]===void 0){var e=new OpenLayers.Format.OGCExceptionReport;d.error=e.read(a)}d.version=c;return d},CLASS_NAME:"OpenLayers.Format.XML.VersionedOGC"});
OpenLayers.Format.WFSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.0",errorProperty:"service",CLASS_NAME:"OpenLayers.Format.WFSCapabilities"});
OpenLayers.Format.WFSCapabilities.v1=OpenLayers.Class(OpenLayers.Format.WFSCapabilities,{initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.options=a},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b={};this.runChildNodes(b,a.documentElement);return b},runChildNodes:function(a,b){for(var c=b.childNodes,d,e,f=0;f<c.length;++f)d=c[f],d.nodeType==1&&(e=this["read_cap_"+d.nodeName])&&e.apply(this,[a,d])},read_cap_FeatureTypeList:function(a,
b){var c={featureTypes:[]};this.runChildNodes(c,b);a.featureTypeList=c},read_cap_FeatureType:function(a,b){var c={};this.runChildNodes(c,b);a.featureTypes.push(c)},read_cap_Name:function(a,b){var c=this.getChildValue(b);if(c&&(c=c.split(":"),a.name=c.pop(),c.length>0))a.featureNS=this.lookupNamespaceURI(b,c[0])},read_cap_Title:function(a,b){var c=this.getChildValue(b);if(c)a.title=c},read_cap_Abstract:function(a,b){var c=this.getChildValue(b);c&&(a["abstract"]=c)},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1"});
OpenLayers.Format.WFSCapabilities.v1_1_0=OpenLayers.Class(OpenLayers.Format.WFSCapabilities.v1,{initialize:function(a){OpenLayers.Format.WFSCapabilities.v1.prototype.initialize.apply(this,[a])},read_cap_DefaultSRS:function(a,b){var c=this.getChildValue(b);if(c)a.srs=c},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1_1_0"});
OpenLayers.Geometry=OpenLayers.Class({id:null,parent:null,bounds:null,initialize:function(){this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){this.bounds=this.id=null},clone:function(){return new OpenLayers.Geometry},setBounds:function(a){if(a)this.bounds=a.clone()},clearBounds:function(){this.bounds=null;this.parent&&this.parent.clearBounds()},extendBounds:function(a){this.getBounds()?this.bounds.extend(a):this.setBounds(a)},getBounds:function(){this.bounds==null&&this.calculateBounds();
return this.bounds},calculateBounds:function(){},distanceTo:function(){},getVertices:function(){},atPoint:function(a,b,c){var d=false;this.getBounds()!=null&&a!=null&&(b=b!=null?b:0,c=c!=null?c:0,d=(new OpenLayers.Bounds(this.bounds.left-b,this.bounds.bottom-c,this.bounds.right+b,this.bounds.top+c)).containsLonLat(a));return d},getLength:function(){return 0},getArea:function(){return 0},getCentroid:function(){return null},toString:function(){return OpenLayers.Format.WKT.prototype.write(new OpenLayers.Feature.Vector(this))},
CLASS_NAME:"OpenLayers.Geometry"});OpenLayers.Geometry.fromWKT=function(a){var b=arguments.callee.format;if(!b)b=new OpenLayers.Format.WKT,arguments.callee.format=b;var c,b=b.read(a);if(b instanceof OpenLayers.Feature.Vector)c=b.geometry;else if(OpenLayers.Util.isArray(b)){c=b.length;for(var d=Array(c),e=0;e<c;++e)d[e]=b[e].geometry;c=new OpenLayers.Geometry.Collection(d)}return c};
OpenLayers.Geometry.segmentsIntersect=function(a,b,c){var d=c&&c.point,c=c&&c.tolerance,e=false,f=a.x1-b.x1,g=a.y1-b.y1,h=a.x2-a.x1,i=a.y2-a.y1,j=b.y2-b.y1,k=b.x2-b.x1,l=j*h-k*i,j=k*g-j*f,g=h*g-i*f;l==0?j==0&&g==0&&(e=true):(f=j/l,l=g/l,f>=0&&f<=1&&l>=0&&l<=1&&(d?(h=a.x1+f*h,l=a.y1+f*i,e=new OpenLayers.Geometry.Point(h,l)):e=true));if(c)if(e){if(d){a=[a,b];b=0;a:for(;b<2;++b){f=a[b];for(i=1;i<3;++i)if(h=f["x"+i],l=f["y"+i],d=Math.sqrt(Math.pow(h-e.x,2)+Math.pow(l-e.y,2)),d<c){e.x=h;e.y=l;break a}}}}else{a=
[a,b];b=0;a:for(;b<2;++b){h=a[b];l=a[(b+1)%2];for(i=1;i<3;++i)if(f={x:h["x"+i],y:h["y"+i]},g=OpenLayers.Geometry.distanceToSegment(f,l),g.distance<c){e=d?new OpenLayers.Geometry.Point(f.x,f.y):true;break a}}}return e};OpenLayers.Geometry.distanceToSegment=function(a,b){var c=a.x,d=a.y,e=b.x1,f=b.y1,g=b.x2,h=b.y2,i=g-e,j=h-f,k=(i*(c-e)+j*(d-f))/(Math.pow(i,2)+Math.pow(j,2));k<=0||(k>=1?(e=g,f=h):(e+=k*i,f+=k*j));return{distance:Math.sqrt(Math.pow(e-c,2)+Math.pow(f-d,2)),x:e,y:f}};
OpenLayers.Geometry.Point=OpenLayers.Class(OpenLayers.Geometry,{x:null,y:null,initialize:function(a,b){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);this.x=parseFloat(a);this.y=parseFloat(b)},clone:function(a){a==null&&(a=new OpenLayers.Geometry.Point(this.x,this.y));OpenLayers.Util.applyDefaults(a,this);return a},calculateBounds:function(){this.bounds=new OpenLayers.Bounds(this.x,this.y,this.x,this.y)},distanceTo:function(a,b){var c=!(b&&b.edge===false)&&b&&b.details,d,e,f,g,h;a instanceof
OpenLayers.Geometry.Point?(e=this.x,f=this.y,g=a.x,h=a.y,d=Math.sqrt(Math.pow(e-g,2)+Math.pow(f-h,2)),d=!c?d:{x0:e,y0:f,x1:g,y1:h,distance:d}):(d=a.distanceTo(this,b),c&&(d={x0:d.x1,y0:d.y1,x1:d.x0,y1:d.y0,distance:d.distance}));return d},equals:function(a){var b=false;a!=null&&(b=this.x==a.x&&this.y==a.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(a.x)&&isNaN(a.y));return b},toShortString:function(){return this.x+", "+this.y},move:function(a,b){this.x+=a;this.y+=b;this.clearBounds()},rotate:function(a,
b){a*=Math.PI/180;var c=this.distanceTo(b),d=a+Math.atan2(this.y-b.y,this.x-b.x);this.x=b.x+c*Math.cos(d);this.y=b.y+c*Math.sin(d);this.clearBounds()},getCentroid:function(){return new OpenLayers.Geometry.Point(this.x,this.y)},resize:function(a,b,c){this.x=b.x+a*(c==void 0?1:c)*(this.x-b.x);this.y=b.y+a*(this.y-b.y);this.clearBounds();return this},intersects:function(a){var b=false;return b=a.CLASS_NAME=="OpenLayers.Geometry.Point"?this.equals(a):a.intersects(this)},transform:function(a,b){if(a&&
b)OpenLayers.Projection.transform(this,a,b),this.bounds=null;return this},getVertices:function(){return[this]},CLASS_NAME:"OpenLayers.Geometry.Point"});
OpenLayers.Geometry.Collection=OpenLayers.Class(OpenLayers.Geometry,{components:null,componentTypes:null,initialize:function(a){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);this.components=[];a!=null&&this.addComponents(a)},destroy:function(){this.components.length=0;this.components=null;OpenLayers.Geometry.prototype.destroy.apply(this,arguments)},clone:function(){for(var a=eval("new "+this.CLASS_NAME+"()"),b=0,c=this.components.length;b<c;b++)a.addComponent(this.components[b].clone());
OpenLayers.Util.applyDefaults(a,this);return a},getComponentsString:function(){for(var a=[],b=0,c=this.components.length;b<c;b++)a.push(this.components[b].toShortString());return a.join(",")},calculateBounds:function(){this.bounds=null;var a=new OpenLayers.Bounds,b=this.components;if(b)for(var c=0,d=b.length;c<d;c++)a.extend(b[c].getBounds());a.left!=null&&a.bottom!=null&&a.right!=null&&a.top!=null&&this.setBounds(a)},addComponents:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=0,c=a.length;b<
c;b++)this.addComponent(a[b])},addComponent:function(a,b){var c=false;if(a&&(this.componentTypes==null||OpenLayers.Util.indexOf(this.componentTypes,a.CLASS_NAME)>-1)){if(b!=null&&b<this.components.length){var c=this.components.slice(0,b),d=this.components.slice(b,this.components.length);c.push(a);this.components=c.concat(d)}else this.components.push(a);a.parent=this;this.clearBounds();c=true}return c},removeComponents:function(a){var b=false;OpenLayers.Util.isArray(a)||(a=[a]);for(var c=a.length-
1;c>=0;--c)b=this.removeComponent(a[c])||b;return b},removeComponent:function(a){OpenLayers.Util.removeItem(this.components,a);this.clearBounds();return true},getLength:function(){for(var a=0,b=0,c=this.components.length;b<c;b++)a+=this.components[b].getLength();return a},getArea:function(){for(var a=0,b=0,c=this.components.length;b<c;b++)a+=this.components[b].getArea();return a},getGeodesicArea:function(a){for(var b=0,c=0,d=this.components.length;c<d;c++)b+=this.components[c].getGeodesicArea(a);
return b},getCentroid:function(a){if(!a)return this.components.length&&this.components[0].getCentroid();a=this.components.length;if(!a)return false;for(var b=[],c=[],d=0,e=Number.MAX_VALUE,f,g=0;g<a;++g){f=this.components[g];var h=f.getArea();f=f.getCentroid(true);!isNaN(h)&&!isNaN(f.x)&&!isNaN(f.y)&&(b.push(h),d+=h,e=h<e&&h>0?h:e,c.push(f))}a=b.length;if(d===0){for(g=0;g<a;++g)b[g]=1;d=b.length}else{for(g=0;g<a;++g)b[g]/=e;d/=e}for(var i=e=0,g=0;g<a;++g)f=c[g],h=b[g],e+=f.x*h,i+=f.y*h;return new OpenLayers.Geometry.Point(e/
d,i/d)},getGeodesicLength:function(a){for(var b=0,c=0,d=this.components.length;c<d;c++)b+=this.components[c].getGeodesicLength(a);return b},move:function(a,b){for(var c=0,d=this.components.length;c<d;c++)this.components[c].move(a,b)},rotate:function(a,b){for(var c=0,d=this.components.length;c<d;++c)this.components[c].rotate(a,b)},resize:function(a,b,c){for(var d=0;d<this.components.length;++d)this.components[d].resize(a,b,c);return this},distanceTo:function(a,b){for(var c=!(b&&b.edge===false)&&b&&
b.details,d,e,f,g=Number.POSITIVE_INFINITY,h=0,i=this.components.length;h<i;++h)if(d=this.components[h].distanceTo(a,b),f=c?d.distance:d,f<g&&(g=f,e=d,g==0))break;return e},equals:function(a){var b=true;if(!a||!a.CLASS_NAME||this.CLASS_NAME!=a.CLASS_NAME)b=false;else if(!OpenLayers.Util.isArray(a.components)||a.components.length!=this.components.length)b=false;else for(var c=0,d=this.components.length;c<d;++c)if(!this.components[c].equals(a.components[c])){b=false;break}return b},transform:function(a,
b){if(a&&b){for(var c=0,d=this.components.length;c<d;c++)this.components[c].transform(a,b);this.bounds=null}return this},intersects:function(a){for(var b=false,c=0,d=this.components.length;c<d;++c)if(b=a.intersects(this.components[c]))break;return b},getVertices:function(a){for(var b=[],c=0,d=this.components.length;c<d;++c)Array.prototype.push.apply(b,this.components[c].getVertices(a));return b},CLASS_NAME:"OpenLayers.Geometry.Collection"});
OpenLayers.Geometry.MultiPoint=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.Point"],initialize:function(a){OpenLayers.Geometry.Collection.prototype.initialize.apply(this,arguments)},addPoint:function(a,b){this.addComponent(a,b)},removePoint:function(a){this.removeComponent(a)},CLASS_NAME:"OpenLayers.Geometry.MultiPoint"});
OpenLayers.Geometry.Curve=OpenLayers.Class(OpenLayers.Geometry.MultiPoint,{componentTypes:["OpenLayers.Geometry.Point"],initialize:function(a){OpenLayers.Geometry.MultiPoint.prototype.initialize.apply(this,arguments)},getLength:function(){var a=0;if(this.components&&this.components.length>1)for(var b=1,c=this.components.length;b<c;b++)a+=this.components[b-1].distanceTo(this.components[b]);return a},getGeodesicLength:function(a){var b=this;if(a){var c=new OpenLayers.Projection("EPSG:4326");c.equals(a)||
(b=this.clone().transform(a,c))}a=0;if(b.components&&b.components.length>1)for(var d,e=1,f=b.components.length;e<f;e++)c=b.components[e-1],d=b.components[e],a+=OpenLayers.Util.distVincenty({lon:c.x,lat:c.y},{lon:d.x,lat:d.y});return a*1E3},CLASS_NAME:"OpenLayers.Geometry.Curve"});
OpenLayers.Geometry.LineString=OpenLayers.Class(OpenLayers.Geometry.Curve,{initialize:function(a){OpenLayers.Geometry.Curve.prototype.initialize.apply(this,arguments)},removeComponent:function(a){var b=this.components&&this.components.length>2;b&&OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this,arguments);return b},intersects:function(a){var b=false,c=a.CLASS_NAME;if(c=="OpenLayers.Geometry.LineString"||c=="OpenLayers.Geometry.LinearRing"||c=="OpenLayers.Geometry.Point"){var d=
this.getSortedSegments(),a=c=="OpenLayers.Geometry.Point"?[{x1:a.x,y1:a.y,x2:a.x,y2:a.y}]:a.getSortedSegments(),e,f,g,h,i,j,k,l=0,m=d.length;a:for(;l<m;++l){c=d[l];e=c.x1;f=c.x2;g=c.y1;h=c.y2;var n=0,o=a.length;for(;n<o;++n){i=a[n];if(i.x1>f)break;if(!(i.x2<e)&&(j=i.y1,k=i.y2,!(Math.min(j,k)>Math.max(g,h))&&!(Math.max(j,k)<Math.min(g,h))&&OpenLayers.Geometry.segmentsIntersect(c,i))){b=true;break a}}}}else b=a.intersects(this);return b},getSortedSegments:function(){for(var a=this.components.length-
1,b=Array(a),c,d,e=0;e<a;++e)c=this.components[e],d=this.components[e+1],b[e]=c.x<d.x?{x1:c.x,y1:c.y,x2:d.x,y2:d.y}:{x1:d.x,y1:d.y,x2:c.x,y2:c.y};return b.sort(function(a,b){return a.x1-b.x1})},splitWithSegment:function(a,b){for(var c=!(b&&b.edge===false),d=b&&b.tolerance,e=[],f=this.getVertices(),g=[],h=[],i=false,j,k,l,m={point:true,tolerance:d},n=null,o=0,r=f.length-2;o<=r;++o)if(d=f[o],g.push(d.clone()),j=f[o+1],k={x1:d.x,y1:d.y,x2:j.x,y2:j.y},k=OpenLayers.Geometry.segmentsIntersect(a,k,m),k instanceof
OpenLayers.Geometry.Point&&((l=k.x===a.x1&&k.y===a.y1||k.x===a.x2&&k.y===a.y2||k.equals(d)||k.equals(j)?true:false)||c))k.equals(h[h.length-1])||h.push(k.clone()),!(o===0&&k.equals(d))&&!k.equals(j)&&(i=true,k.equals(d)||g.push(k),e.push(new OpenLayers.Geometry.LineString(g)),g=[k.clone()]);i&&(g.push(j.clone()),e.push(new OpenLayers.Geometry.LineString(g)));if(h.length>0)var q=a.x1<a.x2?1:-1,p=a.y1<a.y2?1:-1,n={lines:e,points:h.sort(function(a,b){return q*a.x-q*b.x||p*a.y-p*b.y})};return n},split:function(a,
b){var c=null,d=b&&b.mutual,e,f,g,h;if(a instanceof OpenLayers.Geometry.LineString){var i=this.getVertices(),j,k,l,m,n,o=[];g=[];for(var r=0,q=i.length-2;r<=q;++r){j=i[r];k=i[r+1];l={x1:j.x,y1:j.y,x2:k.x,y2:k.y};h=h||[a];d&&o.push(j.clone());for(var p=0;p<h.length;++p)if(m=h[p].splitWithSegment(l,b))if(n=m.lines,n.length>0&&(n.unshift(p,1),Array.prototype.splice.apply(h,n),p+=n.length-2),d)for(var s=0,u=m.points.length;s<u;++s)n=m.points[s],n.equals(j)||(o.push(n),g.push(new OpenLayers.Geometry.LineString(o)),
o=n.equals(k)?[]:[n.clone()])}d&&g.length>0&&o.length>0&&(o.push(k.clone()),g.push(new OpenLayers.Geometry.LineString(o)))}else c=a.splitWith(this,b);h&&h.length>1?f=true:h=[];g&&g.length>1?e=true:g=[];if(f||e)c=d?[g,h]:h;return c},splitWith:function(a,b){return a.split(this,b)},getVertices:function(a){return a===true?[this.components[0],this.components[this.components.length-1]]:a===false?this.components.slice(1,this.components.length-1):this.components.slice()},distanceTo:function(a,b){var c=!(b&&
b.edge===false)&&b&&b.details,d,e={},f=Number.POSITIVE_INFINITY;if(a instanceof OpenLayers.Geometry.Point){for(var g=this.getSortedSegments(),h=a.x,i=a.y,j,k=0,l=g.length;k<l;++k)if(j=g[k],d=OpenLayers.Geometry.distanceToSegment(a,j),d.distance<f){if(f=d.distance,e=d,f===0)break}else if(j.x2>h&&(i>j.y1&&i<j.y2||i<j.y1&&i>j.y2))break;e=c?{distance:e.distance,x0:e.x,y0:e.y,x1:h,y1:i}:e.distance}else if(a instanceof OpenLayers.Geometry.LineString){var g=this.getSortedSegments(),h=a.getSortedSegments(),
m,n,o=h.length,r={point:true},k=0,l=g.length;a:for(;k<l;++k){i=g[k];j=i.x1;n=i.y1;for(var q=0;q<o;++q)if(d=h[q],m=OpenLayers.Geometry.segmentsIntersect(i,d,r)){f=0;e={distance:0,x0:m.x,y0:m.y,x1:m.x,y1:m.y};break a}else if(d=OpenLayers.Geometry.distanceToSegment({x:j,y:n},d),d.distance<f)f=d.distance,e={distance:f,x0:j,y0:n,x1:d.x,y1:d.y}}if(!c)e=e.distance;f!==0&&i&&(d=a.distanceTo(new OpenLayers.Geometry.Point(i.x2,i.y2),b),k=c?d.distance:d,k<f&&(e=c?{distance:f,x0:d.x1,y0:d.y1,x1:d.x0,y1:d.y0}:
k))}else e=a.distanceTo(this,b),c&&(e={distance:e.distance,x0:e.x1,y0:e.y1,x1:e.x0,y1:e.y0});return e},simplify:function(a){if(this&&this!==null){var b=this.getVertices();if(b.length<3)return this;var c=function(a,b,d,i){for(var j=0,k=0,l=b,m;l<d;l++){m=a[b];var n=a[d],o=a[l],o=Math.abs(0.5*(m.x*n.y+n.x*o.y+o.x*m.y-n.x*m.y-o.x*n.y-m.x*o.y));m=Math.sqrt(Math.pow(m.x-n.x,2)+Math.pow(m.y-n.y,2));m=o/m*2;m>j&&(j=m,k=l)}j>i&&k!=b&&(e.push(k),c(a,b,k,i),c(a,k,d,i))},d=b.length-1,e=[];e.push(0);for(e.push(d);b[0].equals(b[d]);)d--,
e.push(d);c(b,0,d,a);a=[];e.sort(function(a,b){return a-b});for(d=0;d<e.length;d++)a.push(b[e[d]]);return new OpenLayers.Geometry.LineString(a)}else return this},CLASS_NAME:"OpenLayers.Geometry.LineString"});
OpenLayers.Geometry.LinearRing=OpenLayers.Class(OpenLayers.Geometry.LineString,{componentTypes:["OpenLayers.Geometry.Point"],initialize:function(a){OpenLayers.Geometry.LineString.prototype.initialize.apply(this,arguments)},addComponent:function(a,b){var c=false,d=this.components.pop();if(b!=null||!a.equals(d))c=OpenLayers.Geometry.Collection.prototype.addComponent.apply(this,arguments);OpenLayers.Geometry.Collection.prototype.addComponent.apply(this,[this.components[0]]);return c},removeComponent:function(a){var b=
this.components&&this.components.length>3;b&&(this.components.pop(),OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this,arguments),OpenLayers.Geometry.Collection.prototype.addComponent.apply(this,[this.components[0]]));return b},move:function(a,b){for(var c=0,d=this.components.length;c<d-1;c++)this.components[c].move(a,b)},rotate:function(a,b){for(var c=0,d=this.components.length;c<d-1;++c)this.components[c].rotate(a,b)},resize:function(a,b,c){for(var d=0,e=this.components.length;d<
e-1;++d)this.components[d].resize(a,b,c);return this},transform:function(a,b){if(a&&b){for(var c=0,d=this.components.length;c<d-1;c++)this.components[c].transform(a,b);this.bounds=null}return this},getCentroid:function(){if(this.components&&this.components.length>2){for(var a=0,b=0,c=0;c<this.components.length-1;c++){var d=this.components[c],e=this.components[c+1];a+=(d.x+e.x)*(d.x*e.y-e.x*d.y);b+=(d.y+e.y)*(d.x*e.y-e.x*d.y)}c=-1*this.getArea();return new OpenLayers.Geometry.Point(a/(6*c),b/(6*c))}else return null},
getArea:function(){var a=0;if(this.components&&this.components.length>2){for(var b=a=0,c=this.components.length;b<c-1;b++){var d=this.components[b],e=this.components[b+1];a+=(d.x+e.x)*(e.y-d.y)}a=-a/2}return a},getGeodesicArea:function(a){var b=this;if(a){var c=new OpenLayers.Projection("EPSG:4326");c.equals(a)||(b=this.clone().transform(a,c))}a=0;c=b.components&&b.components.length;if(c>2){for(var d,e,f=0;f<c-1;f++)d=b.components[f],e=b.components[f+1],a+=OpenLayers.Util.rad(e.x-d.x)*(2+Math.sin(OpenLayers.Util.rad(d.y))+
Math.sin(OpenLayers.Util.rad(e.y)));a=a*40680631590769/2}return a},containsPoint:function(a){for(var b=OpenLayers.Number.limitSigDigs,c=b(a.x,14),a=b(a.y,14),d=this.components.length-1,e,f,g,h,i,j=0,k=0;k<d;++k)if(e=this.components[k],g=b(e.x,14),e=b(e.y,14),f=this.components[k+1],h=b(f.x,14),f=b(f.y,14),e==f){if(a==e&&(g<=h&&c>=g&&c<=h||g>=h&&c<=g&&c>=h)){j=-1;break}}else{i=b(((g-h)*a+(h*e-g*f))/(e-f),14);if(i==c&&(e<f&&a>=e&&a<=f||e>f&&a<=e&&a>=f)){j=-1;break}i<=c||g!=h&&(i<Math.min(g,h)||i>Math.max(g,
h))||(e<f&&a>=e&&a<f||e>f&&a<e&&a>=f)&&++j}return j==-1?1:!!(j&1)},intersects:function(a){var b=false;if(a.CLASS_NAME=="OpenLayers.Geometry.Point")b=this.containsPoint(a);else if(a.CLASS_NAME=="OpenLayers.Geometry.LineString")b=a.intersects(this);else if(a.CLASS_NAME=="OpenLayers.Geometry.LinearRing")b=OpenLayers.Geometry.LineString.prototype.intersects.apply(this,[a]);else for(var c=0,d=a.components.length;c<d;++c)if(b=a.components[c].intersects(this))break;return b},getVertices:function(a){return a===
true?[]:this.components.slice(0,this.components.length-1)},CLASS_NAME:"OpenLayers.Geometry.LinearRing"});
OpenLayers.Geometry.Polygon=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.LinearRing"],initialize:function(a){OpenLayers.Geometry.Collection.prototype.initialize.apply(this,arguments)},getArea:function(){var a=0;if(this.components&&this.components.length>0){a+=Math.abs(this.components[0].getArea());for(var b=1,c=this.components.length;b<c;b++)a-=Math.abs(this.components[b].getArea())}return a},getGeodesicArea:function(a){var b=0;if(this.components&&this.components.length>
0){b+=Math.abs(this.components[0].getGeodesicArea(a));for(var c=1,d=this.components.length;c<d;c++)b-=Math.abs(this.components[c].getGeodesicArea(a))}return b},containsPoint:function(a){var b=this.components.length,c=false;if(b>0&&(c=this.components[0].containsPoint(a),c!==1&&c&&b>1))for(var d,e=1;e<b;++e)if(d=this.components[e].containsPoint(a)){c=d===1?1:false;break}return c},intersects:function(a){var b=false,c,d;if(a.CLASS_NAME=="OpenLayers.Geometry.Point")b=this.containsPoint(a);else if(a.CLASS_NAME==
"OpenLayers.Geometry.LineString"||a.CLASS_NAME=="OpenLayers.Geometry.LinearRing"){for(c=0,d=this.components.length;c<d;++c)if(b=a.intersects(this.components[c]))break;if(!b)for(c=0,d=a.components.length;c<d;++c)if(b=this.containsPoint(a.components[c]))break}else for(c=0,d=a.components.length;c<d;++c)if(b=this.intersects(a.components[c]))break;if(!b&&a.CLASS_NAME=="OpenLayers.Geometry.Polygon"){var e=this.components[0];for(c=0,d=e.components.length;c<d;++c)if(b=a.containsPoint(e.components[c]))break}return b},
distanceTo:function(a,b){return b&&b.edge===false&&this.intersects(a)?0:OpenLayers.Geometry.Collection.prototype.distanceTo.apply(this,[a,b])},CLASS_NAME:"OpenLayers.Geometry.Polygon"});OpenLayers.Geometry.Polygon.createRegularPolygon=function(a,b,c,d){var e=Math.PI*(1/c-0.5);d&&(e+=d/180*Math.PI);for(var f,g=[],h=0;h<c;++h)f=e+h*2*Math.PI/c,d=a.x+b*Math.cos(f),f=a.y+b*Math.sin(f),g.push(new OpenLayers.Geometry.Point(d,f));a=new OpenLayers.Geometry.LinearRing(g);return new OpenLayers.Geometry.Polygon([a])};
OpenLayers.Format.GeoRSS=OpenLayers.Class(OpenLayers.Format.XML,{rssns:"http://backend.userland.com/rss2",featureNS:"http://mapserver.gis.umn.edu/mapserver",georssns:"http://www.georss.org/georss",geons:"http://www.w3.org/2003/01/geo/wgs84_pos#",featureTitle:"Untitled",featureDescription:"No Description",gmlParser:null,xy:false,createGeometryFromItem:function(a){var b=this.getElementsByTagNameNS(a,this.georssns,"point"),c=this.getElementsByTagNameNS(a,this.geons,"lat"),d=this.getElementsByTagNameNS(a,
this.geons,"long"),e=this.getElementsByTagNameNS(a,this.georssns,"line"),f=this.getElementsByTagNameNS(a,this.georssns,"polygon"),g=this.getElementsByTagNameNS(a,this.georssns,"where"),a=this.getElementsByTagNameNS(a,this.georssns,"box");if(b.length>0||c.length>0&&d.length>0){b.length>0?(c=OpenLayers.String.trim(b[0].firstChild.nodeValue).split(/\s+/),c.length!=2&&(c=OpenLayers.String.trim(b[0].firstChild.nodeValue).split(/\s*,\s*/))):c=[parseFloat(c[0].firstChild.nodeValue),parseFloat(d[0].firstChild.nodeValue)];
var h=new OpenLayers.Geometry.Point(parseFloat(c[1]),parseFloat(c[0]))}else if(e.length>0){c=OpenLayers.String.trim(this.concatChildValues(e[0])).split(/\s+/);d=[];e=0;for(f=c.length;e<f;e+=2)b=new OpenLayers.Geometry.Point(parseFloat(c[e+1]),parseFloat(c[e])),d.push(b);h=new OpenLayers.Geometry.LineString(d)}else if(f.length>0){c=OpenLayers.String.trim(this.concatChildValues(f[0])).split(/\s+/);d=[];e=0;for(f=c.length;e<f;e+=2)b=new OpenLayers.Geometry.Point(parseFloat(c[e+1]),parseFloat(c[e])),
d.push(b);h=new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(d)])}else if(g.length>0){if(!this.gmlParser)this.gmlParser=new OpenLayers.Format.GML({xy:this.xy});h=this.gmlParser.parseFeature(g[0]).geometry}else a.length>0&&(c=OpenLayers.String.trim(a[0].firstChild.nodeValue).split(/\s+/),d=[],c.length>3&&(b=new OpenLayers.Geometry.Point(parseFloat(c[1]),parseFloat(c[0])),d.push(b),b=new OpenLayers.Geometry.Point(parseFloat(c[1]),parseFloat(c[2])),d.push(b),b=new OpenLayers.Geometry.Point(parseFloat(c[3]),
parseFloat(c[2])),d.push(b),b=new OpenLayers.Geometry.Point(parseFloat(c[3]),parseFloat(c[0])),d.push(b),b=new OpenLayers.Geometry.Point(parseFloat(c[1]),parseFloat(c[0])),d.push(b)),h=new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(d)]));h&&this.internalProjection&&this.externalProjection&&h.transform(this.externalProjection,this.internalProjection);return h},createFeatureFromItem:function(a){var b=this.createGeometryFromItem(a),c=this.getChildValue(a,"*","title",this.featureTitle),
d=this.getChildValue(a,"*","description",this.getChildValue(a,"*","content",this.getChildValue(a,"*","summary",this.featureDescription))),e=this.getChildValue(a,"*","link");if(!e)try{e=this.getElementsByTagNameNS(a,"*","link")[0].getAttribute("href")}catch(f){e=null}a=this.getChildValue(a,"*","id",null);b=new OpenLayers.Feature.Vector(b,{title:c,description:d,link:e});b.fid=a;return b},getChildValue:function(a,b,c,d){return(a=this.getElementsByTagNameNS(a,b,c))&&a[0]&&a[0].firstChild&&a[0].firstChild.nodeValue?
OpenLayers.Format.XML.prototype.getChildValue(a[0]):d==void 0?"":d},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=null,b=this.getElementsByTagNameNS(a,"*","item");b.length==0&&(b=this.getElementsByTagNameNS(a,"*","entry"));for(var a=b.length,c=Array(a),d=0;d<a;d++)c[d]=this.createFeatureFromItem(b[d]);return c},write:function(a){var b;if(OpenLayers.Util.isArray(a)){b=this.createElementNS(this.rssns,"rss");for(var c=0,d=a.length;c<d;c++)b.appendChild(this.createFeatureXML(a[c]))}else b=
this.createFeatureXML(a);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureXML:function(a){var b=this.buildGeometryNode(a.geometry),c=this.createElementNS(this.rssns,"item"),d=this.createElementNS(this.rssns,"title");d.appendChild(this.createTextNode(a.attributes.title?a.attributes.title:""));var e=this.createElementNS(this.rssns,"description");e.appendChild(this.createTextNode(a.attributes.description?a.attributes.description:""));c.appendChild(d);c.appendChild(e);a.attributes.link&&
(d=this.createElementNS(this.rssns,"link"),d.appendChild(this.createTextNode(a.attributes.link)),c.appendChild(d));for(var f in a.attributes)f=="link"||f=="title"||f=="description"||(d=this.createTextNode(a.attributes[f]),e=f,f.search(":")!=-1&&(e=f.split(":")[1]),e=this.createElementNS(this.featureNS,"feature:"+e),e.appendChild(d),c.appendChild(e));c.appendChild(b);return c},buildGeometryNode:function(a){this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,
this.externalProjection));var b;if(a.CLASS_NAME=="OpenLayers.Geometry.Polygon")b=this.createElementNS(this.georssns,"georss:polygon"),b.appendChild(this.buildCoordinatesNode(a.components[0]));else if(a.CLASS_NAME=="OpenLayers.Geometry.LineString")b=this.createElementNS(this.georssns,"georss:line"),b.appendChild(this.buildCoordinatesNode(a));else if(a.CLASS_NAME=="OpenLayers.Geometry.Point")b=this.createElementNS(this.georssns,"georss:point"),b.appendChild(this.buildCoordinatesNode(a));else throw"Couldn't parse "+
a.CLASS_NAME;return b},buildCoordinatesNode:function(a){var b=null;if(a.components)b=a.components;if(b){for(var a=b.length,c=Array(a),d=0;d<a;d++)c[d]=b[d].y+" "+b[d].x;b=c.join(" ")}else b=a.y+" "+a.x;return this.createTextNode(b)},CLASS_NAME:"OpenLayers.Format.GeoRSS"});
OpenLayers.Event={observers:false,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(a){return a.target||a.srcElement},isSingleTouch:function(a){return a.touches&&a.touches.length==1},isMultiTouch:function(a){return a.touches&&a.touches.length>1},isLeftClick:function(a){return a.which&&a.which==1||a.button&&a.button==1},isRightClick:function(a){return a.which&&a.which==3||a.button&&a.button==2},stop:function(a,b){if(!b)a.preventDefault?
a.preventDefault():a.returnValue=false;a.stopPropagation?a.stopPropagation():a.cancelBubble=true},findElement:function(a,b){for(var c=OpenLayers.Event.element(a);c.parentNode&&(!c.tagName||c.tagName.toUpperCase()!=b.toUpperCase());)c=c.parentNode;return c},observe:function(a,b,c,d){a=OpenLayers.Util.getElement(a);d=d||false;if(b=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.attachEvent))b="keydown";if(!this.observers)this.observers={};if(!a._eventCacheID){var e="eventCacheID_";
a.id&&(e=a.id+"_"+e);a._eventCacheID=OpenLayers.Util.createUniqueID(e)}e=a._eventCacheID;this.observers[e]||(this.observers[e]=[]);this.observers[e].push({element:a,name:b,observer:c,useCapture:d});a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},stopObservingElement:function(a){a=OpenLayers.Util.getElement(a)._eventCacheID;this._removeElementObservers(OpenLayers.Event.observers[a])},_removeElementObservers:function(a){if(a)for(var b=a.length-1;b>=0;b--){var c=
a[b];OpenLayers.Event.stopObserving.apply(this,[c.element,c.name,c.observer,c.useCapture])}},stopObserving:function(a,b,c,d){var d=d||false,a=OpenLayers.Util.getElement(a),e=a._eventCacheID;if(b=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.detachEvent))b="keydown";var f=false,g=OpenLayers.Event.observers[e];if(g)for(var h=0;!f&&h<g.length;){var i=g[h];if(i.name==b&&i.observer==c&&i.useCapture==d){g.splice(h,1);g.length==0&&delete OpenLayers.Event.observers[e];f=true;break}h++}f&&
(a.removeEventListener?a.removeEventListener(b,c,d):a&&a.detachEvent&&a.detachEvent("on"+b,c));return f},unloadCache:function(){if(OpenLayers.Event&&OpenLayers.Event.observers){for(var a in OpenLayers.Event.observers)OpenLayers.Event._removeElementObservers.apply(this,[OpenLayers.Event.observers[a]]);OpenLayers.Event.observers=false}},CLASS_NAME:"OpenLayers.Event"};OpenLayers.Event.observe(window,"unload",OpenLayers.Event.unloadCache,false);
if(window.Event)OpenLayers.Util.applyDefaults(window.Event,OpenLayers.Event);else var Event=OpenLayers.Event;
OpenLayers.Events=OpenLayers.Class({BROWSER_EVENTS:"mouseover,mouseout,mousedown,mouseup,mousemove,click,dblclick,rightclick,dblrightclick,resize,focus,blur,touchstart,touchmove,touchend".split(","),listeners:null,object:null,element:null,eventTypes:null,eventHandler:null,fallThrough:null,includeXY:false,clearMouseListener:null,initialize:function(a,b,c,d,e){OpenLayers.Util.extend(this,e);this.object=a;this.fallThrough=d;this.listeners={};this.eventHandler=OpenLayers.Function.bindAsEventListener(this.handleBrowserEvent,
this);this.clearMouseListener=OpenLayers.Function.bind(this.clearMouseCache,this);this.eventTypes=[];if(c!=null){a=0;for(d=c.length;a<d;a++)this.addEventType(c[a])}b!=null&&this.attachToElement(b)},destroy:function(){this.element&&(OpenLayers.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&OpenLayers.Event.stopObserving(window,"scroll",this.clearMouseListener));this.eventHandler=this.fallThrough=this.eventTypes=this.object=this.listeners=this.element=null},addEventType:function(a){this.listeners[a]||
(this.eventTypes.push(a),this.listeners[a]=[])},attachToElement:function(a){this.element&&OpenLayers.Event.stopObservingElement(this.element);this.element=a;for(var b=0,c=this.BROWSER_EVENTS.length;b<c;b++){var d=this.BROWSER_EVENTS[b];this.addEventType(d);OpenLayers.Event.observe(a,d,this.eventHandler)}OpenLayers.Event.observe(a,"dragstart",OpenLayers.Event.stop)},on:function(a){for(var b in a)b!="scope"&&this.register(b,a.scope,a[b])},register:function(a,b,c){if(c!=null&&OpenLayers.Util.indexOf(this.eventTypes,
a)!=-1){if(b==null)b=this.object;this.listeners[a].push({obj:b,func:c})}},registerPriority:function(a,b,c){if(c!=null){if(b==null)b=this.object;a=this.listeners[a];a!=null&&a.unshift({obj:b,func:c})}},un:function(a){for(var b in a)b!="scope"&&this.unregister(b,a.scope,a[b])},unregister:function(a,b,c){if(b==null)b=this.object;a=this.listeners[a];if(a!=null)for(var d=0,e=a.length;d<e;d++)if(a[d].obj==b&&a[d].func==c){a.splice(d,1);break}},remove:function(a){this.listeners[a]!=null&&(this.listeners[a]=
[])},triggerEvent:function(a,b){var c=this.listeners[a];if(c&&c.length!=0){b==null&&(b={});b.object=this.object;b.element=this.element;if(!b.type)b.type=a;for(var c=c.slice(),d,e=0,f=c.length;e<f;e++)if(d=c[e],d=d.func.apply(d.obj,[b]),d!=void 0&&d==false)break;this.fallThrough||OpenLayers.Event.stop(b,true);return d}},handleBrowserEvent:function(a){var b=a.type,c=this.listeners[b];if(c&&c.length!=0){if((c=a.touches)&&c[0]){for(var d=0,e=0,f=c.length,g,h=0;h<f;++h)g=c[h],d+=g.clientX,e+=g.clientY;
a.clientX=d/f;a.clientY=e/f}if(this.includeXY)a.xy=this.getMousePosition(a);this.triggerEvent(b,a)}},clearMouseCache:function(){this.element.scrolls=null;this.element.lefttop=null;var a=document.body;if(a&&(!(a.scrollTop!=0||a.scrollLeft!=0)||!navigator.userAgent.match(/iPhone/i)))this.element.offsets=null},getMousePosition:function(a){if(this.includeXY){if(!this.element.hasScrollEvent)OpenLayers.Event.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=true}else this.clearMouseCache();
if(!this.element.scrolls){var b=OpenLayers.Util.getViewportElement();this.element.scrolls=[b.scrollLeft,b.scrollTop]}if(!this.element.lefttop)this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0];if(!this.element.offsets)this.element.offsets=OpenLayers.Util.pagePosition(this.element);return new OpenLayers.Pixel(a.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],a.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])},
CLASS_NAME:"OpenLayers.Events"});
OpenLayers.Tween=OpenLayers.Class({INTERVAL:10,easing:null,begin:null,finish:null,duration:null,callbacks:null,time:null,interval:null,playing:false,initialize:function(a){this.easing=a?a:OpenLayers.Easing.Expo.easeOut},start:function(a,b,c,d){this.playing=true;this.begin=a;this.finish=b;this.duration=c;this.callbacks=d.callbacks;this.time=0;if(this.interval)window.clearInterval(this.interval),this.interval=null;this.callbacks&&this.callbacks.start&&this.callbacks.start.call(this,this.begin);this.interval=
window.setInterval(OpenLayers.Function.bind(this.play,this),this.INTERVAL)},stop:function(){if(this.playing)this.callbacks&&this.callbacks.done&&this.callbacks.done.call(this,this.finish),window.clearInterval(this.interval),this.interval=null,this.playing=false},play:function(){var a={},b;for(b in this.begin){var c=this.begin[b],d=this.finish[b];(c==null||d==null||isNaN(c)||isNaN(d))&&OpenLayers.Console.error("invalid value for Tween");a[b]=this.easing.apply(this,[this.time,c,d-c,this.duration])}this.time++;
this.callbacks&&this.callbacks.eachStep&&this.callbacks.eachStep.call(this,a);this.time>this.duration&&this.stop()},CLASS_NAME:"OpenLayers.Tween"});OpenLayers.Easing={CLASS_NAME:"OpenLayers.Easing"};OpenLayers.Easing.Linear={easeIn:function(a,b,c,d){return c*a/d+b},easeOut:function(a,b,c,d){return c*a/d+b},easeInOut:function(a,b,c,d){return c*a/d+b},CLASS_NAME:"OpenLayers.Easing.Linear"};
OpenLayers.Easing.Expo={easeIn:function(a,b,c,d){return a==0?b:c*Math.pow(2,10*(a/d-1))+b},easeOut:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeInOut:function(a,b,c,d){return a==0?b:a==d?b+c:(a/=d/2)<1?c/2*Math.pow(2,10*(a-1))+b:c/2*(-Math.pow(2,-10*--a)+2)+b},CLASS_NAME:"OpenLayers.Easing.Expo"};
OpenLayers.Easing.Quad={easeIn:function(a,b,c,d){return c*(a/=d)*a+b},easeOut:function(a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOut:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},CLASS_NAME:"OpenLayers.Easing.Quad"};
OpenLayers.Map=OpenLayers.Class({Z_INDEX_BASE:{BaseLayer:100,Overlay:325,Feature:725,Popup:750,Control:1E3},EVENT_TYPES:"preaddlayer,addlayer,preremovelayer,removelayer,changelayer,movestart,move,moveend,zoomend,popupopen,popupclose,addmarker,removemarker,clearmarkers,mouseover,mouseout,mousemove,dragstart,drag,dragend,changebaselayer".split(","),id:null,fractionalZoom:false,events:null,allOverlays:false,div:null,dragging:false,size:null,viewPortDiv:null,layerContainerOrigin:null,layerContainerDiv:null,
layers:null,controls:null,popups:null,baseLayer:null,center:null,resolution:null,zoom:0,panRatio:1.5,viewRequestID:0,tileSize:null,projection:"EPSG:4326",units:"degrees",resolutions:null,maxResolution:1.40625,minResolution:null,maxScale:null,minScale:null,maxExtent:null,minExtent:null,restrictedExtent:null,numZoomLevels:16,theme:null,displayProjection:null,fallThrough:true,panTween:null,eventListeners:null,panMethod:OpenLayers.Easing.Expo.easeOut,panDuration:50,paddingForPopups:null,minPx:null,maxPx:null,
initialize:function(a,b){arguments.length===1&&typeof a==="object"&&(a=(b=a)&&b.div);this.tileSize=new OpenLayers.Size(OpenLayers.Map.TILE_WIDTH,OpenLayers.Map.TILE_HEIGHT);this.maxExtent=new OpenLayers.Bounds(-180,-90,180,90);this.paddingForPopups=new OpenLayers.Bounds(15,15,15,15);this.theme=OpenLayers._getScriptLocation()+"theme/default/style.css";OpenLayers.Util.extend(this,b);this.layers=[];this.id=OpenLayers.Util.createUniqueID("OpenLayers.Map_");this.div=OpenLayers.Util.getElement(a);if(!this.div)this.div=
document.createElement("div"),this.div.style.height="1px",this.div.style.width="1px";OpenLayers.Element.addClass(this.div,"olMap");var c=this.id+"_OpenLayers_ViewPort";this.viewPortDiv=OpenLayers.Util.createDiv(c,null,null,null,"relative",null,"hidden");this.viewPortDiv.style.width="100%";this.viewPortDiv.style.height="100%";this.viewPortDiv.className="olMapViewport";this.div.appendChild(this.viewPortDiv);c=document.createElement("div");c.id=this.id+"_events";c.style.position="absolute";c.style.width=
"100%";c.style.height="100%";c.style.zIndex=this.Z_INDEX_BASE.Control-1;this.viewPortDiv.appendChild(c);this.eventsDiv=c;this.events=new OpenLayers.Events(this,this.eventsDiv,this.EVENT_TYPES,this.fallThrough,{includeXY:true});c=this.id+"_OpenLayers_Container";this.layerContainerDiv=OpenLayers.Util.createDiv(c);this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE.Popup-1;this.eventsDiv.appendChild(this.layerContainerDiv);this.updateSize();if(this.eventListeners instanceof Object)this.events.on(this.eventListeners);
this.events.register("movestart",this,this.updateSize);OpenLayers.String.contains(navigator.appName,"Microsoft")?this.events.register("resize",this,this.updateSize):(this.updateSizeDestroy=OpenLayers.Function.bind(this.updateSize,this),OpenLayers.Event.observe(window,"resize",this.updateSizeDestroy));if(this.theme){for(var c=true,d=document.getElementsByTagName("link"),e=0,f=d.length;e<f;++e)if(OpenLayers.Util.isEquivalentUrl(d.item(e).href,this.theme)){c=false;break}c&&(c=document.createElement("link"),
c.setAttribute("rel","stylesheet"),c.setAttribute("type","text/css"),c.setAttribute("href",this.theme),document.getElementsByTagName("head")[0].appendChild(c))}if(this.controls==null)this.controls=OpenLayers.Control!=null?[new OpenLayers.Control.Navigation,new OpenLayers.Control.PanZoom,new OpenLayers.Control.ArgParser,new OpenLayers.Control.Attribution]:[];e=0;for(f=this.controls.length;e<f;e++)this.addControlToMap(this.controls[e]);this.popups=[];this.unloadDestroy=OpenLayers.Function.bind(this.destroy,
this);OpenLayers.Event.observe(window,"unload",this.unloadDestroy);b&&b.layers&&(delete this.center,this.addLayers(b.layers),b.center&&this.setCenter(b.center,b.zoom))},render:function(a){this.div=OpenLayers.Util.getElement(a);OpenLayers.Element.addClass(this.div,"olMap");this.viewPortDiv.parentNode.removeChild(this.viewPortDiv);this.div.appendChild(this.viewPortDiv);this.updateSize()},unloadDestroy:null,updateSizeDestroy:null,destroy:function(){if(!this.unloadDestroy)return false;if(this.panTween)this.panTween.stop(),
this.panTween=null;OpenLayers.Event.stopObserving(window,"unload",this.unloadDestroy);this.unloadDestroy=null;this.updateSizeDestroy?OpenLayers.Event.stopObserving(window,"resize",this.updateSizeDestroy):this.events.unregister("resize",this,this.updateSize);this.paddingForPopups=null;if(this.controls!=null){for(var a=this.controls.length-1;a>=0;--a)this.controls[a].destroy();this.controls=null}if(this.layers!=null){for(a=this.layers.length-1;a>=0;--a)this.layers[a].destroy(false);this.layers=null}this.viewPortDiv&&
this.div.removeChild(this.viewPortDiv);this.viewPortDiv=null;if(this.eventListeners)this.events.un(this.eventListeners),this.eventListeners=null;this.events.destroy();this.events=null},setOptions:function(a){var b=this.minPx&&a.restrictedExtent!=this.restrictedExtent;OpenLayers.Util.extend(this,a);b&&this.moveTo(this.getCachedCenter(),this.zoom,{forceZoomChange:true})},getTileSize:function(){return this.tileSize},getBy:function(a,b,c){var d=typeof c.test=="function";return OpenLayers.Array.filter(this[a],
function(a){return a[b]==c||d&&c.test(a[b])})},getLayersBy:function(a,b){return this.getBy("layers",a,b)},getLayersByName:function(a){return this.getLayersBy("name",a)},getLayersByClass:function(a){return this.getLayersBy("CLASS_NAME",a)},getControlsBy:function(a,b){return this.getBy("controls",a,b)},getControlsByClass:function(a){return this.getControlsBy("CLASS_NAME",a)},getLayer:function(a){for(var b=null,c=0,d=this.layers.length;c<d;c++){var e=this.layers[c];if(e.id==a){b=e;break}}return b},setLayerZIndex:function(a,
b){a.setZIndex(this.Z_INDEX_BASE[a.isBaseLayer?"BaseLayer":"Overlay"]+b*5)},resetLayersZIndex:function(){for(var a=0,b=this.layers.length;a<b;a++)this.setLayerZIndex(this.layers[a],a)},addLayer:function(a){for(var b=0,c=this.layers.length;b<c;b++)if(this.layers[b]==a)return a=OpenLayers.i18n("layerAlreadyAdded",{layerName:a.name}),OpenLayers.Console.warn(a),false;if(this.events.triggerEvent("preaddlayer",{layer:a})!==false){if(this.allOverlays)a.isBaseLayer=false;a.div.className="olLayerDiv";a.div.style.overflow=
"";this.setLayerZIndex(a,this.layers.length);a.isFixed?this.viewPortDiv.appendChild(a.div):this.layerContainerDiv.appendChild(a.div);this.layers.push(a);a.setMap(this);a.isBaseLayer||this.allOverlays&&!this.baseLayer?this.baseLayer==null?this.setBaseLayer(a):a.setVisibility(false):a.redraw();this.events.triggerEvent("addlayer",{layer:a});a.events.triggerEvent("added",{map:this,layer:a});a.afterAdd()}},addLayers:function(a){for(var b=0,c=a.length;b<c;b++)this.addLayer(a[b])},removeLayer:function(a,
b){if(this.events.triggerEvent("preremovelayer",{layer:a})!==false){b==null&&(b=true);a.isFixed?this.viewPortDiv.removeChild(a.div):this.layerContainerDiv.removeChild(a.div);OpenLayers.Util.removeItem(this.layers,a);a.removeMap(this);a.map=null;if(this.baseLayer==a&&(this.baseLayer=null,b))for(var c=0,d=this.layers.length;c<d;c++){var e=this.layers[c];if(e.isBaseLayer||this.allOverlays){this.setBaseLayer(e);break}}this.resetLayersZIndex();this.events.triggerEvent("removelayer",{layer:a});a.events.triggerEvent("removed",
{map:this,layer:a})}},getNumLayers:function(){return this.layers.length},getLayerIndex:function(a){return OpenLayers.Util.indexOf(this.layers,a)},setLayerIndex:function(a,b){var c=this.getLayerIndex(a);if(b<0)b=0;else if(b>this.layers.length)b=this.layers.length;if(c!=b){this.layers.splice(c,1);this.layers.splice(b,0,a);for(var c=0,d=this.layers.length;c<d;c++)this.setLayerZIndex(this.layers[c],c);this.events.triggerEvent("changelayer",{layer:a,property:"order"});this.allOverlays&&(b===0?this.setBaseLayer(a):
this.baseLayer!==this.layers[0]&&this.setBaseLayer(this.layers[0]))}},raiseLayer:function(a,b){var c=this.getLayerIndex(a)+b;this.setLayerIndex(a,c)},setBaseLayer:function(a){if(a!=this.baseLayer&&OpenLayers.Util.indexOf(this.layers,a)!=-1){var b=this.getCachedCenter(),c=OpenLayers.Util.getResolutionFromScale(this.getScale(),a.units);this.baseLayer!=null&&!this.allOverlays&&this.baseLayer.setVisibility(false);this.baseLayer=a;this.viewRequestID++;(!this.allOverlays||this.baseLayer.visibility)&&this.baseLayer.setVisibility(true);
b!=null&&(a=this.getZoomForResolution(c||this.resolution,true),this.setCenter(b,a,false,true));this.events.triggerEvent("changebaselayer",{layer:this.baseLayer})}},addControl:function(a,b){this.controls.push(a);this.addControlToMap(a,b)},addControls:function(a,b){for(var c=arguments.length===1?[]:b,d=0,e=a.length;d<e;d++)this.addControl(a[d],c[d]?c[d]:null)},addControlToMap:function(a,b){a.outsideViewport=a.div!=null;if(this.displayProjection&&!a.displayProjection)a.displayProjection=this.displayProjection;
a.setMap(this);var c=a.draw(b);if(c&&!a.outsideViewport)c.style.zIndex=this.Z_INDEX_BASE.Control+this.controls.length,this.viewPortDiv.appendChild(c);a.autoActivate&&a.activate()},getControl:function(a){for(var b=null,c=0,d=this.controls.length;c<d;c++){var e=this.controls[c];if(e.id==a){b=e;break}}return b},removeControl:function(a){a&&a==this.getControl(a.id)&&(a.div&&a.div.parentNode==this.viewPortDiv&&this.viewPortDiv.removeChild(a.div),OpenLayers.Util.removeItem(this.controls,a))},addPopup:function(a,
b){if(b)for(var c=this.popups.length-1;c>=0;--c)this.removePopup(this.popups[c]);a.map=this;this.popups.push(a);if(c=a.draw())c.style.zIndex=this.Z_INDEX_BASE.Popup+this.popups.length,this.layerContainerDiv.appendChild(c)},removePopup:function(a){OpenLayers.Util.removeItem(this.popups,a);if(a.div)try{this.layerContainerDiv.removeChild(a.div)}catch(b){}a.map=null},getSize:function(){var a=null;this.size!=null&&(a=this.size.clone());return a},updateSize:function(){var a=this.getCurrentSize();if(a&&
!isNaN(a.h)&&!isNaN(a.w)){this.events.clearMouseCache();var b=this.getSize();if(b==null)this.size=b=a;if(!a.equals(b)){this.size=a;a=0;for(b=this.layers.length;a<b;a++)this.layers[a].onMapResize();a=this.getCachedCenter();if(this.baseLayer!=null&&a!=null)b=this.getZoom(),this.zoom=null,this.setCenter(a,b)}}},getCurrentSize:function(){var a=new OpenLayers.Size(this.div.clientWidth,this.div.clientHeight);if(a.w==0&&a.h==0||isNaN(a.w)&&isNaN(a.h))a.w=this.div.offsetWidth,a.h=this.div.offsetHeight;if(a.w==
0&&a.h==0||isNaN(a.w)&&isNaN(a.h))a.w=parseInt(this.div.style.width),a.h=parseInt(this.div.style.height);return a},calculateBounds:function(a,b){var c=null;a==null&&(a=this.getCachedCenter());b==null&&(b=this.getResolution());if(a!=null&&b!=null)var d=this.getSize(),c=d.w*b,d=d.h*b,c=new OpenLayers.Bounds(a.lon-c/2,a.lat-d/2,a.lon+c/2,a.lat+d/2);return c},getCenter:function(){var a=null,b=this.getCachedCenter();b&&(a=b.clone());return a},getCachedCenter:function(){if(!this.center&&this.size)this.center=
this.getLonLatFromViewPortPx(new OpenLayers.Pixel(this.size.w/2,this.size.h/2));return this.center},getZoom:function(){return this.zoom},pan:function(a,b,c){c=OpenLayers.Util.applyDefaults(c,{animate:true,dragging:false});if(c.dragging)(a!=0||b!=0)&&this.moveByPx(a,b);else{var d=this.getViewPortPxFromLonLat(this.getCachedCenter()),a=d.add(a,b);if(this.dragging||!a.equals(d))d=this.getLonLatFromViewPortPx(a),c.animate?this.panTo(d):(this.moveTo(d),this.dragging=false,this.events.triggerEvent("moveend"))}},
panTo:function(a){if(this.panMethod&&this.getExtent().scale(this.panRatio).containsLonLat(a)){if(!this.panTween)this.panTween=new OpenLayers.Tween(this.panMethod);var b=this.getCachedCenter();if(!a.equals(b)){var b=this.getPixelFromLonLat(b),c=this.getPixelFromLonLat(a),d=0,e=0;this.panTween.start({x:0,y:0},{x:c.x-b.x,y:c.y-b.y},this.panDuration,{callbacks:{eachStep:OpenLayers.Function.bind(function(a){this.moveByPx(a.x-d,a.y-e);d=Math.round(a.x);e=Math.round(a.y)},this),done:OpenLayers.Function.bind(function(){this.moveTo(a);
this.dragging=false;this.events.triggerEvent("moveend")},this)}})}}else this.setCenter(a)},setCenter:function(a,b,c,d){this.panTween&&this.panTween.stop();this.moveTo(a,b,{dragging:c,forceZoomChange:d})},moveByPx:function(a,b){var c=this.size.w/2,d=this.size.h/2,e=c+a,f=d+b,g=this.baseLayer.wrapDateLine,h=0,i=0;this.restrictedExtent&&(h=c,i=d,g=false);a=g||e<=this.maxPx.x-h&&e>=this.minPx.x+h?Math.round(a):0;b=f<=this.maxPx.y-i&&f>=this.minPx.y+i?Math.round(b):0;c=this.minPx.x;d=this.maxPx.x;if(a||
b){if(!this.dragging)this.dragging=true,this.events.triggerEvent("movestart");this.center=null;if(a)this.layerContainerDiv.style.left=parseInt(this.layerContainerDiv.style.left)-a+"px",this.minPx.x-=a,this.maxPx.x-=a,g&&(this.maxPx.x>d&&(this.maxPx.x-=d-c),this.minPx.x<c&&(this.minPx.x+=d-c));if(b)this.layerContainerDiv.style.top=parseInt(this.layerContainerDiv.style.top)-b+"px",this.minPx.y-=b,this.maxPx.y-=b;for(c=0,d=this.layers.length;c<d;++c)if(g=this.layers[c],g.visibility&&(g===this.baseLayer||
g.inRange))g.moveByPx(a,b),g.events.triggerEvent("move");this.events.triggerEvent("move")}},moveTo:function(a,b,c){c||(c={});b!=null&&(b=parseFloat(b),this.fractionalZoom||(b=Math.round(b)));var d=c.dragging||this.dragging,e=c.forceZoomChange;if(!this.getCachedCenter()&&!this.isValidLonLat(a))a=this.maxExtent.getCenterLonLat(),this.center=a.clone();if(this.restrictedExtent!=null){if(a==null)a=this.center;b==null&&(b=this.getZoom());var f=this.getResolutionForZoom(b),f=this.calculateBounds(a,f);if(!this.restrictedExtent.containsBounds(f)){var g=
this.restrictedExtent.getCenterLonLat();f.getWidth()>this.restrictedExtent.getWidth()?a=new OpenLayers.LonLat(g.lon,a.lat):f.left<this.restrictedExtent.left?a=a.add(this.restrictedExtent.left-f.left,0):f.right>this.restrictedExtent.right&&(a=a.add(this.restrictedExtent.right-f.right,0));f.getHeight()>this.restrictedExtent.getHeight()?a=new OpenLayers.LonLat(a.lon,g.lat):f.bottom<this.restrictedExtent.bottom?a=a.add(0,this.restrictedExtent.bottom-f.bottom):f.top>this.restrictedExtent.top&&(a=a.add(0,
this.restrictedExtent.top-f.top))}}e=e||this.isValidZoomLevel(b)&&b!=this.getZoom();f=this.isValidLonLat(a)&&!a.equals(this.center);if(e||f||d){d||this.events.triggerEvent("movestart");if(f)!e&&this.center&&this.centerLayerContainer(a),this.center=a.clone();a=e?this.getResolutionForZoom(b):this.getResolution();if(e||this.layerContainerOrigin==null){this.layerContainerOrigin=this.getCachedCenter();this.layerContainerDiv.style.left="0px";this.layerContainerDiv.style.top="0px";var h=this.getMaxExtent({restricted:true}),
f=h.getCenterLonLat(),g=this.center.lon-f.lon,i=f.lat-this.center.lat,f=Math.round(h.getWidth()/a),h=Math.round(h.getHeight()/a),g=(this.size.w-f)/2-g/a,i=(this.size.h-h)/2-i/a;this.minPx=new OpenLayers.Pixel(g,i);this.maxPx=new OpenLayers.Pixel(g+f,i+h)}if(e)this.zoom=b,this.resolution=a,this.viewRequestID++;a=this.getExtent();this.baseLayer.visibility&&(this.baseLayer.moveTo(a,e,c.dragging),c.dragging||this.baseLayer.events.triggerEvent("moveend",{zoomChanged:e}));a=this.baseLayer.getExtent();for(b=
this.layers.length-1;b>=0;--b)if(f=this.layers[b],f!==this.baseLayer&&!f.isBaseLayer){g=f.calculateInRange();if(f.inRange!=g)(f.inRange=g)||f.display(false),this.events.triggerEvent("changelayer",{layer:f,property:"visibility"});g&&f.visibility&&(f.moveTo(a,e,c.dragging),c.dragging||f.events.triggerEvent("moveend",{zoomChanged:e}))}this.events.triggerEvent("move");d||this.events.triggerEvent("moveend");if(e){b=0;for(c=this.popups.length;b<c;b++)this.popups[b].updatePosition();this.events.triggerEvent("zoomend")}}},
centerLayerContainer:function(a){var b=this.getViewPortPxFromLonLat(this.layerContainerOrigin),c=this.getViewPortPxFromLonLat(a);if(b!=null&&c!=null){var d=parseInt(this.layerContainerDiv.style.left),a=parseInt(this.layerContainerDiv.style.top),e=Math.round(b.x-c.x),b=Math.round(b.y-c.y);this.layerContainerDiv.style.left=e+"px";this.layerContainerDiv.style.top=b+"px";d-=e;a-=b;this.minPx.x-=d;this.maxPx.x-=d;this.minPx.y-=a;this.maxPx.y-=a}},isValidZoomLevel:function(a){return a!=null&&a>=0&&a<this.getNumZoomLevels()},
isValidLonLat:function(a){var b=false;a!=null&&(b=this.getMaxExtent().containsLonLat(a));return b},getProjection:function(){var a=this.getProjectionObject();return a?a.getCode():null},getProjectionObject:function(){var a=null;if(this.baseLayer!=null)a=this.baseLayer.projection;return a},getMaxResolution:function(){var a=null;if(this.baseLayer!=null)a=this.baseLayer.maxResolution;return a},getMaxExtent:function(a){var b=null;if(a&&a.restricted&&this.restrictedExtent)b=this.restrictedExtent;else if(this.baseLayer!=
null)b=this.baseLayer.maxExtent;return b},getNumZoomLevels:function(){var a=null;if(this.baseLayer!=null)a=this.baseLayer.numZoomLevels;return a},getExtent:function(){var a=null;this.baseLayer!=null&&(a=this.baseLayer.getExtent());return a},getResolution:function(){var a=null;this.baseLayer!=null?a=this.baseLayer.getResolution():this.allOverlays===true&&this.layers.length>0&&(a=this.layers[0].getResolution());return a},getUnits:function(){var a=null;if(this.baseLayer!=null)a=this.baseLayer.units;
return a},getScale:function(){var a=null;this.baseLayer!=null&&(a=this.getResolution(),a=OpenLayers.Util.getScaleFromResolution(a,this.baseLayer.units));return a},getZoomForExtent:function(a,b){var c=null;this.baseLayer!=null&&(c=this.baseLayer.getZoomForExtent(a,b));return c},getResolutionForZoom:function(a){var b=null;this.baseLayer&&(b=this.baseLayer.getResolutionForZoom(a));return b},getZoomForResolution:function(a,b){var c=null;this.baseLayer!=null&&(c=this.baseLayer.getZoomForResolution(a,b));
return c},zoomTo:function(a){this.isValidZoomLevel(a)&&this.setCenter(null,a)},zoomIn:function(){this.zoomTo(this.getZoom()+1)},zoomOut:function(){this.zoomTo(this.getZoom()-1)},zoomToExtent:function(a,b){var c=a.getCenterLonLat();if(this.baseLayer.wrapDateLine){c=this.getMaxExtent();for(a=a.clone();a.right<a.left;)a.right+=c.getWidth();c=a.getCenterLonLat().wrapDateLine(c)}this.setCenter(c,this.getZoomForExtent(a,b))},zoomToMaxExtent:function(a){this.zoomToExtent(this.getMaxExtent({restricted:a?
a.restricted:true}))},zoomToScale:function(a,b){var c=OpenLayers.Util.getResolutionFromScale(a,this.baseLayer.units),d=this.getSize(),e=d.w*c;c*=d.h;d=this.getCachedCenter();this.zoomToExtent(new OpenLayers.Bounds(d.lon-e/2,d.lat-c/2,d.lon+e/2,d.lat+c/2),b)},getLonLatFromViewPortPx:function(a){var b=null;this.baseLayer!=null&&(b=this.baseLayer.getLonLatFromViewPortPx(a));return b},getViewPortPxFromLonLat:function(a){var b=null;this.baseLayer!=null&&(b=this.baseLayer.getViewPortPxFromLonLat(a));return b},
getLonLatFromPixel:function(a){return this.getLonLatFromViewPortPx(a)},getPixelFromLonLat:function(a){a=this.getViewPortPxFromLonLat(a);a.x=Math.round(a.x);a.y=Math.round(a.y);return a},getGeodesicPixelSize:function(a){var b=a?this.getLonLatFromPixel(a):this.getCachedCenter()||new OpenLayers.LonLat(0,0),c=this.getResolution(),a=b.add(-c/2,0),d=b.add(c/2,0),e=b.add(0,-c/2),b=b.add(0,c/2),c=new OpenLayers.Projection("EPSG:4326"),f=this.getProjectionObject()||c;f.equals(c)||(a.transform(f,c),d.transform(f,
c),e.transform(f,c),b.transform(f,c));return new OpenLayers.Size(OpenLayers.Util.distVincenty(a,d),OpenLayers.Util.distVincenty(e,b))},getViewPortPxFromLayerPx:function(a){var b=null;if(a!=null)var b=parseInt(this.layerContainerDiv.style.left),c=parseInt(this.layerContainerDiv.style.top),b=a.add(b,c);return b},getLayerPxFromViewPortPx:function(a){var b=null;if(a!=null){var b=-parseInt(this.layerContainerDiv.style.left),c=-parseInt(this.layerContainerDiv.style.top),b=a.add(b,c);if(isNaN(b.x)||isNaN(b.y))b=
null}return b},getLonLatFromLayerPx:function(a){a=this.getViewPortPxFromLayerPx(a);return this.getLonLatFromViewPortPx(a)},getLayerPxFromLonLat:function(a){return this.getLayerPxFromViewPortPx(this.getPixelFromLonLat(a))},CLASS_NAME:"OpenLayers.Map"});OpenLayers.Map.TILE_WIDTH=256;OpenLayers.Map.TILE_HEIGHT=256;
OpenLayers.Projection=OpenLayers.Class({proj:null,projCode:null,titleRegEx:/\+title=[^\+]*/,initialize:function(a,b){OpenLayers.Util.extend(this,b);this.projCode=a;if(window.Proj4js)this.proj=new Proj4js.Proj(a)},getCode:function(){return this.proj?this.proj.srsCode:this.projCode},getUnits:function(){return this.proj?this.proj.units:null},toString:function(){return this.getCode()},equals:function(a){var b=false;a&&(window.Proj4js&&this.proj.defData&&a.proj.defData?b=this.proj.defData.replace(this.titleRegEx,
"")==a.proj.defData.replace(this.titleRegEx,""):a.getCode&&(b=this.getCode(),a=a.getCode(),b=b==a||!!OpenLayers.Projection.transforms[b]&&OpenLayers.Projection.transforms[b][a]===OpenLayers.Projection.nullTransform));return b},destroy:function(){delete this.proj;delete this.projCode},CLASS_NAME:"OpenLayers.Projection"});OpenLayers.Projection.transforms={};
OpenLayers.Projection.addTransform=function(a,b,c){OpenLayers.Projection.transforms[a]||(OpenLayers.Projection.transforms[a]={});OpenLayers.Projection.transforms[a][b]=c};OpenLayers.Projection.transform=function(a,b,c){if(b.proj&&c.proj)a=Proj4js.transform(b.proj,c.proj,a);else if(b&&c&&OpenLayers.Projection.transforms[b.getCode()]&&OpenLayers.Projection.transforms[b.getCode()][c.getCode()])OpenLayers.Projection.transforms[b.getCode()][c.getCode()](a);return a};
OpenLayers.Projection.nullTransform=function(a){return a};
OpenLayers.Layer=OpenLayers.Class({id:null,name:null,div:null,opacity:null,alwaysInRange:null,EVENT_TYPES:"loadstart,loadend,loadcancel,visibilitychanged,move,moveend,added,removed".split(","),RESOLUTION_PROPERTIES:"scales,resolutions,maxScale,minScale,maxResolution,minResolution,numZoomLevels,maxZoomLevel".split(","),events:null,map:null,isBaseLayer:false,alpha:false,displayInLayerSwitcher:true,visibility:true,attribution:null,inRange:false,imageSize:null,imageOffset:null,options:null,eventListeners:null,
gutter:0,projection:null,units:null,scales:null,resolutions:null,maxExtent:null,minExtent:null,maxResolution:null,minResolution:null,numZoomLevels:null,minScale:null,maxScale:null,displayOutsideMaxExtent:false,wrapDateLine:false,transitionEffect:null,SUPPORTED_TRANSITIONS:["resize"],metadata:{},initialize:function(a,b){this.addOptions(b);this.name=a;if(this.id==null&&(this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_"),this.div=OpenLayers.Util.createDiv(this.id),this.div.style.width="100%",
this.div.style.height="100%",this.div.dir="ltr",this.events=new OpenLayers.Events(this,this.div,this.EVENT_TYPES),this.eventListeners instanceof Object))this.events.on(this.eventListeners);if(this.wrapDateLine)this.displayOutsideMaxExtent=true},destroy:function(a){a==null&&(a=true);this.map!=null&&this.map.removeLayer(this,a);this.options=this.div=this.name=this.map=this.projection=null;this.events&&(this.eventListeners&&this.events.un(this.eventListeners),this.events.destroy());this.events=this.eventListeners=
null},clone:function(a){a==null&&(a=new OpenLayers.Layer(this.name,this.getOptions()));OpenLayers.Util.applyDefaults(a,this);a.map=null;return a},getOptions:function(){var a={},b;for(b in this.options)a[b]=this[b];return a},setName:function(a){if(a!=this.name)this.name=a,this.map!=null&&this.map.events.triggerEvent("changelayer",{layer:this,property:"name"})},addOptions:function(a,b){if(this.options==null)this.options={};OpenLayers.Util.extend(this.options,a);OpenLayers.Util.extend(this,a);if(typeof this.projection==
"string")this.projection=new OpenLayers.Projection(this.projection);if(this.projection&&this.projection.getUnits())this.units=this.projection.getUnits();if(this.map){var c=this.map.getResolution(),d=this.RESOLUTION_PROPERTIES.concat(["projection","units","minExtent","maxExtent"]),e;for(e in a)if(a.hasOwnProperty(e)&&OpenLayers.Util.indexOf(d,e)>=0){this.initResolutions();b&&this.map.baseLayer===this&&(this.map.setCenter(this.map.getCenter(),this.map.getZoomForResolution(c),false,true),this.map.events.triggerEvent("changebaselayer",
{layer:this}));break}}},onMapResize:function(){},redraw:function(){var a=false;if(this.map){this.inRange=this.calculateInRange();var b=this.getExtent();b&&this.inRange&&this.visibility&&(this.moveTo(b,true,false),this.events.triggerEvent("moveend",{zoomChanged:true}),a=true)}return a},moveTo:function(){var a=this.visibility;this.isBaseLayer||(a=a&&this.inRange);this.display(a)},moveByPx:function(){},setMap:function(a){if(this.map==null){this.map=a;this.maxExtent=this.maxExtent||this.map.maxExtent;
this.minExtent=this.minExtent||this.map.minExtent;this.projection=this.projection||this.map.projection;if(typeof this.projection=="string")this.projection=new OpenLayers.Projection(this.projection);this.units=this.projection.getUnits()||this.units||this.map.units;this.initResolutions();if(!this.isBaseLayer)this.inRange=this.calculateInRange(),this.div.style.display=this.visibility&&this.inRange?"":"none";this.setTileSize()}},afterAdd:function(){},removeMap:function(){},getImageSize:function(){return this.imageSize||
this.tileSize},setTileSize:function(a){this.tileSize=a=a?a:this.tileSize?this.tileSize:this.map.getTileSize();if(this.gutter)this.imageOffset=new OpenLayers.Pixel(-this.gutter,-this.gutter),this.imageSize=new OpenLayers.Size(a.w+2*this.gutter,a.h+2*this.gutter)},getVisibility:function(){return this.visibility},setVisibility:function(a){if(a!=this.visibility)this.visibility=a,this.display(a),this.redraw(),this.map!=null&&this.map.events.triggerEvent("changelayer",{layer:this,property:"visibility"}),
this.events.triggerEvent("visibilitychanged")},display:function(a){if(a!=(this.div.style.display!="none"))this.div.style.display=a&&this.calculateInRange()?"block":"none"},calculateInRange:function(){var a=false;this.alwaysInRange?a=true:this.map&&(a=this.map.getResolution(),a=a>=this.minResolution&&a<=this.maxResolution);return a},setIsBaseLayer:function(a){if(a!=this.isBaseLayer)this.isBaseLayer=a,this.map!=null&&this.map.events.triggerEvent("changebaselayer",{layer:this})},initResolutions:function(){var a,
b,c,d={},e=true;for(a=0,b=this.RESOLUTION_PROPERTIES.length;a<b;a++)c=this.RESOLUTION_PROPERTIES[a],d[c]=this.options[c],e&&this.options[c]&&(e=false);if(this.alwaysInRange==null)this.alwaysInRange=e;if(d.resolutions==null)d.resolutions=this.resolutionsFromScales(d.scales);if(d.resolutions==null)d.resolutions=this.calculateResolutions(d);if(d.resolutions==null){for(a=0,b=this.RESOLUTION_PROPERTIES.length;a<b;a++)c=this.RESOLUTION_PROPERTIES[a],d[c]=this.options[c]!=null?this.options[c]:this.map[c];
if(d.resolutions==null)d.resolutions=this.resolutionsFromScales(d.scales);if(d.resolutions==null)d.resolutions=this.calculateResolutions(d)}var f;if(this.options.maxResolution&&this.options.maxResolution!=="auto")f=this.options.maxResolution;this.options.minScale&&(f=OpenLayers.Util.getResolutionFromScale(this.options.minScale,this.units));var g;if(this.options.minResolution&&this.options.minResolution!=="auto")g=this.options.minResolution;this.options.maxScale&&(g=OpenLayers.Util.getResolutionFromScale(this.options.maxScale,
this.units));d.resolutions&&(d.resolutions.sort(function(a,b){return b-a}),f||(f=d.resolutions[0]),g||(g=d.resolutions[d.resolutions.length-1]));if(this.resolutions=d.resolutions){b=this.resolutions.length;this.scales=Array(b);for(a=0;a<b;a++)this.scales[a]=OpenLayers.Util.getScaleFromResolution(this.resolutions[a],this.units);this.numZoomLevels=b}if(this.minResolution=g)this.maxScale=OpenLayers.Util.getScaleFromResolution(g,this.units);if(this.maxResolution=f)this.minScale=OpenLayers.Util.getScaleFromResolution(f,
this.units)},resolutionsFromScales:function(a){if(a!=null){var b,c,d;d=a.length;b=Array(d);for(c=0;c<d;c++)b[c]=OpenLayers.Util.getResolutionFromScale(a[c],this.units);return b}},calculateResolutions:function(a){var b,c,d=a.maxResolution;a.minScale!=null?d=OpenLayers.Util.getResolutionFromScale(a.minScale,this.units):d=="auto"&&this.maxExtent!=null&&(b=this.map.getSize(),c=this.maxExtent.getWidth()/b.w,b=this.maxExtent.getHeight()/b.h,d=Math.max(c,b));c=a.minResolution;a.maxScale!=null?c=OpenLayers.Util.getResolutionFromScale(a.maxScale,
this.units):a.minResolution=="auto"&&this.minExtent!=null&&(b=this.map.getSize(),c=this.minExtent.getWidth()/b.w,b=this.minExtent.getHeight()/b.h,c=Math.max(c,b));b=a.maxZoomLevel;a=a.numZoomLevels;typeof c==="number"&&typeof d==="number"&&a===void 0?a=Math.floor(Math.log(d/c)/Math.log(2))+1:a===void 0&&b!=null&&(a=b+1);if(!(typeof a!=="number"||a<=0||typeof d!=="number"&&typeof c!=="number")){b=Array(a);var e=2;typeof c=="number"&&typeof d=="number"&&(e=Math.pow(d/c,1/(a-1)));var f;if(typeof d===
"number")for(f=0;f<a;f++)b[f]=d/Math.pow(e,f);else for(f=0;f<a;f++)b[a-1-f]=c*Math.pow(e,f);return b}},getResolution:function(){return this.getResolutionForZoom(this.map.getZoom())},getExtent:function(){return this.map.calculateBounds()},getZoomForExtent:function(a,b){var c=this.map.getSize();return this.getZoomForResolution(Math.max(a.getWidth()/c.w,a.getHeight()/c.h),b)},getDataExtent:function(){},getResolutionForZoom:function(a){a=Math.max(0,Math.min(a,this.resolutions.length-1));if(this.map.fractionalZoom)var b=
Math.floor(a),c=Math.ceil(a),a=this.resolutions[b]-(a-b)*(this.resolutions[b]-this.resolutions[c]);else a=this.resolutions[Math.round(a)];return a},getZoomForResolution:function(a,b){var c,d;if(this.map.fractionalZoom){var e=0,f=this.resolutions[e],g=this.resolutions[this.resolutions.length-1],h;for(c=0,d=this.resolutions.length;c<d;++c)if(h=this.resolutions[c],h>=a&&(f=h,e=c),h<=a){g=h;break}c=f-g;c=c>0?e+(f-a)/c:e}else{f=Number.POSITIVE_INFINITY;for(c=0,d=this.resolutions.length;c<d;c++)if(b){e=
Math.abs(this.resolutions[c]-a);if(e>f)break;f=e}else if(this.resolutions[c]<a)break;c=Math.max(0,c-1)}return c},getLonLatFromViewPortPx:function(a){var b=null,c=this.map;if(a!=null&&c.minPx){var b=c.getResolution(),d=c.getMaxExtent({restricted:true}),b=new OpenLayers.LonLat((a.x-c.minPx.x)*b+d.left,(c.minPx.y-a.y)*b+d.top);this.wrapDateLine&&(b=b.wrapDateLine(this.maxExtent))}return b},getViewPortPxFromLonLat:function(a){var b=null;if(a!=null)var b=this.map.getResolution(),c=this.map.getExtent(),
b=new OpenLayers.Pixel(1/b*(a.lon-c.left),1/b*(c.top-a.lat));return b},setOpacity:function(a){if(a!=this.opacity){this.opacity=a;for(var b=0,c=this.div.childNodes.length;b<c;++b)OpenLayers.Util.modifyDOMElement(this.div.childNodes[b].firstChild,null,null,null,null,null,null,a);this.map!=null&&this.map.events.triggerEvent("changelayer",{layer:this,property:"opacity"})}},getZIndex:function(){return this.div.style.zIndex},setZIndex:function(a){this.div.style.zIndex=a},adjustBounds:function(a){if(this.gutter)var b=
this.gutter*this.map.getResolution(),a=new OpenLayers.Bounds(a.left-b,a.bottom-b,a.right+b,a.top+b);this.wrapDateLine&&(b={rightTolerance:this.getResolution(),leftTolerance:this.getResolution()},a=a.wrapDateLine(this.maxExtent,b));return a},CLASS_NAME:"OpenLayers.Layer"});
OpenLayers.Layer.SphericalMercator={getExtent:function(){var a=null;return a=this.sphericalMercator?this.map.calculateBounds():OpenLayers.Layer.FixedZoomLevels.prototype.getExtent.apply(this)},getLonLatFromViewPortPx:function(a){return OpenLayers.Layer.prototype.getLonLatFromViewPortPx.apply(this,arguments)},getViewPortPxFromLonLat:function(a){return OpenLayers.Layer.prototype.getViewPortPxFromLonLat.apply(this,arguments)},initMercatorParameters:function(){this.RESOLUTIONS=[];for(var a=0;a<=this.MAX_ZOOM_LEVEL;++a)this.RESOLUTIONS[a]=
156543.03390625/Math.pow(2,a);this.units="m";this.projection=this.projection||"EPSG:900913"},forwardMercator:function(a,b){var c=a*2.003750834E7/180,d=Math.log(Math.tan((90+b)*Math.PI/360))/(Math.PI/180);return new OpenLayers.LonLat(c,d*2.003750834E7/180)},inverseMercator:function(a,b){var c=a/2.003750834E7*180,d;d=180/Math.PI*(2*Math.atan(Math.exp(b/2.003750834E7*180*Math.PI/180))-Math.PI/2);return new OpenLayers.LonLat(c,d)},projectForward:function(a){var b=OpenLayers.Layer.SphericalMercator.forwardMercator(a.x,
a.y);a.x=b.lon;a.y=b.lat;return a},projectInverse:function(a){var b=OpenLayers.Layer.SphericalMercator.inverseMercator(a.x,a.y);a.x=b.lon;a.y=b.lat;return a}};(function(){var a=["EPSG:900913","EPSG:3857","EPSG:102113","EPSG:102100"],b=OpenLayers.Projection.addTransform,c=OpenLayers.Layer.SphericalMercator,d=OpenLayers.Projection.nullTransform,e,f,g,h,i;for(e=0,f=a.length;e<f;++e){g=a[e];b("EPSG:4326",g,c.projectForward);b(g,"EPSG:4326",c.projectInverse);for(i=e+1;i<f;++i)h=a[i],b(g,h,d),b(h,g,d)}})();
OpenLayers.Layer.EventPane=OpenLayers.Class(OpenLayers.Layer,{smoothDragPan:true,isBaseLayer:true,isFixed:true,pane:null,mapObject:null,initialize:function(a,b){OpenLayers.Layer.prototype.initialize.apply(this,arguments);if(this.pane==null)this.pane=OpenLayers.Util.createDiv(this.div.id+"_EventPane")},destroy:function(){this.pane=this.mapObject=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},setMap:function(a){OpenLayers.Layer.prototype.setMap.apply(this,arguments);this.pane.style.zIndex=
parseInt(this.div.style.zIndex)+1;this.pane.style.display=this.div.style.display;this.pane.style.width="100%";this.pane.style.height="100%";if(OpenLayers.BROWSER_NAME=="msie")this.pane.style.background="url("+OpenLayers.Util.getImagesLocation()+"blank.gif)";this.isFixed?this.map.eventsDiv.appendChild(this.pane):this.map.layerContainerDiv.appendChild(this.pane);this.loadMapObject();this.mapObject==null&&this.loadWarningMessage()},removeMap:function(a){this.pane&&this.pane.parentNode&&this.pane.parentNode.removeChild(this.pane);
OpenLayers.Layer.prototype.removeMap.apply(this,arguments)},loadWarningMessage:function(){this.div.style.backgroundColor="darkblue";var a=this.map.getSize(),b=Math.min(a.w,300),c=Math.min(a.h,200),b=new OpenLayers.Size(b,c),a=(new OpenLayers.Pixel(a.w/2,a.h/2)).add(-b.w/2,-b.h/2),a=OpenLayers.Util.createDiv(this.name+"_warning",a,b,null,null,null,"auto");a.style.padding="7px";a.style.backgroundColor="yellow";a.innerHTML=this.getWarningHTML();this.div.appendChild(a)},getWarningHTML:function(){return""},
display:function(a){OpenLayers.Layer.prototype.display.apply(this,arguments);this.pane.style.display=this.div.style.display},setZIndex:function(a){OpenLayers.Layer.prototype.setZIndex.apply(this,arguments);this.pane.style.zIndex=parseInt(this.div.style.zIndex)+1},moveByPx:function(a,b){OpenLayers.Layer.prototype.moveByPx.apply(this,arguments);this.dragPanMapObject?this.dragPanMapObject(a,-b):this.moveTo(this.map.getCachedCenter())},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,
arguments);if(this.mapObject!=null){var d=this.map.getCenter(),e=this.map.getZoom();if(d!=null){var f=this.getOLLonLatFromMapObjectLonLat(this.getMapObjectCenter()),g=this.getOLZoomFromMapObjectZoom(this.getMapObjectZoom());if(!d.equals(f)||e!=g)!b&&f&&this.dragPanMapObject&&this.smoothDragPan?(e=this.map.getViewPortPxFromLonLat(f),d=this.map.getViewPortPxFromLonLat(d),this.dragPanMapObject(d.x-e.x,e.y-d.y)):(d=this.getMapObjectLonLatFromOLLonLat(d),e=this.getMapObjectZoomFromOLZoom(e),this.setMapObjectCenter(d,
e,c))}}},getLonLatFromViewPortPx:function(a){var b=null;this.mapObject!=null&&this.getMapObjectCenter()!=null&&(b=this.getOLLonLatFromMapObjectLonLat(this.getMapObjectLonLatFromMapObjectPixel(this.getMapObjectPixelFromOLPixel(a))));return b},getViewPortPxFromLonLat:function(a){var b=null;this.mapObject!=null&&this.getMapObjectCenter()!=null&&(b=this.getOLPixelFromMapObjectPixel(this.getMapObjectPixelFromMapObjectLonLat(this.getMapObjectLonLatFromOLLonLat(a))));return b},getOLLonLatFromMapObjectLonLat:function(a){var b=
null;a!=null&&(b=this.getLongitudeFromMapObjectLonLat(a),a=this.getLatitudeFromMapObjectLonLat(a),b=new OpenLayers.LonLat(b,a));return b},getMapObjectLonLatFromOLLonLat:function(a){var b=null;a!=null&&(b=this.getMapObjectLonLatFromLonLat(a.lon,a.lat));return b},getOLPixelFromMapObjectPixel:function(a){var b=null;a!=null&&(b=this.getXFromMapObjectPixel(a),a=this.getYFromMapObjectPixel(a),b=new OpenLayers.Pixel(b,a));return b},getMapObjectPixelFromOLPixel:function(a){var b=null;a!=null&&(b=this.getMapObjectPixelFromXY(a.x,
a.y));return b},CLASS_NAME:"OpenLayers.Layer.EventPane"});
OpenLayers.Layer.FixedZoomLevels=OpenLayers.Class({initialize:function(){},initResolutions:function(){for(var a=["minZoomLevel","maxZoomLevel","numZoomLevels"],b=0,c=a.length;b<c;b++){var d=a[b];this[d]=this.options[d]!=null?this.options[d]:this.map[d]}if(this.minZoomLevel==null||this.minZoomLevel<this.MIN_ZOOM_LEVEL)this.minZoomLevel=this.MIN_ZOOM_LEVEL;a=this.MAX_ZOOM_LEVEL-this.minZoomLevel+1;b=this.options.numZoomLevels==null&&this.options.maxZoomLevel!=null||this.numZoomLevels==null&&this.maxZoomLevel!=
null?this.maxZoomLevel-this.minZoomLevel+1:this.numZoomLevels;this.numZoomLevels=b!=null?Math.min(b,a):a;this.maxZoomLevel=this.minZoomLevel+this.numZoomLevels-1;if(this.RESOLUTIONS!=null){a=0;this.resolutions=[];for(b=this.minZoomLevel;b<=this.maxZoomLevel;b++)this.resolutions[a++]=this.RESOLUTIONS[b];this.maxResolution=this.resolutions[0];this.minResolution=this.resolutions[this.resolutions.length-1]}},getResolution:function(){if(this.resolutions!=null)return OpenLayers.Layer.prototype.getResolution.apply(this,
arguments);else{var a=null,b=this.map.getSize(),c=this.getExtent();b!=null&&c!=null&&(a=Math.max(c.getWidth()/b.w,c.getHeight()/b.h));return a}},getExtent:function(){var a=null,b=this.map.getSize(),c=this.getLonLatFromViewPortPx(new OpenLayers.Pixel(0,0)),b=this.getLonLatFromViewPortPx(new OpenLayers.Pixel(b.w,b.h));c!=null&&b!=null&&(a=new OpenLayers.Bounds(c.lon,b.lat,b.lon,c.lat));return a},getZoomForResolution:function(a){return this.resolutions!=null?OpenLayers.Layer.prototype.getZoomForResolution.apply(this,
arguments):this.getZoomForExtent(OpenLayers.Layer.prototype.getExtent.apply(this,[]))},getOLZoomFromMapObjectZoom:function(a){var b=null;a!=null&&(b=a-this.minZoomLevel,this.map.baseLayer!==this&&(b=this.map.baseLayer.getZoomForResolution(this.getResolutionForZoom(b))));return b},getMapObjectZoomFromOLZoom:function(a){var b=null;a!=null&&(b=a+this.minZoomLevel,this.map.baseLayer!==this&&(b=this.getZoomForResolution(this.map.baseLayer.getResolutionForZoom(b))));return b},CLASS_NAME:"OpenLayers.Layer.FixedZoomLevels"});
OpenLayers.Layer.Google=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:0,MAX_ZOOM_LEVEL:21,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.145767211914062E-5,1.072883605957031E-5,5.36441802978515E-6,2.68220901489257E-6,1.341104507446289E-6,6.705522537231445E-7],
type:null,wrapDateLine:true,sphericalMercator:false,version:null,initialize:function(a,b){b=b||{};if(!b.version)b.version=typeof GMap2==="function"?"2":"3";var c=OpenLayers.Layer.Google["v"+b.version.replace(/\./g,"_")];if(c)OpenLayers.Util.applyDefaults(b,c);else throw"Unsupported Google Maps API version: "+b.version;OpenLayers.Util.applyDefaults(b,c.DEFAULTS);if(b.maxExtent)b.maxExtent=b.maxExtent.clone();OpenLayers.Layer.EventPane.prototype.initialize.apply(this,[a,b]);OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,
[a,b]);this.sphericalMercator&&(OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator),this.initMercatorParameters())},clone:function(){return new OpenLayers.Layer.Google(this.name,this.getOptions())},setVisibility:function(a){var b=this.opacity==null?1:this.opacity;OpenLayers.Layer.EventPane.prototype.setVisibility.apply(this,arguments);this.setOpacity(b)},display:function(a){this._dragging||this.setGMapVisibility(a);OpenLayers.Layer.EventPane.prototype.display.apply(this,arguments)},moveTo:function(a,
b,c){this._dragging=c;OpenLayers.Layer.EventPane.prototype.moveTo.apply(this,arguments);delete this._dragging},setOpacity:function(a){if(a!==this.opacity)this.map!=null&&this.map.events.triggerEvent("changelayer",{layer:this,property:"opacity"}),this.opacity=a;if(this.getVisibility()){var b=this.getMapContainer();OpenLayers.Util.modifyDOMElement(b,null,null,null,null,null,null,a)}},destroy:function(){if(this.map){this.setGMapVisibility(false);var a=OpenLayers.Layer.Google.cache[this.map.id];a&&a.count<=
1&&this.removeGMapElements()}OpenLayers.Layer.EventPane.prototype.destroy.apply(this,arguments)},removeGMapElements:function(){var a=OpenLayers.Layer.Google.cache[this.map.id];if(a){var b=this.mapObject&&this.getMapContainer();b&&b.parentNode&&b.parentNode.removeChild(b);(b=a.termsOfUse)&&b.parentNode&&b.parentNode.removeChild(b);(a=a.poweredBy)&&a.parentNode&&a.parentNode.removeChild(a)}},removeMap:function(a){this.visibility&&this.mapObject&&this.setGMapVisibility(false);var b=OpenLayers.Layer.Google.cache[a.id];
b&&(b.count<=1?(this.removeGMapElements(),delete OpenLayers.Layer.Google.cache[a.id]):--b.count);delete this.termsOfUse;delete this.poweredBy;delete this.mapObject;delete this.dragObject;OpenLayers.Layer.EventPane.prototype.removeMap.apply(this,arguments)},getOLBoundsFromMapObjectBounds:function(a){var b=null;a!=null&&(b=a.getSouthWest(),a=a.getNorthEast(),this.sphericalMercator?(b=this.forwardMercator(b.lng(),b.lat()),a=this.forwardMercator(a.lng(),a.lat())):(b=new OpenLayers.LonLat(b.lng(),b.lat()),
a=new OpenLayers.LonLat(a.lng(),a.lat())),b=new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat));return b},getWarningHTML:function(){return OpenLayers.i18n("googleWarning")},getMapObjectCenter:function(){return this.mapObject.getCenter()},getMapObjectZoom:function(){return this.mapObject.getZoom()},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lng(),a.lat()).lon:a.lng()},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lng(),
a.lat()).lat:a.lat()},getXFromMapObjectPixel:function(a){return a.x},getYFromMapObjectPixel:function(a){return a.y},CLASS_NAME:"OpenLayers.Layer.Google"});OpenLayers.Layer.Google.cache={};
OpenLayers.Layer.Google.v2={termsOfUse:null,poweredBy:null,dragObject:null,loadMapObject:function(){if(!this.type)this.type=G_NORMAL_MAP;var a,b,c,d=OpenLayers.Layer.Google.cache[this.map.id];if(d)a=d.mapObject,b=d.termsOfUse,c=d.poweredBy,++d.count;else{var d=this.map.viewPortDiv,e=document.createElement("div");e.id=this.map.id+"_GMap2Container";e.style.position="absolute";e.style.width="100%";e.style.height="100%";d.appendChild(e);try{a=new GMap2(e),b=e.lastChild,d.appendChild(b),b.style.zIndex=
"1100",b.style.right="",b.style.bottom="",b.className="olLayerGoogleCopyright",c=e.lastChild,d.appendChild(c),c.style.zIndex="1100",c.style.right="",c.style.bottom="",c.className="olLayerGooglePoweredBy gmnoprint"}catch(f){throw f;}OpenLayers.Layer.Google.cache[this.map.id]={mapObject:a,termsOfUse:b,poweredBy:c,count:1}}this.mapObject=a;this.termsOfUse=b;this.poweredBy=c;OpenLayers.Util.indexOf(this.mapObject.getMapTypes(),this.type)===-1&&this.mapObject.addMapType(this.type);typeof a.getDragObject==
"function"?this.dragObject=a.getDragObject():this.dragPanMapObject=null;this.isBaseLayer===false&&this.setGMapVisibility(this.div.style.display!=="none")},onMapResize:function(){if(this.visibility&&this.mapObject.isLoaded())this.mapObject.checkResize();else{if(!this._resized)var a=this,b=GEvent.addListener(this.mapObject,"load",function(){GEvent.removeListener(b);delete a._resized;a.mapObject.checkResize();a.moveTo(a.map.getCenter(),a.map.getZoom())});this._resized=true}},setGMapVisibility:function(a){var b=
OpenLayers.Layer.Google.cache[this.map.id];if(b){var c=this.mapObject.getContainer();if(a===true)this.mapObject.setMapType(this.type),c.style.display="",this.termsOfUse.style.left="",this.poweredBy.style.display="",b.displayed=this.id;else if(b.displayed===this.id&&delete b.displayed,!b.displayed)c.style.display="none",this.termsOfUse.style.display="none",this.termsOfUse.style.left="-9999px",this.poweredBy.style.display="none"}},getMapContainer:function(){return this.mapObject.getContainer()},getMapObjectBoundsFromOLBounds:function(a){var b=
null;a!=null&&(b=this.sphericalMercator?this.inverseMercator(a.bottom,a.left):new OpenLayers.LonLat(a.bottom,a.left),a=this.sphericalMercator?this.inverseMercator(a.top,a.right):new OpenLayers.LonLat(a.top,a.right),b=new GLatLngBounds(new GLatLng(b.lat,b.lon),new GLatLng(a.lat,a.lon)));return b},setMapObjectCenter:function(a,b){this.mapObject.setCenter(a,b)},dragPanMapObject:function(a,b){this.dragObject.moveBy(new GSize(-a,b))},getMapObjectLonLatFromMapObjectPixel:function(a){return this.mapObject.fromContainerPixelToLatLng(a)},
getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.fromLatLngToContainerPixel(a)},getMapObjectZoomFromMapObjectBounds:function(a){return this.mapObject.getBoundsZoomLevel(a)},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),c=new GLatLng(c.lat,c.lon)):c=new GLatLng(b,a);return c},getMapObjectPixelFromXY:function(a,b){return new GPoint(a,b)}};
OpenLayers.Format.WFST=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Format.WFST.DEFAULTS),b=OpenLayers.Format.WFST["v"+a.version.replace(/\./g,"_")];if(!b)throw"Unsupported WFST version: "+a.version;return new b(a)};OpenLayers.Format.WFST.DEFAULTS={version:"1.0.0"};
OpenLayers.Format.WFST.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",wfs:"http://www.opengis.net/wfs",gml:"http://www.opengis.net/gml",ogc:"http://www.opengis.net/ogc",ows:"http://www.opengis.net/ows"},defaultPrefix:"wfs",version:null,schemaLocations:null,srsName:null,extractAttributes:true,xy:true,stateName:null,initialize:function(a){this.stateName={};this.stateName[OpenLayers.State.INSERT]="wfs:Insert";
this.stateName[OpenLayers.State.UPDATE]="wfs:Update";this.stateName[OpenLayers.State.DELETE]="wfs:Delete";OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},getSrsName:function(a,b){var c=b&&b.srsName;c||(c=a&&a.layer?a.layer.projection.getCode():this.srsName);return c},read:function(a,b){b=b||{};OpenLayers.Util.applyDefaults(b,{output:"features"});typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var c={};a&&this.readNode(a,
c,true);if(c.features&&b.output==="features")c=c.features;return c},readers:{wfs:{FeatureCollection:function(a,b){b.features=[];this.readChildNodes(a,b)}}},write:function(a,b){var c=this.writeNode("wfs:Transaction",{features:a,options:b}),d=this.schemaLocationAttr();d&&this.setAttributeNS(c,this.namespaces.xsi,"xsi:schemaLocation",d);return OpenLayers.Format.XML.prototype.write.apply(this,[c])},writers:{wfs:{GetFeature:function(a){var b=this.createElementNSPlus("wfs:GetFeature",{attributes:{service:"WFS",
version:this.version,handle:a&&a.handle,outputFormat:a&&a.outputFormat,maxFeatures:a&&a.maxFeatures,"xsi:schemaLocation":this.schemaLocationAttr(a)}});if(typeof this.featureType=="string")this.writeNode("Query",a,b);else for(var c=0,d=this.featureType.length;c<d;c++)a.featureType=this.featureType[c],this.writeNode("Query",a,b);return b},Transaction:function(a){var a=a||{},b=a.options||{},c=this.createElementNSPlus("wfs:Transaction",{attributes:{service:"WFS",version:this.version,handle:b.handle}}),
d,e=a.features;if(e){b.multi===true&&OpenLayers.Util.extend(this.geometryTypes,{"OpenLayers.Geometry.Point":"MultiPoint","OpenLayers.Geometry.LineString":this.multiCurve===true?"MultiCurve":"MultiLineString","OpenLayers.Geometry.Polygon":this.multiSurface===true?"MultiSurface":"MultiPolygon"});var f,g;for(a=0,d=e.length;a<d;++a)g=e[a],(f=this.stateName[g.state])&&this.writeNode(f,{feature:g,options:b},c);b.multi===true&&this.setGeometryTypes()}if(b.nativeElements)for(a=0,d=b.nativeElements.length;a<
d;++a)this.writeNode("wfs:Native",b.nativeElements[a],c);return c},Native:function(a){return this.createElementNSPlus("wfs:Native",{attributes:{vendorId:a.vendorId,safeToIgnore:a.safeToIgnore},value:a.value})},Insert:function(a){var b=a.feature,a=a.options,a=this.createElementNSPlus("wfs:Insert",{attributes:{handle:a&&a.handle}});this.srsName=this.getSrsName(b);this.writeNode("feature:_typeName",b,a);return a},Update:function(a){var b=a.feature,a=a.options,a=this.createElementNSPlus("wfs:Update",
{attributes:{handle:a&&a.handle,typeName:(this.featureNS?this.featurePrefix+":":"")+this.featureType}});this.featureNS&&a.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);var c=b.modified;if(this.geometryName!==null&&(!c||c.geometry!==void 0))this.srsName=this.getSrsName(b),this.writeNode("Property",{name:this.geometryName,value:b.geometry},a);for(var d in b.attributes)b.attributes[d]!==void 0&&(!c||!c.attributes||c.attributes&&c.attributes[d]!==void 0)&&this.writeNode("Property",{name:d,
value:b.attributes[d]},a);this.writeNode("ogc:Filter",new OpenLayers.Filter.FeatureId({fids:[b.fid]}),a);return a},Property:function(a){var b=this.createElementNSPlus("wfs:Property");this.writeNode("Name",a.name,b);a.value!==null&&this.writeNode("Value",a.value,b);return b},Name:function(a){return this.createElementNSPlus("wfs:Name",{value:a})},Value:function(a){var b;a instanceof OpenLayers.Geometry?(b=this.createElementNSPlus("wfs:Value"),a=this.writeNode("feature:_geometry",a).firstChild,b.appendChild(a)):
b=this.createElementNSPlus("wfs:Value",{value:a});return b},Delete:function(a){var b=a.feature,a=a.options,a=this.createElementNSPlus("wfs:Delete",{attributes:{handle:a&&a.handle,typeName:(this.featureNS?this.featurePrefix+":":"")+this.featureType}});this.featureNS&&a.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);this.writeNode("ogc:Filter",new OpenLayers.Filter.FeatureId({fids:[b.fid]}),a);return a}}},schemaLocationAttr:function(a){var a=OpenLayers.Util.extend({featurePrefix:this.featurePrefix,
schema:this.schema},a),b=OpenLayers.Util.extend({},this.schemaLocations);if(a.schema)b[a.featurePrefix]=a.schema;var a=[],c,d;for(d in b)(c=this.namespaces[d])&&a.push(c+" "+b[d]);return a.join(" ")||void 0},setFilterProperty:function(a){if(a.filters)for(var b=0,c=a.filters.length;b<c;++b)this.setFilterProperty(a.filters[b]);else if(a instanceof OpenLayers.Filter.Spatial)a.property=this.geometryName},CLASS_NAME:"OpenLayers.Format.WFST.v1"});
OpenLayers.Style=OpenLayers.Class({id:null,name:null,title:null,description:null,layerName:null,isDefault:false,rules:null,context:null,defaultStyle:null,defaultsPerSymbolizer:false,propertyStyles:null,initialize:function(a,b){OpenLayers.Util.extend(this,b);this.rules=[];b&&b.rules&&this.addRules(b.rules);this.setDefaultStyle(a||OpenLayers.Feature.Vector.style["default"]);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var a=0,b=this.rules.length;a<b;a++)this.rules[a].destroy(),
this.rules[a]=null;this.defaultStyle=this.rules=null},createSymbolizer:function(a){for(var b=this.defaultsPerSymbolizer?{}:this.createLiterals(OpenLayers.Util.extend({},this.defaultStyle),a),c=this.rules,d,e=[],f=false,g=0,h=c.length;g<h;g++)d=c[g],d.evaluate(a)&&(d instanceof OpenLayers.Rule&&d.elseFilter?e.push(d):(f=true,this.applySymbolizer(d,b,a)));if(f==false&&e.length>0){f=true;g=0;for(h=e.length;g<h;g++)this.applySymbolizer(e[g],b,a)}if(c.length>0&&f==false)b.display="none";if(b.label&&typeof b.label!==
"string")b.label=String(b.label);return b},applySymbolizer:function(a,b,c){var d=c.geometry?this.getSymbolizerPrefix(c.geometry):OpenLayers.Style.SYMBOLIZER_PREFIXES[0],a=a.symbolizer[d]||a.symbolizer;if(this.defaultsPerSymbolizer===true)d=this.defaultStyle,OpenLayers.Util.applyDefaults(a,{pointRadius:d.pointRadius}),(a.stroke===true||a.graphic===true)&&OpenLayers.Util.applyDefaults(a,{strokeWidth:d.strokeWidth,strokeColor:d.strokeColor,strokeOpacity:d.strokeOpacity,strokeDashstyle:d.strokeDashstyle,
strokeLinecap:d.strokeLinecap}),(a.fill===true||a.graphic===true)&&OpenLayers.Util.applyDefaults(a,{fillColor:d.fillColor,fillOpacity:d.fillOpacity}),a.graphic===true&&OpenLayers.Util.applyDefaults(a,{pointRadius:this.defaultStyle.pointRadius,externalGraphic:this.defaultStyle.externalGraphic,graphicName:this.defaultStyle.graphicName,graphicOpacity:this.defaultStyle.graphicOpacity,graphicWidth:this.defaultStyle.graphicWidth,graphicHeight:this.defaultStyle.graphicHeight,graphicXOffset:this.defaultStyle.graphicXOffset,
graphicYOffset:this.defaultStyle.graphicYOffset});return this.createLiterals(OpenLayers.Util.extend(b,a),c)},createLiterals:function(a,b){var c=OpenLayers.Util.extend({},b.attributes||b.data);OpenLayers.Util.extend(c,this.context);for(var d in this.propertyStyles)a[d]=OpenLayers.Style.createLiteral(a[d],c,b,d);return a},findPropertyStyles:function(){var a={};this.addPropertyStyles(a,this.defaultStyle);for(var b=this.rules,c,d,e=0,f=b.length;e<f;e++){c=b[e].symbolizer;for(var g in c)if(d=c[g],typeof d==
"object")this.addPropertyStyles(a,d);else{this.addPropertyStyles(a,c);break}}return a},addPropertyStyles:function(a,b){var c,d;for(d in b)c=b[d],typeof c=="string"&&c.match(/\$\{\w+\}/)&&(a[d]=true);return a},addRules:function(a){Array.prototype.push.apply(this.rules,a);this.propertyStyles=this.findPropertyStyles()},setDefaultStyle:function(a){this.defaultStyle=a;this.propertyStyles=this.findPropertyStyles()},getSymbolizerPrefix:function(a){for(var b=OpenLayers.Style.SYMBOLIZER_PREFIXES,c=0,d=b.length;c<
d;c++)if(a.CLASS_NAME.indexOf(b[c])!=-1)return b[c]},clone:function(){var a=OpenLayers.Util.extend({},this);if(this.rules){a.rules=[];for(var b=0,c=this.rules.length;b<c;++b)a.rules.push(this.rules[b].clone())}a.context=this.context&&OpenLayers.Util.extend({},this.context);b=OpenLayers.Util.extend({},this.defaultStyle);return new OpenLayers.Style(b,a)},CLASS_NAME:"OpenLayers.Style"});
OpenLayers.Style.createLiteral=function(a,b,c,d){typeof a=="string"&&a.indexOf("${")!=-1&&(a=OpenLayers.String.format(a,b,[c,d]),a=isNaN(a)||!a?a:parseFloat(a));return a};OpenLayers.Style.SYMBOLIZER_PREFIXES=["Point","Line","Polygon","Text","Raster"];OpenLayers.Filter=OpenLayers.Class({initialize:function(a){OpenLayers.Util.extend(this,a)},destroy:function(){},evaluate:function(){return true},clone:function(){return null},CLASS_NAME:"OpenLayers.Filter"});
OpenLayers.Filter.FeatureId=OpenLayers.Class(OpenLayers.Filter,{fids:null,type:"FID",initialize:function(a){this.fids=[];OpenLayers.Filter.prototype.initialize.apply(this,[a])},evaluate:function(a){for(var b=0,c=this.fids.length;b<c;b++)if((a.fid||a.id)==this.fids[b])return true;return false},clone:function(){var a=new OpenLayers.Filter.FeatureId;OpenLayers.Util.extend(a,this);a.fids=this.fids.slice();return a},CLASS_NAME:"OpenLayers.Filter.FeatureId"});
OpenLayers.Filter.Logical=OpenLayers.Class(OpenLayers.Filter,{filters:null,type:null,initialize:function(a){this.filters=[];OpenLayers.Filter.prototype.initialize.apply(this,[a])},destroy:function(){this.filters=null;OpenLayers.Filter.prototype.destroy.apply(this)},evaluate:function(a){var b,c;switch(this.type){case OpenLayers.Filter.Logical.AND:for(b=0,c=this.filters.length;b<c;b++)if(this.filters[b].evaluate(a)==false)return false;return true;case OpenLayers.Filter.Logical.OR:for(b=0,c=this.filters.length;b<
c;b++)if(this.filters[b].evaluate(a)==true)return true;return false;case OpenLayers.Filter.Logical.NOT:return!this.filters[0].evaluate(a)}},clone:function(){for(var a=[],b=0,c=this.filters.length;b<c;++b)a.push(this.filters[b].clone());return new OpenLayers.Filter.Logical({type:this.type,filters:a})},CLASS_NAME:"OpenLayers.Filter.Logical"});OpenLayers.Filter.Logical.AND="&&";OpenLayers.Filter.Logical.OR="||";OpenLayers.Filter.Logical.NOT="!";
OpenLayers.Filter.Comparison=OpenLayers.Class(OpenLayers.Filter,{type:null,property:null,value:null,matchCase:true,lowerBoundary:null,upperBoundary:null,initialize:function(a){OpenLayers.Filter.prototype.initialize.apply(this,[a]);if(this.type===OpenLayers.Filter.Comparison.LIKE&&a.matchCase===void 0)this.matchCase=null},evaluate:function(a){if(a instanceof OpenLayers.Feature.Vector)a=a.attributes;var b=false,a=a[this.property];switch(this.type){case OpenLayers.Filter.Comparison.EQUAL_TO:b=this.value;
b=!this.matchCase&&typeof a=="string"&&typeof b=="string"?a.toUpperCase()==b.toUpperCase():a==b;break;case OpenLayers.Filter.Comparison.NOT_EQUAL_TO:b=this.value;b=!this.matchCase&&typeof a=="string"&&typeof b=="string"?a.toUpperCase()!=b.toUpperCase():a!=b;break;case OpenLayers.Filter.Comparison.LESS_THAN:b=a<this.value;break;case OpenLayers.Filter.Comparison.GREATER_THAN:b=a>this.value;break;case OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO:b=a<=this.value;break;case OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO:b=
a>=this.value;break;case OpenLayers.Filter.Comparison.BETWEEN:b=a>=this.lowerBoundary&&a<=this.upperBoundary;break;case OpenLayers.Filter.Comparison.LIKE:b=RegExp(this.value,"gi").test(a)}return b},value2regex:function(a,b,c){if(a==".")return OpenLayers.Console.error("'.' is an unsupported wildCard character for OpenLayers.Filter.Comparison"),null;a=a?a:"*";b=b?b:".";this.value=this.value.replace(RegExp("\\"+(c?c:"!")+"(.|$)","g"),"\\$1");this.value=this.value.replace(RegExp("\\"+b,"g"),".");this.value=
this.value.replace(RegExp("\\"+a,"g"),".*");this.value=this.value.replace(RegExp("\\\\.\\*","g"),"\\"+a);return this.value=this.value.replace(RegExp("\\\\\\.","g"),"\\"+b)},regex2value:function(){var a=this.value,a=a.replace(/!/g,"!!"),a=a.replace(/(\\)?\\\./g,function(a,c){return c?a:"!."}),a=a.replace(/(\\)?\\\*/g,function(a,c){return c?a:"!*"}),a=a.replace(/\\\\/g,"\\");return a=a.replace(/\.\*/g,"*")},clone:function(){return OpenLayers.Util.extend(new OpenLayers.Filter.Comparison,this)},CLASS_NAME:"OpenLayers.Filter.Comparison"});
OpenLayers.Filter.Comparison.EQUAL_TO="==";OpenLayers.Filter.Comparison.NOT_EQUAL_TO="!=";OpenLayers.Filter.Comparison.LESS_THAN="<";OpenLayers.Filter.Comparison.GREATER_THAN=">";OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO="<=";OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO=">=";OpenLayers.Filter.Comparison.BETWEEN="..";OpenLayers.Filter.Comparison.LIKE="~";OpenLayers.Format.Filter=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",CLASS_NAME:"OpenLayers.Format.Filter"});
OpenLayers.Filter.Function=OpenLayers.Class(OpenLayers.Filter,{name:null,params:null,initialize:function(a){OpenLayers.Filter.prototype.initialize.apply(this,[a])},CLASS_NAME:"OpenLayers.Filter.Function"});
OpenLayers.Format.Filter.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ogc:"http://www.opengis.net/ogc",gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"ogc",schemaLocation:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){var b={};this.readers.ogc.Filter.apply(this,[a,b]);return b.filter},readers:{ogc:{Filter:function(a,b){var c={fids:[],filters:[]};
this.readChildNodes(a,c);if(c.fids.length>0)b.filter=new OpenLayers.Filter.FeatureId({fids:c.fids});else if(c.filters.length>0)b.filter=c.filters[0]},FeatureId:function(a,b){var c=a.getAttribute("fid");c&&b.fids.push(c)},And:function(a,b){var c=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND});this.readChildNodes(a,c);b.filters.push(c)},Or:function(a,b){var c=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.OR});this.readChildNodes(a,c);b.filters.push(c)},Not:function(a,
b){var c=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.NOT});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLessThan:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LESS_THAN});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsGreaterThan:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.GREATER_THAN});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLessThanOrEqualTo:function(a,b){var c=
new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsGreaterThanOrEqualTo:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsBetween:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.BETWEEN});this.readChildNodes(a,c);b.filters.push(c)},Literal:function(a,
b){b.value=OpenLayers.String.numericIf(this.getChildValue(a))},PropertyName:function(a,b){b.property=this.getChildValue(a)},LowerBoundary:function(a,b){b.lowerBoundary=OpenLayers.String.numericIf(this.readOgcExpression(a))},UpperBoundary:function(a,b){b.upperBoundary=OpenLayers.String.numericIf(this.readOgcExpression(a))},Intersects:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.INTERSECTS)},Within:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.WITHIN)},Contains:function(a,
b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.CONTAINS)},DWithin:function(a,b){this.readSpatial(a,b,OpenLayers.Filter.Spatial.DWITHIN)},Distance:function(a,b){b.distance=parseInt(this.getChildValue(a));b.distanceUnits=a.getAttribute("units")},Function:function(){}}},readSpatial:function(a,b,c){c=new OpenLayers.Filter.Spatial({type:c});this.readChildNodes(a,c);c.value=c.components[0];delete c.components;b.filters.push(c)},readOgcExpression:function(a){var b={};this.readChildNodes(a,b);b=b.value;
b===void 0&&(b=this.getChildValue(a));return b},writeOgcExpression:function(a,b){if(a instanceof OpenLayers.Filter.Function){var c=this.writeNode("Function",a,b);b.appendChild(c)}else this.writeNode("Literal",a,b);return b},write:function(a){return this.writers.ogc.Filter.apply(this,[a])},writeFeatureIdNodes:function(a,b){for(var c=0,d=a.fids.length;c<d;++c)this.writeNode("FeatureId",a.fids[c],b)},writers:{ogc:{Filter:function(a){var b=this.createElementNSPlus("ogc:Filter");a.type==="FID"?this.writeFeatureIdNodes(a,
b):this.writeNode(this.getFilterType(a),a,b);return b},FeatureId:function(a){return this.createElementNSPlus("ogc:FeatureId",{attributes:{fid:a}})},And:function(a){for(var b=this.createElementNSPlus("ogc:And"),c,d=0,e=a.filters.length;d<e;++d)c=a.filters[d],c.type==="FID"?this.writeFeatureIdNodes(c,b):this.writeNode(this.getFilterType(c),c,b);return b},Or:function(a){for(var b=this.createElementNSPlus("ogc:Or"),c,d=0,e=a.filters.length;d<e;++d)c=a.filters[d],c.type==="FID"?this.writeFeatureIdNodes(c,
b):this.writeNode(this.getFilterType(c),c,b);return b},Not:function(a){var b=this.createElementNSPlus("ogc:Not"),a=a.filters[0];a.type==="FID"?this.writeFeatureIdNodes(a,b):this.writeNode(this.getFilterType(a),a,b);return b},PropertyIsLessThan:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLessThan");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsGreaterThan:function(a){var b=this.createElementNSPlus("ogc:PropertyIsGreaterThan");this.writeNode("PropertyName",
a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsLessThanOrEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLessThanOrEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsGreaterThanOrEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsGreaterThanOrEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsBetween:function(a){var b=this.createElementNSPlus("ogc:PropertyIsBetween");
this.writeNode("PropertyName",a,b);this.writeNode("LowerBoundary",a,b);this.writeNode("UpperBoundary",a,b);return b},PropertyName:function(a){return this.createElementNSPlus("ogc:PropertyName",{value:a.property})},Literal:function(a){return this.createElementNSPlus("ogc:Literal",{value:a})},LowerBoundary:function(a){var b=this.createElementNSPlus("ogc:LowerBoundary");this.writeOgcExpression(a.lowerBoundary,b);return b},UpperBoundary:function(a){var b=this.createElementNSPlus("ogc:UpperBoundary");
this.writeNode("Literal",a.upperBoundary,b);return b},INTERSECTS:function(a){return this.writeSpatial(a,"Intersects")},WITHIN:function(a){return this.writeSpatial(a,"Within")},CONTAINS:function(a){return this.writeSpatial(a,"Contains")},DWITHIN:function(a){var b=this.writeSpatial(a,"DWithin");this.writeNode("Distance",a,b);return b},Distance:function(a){return this.createElementNSPlus("ogc:Distance",{attributes:{units:a.distanceUnits},value:a.distance})},Function:function(a){for(var b=this.createElementNSPlus("ogc:Function",
{attributes:{name:a.name}}),a=a.params,c=0,d=a.length;c<d;c++)this.writeOgcExpression(a[c],b);return b}}},getFilterType:function(a){var b=this.filterMap[a.type];if(!b)throw"Filter writing not supported for rule type: "+a.type;return b},filterMap:{"&&":"And","||":"Or","!":"Not","==":"PropertyIsEqualTo","!=":"PropertyIsNotEqualTo","<":"PropertyIsLessThan",">":"PropertyIsGreaterThan","<=":"PropertyIsLessThanOrEqualTo",">=":"PropertyIsGreaterThanOrEqualTo","..":"PropertyIsBetween","~":"PropertyIsLike",
BBOX:"BBOX",DWITHIN:"DWITHIN",WITHIN:"WITHIN",CONTAINS:"CONTAINS",INTERSECTS:"INTERSECTS",FID:"FeatureId"},CLASS_NAME:"OpenLayers.Format.Filter.v1"});
OpenLayers.Geometry.MultiLineString=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.LineString"],initialize:function(a){OpenLayers.Geometry.Collection.prototype.initialize.apply(this,arguments)},split:function(a,b){for(var c=null,d=b&&b.mutual,e,f,g,h,i=[],j=[a],k=0,l=this.components.length;k<l;++k){f=this.components[k];g=false;for(var m=0;m<j.length;++m)if(e=f.split(j[m],b)){if(d){g=e[0];for(var n=0,o=g.length;n<o;++n)n===0&&i.length?i[i.length-1].addComponent(g[n]):
i.push(new OpenLayers.Geometry.MultiLineString([g[n]]));g=true;e=e[1]}if(e.length){e.unshift(m,1);Array.prototype.splice.apply(j,e);break}}g||(i.length?i[i.length-1].addComponent(f.clone()):i=[new OpenLayers.Geometry.MultiLineString(f.clone())])}i&&i.length>1?g=true:i=[];j&&j.length>1?h=true:j=[];if(g||h)c=d?[i,j]:j;return c},splitWith:function(a,b){var c=null,d=b&&b.mutual,e,f,g,h,i,j;if(a instanceof OpenLayers.Geometry.LineString){j=[];i=[a];for(var k=0,l=this.components.length;k<l;++k){g=false;
f=this.components[k];for(var m=0;m<i.length;++m)if(e=i[m].split(f,b)){d&&(g=e[0],g.length&&(g.unshift(m,1),Array.prototype.splice.apply(i,g),m+=g.length-2),e=e[1],e.length===0&&(e=[f.clone()]));g=0;for(var n=e.length;g<n;++g)g===0&&j.length?j[j.length-1].addComponent(e[g]):j.push(new OpenLayers.Geometry.MultiLineString([e[g]]));g=true}g||(j.length?j[j.length-1].addComponent(f.clone()):j=[new OpenLayers.Geometry.MultiLineString([f.clone()])])}}else c=a.split(this);i&&i.length>1?h=true:i=[];j&&j.length>
1?g=true:j=[];if(h||g)c=d?[i,j]:j;return c},CLASS_NAME:"OpenLayers.Geometry.MultiLineString"});OpenLayers.Geometry.MultiPolygon=OpenLayers.Class(OpenLayers.Geometry.Collection,{componentTypes:["OpenLayers.Geometry.Polygon"],initialize:function(a){OpenLayers.Geometry.Collection.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Geometry.MultiPolygon"});
OpenLayers.Format.GML=OpenLayers.Class(OpenLayers.Format.XML,{featureNS:"http://mapserver.gis.umn.edu/mapserver",featurePrefix:"feature",featureName:"featureMember",layerName:"features",geometryName:"geometry",collectionName:"FeatureCollection",gmlns:"http://www.opengis.net/gml",extractAttributes:true,xy:true,initialize:function(a){this.regExes={trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g};OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a==
"string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var a=this.getElementsByTagNameNS(a.documentElement,this.gmlns,this.featureName),b=[],c=0;c<a.length;c++){var d=this.parseFeature(a[c]);d&&b.push(d)}return b},parseFeature:function(a){var b="MultiPolygon,Polygon,MultiLineString,LineString,MultiPoint,Point,Envelope".split(","),c,d,e,f;for(f=0;f<b.length;++f)if(c=b[f],d=this.getElementsByTagNameNS(a,this.gmlns,c),d.length>0){(f=this.parseGeometry[c.toLowerCase()])?(e=f.apply(this,
[d[0]]),this.internalProjection&&this.externalProjection&&e.transform(this.externalProjection,this.internalProjection)):OpenLayers.Console.error(OpenLayers.i18n("unsupportedGeometryType",{geomType:c}));break}var g;c=this.getElementsByTagNameNS(a,this.gmlns,"Box");for(f=0;f<c.length;++f)b=c[f],d=this.parseGeometry.box.apply(this,[b]),b=b.parentNode,(b.localName||b.nodeName.split(":").pop())==="boundedBy"?g=d:e=d.toGeometry();var h;this.extractAttributes&&(h=this.parseAttributes(a));e=new OpenLayers.Feature.Vector(e,
h);e.bounds=g;e.gml={featureType:a.firstChild.nodeName.split(":")[1],featureNS:a.firstChild.namespaceURI,featureNSPrefix:a.firstChild.prefix};for(var a=a.firstChild,i;a;){if(a.nodeType==1&&(i=a.getAttribute("fid")||a.getAttribute("id")))break;a=a.nextSibling}e.fid=i;return e},parseGeometry:{point:function(a){var b,c;c=[];b=this.getElementsByTagNameNS(a,this.gmlns,"pos");if(b.length>0)c=b[0].firstChild.nodeValue,c=c.replace(this.regExes.trimSpace,""),c=c.split(this.regExes.splitSpace);if(c.length==
0&&(b=this.getElementsByTagNameNS(a,this.gmlns,"coordinates"),b.length>0))c=b[0].firstChild.nodeValue,c=c.replace(this.regExes.removeSpace,""),c=c.split(",");c.length==0&&(b=this.getElementsByTagNameNS(a,this.gmlns,"coord"),b.length>0&&(a=this.getElementsByTagNameNS(b[0],this.gmlns,"X"),b=this.getElementsByTagNameNS(b[0],this.gmlns,"Y"),a.length>0&&b.length>0&&(c=[a[0].firstChild.nodeValue,b[0].firstChild.nodeValue])));c.length==2&&(c[2]=null);return this.xy?new OpenLayers.Geometry.Point(c[0],c[1],
c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2])},multipoint:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"Point"),b=[];if(a.length>0)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.point.apply(this,[a[d]]))&&b.push(c);return new OpenLayers.Geometry.MultiPoint(b)},linestring:function(a,b){var c,d;d=[];var e=[];c=this.getElementsByTagNameNS(a,this.gmlns,"posList");if(c.length>0){d=this.getChildValue(c[0]);d=d.replace(this.regExes.trimSpace,"");d=d.split(this.regExes.splitSpace);
var f=parseInt(c[0].getAttribute("dimension")),g,h,i;for(c=0;c<d.length/f;++c)g=c*f,h=d[g],i=d[g+1],g=f==2?null:d[g+2],this.xy?e.push(new OpenLayers.Geometry.Point(h,i,g)):e.push(new OpenLayers.Geometry.Point(i,h,g))}if(d.length==0&&(c=this.getElementsByTagNameNS(a,this.gmlns,"coordinates"),c.length>0)){d=this.getChildValue(c[0]);d=d.replace(this.regExes.trimSpace,"");d=d.replace(this.regExes.trimComma,",");f=d.split(this.regExes.splitSpace);for(c=0;c<f.length;++c)d=f[c].split(","),d.length==2&&(d[2]=
null),this.xy?e.push(new OpenLayers.Geometry.Point(d[0],d[1],d[2])):e.push(new OpenLayers.Geometry.Point(d[1],d[0],d[2]))}d=null;e.length!=0&&(d=b?new OpenLayers.Geometry.LinearRing(e):new OpenLayers.Geometry.LineString(e));return d},multilinestring:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"LineString"),b=[];if(a.length>0)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.linestring.apply(this,[a[d]]))&&b.push(c);return new OpenLayers.Geometry.MultiLineString(b)},polygon:function(a){var a=
this.getElementsByTagNameNS(a,this.gmlns,"LinearRing"),b=[];if(a.length>0)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.linestring.apply(this,[a[d],true]))&&b.push(c);return new OpenLayers.Geometry.Polygon(b)},multipolygon:function(a){var a=this.getElementsByTagNameNS(a,this.gmlns,"Polygon"),b=[];if(a.length>0)for(var c,d=0;d<a.length;++d)(c=this.parseGeometry.polygon.apply(this,[a[d]]))&&b.push(c);return new OpenLayers.Geometry.MultiPolygon(b)},envelope:function(a){var b=[],c,d,e=this.getElementsByTagNameNS(a,
this.gmlns,"lowerCorner");if(e.length>0){c=[];if(e.length>0)c=e[0].firstChild.nodeValue,c=c.replace(this.regExes.trimSpace,""),c=c.split(this.regExes.splitSpace);c.length==2&&(c[2]=null);var f=this.xy?new OpenLayers.Geometry.Point(c[0],c[1],c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2])}a=this.getElementsByTagNameNS(a,this.gmlns,"upperCorner");if(a.length>0){c=[];if(a.length>0)c=a[0].firstChild.nodeValue,c=c.replace(this.regExes.trimSpace,""),c=c.split(this.regExes.splitSpace);c.length==2&&(c[2]=
null);var g=this.xy?new OpenLayers.Geometry.Point(c[0],c[1],c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2])}f&&g&&(b.push(new OpenLayers.Geometry.Point(f.x,f.y)),b.push(new OpenLayers.Geometry.Point(g.x,f.y)),b.push(new OpenLayers.Geometry.Point(g.x,g.y)),b.push(new OpenLayers.Geometry.Point(f.x,g.y)),b.push(new OpenLayers.Geometry.Point(f.x,f.y)),b=new OpenLayers.Geometry.LinearRing(b),d=new OpenLayers.Geometry.Polygon([b]));return d},box:function(a){var b=this.getElementsByTagNameNS(a,this.gmlns,
"coordinates"),c=a=null;if(b.length>0)b=b[0].firstChild.nodeValue,b=b.split(" "),b.length==2&&(a=b[0].split(","),c=b[1].split(","));if(a!==null&&c!==null)return new OpenLayers.Bounds(parseFloat(a[0]),parseFloat(a[1]),parseFloat(c[0]),parseFloat(c[1]))}},parseAttributes:function(a){for(var b={},a=a.firstChild,c,d,e;a;){if(a.nodeType==1){a=a.childNodes;for(c=0;c<a.length;++c)if(d=a[c],d.nodeType==1)if(e=d.childNodes,e.length==1){if(e=e[0],e.nodeType==3||e.nodeType==4)d=d.prefix?d.nodeName.split(":")[1]:
d.nodeName,e=e.nodeValue.replace(this.regExes.trimSpace,""),b[d]=e}else b[d.nodeName.split(":").pop()]=null;break}a=a.nextSibling}return b},write:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=this.createElementNS("http://www.opengis.net/wfs","wfs:"+this.collectionName),c=0;c<a.length;c++)b.appendChild(this.createFeatureXML(a[c]));return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureXML:function(a){var b=this.buildGeometryNode(a.geometry),c=this.createElementNS(this.featureNS,
this.featurePrefix+":"+this.geometryName);c.appendChild(b);var b=this.createElementNS(this.gmlns,"gml:"+this.featureName),d=this.createElementNS(this.featureNS,this.featurePrefix+":"+this.layerName);d.setAttribute("fid",a.fid||a.id);d.appendChild(c);for(var e in a.attributes){var c=this.createTextNode(a.attributes[e]),f=this.createElementNS(this.featureNS,this.featurePrefix+":"+e.substring(e.lastIndexOf(":")+1));f.appendChild(c);d.appendChild(f)}b.appendChild(d);return b},buildGeometryNode:function(a){this.externalProjection&&
this.internalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));var b=a.CLASS_NAME;return this.buildGeometry[b.substring(b.lastIndexOf(".")+1).toLowerCase()].apply(this,[a])},buildGeometry:{point:function(a){var b=this.createElementNS(this.gmlns,"gml:Point");b.appendChild(this.buildCoordinatesNode(a));return b},multipoint:function(a){for(var b=this.createElementNS(this.gmlns,"gml:MultiPoint"),a=a.components,c,d,e=0;e<a.length;e++)c=this.createElementNS(this.gmlns,
"gml:pointMember"),d=this.buildGeometry.point.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},linestring:function(a){var b=this.createElementNS(this.gmlns,"gml:LineString");b.appendChild(this.buildCoordinatesNode(a));return b},multilinestring:function(a){for(var b=this.createElementNS(this.gmlns,"gml:MultiLineString"),a=a.components,c,d,e=0;e<a.length;++e)c=this.createElementNS(this.gmlns,"gml:lineStringMember"),d=this.buildGeometry.linestring.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);
return b},linearring:function(a){var b=this.createElementNS(this.gmlns,"gml:LinearRing");b.appendChild(this.buildCoordinatesNode(a));return b},polygon:function(a){for(var b=this.createElementNS(this.gmlns,"gml:Polygon"),a=a.components,c,d,e=0;e<a.length;++e)c=e==0?"outerBoundaryIs":"innerBoundaryIs",c=this.createElementNS(this.gmlns,"gml:"+c),d=this.buildGeometry.linearring.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},multipolygon:function(a){for(var b=this.createElementNS(this.gmlns,
"gml:MultiPolygon"),a=a.components,c,d,e=0;e<a.length;++e)c=this.createElementNS(this.gmlns,"gml:polygonMember"),d=this.buildGeometry.polygon.apply(this,[a[e]]),c.appendChild(d),b.appendChild(c);return b},bounds:function(a){var b=this.createElementNS(this.gmlns,"gml:Box");b.appendChild(this.buildCoordinatesNode(a));return b}},buildCoordinatesNode:function(a){var b=this.createElementNS(this.gmlns,"gml:coordinates");b.setAttribute("decimal",".");b.setAttribute("cs",",");b.setAttribute("ts"," ");var c=
[];if(a instanceof OpenLayers.Bounds)c.push(a.left+","+a.bottom),c.push(a.right+","+a.top);else for(var a=a.components?a.components:[a],d=0;d<a.length;d++)c.push(a[d].x+","+a[d].y);c=this.createTextNode(c.join(" "));b.appendChild(c);return b},CLASS_NAME:"OpenLayers.Format.GML"});if(!OpenLayers.Format.GML)OpenLayers.Format.GML={};
OpenLayers.Format.GML.Base=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",wfs:"http://www.opengis.net/wfs"},defaultPrefix:"gml",schemaLocation:null,featureType:null,featureNS:null,geometryName:"geometry",extractAttributes:true,srsName:null,xy:true,geometryTypes:null,singleFeatureType:null,regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g,
featureMember:/^(.*:)?featureMembers?$/},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.setGeometryTypes();a&&a.featureNS&&this.setNamespace("feature",a.featureNS);this.singleFeatureType=!a||typeof a.featureType==="string"},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b=[];this.readNode(a,{features:b},true);if(b.length==0){var c=this.getElementsByTagNameNS(a,this.namespaces.gml,
"featureMember");if(c.length)for(var a=0,d=c.length;a<d;++a)this.readNode(c[a],{features:b},true);else c=this.getElementsByTagNameNS(a,this.namespaces.gml,"featureMembers"),c.length&&this.readNode(c[0],{features:b},true)}return b},readNode:function(a,b,c){if(c===true&&this.autoConfig===true)this.featureType=null,delete this.namespaceAlias[this.featureNS],delete this.namespaces.feature,this.featureNS=null;if(!this.featureNS&&!(a.prefix in this.namespaces)&&a.parentNode.namespaceURI==this.namespaces.gml&&
this.regExes.featureMember.test(a.parentNode.nodeName))this.featureType=a.nodeName.split(":").pop(),this.setNamespace("feature",a.namespaceURI),this.featureNS=a.namespaceURI,this.autoConfig=true;return OpenLayers.Format.XML.prototype.readNode.apply(this,[a,b])},readers:{gml:{featureMember:function(a,b){this.readChildNodes(a,b)},featureMembers:function(a,b){this.readChildNodes(a,b)},name:function(a,b){b.name=this.getChildValue(a)},boundedBy:function(a,b){var c={};this.readChildNodes(a,c);if(c.components&&
c.components.length>0)b.bounds=c.components[0]},Point:function(a,b){var c={points:[]};this.readChildNodes(a,c);if(!b.components)b.components=[];b.components.push(c.points[0])},coordinates:function(a,b){for(var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace),d,e=c.length,f=Array(e),g=0;g<e;++g)d=c[g].split(","),f[g]=this.xy?new OpenLayers.Geometry.Point(d[0],d[1],d[2]):new OpenLayers.Geometry.Point(d[1],d[0],d[2]);
b.points=f},coord:function(a,b){var c={};this.readChildNodes(a,c);if(!b.points)b.points=[];b.points.push(new OpenLayers.Geometry.Point(c.x,c.y,c.z))},X:function(a,b){b.x=this.getChildValue(a)},Y:function(a,b){b.y=this.getChildValue(a)},Z:function(a,b){b.z=this.getChildValue(a)},MultiPoint:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.MultiPoint(c.components)]},pointMember:function(a,b){this.readChildNodes(a,b)},LineString:function(a,b){var c={};
this.readChildNodes(a,c);if(!b.components)b.components=[];b.components.push(new OpenLayers.Geometry.LineString(c.points))},MultiLineString:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.MultiLineString(c.components)]},lineStringMember:function(a,b){this.readChildNodes(a,b)},Polygon:function(a,b){var c={outer:null,inner:[]};this.readChildNodes(a,c);c.inner.unshift(c.outer);if(!b.components)b.components=[];b.components.push(new OpenLayers.Geometry.Polygon(c.inner))},
LinearRing:function(a,b){var c={};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.LinearRing(c.points)]},MultiPolygon:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.MultiPolygon(c.components)]},polygonMember:function(a,b){this.readChildNodes(a,b)},GeometryCollection:function(a,b){var c={components:[]};this.readChildNodes(a,c);b.components=[new OpenLayers.Geometry.Collection(c.components)]},geometryMember:function(a,b){this.readChildNodes(a,
b)}},feature:{"*":function(a,b){var c,d=a.localName||a.nodeName.split(":").pop();b.features?!this.singleFeatureType&&OpenLayers.Util.indexOf(this.featureType,d)!==-1?c="_typeName":d===this.featureType&&(c="_typeName"):a.childNodes.length==0||a.childNodes.length==1&&a.firstChild.nodeType==3?this.extractAttributes&&(c="_attribute"):c="_geometry";c&&this.readers.feature[c].apply(this,[a,b])},_typeName:function(a,b){var c={components:[],attributes:{}};this.readChildNodes(a,c);if(c.name)c.attributes.name=
c.name;var d=new OpenLayers.Feature.Vector(c.components[0],c.attributes);if(!this.singleFeatureType)d.type=a.nodeName.split(":").pop(),d.namespace=a.namespaceURI;var e=a.getAttribute("fid")||this.getAttributeNS(a,this.namespaces.gml,"id");if(e)d.fid=e;this.internalProjection&&this.externalProjection&&d.geometry&&d.geometry.transform(this.externalProjection,this.internalProjection);if(c.bounds)d.bounds=c.bounds;b.features.push(d)},_geometry:function(a,b){if(!this.geometryName)this.geometryName=a.nodeName.split(":").pop();
this.readChildNodes(a,b)},_attribute:function(a,b){var c=a.localName||a.nodeName.split(":").pop(),d=this.getChildValue(a);b.attributes[c]=d}},wfs:{FeatureCollection:function(a,b){this.readChildNodes(a,b)}}},write:function(a){a=this.writeNode("gml:"+(OpenLayers.Util.isArray(a)?"featureMembers":"featureMember"),a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{gml:{featureMember:function(a){var b=
this.createElementNSPlus("gml:featureMember");this.writeNode("feature:_typeName",a,b);return b},MultiPoint:function(a){for(var b=this.createElementNSPlus("gml:MultiPoint"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("pointMember",a[c],b);return b},pointMember:function(a){var b=this.createElementNSPlus("gml:pointMember");this.writeNode("Point",a,b);return b},MultiLineString:function(a){for(var b=this.createElementNSPlus("gml:MultiLineString"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("lineStringMember",
a[c],b);return b},lineStringMember:function(a){var b=this.createElementNSPlus("gml:lineStringMember");this.writeNode("LineString",a,b);return b},MultiPolygon:function(a){for(var b=this.createElementNSPlus("gml:MultiPolygon"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("polygonMember",a[c],b);return b},polygonMember:function(a){var b=this.createElementNSPlus("gml:polygonMember");this.writeNode("Polygon",a,b);return b},GeometryCollection:function(a){for(var b=this.createElementNSPlus("gml:GeometryCollection"),
c=0,d=a.components.length;c<d;++c)this.writeNode("geometryMember",a.components[c],b);return b},geometryMember:function(a){var b=this.createElementNSPlus("gml:geometryMember"),a=this.writeNode("feature:_geometry",a);b.appendChild(a.firstChild);return b}},feature:{_typeName:function(a){var b=this.createElementNSPlus("feature:"+this.featureType,{attributes:{fid:a.fid}});a.geometry&&this.writeNode("feature:_geometry",a.geometry,b);for(var c in a.attributes){var d=a.attributes[c];d!=null&&this.writeNode("feature:_attribute",
{name:c,value:d},b)}return b},_geometry:function(a){this.externalProjection&&this.internalProjection&&(a=a.clone().transform(this.internalProjection,this.externalProjection));var b=this.createElementNSPlus("feature:"+this.geometryName),a=this.writeNode("gml:"+this.geometryTypes[a.CLASS_NAME],a,b);this.srsName&&a.setAttribute("srsName",this.srsName);return b},_attribute:function(a){return this.createElementNSPlus("feature:"+a.name,{value:a.value})}},wfs:{FeatureCollection:function(a){for(var b=this.createElementNSPlus("wfs:FeatureCollection"),
c=0,d=a.length;c<d;++c)this.writeNode("gml:featureMember",a[c],b);return b}}},setGeometryTypes:function(){this.geometryTypes={"OpenLayers.Geometry.Point":"Point","OpenLayers.Geometry.MultiPoint":"MultiPoint","OpenLayers.Geometry.LineString":"LineString","OpenLayers.Geometry.MultiLineString":"MultiLineString","OpenLayers.Geometry.Polygon":"Polygon","OpenLayers.Geometry.MultiPolygon":"MultiPolygon","OpenLayers.Geometry.Collection":"GeometryCollection"}},CLASS_NAME:"OpenLayers.Format.GML.Base"});
OpenLayers.Format.GML.v3=OpenLayers.Class(OpenLayers.Format.GML.Base,{schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd",curve:false,multiCurve:true,surface:false,multiSurface:true,initialize:function(a){OpenLayers.Format.GML.Base.prototype.initialize.apply(this,[a])},readers:{gml:OpenLayers.Util.applyDefaults({featureMembers:function(a,b){this.readChildNodes(a,b)},Curve:function(a,b){var c={points:[]};this.readChildNodes(a,c);if(!b.components)b.components=
[];b.components.push(new OpenLayers.Geometry.LineString(c.points))},segments:function(a,b){this.readChildNodes(a,b)},LineStringSegment:function(a,b){var c={};this.readChildNodes(a,c);c.points&&Array.prototype.push.apply(b.points,c.points)},pos:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(this.regExes.splitSpace),c=this.xy?new OpenLayers.Geometry.Point(c[0],c[1],c[2]):new OpenLayers.Geometry.Point(c[1],c[0],c[2]);b.points=[c]},posList:function(a,b){for(var c=this.getChildValue(a).replace(this.regExes.trimSpace,
"").split(this.regExes.splitSpace),d=parseInt(a.getAttribute("dimension"))||2,e,f,g,h=Array(c.length/d),i=0,j=c.length;i<j;i+=d)e=c[i],f=c[i+1],g=d==2?void 0:c[i+2],h[i/d]=this.xy?new OpenLayers.Geometry.Point(e,f,g):new OpenLayers.Geometry.Point(f,e,g);b.points=h},Surface:function(a,b){this.readChildNodes(a,b)},patches:function(a,b){this.readChildNodes(a,b)},PolygonPatch:function(a,b){this.readers.gml.Polygon.apply(this,[a,b])},exterior:function(a,b){var c={};this.readChildNodes(a,c);b.outer=c.components[0]},
interior:function(a,b){var c={};this.readChildNodes(a,c);b.inner.push(c.components[0])},MultiCurve:function(a,b){var c={components:[]};this.readChildNodes(a,c);if(c.components.length>0)b.components=[new OpenLayers.Geometry.MultiLineString(c.components)]},curveMember:function(a,b){this.readChildNodes(a,b)},MultiSurface:function(a,b){var c={components:[]};this.readChildNodes(a,c);if(c.components.length>0)b.components=[new OpenLayers.Geometry.MultiPolygon(c.components)]},surfaceMember:function(a,b){this.readChildNodes(a,
b)},surfaceMembers:function(a,b){this.readChildNodes(a,b)},pointMembers:function(a,b){this.readChildNodes(a,b)},lineStringMembers:function(a,b){this.readChildNodes(a,b)},polygonMembers:function(a,b){this.readChildNodes(a,b)},geometryMembers:function(a,b){this.readChildNodes(a,b)},Envelope:function(a,b){var c={points:Array(2)};this.readChildNodes(a,c);if(!b.components)b.components=[];var d=c.points[0],c=c.points[1];b.components.push(new OpenLayers.Bounds(d.x,d.y,c.x,c.y))},lowerCorner:function(a,b){var c=
{};this.readers.gml.pos.apply(this,[a,c]);b.points[0]=c.points[0]},upperCorner:function(a,b){var c={};this.readers.gml.pos.apply(this,[a,c]);b.points[1]=c.points[0]}},OpenLayers.Format.GML.Base.prototype.readers.gml),feature:OpenLayers.Format.GML.Base.prototype.readers.feature,wfs:OpenLayers.Format.GML.Base.prototype.readers.wfs},write:function(a){a=this.writeNode("gml:"+(OpenLayers.Util.isArray(a)?"featureMembers":"featureMember"),a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",
this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{gml:OpenLayers.Util.applyDefaults({featureMembers:function(a){for(var b=this.createElementNSPlus("gml:featureMembers"),c=0,d=a.length;c<d;++c)this.writeNode("feature:_typeName",a[c],b);return b},Point:function(a){var b=this.createElementNSPlus("gml:Point");this.writeNode("pos",a,b);return b},pos:function(a){return this.createElementNSPlus("gml:pos",{value:this.xy?a.x+" "+a.y:a.y+" "+a.x})},LineString:function(a){var b=
this.createElementNSPlus("gml:LineString");this.writeNode("posList",a.components,b);return b},Curve:function(a){var b=this.createElementNSPlus("gml:Curve");this.writeNode("segments",a,b);return b},segments:function(a){var b=this.createElementNSPlus("gml:segments");this.writeNode("LineStringSegment",a,b);return b},LineStringSegment:function(a){var b=this.createElementNSPlus("gml:LineStringSegment");this.writeNode("posList",a.components,b);return b},posList:function(a){for(var b=a.length,c=Array(b),
d,e=0;e<b;++e)d=a[e],c[e]=this.xy?d.x+" "+d.y:d.y+" "+d.x;return this.createElementNSPlus("gml:posList",{value:c.join(" ")})},Surface:function(a){var b=this.createElementNSPlus("gml:Surface");this.writeNode("patches",a,b);return b},patches:function(a){var b=this.createElementNSPlus("gml:patches");this.writeNode("PolygonPatch",a,b);return b},PolygonPatch:function(a){var b=this.createElementNSPlus("gml:PolygonPatch",{attributes:{interpolation:"planar"}});this.writeNode("exterior",a.components[0],b);
for(var c=1,d=a.components.length;c<d;++c)this.writeNode("interior",a.components[c],b);return b},Polygon:function(a){var b=this.createElementNSPlus("gml:Polygon");this.writeNode("exterior",a.components[0],b);for(var c=1,d=a.components.length;c<d;++c)this.writeNode("interior",a.components[c],b);return b},exterior:function(a){var b=this.createElementNSPlus("gml:exterior");this.writeNode("LinearRing",a,b);return b},interior:function(a){var b=this.createElementNSPlus("gml:interior");this.writeNode("LinearRing",
a,b);return b},LinearRing:function(a){var b=this.createElementNSPlus("gml:LinearRing");this.writeNode("posList",a.components,b);return b},MultiCurve:function(a){for(var b=this.createElementNSPlus("gml:MultiCurve"),a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("curveMember",a[c],b);return b},curveMember:function(a){var b=this.createElementNSPlus("gml:curveMember");this.curve?this.writeNode("Curve",a,b):this.writeNode("LineString",a,b);return b},MultiSurface:function(a){for(var b=this.createElementNSPlus("gml:MultiSurface"),
a=a.components||[a],c=0,d=a.length;c<d;++c)this.writeNode("surfaceMember",a[c],b);return b},surfaceMember:function(a){var b=this.createElementNSPlus("gml:surfaceMember");this.surface?this.writeNode("Surface",a,b):this.writeNode("Polygon",a,b);return b},Envelope:function(a){var b=this.createElementNSPlus("gml:Envelope");this.writeNode("lowerCorner",a,b);this.writeNode("upperCorner",a,b);this.srsName&&b.setAttribute("srsName",this.srsName);return b},lowerCorner:function(a){return this.createElementNSPlus("gml:lowerCorner",
{value:this.xy?a.left+" "+a.bottom:a.bottom+" "+a.left})},upperCorner:function(a){return this.createElementNSPlus("gml:upperCorner",{value:this.xy?a.right+" "+a.top:a.top+" "+a.right})}},OpenLayers.Format.GML.Base.prototype.writers.gml),feature:OpenLayers.Format.GML.Base.prototype.writers.feature,wfs:OpenLayers.Format.GML.Base.prototype.writers.wfs},setGeometryTypes:function(){this.geometryTypes={"OpenLayers.Geometry.Point":"Point","OpenLayers.Geometry.MultiPoint":"MultiPoint","OpenLayers.Geometry.LineString":this.curve===
true?"Curve":"LineString","OpenLayers.Geometry.MultiLineString":this.multiCurve===false?"MultiLineString":"MultiCurve","OpenLayers.Geometry.Polygon":this.surface===true?"Surface":"Polygon","OpenLayers.Geometry.MultiPolygon":this.multiSurface===false?"MultiPolygon":"MultiSurface","OpenLayers.Geometry.Collection":"GeometryCollection"}},CLASS_NAME:"OpenLayers.Format.GML.v3"});
OpenLayers.Format.Filter.v1_1_0=OpenLayers.Class(OpenLayers.Format.GML.v3,OpenLayers.Format.Filter.v1,{VERSION:"1.1.0",schemaLocation:"http://www.opengis.net/ogc/filter/1.1.0/filter.xsd",initialize:function(a){OpenLayers.Format.GML.v3.prototype.initialize.apply(this,[a])},readers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a,b){var c=a.getAttribute("matchCase"),c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO,matchCase:!(c==="false"||c==="0")});this.readChildNodes(a,
c);b.filters.push(c)},PropertyIsNotEqualTo:function(a,b){var c=a.getAttribute("matchCase"),c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.NOT_EQUAL_TO,matchCase:!(c==="false"||c==="0")});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLike:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LIKE});this.readChildNodes(a,c);var d=a.getAttribute("wildCard"),e=a.getAttribute("singleChar"),f=a.getAttribute("escapeChar");c.value2regex(d,e,
f);b.filters.push(c)}},OpenLayers.Format.Filter.v1.prototype.readers.ogc),gml:OpenLayers.Format.GML.v3.prototype.readers.gml,feature:OpenLayers.Format.GML.v3.prototype.readers.feature},writers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsEqualTo",{attributes:{matchCase:a.matchCase}});this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsNotEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsNotEqualTo",
{attributes:{matchCase:a.matchCase}});this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsLike:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLike",{attributes:{matchCase:a.matchCase,wildCard:"*",singleChar:".",escapeChar:"!"}});this.writeNode("PropertyName",a,b);this.writeNode("Literal",a.regex2value(),b);return b},BBOX:function(a){var b=this.createElementNSPlus("ogc:BBOX");a.property&&this.writeNode("PropertyName",a,b);var c=this.writeNode("gml:Envelope",
a.value);a.projection&&c.setAttribute("srsName",a.projection);b.appendChild(c);return b},SortBy:function(a){for(var b=this.createElementNSPlus("ogc:SortBy"),c=0,d=a.length;c<d;c++)this.writeNode("ogc:SortProperty",a[c],b);return b},SortProperty:function(a){var b=this.createElementNSPlus("ogc:SortProperty");this.writeNode("ogc:PropertyName",a,b);this.writeNode("ogc:SortOrder",a.order=="DESC"?"DESC":"ASC",b);return b},SortOrder:function(a){return this.createElementNSPlus("ogc:SortOrder",{value:a})}},
OpenLayers.Format.Filter.v1.prototype.writers.ogc),gml:OpenLayers.Format.GML.v3.prototype.writers.gml,feature:OpenLayers.Format.GML.v3.prototype.writers.feature},writeSpatial:function(a,b){var c=this.createElementNSPlus("ogc:"+b);this.writeNode("PropertyName",a,c);if(a.value instanceof OpenLayers.Filter.Function)this.writeNode("Function",a.value,c);else{var d;d=a.value instanceof OpenLayers.Geometry?this.writeNode("feature:_geometry",a.value).firstChild:this.writeNode("gml:Envelope",a.value);a.projection&&
d.setAttribute("srsName",a.projection);c.appendChild(d)}return c},CLASS_NAME:"OpenLayers.Format.Filter.v1_1_0"});OpenLayers.Format.OWSCommon=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",getVersion:function(a){var b=this.version;if(!b&&((a=a.getAttribute("xmlns:ows"))&&a.substring(a.lastIndexOf("/")+1)==="1.1"&&(b="1.1.0"),!b))b=this.defaultVersion;return b},CLASS_NAME:"OpenLayers.Format.OWSCommon"});
OpenLayers.Format.OWSCommon.v1=OpenLayers.Class(OpenLayers.Format.XML,{regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},read:function(a,b){OpenLayers.Util.applyDefaults(b,this.options);var c={};this.readChildNodes(a,c);return c},readers:{ows:{Exception:function(a,b){var c={code:a.getAttribute("exceptionCode"),locator:a.getAttribute("locator"),texts:[]};b.exceptions.push(c);this.readChildNodes(a,c)},ExceptionText:function(a,b){var c=this.getChildValue(a);b.texts.push(c)},
ServiceIdentification:function(a,b){b.serviceIdentification={};this.readChildNodes(a,b.serviceIdentification)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)},Keywords:function(a,b){b.keywords={};this.readChildNodes(a,b.keywords)},Keyword:function(a,b){b[this.getChildValue(a)]=true},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:this.getChildValue(a)}},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=
this.getChildValue(a)},Fees:function(a,b){b.fees=this.getChildValue(a)},AccessConstraints:function(a,b){b.accessConstraints=this.getChildValue(a)},ServiceProvider:function(a,b){b.serviceProvider={};this.readChildNodes(a,b.serviceProvider)},ProviderName:function(a,b){b.providerName=this.getChildValue(a)},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,this.namespaces.xlink,"href")},ServiceContact:function(a,b){b.serviceContact={};this.readChildNodes(a,b.serviceContact)},IndividualName:function(a,
b){b.individualName=this.getChildValue(a)},PositionName:function(a,b){b.positionName=this.getChildValue(a)},ContactInfo:function(a,b){b.contactInfo={};this.readChildNodes(a,b.contactInfo)},Phone:function(a,b){b.phone={};this.readChildNodes(a,b.phone)},Voice:function(a,b){b.voice=this.getChildValue(a)},Address:function(a,b){b.address={};this.readChildNodes(a,b.address)},DeliveryPoint:function(a,b){b.deliveryPoint=this.getChildValue(a)},City:function(a,b){b.city=this.getChildValue(a)},AdministrativeArea:function(a,
b){b.administrativeArea=this.getChildValue(a)},PostalCode:function(a,b){b.postalCode=this.getChildValue(a)},Country:function(a,b){b.country=this.getChildValue(a)},ElectronicMailAddress:function(a,b){b.electronicMailAddress=this.getChildValue(a)},Role:function(a,b){b.role=this.getChildValue(a)},OperationsMetadata:function(a,b){b.operationsMetadata={};this.readChildNodes(a,b.operationsMetadata)},Operation:function(a,b){var c=a.getAttribute("name");b[c]={};this.readChildNodes(a,b[c])},DCP:function(a,
b){b.dcp={};this.readChildNodes(a,b.dcp)},HTTP:function(a,b){b.http={};this.readChildNodes(a,b.http)},Get:function(a,b){b.get=this.getAttributeNS(a,this.namespaces.xlink,"href")},Post:function(a,b){b.post=this.getAttributeNS(a,this.namespaces.xlink,"href")},Parameter:function(a,b){if(!b.parameters)b.parameters={};var c=a.getAttribute("name");b.parameters[c]={};this.readChildNodes(a,b.parameters[c])},Value:function(a,b){b[this.getChildValue(a)]=true},OutputFormat:function(a,b){b.formats.push({value:this.getChildValue(a)});
this.readChildNodes(a,b)},WGS84BoundingBox:function(a,b){var c={};c.crs=a.getAttribute("crs");b.BoundingBox?b.BoundingBox.push(c):(b.projection=c.crs,c=b);this.readChildNodes(a,c)},BoundingBox:function(a,b){this.readers.ows.WGS84BoundingBox.apply(this,[a,b])},LowerCorner:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace);b.left=c[0];b.bottom=c[1]},UpperCorner:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,
""),c=c.replace(this.regExes.trimComma,","),c=c.split(this.regExes.splitSpace);b.right=c[0];b.top=c[1];b.bounds=new OpenLayers.Bounds(b.left,b.bottom,b.right,b.top);delete b.left;delete b.bottom;delete b.right;delete b.top},Language:function(a,b){b.language=this.getChildValue(a)}}},writers:{ows:{BoundingBox:function(a){var b=this.createElementNSPlus("ows:BoundingBox",{attributes:{crs:a.projection}});this.writeNode("ows:LowerCorner",a,b);this.writeNode("ows:UpperCorner",a,b);return b},LowerCorner:function(a){return this.createElementNSPlus("ows:LowerCorner",
{value:a.bounds.left+" "+a.bounds.bottom})},UpperCorner:function(a){return this.createElementNSPlus("ows:UpperCorner",{value:a.bounds.right+" "+a.bounds.top})},Identifier:function(a){return this.createElementNSPlus("ows:Identifier",{value:a})},Title:function(a){return this.createElementNSPlus("ows:Title",{value:a})},Abstract:function(a){return this.createElementNSPlus("ows:Abstract",{value:a})},OutputFormat:function(a){return this.createElementNSPlus("ows:OutputFormat",{value:a})}}},CLASS_NAME:"OpenLayers.Format.OWSCommon.v1"});
OpenLayers.Format.OWSCommon.v1_0_0=OpenLayers.Class(OpenLayers.Format.OWSCommon.v1,{namespaces:{ows:"http://www.opengis.net/ows",xlink:"http://www.w3.org/1999/xlink"},readers:{ows:OpenLayers.Util.applyDefaults({ExceptionReport:function(a,b){b.success=false;b.exceptionReport={version:a.getAttribute("version"),language:a.getAttribute("language"),exceptions:[]};this.readChildNodes(a,b.exceptionReport)}},OpenLayers.Format.OWSCommon.v1.prototype.readers.ows)},writers:{ows:OpenLayers.Format.OWSCommon.v1.prototype.writers.ows},
CLASS_NAME:"OpenLayers.Format.OWSCommon.v1_0_0"});
OpenLayers.Format.WFST.v1_1_0=OpenLayers.Class(OpenLayers.Format.Filter.v1_1_0,OpenLayers.Format.WFST.v1,{version:"1.1.0",schemaLocations:{wfs:"http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"},initialize:function(a){OpenLayers.Format.Filter.v1_1_0.prototype.initialize.apply(this,[a]);OpenLayers.Format.WFST.v1.prototype.initialize.apply(this,[a])},readNode:function(a,b){return OpenLayers.Format.GML.v3.prototype.readNode.apply(this,[a,b])},readers:{wfs:OpenLayers.Util.applyDefaults({FeatureCollection:function(a,b){b.numberOfFeatures=
parseInt(a.getAttribute("numberOfFeatures"));OpenLayers.Format.WFST.v1.prototype.readers.wfs.FeatureCollection.apply(this,arguments)},TransactionResponse:function(a,b){b.insertIds=[];b.success=false;this.readChildNodes(a,b)},TransactionSummary:function(a,b){b.success=true},InsertResults:function(a,b){this.readChildNodes(a,b)},Feature:function(a,b){var c={fids:[]};this.readChildNodes(a,c);b.insertIds.push(c.fids[0])}},OpenLayers.Format.WFST.v1.prototype.readers.wfs),gml:OpenLayers.Format.GML.v3.prototype.readers.gml,
feature:OpenLayers.Format.GML.v3.prototype.readers.feature,ogc:OpenLayers.Format.Filter.v1_1_0.prototype.readers.ogc,ows:OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows},writers:{wfs:OpenLayers.Util.applyDefaults({GetFeature:function(a){var b=OpenLayers.Format.WFST.v1.prototype.writers.wfs.GetFeature.apply(this,arguments);a&&this.setAttributes(b,{resultType:a.resultType,startIndex:a.startIndex,count:a.count});return b},Query:function(a){var a=OpenLayers.Util.extend({featureNS:this.featureNS,
featurePrefix:this.featurePrefix,featureType:this.featureType,srsName:this.srsName},a),b=a.featurePrefix,c=this.createElementNSPlus("wfs:Query",{attributes:{typeName:(b?b+":":"")+a.featureType,srsName:a.srsName}});a.featureNS&&c.setAttribute("xmlns:"+b,a.featureNS);if(a.propertyNames)for(var b=0,d=a.propertyNames.length;b<d;b++)this.writeNode("wfs:PropertyName",{property:a.propertyNames[b]},c);a.filter&&(this.setFilterProperty(a.filter),this.writeNode("ogc:Filter",a.filter,c));return c},PropertyName:function(a){return this.createElementNSPlus("wfs:PropertyName",
{value:a.property})}},OpenLayers.Format.WFST.v1.prototype.writers.wfs),gml:OpenLayers.Format.GML.v3.prototype.writers.gml,feature:OpenLayers.Format.GML.v3.prototype.writers.feature,ogc:OpenLayers.Format.Filter.v1_1_0.prototype.writers.ogc},CLASS_NAME:"OpenLayers.Format.WFST.v1_1_0"});
OpenLayers.Layer.VirtualEarth=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:1,MAX_ZOOM_LEVEL:19,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.145767211914062E-5,1.072883605957031E-5,5.36441802978515E-6],type:null,wrapDateLine:true,sphericalMercator:false,
animationEnabled:true,initialize:function(a,b){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);this.sphericalMercator&&(OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator),this.initMercatorParameters())},loadMapObject:function(){var a=OpenLayers.Util.createDiv(this.name),b=this.map.getSize();a.style.width=b.w+"px";a.style.height=b.h+"px";this.div.appendChild(a);try{this.mapObject=new VEMap(this.name)}catch(c){}if(this.mapObject!=
null){try{this.mapObject.LoadMap(null,null,this.type,true),this.mapObject.AttachEvent("onmousedown",OpenLayers.Function.True)}catch(d){}this.mapObject.HideDashboard();typeof this.mapObject.SetAnimationEnabled=="function"&&this.mapObject.SetAnimationEnabled(this.animationEnabled)}if(!this.mapObject||!this.mapObject.vemapcontrol||!this.mapObject.vemapcontrol.PanMap||typeof this.mapObject.vemapcontrol.PanMap!="function")this.dragPanMapObject=null},onMapResize:function(){this.mapObject.Resize(this.map.size.w,
this.map.size.h)},getWarningHTML:function(){return OpenLayers.i18n("getLayerWarning",{layerType:"VE",layerLib:"VirtualEarth"})},setMapObjectCenter:function(a,b){this.mapObject.SetCenterAndZoom(a,b)},getMapObjectCenter:function(){return this.mapObject.GetCenter()},dragPanMapObject:function(a,b){this.mapObject.vemapcontrol.PanMap(a,-b)},getMapObjectZoom:function(){return this.mapObject.GetZoomLevel()},getMapObjectLonLatFromMapObjectPixel:function(a){return typeof VEPixel!="undefined"?this.mapObject.PixelToLatLong(a):
this.mapObject.PixelToLatLong(a.x,a.y)},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.LatLongToPixel(a)},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Longitude,a.Latitude).lon:a.Longitude},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Longitude,a.Latitude).lat:a.Latitude},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),
c=new VELatLong(c.lat,c.lon)):c=new VELatLong(b,a);return c},getXFromMapObjectPixel:function(a){return a.x},getYFromMapObjectPixel:function(a){return a.y},getMapObjectPixelFromXY:function(a,b){return typeof VEPixel!="undefined"?new VEPixel(a,b):new Msn.VE.Pixel(a,b)},CLASS_NAME:"OpenLayers.Layer.VirtualEarth"});
OpenLayers.Control=OpenLayers.Class({id:null,map:null,div:null,type:null,allowSelection:false,displayClass:"",title:"",autoActivate:false,active:null,handler:null,eventListeners:null,events:null,EVENT_TYPES:["activate","deactivate"],initialize:function(a){this.displayClass=this.CLASS_NAME.replace("OpenLayers.","ol").replace(/\./g,"");OpenLayers.Util.extend(this,a);this.events=new OpenLayers.Events(this,null,this.EVENT_TYPES);if(this.eventListeners instanceof Object)this.events.on(this.eventListeners);
if(this.id==null)this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){if(this.events)this.eventListeners&&this.events.un(this.eventListeners),this.events.destroy(),this.events=null;this.eventListeners=null;if(this.handler)this.handler.destroy(),this.handler=null;if(this.handlers){for(var a in this.handlers)this.handlers.hasOwnProperty(a)&&typeof this.handlers[a].destroy=="function"&&this.handlers[a].destroy();this.handlers=null}if(this.map)this.map.removeControl(this),this.map=
null;this.div=null},setMap:function(a){this.map=a;this.handler&&this.handler.setMap(a)},draw:function(a){if(this.div==null){this.div=OpenLayers.Util.createDiv(this.id);this.div.className=this.displayClass;if(!this.allowSelection)this.div.className+=" olControlNoSelect",this.div.setAttribute("unselectable","on",0),this.div.onselectstart=OpenLayers.Function.False;if(this.title!="")this.div.title=this.title}if(a!=null)this.position=a.clone();this.moveTo(this.position);return this.div},moveTo:function(a){if(a!=
null&&this.div!=null)this.div.style.left=a.x+"px",this.div.style.top=a.y+"px"},activate:function(){if(this.active)return false;this.handler&&this.handler.activate();this.active=true;this.map&&OpenLayers.Element.addClass(this.map.viewPortDiv,this.displayClass.replace(/ /g,"")+"Active");this.events.triggerEvent("activate");return true},deactivate:function(){return this.active?(this.handler&&this.handler.deactivate(),this.active=false,this.map&&OpenLayers.Element.removeClass(this.map.viewPortDiv,this.displayClass.replace(/ /g,
"")+"Active"),this.events.triggerEvent("deactivate"),true):false},CLASS_NAME:"OpenLayers.Control"});OpenLayers.Control.TYPE_BUTTON=1;OpenLayers.Control.TYPE_TOGGLE=2;OpenLayers.Control.TYPE_TOOL=3;
OpenLayers.Control.Panel=OpenLayers.Class(OpenLayers.Control,{controls:null,autoActivate:true,defaultControl:null,saveState:false,allowDepress:false,activeState:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);this.controls=[];this.activeState={}},destroy:function(){OpenLayers.Control.prototype.destroy.apply(this,arguments);for(var a,b=this.controls.length-1;b>=0;b--)a=this.controls[b],a.events&&a.events.un({activate:this.iconOn,deactivate:this.iconOff}),OpenLayers.Event.stopObservingElement(a.panel_div),
a.panel_div=null;this.activeState=null},activate:function(){if(OpenLayers.Control.prototype.activate.apply(this,arguments)){for(var a,b=0,c=this.controls.length;b<c;b++)a=this.controls[b],(a===this.defaultControl||this.saveState&&this.activeState[a.id])&&a.activate();if(this.saveState===true)this.defaultControl=null;this.redraw();return true}else return false},deactivate:function(){if(OpenLayers.Control.prototype.deactivate.apply(this,arguments)){for(var a,b=0,c=this.controls.length;b<c;b++)a=this.controls[b],
this.activeState[a.id]=a.deactivate();this.redraw();return true}else return false},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.addControlsToMap(this.controls);return this.div},redraw:function(){for(var a=this.div.childNodes.length-1;a>=0;a--)this.div.removeChild(this.div.childNodes[a]);this.div.innerHTML="";if(this.active)for(var a=0,b=this.controls.length;a<b;a++)this.div.appendChild(this.controls[a].panel_div)},activateControl:function(a){if(!this.active)return false;
if(a.type==OpenLayers.Control.TYPE_BUTTON)a.trigger();else if(a.type==OpenLayers.Control.TYPE_TOGGLE)a.active?a.deactivate():a.activate();else if(this.allowDepress&&a.active)a.deactivate();else{for(var b,c=0,d=this.controls.length;c<d;c++)b=this.controls[c],b!=a&&(b.type===OpenLayers.Control.TYPE_TOOL||b.type==null)&&b.deactivate();a.activate()}},addControls:function(a){OpenLayers.Util.isArray(a)||(a=[a]);this.controls=this.controls.concat(a);for(var b=0,c=a.length;b<c;b++){var d=document.createElement("div");
d.className=a[b].displayClass+"ItemInactive";a[b].panel_div=d;if(a[b].title!="")a[b].panel_div.title=a[b].title;OpenLayers.Event.observe(a[b].panel_div,"click",OpenLayers.Function.bind(this.onClick,this,a[b]));OpenLayers.Event.observe(a[b].panel_div,"dblclick",OpenLayers.Function.bind(this.onDoubleClick,this,a[b]));OpenLayers.Event.observe(a[b].panel_div,"mousedown",OpenLayers.Function.bindAsEventListener(OpenLayers.Event.stop))}this.map&&(this.addControlsToMap(a),this.redraw())},addControlsToMap:function(a){for(var b,
c=0,d=a.length;c<d;c++)b=a[c],b.autoActivate===true?(b.autoActivate=false,this.map.addControl(b),b.autoActivate=true):(this.map.addControl(b),b.deactivate()),b.events.on({activate:this.iconOn,deactivate:this.iconOff})},iconOn:function(){var a=this.panel_div;a.className=a.className.replace(/ItemInactive$/,"ItemActive")},iconOff:function(){var a=this.panel_div;a.className=a.className.replace(/ItemActive$/,"ItemInactive")},onClick:function(a,b){OpenLayers.Event.stop(b?b:window.event);this.activateControl(a)},
onDoubleClick:function(a,b){OpenLayers.Event.stop(b?b:window.event)},getControlsBy:function(a,b){var c=typeof b.test=="function";return OpenLayers.Array.filter(this.controls,function(d){return d[a]==b||c&&b.test(d[a])})},getControlsByName:function(a){return this.getControlsBy("name",a)},getControlsByClass:function(a){return this.getControlsBy("CLASS_NAME",a)},CLASS_NAME:"OpenLayers.Control.Panel"});
OpenLayers.Control.ZoomIn=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map.zoomIn()},CLASS_NAME:"OpenLayers.Control.ZoomIn"});OpenLayers.Control.ZoomOut=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map.zoomOut()},CLASS_NAME:"OpenLayers.Control.ZoomOut"});
OpenLayers.Control.ZoomToMaxExtent=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map&&this.map.zoomToMaxExtent()},CLASS_NAME:"OpenLayers.Control.ZoomToMaxExtent"});OpenLayers.Control.ZoomPanel=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);this.addControls([new OpenLayers.Control.ZoomIn,new OpenLayers.Control.ZoomToMaxExtent,new OpenLayers.Control.ZoomOut])},CLASS_NAME:"OpenLayers.Control.ZoomPanel"});
OpenLayers.Layer.HTTPRequest=OpenLayers.Class(OpenLayers.Layer,{URL_HASH_FACTOR:(Math.sqrt(5)-1)/2,url:null,params:null,reproject:false,initialize:function(a,b,c,d){OpenLayers.Layer.prototype.initialize.apply(this,[a,d]);this.url=b;this.params=OpenLayers.Util.extend({},c)},destroy:function(){this.params=this.url=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},clone:function(a){a==null&&(a=new OpenLayers.Layer.HTTPRequest(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.prototype.clone.apply(this,
[a])},setUrl:function(a){this.url=a},mergeNewParams:function(a){this.params=OpenLayers.Util.extend(this.params,a);a=this.redraw();this.map!=null&&this.map.events.triggerEvent("changelayer",{layer:this,property:"params"});return a},redraw:function(a){return a?this.mergeNewParams({_olSalt:Math.random()}):OpenLayers.Layer.prototype.redraw.apply(this,[])},selectUrl:function(a,b){for(var c=1,d=0,e=a.length;d<e;d++)c*=a.charCodeAt(d)*this.URL_HASH_FACTOR,c-=Math.floor(c);return b[Math.floor(c*b.length)]},
getFullRequestString:function(a,b){var c=b||this.url,d=OpenLayers.Util.extend({},this.params),d=OpenLayers.Util.extend(d,a),e=OpenLayers.Util.getParameterString(d);OpenLayers.Util.isArray(c)&&(c=this.selectUrl(e,c));var e=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(c)),f;for(f in d)f.toUpperCase()in e&&delete d[f];e=OpenLayers.Util.getParameterString(d);return OpenLayers.Util.urlAppend(c,e)},CLASS_NAME:"OpenLayers.Layer.HTTPRequest"});
OpenLayers.Layer.Grid=OpenLayers.Class(OpenLayers.Layer.HTTPRequest,{tileSize:null,tileOriginCorner:"bl",tileOrigin:null,tileOptions:null,grid:null,singleTile:false,ratio:1.5,buffer:0,numLoadingTiles:0,tileLoadingDelay:100,timerId:null,initialize:function(a,b,c,d){OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this,arguments);this.events.addEventType("tileloaded");this.grid=[];this._moveGriddedTiles=OpenLayers.Function.bind(this.moveGriddedTiles,this)},removeMap:function(){if(this.timerId!=
null)window.clearTimeout(this.timerId),this.timerId=null},destroy:function(){this.clearGrid();this.tileSize=this.grid=null;OpenLayers.Layer.HTTPRequest.prototype.destroy.apply(this,arguments)},clearGrid:function(){if(this.grid){for(var a=0,b=this.grid.length;a<b;a++)for(var c=this.grid[a],d=0,e=c.length;d<e;d++){var f=c[d];this.removeTileMonitoringHooks(f);f.destroy()}this.grid=[]}},clone:function(a){a==null&&(a=new OpenLayers.Layer.Grid(this.name,this.url,this.params,this.getOptions()));a=OpenLayers.Layer.HTTPRequest.prototype.clone.apply(this,
[a]);if(this.tileSize!=null)a.tileSize=this.tileSize.clone();a.grid=[];return a},moveTo:function(a,b,c){OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments);a=a||this.map.getExtent();if(a!=null){var d=!this.grid.length||b,e=this.getTilesBounds();this.singleTile?(d||!c&&!e.containsBounds(a))&&this.initSingleTile(a):d||!e.containsBounds(a,true)?this.initGriddedTiles(a):this.scheduleMoveGriddedTiles()}},moveByPx:function(){this.singleTile||this.scheduleMoveGriddedTiles()},scheduleMoveGriddedTiles:function(){this.timerId!=
null&&window.clearTimeout(this.timerId);this.timerId=window.setTimeout(this._moveGriddedTiles,this.tileLoadingDelay)},setTileSize:function(a){if(this.singleTile)a=this.map.getSize(),a.h=parseInt(a.h*this.ratio),a.w=parseInt(a.w*this.ratio);OpenLayers.Layer.HTTPRequest.prototype.setTileSize.apply(this,[a])},getGridBounds:function(){OpenLayers.Console.warn("The getGridBounds() function is deprecated. It will be removed in 3.0. Please use getTilesBounds() instead.");return this.getTilesBounds()},getTilesBounds:function(){var a=
null;if(this.grid.length)var a=this.grid[this.grid.length-1][0],b=this.grid[0][this.grid[0].length-1],a=new OpenLayers.Bounds(a.bounds.left,a.bounds.bottom,b.bounds.right,b.bounds.top);return a},initSingleTile:function(a){var b=a.getCenterLonLat(),c=a.getWidth()*this.ratio,a=a.getHeight()*this.ratio,b=new OpenLayers.Bounds(b.lon-c/2,b.lat-a/2,b.lon+c/2,b.lat+a/2),c=this.map.getLayerPxFromLonLat(new OpenLayers.LonLat(b.left,b.top));this.grid.length||(this.grid[0]=[]);(a=this.grid[0][0])?a.moveTo(b,
c):(a=this.addTile(b,c),this.addTileMonitoringHooks(a),a.draw(),this.grid[0][0]=a);this.removeExcessTiles(1,1)},calculateGridLayout:function(a,b,c){var d=c*this.tileSize.w;c*=this.tileSize.h;var e=a.left-b.lon,f=Math.floor(e/d)-this.buffer,e=-(e/d-f)*this.tileSize.w,f=b.lon+f*d,a=a.top-(b.lat+c),g=Math.ceil(a/c)+this.buffer;return{tilelon:d,tilelat:c,tileoffsetlon:f,tileoffsetlat:b.lat+g*c,tileoffsetx:e,tileoffsety:-(g-a/c)*this.tileSize.h}},getTileOrigin:function(){var a=this.tileOrigin;if(!a)var a=
this.getMaxExtent(),b={tl:["left","top"],tr:["right","top"],bl:["left","bottom"],br:["right","bottom"]}[this.tileOriginCorner],a=new OpenLayers.LonLat(a[b[0]],a[b[1]]);return a},initGriddedTiles:function(a){var b=this.map.getSize(),c=Math.ceil(b.h/this.tileSize.h)+Math.max(1,2*this.buffer),b=Math.ceil(b.w/this.tileSize.w)+Math.max(1,2*this.buffer),d=this.getTileOrigin(),e=this.map.getResolution(),f=this.calculateGridLayout(a,d,e),d=Math.round(f.tileoffsetx),e=Math.round(f.tileoffsety),g=f.tileoffsetlon,
h=f.tileoffsetlat,i=f.tilelon,f=f.tilelat;this.origin=new OpenLayers.Pixel(d,e);var j=d,k=g,l=0,m=parseInt(this.map.layerContainerDiv.style.left),n=parseInt(this.map.layerContainerDiv.style.top);do{var o=this.grid[l++];o||(o=[],this.grid.push(o));var g=k,d=j,r=0;do{var q=new OpenLayers.Bounds(g,h,g+i,h+f),p=d;p-=m;var s=e;s-=n;p=new OpenLayers.Pixel(p,s);(s=o[r++])?s.moveTo(q,p,false):(s=this.addTile(q,p),this.addTileMonitoringHooks(s),o.push(s));g+=i;d+=this.tileSize.w}while(g<=a.right+i*this.buffer||
r<b);h-=f;e+=this.tileSize.h}while(h>=a.bottom-f*this.buffer||l<c);this.removeExcessTiles(l,r);this.spiralTileLoad()},getMaxExtent:function(){return this.maxExtent},spiralTileLoad:function(){for(var a=[],b=["right","down","left","up"],c=0,d=-1,e=OpenLayers.Util.indexOf(b,"right"),f=0;f<b.length;){var g=c,h=d;switch(b[e]){case "right":h++;break;case "down":g++;break;case "left":h--;break;case "up":g--}var i=null;g<this.grid.length&&g>=0&&h<this.grid[0].length&&h>=0&&(i=this.grid[g][h]);i!=null&&!i.queued?
(a.unshift(i),i.queued=true,f=0,c=g,d=h):(e=(e+1)%4,f++)}b=0;for(c=a.length;b<c;b++)i=a[b],i.draw(),i.queued=false},addTile:function(a,b){return new OpenLayers.Tile.Image(this,b,a,null,this.tileSize,this.tileOptions)},addTileMonitoringHooks:function(a){a.onLoadStart=function(){this.numLoadingTiles==0&&this.events.triggerEvent("loadstart");this.numLoadingTiles++};a.events.register("loadstart",this,a.onLoadStart);a.onLoadEnd=function(){this.numLoadingTiles--;this.events.triggerEvent("tileloaded");this.numLoadingTiles==
0&&this.events.triggerEvent("loadend")};a.events.register("loadend",this,a.onLoadEnd);a.events.register("unload",this,a.onLoadEnd)},removeTileMonitoringHooks:function(a){a.unload();a.events.un({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,scope:this})},moveGriddedTiles:function(){var a=true,b=this.buffer||1,c=this.grid[0][0].position,d=parseInt(this.map.layerContainerDiv.style.left),e=parseInt(this.map.layerContainerDiv.style.top),c=c.add(d,e);c.x>-this.tileSize.w*(b-1)?this.shiftColumn(true):
c.x<-this.tileSize.w*b?this.shiftColumn(false):c.y>-this.tileSize.h*(b-1)?this.shiftRow(true):c.y<-this.tileSize.h*b?this.shiftRow(false):a=false;if(a)this.timerId=window.setTimeout(this._moveGriddedTiles,0)},shiftRow:function(a){var b=this.grid,c=b[a?0:this.grid.length-1],d=this.map.getResolution(),e=a?-this.tileSize.h:this.tileSize.h;d*=-e;for(var f=a?b.pop():b.shift(),g=0,h=c.length;g<h;g++){var i=c[g],j=i.bounds.clone(),i=i.position.clone();j.bottom+=d;j.top+=d;i.y+=e;f[g].moveTo(j,i)}a?b.unshift(f):
b.push(f)},shiftColumn:function(a){for(var b=a?-this.tileSize.w:this.tileSize.w,c=this.map.getResolution()*b,d=0,e=this.grid.length;d<e;d++){var f=this.grid[d],g=f[a?0:f.length-1],h=g.bounds.clone(),g=g.position.clone();h.left+=c;h.right+=c;g.x+=b;var i=a?this.grid[d].pop():this.grid[d].shift();i.moveTo(h,g);a?f.unshift(i):f.push(i)}},removeExcessTiles:function(a,b){for(;this.grid.length>a;)for(var c=this.grid.pop(),d=0,e=c.length;d<e;d++){var f=c[d];this.removeTileMonitoringHooks(f);f.destroy()}for(;this.grid[0].length>
b;){d=0;for(e=this.grid.length;d<e;d++)c=this.grid[d],f=c.pop(),this.removeTileMonitoringHooks(f),f.destroy()}},onMapResize:function(){this.singleTile&&(this.clearGrid(),this.setTileSize())},getTileBounds:function(a){var b=this.maxExtent,c=this.getResolution(),d=c*this.tileSize.w;c*=this.tileSize.h;var e=this.getLonLatFromViewPortPx(a),a=b.left+d*Math.floor((e.lon-b.left)/d),b=b.bottom+c*Math.floor((e.lat-b.bottom)/c);return new OpenLayers.Bounds(a,b,a+d,b+c)},CLASS_NAME:"OpenLayers.Layer.Grid"});
OpenLayers.Tile=OpenLayers.Class({EVENT_TYPES:["loadstart","loadend","reload","unload"],events:null,id:null,layer:null,url:null,bounds:null,size:null,position:null,isLoading:false,initialize:function(a,b,c,d,e,f){this.layer=a;this.position=b.clone();this.bounds=c.clone();this.url=d;if(e)this.size=e.clone();this.id=OpenLayers.Util.createUniqueID("Tile_");this.events=new OpenLayers.Events(this,null,this.EVENT_TYPES);OpenLayers.Util.extend(this,f)},unload:function(){if(this.isLoading)this.isLoading=
false,this.events.triggerEvent("unload")},destroy:function(){this.position=this.size=this.bounds=this.layer=null;this.events.destroy();this.events=null},clone:function(a){a==null&&(a=new OpenLayers.Tile(this.layer,this.position,this.bounds,this.url,this.size));OpenLayers.Util.applyDefaults(a,this);return a},draw:function(){var a=this.layer.maxExtent;this.shouldDraw=a&&this.bounds.intersectsBounds(a,false)||this.layer.displayOutsideMaxExtent;this.clear();return this.shouldDraw},moveTo:function(a,b,
c){c==null&&(c=true);this.bounds=a.clone();this.position=b.clone();c&&this.draw()},clear:function(){},getBoundsFromBaseLayer:function(a){var b=OpenLayers.i18n("reprojectDeprecated",{layerName:this.layer.name});OpenLayers.Console.warn(b);b=this.layer.map.getLonLatFromLayerPx(a);a=a.clone();a.x+=this.size.w;a.y+=this.size.h;a=this.layer.map.getLonLatFromLayerPx(a);if(b.lon>a.lon)b.lon<0?b.lon=-180-(b.lon+180):a.lon=180+a.lon+180;return new OpenLayers.Bounds(b.lon,a.lat,a.lon,b.lat)},showTile:function(){this.shouldDraw&&
this.show()},show:function(){},hide:function(){},CLASS_NAME:"OpenLayers.Tile"});
OpenLayers.Tile.Image=OpenLayers.Class(OpenLayers.Tile,{url:null,imgDiv:null,frame:null,layerAlphaHack:null,isBackBuffer:false,isFirstDraw:true,backBufferTile:null,maxGetUrlLength:null,initialize:function(a,b,c,d,e,f){OpenLayers.Tile.prototype.initialize.apply(this,arguments);this.maxGetUrlLength!=null&&OpenLayers.Util.extend(this,OpenLayers.Tile.Image.IFrame);this.url=d;this.frame=document.createElement("div");this.frame.style.overflow="hidden";this.frame.style.position="absolute";this.layerAlphaHack=
this.layer.alpha&&OpenLayers.Util.alphaHack()},destroy:function(){this.imgDiv!=null&&this.removeImgDiv();this.imgDiv=null;this.frame!=null&&this.frame.parentNode==this.layer.div&&this.layer.div.removeChild(this.frame);this.frame=null;if(this.backBufferTile)this.backBufferTile.destroy(),this.backBufferTile=null;this.layer.events.unregister("loadend",this,this.resetBackBuffer);OpenLayers.Tile.prototype.destroy.apply(this,arguments)},clone:function(a){a==null&&(a=new OpenLayers.Tile.Image(this.layer,
this.position,this.bounds,this.url,this.size));a=OpenLayers.Tile.prototype.clone.apply(this,[a]);a.imgDiv=null;return a},draw:function(){if(this.layer!=this.layer.map.baseLayer&&this.layer.reproject)this.bounds=this.getBoundsFromBaseLayer(this.position);var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);if(OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,this.layer.transitionEffect)!=-1||this.layer.singleTile)if(a){if(!this.backBufferTile)this.backBufferTile=this.clone(),this.backBufferTile.hide(),
this.backBufferTile.isBackBuffer=true,this.events.register("loadend",this,this.resetBackBuffer),this.layer.events.register("loadend",this,this.resetBackBuffer);this.startTransition()}else this.backBufferTile&&this.backBufferTile.clear();else if(a&&this.isFirstDraw)this.events.register("loadend",this,this.showTile),this.isFirstDraw=false;if(!a)return false;this.isLoading?this.events.triggerEvent("reload"):(this.isLoading=true,this.events.triggerEvent("loadstart"));return this.renderTile()},resetBackBuffer:function(){this.showTile();
if(this.backBufferTile&&(this.isFirstDraw||!this.layer.numLoadingTiles)){this.isFirstDraw=false;var a=this.layer.maxExtent;if(a&&this.bounds.intersectsBounds(a,false))this.backBufferTile.position=this.position,this.backBufferTile.bounds=this.bounds,this.backBufferTile.size=this.size,this.backBufferTile.imageSize=this.layer.getImageSize(this.bounds)||this.size,this.backBufferTile.imageOffset=this.layer.imageOffset,this.backBufferTile.resolution=this.layer.getResolution(),this.backBufferTile.renderTile();
this.backBufferTile.hide()}},renderTile:function(){this.layer.async?(this.initImgDiv(),this.layer.getURLasync(this.bounds,this,"url",this.positionImage)):(this.url=this.layer.getURL(this.bounds),this.initImgDiv(),this.positionImage());return true},positionImage:function(){if(this.layer!==null){OpenLayers.Util.modifyDOMElement(this.frame,null,this.position,this.size);var a=this.layer.getImageSize(this.bounds);this.layerAlphaHack?OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv,null,null,a,this.url):
(OpenLayers.Util.modifyDOMElement(this.imgDiv,null,null,a),this.imgDiv.src=this.url)}},clear:function(){if(this.imgDiv&&(this.hide(),OpenLayers.Tile.Image.useBlankTile))this.imgDiv.src=OpenLayers.Util.getImagesLocation()+"blank.gif"},initImgDiv:function(){if(this.imgDiv==null){var a=this.layer.imageOffset,b=this.layer.getImageSize(this.bounds);this.imgDiv=this.layerAlphaHack?OpenLayers.Util.createAlphaImageDiv(null,a,b,null,"relative",null,null,null,true):OpenLayers.Util.createImage(null,a,b,null,
"relative",null,null,true);if(OpenLayers.Util.isArray(this.layer.url))this.imgDiv.urls=this.layer.url.slice();this.imgDiv.className="olTileImage";this.frame.style.zIndex=this.isBackBuffer?0:1;this.frame.appendChild(this.imgDiv);this.layer.div.appendChild(this.frame);this.layer.opacity!=null&&OpenLayers.Util.modifyDOMElement(this.imgDiv,null,null,null,null,null,null,this.layer.opacity);this.imgDiv.map=this.layer.map;var c=function(){if(this.isLoading)this.isLoading=false,this.events.triggerEvent("loadend")};
this.layerAlphaHack?OpenLayers.Event.observe(this.imgDiv.childNodes[0],"load",OpenLayers.Function.bind(c,this)):OpenLayers.Event.observe(this.imgDiv,"load",OpenLayers.Function.bind(c,this));OpenLayers.Event.observe(this.imgDiv,"error",OpenLayers.Function.bind(function(){this.imgDiv._attempts>OpenLayers.IMAGE_RELOAD_ATTEMPTS&&c.call(this)},this))}this.imgDiv.viewRequestID=this.layer.map.viewRequestID},removeImgDiv:function(){OpenLayers.Event.stopObservingElement(this.imgDiv);if(this.imgDiv.parentNode==
this.frame)this.frame.removeChild(this.imgDiv),this.imgDiv.map=null;this.imgDiv.urls=null;var a=this.imgDiv.firstChild;a?(OpenLayers.Event.stopObservingElement(a),this.imgDiv.removeChild(a),delete a):this.imgDiv.src=OpenLayers.Util.getImagesLocation()+"blank.gif"},checkImgURL:function(){this.layer&&(OpenLayers.Util.isEquivalentUrl(this.layerAlphaHack?this.imgDiv.firstChild.src:this.imgDiv.src,this.url)||this.hide())},startTransition:function(){if(this.backBufferTile&&this.backBufferTile.imgDiv){var a=
1;this.backBufferTile.resolution&&(a=this.backBufferTile.resolution/this.layer.getResolution());if(a!=1){if(this.layer.transitionEffect=="resize"){var b=new OpenLayers.LonLat(this.backBufferTile.bounds.left,this.backBufferTile.bounds.top),c=new OpenLayers.Size(this.backBufferTile.size.w*a,this.backBufferTile.size.h*a),b=this.layer.map.getLayerPxFromLonLat(b);OpenLayers.Util.modifyDOMElement(this.backBufferTile.frame,null,b,c);c=this.backBufferTile.imageSize;c=new OpenLayers.Size(c.w*a,c.h*a);(b=this.backBufferTile.imageOffset)&&
(b=new OpenLayers.Pixel(b.x*a,b.y*a));OpenLayers.Util.modifyDOMElement(this.backBufferTile.imgDiv,null,b,c);this.backBufferTile.show()}}else this.layer.singleTile?this.backBufferTile.show():this.backBufferTile.hide()}},show:function(){this.frame.style.display="";if(OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,this.layer.transitionEffect)!=-1&&OpenLayers.IS_GECKO===true)this.frame.scrollLeft=this.frame.scrollLeft},hide:function(){this.frame.style.display="none"},CLASS_NAME:"OpenLayers.Tile.Image"});
OpenLayers.Tile.Image.useBlankTile=OpenLayers.BROWSER_NAME=="safari"||OpenLayers.BROWSER_NAME=="opera";
OpenLayers.Format.ArcXML=OpenLayers.Class(OpenLayers.Format.XML,{fontStyleKeys:"antialiasing,blockout,font,fontcolor,fontsize,fontstyle,glowing,interval,outline,printmode,shadow,transparency".split(","),request:null,response:null,initialize:function(a){this.request=new OpenLayers.Format.ArcXML.Request;this.response=new OpenLayers.Format.ArcXML.Response;if(a)if(a.requesttype=="feature"){this.request.get_image=null;var b=this.request.get_feature.query;this.addCoordSys(b.featurecoordsys,a.featureCoordSys);
this.addCoordSys(b.filtercoordsys,a.filterCoordSys);if(a.polygon)b.isspatial=true,b.spatialfilter.polygon=a.polygon;else if(a.envelope)b.isspatial=true,b.spatialfilter.envelope={minx:0,miny:0,maxx:0,maxy:0},this.parseEnvelope(b.spatialfilter.envelope,a.envelope)}else a.requesttype=="image"?(this.request.get_feature=null,b=this.request.get_image.properties,this.parseEnvelope(b.envelope,a.envelope),this.addLayers(b.layerlist,a.layers),this.addImageSize(b.imagesize,a.tileSize),this.addCoordSys(b.featurecoordsys,
a.featureCoordSys),this.addCoordSys(b.filtercoordsys,a.filterCoordSys)):this.request=null;OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},parseEnvelope:function(a,b){if(b&&b.length==4)a.minx=b[0],a.miny=b[1],a.maxx=b[2],a.maxy=b[3]},addLayers:function(a,b){for(var c=0,d=b.length;c<d;c++)a.push(b[c])},addImageSize:function(a,b){if(b!==null)a.width=b.w,a.height=b.h,a.printwidth=b.w,a.printheight=b.h},addCoordSys:function(a,b){if(typeof b=="string")a.id=parseInt(b),a.string=b;else if(typeof b==
"object"&&b.proj!==null)a.id=b.proj.srsProjNumber,a.string=b.proj.srsCode},iserror:function(a){var b=null;a?(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]),a=a.documentElement.getElementsByTagName("ERROR"),b=a!==null&&a.length>0):b=this.response.error!=="";return b},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=null;a&&a.documentElement&&(b=a.documentElement.nodeName=="ARCXML"?a.documentElement:a.documentElement.getElementsByTagName("ARCXML")[0]);
if(!b||b.firstChild.nodeName==="parsererror"){var c,d;try{c=a.firstChild.nodeValue,d=a.firstChild.childNodes[1].firstChild.nodeValue}catch(e){}throw{message:"Error parsing the ArcXML request",error:c,source:d};}return this.parseResponse(b)},write:function(a){if(!a)a=this.request;var b=this.createElementNS("","ARCXML");b.setAttribute("version","1.1");var c=this.createElementNS("","REQUEST");if(a.get_image!=null){var d=this.createElementNS("","GET_IMAGE");c.appendChild(d);var e=this.createElementNS("",
"PROPERTIES");d.appendChild(e);a=a.get_image.properties;a.featurecoordsys!=null&&(d=this.createElementNS("","FEATURECOORDSYS"),e.appendChild(d),a.featurecoordsys.id===0?d.setAttribute("string",a.featurecoordsys.string):d.setAttribute("id",a.featurecoordsys.id));a.filtercoordsys!=null&&(d=this.createElementNS("","FILTERCOORDSYS"),e.appendChild(d),a.filtercoordsys.id===0?d.setAttribute("string",a.filtercoordsys.string):d.setAttribute("id",a.filtercoordsys.id));a.envelope!=null&&(d=this.createElementNS("",
"ENVELOPE"),e.appendChild(d),d.setAttribute("minx",a.envelope.minx),d.setAttribute("miny",a.envelope.miny),d.setAttribute("maxx",a.envelope.maxx),d.setAttribute("maxy",a.envelope.maxy));d=this.createElementNS("","IMAGESIZE");e.appendChild(d);d.setAttribute("height",a.imagesize.height);d.setAttribute("width",a.imagesize.width);if(a.imagesize.height!=a.imagesize.printheight||a.imagesize.width!=a.imagesize.printwidth)d.setAttribute("printheight",a.imagesize.printheight),d.setArrtibute("printwidth",a.imagesize.printwidth);
a.background!=null&&(d=this.createElementNS("","BACKGROUND"),e.appendChild(d),d.setAttribute("color",a.background.color.r+","+a.background.color.g+","+a.background.color.b),a.background.transcolor!==null&&d.setAttribute("transcolor",a.background.transcolor.r+","+a.background.transcolor.g+","+a.background.transcolor.b));if(a.layerlist!=null&&a.layerlist.length>0){d=this.createElementNS("","LAYERLIST");e.appendChild(d);for(e=0;e<a.layerlist.length;e++){var f=this.createElementNS("","LAYERDEF");d.appendChild(f);
f.setAttribute("id",a.layerlist[e].id);f.setAttribute("visible",a.layerlist[e].visible);if(typeof a.layerlist[e].query=="object"){var g=a.layerlist[e].query;if(g.where.length<0)continue;var h=null,h=typeof g.spatialfilter=="boolean"&&g.spatialfilter?this.createElementNS("","SPATIALQUERY"):this.createElementNS("","QUERY");h.setAttribute("where",g.where);typeof g.accuracy=="number"&&g.accuracy>0&&h.setAttribute("accuracy",g.accuracy);typeof g.featurelimit=="number"&&g.featurelimit<2E3&&h.setAttribute("featurelimit",
g.featurelimit);typeof g.subfields=="string"&&g.subfields!="#ALL#"&&h.setAttribute("subfields",g.subfields);typeof g.joinexpression=="string"&&g.joinexpression.length>0&&h.setAttribute("joinexpression",g.joinexpression);typeof g.jointables=="string"&&g.jointables.length>0&&h.setAttribute("jointables",g.jointables);f.appendChild(h)}typeof a.layerlist[e].renderer=="object"&&this.addRenderer(f,a.layerlist[e].renderer)}}}else if(a.get_feature!=null)d=this.createElementNS("","GET_FEATURES"),d.setAttribute("outputmode",
"newxml"),d.setAttribute("checkesc","true"),a.get_feature.geometry?d.setAttribute("geometry",a.get_feature.geometry):d.setAttribute("geometry","false"),a.get_feature.compact&&d.setAttribute("compact",a.get_feature.compact),a.get_feature.featurelimit=="number"&&d.setAttribute("featurelimit",a.get_feature.featurelimit),d.setAttribute("globalenvelope","true"),c.appendChild(d),a.get_feature.layer!=null&&a.get_feature.layer.length>0&&(e=this.createElementNS("","LAYER"),e.setAttribute("id",a.get_feature.layer),
d.appendChild(e)),a=a.get_feature.query,a!=null&&(e=null,e=a.isspatial?this.createElementNS("","SPATIALQUERY"):this.createElementNS("","QUERY"),d.appendChild(e),typeof a.accuracy=="number"&&e.setAttribute("accuracy",a.accuracy),a.featurecoordsys!=null&&(d=this.createElementNS("","FEATURECOORDSYS"),a.featurecoordsys.id==0?d.setAttribute("string",a.featurecoordsys.string):d.setAttribute("id",a.featurecoordsys.id),e.appendChild(d)),a.filtercoordsys!=null&&(d=this.createElementNS("","FILTERCOORDSYS"),
a.filtercoordsys.id===0?d.setAttribute("string",a.filtercoordsys.string):d.setAttribute("id",a.filtercoordsys.id),e.appendChild(d)),a.buffer>0&&(d=this.createElementNS("","BUFFER"),d.setAttribute("distance",a.buffer),e.appendChild(d)),a.isspatial&&(d=this.createElementNS("","SPATIALFILTER"),d.setAttribute("relation",a.spatialfilter.relation),e.appendChild(d),a.spatialfilter.envelope?(f=this.createElementNS("","ENVELOPE"),f.setAttribute("minx",a.spatialfilter.envelope.minx),f.setAttribute("miny",a.spatialfilter.envelope.miny),
f.setAttribute("maxx",a.spatialfilter.envelope.maxx),f.setAttribute("maxy",a.spatialfilter.envelope.maxy),d.appendChild(f)):typeof a.spatialfilter.polygon=="object"&&d.appendChild(this.writePolygonGeometry(a.spatialfilter.polygon))),a.where!=null&&a.where.length>0&&e.setAttribute("where",a.where));b.appendChild(c);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},addGroupRenderer:function(a,b){var c=this.createElementNS("","GROUPRENDERER");a.appendChild(c);for(var d=0;d<b.length;d++)this.addRenderer(c,
b[d])},addRenderer:function(a,b){if(OpenLayers.Util.isArray(b))this.addGroupRenderer(a,b);else{var c=this.createElementNS("",b.type.toUpperCase()+"RENDERER");a.appendChild(c);c.tagName=="VALUEMAPRENDERER"?this.addValueMapRenderer(c,b):c.tagName=="VALUEMAPLABELRENDERER"?this.addValueMapLabelRenderer(c,b):c.tagName=="SIMPLELABELRENDERER"?this.addSimpleLabelRenderer(c,b):c.tagName=="SCALEDEPENDENTRENDERER"&&this.addScaleDependentRenderer(c,b)}},addScaleDependentRenderer:function(a,b){(typeof b.lower==
"string"||typeof b.lower=="number")&&a.setAttribute("lower",b.lower);(typeof b.upper=="string"||typeof b.upper=="number")&&a.setAttribute("upper",b.upper);this.addRenderer(a,b.renderer)},addValueMapLabelRenderer:function(a,b){a.setAttribute("lookupfield",b.lookupfield);a.setAttribute("labelfield",b.labelfield);if(typeof b.exacts=="object")for(var c=0,d=b.exacts.length;c<d;c++){var e=b.exacts[c],f=this.createElementNS("","EXACT");typeof e.value=="string"&&f.setAttribute("value",e.value);typeof e.label==
"string"&&f.setAttribute("label",e.label);typeof e.method=="string"&&f.setAttribute("method",e.method);a.appendChild(f);if(typeof e.symbol=="object"){var g=null;e.symbol.type=="text"&&(g=this.createElementNS("","TEXTSYMBOL"));if(g!=null){for(var h=this.fontStyleKeys,i=0,j=h.length;i<j;i++){var k=h[i];e.symbol[k]&&g.setAttribute(k,e.symbol[k])}f.appendChild(g)}}}},addValueMapRenderer:function(a,b){a.setAttribute("lookupfield",b.lookupfield);if(typeof b.ranges=="object")for(var c=0,d=b.ranges.length;c<
d;c++){var e=b.ranges[c],f=this.createElementNS("","RANGE");f.setAttribute("lower",e.lower);f.setAttribute("upper",e.upper);a.appendChild(f);if(typeof e.symbol=="object"){var g=null;e.symbol.type=="simplepolygon"&&(g=this.createElementNS("","SIMPLEPOLYGONSYMBOL"));g!=null&&(typeof e.symbol.boundarycolor=="string"&&g.setAttribute("boundarycolor",e.symbol.boundarycolor),typeof e.symbol.fillcolor=="string"&&g.setAttribute("fillcolor",e.symbol.fillcolor),typeof e.symbol.filltransparency=="number"&&g.setAttribute("filltransparency",
e.symbol.filltransparency),f.appendChild(g))}}else if(typeof b.exacts=="object"){c=0;for(d=b.exacts.length;c<d;c++)e=b.exacts[c],f=this.createElementNS("","EXACT"),typeof e.value=="string"&&f.setAttribute("value",e.value),typeof e.label=="string"&&f.setAttribute("label",e.label),typeof e.method=="string"&&f.setAttribute("method",e.method),a.appendChild(f),typeof e.symbol=="object"&&(g=null,e.symbol.type=="simplemarker"&&(g=this.createElementNS("","SIMPLEMARKERSYMBOL")),g!=null&&(typeof e.symbol.antialiasing==
"string"&&g.setAttribute("antialiasing",e.symbol.antialiasing),typeof e.symbol.color=="string"&&g.setAttribute("color",e.symbol.color),typeof e.symbol.outline=="string"&&g.setAttribute("outline",e.symbol.outline),typeof e.symbol.overlap=="string"&&g.setAttribute("overlap",e.symbol.overlap),typeof e.symbol.shadow=="string"&&g.setAttribute("shadow",e.symbol.shadow),typeof e.symbol.transparency=="number"&&g.setAttribute("transparency",e.symbol.transparency),typeof e.symbol.usecentroid=="string"&&g.setAttribute("usecentroid",
e.symbol.usecentroid),typeof e.symbol.width=="number"&&g.setAttribute("width",e.symbol.width),f.appendChild(g)))}},addSimpleLabelRenderer:function(a,b){a.setAttribute("field",b.field);for(var c="featureweight,howmanylabels,labelbufferratio,labelpriorities,labelweight,linelabelposition,rotationalangles".split(","),d=0,e=c.length;d<e;d++){var f=c[d];b[f]&&a.setAttribute(f,b[f])}if(b.symbol.type=="text"){var g=b.symbol,h=this.createElementNS("","TEXTSYMBOL");a.appendChild(h);c=this.fontStyleKeys;d=0;
for(e=c.length;d<e;d++)f=c[d],g[f]&&h.setAttribute(f,b[f])}},writePolygonGeometry:function(a){if(!(a instanceof OpenLayers.Geometry.Polygon))throw{message:"Cannot write polygon geometry to ArcXML with an "+a.CLASS_NAME+" object.",geometry:a};for(var b=this.createElementNS("","POLYGON"),c=0,d=a.components.length;c<d;c++){for(var e=a.components[c],f=this.createElementNS("","RING"),g=0,h=e.components.length;g<h;g++){var i=e.components[g],j=this.createElementNS("","POINT");j.setAttribute("x",i.x);j.setAttribute("y",
i.y);f.appendChild(j)}b.appendChild(f)}return b},parseResponse:function(a){typeof a=="string"&&(a=(new OpenLayers.Format.XML).read(a));var b=new OpenLayers.Format.ArcXML.Response,c=a.getElementsByTagName("ERROR");if(c!=null&&c.length>0)b.error=this.getChildValue(c,"Unknown error.");else{c=a.getElementsByTagName("RESPONSE");if(c==null||c.length==0)return b.error="No RESPONSE tag found in ArcXML response.",b;var d=c[0].firstChild.nodeName;if(d=="#text")d=c[0].firstChild.nextSibling.nodeName;if(d=="IMAGE")c=
a.getElementsByTagName("ENVELOPE"),a=a.getElementsByTagName("OUTPUT"),c==null||c.length==0?b.error="No ENVELOPE tag found in ArcXML response.":a==null||a.length==0?b.error="No OUTPUT tag found in ArcXML response.":(c=this.parseAttributes(c[0]),d=this.parseAttributes(a[0]),b.image=typeof d.type=="string"?{envelope:c,output:{type:d.type,data:this.getChildValue(a[0])}}:{envelope:c,output:d});else if(d=="FEATURES"){if(a=c[0].getElementsByTagName("FEATURES"),c=a[0].getElementsByTagName("FEATURECOUNT"),
b.features.featurecount=c[0].getAttribute("count"),b.features.featurecount>0){c=a[0].getElementsByTagName("ENVELOPE");b.features.envelope=this.parseAttributes(c[0],"number");a=a[0].getElementsByTagName("FEATURE");for(c=0;c<a.length;c++){for(var d=new OpenLayers.Feature.Vector,e=a[c].getElementsByTagName("FIELD"),f=0;f<e.length;f++){var g=e[f].getAttribute("name"),h=e[f].getAttribute("value");d.attributes[g]=h}e=a[c].getElementsByTagName("POLYGON");if(e.length>0){e=e[0].getElementsByTagName("RING");
f=[];for(g=0;g<e.length;g++){h=[];h.push(this.parsePointGeometry(e[g]));for(var i=e[g].getElementsByTagName("HOLE"),j=0;j<i.length;j++)h.push(this.parsePointGeometry(i[j]));f.push(new OpenLayers.Geometry.Polygon(h))}d.geometry=f.length==1?f[0]:new OpenLayers.Geometry.MultiPolygon(f)}b.features.feature.push(d)}}}else b.error="Unidentified response type."}return b},parseAttributes:function(a,b){for(var c={},d=0;d<a.attributes.length;d++)c[a.attributes[d].nodeName]=b=="number"?parseFloat(a.attributes[d].nodeValue):
a.attributes[d].nodeValue;return c},parsePointGeometry:function(a){var b=[],c=a.getElementsByTagName("COORDS");if(c.length>0){a=this.getChildValue(c[0]);a=a.split(/;/);for(c=0;c<a.length;c++){var d=a[c].split(/ /);b.push(new OpenLayers.Geometry.Point(parseFloat(d[0]),parseFloat(d[1])))}}else if(a=a.getElementsByTagName("POINT"),a.length>0)for(c=0;c<a.length;c++)b.push(new OpenLayers.Geometry.Point(parseFloat(a[c].getAttribute("x")),parseFloat(a[c].getAttribute("y"))));return new OpenLayers.Geometry.LinearRing(b)},
CLASS_NAME:"OpenLayers.Format.ArcXML"});
OpenLayers.Format.ArcXML.Request=OpenLayers.Class({initialize:function(){return OpenLayers.Util.extend(this,{get_image:{properties:{background:null,draw:true,envelope:{minx:0,miny:0,maxx:0,maxy:0},featurecoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},filtercoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},imagesize:{height:0,width:0,dpi:96,printheight:0,printwidth:0,scalesymbols:false},layerlist:[],output:{baseurl:"",legendbaseurl:"",legendname:"",legendpath:"",
legendurl:"",name:"",path:"",type:"jpg",url:""}}},get_feature:{layer:"",query:{isspatial:false,featurecoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},filtercoordsys:{id:0,string:"",datumtransformid:0,datumtransformstring:""},buffer:0,where:"",spatialfilter:{relation:"envelope_intersection",envelope:null}}},environment:{separators:{cs:" ",ts:";"}},layer:[],workspaces:[]})},CLASS_NAME:"OpenLayers.Format.ArcXML.Request"});
OpenLayers.Format.ArcXML.Response=OpenLayers.Class({initialize:function(){return OpenLayers.Util.extend(this,{image:{envelope:null,output:""},features:{featurecount:0,envelope:null,feature:[]},error:""})},CLASS_NAME:"OpenLayers.Format.ArcXML.Response"});
OpenLayers.Request={DEFAULT_CONFIG:{method:"GET",url:window.location.href,async:true,user:void 0,password:void 0,params:null,proxy:OpenLayers.ProxyHost,headers:{},data:null,callback:function(){},success:null,failure:null,scope:null},URL_SPLIT_REGEX:/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/,events:new OpenLayers.Events(this,null,["complete","success","failure"]),issue:function(a){var b=OpenLayers.Util.extend(this.DEFAULT_CONFIG,{proxy:OpenLayers.ProxyHost}),a=OpenLayers.Util.applyDefaults(a,
b),c=new OpenLayers.Request.XMLHttpRequest,d=OpenLayers.Util.urlAppend(a.url,OpenLayers.Util.getParameterString(a.params||{})),b=d.indexOf("http")!=0,e=!b&&d.match(this.URL_SPLIT_REGEX);if(e){var f=window.location,b=e[1]==f.protocol&&e[3]==f.hostname,e=e[4],f=f.port;if(e!=80&&e!=""||f!="80"&&f!="")b=b&&e==f}b||(a.proxy?d=typeof a.proxy=="function"?a.proxy(d):a.proxy+encodeURIComponent(d):OpenLayers.Console.warn(OpenLayers.i18n("proxyNeeded"),{url:d}));c.open(a.method,d,a.async,a.user,a.password);
for(var g in a.headers)c.setRequestHeader(g,a.headers[g]);var h=this.events,i=this;c.onreadystatechange=function(){c.readyState==OpenLayers.Request.XMLHttpRequest.DONE&&h.triggerEvent("complete",{request:c,config:a,requestUrl:d})!==false&&i.runCallbacks({request:c,config:a,requestUrl:d})};a.async===false?c.send(a.data):window.setTimeout(function(){c.readyState!==0&&c.send(a.data)},0);return c},runCallbacks:function(a){var b=a.request,c=a.config,d=c.scope?OpenLayers.Function.bind(c.callback,c.scope):
c.callback,e;c.success&&(e=c.scope?OpenLayers.Function.bind(c.success,c.scope):c.success);var f;c.failure&&(f=c.scope?OpenLayers.Function.bind(c.failure,c.scope):c.failure);if(OpenLayers.Util.createUrlObject(c.url).protocol=="file:"&&b.responseText)b.status=200;d(b);if(!b.status||b.status>=200&&b.status<300)this.events.triggerEvent("success",a),e&&e(b);if(b.status&&(b.status<200||b.status>=300))this.events.triggerEvent("failure",a),f&&f(b)},GET:function(a){a=OpenLayers.Util.extend(a,{method:"GET"});
return OpenLayers.Request.issue(a)},POST:function(a){a=OpenLayers.Util.extend(a,{method:"POST"});a.headers=a.headers?a.headers:{};"CONTENT-TYPE"in OpenLayers.Util.upperCaseObject(a.headers)||(a.headers["Content-Type"]="application/xml");return OpenLayers.Request.issue(a)},PUT:function(a){a=OpenLayers.Util.extend(a,{method:"PUT"});a.headers=a.headers?a.headers:{};"CONTENT-TYPE"in OpenLayers.Util.upperCaseObject(a.headers)||(a.headers["Content-Type"]="application/xml");return OpenLayers.Request.issue(a)},
DELETE:function(a){a=OpenLayers.Util.extend(a,{method:"DELETE"});return OpenLayers.Request.issue(a)},HEAD:function(a){a=OpenLayers.Util.extend(a,{method:"HEAD"});return OpenLayers.Request.issue(a)},OPTIONS:function(a){a=OpenLayers.Util.extend(a,{method:"OPTIONS"});return OpenLayers.Request.issue(a)}};
OpenLayers.Layer.ArcIMS=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{ClientVersion:"9.2",ServiceName:""},tileSize:null,featureCoordSys:"4326",filterCoordSys:"4326",layers:null,async:true,name:"ArcIMS",isBaseLayer:true,DEFAULT_OPTIONS:{tileSize:new OpenLayers.Size(512,512),featureCoordSys:"4326",filterCoordSys:"4326",layers:null,isBaseLayer:true,async:true,name:"ArcIMS"},initialize:function(a,b,c){this.tileSize=new OpenLayers.Size(512,512);this.params=OpenLayers.Util.applyDefaults({ServiceName:c.serviceName},
this.DEFAULT_PARAMS);this.options=OpenLayers.Util.applyDefaults(c,this.DEFAULT_OPTIONS);OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a,b,this.params,c]);if(this.transparent){if(!this.isBaseLayer)this.isBaseLayer=false;if(this.format=="image/jpeg")this.format=OpenLayers.Util.alphaHack()?"image/gif":"image/png"}if(this.options.layers===null)this.options.layers=[]},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)},getURL:function(a){var b="",a=this.adjustBounds(a),
a=new OpenLayers.Format.ArcXML(OpenLayers.Util.extend(this.options,{requesttype:"image",envelope:a.toArray(),tileSize:this.tileSize})),a=new OpenLayers.Request.POST({url:this.getFullRequestString(),data:a.write(),async:false});if(a!=null){b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;b=this.getUrlOrImage((new OpenLayers.Format.ArcXML).read(b).image.output)}return b},getURLasync:function(a,b,c,d){a=this.adjustBounds(a);a=new OpenLayers.Format.ArcXML(OpenLayers.Util.extend(this.options,
{requesttype:"image",envelope:a.toArray(),tileSize:this.tileSize}));OpenLayers.Request.POST({url:this.getFullRequestString(),async:true,data:a.write(),callback:function(a){var f=a.responseXML;if(!f||!f.documentElement)f=a.responseText;a=(new OpenLayers.Format.ArcXML).read(f);b[c]=this.getUrlOrImage(a.image.output);d.apply(b)},scope:this})},getUrlOrImage:function(a){var b="";a.url?b=a.url:a.data&&(b="data:image/"+a.type+";base64,"+a.data);return b},setLayerQuery:function(a,b){for(var c=0;c<this.options.layers.length;c++)if(a==
this.options.layers[c].id){this.options.layers[c].query=b;return}this.options.layers.push({id:a,visible:true,query:b})},getFeatureInfo:function(a,b,c){var d=c.buffer||1,e=c.callback||function(){},f=c.scope||window,g={};OpenLayers.Util.extend(g,this.options);g.requesttype="feature";if(a instanceof OpenLayers.LonLat)g.polygon=null,g.envelope=[a.lon-d,a.lat-d,a.lon+d,a.lat+d];else if(a instanceof OpenLayers.Geometry.Polygon)g.envelope=null,g.polygon=a;var h=new OpenLayers.Format.ArcXML(g);OpenLayers.Util.extend(h.request.get_feature,
c);h.request.get_feature.layer=b.id;typeof b.query.accuracy=="number"?h.request.get_feature.query.accuracy=b.query.accuracy:(a=this.map.getCenter(),c=this.map.getViewPortPxFromLonLat(a),c.x++,c=this.map.getLonLatFromPixel(c),h.request.get_feature.query.accuracy=c.lon-a.lon);h.request.get_feature.query.where=b.query.where;h.request.get_feature.query.spatialfilter.relation="area_intersection";OpenLayers.Request.POST({url:this.getFullRequestString({CustomService:"Query"}),data:h.write(),callback:function(a){a=
h.parseResponse(a.responseText);h.iserror()?e.call(f,null):e.call(f,a.features)}})},clone:function(a){a==null&&(a=new OpenLayers.Layer.ArcIMS(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},CLASS_NAME:"OpenLayers.Layer.ArcIMS"});
OpenLayers.Format.WMSGetFeatureInfo=OpenLayers.Class(OpenLayers.Format.XML,{layerIdentifier:"_layer",featureIdentifier:"_feature",regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},gmlFormat:null,read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=a.documentElement;if(b)var c=this["read_"+b.nodeName],a=c?c.call(this,b):(new OpenLayers.Format.GML(this.options?this.options:{})).read(a);return a},read_msGMLOutput:function(a){var b=
[];if(a=this.getSiblingNodesByTagCriteria(a,this.layerIdentifier))for(var c=0,d=a.length;c<d;++c){var e=a[c],f=e.nodeName;e.prefix&&(f=f.split(":")[1]);f=f.replace(this.layerIdentifier,"");if(e=this.getSiblingNodesByTagCriteria(e,this.featureIdentifier))for(var g=0;g<e.length;g++){var h=e[g],i=this.parseGeometry(h),h=this.parseAttributes(h),h=new OpenLayers.Feature.Vector(i.geometry,h,null);h.bounds=i.bounds;h.type=f;b.push(h)}}return b},read_FeatureInfoResponse:function(a){for(var b=[],a=this.getElementsByTagNameNS(a,
"*","FIELDS"),c=0,d=a.length;c<d;c++){var e=a[c],f={},g,h=e.attributes.length;if(h>0)for(g=0;g<h;g++){var i=e.attributes[g];f[i.nodeName]=i.nodeValue}else{e=e.childNodes;for(g=0,h=e.length;g<h;++g)i=e[g],i.nodeType!=3&&(f[i.getAttribute("name")]=i.getAttribute("value"))}b.push(new OpenLayers.Feature.Vector(null,f,null))}return b},getSiblingNodesByTagCriteria:function(a,b){var c=[],d,e,f,g;if(a&&a.hasChildNodes()){d=a.childNodes;f=d.length;for(var h=0;h<f;h++){for(g=d[h];g&&g.nodeType!=1;)g=g.nextSibling,
h++;e=g?g.nodeName:"";e.length>0&&e.indexOf(b)>-1?c.push(g):(e=this.getSiblingNodesByTagCriteria(g,b),e.length>0&&(c.length==0?c=e:c.push(e)))}}return c},parseAttributes:function(a){var b={};if(a.nodeType==1)for(var a=a.childNodes,c=a.length,d=0;d<c;++d){var e=a[d];if(e.nodeType==1){var f=e.childNodes,e=e.prefix?e.nodeName.split(":")[1]:e.nodeName;if(f.length==0)b[e]=null;else if(f.length==1&&(f=f[0],f.nodeType==3||f.nodeType==4))f=f.nodeValue.replace(this.regExes.trimSpace,""),b[e]=f}}return b},
parseGeometry:function(a){if(!this.gmlFormat)this.gmlFormat=new OpenLayers.Format.GML;var a=this.gmlFormat.parseFeature(a),b,c=null;a&&(b=a.geometry&&a.geometry.clone(),c=a.bounds&&a.bounds.clone(),a.destroy());return{geometry:b,bounds:c}},CLASS_NAME:"OpenLayers.Format.WMSGetFeatureInfo"});
OpenLayers.Format.OWSCommon.v1_1_0=OpenLayers.Class(OpenLayers.Format.OWSCommon.v1,{namespaces:{ows:"http://www.opengis.net/ows/1.1",xlink:"http://www.w3.org/1999/xlink"},readers:{ows:OpenLayers.Util.applyDefaults({ExceptionReport:function(a,b){b.exceptionReport={version:a.getAttribute("version"),language:a.getAttribute("xml:lang"),exceptions:[]};this.readChildNodes(a,b.exceptionReport)},AllowedValues:function(a,b){b.allowedValues={};this.readChildNodes(a,b.allowedValues)},AnyValue:function(a,b){b.anyValue=
true},DataType:function(a,b){b.dataType=this.getChildValue(a)},Range:function(a,b){b.range={};this.readChildNodes(a,b.range)},MinimumValue:function(a,b){b.minValue=this.getChildValue(a)},MaximumValue:function(a,b){b.maxValue=this.getChildValue(a)},Identifier:function(a,b){b.identifier=this.getChildValue(a)},SupportedCRS:function(a,b){b.supportedCRS=this.getChildValue(a)}},OpenLayers.Format.OWSCommon.v1.prototype.readers.ows)},writers:{ows:OpenLayers.Util.applyDefaults({Range:function(a){var b=this.createElementNSPlus("ows:Range",
{attributes:{"ows:rangeClosure":a.closure}});this.writeNode("ows:MinimumValue",a.minValue,b);this.writeNode("ows:MaximumValue",a.maxValue,b);return b},MinimumValue:function(a){return this.createElementNSPlus("ows:MinimumValue",{value:a})},MaximumValue:function(a){return this.createElementNSPlus("ows:MaximumValue",{value:a})},Value:function(a){return this.createElementNSPlus("ows:Value",{value:a})}},OpenLayers.Format.OWSCommon.v1.prototype.writers.ows)},CLASS_NAME:"OpenLayers.Format.OWSCommon.v1_1_0"});
OpenLayers.Format.WCSGetCoverage=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",wcs:"http://www.opengis.net/wcs/1.1",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},VERSION:"1.1.2",schemaLocation:"http://www.opengis.net/wcs/1.1 http://schemas.opengis.net/wcs/1.1/wcsGetCoverage.xsd",write:function(a){a=this.writeNode("wcs:GetCoverage",
a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{wcs:{GetCoverage:function(a){var b=this.createElementNSPlus("wcs:GetCoverage",{attributes:{version:a.version||this.VERSION,service:"WCS"}});this.writeNode("ows:Identifier",a.identifier,b);this.writeNode("wcs:DomainSubset",a.domainSubset,b);this.writeNode("wcs:Output",a.output,b);return b},DomainSubset:function(a){var b=this.createElementNSPlus("wcs:DomainSubset",
{});this.writeNode("ows:BoundingBox",a.boundingBox,b);a.temporalSubset&&this.writeNode("wcs:TemporalSubset",a.temporalSubset,b);return b},TemporalSubset:function(a){for(var b=this.createElementNSPlus("wcs:TemporalSubset",{}),c=0,d=a.timePeriods.length;c<d;++c)this.writeNode("wcs:TimePeriod",a.timePeriods[c],b);return b},TimePeriod:function(a){var b=this.createElementNSPlus("wcs:TimePeriod",{});this.writeNode("wcs:BeginPosition",a.begin,b);this.writeNode("wcs:EndPosition",a.end,b);a.resolution&&this.writeNode("wcs:TimeResolution",
a.resolution,b);return b},BeginPosition:function(a){return this.createElementNSPlus("wcs:BeginPosition",{value:a})},EndPosition:function(a){return this.createElementNSPlus("wcs:EndPosition",{value:a})},TimeResolution:function(a){return this.createElementNSPlus("wcs:TimeResolution",{value:a})},Output:function(a){var b=this.createElementNSPlus("wcs:Output",{attributes:{format:a.format,store:a.store}});a.gridCRS&&this.writeNode("wcs:GridCRS",a.gridCRS,b);return b},GridCRS:function(a){var b=this.createElementNSPlus("wcs:GridCRS",
{});this.writeNode("wcs:GridBaseCRS",a.baseCRS,b);a.type&&this.writeNode("wcs:GridType",a.type,b);a.origin&&this.writeNode("wcs:GridOrigin",a.origin,b);this.writeNode("wcs:GridOffsets",a.offsets,b);a.CS&&this.writeNode("wcs:GridCS",a.CS,b);return b},GridBaseCRS:function(a){return this.createElementNSPlus("wcs:GridBaseCRS",{value:a})},GridOrigin:function(a){return this.createElementNSPlus("wcs:GridOrigin",{value:a})},GridType:function(a){return this.createElementNSPlus("wcs:GridType",{value:a})},GridOffsets:function(a){return this.createElementNSPlus("wcs:GridOffsets",
{value:a})},GridCS:function(a){return this.createElementNSPlus("wcs:GridCS",{value:a})}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows},CLASS_NAME:"OpenLayers.Format.WCSGetCoverage"});
OpenLayers.Format.WPSExecute=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",gml:"http://www.opengis.net/gml",wps:"http://www.opengis.net/wps/1.0.0",wfs:"http://www.opengis.net/wfs",ogc:"http://www.opengis.net/ogc",wcs:"http://www.opengis.net/wcs",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd",
schemaLocationAttr:function(){},write:function(a){var b;window.ActiveXObject?this.xmldom=b=new ActiveXObject("Microsoft.XMLDOM"):b=document.implementation.createDocument("","",null);a=this.writeNode("wps:Execute",a,b);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{wps:{Execute:function(a){var b=this.createElementNSPlus("wps:Execute",{attributes:{version:this.VERSION,service:"WPS"}});this.writeNode("ows:Identifier",
a.identifier,b);this.writeNode("wps:DataInputs",a.dataInputs,b);this.writeNode("wps:ResponseForm",a.responseForm,b);return b},ResponseForm:function(a){var b=this.createElementNSPlus("wps:ResponseForm",{});a.rawDataOutput&&this.writeNode("wps:RawDataOutput",a.rawDataOutput,b);a.responseDocument&&this.writeNode("wps:ResponseDocument",a.responseDocument,b);return b},ResponseDocument:function(a){var b=this.createElementNSPlus("wps:ResponseDocument",{attributes:{storeExecuteResponse:a.storeExecuteResponse,
lineage:a.lineage,status:a.status}});a.output&&this.writeNode("wps:Output",a.output,b);return b},Output:function(a){var b=this.createElementNSPlus("wps:Output",{attributes:{asReference:a.asReference}});this.writeNode("ows:Identifier",a.identifier,b);this.writeNode("ows:Title",a.title,b);this.writeNode("ows:Abstract",a["abstract"],b);return b},RawDataOutput:function(a){var b=this.createElementNSPlus("wps:RawDataOutput",{attributes:{mimeType:a.mimeType}});this.writeNode("ows:Identifier",a.identifier,
b);return b},DataInputs:function(a){for(var b=this.createElementNSPlus("wps:DataInputs",{}),c=0,d=a.length;c<d;++c)this.writeNode("wps:Input",a[c],b);return b},Input:function(a){var b=this.createElementNSPlus("wps:Input",{});this.writeNode("ows:Identifier",a.identifier,b);a.title&&this.writeNode("ows:Title",a.title,b);a.data&&this.writeNode("wps:Data",a.data,b);a.reference&&this.writeNode("wps:Reference",a.reference,b);return b},Data:function(a){var b=this.createElementNSPlus("wps:Data",{});a.literalData?
this.writeNode("wps:LiteralData",a.literalData,b):a.complexData&&this.writeNode("wps:ComplexData",a.complexData,b);return b},LiteralData:function(a){return this.createElementNSPlus("wps:LiteralData",{attributes:{uom:a.uom},value:a.value})},ComplexData:function(a){var b=this.createElementNSPlus("wps:ComplexData",{attributes:{mimeType:a.mimeType,encoding:a.encoding,schema:a.schema}});b.appendChild(this.getXMLDoc().createCDATASection(a.value));return b},Reference:function(a){var b=this.createElementNSPlus("wps:Reference",
{attributes:{mimeType:a.mimeType,"xlink:href":a.href,method:a.method,encoding:a.encoding,schema:a.schema}});a.body&&this.writeNode("wps:Body",a.body,b);return b},Body:function(a){var b=this.createElementNSPlus("wps:Body",{});a.wcs?this.writeNode("wcs:GetCoverage",a.wcs,b):a.wfs?(this.featureType=a.wfs.featureType,this.version=a.wfs.version,this.writeNode("wfs:GetFeature",a.wfs,b)):this.writeNode("wps:Execute",a,b);return b}},wcs:OpenLayers.Format.WCSGetCoverage.prototype.writers.wcs,wfs:OpenLayers.Format.WFST.v1_1_0.prototype.writers.wfs,
ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.writers.ows},CLASS_NAME:"OpenLayers.Format.WPSExecute"});
OpenLayers.Strategy=OpenLayers.Class({layer:null,options:null,active:null,autoActivate:true,autoDestroy:true,initialize:function(a){OpenLayers.Util.extend(this,a);this.options=a;this.active=false},destroy:function(){this.deactivate();this.options=this.layer=null},setLayer:function(a){this.layer=a},activate:function(){return!this.active?this.active=true:false},deactivate:function(){return this.active?(this.active=false,true):false},CLASS_NAME:"OpenLayers.Strategy"});
OpenLayers.Strategy.Filter=OpenLayers.Class(OpenLayers.Strategy,{filter:null,cache:null,caching:false,activate:function(){var a=OpenLayers.Strategy.prototype.activate.apply(this,arguments);if(a)this.cache=[],this.layer.events.on({beforefeaturesadded:this.handleAdd,beforefeaturesremoved:this.handleRemove,scope:this});return a},deactivate:function(){this.cache=null;this.layer&&this.layer.events&&this.layer.events.un({beforefeaturesadded:this.handleAdd,beforefeaturesremoved:this.handleRemove,scope:this});
return OpenLayers.Strategy.prototype.deactivate.apply(this,arguments)},handleAdd:function(a){if(!this.caching&&this.filter){var b=a.features;a.features=[];for(var c,d=0,e=b.length;d<e;++d)c=b[d],this.filter.evaluate(c)?a.features.push(c):this.cache.push(c)}},handleRemove:function(){if(!this.caching)this.cache=[]},setFilter:function(a){this.filter=a;a=this.cache;this.cache=[];this.handleAdd({features:this.layer.features});if(this.cache.length>0)this.caching=true,this.layer.removeFeatures(this.cache.slice()),
this.caching=false;if(a.length>0&&(a={features:a},this.handleAdd(a),a.features.length>0))this.caching=true,this.layer.addFeatures(a.features),this.caching=false},CLASS_NAME:"OpenLayers.Strategy.Filter"});OpenLayers.Format.XLS=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.0",stringifyOutput:true,CLASS_NAME:"OpenLayers.Format.XLS"});
OpenLayers.Format.XLS.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xls:"http://www.opengis.net/xls",gml:"http://www.opengis.net/gml",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},xy:true,defaultPrefix:"xls",schemaLocation:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a,b){OpenLayers.Util.applyDefaults(b,this.options);var c={};this.readChildNodes(a,
c);return c},readers:{xls:{XLS:function(a,b){b.version=a.getAttribute("version");this.readChildNodes(a,b)},Response:function(a,b){this.readChildNodes(a,b)},GeocodeResponse:function(a,b){b.responseLists=[];this.readChildNodes(a,b)},GeocodeResponseList:function(a,b){var c={features:[],numberOfGeocodedAddresses:parseInt(a.getAttribute("numberOfGeocodedAddresses"))};b.responseLists.push(c);this.readChildNodes(a,c)},GeocodedAddress:function(a,b){var c=new OpenLayers.Feature.Vector;b.features.push(c);this.readChildNodes(a,
c);c.geometry=c.components[0]},GeocodeMatchCode:function(a,b){b.attributes.matchCode={accuracy:parseFloat(a.getAttribute("accuracy")),matchType:a.getAttribute("matchType")}},Address:function(a,b){var c={countryCode:a.getAttribute("countryCode"),addressee:a.getAttribute("addressee"),street:[],place:[]};b.attributes.address=c;this.readChildNodes(a,c)},freeFormAddress:function(a,b){b.freeFormAddress=this.getChildValue(a)},StreetAddress:function(a,b){this.readChildNodes(a,b)},Building:function(a,b){b.building=
{number:a.getAttribute("number"),subdivision:a.getAttribute("subdivision"),buildingName:a.getAttribute("buildingName")}},Street:function(a,b){b.street.push(this.getChildValue(a))},Place:function(a,b){b.place[a.getAttribute("type")]=this.getChildValue(a)},PostalCode:function(a,b){b.postalCode=this.getChildValue(a)}},gml:OpenLayers.Format.GML.v3.prototype.readers.gml},write:function(a){return this.writers.xls.XLS.apply(this,[a])},writers:{xls:{XLS:function(a){var b=this.createElementNSPlus("xls:XLS",
{attributes:{version:this.VERSION,"xsi:schemaLocation":this.schemaLocation}});this.writeNode("RequestHeader",a.header,b);this.writeNode("Request",a,b);return b},RequestHeader:function(){return this.createElementNSPlus("xls:RequestHeader")},Request:function(a){var b=this.createElementNSPlus("xls:Request",{attributes:{methodName:"GeocodeRequest",requestID:a.requestID||"",version:this.VERSION}});this.writeNode("GeocodeRequest",a.addresses,b);return b},GeocodeRequest:function(a){for(var b=this.createElementNSPlus("xls:GeocodeRequest"),
c=0,d=a.length;c<d;c++)this.writeNode("Address",a[c],b);return b},Address:function(a){var b=this.createElementNSPlus("xls:Address",{attributes:{countryCode:a.countryCode}});a.freeFormAddress?this.writeNode("freeFormAddess",a.freeFormAddress,b):(a.street&&this.writeNode("StreetAddress",a,b),a.municipality&&this.writeNode("Municipality",a.municipality,b),a.countrySubdivision&&this.writeNode("CountrySubdivision",a.countrySubdivision,b),a.postalCode&&this.writeNode("PostalCode",a.postalCode,b));return b},
freeFormAddress:function(a){return this.createElementNSPlus("freeFormAddress",{value:a})},StreetAddress:function(a){var b=this.createElementNSPlus("xls:StreetAddress");a.building&&this.writeNode(b,"Building",a.building);a=a.street;OpenLayers.Util.isArray(a)||(a=[a]);for(var c=0,d=a.length;c<d;c++)this.writeNode("Street",a[c],b);return b},Building:function(a){return this.createElementNSPlus("xls:Building",{attributes:{number:a.number,subdivision:a.subdivision,buildingName:a.buildingName}})},Street:function(a){return this.createElementNSPlus("xls:Street",
{value:a})},Municipality:function(a){return this.createElementNSPlus("xls:Place",{attributes:{type:"Municipality"},value:a})},CountrySubdivision:function(a){return this.createElementNSPlus("xls:Place",{attributes:{type:"CountrySubdivision"},value:a})},PostalCode:function(a){return this.createElementNSPlus("xls:PostalCode",{value:a})}}},CLASS_NAME:"OpenLayers.Format.XLS.v1"});
OpenLayers.Format.XLS.v1_1_0=OpenLayers.Class(OpenLayers.Format.XLS.v1,{VERSION:"1.1",schemaLocation:"http://www.opengis.net/xls http://schemas.opengis.net/ols/1.1.0/LocationUtilityService.xsd",initialize:function(a){OpenLayers.Format.XLS.v1.prototype.initialize.apply(this,[a])},CLASS_NAME:"OpenLayers.Format.XLS.v1_1_0"});OpenLayers.Format.XLS.v1_1=OpenLayers.Format.XLS.v1_1_0;
OpenLayers.Layer.Image=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:true,url:null,extent:null,size:null,tile:null,aspectRatio:null,initialize:function(a,b,c,d,e){this.url=b;this.maxExtent=this.extent=c;this.size=d;OpenLayers.Layer.prototype.initialize.apply(this,[a,e]);this.aspectRatio=this.extent.getHeight()/this.size.h/(this.extent.getWidth()/this.size.w)},destroy:function(){if(this.tile)this.removeTileMonitoringHooks(this.tile),this.tile.destroy(),this.tile=null;OpenLayers.Layer.prototype.destroy.apply(this,
arguments)},clone:function(a){a==null&&(a=new OpenLayers.Layer.Image(this.name,this.url,this.extent,this.size,this.getOptions()));return a=OpenLayers.Layer.prototype.clone.apply(this,[a])},setMap:function(a){if(this.options.maxResolution==null)this.options.maxResolution=this.aspectRatio*this.extent.getWidth()/this.size.w;OpenLayers.Layer.prototype.setMap.apply(this,arguments)},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);var d=this.tile==null;if(b||d){this.setTileSize();
var e=this.map.getLayerPxFromLonLat(new OpenLayers.LonLat(this.extent.left,this.extent.top));d?(this.tile=new OpenLayers.Tile.Image(this,e,this.extent,null,this.tileSize),this.addTileMonitoringHooks(this.tile)):(this.tile.size=this.tileSize.clone(),this.tile.position=e.clone());this.tile.draw()}},setTileSize:function(){var a=this.extent.getWidth()/this.map.getResolution(),b=this.extent.getHeight()/this.map.getResolution();this.tileSize=new OpenLayers.Size(a,b)},addTileMonitoringHooks:function(a){a.onLoadStart=
function(){this.events.triggerEvent("loadstart")};a.events.register("loadstart",this,a.onLoadStart);a.onLoadEnd=function(){this.events.triggerEvent("loadend")};a.events.register("loadend",this,a.onLoadEnd);a.events.register("unload",this,a.onLoadEnd)},removeTileMonitoringHooks:function(a){a.unload();a.events.un({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,scope:this})},setUrl:function(a){this.url=a;this.tile.draw()},getURL:function(){return this.url},CLASS_NAME:"OpenLayers.Layer.Image"});
OpenLayers.Strategy.Save=OpenLayers.Class(OpenLayers.Strategy,{EVENT_TYPES:["start","success","fail"],events:null,auto:false,timer:null,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a]);this.events=new OpenLayers.Events(this,null,this.EVENT_TYPES)},activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a&&this.auto)if(typeof this.auto==="number")this.timer=window.setInterval(OpenLayers.Function.bind(this.save,this),this.auto*1E3);else this.layer.events.on({featureadded:this.triggerSave,
afterfeaturemodified:this.triggerSave,scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.auto&&(typeof this.auto==="number"?window.clearInterval(this.timer):this.layer.events.un({featureadded:this.triggerSave,afterfeaturemodified:this.triggerSave,scope:this}));return a},triggerSave:function(a){var b=a.feature;(b.state===OpenLayers.State.INSERT||b.state===OpenLayers.State.UPDATE||b.state===OpenLayers.State.DELETE)&&this.save([a.feature])},
save:function(a){if(!a)a=this.layer.features;this.events.triggerEvent("start",{features:a});var b=this.layer.projection,c=this.layer.map.getProjectionObject();if(!c.equals(b)){for(var d=a.length,e=Array(d),f,g,h=0;h<d;++h){f=a[h];g=f.clone();g.fid=f.fid;g.state=f.state;if(f.url)g.url=f.url;g._original=f;g.geometry.transform(c,b);e[h]=g}a=e}this.layer.protocol.commit(a,{callback:this.onCommit,scope:this})},onCommit:function(a){var b={response:a};if(a.success()){for(var c=a.reqFeatures,d,e=[],f=a.insertIds||
[],g=0,h=0,i=c.length;h<i;++h)if(d=c[h],d=d._original||d,a=d.state){if(a==OpenLayers.State.DELETE)e.push(d);else if(a==OpenLayers.State.INSERT)d.fid=f[g],++g;d.state=null}e.length>0&&this.layer.destroyFeatures(e);this.events.triggerEvent("success",b)}else this.events.triggerEvent("fail",b)},CLASS_NAME:"OpenLayers.Strategy.Save"});
OpenLayers.Format.GPX=OpenLayers.Class(OpenLayers.Format.XML,{extractWaypoints:true,extractTracks:true,extractRoutes:true,extractAttributes:true,initialize:function(a){this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=[];if(this.extractTracks)for(var c=a.getElementsByTagName("trk"),d=0,e=c.length;d<e;d++){var f={};this.extractAttributes&&
(f=this.parseAttributes(c[d]));for(var g=this.getElementsByTagNameNS(c[d],c[d].namespaceURI,"trkseg"),h=0,i=g.length;h<i;h++){var j=this.extractSegment(g[h],"trkpt");b.push(new OpenLayers.Feature.Vector(j,f))}}if(this.extractRoutes){e=a.getElementsByTagName("rte");c=0;for(d=e.length;c<d;c++)f={},this.extractAttributes&&(f=this.parseAttributes(e[c])),g=this.extractSegment(e[c],"rtept"),b.push(new OpenLayers.Feature.Vector(g,f))}if(this.extractWaypoints){a=a.getElementsByTagName("wpt");c=0;for(e=a.length;c<
e;c++)f={},this.extractAttributes&&(f=this.parseAttributes(a[c])),d=new OpenLayers.Geometry.Point(a[c].getAttribute("lon"),a[c].getAttribute("lat")),b.push(new OpenLayers.Feature.Vector(d,f))}if(this.internalProjection&&this.externalProjection){f=0;for(a=b.length;f<a;f++)b[f].geometry.transform(this.externalProjection,this.internalProjection)}return b},extractSegment:function(a,b){for(var c=this.getElementsByTagNameNS(a,a.namespaceURI,b),d=[],e=0,f=c.length;e<f;e++)d.push(new OpenLayers.Geometry.Point(c[e].getAttribute("lon"),
c[e].getAttribute("lat")));return new OpenLayers.Geometry.LineString(d)},parseAttributes:function(a){for(var b={},a=a.firstChild,c,d;a;){if(a.nodeType==1&&(c=a.firstChild,c.nodeType==3||c.nodeType==4))if(d=a.prefix?a.nodeName.split(":")[1]:a.nodeName,d!="trkseg"&&d!="rtept")b[d]=c.nodeValue;a=a.nextSibling}return b},CLASS_NAME:"OpenLayers.Format.GPX"});
OpenLayers.Format.WMSDescribeLayer=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.1",getVersion:function(a,b){var c=OpenLayers.Format.XML.VersionedOGC.prototype.getVersion.apply(this,arguments);if(c=="1.1.1"||c=="1.1.0")c="1.1";return c},CLASS_NAME:"OpenLayers.Format.WMSDescribeLayer"});
OpenLayers.Format.WMSDescribeLayer.v1_1=OpenLayers.Class(OpenLayers.Format.WMSDescribeLayer,{initialize:function(a){OpenLayers.Format.WMSDescribeLayer.prototype.initialize.apply(this,[a])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var a=a.documentElement.childNodes,b=[],c,d,e=0;e<a.length;++e)if(c=a[e],d=c.nodeName,d=="LayerDescription"){d=c.getAttribute("name");var f="",g="",h="";c.getAttribute("owsType")?(f=c.getAttribute("owsType"),g=c.getAttribute("owsURL")):
c.getAttribute("wfs")!=""?(f="WFS",g=c.getAttribute("wfs")):c.getAttribute("wcs")!=""&&(f="WCS",g=c.getAttribute("wcs"));c=c.getElementsByTagName("Query");c.length>0&&((h=c[0].getAttribute("typeName"))||(h=c[0].getAttribute("typename")));b.push({layerName:d,owsType:f,owsURL:g,typeName:h})}return b},CLASS_NAME:"OpenLayers.Format.WMSDescribeLayer.v1_1"});OpenLayers.Format.WPSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",CLASS_NAME:"OpenLayers.Format.WPSCapabilities"});
OpenLayers.Renderer=OpenLayers.Class({container:null,root:null,extent:null,locked:false,size:null,resolution:null,map:null,initialize:function(a,b){this.container=OpenLayers.Util.getElement(a);OpenLayers.Util.extend(this,b)},destroy:function(){this.map=this.resolution=this.size=this.extent=this.container=null},supported:function(){return false},setExtent:function(a,b){this.extent=a.clone();if(b)this.resolution=null},setSize:function(a){this.size=a.clone();this.resolution=null},getResolution:function(){return this.resolution=
this.resolution||this.map.getResolution()},drawFeature:function(a,b){if(b==null)b=a.style;if(a.geometry){var c=a.geometry.getBounds();if(c){c.intersectsBounds(this.extent)||(b={display:"none"});c=this.drawGeometry(a.geometry,b,a.id);if(b.display!="none"&&b.label&&c!==false){var d=a.geometry.getCentroid();if(b.labelXOffset||b.labelYOffset){var e=isNaN(b.labelXOffset)?0:b.labelXOffset,f=isNaN(b.labelYOffset)?0:b.labelYOffset,g=this.getResolution();d.move(e*g,f*g)}this.drawText(a.id,b,d)}else this.removeText(a.id);
return c}}},drawGeometry:function(){},drawText:function(){},removeText:function(){},clear:function(){},getFeatureIdFromEvent:function(){},eraseFeatures:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=0,c=a.length;b<c;++b){var d=a[b];this.eraseGeometry(d.geometry,d.id);this.removeText(d.id)}},eraseGeometry:function(){},moveRoot:function(){},getRenderLayerId:function(){return this.container.id},applyDefaultSymbolizer:function(a){var b=OpenLayers.Util.extend({},OpenLayers.Renderer.defaultSymbolizer);
a.stroke===false&&(delete b.strokeWidth,delete b.strokeColor);a.fill===false&&delete b.fillColor;OpenLayers.Util.extend(b,a);return b},CLASS_NAME:"OpenLayers.Renderer"});OpenLayers.Renderer.defaultSymbolizer={fillColor:"#000000",strokeColor:"#000000",strokeWidth:2,fillOpacity:1,strokeOpacity:1,pointRadius:0};
OpenLayers.Renderer.Canvas=OpenLayers.Class(OpenLayers.Renderer,{hitDetection:true,hitOverflow:0,canvas:null,features:null,pendingRedraw:false,initialize:function(a,b){OpenLayers.Renderer.prototype.initialize.apply(this,arguments);this.root=document.createElement("canvas");this.container.appendChild(this.root);this.canvas=this.root.getContext("2d");this.features={};if(this.hitDetection)this.hitCanvas=document.createElement("canvas"),this.hitContext=this.hitCanvas.getContext("2d")},eraseGeometry:function(a,
b){this.eraseFeatures(this.features[b][0])},supported:function(){return!!document.createElement("canvas").getContext},setSize:function(a){this.size=a.clone();var b=this.root;b.style.width=a.w+"px";b.style.height=a.h+"px";b.width=a.w;b.height=a.h;this.resolution=null;if(this.hitDetection)b=this.hitCanvas,b.style.width=a.w+"px",b.style.height=a.h+"px",b.width=a.w,b.height=a.h},drawFeature:function(a,b){var c;if(a.geometry)b=this.applyDefaultSymbolizer(b||a.style),c=a.geometry.getBounds(),(c=b.display!==
"none"&&!!c&&c.intersectsBounds(this.extent))?this.features[a.id]=[a,b]:delete this.features[a.id],this.pendingRedraw=true;if(this.pendingRedraw&&!this.locked)this.redraw(),this.pendingRedraw=false;return c},drawGeometry:function(a,b,c){var d=a.CLASS_NAME;if(d=="OpenLayers.Geometry.Collection"||d=="OpenLayers.Geometry.MultiPoint"||d=="OpenLayers.Geometry.MultiLineString"||d=="OpenLayers.Geometry.MultiPolygon")for(d=0;d<a.components.length;d++)this.drawGeometry(a.components[d],b,c);else switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":this.drawPoint(a,
b,c);break;case "OpenLayers.Geometry.LineString":this.drawLineString(a,b,c);break;case "OpenLayers.Geometry.LinearRing":this.drawLinearRing(a,b,c);break;case "OpenLayers.Geometry.Polygon":this.drawPolygon(a,b,c)}},drawExternalGraphic:function(a,b,c){var d=new Image;if(b.graphicTitle)d.title=b.graphicTitle;var e=b.graphicWidth||b.graphicHeight,f=b.graphicHeight||b.graphicWidth,e=e?e:b.pointRadius*2,f=f?f:b.pointRadius*2,g=b.graphicXOffset!=void 0?b.graphicXOffset:-(0.5*e),h=b.graphicYOffset!=void 0?
b.graphicYOffset:-(0.5*f),i=b.graphicOpacity||b.fillOpacity;d.onload=OpenLayers.Function.bind(function(){if(this.features[c]){var b=this.getLocalXY(a),k=b[0],b=b[1];if(!isNaN(k)&&!isNaN(b)){var k=k+g|0,b=b+h|0,l=this.canvas;l.globalAlpha=i;var m=OpenLayers.Renderer.Canvas.drawImageScaleFactor||(OpenLayers.Renderer.Canvas.drawImageScaleFactor=/android 2.1/.test(navigator.userAgent.toLowerCase())?320/window.screen.width:1);l.drawImage(d,k*m,b*m,e*m,f*m);this.hitDetection&&(this.setHitContextStyle("fill",
c),this.hitContext.fillRect(k,b,e,f))}}},this);d.src=b.externalGraphic},setCanvasStyle:function(a,b){a==="fill"?(this.canvas.globalAlpha=b.fillOpacity,this.canvas.fillStyle=b.fillColor):a==="stroke"?(this.canvas.globalAlpha=b.strokeOpacity,this.canvas.strokeStyle=b.strokeColor,this.canvas.lineWidth=b.strokeWidth):(this.canvas.globalAlpha=0,this.canvas.lineWidth=1)},featureIdToHex:function(a){a=Number(a.split("_").pop())+1;if(a>=16777216)this.hitOverflow=a-16777215,a=a%16777216+1;var a="000000"+a.toString(16),
b=a.length;return a="#"+a.substring(b-6,b)},setHitContextStyle:function(a,b,c){b=this.featureIdToHex(b);a=="fill"?(this.hitContext.globalAlpha=1,this.hitContext.fillStyle=b):a=="stroke"?(this.hitContext.globalAlpha=1,this.hitContext.strokeStyle=b,this.hitContext.lineWidth=c.strokeWidth+2):(this.hitContext.globalAlpha=0,this.hitContext.lineWidth=1)},drawPoint:function(a,b,c){if(b.graphic!==false)if(b.externalGraphic)this.drawExternalGraphic(a,b,c);else{var d=this.getLocalXY(a),a=d[0],d=d[1];if(!isNaN(a)&&
!isNaN(d)){var e=Math.PI*2,f=b.pointRadius;b.fill!==false&&(this.setCanvasStyle("fill",b),this.canvas.beginPath(),this.canvas.arc(a,d,f,0,e,true),this.canvas.fill(),this.hitDetection&&(this.setHitContextStyle("fill",c,b),this.hitContext.beginPath(),this.hitContext.arc(a,d,f,0,e,true),this.hitContext.fill()));b.stroke!==false&&(this.setCanvasStyle("stroke",b),this.canvas.beginPath(),this.canvas.arc(a,d,f,0,e,true),this.canvas.stroke(),this.hitDetection&&(this.setHitContextStyle("stroke",c,b),this.hitContext.beginPath(),
this.hitContext.arc(a,d,f,0,e,true),this.hitContext.stroke()),this.setCanvasStyle("reset"))}}},drawLineString:function(a,b,c){b=OpenLayers.Util.applyDefaults({fill:false},b);this.drawLinearRing(a,b,c)},drawLinearRing:function(a,b,c){b.fill!==false&&(this.setCanvasStyle("fill",b),this.renderPath(this.canvas,a,b,c,"fill"),this.hitDetection&&(this.setHitContextStyle("fill",c,b),this.renderPath(this.hitContext,a,b,c,"fill")));b.stroke!==false&&(this.setCanvasStyle("stroke",b),this.renderPath(this.canvas,
a,b,c,"stroke"),this.hitDetection&&(this.setHitContextStyle("stroke",c,b),this.renderPath(this.hitContext,a,b,c,"stroke")));this.setCanvasStyle("reset")},renderPath:function(a,b,c,d,e){b=b.components;c=b.length;a.beginPath();var d=this.getLocalXY(b[0]),f=d[1];if(!isNaN(d[0])&&!isNaN(f)){a.moveTo(d[0],d[1]);for(d=1;d<c;++d)f=this.getLocalXY(b[d]),a.lineTo(f[0],f[1]);e==="fill"?a.fill():a.stroke()}},drawPolygon:function(a,b,c){var a=a.components,d=a.length;this.drawLinearRing(a[0],b,c);for(var e=1;e<
d;++e){this.canvas.globalCompositeOperation="destination-out";if(this.hitDetection)this.hitContext.globalCompositeOperation="destination-out";this.drawLinearRing(a[e],OpenLayers.Util.applyDefaults({stroke:false,fillOpacity:1},b),c);this.canvas.globalCompositeOperation="source-over";if(this.hitDetection)this.hitContext.globalCompositeOperation="source-over";this.drawLinearRing(a[e],OpenLayers.Util.applyDefaults({fill:false},b),c)}},drawText:function(a,b){var b=OpenLayers.Util.extend({fontColor:"#000000",
labelAlign:"cm"},b),c=this.getLocalXY(a);this.setCanvasStyle("reset");this.canvas.fillStyle=b.fontColor;this.canvas.globalAlpha=b.fontOpacity||1;var d=[b.fontStyle?b.fontStyle:"normal","normal",b.fontWeight?b.fontWeight:"normal",b.fontSize?b.fontSize:"1em",b.fontFamily?b.fontFamily:"sans-serif"].join(" "),e=b.label.split("\n"),f=e.length;if(this.canvas.fillText){this.canvas.font=d;this.canvas.textAlign=OpenLayers.Renderer.Canvas.LABEL_ALIGN[b.labelAlign[0]]||"center";this.canvas.textBaseline=OpenLayers.Renderer.Canvas.LABEL_ALIGN[b.labelAlign[1]]||
"middle";var g=OpenLayers.Renderer.Canvas.LABEL_FACTOR[b.labelAlign[1]];g==null&&(g=-0.5);d=this.canvas.measureText("Mg").height||this.canvas.measureText("xx").width;c[1]+=d*g*(f-1);for(g=0;g<f;g++)this.canvas.fillText(e[g],c[0],c[1]+d*g)}else if(this.canvas.mozDrawText){this.canvas.mozTextStyle=d;var h=OpenLayers.Renderer.Canvas.LABEL_FACTOR[b.labelAlign[0]];h==null&&(h=-0.5);g=OpenLayers.Renderer.Canvas.LABEL_FACTOR[b.labelAlign[1]];g==null&&(g=-0.5);d=this.canvas.mozMeasureText("xx");c[1]+=d*(1+
g*f);for(g=0;g<f;g++){var i=c[0]+h*this.canvas.mozMeasureText(e[g]),j=c[1]+g*d;this.canvas.translate(i,j);this.canvas.mozDrawText(e[g]);this.canvas.translate(-i,-j)}}this.setCanvasStyle("reset")},getLocalXY:function(a){var b=this.getResolution(),c=this.extent;return[a.x/b+-c.left/b,c.top/b-a.y/b]},clear:function(){var a=this.root.height,b=this.root.width;this.canvas.clearRect(0,0,b,a);this.features={};this.hitDetection&&this.hitContext.clearRect(0,0,b,a)},getFeatureIdFromEvent:function(a){var b=null;
if(this.hitDetection&&!this.map.dragging)a=a.xy,a=this.hitContext.getImageData(a.x|0,a.y|0,1,1).data,a[3]===255&&(a=a[2]+256*(a[1]+256*a[0]))&&(b=this.features["OpenLayers.Feature.Vector_"+(a-1+this.hitOverflow)][0]);return b},eraseFeatures:function(a){OpenLayers.Util.isArray(a)||(a=[a]);for(var b=0;b<a.length;++b)delete this.features[a[b].id];this.redraw()},redraw:function(){if(!this.locked){var a=this.root.height,b=this.root.width;this.canvas.clearRect(0,0,b,a);this.hitDetection&&this.hitContext.clearRect(0,
0,b,a);var a=[],c,d;for(d in this.features)this.features.hasOwnProperty(d)&&(b=this.features[d][0],c=this.features[d][1],this.drawGeometry(b.geometry,c,b.id),c.label&&a.push([b,c]));b=0;for(c=a.length;b<c;++b)d=a[b],this.drawText(d[0].geometry.getCentroid(),d[1])}},CLASS_NAME:"OpenLayers.Renderer.Canvas"});OpenLayers.Renderer.Canvas.LABEL_ALIGN={l:"left",r:"right",t:"top",b:"bottom"};OpenLayers.Renderer.Canvas.LABEL_FACTOR={l:0,r:-1,t:0,b:-1};OpenLayers.Renderer.Canvas.drawImageScaleFactor=null;
OpenLayers.Format.OSM=OpenLayers.Class(OpenLayers.Format.XML,{checkTags:false,interestingTagsExclude:null,areaTags:null,initialize:function(a){for(var b={interestingTagsExclude:"source,source_ref,source:ref,history,attribution,created_by".split(","),areaTags:"area,building,leisure,tourism,ruins,historic,landuse,military,natural,sport".split(",")},b=OpenLayers.Util.extend(b,a),c={},a=0;a<b.interestingTagsExclude.length;a++)c[b.interestingTagsExclude[a]]=true;b.interestingTagsExclude=c;c={};for(a=0;a<
b.areaTags.length;a++)c[b.areaTags[a]]=true;b.areaTags=c;this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,[b])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var b=this.getNodes(a),c=this.getWays(a),a=Array(c.length),d=0;d<c.length;d++){for(var e=Array(c[d].nodes.length),f=this.isWayArea(c[d])?1:0,g=0;g<c[d].nodes.length;g++){var h=b[c[d].nodes[g]],i=new OpenLayers.Geometry.Point(h.lon,
h.lat);i.osm_id=parseInt(c[d].nodes[g]);e[g]=i;h.used=true}h=null;h=f?new OpenLayers.Geometry.Polygon(new OpenLayers.Geometry.LinearRing(e)):new OpenLayers.Geometry.LineString(e);this.internalProjection&&this.externalProjection&&h.transform(this.externalProjection,this.internalProjection);e=new OpenLayers.Feature.Vector(h,c[d].tags);e.osm_id=parseInt(c[d].id);e.fid="way."+e.osm_id;a[d]=e}for(var j in b){h=b[j];if(!h.used||this.checkTags){c=null;if(this.checkTags){c=this.getTags(h.node,true);if(h.used&&
!c[1])continue;c=c[0]}else c=this.getTags(h.node);e=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(h.lon,h.lat),c);this.internalProjection&&this.externalProjection&&e.geometry.transform(this.externalProjection,this.internalProjection);e.osm_id=parseInt(j);e.fid="node."+e.osm_id;a.push(e)}h.node=null}return a},getNodes:function(a){for(var a=a.getElementsByTagName("node"),b={},c=0;c<a.length;c++){var d=a[c],e=d.getAttribute("id");b[e]={lat:d.getAttribute("lat"),lon:d.getAttribute("lon"),
node:d}}return b},getWays:function(a){for(var a=a.getElementsByTagName("way"),b=[],c=0;c<a.length;c++){var d=a[c],e={id:d.getAttribute("id")};e.tags=this.getTags(d);d=d.getElementsByTagName("nd");e.nodes=Array(d.length);for(var f=0;f<d.length;f++)e.nodes[f]=d[f].getAttribute("ref");b.push(e)}return b},getTags:function(a,b){for(var c=a.getElementsByTagName("tag"),d={},e=false,f=0;f<c.length;f++){var g=c[f].getAttribute("k");d[g]=c[f].getAttribute("v");b&&(this.interestingTagsExclude[g]||(e=true))}return b?
[d,e]:d},isWayArea:function(a){var b=false,c=false;a.nodes[0]==a.nodes[a.nodes.length-1]&&(b=true);if(this.checkTags)for(var d in a.tags)if(this.areaTags[d]){c=true;break}return b&&(this.checkTags?c:true)},write:function(a){OpenLayers.Util.isArray(a)||(a=[a]);this.osm_id=1;this.created_nodes={};var b=this.createElementNS(null,"osm");b.setAttribute("version","0.5");b.setAttribute("generator","OpenLayers "+OpenLayers.VERSION_NUMBER);for(var c=a.length-1;c>=0;c--)for(var d=this.createFeatureNodes(a[c]),
e=0;e<d.length;e++)b.appendChild(d[e]);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureNodes:function(a){var b=[],c=a.geometry.CLASS_NAME,c=c.substring(c.lastIndexOf(".")+1),c=c.toLowerCase();(c=this.createXML[c])&&(b=c.apply(this,[a]));return b},createXML:{point:function(a){var b=null,c=a.geometry?a.geometry:a;this.internalProjection&&this.externalProjection&&(c=c.clone(),c.transform(this.internalProjection,this.externalProjection));var d=false;a.osm_id?(b=a.osm_id,this.created_nodes[b]&&
(d=true)):(b=-this.osm_id,this.osm_id++);var e=d?this.created_nodes[b]:this.createElementNS(null,"node");this.created_nodes[b]=e;e.setAttribute("id",b);e.setAttribute("lon",c.x);e.setAttribute("lat",c.y);a.attributes&&this.serializeTags(a,e);this.setState(a,e);return d?[]:[e]},linestring:function(a){var b,c=[],d=a.geometry;a.osm_id?b=a.osm_id:(b=-this.osm_id,this.osm_id++);var e=this.createElementNS(null,"way");e.setAttribute("id",b);for(b=0;b<d.components.length;b++){var f=this.createXML.point.apply(this,
[d.components[b]]);if(f.length){var f=f[0],g=f.getAttribute("id");c.push(f)}else g=d.components[b].osm_id,f=this.created_nodes[g];this.setState(a,f);f=this.createElementNS(null,"nd");f.setAttribute("ref",g);e.appendChild(f)}this.serializeTags(a,e);c.push(e);return c},polygon:function(a){var b=OpenLayers.Util.extend({area:"yes"},a.attributes),b=new OpenLayers.Feature.Vector(a.geometry.components[0],b);b.osm_id=a.osm_id;return this.createXML.linestring.apply(this,[b])}},serializeTags:function(a,b){for(var c in a.attributes){var d=
this.createElementNS(null,"tag");d.setAttribute("k",c);d.setAttribute("v",a.attributes[c]);b.appendChild(d)}},setState:function(a,b){if(a.state){var c=null;switch(a.state){case OpenLayers.State.UPDATE:case OpenLayers.State.DELETE:c="delete"}c&&b.setAttribute("action",c)}},CLASS_NAME:"OpenLayers.Format.OSM"});
OpenLayers.Format.Context=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{layerOptions:null,layerParams:null,read:function(a,b){var c=OpenLayers.Format.XML.VersionedOGC.prototype.read.apply(this,arguments);if(b&&b.map)if(this.context=c,b.map instanceof OpenLayers.Map)c=this.mergeContextToMap(c,b.map);else{var d=b.map;if(OpenLayers.Util.isElement(d)||typeof d=="string")d={div:d};c=this.contextToMap(c,d)}return c},getLayerFromContext:function(a){var b,c,d={queryable:a.queryable,visibility:a.visibility,
maxExtent:a.maxExtent,metadata:OpenLayers.Util.applyDefaults(a.metadata,{styles:a.styles,formats:a.formats,"abstract":a["abstract"],dataURL:a.dataURL}),numZoomLevels:a.numZoomLevels,units:a.units,isBaseLayer:a.isBaseLayer,opacity:a.opacity,displayInLayerSwitcher:a.displayInLayerSwitcher,singleTile:a.singleTile,tileSize:a.tileSize?new OpenLayers.Size(a.tileSize.width,a.tileSize.height):void 0,minScale:a.minScale||a.maxScaleDenominator,maxScale:a.maxScale||a.minScaleDenominator,srs:a.srs,dimensions:a.dimensions,
metadataURL:a.metadataURL};this.layerOptions&&OpenLayers.Util.applyDefaults(d,this.layerOptions);var e={layers:a.name,transparent:a.transparent,version:a.version};if(a.formats&&a.formats.length>0){e.format=a.formats[0].value;for(b=0,c=a.formats.length;b<c;b++){var f=a.formats[b];if(f.current==true){e.format=f.value;break}}}if(a.styles&&a.styles.length>0)for(b=0,c=a.styles.length;b<c;b++)if(f=a.styles[b],f.current==true){f.href?e.sld=f.href:f.body?e.sld_body=f.body:e.styles=f.name;break}this.layerParams&&
OpenLayers.Util.applyDefaults(e,this.layerParams);b=null;c=a.service;c==OpenLayers.Format.Context.serviceTypes.WFS?(d.strategies=[new OpenLayers.Strategy.BBOX],d.protocol=new OpenLayers.Protocol.WFS({url:a.url,featurePrefix:a.name.split(":")[0],featureType:a.name.split(":").pop()}),b=new OpenLayers.Layer.Vector(a.title||a.name,d)):c==OpenLayers.Format.Context.serviceTypes.KML?(d.strategies=[new OpenLayers.Strategy.Fixed],d.protocol=new OpenLayers.Protocol.HTTP({url:a.url,format:new OpenLayers.Format.KML}),
b=new OpenLayers.Layer.Vector(a.title||a.name,d)):c==OpenLayers.Format.Context.serviceTypes.GML?(d.strategies=[new OpenLayers.Strategy.Fixed],d.protocol=new OpenLayers.Protocol.HTTP({url:a.url,format:new OpenLayers.Format.GML}),b=new OpenLayers.Layer.Vector(a.title||a.name,d)):a.features?(b=new OpenLayers.Layer.Vector(a.title||a.name,d),b.addFeatures(a.features)):a.categoryLayer!==true&&(b=new OpenLayers.Layer.WMS(a.title||a.name,a.url,e,d));return b},getLayersFromContext:function(a){for(var b=[],
c=0,d=a.length;c<d;c++){var e=this.getLayerFromContext(a[c]);e!==null&&b.push(e)}return b},contextToMap:function(a,b){b=OpenLayers.Util.applyDefaults({maxExtent:a.maxExtent,projection:a.projection,units:a.units},b);if(b.maxExtent)b.maxResolution=b.maxExtent.getWidth()/OpenLayers.Map.TILE_WIDTH;b.metadata={contactInformation:a.contactInformation,"abstract":a["abstract"],keywords:a.keywords,logo:a.logo,descriptionURL:a.descriptionURL};var c=new OpenLayers.Map(b);c.addLayers(this.getLayersFromContext(a.layersContext));
c.setCenter(a.bounds.getCenterLonLat(),c.getZoomForExtent(a.bounds,true));return c},mergeContextToMap:function(a,b){b.addLayers(this.getLayersFromContext(a.layersContext));return b},write:function(a,b){a=this.toContext(a);return OpenLayers.Format.XML.VersionedOGC.prototype.write.apply(this,arguments)},CLASS_NAME:"OpenLayers.Format.Context"});
OpenLayers.Format.Context.serviceTypes={WMS:"urn:ogc:serviceType:WMS",WFS:"urn:ogc:serviceType:WFS",WCS:"urn:ogc:serviceType:WCS",GML:"urn:ogc:serviceType:GML",SLD:"urn:ogc:serviceType:SLD",FES:"urn:ogc:serviceType:FES",KML:"urn:ogc:serviceType:KML"};
OpenLayers.Layer.XYZ=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,sphericalMercator:false,zoomOffset:0,serverResolutions:null,initialize:function(a,b,c){if(c&&c.sphericalMercator||this.sphericalMercator)c=OpenLayers.Util.extend({maxExtent:new OpenLayers.Bounds(-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7),maxResolution:156543.03390625,numZoomLevels:19,units:"m",projection:"EPSG:900913"},c);b=b||this.url;a=a||this.name;OpenLayers.Layer.Grid.prototype.initialize.apply(this,
[a,b,{},c])},clone:function(a){a==null&&(a=new OpenLayers.Layer.XYZ(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.getXYZ(a),b=this.url;OpenLayers.Util.isArray(b)&&(b=this.selectUrl(""+a.x+a.y+a.z,b));return OpenLayers.String.format(b,a)},getXYZ:function(a){var b=this.map.getResolution(),c=Math.round((a.left-this.maxExtent.left)/(b*this.tileSize.w)),a=Math.round((this.maxExtent.top-a.top)/(b*this.tileSize.h)),b=
this.serverResolutions!=null?OpenLayers.Util.indexOf(this.serverResolutions,b):this.map.getZoom()+this.zoomOffset,d=Math.pow(2,b);this.wrapDateLine&&(c=(c%d+d)%d);return{x:c,y:a,z:b}},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);if(!this.tileOrigin)this.tileOrigin=new OpenLayers.LonLat(this.maxExtent.left,this.maxExtent.bottom)},CLASS_NAME:"OpenLayers.Layer.XYZ"});
OpenLayers.Layer.OSM=OpenLayers.Class(OpenLayers.Layer.XYZ,{name:"OpenStreetMap",attribution:"Data CC-By-SA by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",sphericalMercator:true,url:"http://tile.openstreetmap.org/${z}/${x}/${y}.png",clone:function(a){a==null&&(a=new OpenLayers.Layer.OSM(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.XYZ.prototype.clone.apply(this,[a])},wrapDateLine:true,CLASS_NAME:"OpenLayers.Layer.OSM"});
OpenLayers.Layer.Bing=OpenLayers.Class(OpenLayers.Layer.XYZ,{serverResolutions:[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,0.5971642833948135,0.29858214169740677,0.14929107084870338,0.07464553542435169],attributionTemplate:'<span class="olBingAttribution ${type}"><div><a target="_blank" href="http://www.bing.com/maps/"><img src="${logo}" /></a></div>${copyrights}<a style="white-space: nowrap" target="_blank" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a></span>',
metadata:null,type:"Road",metadataParams:null,initialize:function(a){a=OpenLayers.Util.applyDefaults({sphericalMercator:true},a);OpenLayers.Layer.XYZ.prototype.initialize.apply(this,[a.name||"Bing "+(a.type||this.type),null,a]);this.loadMetadata()},loadMetadata:function(){this._callbackId="_callback_"+this.id.replace(/\./g,"_");window[this._callbackId]=OpenLayers.Function.bind(OpenLayers.Layer.Bing.processMetadata,this);var a=OpenLayers.Util.applyDefaults({key:this.key,jsonp:this._callbackId,include:"ImageryProviders"},
this.metadataParams),a="http://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.type+"?"+OpenLayers.Util.getParameterString(a),b=document.createElement("script");b.type="text/javascript";b.src=a;b.id=this._callbackId;document.getElementsByTagName("head")[0].appendChild(b)},initLayer:function(){var a=this.metadata.resourceSets[0].resources[0],b=a.imageUrl.replace("{quadkey}","${quadkey}");this.url=[];for(var c=0;c<a.imageUrlSubdomains.length;++c)this.url.push(b.replace("{subdomain}",a.imageUrlSubdomains[c]));
this.addOptions({maxResolution:Math.min(this.serverResolutions[a.zoomMin],this.maxResolution),zoomOffset:a.zoomMin,numZoomLevels:Math.min(a.zoomMax+1-a.zoomMin,this.numZoomLevels)},true)},getURL:function(a){if(!this.url)return OpenLayers.Util.getImagesLocation()+"blank.gif";for(var b=this.getXYZ(a),a=b.x,c=b.y,b=b.z,d=[],e=b;e>0;--e){var f="0",g=1<<e-1;(a&g)!=0&&f++;(c&g)!=0&&(f++,f++);d.push(f)}d=d.join("");a=this.selectUrl(""+a+c+b,this.url);return OpenLayers.String.format(a,{quadkey:d})},updateAttribution:function(){var a=
this.metadata;if(a&&this.map&&this.map.center){var b=a.resourceSets[0].resources[0],c=this.map.getExtent().transform(this.map.getProjectionObject(),new OpenLayers.Projection("EPSG:4326")),b=b.imageryProviders,d=this.map.getZoom()+1,e="",f,g,h,i,j,k,l;for(g=0,h=b.length;g<h;++g){f=b[g];for(i=0,j=f.coverageAreas.length;i<j;++i)l=f.coverageAreas[i],k=OpenLayers.Bounds.fromArray(l.bbox),c.intersectsBounds(k)&&d<=l.zoomMax&&d>=l.zoomMin&&(e+=f.attribution+" ")}this.attribution=OpenLayers.String.format(this.attributionTemplate,
{type:this.type.toLowerCase(),logo:a.brandLogoUri,copyrights:e});this.map&&this.map.events.triggerEvent("changelayer",{layer:this,property:"attribution"})}},setMap:function(){OpenLayers.Layer.XYZ.prototype.setMap.apply(this,arguments);this.updateAttribution();this.map.events.register("moveend",this,this.updateAttribution)},clone:function(a){a==null&&(a=new OpenLayers.Layer.Bing(this.options));return a=OpenLayers.Layer.XYZ.prototype.clone.apply(this,[a])},destroy:function(){this.map&&this.map.events.unregister("moveend",
this,this.updateAttribution);OpenLayers.Layer.XYZ.prototype.destroy.apply(this,arguments)},CLASS_NAME:"OpenLayers.Layer.Bing"});OpenLayers.Layer.Bing.processMetadata=function(a){this.metadata=a;this.initLayer();a=document.getElementById(this._callbackId);a.parentNode.removeChild(a);window[this._callbackId]=void 0;delete this._callbackId};
OpenLayers.Format.SOSGetFeatureOfInterest=OpenLayers.Class(OpenLayers.Format.XML,{VERSION:"1.0.0",namespaces:{sos:"http://www.opengis.net/sos/1.0",gml:"http://www.opengis.net/gml",sa:"http://www.opengis.net/sampling/1.0",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosAll.xsd",defaultPrefix:"sos",regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},read:function(a){typeof a==
"string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={features:[]};this.readNode(a,b);for(var a=[],c=0,d=b.features.length;c<d;c++){var e=b.features[c];this.internalProjection&&this.externalProjection&&e.components[0]&&e.components[0].transform(this.externalProjection,this.internalProjection);e=new OpenLayers.Feature.Vector(e.components[0],e.attributes);a.push(e)}return a},readers:{sa:{SamplingPoint:function(a,b){if(!b.attributes){var c=
{attributes:{}};b.features.push(c);b=c}b.attributes.id=this.getAttributeNS(a,this.namespaces.gml,"id");this.readChildNodes(a,b)},position:function(a,b){this.readChildNodes(a,b)}},gml:OpenLayers.Util.applyDefaults({FeatureCollection:function(a,b){this.readChildNodes(a,b)},featureMember:function(a,b){var c={attributes:{}};b.features.push(c);this.readChildNodes(a,c)},name:function(a,b){b.attributes.name=this.getChildValue(a)},pos:function(a,b){if(!this.externalProjection)this.externalProjection=new OpenLayers.Projection(a.getAttribute("srsName"));
OpenLayers.Format.GML.v3.prototype.readers.gml.pos.apply(this,[a,b])}},OpenLayers.Format.GML.v3.prototype.readers.gml)},writers:{sos:{GetFeatureOfInterest:function(a){for(var b=this.createElementNSPlus("GetFeatureOfInterest",{attributes:{version:this.VERSION,service:"SOS","xsi:schemaLocation":this.schemaLocation}}),c=0,d=a.fois.length;c<d;c++)this.writeNode("FeatureOfInterestId",{foi:a.fois[c]},b);return b},FeatureOfInterestId:function(a){return this.createElementNSPlus("FeatureOfInterestId",{value:a.foi})}}},
CLASS_NAME:"OpenLayers.Format.SOSGetFeatureOfInterest"});
OpenLayers.Format.SOSGetObservation=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows",gml:"http://www.opengis.net/gml",sos:"http://www.opengis.net/sos/1.0",ogc:"http://www.opengis.net/ogc",om:"http://www.opengis.net/om/1.0",sa:"http://www.opengis.net/sampling/1.0",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/sos/1.0 http://schemas.opengis.net/sos/1.0.0/sosGetObservation.xsd",
defaultPrefix:"sos",read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={measurements:[],observations:[]};this.readNode(a,b);return b},write:function(a){a=this.writeNode("sos:GetObservation",a);a.setAttribute("xmlns:om",this.namespaces.om);a.setAttribute("xmlns:ogc",this.namespaces.ogc);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,
[a])},readers:{om:{ObservationCollection:function(a,b){b.id=this.getAttributeNS(a,this.namespaces.gml,"id");this.readChildNodes(a,b)},member:function(a,b){this.readChildNodes(a,b)},Measurement:function(a,b){var c={};b.measurements.push(c);this.readChildNodes(a,c)},Observation:function(a,b){var c={};b.observations.push(c);this.readChildNodes(a,c)},samplingTime:function(a,b){var c={};b.samplingTime=c;this.readChildNodes(a,c)},observedProperty:function(a,b){b.observedProperty=this.getAttributeNS(a,this.namespaces.xlink,
"href");this.readChildNodes(a,b)},procedure:function(a,b){b.procedure=this.getAttributeNS(a,this.namespaces.xlink,"href");this.readChildNodes(a,b)},featureOfInterest:function(a,b){var c={features:[]};b.fois=[];b.fois.push(c);this.readChildNodes(a,c);for(var d=[],e=0,f=c.features.length;e<f;e++){var g=c.features[e];d.push(new OpenLayers.Feature.Vector(g.components[0],g.attributes))}c.features=d},result:function(a,b){var c={};b.result=c;this.getChildValue(a)!==""?(c.value=this.getChildValue(a),c.uom=
a.getAttribute("uom")):this.readChildNodes(a,c)}},sa:OpenLayers.Format.SOSGetFeatureOfInterest.prototype.readers.sa,gml:OpenLayers.Util.applyDefaults({TimeInstant:function(a,b){var c={};b.timeInstant=c;this.readChildNodes(a,c)},timePosition:function(a,b){b.timePosition=this.getChildValue(a)}},OpenLayers.Format.SOSGetFeatureOfInterest.prototype.readers.gml)},writers:{sos:{GetObservation:function(a){var b=this.createElementNSPlus("GetObservation",{attributes:{version:this.VERSION,service:"SOS"}});this.writeNode("offering",
a,b);a.eventTime&&this.writeNode("eventTime",a,b);for(var c in a.procedures)this.writeNode("procedure",a.procedures[c],b);for(var d in a.observedProperties)this.writeNode("observedProperty",a.observedProperties[d],b);a.foi&&this.writeNode("featureOfInterest",a.foi,b);this.writeNode("responseFormat",a,b);a.resultModel&&this.writeNode("resultModel",a,b);a.responseMode&&this.writeNode("responseMode",a,b);return b},featureOfInterest:function(a){var b=this.createElementNSPlus("featureOfInterest");this.writeNode("ObjectID",
a.objectId,b);return b},ObjectID:function(a){return this.createElementNSPlus("ObjectID",{value:a})},responseFormat:function(a){return this.createElementNSPlus("responseFormat",{value:a.responseFormat})},procedure:function(a){return this.createElementNSPlus("procedure",{value:a})},offering:function(a){return this.createElementNSPlus("offering",{value:a.offering})},observedProperty:function(a){return this.createElementNSPlus("observedProperty",{value:a})},eventTime:function(a){var b=this.createElementNSPlus("eventTime");
a.eventTime==="latest"&&this.writeNode("ogc:TM_Equals",a,b);return b},resultModel:function(a){return this.createElementNSPlus("resultModel",{value:a.resultModel})},responseMode:function(a){return this.createElementNSPlus("responseMode",{value:a.responseMode})}},ogc:{TM_Equals:function(a){var b=this.createElementNSPlus("ogc:TM_Equals");this.writeNode("ogc:PropertyName",{property:"urn:ogc:data:time:iso8601"},b);a.eventTime==="latest"&&this.writeNode("gml:TimeInstant",{value:"latest"},b);return b},PropertyName:function(a){return this.createElementNSPlus("ogc:PropertyName",
{value:a.property})}},gml:{TimeInstant:function(a){var b=this.createElementNSPlus("gml:TimeInstant");this.writeNode("gml:timePosition",a,b);return b},timePosition:function(a){return this.createElementNSPlus("gml:timePosition",{value:a.value})}}},CLASS_NAME:"OpenLayers.Format.SOSGetObservation"});
OpenLayers.Handler=OpenLayers.Class({id:null,control:null,map:null,keyMask:null,active:false,evt:null,initialize:function(a,b,c){OpenLayers.Util.extend(this,c);this.control=a;this.callbacks=b;(a=this.map||a.map)&&this.setMap(a);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},setMap:function(a){this.map=a},checkModifiers:function(a){return this.keyMask==null?true:((a.shiftKey?OpenLayers.Handler.MOD_SHIFT:0)|(a.ctrlKey?OpenLayers.Handler.MOD_CTRL:0)|(a.altKey?OpenLayers.Handler.MOD_ALT:
0))==this.keyMask},activate:function(){if(this.active)return false;for(var a=OpenLayers.Events.prototype.BROWSER_EVENTS,b=0,c=a.length;b<c;b++)this[a[b]]&&this.register(a[b],this[a[b]]);return this.active=true},deactivate:function(){if(!this.active)return false;for(var a=OpenLayers.Events.prototype.BROWSER_EVENTS,b=0,c=a.length;b<c;b++)this[a[b]]&&this.unregister(a[b],this[a[b]]);this.active=false;return true},callback:function(a,b){a&&this.callbacks[a]&&this.callbacks[a].apply(this.control,b)},register:function(a,
b){this.map.events.registerPriority(a,this,b);this.map.events.registerPriority(a,this,this.setEvent)},unregister:function(a,b){this.map.events.unregister(a,this,b);this.map.events.unregister(a,this,this.setEvent)},setEvent:function(a){this.evt=a;return true},destroy:function(){this.deactivate();this.control=this.map=null},CLASS_NAME:"OpenLayers.Handler"});OpenLayers.Handler.MOD_NONE=0;OpenLayers.Handler.MOD_SHIFT=1;OpenLayers.Handler.MOD_CTRL=2;OpenLayers.Handler.MOD_ALT=4;
OpenLayers.Handler.MouseWheel=OpenLayers.Class(OpenLayers.Handler,{wheelListener:null,mousePosition:null,interval:0,delta:0,cumulative:true,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);this.wheelListener=OpenLayers.Function.bindAsEventListener(this.onWheelEvent,this)},destroy:function(){OpenLayers.Handler.prototype.destroy.apply(this,arguments);this.wheelListener=null},onWheelEvent:function(a){if(this.map&&this.checkModifiers(a)){for(var b=false,c=false,
d=false,e=OpenLayers.Event.element(a);e!=null&&!d&&!b;){if(!b)try{var f=e.currentStyle?e.currentStyle.overflow:document.defaultView.getComputedStyle(e,null).getPropertyValue("overflow"),b=f&&f=="auto"||f=="scroll"}catch(g){}if(!c)for(var d=0,h=this.map.layers.length;d<h;d++)if(e==this.map.layers[d].div||e==this.map.layers[d].pane){c=true;break}d=e==this.map.div;e=e.parentNode}if(!b&&d){if(c){b=0;if(!a)a=window.event;a.wheelDelta?(b=a.wheelDelta/120,window.opera&&window.opera.version()<9.2&&(b=-b)):
a.detail&&(b=-a.detail/3);this.delta+=b;this.interval?(window.clearTimeout(this._timeoutId),this._timeoutId=window.setTimeout(OpenLayers.Function.bind(function(){this.wheelZoom(a)},this),this.interval)):this.wheelZoom(a)}OpenLayers.Event.stop(a)}}},wheelZoom:function(a){var b=this.delta;this.delta=0;if(b){if(this.mousePosition)a.xy=this.mousePosition;if(!a.xy)a.xy=this.map.getPixelFromLonLat(this.map.getCenter());b<0?this.callback("down",[a,this.cumulative?b:-1]):this.callback("up",[a,this.cumulative?
b:1])}},mousemove:function(a){this.mousePosition=a.xy},activate:function(a){if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){var b=this.wheelListener;OpenLayers.Event.observe(window,"DOMMouseScroll",b);OpenLayers.Event.observe(window,"mousewheel",b);OpenLayers.Event.observe(document,"mousewheel",b);return true}else return false},deactivate:function(a){if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){var b=this.wheelListener;OpenLayers.Event.stopObserving(window,"DOMMouseScroll",
b);OpenLayers.Event.stopObserving(window,"mousewheel",b);OpenLayers.Event.stopObserving(document,"mousewheel",b);return true}else return false},CLASS_NAME:"OpenLayers.Handler.MouseWheel"});OpenLayers.Symbolizer=OpenLayers.Class({zIndex:0,initialize:function(a){OpenLayers.Util.extend(this,a)},clone:function(){return new (eval(this.CLASS_NAME))(OpenLayers.Util.extend({},this))},CLASS_NAME:"OpenLayers.Symbolizer"});
OpenLayers.Symbolizer.Raster=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Raster"});OpenLayers.Symbolizer.Point=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Point"});
OpenLayers.Symbolizer.Line=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Line"});OpenLayers.Symbolizer.Polygon=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Polygon"});
OpenLayers.Symbolizer.Text=OpenLayers.Class(OpenLayers.Symbolizer,{initialize:function(a){OpenLayers.Symbolizer.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Symbolizer.Text"});
OpenLayers.Rule=OpenLayers.Class({id:null,name:null,title:null,description:null,context:null,filter:null,elseFilter:false,symbolizer:null,symbolizers:null,minScaleDenominator:null,maxScaleDenominator:null,initialize:function(a){this.symbolizer={};OpenLayers.Util.extend(this,a);this.symbolizers&&delete this.symbolizer;this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var a in this.symbolizer)this.symbolizer[a]=null;this.symbolizer=null;delete this.symbolizers},evaluate:function(a){var b=
this.getContext(a),c=true;if(this.minScaleDenominator||this.maxScaleDenominator)var d=a.layer.map.getScale();this.minScaleDenominator&&(c=d>=OpenLayers.Style.createLiteral(this.minScaleDenominator,b));c&&this.maxScaleDenominator&&(c=d<OpenLayers.Style.createLiteral(this.maxScaleDenominator,b));c&&this.filter&&(c=this.filter.CLASS_NAME=="OpenLayers.Filter.FeatureId"?this.filter.evaluate(a):this.filter.evaluate(b));return c},getContext:function(a){var b=this.context;b||(b=a.attributes||a.data);typeof this.context==
"function"&&(b=this.context(a));return b},clone:function(){var a=OpenLayers.Util.extend({},this);if(this.symbolizers){var b=this.symbolizers.length;a.symbolizers=Array(b);for(var c=0;c<b;++c)a.symbolizers[c]=this.symbolizers[c].clone()}else{a.symbolizer={};for(var d in this.symbolizer)b=this.symbolizer[d],c=typeof b,c==="object"?a.symbolizer[d]=OpenLayers.Util.extend({},b):c==="string"&&(a.symbolizer[d]=b)}a.filter=this.filter&&this.filter.clone();a.context=this.context&&OpenLayers.Util.extend({},
this.context);return new OpenLayers.Rule(a)},CLASS_NAME:"OpenLayers.Rule"});
OpenLayers.Filter.Spatial=OpenLayers.Class(OpenLayers.Filter,{type:null,property:null,value:null,distance:null,distanceUnits:null,initialize:function(a){OpenLayers.Filter.prototype.initialize.apply(this,[a])},evaluate:function(a){var b=false;switch(this.type){case OpenLayers.Filter.Spatial.BBOX:case OpenLayers.Filter.Spatial.INTERSECTS:if(a.geometry){var c=this.value;this.value.CLASS_NAME=="OpenLayers.Bounds"&&(c=this.value.toGeometry());a.geometry.intersects(c)&&(b=true)}break;default:OpenLayers.Console.error(OpenLayers.i18n("filterEvaluateNotImplemented"))}return b},
clone:function(){var a=OpenLayers.Util.applyDefaults({value:this.value&&this.value.clone&&this.value.clone()},this);return new OpenLayers.Filter.Spatial(a)},CLASS_NAME:"OpenLayers.Filter.Spatial"});OpenLayers.Filter.Spatial.BBOX="BBOX";OpenLayers.Filter.Spatial.INTERSECTS="INTERSECTS";OpenLayers.Filter.Spatial.DWITHIN="DWITHIN";OpenLayers.Filter.Spatial.WITHIN="WITHIN";OpenLayers.Filter.Spatial.CONTAINS="CONTAINS";
OpenLayers.Format.SLD=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",stringifyOutput:true,namedLayersAsArray:false,CLASS_NAME:"OpenLayers.Format.SLD"});
OpenLayers.Format.GML.v2=OpenLayers.Class(OpenLayers.Format.GML.Base,{schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd",initialize:function(a){OpenLayers.Format.GML.Base.prototype.initialize.apply(this,[a])},readers:{gml:OpenLayers.Util.applyDefaults({outerBoundaryIs:function(a,b){var c={};this.readChildNodes(a,c);b.outer=c.components[0]},innerBoundaryIs:function(a,b){var c={};this.readChildNodes(a,c);b.inner.push(c.components[0])},Box:function(a,b){var c=
{};this.readChildNodes(a,c);if(!b.components)b.components=[];var d=c.points[0],c=c.points[1];b.components.push(new OpenLayers.Bounds(d.x,d.y,c.x,c.y))}},OpenLayers.Format.GML.Base.prototype.readers.gml),feature:OpenLayers.Format.GML.Base.prototype.readers.feature,wfs:OpenLayers.Format.GML.Base.prototype.readers.wfs},write:function(a){a=this.writeNode(OpenLayers.Util.isArray(a)?"wfs:FeatureCollection":"gml:featureMember",a);this.setAttributeNS(a,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);
return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{gml:OpenLayers.Util.applyDefaults({Point:function(a){var b=this.createElementNSPlus("gml:Point");this.writeNode("coordinates",[a],b);return b},coordinates:function(a){for(var b=a.length,c=Array(b),d,e=0;e<b;++e)d=a[e],c[e]=this.xy?d.x+","+d.y:d.y+","+d.x,d.z!=void 0&&(c[e]+=","+d.z);return this.createElementNSPlus("gml:coordinates",{attributes:{decimal:".",cs:",",ts:" "},value:b==1?c[0]:c.join(" ")})},LineString:function(a){var b=
this.createElementNSPlus("gml:LineString");this.writeNode("coordinates",a.components,b);return b},Polygon:function(a){var b=this.createElementNSPlus("gml:Polygon");this.writeNode("outerBoundaryIs",a.components[0],b);for(var c=1;c<a.components.length;++c)this.writeNode("innerBoundaryIs",a.components[c],b);return b},outerBoundaryIs:function(a){var b=this.createElementNSPlus("gml:outerBoundaryIs");this.writeNode("LinearRing",a,b);return b},innerBoundaryIs:function(a){var b=this.createElementNSPlus("gml:innerBoundaryIs");
this.writeNode("LinearRing",a,b);return b},LinearRing:function(a){var b=this.createElementNSPlus("gml:LinearRing");this.writeNode("coordinates",a.components,b);return b},Box:function(a){var b=this.createElementNSPlus("gml:Box");this.writeNode("coordinates",[{x:a.left,y:a.bottom},{x:a.right,y:a.top}],b);this.srsName&&b.setAttribute("srsName",this.srsName);return b}},OpenLayers.Format.GML.Base.prototype.writers.gml),feature:OpenLayers.Format.GML.Base.prototype.writers.feature,wfs:OpenLayers.Format.GML.Base.prototype.writers.wfs},
CLASS_NAME:"OpenLayers.Format.GML.v2"});
OpenLayers.Format.Filter.v1_0_0=OpenLayers.Class(OpenLayers.Format.GML.v2,OpenLayers.Format.Filter.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/ogc/filter/1.0.0/filter.xsd",initialize:function(a){OpenLayers.Format.GML.v2.prototype.initialize.apply(this,[a])},readers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsNotEqualTo:function(a,
b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.NOT_EQUAL_TO});this.readChildNodes(a,c);b.filters.push(c)},PropertyIsLike:function(a,b){var c=new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.LIKE});this.readChildNodes(a,c);var d=a.getAttribute("wildCard"),e=a.getAttribute("singleChar"),f=a.getAttribute("escape");c.value2regex(d,e,f);b.filters.push(c)}},OpenLayers.Format.Filter.v1.prototype.readers.ogc),gml:OpenLayers.Format.GML.v2.prototype.readers.gml,
feature:OpenLayers.Format.GML.v2.prototype.readers.feature},writers:{ogc:OpenLayers.Util.applyDefaults({PropertyIsEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsNotEqualTo:function(a){var b=this.createElementNSPlus("ogc:PropertyIsNotEqualTo");this.writeNode("PropertyName",a,b);this.writeOgcExpression(a.value,b);return b},PropertyIsLike:function(a){var b=this.createElementNSPlus("ogc:PropertyIsLike",
{attributes:{wildCard:"*",singleChar:".",escape:"!"}});this.writeNode("PropertyName",a,b);this.writeNode("Literal",a.regex2value(),b);return b},BBOX:function(a){var b=this.createElementNSPlus("ogc:BBOX");a.property&&this.writeNode("PropertyName",a,b);var c=this.writeNode("gml:Box",a.value,b);a.projection&&c.setAttribute("srsName",a.projection);return b}},OpenLayers.Format.Filter.v1.prototype.writers.ogc),gml:OpenLayers.Format.GML.v2.prototype.writers.gml,feature:OpenLayers.Format.GML.v2.prototype.writers.feature},
writeSpatial:function(a,b){var c=this.createElementNSPlus("ogc:"+b);this.writeNode("PropertyName",a,c);if(a.value instanceof OpenLayers.Filter.Function)this.writeNode("Function",a.value,c);else{var d;d=a.value instanceof OpenLayers.Geometry?this.writeNode("feature:_geometry",a.value).firstChild:this.writeNode("gml:Box",a.value);a.projection&&d.setAttribute("srsName",a.projection);c.appendChild(d)}return c},CLASS_NAME:"OpenLayers.Format.Filter.v1_0_0"});
OpenLayers.Format.WFST.v1_0_0=OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0,OpenLayers.Format.WFST.v1,{version:"1.0.0",srsNameInQuery:false,schemaLocations:{wfs:"http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"},initialize:function(a){OpenLayers.Format.Filter.v1_0_0.prototype.initialize.apply(this,[a]);OpenLayers.Format.WFST.v1.prototype.initialize.apply(this,[a])},readNode:function(a,b){return OpenLayers.Format.GML.v2.prototype.readNode.apply(this,[a,b])},readers:{wfs:OpenLayers.Util.applyDefaults({WFS_TransactionResponse:function(a,
b){b.insertIds=[];b.success=false;this.readChildNodes(a,b)},InsertResult:function(a,b){var c={fids:[]};this.readChildNodes(a,c);b.insertIds.push(c.fids[0])},TransactionResult:function(a,b){this.readChildNodes(a,b)},Status:function(a,b){this.readChildNodes(a,b)},SUCCESS:function(a,b){b.success=true}},OpenLayers.Format.WFST.v1.prototype.readers.wfs),gml:OpenLayers.Format.GML.v2.prototype.readers.gml,feature:OpenLayers.Format.GML.v2.prototype.readers.feature,ogc:OpenLayers.Format.Filter.v1_0_0.prototype.readers.ogc},
writers:{wfs:OpenLayers.Util.applyDefaults({Query:function(a){var a=OpenLayers.Util.extend({featureNS:this.featureNS,featurePrefix:this.featurePrefix,featureType:this.featureType,srsName:this.srsName,srsNameInQuery:this.srsNameInQuery},a),b=a.featurePrefix,c=this.createElementNSPlus("wfs:Query",{attributes:{typeName:(b?b+":":"")+a.featureType}});a.srsNameInQuery&&a.srsName&&c.setAttribute("srsName",a.srsName);a.featureNS&&c.setAttribute("xmlns:"+b,a.featureNS);if(a.propertyNames)for(var b=0,d=a.propertyNames.length;b<
d;b++)this.writeNode("ogc:PropertyName",{property:a.propertyNames[b]},c);a.filter&&(this.setFilterProperty(a.filter),this.writeNode("ogc:Filter",a.filter,c));return c}},OpenLayers.Format.WFST.v1.prototype.writers.wfs),gml:OpenLayers.Format.GML.v2.prototype.writers.gml,feature:OpenLayers.Format.GML.v2.prototype.writers.feature,ogc:OpenLayers.Format.Filter.v1_0_0.prototype.writers.ogc},CLASS_NAME:"OpenLayers.Format.WFST.v1_0_0"});
OpenLayers.ElementsIndexer=OpenLayers.Class({maxZIndex:null,order:null,indices:null,compare:null,initialize:function(a){this.compare=a?OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_Y_ORDER:OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_DRAWING_ORDER;this.clear()},insert:function(a){this.exists(a)&&this.remove(a);var b=a.id;this.determineZIndex(a);for(var c=-1,d=this.order.length,e;d-c>1;)e=parseInt((c+d)/2),this.compare(this,a,OpenLayers.Util.getElement(this.order[e]))>0?c=e:d=e;this.order.splice(d,
0,b);this.indices[b]=this.getZIndex(a);return this.getNextElement(d)},remove:function(a){var a=a.id,b=OpenLayers.Util.indexOf(this.order,a);if(b>=0)this.order.splice(b,1),delete this.indices[a],this.maxZIndex=this.order.length>0?this.indices[this.order[this.order.length-1]]:0},clear:function(){this.order=[];this.indices={};this.maxZIndex=0},exists:function(a){return this.indices[a.id]!=null},getZIndex:function(a){return a._style.graphicZIndex},determineZIndex:function(a){var b=a._style.graphicZIndex;
if(b==null)b=this.maxZIndex,a._style.graphicZIndex=b;else if(b>this.maxZIndex)this.maxZIndex=b},getNextElement:function(a){a+=1;if(a<this.order.length){var b=OpenLayers.Util.getElement(this.order[a]);b==void 0&&(b=this.getNextElement(a));return b}else return null},CLASS_NAME:"OpenLayers.ElementsIndexer"});
OpenLayers.ElementsIndexer.IndexingMethods={Z_ORDER:function(a,b,c){var b=a.getZIndex(b),d=0;c&&(a=a.getZIndex(c),d=b-a);return d},Z_ORDER_DRAWING_ORDER:function(a,b,c){a=OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(a,b,c);c&&a==0&&(a=1);return a},Z_ORDER_Y_ORDER:function(a,b,c){a=OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(a,b,c);c&&a===0&&(b=c._boundsBottom-b._boundsBottom,a=b===0?1:b);return a}};
OpenLayers.Renderer.Elements=OpenLayers.Class(OpenLayers.Renderer,{rendererRoot:null,root:null,vectorRoot:null,textRoot:null,xmlns:null,indexer:null,BACKGROUND_ID_SUFFIX:"_background",LABEL_ID_SUFFIX:"_label",initialize:function(a,b){OpenLayers.Renderer.prototype.initialize.apply(this,arguments);this.rendererRoot=this.createRenderRoot();this.root=this.createRoot("_root");this.vectorRoot=this.createRoot("_vroot");this.textRoot=this.createRoot("_troot");this.root.appendChild(this.vectorRoot);this.root.appendChild(this.textRoot);
this.rendererRoot.appendChild(this.root);this.container.appendChild(this.rendererRoot);if(b&&(b.zIndexing||b.yOrdering))this.indexer=new OpenLayers.ElementsIndexer(b.yOrdering)},destroy:function(){this.clear();this.xmlns=this.root=this.rendererRoot=null;OpenLayers.Renderer.prototype.destroy.apply(this,arguments)},clear:function(){var a,b=this.vectorRoot;if(b)for(;a=b.firstChild;)b.removeChild(a);if(b=this.textRoot)for(;a=b.firstChild;)b.removeChild(a);this.indexer&&this.indexer.clear()},getNodeType:function(){},
drawGeometry:function(a,b,c){var d=a.CLASS_NAME,e=true;if(d=="OpenLayers.Geometry.Collection"||d=="OpenLayers.Geometry.MultiPoint"||d=="OpenLayers.Geometry.MultiLineString"||d=="OpenLayers.Geometry.MultiPolygon"){for(var d=0,f=a.components.length;d<f;d++)e=this.drawGeometry(a.components[d],b,c)&&e;return e}d=e=false;b.display!="none"&&(b.backgroundGraphic?this.redrawBackgroundNode(a.id,a,b,c):d=true,e=this.redrawNode(a.id,a,b,c));if(e==false&&(b=document.getElementById(a.id)))b._style.backgroundGraphic&&
(d=true),b.parentNode.removeChild(b);d&&(b=document.getElementById(a.id+this.BACKGROUND_ID_SUFFIX))&&b.parentNode.removeChild(b);return e},redrawNode:function(a,b,c,d){c=this.applyDefaultSymbolizer(c);a=this.nodeFactory(a,this.getNodeType(b,c));a._featureId=d;a._boundsBottom=b.getBounds().bottom;a._geometryClass=b.CLASS_NAME;a._style=c;b=this.drawGeometryNode(a,b,c);if(b===false)return false;a=b.node;this.indexer?(c=this.indexer.insert(a))?this.vectorRoot.insertBefore(a,c):this.vectorRoot.appendChild(a):
a.parentNode!==this.vectorRoot&&this.vectorRoot.appendChild(a);this.postDraw(a);return b.complete},redrawBackgroundNode:function(a,b,c){c=OpenLayers.Util.extend({},c);c.externalGraphic=c.backgroundGraphic;c.graphicXOffset=c.backgroundXOffset;c.graphicYOffset=c.backgroundYOffset;c.graphicZIndex=c.backgroundGraphicZIndex;c.graphicWidth=c.backgroundWidth||c.graphicWidth;c.graphicHeight=c.backgroundHeight||c.graphicHeight;c.backgroundGraphic=null;c.backgroundXOffset=null;c.backgroundYOffset=null;c.backgroundGraphicZIndex=
null;return this.redrawNode(a+this.BACKGROUND_ID_SUFFIX,b,c,null)},drawGeometryNode:function(a,b,c){var c=c||a._style,d={isFilled:c.fill===void 0?true:c.fill,isStroked:c.stroke===void 0?!!c.strokeWidth:c.stroke},e;switch(b.CLASS_NAME){case "OpenLayers.Geometry.Point":if(c.graphic===false)d.isFilled=false,d.isStroked=false;e=this.drawPoint(a,b);break;case "OpenLayers.Geometry.LineString":d.isFilled=false;e=this.drawLineString(a,b);break;case "OpenLayers.Geometry.LinearRing":e=this.drawLinearRing(a,
b);break;case "OpenLayers.Geometry.Polygon":e=this.drawPolygon(a,b);break;case "OpenLayers.Geometry.Surface":e=this.drawSurface(a,b);break;case "OpenLayers.Geometry.Rectangle":e=this.drawRectangle(a,b)}a._options=d;return e!=false?{node:this.setStyle(a,c,d,b),complete:e}:false},postDraw:function(){},drawPoint:function(){},drawLineString:function(){},drawLinearRing:function(){},drawPolygon:function(){},drawRectangle:function(){},drawCircle:function(){},drawSurface:function(){},removeText:function(a){(a=
document.getElementById(a+this.LABEL_ID_SUFFIX))&&this.textRoot.removeChild(a)},getFeatureIdFromEvent:function(a){var b=a.target,c=b&&b.correspondingUseElement;return(c?c:b||a.srcElement)._featureId},eraseGeometry:function(a,b){if(a.CLASS_NAME=="OpenLayers.Geometry.MultiPoint"||a.CLASS_NAME=="OpenLayers.Geometry.MultiLineString"||a.CLASS_NAME=="OpenLayers.Geometry.MultiPolygon"||a.CLASS_NAME=="OpenLayers.Geometry.Collection")for(var c=0,d=a.components.length;c<d;c++)this.eraseGeometry(a.components[c],
b);else if((c=OpenLayers.Util.getElement(a.id))&&c.parentNode){if(c.geometry)c.geometry.destroy(),c.geometry=null;c.parentNode.removeChild(c);this.indexer&&this.indexer.remove(c);c._style.backgroundGraphic&&(c=OpenLayers.Util.getElement(a.id+this.BACKGROUND_ID_SUFFIX))&&c.parentNode&&c.parentNode.removeChild(c)}},nodeFactory:function(a,b){var c=OpenLayers.Util.getElement(a);c?this.nodeTypeCompare(c,b)||(c.parentNode.removeChild(c),c=this.nodeFactory(a,b)):c=this.createNode(b,a);return c},nodeTypeCompare:function(){},
createNode:function(){},moveRoot:function(a){var b=this.root;if(a.root.parentNode==this.rendererRoot)b=a.root;b.parentNode.removeChild(b);a.rendererRoot.appendChild(b)},getRenderLayerId:function(){return this.root.parentNode.parentNode.id},isComplexSymbol:function(a){return a!="circle"&&!!a},CLASS_NAME:"OpenLayers.Renderer.Elements"});
OpenLayers.Renderer.symbol={star:[350,75,379,161,469,161,397,215,423,301,350,250,277,301,303,215,231,161,321,161,350,75],cross:[4,0,6,0,6,4,10,4,10,6,6,6,6,10,4,10,4,6,0,6,0,4,4,4,4,0],x:[0,0,25,0,50,35,75,0,100,0,65,50,100,100,75,100,50,65,25,100,0,100,35,50,0,0],square:[0,0,0,1,1,1,1,0,0,0],triangle:[0,10,10,10,5,0,0,10]};
OpenLayers.Control.ArgParser=OpenLayers.Class(OpenLayers.Control,{center:null,zoom:null,layers:null,displayProjection:null,getParameters:function(a){var a=a||window.location.href,b=OpenLayers.Util.getParameters(a),c=a.indexOf("#");c>0&&(a="?"+a.substring(c+1,a.length),OpenLayers.Util.extend(b,OpenLayers.Util.getParameters(a)));return b},setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);for(var b=0,c=this.map.controls.length;b<c;b++){var d=this.map.controls[b];if(d!=this&&
d.CLASS_NAME=="OpenLayers.Control.ArgParser"){if(d.displayProjection!=this.displayProjection)this.displayProjection=d.displayProjection;break}}if(b==this.map.controls.length){b=this.getParameters();if(b.layers)this.layers=b.layers,this.map.events.register("addlayer",this,this.configureLayers),this.configureLayers();if(b.lat&&b.lon){this.center=new OpenLayers.LonLat(parseFloat(b.lon),parseFloat(b.lat));if(b.zoom)this.zoom=parseInt(b.zoom);this.map.events.register("changebaselayer",this,this.setCenter);
this.setCenter()}}},setCenter:function(){this.map.baseLayer&&(this.map.events.unregister("changebaselayer",this,this.setCenter),this.displayProjection&&this.center.transform(this.displayProjection,this.map.getProjectionObject()),this.map.setCenter(this.center,this.zoom))},configureLayers:function(){if(this.layers.length==this.map.layers.length){this.map.events.unregister("addlayer",this,this.configureLayers);for(var a=0,b=this.layers.length;a<b;a++){var c=this.map.layers[a],d=this.layers.charAt(a);
d=="B"?this.map.setBaseLayer(c):(d=="T"||d=="F")&&c.setVisibility(d=="T")}}},CLASS_NAME:"OpenLayers.Control.ArgParser"});
OpenLayers.Control.Permalink=OpenLayers.Class(OpenLayers.Control,{argParserClass:OpenLayers.Control.ArgParser,element:null,anchor:false,base:"",displayProjection:null,initialize:function(a,b,c){if(a!==null&&typeof a=="object"&&!OpenLayers.Util.isElement(a)){if(this.base=document.location.href,OpenLayers.Control.prototype.initialize.apply(this,[a]),this.element!=null)this.element=OpenLayers.Util.getElement(this.element)}else OpenLayers.Control.prototype.initialize.apply(this,[c]),this.element=OpenLayers.Util.getElement(a),
this.base=b||document.location.href},destroy:function(){this.element.parentNode==this.div&&this.div.removeChild(this.element);this.element=null;this.map.events.unregister("moveend",this,this.updateLink);OpenLayers.Control.prototype.destroy.apply(this,arguments)},setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);for(var b=0,c=this.map.controls.length;b<c;b++){var d=this.map.controls[b];if(d.CLASS_NAME==this.argParserClass.CLASS_NAME){if(d.displayProjection!=this.displayProjection)this.displayProjection=
d.displayProjection;break}}b==this.map.controls.length&&this.map.addControl(new this.argParserClass({displayProjection:this.displayProjection}))},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(!this.element&&!this.anchor)this.element=document.createElement("a"),this.element.innerHTML=OpenLayers.i18n("Permalink"),this.element.href="",this.div.appendChild(this.element);this.map.events.on({moveend:this.updateLink,changelayer:this.updateLink,changebaselayer:this.updateLink,
scope:this});this.updateLink();return this.div},updateLink:function(){var a=this.anchor?"#":"?",b=this.base;b.indexOf(a)!=-1&&(b=b.substring(0,b.indexOf(a)));b+=a+OpenLayers.Util.getParameterString(this.createParams());this.anchor&&!this.element?window.location.href=b:this.element.href=b},createParams:function(a,b,c){var a=a||this.map.getCenter(),d=OpenLayers.Util.getParameters(this.base);if(a){d.zoom=b||this.map.getZoom();b=a.lat;a=a.lon;if(this.displayProjection)b=OpenLayers.Projection.transform({x:a,
y:b},this.map.getProjectionObject(),this.displayProjection),a=b.x,b=b.y;d.lat=Math.round(b*1E5)/1E5;d.lon=Math.round(a*1E5)/1E5;c=c||this.map.layers;d.layers="";a=0;for(b=c.length;a<b;a++){var e=c[a];d.layers+=e.isBaseLayer?e==this.map.baseLayer?"B":"0":e.getVisibility()?"T":"F"}}return d},CLASS_NAME:"OpenLayers.Control.Permalink"});
OpenLayers.Layer.TMS=OpenLayers.Class(OpenLayers.Layer.Grid,{serviceVersion:"1.0.0",layername:null,type:null,isBaseLayer:true,tileOrigin:null,serverResolutions:null,zoomOffset:0,initialize:function(a,b,c){var d=[];d.push(a,b,{},c);OpenLayers.Layer.Grid.prototype.initialize.apply(this,d)},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)},clone:function(a){a==null&&(a=new OpenLayers.Layer.TMS(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,
[a])},getURL:function(a){var a=this.adjustBounds(a),b=this.map.getResolution(),c=Math.round((a.left-this.tileOrigin.lon)/(b*this.tileSize.w)),a=Math.round((a.bottom-this.tileOrigin.lat)/(b*this.tileSize.h)),b=this.serviceVersion+"/"+this.layername+"/"+(this.serverResolutions!=null?OpenLayers.Util.indexOf(this.serverResolutions,b):this.map.getZoom()+this.zoomOffset)+"/"+c+"/"+a+"."+this.type,c=this.url;OpenLayers.Util.isArray(c)&&(c=this.selectUrl(b,c));return c+b},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,
arguments);if(!this.tileOrigin)this.tileOrigin=new OpenLayers.LonLat(this.map.maxExtent.left,this.map.maxExtent.bottom)},CLASS_NAME:"OpenLayers.Layer.TMS"});
OpenLayers.Strategy.Fixed=OpenLayers.Class(OpenLayers.Strategy,{preload:false,activate:function(){if(OpenLayers.Strategy.prototype.activate.apply(this,arguments)){this.layer.events.on({refresh:this.load,scope:this});if(this.layer.visibility==true||this.preload)this.load();else this.layer.events.on({visibilitychanged:this.load,scope:this});return true}return false},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.layer.events.un({refresh:this.load,visibilitychanged:this.load,
scope:this});return a},load:function(a){var b=this.layer;b.events.triggerEvent("loadstart");b.protocol.read(OpenLayers.Util.applyDefaults({callback:OpenLayers.Function.bind(this.merge,this,b.map.getProjectionObject()),filter:b.filter},a));b.events.un({visibilitychanged:this.load,scope:this})},merge:function(a,b){var c=this.layer;c.destroyFeatures();var d=b.features;if(d&&d.length>0){if(!a.equals(c.projection))for(var e,f=0,g=d.length;f<g;++f)(e=d[f].geometry)&&e.transform(c.projection,a);c.addFeatures(d)}c.events.triggerEvent("loadend")},
CLASS_NAME:"OpenLayers.Strategy.Fixed"});
OpenLayers.StyleMap=OpenLayers.Class({styles:null,extendDefault:true,initialize:function(a,b){this.styles={"default":new OpenLayers.Style(OpenLayers.Feature.Vector.style["default"]),select:new OpenLayers.Style(OpenLayers.Feature.Vector.style.select),temporary:new OpenLayers.Style(OpenLayers.Feature.Vector.style.temporary),"delete":new OpenLayers.Style(OpenLayers.Feature.Vector.style["delete"])};if(a instanceof OpenLayers.Style)this.styles["default"]=a,this.styles.select=a,this.styles.temporary=a,
this.styles["delete"]=a;else if(typeof a=="object")for(var c in a)if(a[c]instanceof OpenLayers.Style)this.styles[c]=a[c];else if(typeof a[c]=="object")this.styles[c]=new OpenLayers.Style(a[c]);else{this.styles["default"]=new OpenLayers.Style(a);this.styles.select=new OpenLayers.Style(a);this.styles.temporary=new OpenLayers.Style(a);this.styles["delete"]=new OpenLayers.Style(a);break}OpenLayers.Util.extend(this,b)},destroy:function(){for(var a in this.styles)this.styles[a].destroy();this.styles=null},
createSymbolizer:function(a,b){a||(a=new OpenLayers.Feature.Vector);this.styles[b]||(b="default");a.renderIntent=b;var c={};this.extendDefault&&b!="default"&&(c=this.styles["default"].createSymbolizer(a));return OpenLayers.Util.extend(c,this.styles[b].createSymbolizer(a))},addUniqueValueRules:function(a,b,c,d){var e=[],f;for(f in c)e.push(new OpenLayers.Rule({symbolizer:c[f],context:d,filter:new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO,property:b,value:f})}));this.styles[a].addRules(e)},
CLASS_NAME:"OpenLayers.StyleMap"});
OpenLayers.Layer.Vector=OpenLayers.Class(OpenLayers.Layer,{EVENT_TYPES:"beforefeatureadded,beforefeaturesadded,featureadded,featuresadded,beforefeatureremoved,beforefeaturesremoved,featureremoved,featuresremoved,beforefeatureselected,featureselected,featureunselected,beforefeaturemodified,featuremodified,afterfeaturemodified,vertexmodified,vertexremoved,sketchstarted,sketchmodified,sketchcomplete,refresh".split(","),isBaseLayer:false,isFixed:false,features:null,filter:null,selectedFeatures:null,unrenderedFeatures:null,
reportError:true,style:null,styleMap:null,strategies:null,protocol:null,renderers:["SVG","VML","Canvas"],renderer:null,rendererOptions:null,geometryType:null,drawn:false,initialize:function(a,b){this.EVENT_TYPES=OpenLayers.Layer.Vector.prototype.EVENT_TYPES.concat(OpenLayers.Layer.prototype.EVENT_TYPES);OpenLayers.Layer.prototype.initialize.apply(this,arguments);(!this.renderer||!this.renderer.supported())&&this.assignRenderer();if(!this.renderer||!this.renderer.supported())this.renderer=null,this.displayError();
if(!this.styleMap)this.styleMap=new OpenLayers.StyleMap;this.features=[];this.selectedFeatures=[];this.unrenderedFeatures={};if(this.strategies)for(var c=0,d=this.strategies.length;c<d;c++)this.strategies[c].setLayer(this)},destroy:function(){if(this.strategies){var a,b,c;for(b=0,c=this.strategies.length;b<c;b++)a=this.strategies[b],a.autoDestroy&&a.destroy();this.strategies=null}if(this.protocol)this.protocol.autoDestroy&&this.protocol.destroy(),this.protocol=null;this.destroyFeatures();this.unrenderedFeatures=
this.selectedFeatures=this.features=null;this.renderer&&this.renderer.destroy();this.drawn=this.geometryType=this.renderer=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},clone:function(a){a==null&&(a=new OpenLayers.Layer.Vector(this.name,this.getOptions()));for(var a=OpenLayers.Layer.prototype.clone.apply(this,[a]),b=this.features,c=b.length,d=Array(c),e=0;e<c;++e)d[e]=b[e].clone();a.features=d;return a},refresh:function(a){this.calculateInRange()&&this.visibility&&this.events.triggerEvent("refresh",
a)},assignRenderer:function(){for(var a=0,b=this.renderers.length;a<b;a++){var c=this.renderers[a];if((c=typeof c=="function"?c:OpenLayers.Renderer[c])&&c.prototype.supported()){this.renderer=new c(this.div,this.rendererOptions);break}}},displayError:function(){this.reportError&&OpenLayers.Console.userError(OpenLayers.i18n("browserNotSupported",{renderers:this.renderers.join("\n")}))},setMap:function(a){OpenLayers.Layer.prototype.setMap.apply(this,arguments);this.renderer?(this.renderer.map=this.map,
this.renderer.setSize(this.map.getSize())):this.map.removeLayer(this)},afterAdd:function(){if(this.strategies){var a,b,c;for(b=0,c=this.strategies.length;b<c;b++)a=this.strategies[b],a.autoActivate&&a.activate()}},removeMap:function(){this.drawn=false;if(this.strategies){var a,b,c;for(b=0,c=this.strategies.length;b<c;b++)a=this.strategies[b],a.autoActivate&&a.deactivate()}},onMapResize:function(){OpenLayers.Layer.prototype.onMapResize.apply(this,arguments);this.renderer.setSize(this.map.getSize())},
moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);var d=OpenLayers.Renderer.NG&&this.renderer instanceof OpenLayers.Renderer.NG;if(d)c||this.renderer.updateDimensions(b);else{var e=true;if(!c){this.renderer.root.style.visibility="hidden";this.div.style.left=-parseInt(this.map.layerContainerDiv.style.left)+"px";this.div.style.top=-parseInt(this.map.layerContainerDiv.style.top)+"px";e=this.renderer.setExtent(this.map.getExtent(),b);this.renderer.root.style.visibility="visible";
if(OpenLayers.IS_GECKO===true)this.div.scrollLeft=this.div.scrollLeft;if(!b&&e)for(var f in this.unrenderedFeatures){var g=this.unrenderedFeatures[f];this.drawFeature(g)}}}if(!this.drawn||!d&&(b||!e)){this.drawn=true;f=0;for(d=this.features.length;f<d;f++)this.renderer.locked=f!==d-1,g=this.features[f],this.drawFeature(g)}},redraw:function(){if(OpenLayers.Renderer.NG&&this.renderer instanceof OpenLayers.Renderer.NG)this.drawn=false;return OpenLayers.Layer.prototype.redraw.apply(this,arguments)},display:function(a){OpenLayers.Layer.prototype.display.apply(this,
arguments);var b=this.div.style.display;if(b!=this.renderer.root.style.display)this.renderer.root.style.display=b},addFeatures:function(a,b){OpenLayers.Util.isArray(a)||(a=[a]);var c=!b||!b.silent;if(c){var d={features:a};if(this.events.triggerEvent("beforefeaturesadded",d)===false)return;a=d.features}for(var d=[],e=0,f=a.length;e<f;e++){this.renderer.locked=e!=a.length-1?true:false;var g=a[e];if(this.geometryType&&!(g.geometry instanceof this.geometryType))throw OpenLayers.i18n("componentShouldBe",
{geomType:this.geometryType.prototype.CLASS_NAME});g.layer=this;if(!g.style&&this.style)g.style=OpenLayers.Util.extend({},this.style);if(c){if(this.events.triggerEvent("beforefeatureadded",{feature:g})===false)continue;this.preFeatureInsert(g)}d.push(g);this.features.push(g);this.drawFeature(g);c&&(this.events.triggerEvent("featureadded",{feature:g}),this.onFeatureInsert(g))}c&&this.events.triggerEvent("featuresadded",{features:d})},removeFeatures:function(a,b){if(a&&a.length!==0){if(a===this.features)return this.removeAllFeatures(b);
OpenLayers.Util.isArray(a)||(a=[a]);a===this.selectedFeatures&&(a=a.slice());var c=!b||!b.silent;c&&this.events.triggerEvent("beforefeaturesremoved",{features:a});for(var d=a.length-1;d>=0;d--){this.renderer.locked=d!=0&&a[d-1].geometry?true:false;var e=a[d];delete this.unrenderedFeatures[e.id];c&&this.events.triggerEvent("beforefeatureremoved",{feature:e});this.features=OpenLayers.Util.removeItem(this.features,e);e.layer=null;e.geometry&&this.renderer.eraseFeatures(e);OpenLayers.Util.indexOf(this.selectedFeatures,
e)!=-1&&OpenLayers.Util.removeItem(this.selectedFeatures,e);c&&this.events.triggerEvent("featureremoved",{feature:e})}c&&this.events.triggerEvent("featuresremoved",{features:a})}},removeAllFeatures:function(a){var a=!a||!a.silent,b=this.features;a&&this.events.triggerEvent("beforefeaturesremoved",{features:b});for(var c,d=b.length-1;d>=0;d--)c=b[d],a&&this.events.triggerEvent("beforefeatureremoved",{feature:c}),c.layer=null,a&&this.events.triggerEvent("featureremoved",{feature:c});this.renderer.clear();
this.features=[];this.unrenderedFeatures={};this.selectedFeatures=[];a&&this.events.triggerEvent("featuresremoved",{features:b})},destroyFeatures:function(a,b){if(a==void 0)a=this.features;if(a){this.removeFeatures(a,b);for(var c=a.length-1;c>=0;c--)a[c].destroy()}},drawFeature:function(a,b){if(this.drawn){if(typeof b!="object"){!b&&a.state===OpenLayers.State.DELETE&&(b="delete");var c=b||a.renderIntent;(b=a.style||this.style)||(b=this.styleMap.createSymbolizer(a,c))}c=this.renderer.drawFeature(a,
b);c===false||c===null?this.unrenderedFeatures[a.id]=a:delete this.unrenderedFeatures[a.id]}},eraseFeatures:function(a){this.renderer.eraseFeatures(a)},getFeatureFromEvent:function(a){if(!this.renderer)return OpenLayers.Console.error(OpenLayers.i18n("getFeatureError")),null;var b=null;(a=this.renderer.getFeatureIdFromEvent(a))&&(b=typeof a==="string"?this.getFeatureById(a):a);return b},getFeatureBy:function(a,b){for(var c=null,d=0,e=this.features.length;d<e;++d)if(this.features[d][a]==b){c=this.features[d];
break}return c},getFeatureById:function(a){return this.getFeatureBy("id",a)},getFeatureByFid:function(a){return this.getFeatureBy("fid",a)},getFeaturesByAttribute:function(a,b){var c,d,e=this.features.length,f=[];for(c=0;c<e;c++)(d=this.features[c])&&d.attributes&&d.attributes[a]===b&&f.push(d);return f},onFeatureInsert:function(){},preFeatureInsert:function(){},getDataExtent:function(){var a=null,b=this.features;if(b&&b.length>0)for(var c=null,d=0,e=b.length;d<e;d++)if(c=b[d].geometry)a===null&&
(a=new OpenLayers.Bounds),a.extend(c.getBounds());return a},CLASS_NAME:"OpenLayers.Layer.Vector"});
OpenLayers.Layer.PointTrack=OpenLayers.Class(OpenLayers.Layer.Vector,{dataFrom:null,styleFrom:null,initialize:function(a,b){OpenLayers.Layer.Vector.prototype.initialize.apply(this,arguments)},addNodes:function(a,b){if(a.length<2)OpenLayers.Console.error("At least two point features have to be added to createa line from");else{for(var c=Array(a.length-1),d,e,f,g=0,h=a.length;g<h;g++){d=a[g];if(f=d.geometry){if(f.CLASS_NAME!="OpenLayers.Geometry.Point"){OpenLayers.Console.error("Only features with point geometries are supported.");
return}}else f=d.lonlat,f=new OpenLayers.Geometry.Point(f.lon,f.lat);if(g>0){d=this.dataFrom!=null?a[g+this.dataFrom].data||a[g+this.dataFrom].attributes:null;var i=this.styleFrom!=null?a[g+this.styleFrom].style:null;e=new OpenLayers.Geometry.LineString([e,f]);c[g-1]=new OpenLayers.Feature.Vector(e,d,i)}e=f}this.addFeatures(c,b)}},CLASS_NAME:"OpenLayers.Layer.PointTrack"});OpenLayers.Layer.PointTrack.SOURCE_NODE=-1;OpenLayers.Layer.PointTrack.TARGET_NODE=0;
OpenLayers.Layer.PointTrack.dataFrom={SOURCE_NODE:-1,TARGET_NODE:0};OpenLayers.Protocol.WFS=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Protocol.WFS.DEFAULTS),b=OpenLayers.Protocol.WFS["v"+a.version.replace(/\./g,"_")];if(!b)throw"Unsupported WFS version: "+a.version;return new b(a)};
OpenLayers.Protocol.WFS.fromWMSLayer=function(a,b){var c,d;c=a.params.LAYERS;c=(OpenLayers.Util.isArray(c)?c[0]:c).split(":");c.length>1&&(d=c[0]);c=c.pop();d={url:a.url,featureType:c,featurePrefix:d,srsName:a.projection&&a.projection.getCode()||a.map&&a.map.getProjectionObject().getCode(),version:"1.1.0"};return new OpenLayers.Protocol.WFS(OpenLayers.Util.applyDefaults(b,d))};OpenLayers.Protocol.WFS.DEFAULTS={version:"1.0.0"};
OpenLayers.Layer.Markers=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:false,markers:null,drawn:false,initialize:function(a,b){OpenLayers.Layer.prototype.initialize.apply(this,arguments);this.markers=[]},destroy:function(){this.clearMarkers();this.markers=null;OpenLayers.Layer.prototype.destroy.apply(this,arguments)},setOpacity:function(a){if(a!=this.opacity){this.opacity=a;for(var a=0,b=this.markers.length;a<b;a++)this.markers[a].setOpacity(this.opacity)}},moveTo:function(a,b,c){OpenLayers.Layer.prototype.moveTo.apply(this,
arguments);if(b||!this.drawn){for(var d=0,e=this.markers.length;d<e;d++)this.drawMarker(this.markers[d]);this.drawn=true}},addMarker:function(a){this.markers.push(a);this.opacity!=null&&a.setOpacity(this.opacity);if(this.map&&this.map.getExtent())a.map=this.map,this.drawMarker(a)},removeMarker:function(a){this.markers&&this.markers.length&&(OpenLayers.Util.removeItem(this.markers,a),a.erase())},clearMarkers:function(){if(this.markers!=null)for(;this.markers.length>0;)this.removeMarker(this.markers[0])},
drawMarker:function(a){var b=this.map.getLayerPxFromLonLat(a.lonlat);b==null?a.display(false):a.isDrawn()?a.icon&&a.icon.moveTo(b):this.div.appendChild(a.draw(b))},getDataExtent:function(){var a=null;if(this.markers&&this.markers.length>0)for(var a=new OpenLayers.Bounds,b=0,c=this.markers.length;b<c;b++)a.extend(this.markers[b].lonlat);return a},CLASS_NAME:"OpenLayers.Layer.Markers"});
OpenLayers.Control.Pan=OpenLayers.Class(OpenLayers.Control,{slideFactor:50,slideRatio:null,direction:null,type:OpenLayers.Control.TYPE_BUTTON,initialize:function(a,b){this.direction=a;this.CLASS_NAME+=this.direction;OpenLayers.Control.prototype.initialize.apply(this,[b])},trigger:function(){var a=OpenLayers.Function.bind(function(a){return this.slideRatio?this.map.getSize()[a]*this.slideRatio:this.slideFactor},this);switch(this.direction){case OpenLayers.Control.Pan.NORTH:this.map.pan(0,-a("h"));
break;case OpenLayers.Control.Pan.SOUTH:this.map.pan(0,a("h"));break;case OpenLayers.Control.Pan.WEST:this.map.pan(-a("w"),0);break;case OpenLayers.Control.Pan.EAST:this.map.pan(a("w"),0)}},CLASS_NAME:"OpenLayers.Control.Pan"});OpenLayers.Control.Pan.NORTH="North";OpenLayers.Control.Pan.SOUTH="South";OpenLayers.Control.Pan.EAST="East";OpenLayers.Control.Pan.WEST="West";
OpenLayers.Layer.WMS=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{service:"WMS",version:"1.1.1",request:"GetMap",styles:"",format:"image/jpeg"},reproject:false,isBaseLayer:true,encodeBBOX:false,noMagic:false,yx:{"EPSG:4326":true},initialize:function(a,b,c,d){var e=[],c=OpenLayers.Util.upperCaseObject(c);if(parseFloat(c.VERSION)>=1.3&&!c.EXCEPTIONS)c.EXCEPTIONS="INIMAGE";e.push(a,b,c,d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);OpenLayers.Util.applyDefaults(this.params,OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS));
if(!this.noMagic&&this.params.TRANSPARENT&&this.params.TRANSPARENT.toString().toLowerCase()=="true"){if(d==null||!d.isBaseLayer)this.isBaseLayer=false;if(this.params.FORMAT=="image/jpeg")this.params.FORMAT=OpenLayers.Util.alphaHack()?"image/gif":"image/png"}},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)},clone:function(a){a==null&&(a=new OpenLayers.Layer.WMS(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,
[a])},reverseAxisOrder:function(){return parseFloat(this.params.VERSION)>=1.3&&!!this.yx[this.map.getProjectionObject().getCode()]},getURL:function(a){var a=this.adjustBounds(a),b=this.getImageSize(),c={},d=this.reverseAxisOrder();c.BBOX=this.encodeBBOX?a.toBBOX(null,d):a.toArray(d);c.WIDTH=b.w;c.HEIGHT=b.h;return this.getFullRequestString(c)},mergeNewParams:function(a){a=[OpenLayers.Util.upperCaseObject(a)];return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,a)},getFullRequestString:function(a,
b){var c=this.map.getProjectionObject(),c=this.projection&&this.projection.equals(c)?this.projection.getCode():c.getCode(),c=c=="none"?null:c;parseFloat(this.params.VERSION)>=1.3?this.params.CRS=c:this.params.SRS=c;if(typeof this.params.TRANSPARENT=="boolean")a.TRANSPARENT=this.params.TRANSPARENT?"TRUE":"FALSE";return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(this,arguments)},CLASS_NAME:"OpenLayers.Layer.WMS"});
OpenLayers.Layer.WMS.Untiled=OpenLayers.Class(OpenLayers.Layer.WMS,{singleTile:true,initialize:function(a,b,c,d){OpenLayers.Layer.WMS.prototype.initialize.apply(this,arguments);OpenLayers.Console.warn("The OpenLayers.Layer.WMS.Untiled class is deprecated and will be removed in 3.0. Instead, you should use the normal OpenLayers.Layer.WMS class, passing it the option 'singleTile' as true.")},clone:function(a){a==null&&(a=new OpenLayers.Layer.WMS.Untiled(this.name,this.url,this.params,this.getOptions()));
return a=OpenLayers.Layer.WMS.prototype.clone.apply(this,[a])},CLASS_NAME:"OpenLayers.Layer.WMS.Untiled"});OpenLayers.Geometry.Surface=OpenLayers.Class(OpenLayers.Geometry,{initialize:function(){OpenLayers.Geometry.prototype.initialize.apply(this,arguments)},CLASS_NAME:"OpenLayers.Geometry.Surface"});OpenLayers.Format.ArcXML.Features=OpenLayers.Class(OpenLayers.Format.XML,{initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){return(new OpenLayers.Format.ArcXML).read(a).features.feature}});
OpenLayers.Control.Snapping=OpenLayers.Class(OpenLayers.Control,{EVENT_TYPES:["beforesnap","snap","unsnap"],DEFAULTS:{tolerance:10,node:true,edge:true,vertex:true},greedy:true,precedence:["node","vertex","edge"],resolution:null,geoToleranceCache:null,layer:null,feature:null,point:null,initialize:function(a){Array.prototype.push.apply(this.EVENT_TYPES,OpenLayers.Control.prototype.EVENT_TYPES);OpenLayers.Control.prototype.initialize.apply(this,[a]);this.options=a||{};this.options.layer&&this.setLayer(this.options.layer);
a=OpenLayers.Util.extend({},this.options.defaults);this.defaults=OpenLayers.Util.applyDefaults(a,this.DEFAULTS);this.setTargets(this.options.targets);this.targets.length===0&&this.layer&&this.addTargetLayer(this.layer);this.geoToleranceCache={}},setLayer:function(a){this.active?(this.deactivate(),this.layer=a,this.activate()):this.layer=a},setTargets:function(a){this.targets=[];if(a&&a.length)for(var b,c=0,d=a.length;c<d;++c)b=a[c],b instanceof OpenLayers.Layer.Vector?this.addTargetLayer(b):this.addTarget(b)},
addTargetLayer:function(a){this.addTarget({layer:a})},addTarget:function(a){a=OpenLayers.Util.applyDefaults(a,this.defaults);a.nodeTolerance=a.nodeTolerance||a.tolerance;a.vertexTolerance=a.vertexTolerance||a.tolerance;a.edgeTolerance=a.edgeTolerance||a.tolerance;this.targets.push(a)},removeTargetLayer:function(a){for(var b,c=this.targets.length-1;c>=0;--c)b=this.targets[c],b.layer===a&&this.removeTarget(b)},removeTarget:function(a){return OpenLayers.Util.removeItem(this.targets,a)},activate:function(){var a=
OpenLayers.Control.prototype.activate.call(this);if(a&&this.layer&&this.layer.events)this.layer.events.on({sketchstarted:this.onSketchModified,sketchmodified:this.onSketchModified,vertexmodified:this.onVertexModified,scope:this});return a},deactivate:function(){var a=OpenLayers.Control.prototype.deactivate.call(this);a&&this.layer&&this.layer.events&&this.layer.events.un({sketchstarted:this.onSketchModified,sketchmodified:this.onSketchModified,vertexmodified:this.onVertexModified,scope:this});this.point=
this.feature=null;return a},onSketchModified:function(a){this.feature=a.feature;this.considerSnapping(a.vertex,a.vertex)},onVertexModified:function(a){this.feature=a.feature;var b=this.layer.map.getLonLatFromViewPortPx(a.pixel);this.considerSnapping(a.vertex,new OpenLayers.Geometry.Point(b.lon,b.lat))},considerSnapping:function(a,b){for(var c={rank:Number.POSITIVE_INFINITY,dist:Number.POSITIVE_INFINITY,x:null,y:null},d=false,e,f,g=0,h=this.targets.length;g<h;++g)if(f=this.targets[g],e=this.testTarget(f,
b))if(this.greedy){c=e;c.target=f;d=true;break}else if(e.rank<c.rank||e.rank===c.rank&&e.dist<c.dist)c=e,c.target=f,d=true;if(d)this.events.triggerEvent("beforesnap",{point:a,x:c.x,y:c.y,distance:c.dist,layer:c.target.layer,snapType:this.precedence[c.rank]})!==false?(a.x=c.x,a.y=c.y,this.point=a,this.events.triggerEvent("snap",{point:a,snapType:this.precedence[c.rank],layer:c.target.layer,distance:c.dist})):d=false;if(this.point&&!d)a.x=b.x,a.y=b.y,this.point=null,this.events.triggerEvent("unsnap",
{point:a})},testTarget:function(a,b){var c=this.layer.map.getResolution();if("minResolution"in a&&c<a.minResolution)return null;if("maxResolution"in a&&c>=a.maxResolution)return null;for(var c={node:this.getGeoTolerance(a.nodeTolerance,c),vertex:this.getGeoTolerance(a.vertexTolerance,c),edge:this.getGeoTolerance(a.edgeTolerance,c)},d=Math.max(c.node,c.vertex,c.edge),e={rank:Number.POSITIVE_INFINITY,dist:Number.POSITIVE_INFINITY},f=false,g=a.layer.features,h,i,j,k,l,m,n=this.precedence.length,o=new OpenLayers.LonLat(b.x,
b.y),r=0,q=g.length;r<q;++r)if(h=g[r],h!==this.feature&&!h._sketch&&h.state!==OpenLayers.State.DELETE&&(!a.filter||a.filter.evaluate(h.attributes))&&h.atPoint(o,d,d))for(var p=0,s=Math.min(e.rank+1,n);p<s;++p)if(i=this.precedence[p],a[i])if(i==="edge"){if(j=h.geometry.distanceTo(b,{details:true}),l=j.distance,l<=c[i]&&l<e.dist){e={rank:p,dist:l,x:j.x0,y:j.y0};f=true;break}}else{j=h.geometry.getVertices(i==="node");m=false;for(var u=0,v=j.length;u<v;++u)if(k=j[u],l=k.distanceTo(b),l<=c[i]&&(p<e.rank||
p===e.rank&&l<e.dist))e={rank:p,dist:l,x:k.x,y:k.y},m=f=true;if(m)break}return f?e:null},getGeoTolerance:function(a,b){if(b!==this.resolution)this.resolution=b,this.geoToleranceCache={};var c=this.geoToleranceCache[a];c===void 0&&(c=a*b,this.geoToleranceCache[a]=c);return c},destroy:function(){this.active&&this.deactivate();delete this.layer;delete this.targets;OpenLayers.Control.prototype.destroy.call(this)},CLASS_NAME:"OpenLayers.Control.Snapping"});
OpenLayers.Format.CSWGetDomain=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Format.CSWGetDomain.DEFAULTS),b=OpenLayers.Format.CSWGetDomain["v"+a.version.replace(/\./g,"_")];if(!b)throw"Unsupported CSWGetDomain version: "+a.version;return new b(a)};OpenLayers.Format.CSWGetDomain.DEFAULTS={version:"2.0.2"};
OpenLayers.Format.CSWGetDomain.v2_0_2=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",csw:"http://www.opengis.net/cat/csw/2.0.2"},defaultPrefix:"csw",version:"2.0.2",schemaLocation:"http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",PropertyName:null,ParameterName:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a==
"string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,b);return b},readers:{csw:{GetDomainResponse:function(a,b){this.readChildNodes(a,b)},DomainValues:function(a,b){if(!OpenLayers.Util.isArray(b.DomainValues))b.DomainValues=[];for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;this.readChildNodes(a,d);b.DomainValues.push(d)},PropertyName:function(a,b){b.PropertyName=this.getChildValue(a)},ParameterName:function(a,
b){b.ParameterName=this.getChildValue(a)},ListOfValues:function(a,b){if(!OpenLayers.Util.isArray(b.ListOfValues))b.ListOfValues=[];this.readChildNodes(a,b.ListOfValues)},Value:function(a,b){for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;d.value=this.getChildValue(a);b.push({Value:d})},ConceptualScheme:function(a,b){b.ConceptualScheme={};this.readChildNodes(a,b.ConceptualScheme)},Name:function(a,b){b.Name=this.getChildValue(a)},Document:function(a,b){b.Document=this.getChildValue(a)},
Authority:function(a,b){b.Authority=this.getChildValue(a)},RangeOfValues:function(a,b){b.RangeOfValues={};this.readChildNodes(a,b.RangeOfValues)},MinValue:function(a,b){for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;d.value=this.getChildValue(a);b.MinValue=d},MaxValue:function(a,b){for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].nodeValue;d.value=this.getChildValue(a);b.MaxValue=d}}},write:function(a){a=this.writeNode("csw:GetDomain",a);return OpenLayers.Format.XML.prototype.write.apply(this,
[a])},writers:{csw:{GetDomain:function(a){var b=this.createElementNSPlus("csw:GetDomain",{attributes:{service:"CSW",version:this.version}});if(a.PropertyName||this.PropertyName)this.writeNode("csw:PropertyName",a.PropertyName||this.PropertyName,b);else if(a.ParameterName||this.ParameterName)this.writeNode("csw:ParameterName",a.ParameterName||this.ParameterName,b);this.readChildNodes(b,a);return b},PropertyName:function(a){return this.createElementNSPlus("csw:PropertyName",{value:a})},ParameterName:function(a){return this.createElementNSPlus("csw:ParameterName",
{value:a})}}},CLASS_NAME:"OpenLayers.Format.CSWGetDomain.v2_0_2"});
OpenLayers.Date={toISOString:function(){if("toISOString"in Date.prototype)return function(a){return a.toISOString()};else{var a=function(a,c){for(var d=a+"";d.length<c;)d="0"+d;return d};return function(b){return isNaN(b.getTime())?"Invalid Date":b.getUTCFullYear()+"-"+a(b.getUTCMonth()+1,2)+"-"+a(b.getUTCDate(),2)+"T"+a(b.getUTCHours(),2)+":"+a(b.getUTCMinutes(),2)+":"+a(b.getUTCSeconds(),2)+"."+a(b.getUTCMilliseconds(),3)+"Z"}}}(),parse:function(a){var b;if((a=a.match(/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{1,2}):(\d{2}):(\d{2}(?:\.\d+)?)(Z|(?:[+-]\d{1,2}(?::(\d{2}))?)))?$/))&&
(a[1]||a[7])){b=parseInt(a[1],10)||0;var c=parseInt(a[2],10)-1||0,d=parseInt(a[3],10)||1;b=new Date(Date.UTC(b,c,d));if(c=a[7]){var d=parseInt(a[4],10),e=parseInt(a[5],10),f=parseFloat(a[6]),g=f|0,f=Math.round(1E3*(f-g));b.setUTCHours(d,e,g,f);c!=="Z"&&(c=parseInt(c,10),a=parseInt(a[8],10)||0,b=new Date(b.getTime()+-1E3*(60*c*60+a*60)))}}else b=new Date("invalid");return b}};
(function(){function a(){this._object=f&&!i?new f:new window.ActiveXObject("Microsoft.XMLHTTP");this._listeners=[]}function b(){return new a}function c(a){b.onreadystatechange&&b.onreadystatechange.apply(a);a.dispatchEvent({type:"readystatechange",bubbles:false,cancelable:false,timeStamp:new Date+0})}function d(a){try{a.responseText=a._object.responseText}catch(b){}try{var c=a._object,d=c.responseXML,e=c.responseText;if(h&&e&&d&&!d.documentElement&&c.getResponseHeader("Content-Type").match(/[^\/]+\/[^\+]+\+xml/))d=
new window.ActiveXObject("Microsoft.XMLDOM"),d.async=false,d.validateOnParse=false,d.loadXML(e);a.responseXML=d&&(h&&d.parseError!=0||!d.documentElement||d.documentElement&&d.documentElement.tagName=="parsererror")?null:d}catch(f){}try{a.status=a._object.status}catch(g){}try{a.statusText=a._object.statusText}catch(i){}}function e(a){a._object.onreadystatechange=new window.Function}var f=window.XMLHttpRequest,g=!!window.controllers,h=window.document.all&&!window.opera,i=h&&window.navigator.userAgent.match(/MSIE 7.0/);
b.prototype=a.prototype;if(g&&f.wrapped)b.wrapped=f.wrapped;b.UNSENT=0;b.OPENED=1;b.HEADERS_RECEIVED=2;b.LOADING=3;b.DONE=4;b.prototype.readyState=b.UNSENT;b.prototype.responseText="";b.prototype.responseXML=null;b.prototype.status=0;b.prototype.statusText="";b.prototype.priority="NORMAL";b.prototype.onreadystatechange=null;b.onreadystatechange=null;b.onopen=null;b.onsend=null;b.onabort=null;b.prototype.open=function(a,f,i,m,n){delete this._headers;arguments.length<3&&(i=true);this._async=i;var o=
this,r=this.readyState,q;h&&i&&(q=function(){r!=b.DONE&&(e(o),o.abort())},window.attachEvent("onunload",q));b.onopen&&b.onopen.apply(this,arguments);arguments.length>4?this._object.open(a,f,i,m,n):arguments.length>3?this._object.open(a,f,i,m):this._object.open(a,f,i);this.readyState=b.OPENED;c(this);this._object.onreadystatechange=function(){if(!g||i)o.readyState=o._object.readyState,d(o),o._aborted?o.readyState=b.UNSENT:(o.readyState==b.DONE&&(delete o._data,e(o),h&&i&&window.detachEvent("onunload",
q)),r!=o.readyState&&c(o),r=o.readyState)}};b.prototype.send=function(a){b.onsend&&b.onsend.apply(this,arguments);arguments.length||(a=null);a&&a.nodeType&&(a=window.XMLSerializer?(new window.XMLSerializer).serializeToString(a):a.xml,oRequest._headers["Content-Type"]||oRequest._object.setRequestHeader("Content-Type","application/xml"));this._data=a;this._object.send(this._data);if(g&&!this._async){this.readyState=b.OPENED;for(d(this);this.readyState<b.DONE;)if(this.readyState++,c(this),this._aborted)break}};
b.prototype.abort=function(){b.onabort&&b.onabort.apply(this,arguments);if(this.readyState>b.UNSENT)this._aborted=true;this._object.abort();e(this);this.readyState=b.UNSENT;delete this._data};b.prototype.getAllResponseHeaders=function(){return this._object.getAllResponseHeaders()};b.prototype.getResponseHeader=function(a){return this._object.getResponseHeader(a)};b.prototype.setRequestHeader=function(a,b){if(!this._headers)this._headers={};this._headers[a]=b;return this._object.setRequestHeader(a,
b)};b.prototype.addEventListener=function(a,b,c){for(var d=0,e;e=this._listeners[d];d++)if(e[0]==a&&e[1]==b&&e[2]==c)return;this._listeners.push([a,b,c])};b.prototype.removeEventListener=function(a,b,c){for(var d=0,e;e=this._listeners[d];d++)if(e[0]==a&&e[1]==b&&e[2]==c)break;e&&this._listeners.splice(d,1)};b.prototype.dispatchEvent=function(a){a={type:a.type,target:this,currentTarget:this,eventPhase:2,bubbles:a.bubbles,cancelable:a.cancelable,timeStamp:a.timeStamp,stopPropagation:function(){},preventDefault:function(){},
initEvent:function(){}};a.type=="readystatechange"&&this.onreadystatechange&&(this.onreadystatechange.handleEvent||this.onreadystatechange).apply(this,[a]);for(var b=0,c;c=this._listeners[b];b++)c[0]==a.type&&!c[2]&&(c[1].handleEvent||c[1]).apply(this,[a])};b.prototype.toString=function(){return"[object XMLHttpRequest]"};b.toString=function(){return"[XMLHttpRequest]"};if(!window.Function.prototype.apply)window.Function.prototype.apply=function(a,b){b||(b=[]);a.__func=this;a.__func(b[0],b[1],b[2],
b[3],b[4]);delete a.__func};OpenLayers.Request.XMLHttpRequest=b})();
OpenLayers.Format.KML=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{kml:"http://www.opengis.net/kml/2.2",gx:"http://www.google.com/kml/ext/2.2"},kmlns:"http://earth.google.com/kml/2.0",placemarksDesc:"No description available",foldersName:"OpenLayers export",foldersDesc:"Exported on "+new Date,extractAttributes:true,extractStyles:false,extractTracks:false,trackAttributes:null,internalns:null,features:null,styles:null,styleBaseUrl:"",fetched:null,maxDepth:0,initialize:function(a){this.regExes=
{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g,kmlColor:/(\w{2})(\w{2})(\w{2})(\w{2})/,kmlIconPalette:/root:\/\/icons\/palette-(\d+)(\.\w+)/,straightBracket:/\$\[(.*?)\]/g};this.externalProjection=new OpenLayers.Projection("EPSG:4326");OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){this.features=[];this.styles={};this.fetched={};return this.parseData(a,{depth:0,styleBaseUrl:this.styleBaseUrl})},parseData:function(a,b){typeof a=="string"&&
(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));for(var c=["Link","NetworkLink","Style","StyleMap","Placemark"],d=0,e=c.length;d<e;++d){var f=c[d],g=this.getElementsByTagNameNS(a,"*",f);if(g.length!=0)switch(f.toLowerCase()){case "link":case "networklink":this.parseLinks(g,b);break;case "style":this.extractStyles&&this.parseStyles(g,b);break;case "stylemap":this.extractStyles&&this.parseStyleMaps(g,b);break;case "placemark":this.parseFeatures(g,b)}}return this.features},parseLinks:function(a,
b){if(b.depth>=this.maxDepth)return false;var c=OpenLayers.Util.extend({},b);c.depth++;for(var d=0,e=a.length;d<e;d++){var f=this.parseProperty(a[d],"*","href");f&&!this.fetched[f]&&(this.fetched[f]=true,(f=this.fetchLink(f))&&this.parseData(f,c))}},fetchLink:function(a){if(a=OpenLayers.Request.GET({url:a,async:false}))return a.responseText},parseStyles:function(a,b){for(var c=0,d=a.length;c<d;c++){var e=this.parseStyle(a[c]);e&&(this.styles[(b.styleBaseUrl||"")+"#"+e.id]=e)}},parseKmlColor:function(a){var b=
null;a&&(a=a.match(this.regExes.kmlColor))&&(b={color:"#"+a[4]+a[3]+a[2],opacity:parseInt(a[1],16)/255});return b},parseStyle:function(a){for(var b={},c=["LineStyle","PolyStyle","IconStyle","BalloonStyle","LabelStyle"],d,e,f=0,g=c.length;f<g;++f)if(d=c[f],e=this.getElementsByTagNameNS(a,"*",d)[0])switch(d.toLowerCase()){case "linestyle":d=this.parseProperty(e,"*","color");if(d=this.parseKmlColor(d))b.strokeColor=d.color,b.strokeOpacity=d.opacity;(d=this.parseProperty(e,"*","width"))&&(b.strokeWidth=
d);break;case "polystyle":d=this.parseProperty(e,"*","color");if(d=this.parseKmlColor(d))b.fillOpacity=d.opacity,b.fillColor=d.color;this.parseProperty(e,"*","fill")=="0"&&(b.fillColor="none");this.parseProperty(e,"*","outline")=="0"&&(b.strokeWidth="0");break;case "iconstyle":var h=parseFloat(this.parseProperty(e,"*","scale")||1);d=32*h;var i=32*h,j=this.getElementsByTagNameNS(e,"*","Icon")[0];if(j){var k=this.parseProperty(j,"*","href");if(k){var l=this.parseProperty(j,"*","w"),m=this.parseProperty(j,
"*","h");OpenLayers.String.startsWith(k,"http://maps.google.com/mapfiles/kml")&&!l&&!m&&(m=l=64,h/=2);l=l||m;m=m||l;l&&(d=parseInt(l)*h);m&&(i=parseInt(m)*h);if(m=k.match(this.regExes.kmlIconPalette))l=m[1],m=m[2],k=this.parseProperty(j,"*","x"),j=this.parseProperty(j,"*","y"),k="http://maps.google.com/mapfiles/kml/pal"+l+"/icon"+((j?7-j/32:7)*8+(k?k/32:0))+m;b.graphicOpacity=1;b.externalGraphic=k}}if(e=this.getElementsByTagNameNS(e,"*","hotSpot")[0])k=parseFloat(e.getAttribute("x")),j=parseFloat(e.getAttribute("y")),
l=e.getAttribute("xunits"),l=="pixels"?b.graphicXOffset=-k*h:l=="insetPixels"?b.graphicXOffset=-d+k*h:l=="fraction"&&(b.graphicXOffset=-d*k),e=e.getAttribute("yunits"),e=="pixels"?b.graphicYOffset=-i+j*h+1:e=="insetPixels"?b.graphicYOffset=-(j*h)+1:e=="fraction"&&(b.graphicYOffset=-i*(1-j)+1);b.graphicWidth=d;b.graphicHeight=i;break;case "balloonstyle":(e=OpenLayers.Util.getXmlNodeValue(e))&&(b.balloonStyle=e.replace(this.regExes.straightBracket,"${$1}"));break;case "labelstyle":if(d=this.parseProperty(e,
"*","color"),d=this.parseKmlColor(d))b.fontColor=d.color,b.fontOpacity=d.opacity}!b.strokeColor&&b.fillColor&&(b.strokeColor=b.fillColor);if((a=a.getAttribute("id"))&&b)b.id=a;return b},parseStyleMaps:function(a,b){for(var c=0,d=a.length;c<d;c++)for(var e=a[c],f=this.getElementsByTagNameNS(e,"*","Pair"),e=e.getAttribute("id"),g=0,h=f.length;g<h;g++){var i=f[g],j=this.parseProperty(i,"*","key");(i=this.parseProperty(i,"*","styleUrl"))&&j=="normal"&&(this.styles[(b.styleBaseUrl||"")+"#"+e]=this.styles[(b.styleBaseUrl||
"")+i])}},parseFeatures:function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d],g=this.parseFeature.apply(this,[f]);if(g){if(this.extractStyles&&g.attributes&&g.attributes.styleUrl)g.style=this.getStyle(g.attributes.styleUrl,b);if(this.extractStyles){var h=this.getElementsByTagNameNS(f,"*","Style")[0];if(h&&(h=this.parseStyle(h)))g.style=OpenLayers.Util.extend(g.style,h)}if(this.extractTracks){if((f=this.getElementsByTagNameNS(f,this.namespaces.gx,"Track"))&&f.length>0)g={features:[],feature:g},
this.readNode(f[0],g),g.features.length>0&&c.push.apply(c,g.features)}else c.push(g)}else throw"Bad Placemark: "+d;}this.features=this.features.concat(c)},readers:{kml:{when:function(a,b){b.whens.push(OpenLayers.Date.parse(this.getChildValue(a)))},_trackPointAttribute:function(a,b){var c=a.nodeName.split(":").pop();b.attributes[c].push(this.getChildValue(a))}},gx:{Track:function(a,b){var c={whens:[],points:[],angles:[]};if(this.trackAttributes){var d;c.attributes={};for(var e=0,f=this.trackAttributes.length;e<
f;++e)if(d=this.trackAttributes[e],c.attributes[d]=[],!(d in this.readers.kml))this.readers.kml[d]=this.readers.kml._trackPointAttribute}this.readChildNodes(a,c);if(c.whens.length!==c.points.length)throw Error("gx:Track with unequal number of when ("+c.whens.length+") and gx:coord ("+c.points.length+") elements.");var g=c.angles.length>0;if(g&&c.whens.length!==c.angles.length)throw Error("gx:Track with unequal number of when ("+c.whens.length+") and gx:angles ("+c.angles.length+") elements.");for(var h,
i,e=0,f=c.whens.length;e<f;++e){h=b.feature.clone();h.fid=b.feature.fid||b.feature.id;i=c.points[e];h.geometry=i;if("z"in i)h.attributes.altitude=i.z;this.internalProjection&&this.externalProjection&&h.geometry.transform(this.externalProjection,this.internalProjection);if(this.trackAttributes){i=0;for(var j=this.trackAttributes.length;i<j;++i)h.attributes[d]=c.attributes[this.trackAttributes[i]][e]}h.attributes.when=c.whens[e];h.attributes.trackId=b.feature.id;if(g)i=c.angles[e],h.attributes.heading=
parseFloat(i[0]),h.attributes.tilt=parseFloat(i[1]),h.attributes.roll=parseFloat(i[2]);b.features.push(h)}},coord:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(/\s+/),d=new OpenLayers.Geometry.Point(c[0],c[1]);if(c.length>2)d.z=parseFloat(c[2]);b.points.push(d)},angles:function(a,b){var c=this.getChildValue(a).replace(this.regExes.trimSpace,"").split(/\s+/);b.angles.push(c)}}},parseFeature:function(a){for(var b=["MultiGeometry","Polygon","LineString","Point"],
c,d,e,f=0,g=b.length;f<g;++f)if(c=b[f],this.internalns=a.namespaceURI?a.namespaceURI:this.kmlns,d=this.getElementsByTagNameNS(a,this.internalns,c),d.length>0){(b=this.parseGeometry[c.toLowerCase()])?(e=b.apply(this,[d[0]]),this.internalProjection&&this.externalProjection&&e.transform(this.externalProjection,this.internalProjection)):OpenLayers.Console.error(OpenLayers.i18n("unsupportedGeometryType",{geomType:c}));break}var h;this.extractAttributes&&(h=this.parseAttributes(a));c=new OpenLayers.Feature.Vector(e,
h);a=a.getAttribute("id")||a.getAttribute("name");if(a!=null)c.fid=a;return c},getStyle:function(a,b){var c=OpenLayers.Util.removeTail(a),d=OpenLayers.Util.extend({},b);d.depth++;d.styleBaseUrl=c;!this.styles[a]&&!OpenLayers.String.startsWith(a,"#")&&d.depth<=this.maxDepth&&!this.fetched[c]&&(c=this.fetchLink(c))&&this.parseData(c,d);return OpenLayers.Util.extend({},this.styles[a])},parseGeometry:{point:function(a){var b=this.getElementsByTagNameNS(a,this.internalns,"coordinates"),a=[];if(b.length>
0)var c=b[0].firstChild.nodeValue,c=c.replace(this.regExes.removeSpace,""),a=c.split(",");b=null;if(a.length>1)a.length==2&&(a[2]=null),b=new OpenLayers.Geometry.Point(a[0],a[1],a[2]);else throw"Bad coordinate string: "+c;return b},linestring:function(a,b){var c=this.getElementsByTagNameNS(a,this.internalns,"coordinates"),d=null;if(c.length>0){for(var c=this.getChildValue(c[0]),c=c.replace(this.regExes.trimSpace,""),c=c.replace(this.regExes.trimComma,","),d=c.split(this.regExes.splitSpace),e=d.length,
f=Array(e),g,h,i=0;i<e;++i)if(g=d[i].split(","),h=g.length,h>1)g.length==2&&(g[2]=null),f[i]=new OpenLayers.Geometry.Point(g[0],g[1],g[2]);else throw"Bad LineString point coordinates: "+d[i];if(e)d=b?new OpenLayers.Geometry.LinearRing(f):new OpenLayers.Geometry.LineString(f);else throw"Bad LineString coordinates: "+c;}return d},polygon:function(a){var a=this.getElementsByTagNameNS(a,this.internalns,"LinearRing"),b=a.length,c=Array(b);if(b>0)for(var d=0,e=a.length;d<e;++d)if(b=this.parseGeometry.linestring.apply(this,
[a[d],true]))c[d]=b;else throw"Bad LinearRing geometry: "+d;return new OpenLayers.Geometry.Polygon(c)},multigeometry:function(a){for(var b,c=[],d=a.childNodes,e=0,f=d.length;e<f;++e)a=d[e],a.nodeType==1&&(b=this.parseGeometry[(a.prefix?a.nodeName.split(":")[1]:a.nodeName).toLowerCase()])&&c.push(b.apply(this,[a]));return new OpenLayers.Geometry.Collection(c)}},parseAttributes:function(a){var b={},c=a.getElementsByTagName("ExtendedData");c.length&&(b=this.parseExtendedData(c[0]));for(var d,e,f,a=a.childNodes,
c=0,g=a.length;c<g;++c)if(d=a[c],d.nodeType==1&&(e=d.childNodes,e.length>=1&&e.length<=3)){switch(e.length){case 1:f=e[0];break;case 2:f=e[0];e=e[1];f=f.nodeType==3||f.nodeType==4?f:e;break;default:f=e[1]}if(f.nodeType==3||f.nodeType==4)if(d=d.prefix?d.nodeName.split(":")[1]:d.nodeName,f=OpenLayers.Util.getXmlNodeValue(f))f=f.replace(this.regExes.trimSpace,""),b[d]=f}return b},parseExtendedData:function(a){var b={},c,d,e,f,g=a.getElementsByTagName("Data");for(c=0,d=g.length;c<d;c++){e=g[c];f=e.getAttribute("name");
var h={},i=e.getElementsByTagName("value");i.length&&(h.value=this.getChildValue(i[0]));e=e.getElementsByTagName("displayName");e.length&&(h.displayName=this.getChildValue(e[0]));b[f]=h}a=a.getElementsByTagName("SimpleData");for(c=0,d=a.length;c<d;c++)h={},e=a[c],f=e.getAttribute("name"),h.value=this.getChildValue(e),h.displayName=f,b[f]=h;return b},parseProperty:function(a,b,c){var d,a=this.getElementsByTagNameNS(a,b,c);try{d=OpenLayers.Util.getXmlNodeValue(a[0])}catch(e){d=null}return d},write:function(a){OpenLayers.Util.isArray(a)||
(a=[a]);for(var b=this.createElementNS(this.kmlns,"kml"),c=this.createFolderXML(),d=0,e=a.length;d<e;++d)c.appendChild(this.createPlacemarkXML(a[d]));b.appendChild(c);return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFolderXML:function(){var a=this.createElementNS(this.kmlns,"Folder");if(this.foldersName){var b=this.createElementNS(this.kmlns,"name"),c=this.createTextNode(this.foldersName);b.appendChild(c);a.appendChild(b)}this.foldersDesc&&(b=this.createElementNS(this.kmlns,"description"),
c=this.createTextNode(this.foldersDesc),b.appendChild(c),a.appendChild(b));return a},createPlacemarkXML:function(a){var b=this.createElementNS(this.kmlns,"name");b.appendChild(this.createTextNode(a.style&&a.style.label?a.style.label:a.attributes.name||a.id));var c=this.createElementNS(this.kmlns,"description");c.appendChild(this.createTextNode(a.attributes.description||this.placemarksDesc));var d=this.createElementNS(this.kmlns,"Placemark");a.fid!=null&&d.setAttribute("id",a.fid);d.appendChild(b);
d.appendChild(c);a=this.buildGeometryNode(a.geometry);d.appendChild(a);return d},buildGeometryNode:function(a){var b=a.CLASS_NAME,b=this.buildGeometry[b.substring(b.lastIndexOf(".")+1).toLowerCase()],c=null;b&&(c=b.apply(this,[a]));return c},buildGeometry:{point:function(a){var b=this.createElementNS(this.kmlns,"Point");b.appendChild(this.buildCoordinatesNode(a));return b},multipoint:function(a){return this.buildGeometry.collection.apply(this,[a])},linestring:function(a){var b=this.createElementNS(this.kmlns,
"LineString");b.appendChild(this.buildCoordinatesNode(a));return b},multilinestring:function(a){return this.buildGeometry.collection.apply(this,[a])},linearring:function(a){var b=this.createElementNS(this.kmlns,"LinearRing");b.appendChild(this.buildCoordinatesNode(a));return b},polygon:function(a){for(var b=this.createElementNS(this.kmlns,"Polygon"),a=a.components,c,d,e=0,f=a.length;e<f;++e)c=e==0?"outerBoundaryIs":"innerBoundaryIs",c=this.createElementNS(this.kmlns,c),d=this.buildGeometry.linearring.apply(this,
[a[e]]),c.appendChild(d),b.appendChild(c);return b},multipolygon:function(a){return this.buildGeometry.collection.apply(this,[a])},collection:function(a){for(var b=this.createElementNS(this.kmlns,"MultiGeometry"),c,d=0,e=a.components.length;d<e;++d)(c=this.buildGeometryNode.apply(this,[a.components[d]]))&&b.appendChild(c);return b}},buildCoordinatesNode:function(a){var b=this.createElementNS(this.kmlns,"coordinates"),c;if(c=a.components){for(var d=c.length,e=Array(d),f=0;f<d;++f)a=c[f],e[f]=this.buildCoordinates(a);
c=e.join(" ")}else c=this.buildCoordinates(a);c=this.createTextNode(c);b.appendChild(c);return b},buildCoordinates:function(a){this.internalProjection&&this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));return a.x+","+a.y},CLASS_NAME:"OpenLayers.Format.KML"});OpenLayers.Format.WMSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.1.1",profile:null,CLASS_NAME:"OpenLayers.Format.WMSCapabilities"});
OpenLayers.Format.WMSCapabilities.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{wms:"http://www.opengis.net/wms",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"wms",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));var b=a;if(a&&a.nodeType==9)a=a.documentElement;var c={};this.readNode(a,c);c.service===void 0?(a=
new OpenLayers.Format.OGCExceptionReport,c.error=a.read(b)):this.postProcessLayers(c);return c},postProcessLayers:function(a){if(a.capability){a.capability.layers=[];for(var b=a.capability.nestedLayers,c=0,d=b.length;c<d;++c)this.processLayer(a.capability,b[c])}},processLayer:function(a,b,c){if(b.formats===void 0)b.formats=a.request.getmap.formats;var d,e;if(c){b.styles=b.styles.concat(c.styles);var f="queryable,cascaded,fixedWidth,fixedHeight,opaque,noSubsets,llbbox,minScale,maxScale,attribution".split(","),
g=["srs","bbox","dimensions","authorityURLs"],h;for(d=0,e=f.length;d<e;d++)h=f[d],h in c&&(b[h]==null&&(b[h]=c[h]),b[h]==null&&(OpenLayers.Util.indexOf(["cascaded","fixedWidth","fixedHeight"],h)!=-1&&(b[h]=0),OpenLayers.Util.indexOf(["queryable","opaque","noSubsets"],h)!=-1&&(b[h]=false)));for(d=0,e=g.length;d<e;d++)h=g[d],b[h]=OpenLayers.Util.applyDefaults(b[h],c[h])}for(d=0,e=b.nestedLayers.length;d<e;d++)this.processLayer(a,b.nestedLayers[d],b);b.name&&a.layers.push(b)},readers:{wms:{Service:function(a,
b){b.service={};this.readChildNodes(a,b.service)},Name:function(a,b){b.name=this.getChildValue(a)},Title:function(a,b){b.title=this.getChildValue(a)},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)},BoundingBox:function(a){var b={};b.bbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))];a={x:parseFloat(a.getAttribute("resx")),y:parseFloat(a.getAttribute("resy"))};if(!isNaN(a.x)||!isNaN(a.y))b.res=
a;return b},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,this.namespaces.xlink,"href")},ContactInformation:function(a,b){b.contactInformation={};this.readChildNodes(a,b.contactInformation)},ContactPersonPrimary:function(a,b){b.personPrimary={};this.readChildNodes(a,b.personPrimary)},ContactPerson:function(a,b){b.person=this.getChildValue(a)},ContactOrganization:function(a,b){b.organization=this.getChildValue(a)},ContactPosition:function(a,b){b.position=this.getChildValue(a)},ContactAddress:function(a,
b){b.contactAddress={};this.readChildNodes(a,b.contactAddress)},AddressType:function(a,b){b.type=this.getChildValue(a)},Address:function(a,b){b.address=this.getChildValue(a)},City:function(a,b){b.city=this.getChildValue(a)},StateOrProvince:function(a,b){b.stateOrProvince=this.getChildValue(a)},PostCode:function(a,b){b.postcode=this.getChildValue(a)},Country:function(a,b){b.country=this.getChildValue(a)},ContactVoiceTelephone:function(a,b){b.phone=this.getChildValue(a)},ContactFacsimileTelephone:function(a,
b){b.fax=this.getChildValue(a)},ContactElectronicMailAddress:function(a,b){b.email=this.getChildValue(a)},Fees:function(a,b){var c=this.getChildValue(a);if(c&&c.toLowerCase()!="none")b.fees=c},AccessConstraints:function(a,b){var c=this.getChildValue(a);if(c&&c.toLowerCase()!="none")b.accessConstraints=c},Capability:function(a,b){b.capability={nestedLayers:[]};this.readChildNodes(a,b.capability)},Request:function(a,b){b.request={};this.readChildNodes(a,b.request)},GetCapabilities:function(a,b){b.getcapabilities=
{formats:[]};this.readChildNodes(a,b.getcapabilities)},Format:function(a,b){OpenLayers.Util.isArray(b.formats)?b.formats.push(this.getChildValue(a)):b.format=this.getChildValue(a)},DCPType:function(a,b){this.readChildNodes(a,b)},HTTP:function(a,b){this.readChildNodes(a,b)},Get:function(a,b){b.get={};this.readChildNodes(a,b.get);if(!b.href)b.href=b.get.href},Post:function(a,b){b.post={};this.readChildNodes(a,b.post);if(!b.href)b.href=b.get.href},GetMap:function(a,b){b.getmap={formats:[]};this.readChildNodes(a,
b.getmap)},GetFeatureInfo:function(a,b){b.getfeatureinfo={formats:[]};this.readChildNodes(a,b.getfeatureinfo)},Exception:function(a,b){b.exception={formats:[]};this.readChildNodes(a,b.exception)},Layer:function(a,b){var c=a.getAttributeNode("queryable"),d=c&&c.specified?a.getAttribute("queryable"):null,e=(c=a.getAttributeNode("cascaded"))&&c.specified?a.getAttribute("cascaded"):null,c=(c=a.getAttributeNode("opaque"))&&c.specified?a.getAttribute("opaque"):null,f=a.getAttribute("noSubsets"),g=a.getAttribute("fixedWidth"),
h=a.getAttribute("fixedHeight"),d={nestedLayers:[],styles:[],srs:{},metadataURLs:[],bbox:{},dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:d&&d!==""?d==="1"||d==="true":null,cascaded:e!==null?parseInt(e):null,opaque:c?c==="1"||c==="true":null,noSubsets:f!==null?f==="1"||f==="true":null,fixedWidth:g!=null?parseInt(g):null,fixedHeight:h!=null?parseInt(h):null};b.nestedLayers.push(d);this.readChildNodes(a,d);if(d.name&&(e=d.name.split(":"),e.length>0))d.prefix=e[0]},Attribution:function(a,
b){b.attribution={};this.readChildNodes(a,b.attribution)},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};this.readChildNodes(a,b.logo)},Style:function(a,b){var c={};b.styles.push(c);this.readChildNodes(a,c)},LegendURL:function(a,b){var c={width:a.getAttribute("width"),height:a.getAttribute("height")};b.legend=c;this.readChildNodes(a,c)},MetadataURL:function(a,b){var c={type:a.getAttribute("type")};b.metadataURLs.push(c);this.readChildNodes(a,c)},DataURL:function(a,
b){b.dataURL={};this.readChildNodes(a,b.dataURL)},FeatureListURL:function(a,b){b.featureListURL={};this.readChildNodes(a,b.featureListURL)},AuthorityURL:function(a,b){var c=a.getAttribute("name"),d={};this.readChildNodes(a,d);b.authorityURLs[c]=d.href},Identifier:function(a,b){var c=a.getAttribute("authority");b.identifiers[c]=this.getChildValue(a)},KeywordList:function(a,b){this.readChildNodes(a,b)},SRS:function(a,b){b.srs[this.getChildValue(a)]=true}}},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1"});
OpenLayers.Format.WMSCapabilities.v1_1=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1,{readers:{wms:OpenLayers.Util.applyDefaults({WMT_MS_Capabilities:function(a,b){this.readChildNodes(a,b)},Keyword:function(a,b){b.keywords&&b.keywords.push(this.getChildValue(a))},DescribeLayer:function(a,b){b.describelayer={formats:[]};this.readChildNodes(a,b.describelayer)},GetLegendGraphic:function(a,b){b.getlegendgraphic={formats:[]};this.readChildNodes(a,b.getlegendgraphic)},GetStyles:function(a,b){b.getstyles=
{formats:[]};this.readChildNodes(a,b.getstyles)},PutStyles:function(a,b){b.putstyles={formats:[]};this.readChildNodes(a,b.putstyles)},UserDefinedSymbolization:function(a,b){var c={supportSLD:parseInt(a.getAttribute("SupportSLD"))==1,userLayer:parseInt(a.getAttribute("UserLayer"))==1,userStyle:parseInt(a.getAttribute("UserStyle"))==1,remoteWFS:parseInt(a.getAttribute("RemoteWFS"))==1};b.userSymbols=c},LatLonBoundingBox:function(a,b){b.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),
parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]},BoundingBox:function(a,b){var c=OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms.BoundingBox.apply(this,[a,b]);c.srs=a.getAttribute("SRS");b.bbox[c.srs]=c},ScaleHint:function(a,b){var c=a.getAttribute("min"),d=a.getAttribute("max"),e=Math.pow(2,0.5),f=OpenLayers.INCHES_PER_UNIT.m;b.maxScale=parseFloat((c/e*f*OpenLayers.DOTS_PER_INCH).toPrecision(13));b.minScale=parseFloat((d/e*f*OpenLayers.DOTS_PER_INCH).toPrecision(13))},
Dimension:function(a,b){var c={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol")};b.dimensions[c.name]=c},Extent:function(a,b){var c=a.getAttribute("name").toLowerCase();if(c in b.dimensions){c=b.dimensions[c];c.nearestVal=a.getAttribute("nearestValue")==="1";c.multipleVal=a.getAttribute("multipleValues")==="1";c.current=a.getAttribute("current")==="1";c["default"]=a.getAttribute("default")||"";var d=this.getChildValue(a);c.values=d.split(",")}}},
OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1"});
OpenLayers.Format.WMSCapabilities.v1_1_0=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_1,{version:"1.1.0",initialize:function(a){OpenLayers.Format.WMSCapabilities.v1_1.prototype.initialize.apply(this,[a])},readers:{wms:OpenLayers.Util.applyDefaults({SRS:function(a,b){for(var c=this.getChildValue(a).split(/ +/),d=0,e=c.length;d<e;d++)b.srs[c[d]]=true}},OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1_0"});
OpenLayers.Strategy.BBOX=OpenLayers.Class(OpenLayers.Strategy,{bounds:null,resolution:null,ratio:2,resFactor:null,response:null,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a)if(this.layer.events.on({moveend:this.update,scope:this}),this.layer.events.on({refresh:this.update,scope:this}),this.layer.visibility===true&&this.layer.inRange===true)this.update();else this.layer.events.on({visibilitychanged:this.update,scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);
a&&this.layer.events.un({moveend:this.update,refresh:this.update,visibilitychanged:this.update,scope:this});return a},update:function(a){var b=this.getMapBounds();if(b!==null&&(a&&a.force||this.invalidBounds(b)))this.calculateBounds(b),this.resolution=this.layer.map.getResolution(),this.triggerRead(a)},getMapBounds:function(){if(this.layer.map===null)return null;var a=this.layer.map.getExtent();a&&!this.layer.projection.equals(this.layer.map.getProjectionObject())&&(a=a.clone().transform(this.layer.map.getProjectionObject(),
this.layer.projection));return a},invalidBounds:function(a){a||(a=this.getMapBounds());a=!this.bounds||!this.bounds.containsBounds(a);!a&&this.resFactor&&(a=this.resolution/this.layer.map.getResolution(),a=a>=this.resFactor||a<=1/this.resFactor);return a},calculateBounds:function(a){a||(a=this.getMapBounds());var b=a.getCenterLonLat(),c=a.getWidth()*this.ratio,a=a.getHeight()*this.ratio;this.bounds=new OpenLayers.Bounds(b.lon-c/2,b.lat-a/2,b.lon+c/2,b.lat+a/2)},triggerRead:function(a){this.response&&
(this.layer.protocol.abort(this.response),this.layer.events.triggerEvent("loadend"));this.layer.events.triggerEvent("loadstart");this.response=this.layer.protocol.read(OpenLayers.Util.applyDefaults({filter:this.createFilter(),callback:this.merge,scope:this},a))},createFilter:function(){var a=new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.BBOX,value:this.bounds,projection:this.layer.projection});this.layer.filter&&(a=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND,
filters:[this.layer.filter,a]}));return a},merge:function(a){this.layer.destroyFeatures();if((a=a.features)&&a.length>0){var b=this.layer.projection,c=this.layer.map.getProjectionObject();if(!c.equals(b))for(var d,e=0,f=a.length;e<f;++e)(d=a[e].geometry)&&d.transform(b,c);this.layer.addFeatures(a)}this.response=null;this.layer.events.triggerEvent("loadend")},CLASS_NAME:"OpenLayers.Strategy.BBOX"});
OpenLayers.Handler.Feature=OpenLayers.Class(OpenLayers.Handler,{EVENTMAP:{click:{"in":"click",out:"clickout"},mousemove:{"in":"over",out:"out"},dblclick:{"in":"dblclick",out:null},mousedown:{"in":null,out:null},mouseup:{"in":null,out:null},touchstart:{"in":"click",out:"clickout"}},feature:null,lastFeature:null,down:null,up:null,touch:false,clickTolerance:4,geometryTypes:null,stopClick:true,stopDown:true,stopUp:false,initialize:function(a,b,c,d){OpenLayers.Handler.prototype.initialize.apply(this,[a,
c,d]);this.layer=b},touchstart:function(a){if(!this.touch)this.touch=true,this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,mousemove:this.mousemove,click:this.click,dblclick:this.dblclick,scope:this});return OpenLayers.Event.isMultiTouch(a)?true:this.mousedown(a)},touchmove:function(a){OpenLayers.Event.stop(a)},mousedown:function(a){this.down=a.xy;return this.handle(a)?!this.stopDown:true},mouseup:function(a){this.up=a.xy;return this.handle(a)?!this.stopUp:true},click:function(a){return this.handle(a)?
!this.stopClick:true},mousemove:function(a){if(!this.callbacks.over&&!this.callbacks.out)return true;this.handle(a);return true},dblclick:function(a){return!this.handle(a)},geometryTypeMatches:function(a){return this.geometryTypes==null||OpenLayers.Util.indexOf(this.geometryTypes,a.geometry.CLASS_NAME)>-1},handle:function(a){if(this.feature&&!this.feature.layer)this.feature=null;var b=a.type,c=false,d=!!this.feature,e=b=="click"||b=="dblclick"||b=="touchstart";if((this.feature=this.layer.getFeatureFromEvent(a))&&
!this.feature.layer)this.feature=null;if(this.lastFeature&&!this.lastFeature.layer)this.lastFeature=null;this.feature?(b==="touchstart"&&OpenLayers.Event.stop(a),a=this.feature!=this.lastFeature,this.geometryTypeMatches(this.feature)?(d&&a?(this.lastFeature&&this.triggerCallback(b,"out",[this.lastFeature]),this.triggerCallback(b,"in",[this.feature])):(!d||e)&&this.triggerCallback(b,"in",[this.feature]),this.lastFeature=this.feature,c=true):(this.lastFeature&&(d&&a||e)&&this.triggerCallback(b,"out",
[this.lastFeature]),this.feature=null)):this.lastFeature&&(d||e)&&this.triggerCallback(b,"out",[this.lastFeature]);return c},triggerCallback:function(a,b,c){(b=this.EVENTMAP[a][b])&&(a=="click"&&this.up&&this.down?Math.sqrt(Math.pow(this.up.x-this.down.x,2)+Math.pow(this.up.y-this.down.y,2))<=this.clickTolerance&&this.callback(b,c):this.callback(b,c))},activate:function(){var a=false;OpenLayers.Handler.prototype.activate.apply(this,arguments)&&(this.moveLayerToTop(),this.map.events.on({removelayer:this.handleMapEvents,
changelayer:this.handleMapEvents,scope:this}),a=true);return a},deactivate:function(){var a=false;if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments))this.moveLayerBack(),this.up=this.down=this.lastFeature=this.feature=null,this.touch=false,this.map.events.un({removelayer:this.handleMapEvents,changelayer:this.handleMapEvents,scope:this}),a=true;return a},handleMapEvents:function(a){(a.type=="removelayer"||a.property=="order")&&this.moveLayerToTop()},moveLayerToTop:function(){this.layer.setZIndex(Math.max(this.map.Z_INDEX_BASE.Feature-
1,this.layer.getZIndex())+1)},moveLayerBack:function(){var a=this.layer.getZIndex()-1;a>=this.map.Z_INDEX_BASE.Feature?this.layer.setZIndex(a):this.map.setLayerZIndex(this.layer,this.map.getLayerIndex(this.layer))},CLASS_NAME:"OpenLayers.Handler.Feature"});
OpenLayers.Layer.Vector.RootContainer=OpenLayers.Class(OpenLayers.Layer.Vector,{displayInLayerSwitcher:false,layers:null,initialize:function(a,b){OpenLayers.Layer.Vector.prototype.initialize.apply(this,arguments)},display:function(){},getFeatureFromEvent:function(a){for(var b=this.layers,c,d=0;d<b.length;d++)if(c=b[d].getFeatureFromEvent(a))return c},setMap:function(a){OpenLayers.Layer.Vector.prototype.setMap.apply(this,arguments);this.collectRoots();a.events.register("changelayer",this,this.handleChangeLayer)},
removeMap:function(a){a.events.unregister("changelayer",this,this.handleChangeLayer);this.resetRoots();OpenLayers.Layer.Vector.prototype.removeMap.apply(this,arguments)},collectRoots:function(){for(var a,b=0;b<this.map.layers.length;++b)a=this.map.layers[b],OpenLayers.Util.indexOf(this.layers,a)!=-1&&a.renderer.moveRoot(this.renderer)},resetRoots:function(){for(var a,b=0;b<this.layers.length;++b)a=this.layers[b],this.renderer&&a.renderer.getRenderLayerId()==this.id&&this.renderer.moveRoot(a.renderer)},
handleChangeLayer:function(a){var b=a.layer;a.property=="order"&&OpenLayers.Util.indexOf(this.layers,b)!=-1&&(this.resetRoots(),this.collectRoots())},CLASS_NAME:"OpenLayers.Layer.Vector.RootContainer"});
OpenLayers.Control.SelectFeature=OpenLayers.Class(OpenLayers.Control,{EVENT_TYPES:["beforefeaturehighlighted","featurehighlighted","featureunhighlighted"],multipleKey:null,toggleKey:null,multiple:false,clickout:true,toggle:false,hover:false,highlightOnly:false,box:false,onBeforeSelect:function(){},onSelect:function(){},onUnselect:function(){},scope:null,geometryTypes:null,layer:null,layers:null,callbacks:null,selectStyle:null,renderIntent:"select",handlers:null,initialize:function(a,b){this.EVENT_TYPES=
OpenLayers.Control.SelectFeature.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);OpenLayers.Control.prototype.initialize.apply(this,[b]);if(this.scope===null)this.scope=this;this.initLayer(a);var c={click:this.clickFeature,clickout:this.clickoutFeature};if(this.hover)c.over=this.overFeature,c.out=this.outFeature;this.callbacks=OpenLayers.Util.extend(c,this.callbacks);this.handlers={feature:new OpenLayers.Handler.Feature(this,this.layer,this.callbacks,{geometryTypes:this.geometryTypes})};
if(this.box)this.handlers.box=new OpenLayers.Handler.Box(this,{done:this.selectBox},{boxDivClassName:"olHandlerBoxSelectFeature"})},initLayer:function(a){OpenLayers.Util.isArray(a)?(this.layers=a,this.layer=new OpenLayers.Layer.Vector.RootContainer(this.id+"_container",{layers:a})):this.layer=a},destroy:function(){this.active&&this.layers&&this.map.removeLayer(this.layer);OpenLayers.Control.prototype.destroy.apply(this,arguments);this.layers&&this.layer.destroy()},activate:function(){this.active||
(this.layers&&this.map.addLayer(this.layer),this.handlers.feature.activate(),this.box&&this.handlers.box&&this.handlers.box.activate());return OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){this.active&&(this.handlers.feature.deactivate(),this.handlers.box&&this.handlers.box.deactivate(),this.layers&&this.map.removeLayer(this.layer));return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},unselectAll:function(a){for(var b=this.layers||[this.layer],
c,d,e=0;e<b.length;++e){c=b[e];for(var f=c.selectedFeatures.length-1;f>=0;--f)d=c.selectedFeatures[f],(!a||a.except!=d)&&this.unselect(d)}},clickFeature:function(a){this.hover||(OpenLayers.Util.indexOf(a.layer.selectedFeatures,a)>-1?this.toggleSelect()?this.unselect(a):this.multipleSelect()||this.unselectAll({except:a}):(this.multipleSelect()||this.unselectAll({except:a}),this.select(a)))},multipleSelect:function(){return this.multiple||this.handlers.feature.evt&&this.handlers.feature.evt[this.multipleKey]},
toggleSelect:function(){return this.toggle||this.handlers.feature.evt&&this.handlers.feature.evt[this.toggleKey]},clickoutFeature:function(){!this.hover&&this.clickout&&this.unselectAll()},overFeature:function(a){var b=a.layer;this.hover&&(this.highlightOnly?this.highlight(a):OpenLayers.Util.indexOf(b.selectedFeatures,a)==-1&&this.select(a))},outFeature:function(a){if(this.hover)if(this.highlightOnly){if(a._lastHighlighter==this.id)if(a._prevHighlighter&&a._prevHighlighter!=this.id){delete a._lastHighlighter;
var b=this.map.getControl(a._prevHighlighter);b&&b.highlight(a)}else this.unhighlight(a)}else this.unselect(a)},highlight:function(a){var b=a.layer;if(this.events.triggerEvent("beforefeaturehighlighted",{feature:a})!==false)a._prevHighlighter=a._lastHighlighter,a._lastHighlighter=this.id,b.drawFeature(a,this.selectStyle||this.renderIntent),this.events.triggerEvent("featurehighlighted",{feature:a})},unhighlight:function(a){var b=a.layer;if(a._prevHighlighter==void 0)delete a._lastHighlighter;else{if(a._prevHighlighter!=
this.id)a._lastHighlighter=a._prevHighlighter;delete a._prevHighlighter}b.drawFeature(a,a.style||a.layer.style||"default");this.events.triggerEvent("featureunhighlighted",{feature:a})},select:function(a){var b=this.onBeforeSelect.call(this.scope,a),c=a.layer;if(b!==false&&(b=c.events.triggerEvent("beforefeatureselected",{feature:a}),b!==false)){c.selectedFeatures.push(a);this.highlight(a);if(!this.handlers.feature.lastFeature)this.handlers.feature.lastFeature=c.selectedFeatures[0];c.events.triggerEvent("featureselected",
{feature:a});this.onSelect.call(this.scope,a)}},unselect:function(a){var b=a.layer;this.unhighlight(a);OpenLayers.Util.removeItem(b.selectedFeatures,a);b.events.triggerEvent("featureunselected",{feature:a});this.onUnselect.call(this.scope,a)},selectBox:function(a){if(a instanceof OpenLayers.Bounds){var b=this.map.getLonLatFromPixel(new OpenLayers.Pixel(a.left,a.bottom)),a=this.map.getLonLatFromPixel(new OpenLayers.Pixel(a.right,a.top)),b=new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat);this.multipleSelect()||
this.unselectAll();a=this.multiple;this.multiple=true;for(var c=this.layers||[this.layer],d,e=0;e<c.length;++e){d=c[e];for(var f=0,g=d.features.length;f<g;++f){var h=d.features[f];h.getVisibility()&&(this.geometryTypes==null||OpenLayers.Util.indexOf(this.geometryTypes,h.geometry.CLASS_NAME)>-1)&&b.toGeometry().intersects(h.geometry)&&OpenLayers.Util.indexOf(d.selectedFeatures,h)==-1&&this.select(h)}}this.multiple=a}},setMap:function(a){this.handlers.feature.setMap(a);this.box&&this.handlers.box.setMap(a);
OpenLayers.Control.prototype.setMap.apply(this,arguments)},setLayer:function(a){var b=this.active;this.unselectAll();this.deactivate();if(this.layers)this.layer.destroy(),this.layers=null;this.initLayer(a);this.handlers.feature.layer=this.layer;b&&this.activate()},CLASS_NAME:"OpenLayers.Control.SelectFeature"});
OpenLayers.Handler.Point=OpenLayers.Class(OpenLayers.Handler,{point:null,layer:null,multi:false,mouseDown:false,stoppedDown:null,lastDown:null,lastUp:null,persist:false,stopDown:false,stopUp:false,layerOptions:null,pixelTolerance:5,touch:false,lastTouchPx:null,initialize:function(a,b,c){if(!c||!c.layerOptions||!c.layerOptions.styleMap)this.style=OpenLayers.Util.extend(OpenLayers.Feature.Vector.style["default"],{});OpenLayers.Handler.prototype.initialize.apply(this,arguments)},activate:function(){if(!OpenLayers.Handler.prototype.activate.apply(this,
arguments))return false;var a=OpenLayers.Util.extend({displayInLayerSwitcher:false,calculateInRange:OpenLayers.Function.True},this.layerOptions);this.layer=new OpenLayers.Layer.Vector(this.CLASS_NAME,a);this.map.addLayer(this.layer);return true},createFeature:function(a){a=this.map.getLonLatFromPixel(a);a=new OpenLayers.Geometry.Point(a.lon,a.lat);this.point=new OpenLayers.Feature.Vector(a);this.callback("create",[this.point.geometry,this.point]);this.point.geometry.clearBounds();this.layer.addFeatures([this.point],
{silent:true})},deactivate:function(){if(!OpenLayers.Handler.prototype.deactivate.apply(this,arguments))return false;this.cancel();this.layer.map!=null&&(this.destroyFeature(true),this.layer.destroy(false));this.layer=null;this.touch=false;return true},destroyFeature:function(a){this.layer&&(a||!this.persist)&&this.layer.destroyFeatures();this.point=null},destroyPersistedFeature:function(){var a=this.layer;a&&a.features.length>1&&this.layer.features[0].destroy()},finalize:function(a){this.mouseDown=
false;this.lastTouchPx=this.lastUp=this.lastDown=null;this.callback(a?"cancel":"done",[this.geometryClone()]);this.destroyFeature(a)},cancel:function(){this.finalize(true)},click:function(a){OpenLayers.Event.stop(a);return false},dblclick:function(a){OpenLayers.Event.stop(a);return false},modifyFeature:function(a){this.point||this.createFeature(a);a=this.map.getLonLatFromPixel(a);this.point.geometry.x=a.lon;this.point.geometry.y=a.lat;this.callback("modify",[this.point.geometry,this.point,false]);
this.point.geometry.clearBounds();this.drawFeature()},drawFeature:function(){this.layer.drawFeature(this.point,this.style)},getGeometry:function(){var a=this.point&&this.point.geometry;a&&this.multi&&(a=new OpenLayers.Geometry.MultiPoint([a]));return a},geometryClone:function(){var a=this.getGeometry();return a&&a.clone()},mousedown:function(a){return this.down(a)},touchstart:function(a){if(!this.touch)this.touch=true,this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,mousemove:this.mousemove,
click:this.click,dblclick:this.dblclick,scope:this});this.lastTouchPx=a.xy;return this.down(a)},mousemove:function(a){return this.move(a)},touchmove:function(a){this.lastTouchPx=a.xy;return this.move(a)},mouseup:function(a){return this.up(a)},touchend:function(a){a.xy=this.lastTouchPx;return this.up(a)},down:function(a){this.mouseDown=true;this.lastDown=a.xy;this.touch||this.modifyFeature(a.xy);this.stoppedDown=this.stopDown;return!this.stopDown},move:function(a){!this.touch&&(!this.mouseDown||this.stoppedDown)&&
this.modifyFeature(a.xy);return true},up:function(a){this.mouseDown=false;this.stoppedDown=this.stopDown;if(!this.checkModifiers(a))return true;return this.lastUp&&this.lastUp.equals(a.xy)?true:this.lastDown&&this.passesTolerance(this.lastDown,a.xy,this.pixelTolerance)?(this.touch&&this.modifyFeature(a.xy),this.persist&&this.destroyPersistedFeature(),this.lastUp=a.xy,this.finalize(),!this.stopUp):true},mouseout:function(a){if(OpenLayers.Util.mouseLeft(a,this.map.eventsDiv))this.stoppedDown=this.stopDown,
this.mouseDown=false},passesTolerance:function(a,b,c){var d=true;c!=null&&a&&b&&a.distanceTo(b)>c&&(d=false);return d},CLASS_NAME:"OpenLayers.Handler.Point"});
OpenLayers.Handler.Path=OpenLayers.Class(OpenLayers.Handler.Point,{line:null,maxVertices:null,doubleTouchTolerance:20,freehand:false,freehandToggle:"shiftKey",timerId:null,redoStack:null,initialize:function(a,b,c){OpenLayers.Handler.Point.prototype.initialize.apply(this,arguments)},createFeature:function(a){a=this.map.getLonLatFromPixel(a);a=new OpenLayers.Geometry.Point(a.lon,a.lat);this.point=new OpenLayers.Feature.Vector(a);this.line=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString([this.point.geometry]));
this.callback("create",[this.point.geometry,this.getSketch()]);this.point.geometry.clearBounds();this.layer.addFeatures([this.line,this.point],{silent:true})},destroyFeature:function(a){OpenLayers.Handler.Point.prototype.destroyFeature.call(this,a);this.line=null},destroyPersistedFeature:function(){var a=this.layer;a&&a.features.length>2&&this.layer.features[0].destroy()},removePoint:function(){this.point&&this.layer.removeFeatures([this.point])},addPoint:function(a){this.layer.removeFeatures([this.point]);
a=this.control.map.getLonLatFromPixel(a);this.point=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(a.lon,a.lat));this.line.geometry.addComponent(this.point.geometry,this.line.geometry.components.length);this.layer.addFeatures([this.point]);this.callback("point",[this.point.geometry,this.getGeometry()]);this.callback("modify",[this.point.geometry,this.getSketch()]);this.drawFeature();delete this.redoStack},insertXY:function(a,b){this.line.geometry.addComponent(new OpenLayers.Geometry.Point(a,
b),this.getCurrentPointIndex());this.drawFeature();delete this.redoStack},insertDeltaXY:function(a,b){var c=this.line.geometry.components[this.getCurrentPointIndex()-1];c&&!isNaN(c.x)&&!isNaN(c.y)&&this.insertXY(c.x+a,c.y+b)},insertDirectionLength:function(a,b){a*=Math.PI/180;var c=b*Math.cos(a),d=b*Math.sin(a);this.insertDeltaXY(c,d)},insertDeflectionLength:function(a,b){var c=this.getCurrentPointIndex()-1;if(c>0){var d=this.line.geometry.components[c],c=this.line.geometry.components[c-1];this.insertDirectionLength(Math.atan2(d.y-
c.y,d.x-c.x)*180/Math.PI+a,b)}},getCurrentPointIndex:function(){return this.line.geometry.components.length-1},undo:function(){var a=this.line.geometry,b=a.components,c=this.getCurrentPointIndex()-1,b=b[c];if(a=a.removeComponent(b)){if(!this.redoStack)this.redoStack=[];this.redoStack.push(b);this.drawFeature()}return a},redo:function(){var a=this.redoStack&&this.redoStack.pop();a&&(this.line.geometry.addComponent(a,this.getCurrentPointIndex()),this.drawFeature());return!!a},freehandMode:function(a){return this.freehandToggle&&
a[this.freehandToggle]?!this.freehand:this.freehand},modifyFeature:function(a,b){this.line||this.createFeature(a);var c=this.control.map.getLonLatFromPixel(a);this.point.geometry.x=c.lon;this.point.geometry.y=c.lat;this.callback("modify",[this.point.geometry,this.getSketch(),b]);this.point.geometry.clearBounds();this.drawFeature()},drawFeature:function(){this.layer.drawFeature(this.line,this.style);this.layer.drawFeature(this.point,this.style)},getSketch:function(){return this.line},getGeometry:function(){var a=
this.line&&this.line.geometry;a&&this.multi&&(a=new OpenLayers.Geometry.MultiLineString([a]));return a},touchstart:function(a){if(this.timerId&&this.passesTolerance(this.lastTouchPx,a.xy,this.doubleTouchTolerance))return this.finishGeometry(),window.clearTimeout(this.timerId),this.timerId=null,false;else{if(this.timerId)window.clearTimeout(this.timerId),this.timerId=null;this.timerId=window.setTimeout(OpenLayers.Function.bind(function(){this.timerId=null},this),300);return OpenLayers.Handler.Point.prototype.touchstart.call(this,
a)}},down:function(a){var b=this.stopDown;this.freehandMode(a)&&(b=true);!this.touch&&(!this.lastDown||!this.passesTolerance(this.lastDown,a.xy,this.pixelTolerance))&&this.modifyFeature(a.xy,!!this.lastUp);this.mouseDown=true;this.lastDown=a.xy;this.stoppedDown=b;return!b},move:function(a){if(this.stoppedDown&&this.freehandMode(a))return this.persist&&this.destroyPersistedFeature(),this.addPoint(a.xy),false;!this.touch&&(!this.mouseDown||this.stoppedDown)&&this.modifyFeature(a.xy,!!this.lastUp);return true},
up:function(a){if(this.mouseDown&&(!this.lastUp||!this.lastUp.equals(a.xy)))if(this.stoppedDown&&this.freehandMode(a))this.persist&&this.destroyPersistedFeature(),this.removePoint(),this.finalize();else if(this.passesTolerance(this.lastDown,a.xy,this.pixelTolerance))this.touch&&this.modifyFeature(a.xy),this.lastUp==null&&this.persist&&this.destroyPersistedFeature(),this.addPoint(a.xy),this.lastUp=a.xy,this.line.geometry.components.length===this.maxVertices+1&&this.finishGeometry();this.stoppedDown=
this.stopDown;this.mouseDown=false;return!this.stopUp},finishGeometry:function(){this.line.geometry.removeComponent(this.line.geometry.components[this.line.geometry.components.length-1]);this.removePoint();this.finalize()},dblclick:function(a){this.freehandMode(a)||this.finishGeometry();return false},CLASS_NAME:"OpenLayers.Handler.Path"});
OpenLayers.Layer.GML=OpenLayers.Class(OpenLayers.Layer.Vector,{loaded:false,format:null,formatOptions:null,initialize:function(a,b,c){var d=[];d.push(a,c);OpenLayers.Layer.Vector.prototype.initialize.apply(this,d);this.url=b},setVisibility:function(a,b){OpenLayers.Layer.Vector.prototype.setVisibility.apply(this,arguments);this.visibility&&!this.loaded&&this.loadGML()},moveTo:function(a,b,c){OpenLayers.Layer.Vector.prototype.moveTo.apply(this,arguments);this.visibility&&!this.loaded&&this.loadGML()},
loadGML:function(){if(!this.loaded)this.events.triggerEvent("loadstart"),OpenLayers.Request.GET({url:this.url,success:this.requestSuccess,failure:this.requestFailure,scope:this}),this.loaded=true},setUrl:function(a){this.url=a;this.destroyFeatures();this.loaded=false;this.loadGML()},requestSuccess:function(a){var b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;a={};OpenLayers.Util.extend(a,this.formatOptions);if(this.map&&!this.projection.equals(this.map.getProjectionObject()))a.externalProjection=
this.projection,a.internalProjection=this.map.getProjectionObject();this.addFeatures((this.format?new this.format(a):new OpenLayers.Format.GML(a)).read(b));this.events.triggerEvent("loadend")},requestFailure:function(){OpenLayers.Console.userError(OpenLayers.i18n("errorLoadingGML",{url:this.url}));this.events.triggerEvent("loadend")},CLASS_NAME:"OpenLayers.Layer.GML"});
OpenLayers.Format.WMC=OpenLayers.Class(OpenLayers.Format.Context,{defaultVersion:"1.1.0",layerToContext:function(a){var b=this.getParser(),c={queryable:a.queryable,visibility:a.visibility,name:a.params.LAYERS,title:a.name,"abstract":a.metadata["abstract"],dataURL:a.metadata.dataURL,metadataURL:a.metadataURL,server:{version:a.params.VERSION,url:a.url},maxExtent:a.maxExtent,transparent:a.params.TRANSPARENT,numZoomLevels:a.numZoomLevels,units:a.units,isBaseLayer:a.isBaseLayer,opacity:a.opacity,displayInLayerSwitcher:a.displayInLayerSwitcher,
singleTile:a.singleTile,tileSize:a.singleTile||!a.tileSize?void 0:{width:a.tileSize.w,height:a.tileSize.h},minScale:a.options.resolutions||a.options.scales||a.options.maxResolution||a.options.minScale?a.minScale:void 0,maxScale:a.options.resolutions||a.options.scales||a.options.minResolution||a.options.maxScale?a.maxScale:void 0,formats:[],styles:[],srs:a.srs,dimensions:a.dimensions};if(a.metadata.servertitle)c.server.title=a.metadata.servertitle;if(a.metadata.formats&&a.metadata.formats.length>0)for(var d=
0,e=a.metadata.formats.length;d<e;d++){var f=a.metadata.formats[d];c.formats.push({value:f.value,current:f.value==a.params.FORMAT})}else c.formats.push({value:a.params.FORMAT,current:true});if(a.metadata.styles&&a.metadata.styles.length>0){d=0;for(e=a.metadata.styles.length;d<e;d++)b=a.metadata.styles[d],b.current=b.href==a.params.SLD||b.body==a.params.SLD_BODY||b.name==a.params.STYLES?true:false,c.styles.push(b)}else c.styles.push({href:a.params.SLD,body:a.params.SLD_BODY,name:a.params.STYLES||b.defaultStyleName,
title:b.defaultStyleTitle,current:true});return c},toContext:function(a){var b={},c=a.layers;if(a.CLASS_NAME=="OpenLayers.Map"){var d=a.metadata||{};b.size=a.getSize();b.bounds=a.getExtent();b.projection=a.projection;b.title=a.title;b.keywords=d.keywords;b["abstract"]=d["abstract"];b.logo=d.logo;b.descriptionURL=d.descriptionURL;b.contactInformation=d.contactInformation;b.maxExtent=a.maxExtent}else OpenLayers.Util.applyDefaults(b,a),b.layers!=void 0&&delete b.layers;if(b.layersContext==void 0)b.layersContext=
[];if(c!=void 0&&OpenLayers.Util.isArray(c)){a=0;for(d=c.length;a<d;a++){var e=c[a];e instanceof OpenLayers.Layer.WMS&&b.layersContext.push(this.layerToContext(e))}}return b},CLASS_NAME:"OpenLayers.Format.WMC"});
OpenLayers.Format.WMC.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ol:"http://openlayers.org/context",wmc:"http://www.opengis.net/context",sld:"http://www.opengis.net/sld",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"",getNamespacePrefix:function(a){var b=null;if(a==null)b=this.namespaces[this.defaultPrefix];else for(b in this.namespaces)if(this.namespaces[b]==a)break;return b},defaultPrefix:"wmc",rootPrefix:null,defaultStyleName:"",
defaultStyleTitle:"Default",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));a=a.documentElement;this.rootPrefix=a.prefix;var b={version:a.getAttribute("version")};this.runChildNodes(b,a);return b},runChildNodes:function(a,b){for(var c=b.childNodes,d,e,f,g=0,h=c.length;g<h;++g)d=c[g],d.nodeType==1&&(e=this.getNamespacePrefix(d.namespaceURI),f=d.nodeName.split(":").pop(),
(e=this["read_"+e+"_"+f])&&e.apply(this,[a,d]))},read_wmc_General:function(a,b){this.runChildNodes(a,b)},read_wmc_BoundingBox:function(a,b){a.projection=b.getAttribute("SRS");a.bounds=new OpenLayers.Bounds(parseFloat(b.getAttribute("minx")),parseFloat(b.getAttribute("miny")),parseFloat(b.getAttribute("maxx")),parseFloat(b.getAttribute("maxy")))},read_wmc_LayerList:function(a,b){a.layersContext=[];this.runChildNodes(a,b)},read_wmc_Layer:function(a,b){var c={visibility:b.getAttribute("hidden")!="1",
queryable:b.getAttribute("queryable")=="1",formats:[],styles:[],metadata:{}};this.runChildNodes(c,b);a.layersContext.push(c)},read_wmc_Extension:function(a,b){this.runChildNodes(a,b)},read_ol_units:function(a,b){a.units=this.getChildValue(b)},read_ol_maxExtent:function(a,b){var c=new OpenLayers.Bounds(b.getAttribute("minx"),b.getAttribute("miny"),b.getAttribute("maxx"),b.getAttribute("maxy"));a.maxExtent=c},read_ol_transparent:function(a,b){a.transparent=this.getChildValue(b)},read_ol_numZoomLevels:function(a,
b){a.numZoomLevels=parseInt(this.getChildValue(b))},read_ol_opacity:function(a,b){a.opacity=parseFloat(this.getChildValue(b))},read_ol_singleTile:function(a,b){a.singleTile=this.getChildValue(b)=="true"},read_ol_tileSize:function(a,b){var c={width:b.getAttribute("width"),height:b.getAttribute("height")};a.tileSize=c},read_ol_isBaseLayer:function(a,b){a.isBaseLayer=this.getChildValue(b)=="true"},read_ol_displayInLayerSwitcher:function(a,b){a.displayInLayerSwitcher=this.getChildValue(b)=="true"},read_wmc_Server:function(a,
b){a.version=b.getAttribute("version");a.url=this.getOnlineResource_href(b);a.metadata.servertitle=b.getAttribute("title")},read_wmc_FormatList:function(a,b){this.runChildNodes(a,b)},read_wmc_Format:function(a,b){var c={value:this.getChildValue(b)};if(b.getAttribute("current")=="1")c.current=true;a.formats.push(c)},read_wmc_StyleList:function(a,b){this.runChildNodes(a,b)},read_wmc_Style:function(a,b){var c={};this.runChildNodes(c,b);if(b.getAttribute("current")=="1")c.current=true;a.styles.push(c)},
read_wmc_SLD:function(a,b){this.runChildNodes(a,b)},read_sld_StyledLayerDescriptor:function(a,b){var c=OpenLayers.Format.XML.prototype.write.apply(this,[b]);a.body=c},read_sld_FeatureTypeStyle:function(a,b){var c=OpenLayers.Format.XML.prototype.write.apply(this,[b]);a.body=c},read_wmc_OnlineResource:function(a,b){a.href=this.getAttributeNS(b,this.namespaces.xlink,"href")},read_wmc_Name:function(a,b){var c=this.getChildValue(b);if(c)a.name=c},read_wmc_Title:function(a,b){var c=this.getChildValue(b);
if(c)a.title=c},read_wmc_MetadataURL:function(a,b){a.metadataURL=this.getOnlineResource_href(b)},read_wmc_KeywordList:function(a,b){a.keywords=[];this.runChildNodes(a.keywords,b)},read_wmc_Keyword:function(a,b){a.push(this.getChildValue(b))},read_wmc_Abstract:function(a,b){var c=this.getChildValue(b);c&&(a["abstract"]=c)},read_wmc_LogoURL:function(a,b){a.logo={width:b.getAttribute("width"),height:b.getAttribute("height"),format:b.getAttribute("format"),href:this.getOnlineResource_href(b)}},read_wmc_DescriptionURL:function(a,
b){a.descriptionURL=this.getOnlineResource_href(b)},read_wmc_ContactInformation:function(a,b){var c={};this.runChildNodes(c,b);a.contactInformation=c},read_wmc_ContactPersonPrimary:function(a,b){var c={};this.runChildNodes(c,b);a.personPrimary=c},read_wmc_ContactPerson:function(a,b){var c=this.getChildValue(b);if(c)a.person=c},read_wmc_ContactOrganization:function(a,b){var c=this.getChildValue(b);if(c)a.organization=c},read_wmc_ContactPosition:function(a,b){var c=this.getChildValue(b);if(c)a.position=
c},read_wmc_ContactAddress:function(a,b){var c={};this.runChildNodes(c,b);a.contactAddress=c},read_wmc_AddressType:function(a,b){var c=this.getChildValue(b);if(c)a.type=c},read_wmc_Address:function(a,b){var c=this.getChildValue(b);if(c)a.address=c},read_wmc_City:function(a,b){var c=this.getChildValue(b);if(c)a.city=c},read_wmc_StateOrProvince:function(a,b){var c=this.getChildValue(b);if(c)a.stateOrProvince=c},read_wmc_PostCode:function(a,b){var c=this.getChildValue(b);if(c)a.postcode=c},read_wmc_Country:function(a,
b){var c=this.getChildValue(b);if(c)a.country=c},read_wmc_ContactVoiceTelephone:function(a,b){var c=this.getChildValue(b);if(c)a.phone=c},read_wmc_ContactFacsimileTelephone:function(a,b){var c=this.getChildValue(b);if(c)a.fax=c},read_wmc_ContactElectronicMailAddress:function(a,b){var c=this.getChildValue(b);if(c)a.email=c},read_wmc_DataURL:function(a,b){a.dataURL=this.getOnlineResource_href(b)},read_wmc_LegendURL:function(a,b){var c={width:b.getAttribute("width"),height:b.getAttribute("height"),format:b.getAttribute("format"),
href:this.getOnlineResource_href(b)};a.legend=c},read_wmc_DimensionList:function(a,b){a.dimensions={};this.runChildNodes(a.dimensions,b)},read_wmc_Dimension:function(a,b){var c={name:b.getAttribute("name").toLowerCase(),units:b.getAttribute("units")||"",unitSymbol:b.getAttribute("unitSymbol")||"",userValue:b.getAttribute("userValue")||"",nearestValue:b.getAttribute("nearestValue")==="1",multipleValues:b.getAttribute("multipleValues")==="1",current:b.getAttribute("current")==="1","default":b.getAttribute("default")||
""},d=this.getChildValue(b);c.values=d.split(",");a[c.name]=c},write:function(a,b){var c=this.createElementDefaultNS("ViewContext");this.setAttributes(c,{version:this.VERSION,id:b&&typeof b.id=="string"?b.id:OpenLayers.Util.createUniqueID("OpenLayers_Context_")});this.setAttributeNS(c,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);c.appendChild(this.write_wmc_General(a));c.appendChild(this.write_wmc_LayerList(a));return OpenLayers.Format.XML.prototype.write.apply(this,[c])},createElementDefaultNS:function(a,
b,c){a=this.createElementNS(this.namespaces[this.defaultPrefix],a);b&&a.appendChild(this.createTextNode(b));c&&this.setAttributes(a,c);return a},setAttributes:function(a,b){var c,d;for(d in b)c=b[d].toString(),c.match(/[A-Z]/)?this.setAttributeNS(a,null,d,c):a.setAttribute(d,c)},write_wmc_General:function(a){var b=this.createElementDefaultNS("General");a.size&&b.appendChild(this.createElementDefaultNS("Window",null,{width:a.size.w,height:a.size.h}));var c=a.bounds;b.appendChild(this.createElementDefaultNS("BoundingBox",
null,{minx:c.left.toPrecision(18),miny:c.bottom.toPrecision(18),maxx:c.right.toPrecision(18),maxy:c.top.toPrecision(18),SRS:a.projection}));b.appendChild(this.createElementDefaultNS("Title",a.title));a.keywords&&b.appendChild(this.write_wmc_KeywordList(a.keywords));a["abstract"]&&b.appendChild(this.createElementDefaultNS("Abstract",a["abstract"]));a.logo&&b.appendChild(this.write_wmc_URLType("LogoURL",a.logo.href,a.logo));a.descriptionURL&&b.appendChild(this.write_wmc_URLType("DescriptionURL",a.descriptionURL));
a.contactInformation&&b.appendChild(this.write_wmc_ContactInformation(a.contactInformation));b.appendChild(this.write_ol_MapExtension(a));return b},write_wmc_KeywordList:function(a){for(var b=this.createElementDefaultNS("KeywordList"),c=0,d=a.length;c<d;c++)b.appendChild(this.createElementDefaultNS("Keyword",a[c]));return b},write_wmc_ContactInformation:function(a){var b=this.createElementDefaultNS("ContactInformation");a.personPrimary&&b.appendChild(this.write_wmc_ContactPersonPrimary(a.personPrimary));
a.position&&b.appendChild(this.createElementDefaultNS("ContactPosition",a.position));a.contactAddress&&b.appendChild(this.write_wmc_ContactAddress(a.contactAddress));a.phone&&b.appendChild(this.createElementDefaultNS("ContactVoiceTelephone",a.phone));a.fax&&b.appendChild(this.createElementDefaultNS("ContactFacsimileTelephone",a.fax));a.email&&b.appendChild(this.createElementDefaultNS("ContactElectronicMailAddress",a.email));return b},write_wmc_ContactPersonPrimary:function(a){var b=this.createElementDefaultNS("ContactPersonPrimary");
a.person&&b.appendChild(this.createElementDefaultNS("ContactPerson",a.person));a.organization&&b.appendChild(this.createElementDefaultNS("ContactOrganization",a.organization));return b},write_wmc_ContactAddress:function(a){var b=this.createElementDefaultNS("ContactAddress");a.type&&b.appendChild(this.createElementDefaultNS("AddressType",a.type));a.address&&b.appendChild(this.createElementDefaultNS("Address",a.address));a.city&&b.appendChild(this.createElementDefaultNS("City",a.city));a.stateOrProvince&&
b.appendChild(this.createElementDefaultNS("StateOrProvince",a.stateOrProvince));a.postcode&&b.appendChild(this.createElementDefaultNS("PostCode",a.postcode));a.country&&b.appendChild(this.createElementDefaultNS("Country",a.country));return b},write_ol_MapExtension:function(a){var b=this.createElementDefaultNS("Extension");if(a=a.maxExtent){var c=this.createElementNS(this.namespaces.ol,"ol:maxExtent");this.setAttributes(c,{minx:a.left.toPrecision(18),miny:a.bottom.toPrecision(18),maxx:a.right.toPrecision(18),
maxy:a.top.toPrecision(18)});b.appendChild(c)}return b},write_wmc_LayerList:function(a){for(var b=this.createElementDefaultNS("LayerList"),c=0,d=a.layersContext.length;c<d;++c)b.appendChild(this.write_wmc_Layer(a.layersContext[c]));return b},write_wmc_Layer:function(a){var b=this.createElementDefaultNS("Layer",null,{queryable:a.queryable?"1":"0",hidden:a.visibility?"0":"1"});b.appendChild(this.write_wmc_Server(a));b.appendChild(this.createElementDefaultNS("Name",a.name));b.appendChild(this.createElementDefaultNS("Title",
a.title));a["abstract"]&&b.appendChild(this.createElementDefaultNS("Abstract",a["abstract"]));a.dataURL&&b.appendChild(this.write_wmc_URLType("DataURL",a.dataURL));a.metadataURL&&b.appendChild(this.write_wmc_URLType("MetadataURL",a.metadataURL));return b},write_wmc_LayerExtension:function(a){var b=this.createElementDefaultNS("Extension"),c=a.maxExtent,d=this.createElementNS(this.namespaces.ol,"ol:maxExtent");this.setAttributes(d,{minx:c.left.toPrecision(18),miny:c.bottom.toPrecision(18),maxx:c.right.toPrecision(18),
maxy:c.top.toPrecision(18)});b.appendChild(d);a.tileSize&&!a.singleTile&&(c=this.createElementNS(this.namespaces.ol,"ol:tileSize"),this.setAttributes(c,a.tileSize),b.appendChild(c));for(var c="transparent,numZoomLevels,units,isBaseLayer,opacity,displayInLayerSwitcher,singleTile".split(","),e=0,f=c.length;e<f;++e)(d=this.createOLPropertyNode(a,c[e]))&&b.appendChild(d);return b},createOLPropertyNode:function(a,b){var c=null;a[b]!=null&&(c=this.createElementNS(this.namespaces.ol,"ol:"+b),c.appendChild(this.createTextNode(a[b].toString())));
return c},write_wmc_Server:function(a){var a=a.server,b=this.createElementDefaultNS("Server"),c={service:"OGC:WMS",version:a.version};if(a.title)c.title=a.title;this.setAttributes(b,c);b.appendChild(this.write_wmc_OnlineResource(a.url));return b},write_wmc_URLType:function(a,b,c){a=this.createElementDefaultNS(a);a.appendChild(this.write_wmc_OnlineResource(b));if(c)for(var b=["width","height","format"],d=0;d<b.length;d++)b[d]in c&&a.setAttribute(b[d],c[b[d]]);return a},write_wmc_DimensionList:function(a){var b=
this.createElementDefaultNS("DimensionList"),c;for(c in a.dimensions){var d={},e=a.dimensions[c],f;for(f in e)d[f]=typeof e[f]=="boolean"?Number(e[f]):e[f];e="";d.values&&(e=d.values.join(","),delete d.values);b.appendChild(this.createElementDefaultNS("Dimension",e,d))}return b},write_wmc_FormatList:function(a){for(var b=this.createElementDefaultNS("FormatList"),c=0,d=a.formats.length;c<d;c++){var e=a.formats[c];b.appendChild(this.createElementDefaultNS("Format",e.value,e.current&&e.current==true?
{current:"1"}:null))}return b},write_wmc_StyleList:function(a){var b=this.createElementDefaultNS("StyleList");if((a=a.styles)&&OpenLayers.Util.isArray(a))for(var c,d=0,e=a.length;d<e;d++){var f=a[d],g=this.createElementDefaultNS("Style",null,f.current&&f.current==true?{current:"1"}:null);f.href?(c=this.createElementDefaultNS("SLD"),f.name&&c.appendChild(this.createElementDefaultNS("Name",f.name)),f.title&&c.appendChild(this.createElementDefaultNS("Title",f.title)),f.legend&&c.appendChild(this.write_wmc_URLType("LegendURL",
f.legend.href,f.legend)),f=this.write_wmc_OnlineResource(f.href),c.appendChild(f),g.appendChild(c)):f.body?(c=this.createElementDefaultNS("SLD"),f.name&&c.appendChild(this.createElementDefaultNS("Name",f.name)),f.title&&c.appendChild(this.createElementDefaultNS("Title",f.title)),f.legend&&c.appendChild(this.write_wmc_URLType("LegendURL",f.legend.href,f.legend)),f=OpenLayers.Format.XML.prototype.read.apply(this,[f.body]).documentElement,c.ownerDocument&&c.ownerDocument.importNode&&(f=c.ownerDocument.importNode(f,
true)),c.appendChild(f),g.appendChild(c)):(g.appendChild(this.createElementDefaultNS("Name",f.name)),g.appendChild(this.createElementDefaultNS("Title",f.title)),f["abstract"]&&g.appendChild(this.createElementDefaultNS("Abstract",f["abstract"])),f.legend&&g.appendChild(this.write_wmc_URLType("LegendURL",f.legend.href,f.legend)));b.appendChild(g)}return b},write_wmc_OnlineResource:function(a){var b=this.createElementDefaultNS("OnlineResource");this.setAttributeNS(b,this.namespaces.xlink,"xlink:type",
"simple");this.setAttributeNS(b,this.namespaces.xlink,"xlink:href",a);return b},getOnlineResource_href:function(a){var b={},a=a.getElementsByTagName("OnlineResource");a.length>0&&this.read_wmc_OnlineResource(b,a[0]);return b.href},CLASS_NAME:"OpenLayers.Format.WMC.v1"});
OpenLayers.Control.PanPanel=OpenLayers.Class(OpenLayers.Control.Panel,{slideFactor:50,slideRatio:null,initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);a={slideFactor:this.slideFactor,slideRatio:this.slideRatio};this.addControls([new OpenLayers.Control.Pan(OpenLayers.Control.Pan.NORTH,a),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.SOUTH,a),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.EAST,a),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.WEST,a)])},
CLASS_NAME:"OpenLayers.Control.PanPanel"});
OpenLayers.Control.Attribution=OpenLayers.Class(OpenLayers.Control,{separator:", ",destroy:function(){this.map.events.un({removelayer:this.updateAttribution,addlayer:this.updateAttribution,changelayer:this.updateAttribution,changebaselayer:this.updateAttribution,scope:this});OpenLayers.Control.prototype.destroy.apply(this,arguments)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.map.events.on({changebaselayer:this.updateAttribution,changelayer:this.updateAttribution,
addlayer:this.updateAttribution,removelayer:this.updateAttribution,scope:this});this.updateAttribution();return this.div},updateAttribution:function(){var a=[];if(this.map&&this.map.layers){for(var b=0,c=this.map.layers.length;b<c;b++){var d=this.map.layers[b];d.attribution&&d.getVisibility()&&OpenLayers.Util.indexOf(a,d.attribution)===-1&&a.push(d.attribution)}this.div.innerHTML=a.join(this.separator)}},CLASS_NAME:"OpenLayers.Control.Attribution"});
OpenLayers.Renderer.NG=OpenLayers.Class(OpenLayers.Renderer.Elements,{labelNodeType:null,updateDimensions:function(){var a=this.map.getExtent(),b=a.scale(3);this.setExtent(b,true);var c=this.getResolution(),d=this.rendererRoot.parentNode,e=parseFloat(d.parentNode.style.left),f=parseFloat(d.parentNode.style.top);d.style.left=(b.left-a.left)/c-e+"px";d.style.top=(a.top-b.top)/c-f+"px"},setSize:function(){this.map.getExtent()&&this.updateDimensions()},drawFeature:function(a,b){if(b==null)b=a.style;if(a.geometry){var c=
this.drawGeometry(a.geometry,b,a.id);if(c!==false&&b.label){var d=a.geometry.getCentroid();this.drawText(a.id,b,d)}else this.removeText(a.id);return c}},drawText:function(a,b,c){var d;typeof a!=="string"?d=a:(d=this.nodeFactory(a+this.LABEL_ID_SUFFIX,this.labelNodeType),d._featureId=a);d._style=b;d._x=c.x;d._y=c.y;if(b.labelXOffset||b.labelYOffset){var a=isNaN(b.labelXOffset)?0:b.labelXOffset,b=isNaN(b.labelYOffset)?0:b.labelYOffset,e=this.getResolution();c.move(a*e,b*e)}d.parentNode!==this.textRoot&&
this.textRoot.appendChild(d);return d},CLASS_NAME:"OpenLayers.Renderer.NG"});
OpenLayers.Renderer.SVG2=OpenLayers.Class(OpenLayers.Renderer.NG,{xmlns:"http://www.w3.org/2000/svg",xlinkns:"http://www.w3.org/1999/xlink",symbolMetrics:null,labelNodeType:"g",initialize:function(a){if(this.supported())OpenLayers.Renderer.Elements.prototype.initialize.apply(this,arguments),this.symbolMetrics={}},supported:function(){return document.implementation&&(document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG",
"1.1")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))},updateDimensions:function(a){OpenLayers.Renderer.NG.prototype.updateDimensions.apply(this,arguments);var b=this.getResolution(),c=this.extent.getWidth(),d=this.extent.getHeight();this.rendererRoot.setAttributeNS(null,"viewBox",[this.extent.left,-this.extent.top,c,d].join(" "));this.rendererRoot.setAttributeNS(null,"width",c/b);this.rendererRoot.setAttributeNS(null,"height",d/b);if(a===true){d=this.vectorRoot.childNodes;
for(b=0,c=d.length;b<c;++b)this.setStyle(d[b]);var d=this.textRoot.childNodes,e;for(b=0,c=d.length;b<c;++b)e=d[b],this.drawText(e,e._style,new OpenLayers.Geometry.Point(e._x,e._y))}},getNodeType:function(a,b){var c=null;switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":c=b.externalGraphic?"image":this.isComplexSymbol(b.graphicName)?"svg":"circle";break;case "OpenLayers.Geometry.Rectangle":c="rect";break;case "OpenLayers.Geometry.LineString":c="polyline";break;case "OpenLayers.Geometry.LinearRing":c=
"polygon";break;case "OpenLayers.Geometry.Polygon":case "OpenLayers.Geometry.Curve":case "OpenLayers.Geometry.Surface":c="path"}return c},setStyle:function(a,b,c){var b=b||a._style,c=c||a._options,d=this.getResolution(),e=a._radius,f=d;if(a._geometryClass=="OpenLayers.Geometry.Point"&&e){a.style.visibility="";if(b.graphic===false)a.style.visibility="hidden";else if(b.externalGraphic){if(b.graphicTitle)a.setAttributeNS(null,"title",b.graphicTitle),e=this.nodeFactory(null,"title"),e.textContent=b.graphicTitle,
a.appendChild(e);b.graphicWidth&&b.graphicHeight&&a.setAttributeNS(null,"preserveAspectRatio","none");var e=b.graphicWidth||b.graphicHeight,g=b.graphicHeight||b.graphicWidth,e=e?e:b.pointRadius*2,g=g?g:b.pointRadius*2;e*=d;g*=d;var h=b.graphicYOffset!=void 0?b.graphicYOffset*d:-(0.5*g),i=b.graphicOpacity||b.fillOpacity;a.setAttributeNS(null,"x",a._x+(b.graphicXOffset!=void 0?b.graphicXOffset*d:-(0.5*e)));a.setAttributeNS(null,"y",a._y+h);a.setAttributeNS(null,"width",e);a.setAttributeNS(null,"height",
g);a.setAttributeNS(this.xlinkns,"href",b.externalGraphic);a.setAttributeNS(null,"style","opacity: "+i);a.onclick=OpenLayers.Renderer.SVG2.preventDefault}else if(this.isComplexSymbol(b.graphicName)){var e=b.pointRadius*3*d,g=e*2,j=this.importSymbol(b.graphicName),f=this.symbolMetrics[j.id].size*3/g*d,d=a.parentNode,h=a.nextSibling;d&&d.removeChild(a);a.firstChild&&a.removeChild(a.firstChild);a.appendChild(j.firstChild.cloneNode(true));a.setAttributeNS(null,"viewBox",j.getAttributeNS(null,"viewBox"));
a.setAttributeNS(null,"width",g);a.setAttributeNS(null,"height",g);a.setAttributeNS(null,"x",a._x-e);a.setAttributeNS(null,"y",a._y-e);h?d.insertBefore(a,h):d&&d.appendChild(a)}else a.setAttributeNS(null,"r",b.pointRadius*d);d=b.rotation;if(d!==void 0||a._rotation!==void 0)a._rotation=d,d|=0,a.nodeName!=="svg"?a.setAttributeNS(null,"transform",["rotate(",d,a._x,a._y,")"].join(" ")):(j=this.symbolMetrics[j.id],a.firstChild.setAttributeNS(null,"transform",["rotate(",d,j.x,j.y,")"].join(" ")))}c.isFilled?
(a.setAttributeNS(null,"fill",b.fillColor),a.setAttributeNS(null,"fill-opacity",b.fillOpacity)):a.setAttributeNS(null,"fill","none");c.isStroked?(a.setAttributeNS(null,"stroke",b.strokeColor),a.setAttributeNS(null,"stroke-opacity",b.strokeOpacity),a.setAttributeNS(null,"stroke-width",b.strokeWidth*f),a.setAttributeNS(null,"stroke-linecap",b.strokeLinecap||"round"),a.setAttributeNS(null,"stroke-linejoin","round"),b.strokeDashstyle&&a.setAttributeNS(null,"stroke-dasharray",this.dashStyle(b,f))):a.setAttributeNS(null,
"stroke","none");b.pointerEvents&&a.setAttributeNS(null,"pointer-events",b.pointerEvents);b.cursor!=null&&a.setAttributeNS(null,"cursor",b.cursor);return a},dashStyle:function(a,b){var c=a.strokeWidth*b,d=a.strokeDashstyle;switch(d){case "solid":return"none";case "dot":return[b,4*c].join();case "dash":return[4*c,4*c].join();case "dashdot":return[4*c,4*c,b,4*c].join();case "longdash":return[8*c,4*c].join();case "longdashdot":return[8*c,4*c,b,4*c].join();default:for(var c=OpenLayers.String.trim(d).split(/\s+/g),
d=0,e=c.length;d<e;d++)c[d]*=b;return c.join()}},createNode:function(a,b){var c=document.createElementNS(this.xmlns,a);b&&c.setAttributeNS(null,"id",b);return c},nodeTypeCompare:function(a,b){return b==a.nodeName},createRenderRoot:function(){return this.nodeFactory(this.container.id+"_svgRoot","svg")},createRoot:function(a){return this.nodeFactory(this.container.id+a,"g")},createDefs:function(){var a=this.nodeFactory(this.container.id+"_defs","defs");this.rendererRoot.appendChild(a);return a},drawPoint:function(a,
b){return this.drawCircle(a,b,1)},drawCircle:function(a,b,c){var d=b.x,b=-b.y;a.setAttributeNS(null,"cx",d);a.setAttributeNS(null,"cy",b);a._x=d;a._y=b;a._radius=c;return a},drawLineString:function(a,b){var c=this.getComponentsString(b.components);a.setAttributeNS(null,"points",c);return a},drawLinearRing:function(a,b){var c=this.getComponentsString(b.components);a.setAttributeNS(null,"points",c);return a},drawPolygon:function(a,b){for(var c=[],d,e=0,f=b.components.length;e<f;e++)c.push("M"),d=this.getComponentsString(b.components[e].components,
" "),c.push(d);c.push("z");a.setAttributeNS(null,"d",c.join(" "));a.setAttributeNS(null,"fill-rule","evenodd");return a},drawRectangle:function(a,b){a.setAttributeNS(null,"x",b.x);a.setAttributeNS(null,"y",-b.y);a.setAttributeNS(null,"width",b.width);a.setAttributeNS(null,"height",b.height);return a},drawSurface:function(a,b){for(var c=[],d=0,e=b.components.length;d<e;d++)if(d%3==0&&d/3==0){var f=this.getShortString(b.components[d]);c.push("M",f)}else d%3==1?(f=this.getShortString(b.components[d]),
c.push("C",f)):(f=this.getShortString(b.components[d]),c.push(f));c.push("Z");a.setAttributeNS(null,"d",c.join(" "));return a},drawText:function(a,b,c){var d=OpenLayers.Renderer.NG.prototype.drawText.apply(this,arguments),e=d.firstChild||this.nodeFactory(a+this.LABEL_ID_SUFFIX+"_text","text"),f=this.getResolution();e.setAttributeNS(null,"x",c.x/f);e.setAttributeNS(null,"y",-c.y/f);d.setAttributeNS(null,"transform","scale("+f+")");b.fontColor&&e.setAttributeNS(null,"fill",b.fontColor);b.fontOpacity&&
e.setAttributeNS(null,"opacity",b.fontOpacity);b.fontFamily&&e.setAttributeNS(null,"font-family",b.fontFamily);b.fontSize&&e.setAttributeNS(null,"font-size",b.fontSize);b.fontWeight&&e.setAttributeNS(null,"font-weight",b.fontWeight);b.fontStyle&&e.setAttributeNS(null,"font-style",b.fontStyle);b.labelSelect===true?(e.setAttributeNS(null,"pointer-events","visible"),e._featureId=a):e.setAttributeNS(null,"pointer-events","none");var g=b.labelAlign||"cm";e.setAttributeNS(null,"text-anchor",OpenLayers.Renderer.SVG2.LABEL_ALIGN[g[0]]||
"middle");OpenLayers.IS_GECKO===true&&e.setAttributeNS(null,"dominant-baseline",OpenLayers.Renderer.SVG2.LABEL_ALIGN[g[1]]||"central");for(var h=b.label.split("\n"),i=h.length;e.childNodes.length>i;)e.removeChild(e.lastChild);for(var j=0;j<i;j++){var k=e.childNodes[j]||this.nodeFactory(a+this.LABEL_ID_SUFFIX+"_tspan_"+j,"tspan");if(b.labelSelect===true)k._featureId=a;OpenLayers.IS_GECKO===false&&k.setAttributeNS(null,"baseline-shift",OpenLayers.Renderer.SVG2.LABEL_VSHIFT[g[1]]||"-35%");k.setAttribute("x",
c.x/f);if(j==0){var l=OpenLayers.Renderer.SVG2.LABEL_VFACTOR[g[1]];l==null&&(l=-0.5);k.setAttribute("dy",l*(i-1)+"em")}else k.setAttribute("dy","1em");k.textContent=h[j]===""?" ":h[j];k.parentNode||e.appendChild(k)}e.parentNode||d.appendChild(e);return d},getComponentsString:function(a,b){for(var c=a.length,d=Array(c),e=0;e<c;e++)d[e]=this.getShortString(a[e]);return d.join(b||",")},getShortString:function(a){return a.x+","+-a.y},importSymbol:function(a){if(!this.defs)this.defs=this.createDefs();
var b=this.container.id+"-"+a,c=document.getElementById(b);if(c!=null)return c;var d=OpenLayers.Renderer.symbol[a];if(!d)throw Error(a+" is not a valid symbol name");var a=this.nodeFactory(b,"symbol"),e=this.nodeFactory(null,"polygon");a.appendChild(e);for(var c=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0),f=[],g,h,i=0,j=d.length;i<j;i+=2)g=d[i],h=d[i+1],c.left=Math.min(c.left,g),c.bottom=Math.min(c.bottom,h),c.right=Math.max(c.right,g),c.top=Math.max(c.top,h),f.push(g,",",h);e.setAttributeNS(null,
"points",f.join(" "));d=c.getWidth();e=c.getHeight();a.setAttributeNS(null,"viewBox",[c.left-d,c.bottom-e,d*3,e*3].join(" "));this.symbolMetrics[b]={size:Math.max(d,e),x:c.getCenterLonLat().lon,y:c.getCenterLonLat().lat};this.defs.appendChild(a);return a},getFeatureIdFromEvent:function(a){var b=OpenLayers.Renderer.Elements.prototype.getFeatureIdFromEvent.apply(this,arguments);if(!b)b=a.target,b=b.parentNode&&b!=this.rendererRoot&&b.parentNode._featureId;return b},CLASS_NAME:"OpenLayers.Renderer.SVG2"});
OpenLayers.Renderer.SVG2.LABEL_ALIGN={l:"start",r:"end",b:"bottom",t:"hanging"};OpenLayers.Renderer.SVG2.LABEL_VSHIFT={t:"-70%",b:"0"};OpenLayers.Renderer.SVG2.LABEL_VFACTOR={t:0,b:-1};OpenLayers.Renderer.SVG2.preventDefault=function(a){a.preventDefault&&a.preventDefault()};
OpenLayers.Kinetic=OpenLayers.Class({threshold:0,interval:10,deceleration:0.0035,nbPoints:100,delay:200,points:void 0,timerId:void 0,initialize:function(a){OpenLayers.Util.extend(this,a)},begin:function(){clearInterval(this.timerId);this.timerId=void 0;this.points=[]},update:function(a){this.points.unshift({xy:a,tick:(new Date).getTime()});this.points.length>this.nbPoints&&this.points.pop()},end:function(a){for(var b,c=(new Date).getTime(),d=0,e=this.points.length,f;d<e;d++){f=this.points[d];if(c-
f.tick>this.delay)break;b=f}if(b&&(d=(new Date).getTime()-b.tick,c=Math.sqrt(Math.pow(a.x-b.xy.x,2)+Math.pow(a.y-b.xy.y,2)),d=c/d,!(d==0||d<this.threshold)))return c=Math.asin((a.y-b.xy.y)/c),b.xy.x<=a.x&&(c=Math.PI-c),{speed:d,theta:c}},move:function(a,b){var c=a.speed,d=Math.cos(a.theta),e=-Math.sin(a.theta),f=0,g=(new Date).getTime(),h=0,i=0;this.timerId=window.setInterval(OpenLayers.Function.bind(function(){if(this.timerId!=null){f+=this.interval;var a=(new Date).getTime()-g,k=(f+a)/2,l=-this.deceleration*
Math.pow(k,2)/2+c*k,a=l*d;l*=e;var m,n;m=false;if(-this.deceleration*k+c<=0)clearInterval(this.timerId),this.timerId=null,m=true;k=a-h;n=l-i;h=a;i=l;b(k,n,m)}},this),this.interval)},CLASS_NAME:"OpenLayers.Kinetic"});OpenLayers.ProxyHost="";OpenLayers.nullHandler=function(a){OpenLayers.Console.userError(OpenLayers.i18n("unhandledRequest",{statusText:a.statusText}))};
OpenLayers.loadURL=function(a,b,c,d,e){typeof b=="string"&&(b=OpenLayers.Util.getParameters(b));return OpenLayers.Request.GET({url:a,params:b,success:d?d:OpenLayers.nullHandler,failure:e?e:OpenLayers.nullHandler,scope:c})};
OpenLayers.parseXMLString=function(a){var b=a.indexOf("<");b>0&&(a=a.substring(b));return OpenLayers.Util.Try(function(){var b=new ActiveXObject("Microsoft.XMLDOM");b.loadXML(a);return b},function(){return(new DOMParser).parseFromString(a,"text/xml")},function(){var b=new XMLHttpRequest;b.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(a),false);b.overrideMimeType&&b.overrideMimeType("text/xml");b.send(null);return b.responseXML})};
OpenLayers.Ajax={emptyFunction:function(){},getTransport:function(){return OpenLayers.Util.Try(function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")})||false},activeRequestCount:0};
OpenLayers.Ajax.Responders={responders:[],register:function(a){for(var b=0;b<this.responders.length;b++)if(a==this.responders[b])return;this.responders.push(a)},unregister:function(a){OpenLayers.Util.removeItem(this.reponders,a)},dispatch:function(a,b,c){for(var d,e=0;e<this.responders.length;e++)if(d=this.responders[e],d[a]&&typeof d[a]=="function")try{d[a].apply(d,[b,c])}catch(f){}}};OpenLayers.Ajax.Responders.register({onCreate:function(){OpenLayers.Ajax.activeRequestCount++},onComplete:function(){OpenLayers.Ajax.activeRequestCount--}});
OpenLayers.Ajax.Base=OpenLayers.Class({initialize:function(a){this.options={method:"post",asynchronous:true,contentType:"application/xml",parameters:""};OpenLayers.Util.extend(this.options,a||{});this.options.method=this.options.method.toLowerCase();if(typeof this.options.parameters=="string")this.options.parameters=OpenLayers.Util.getParameters(this.options.parameters)}});
OpenLayers.Ajax.Request=OpenLayers.Class(OpenLayers.Ajax.Base,{_complete:false,initialize:function(a,b){OpenLayers.Ajax.Base.prototype.initialize.apply(this,[b]);OpenLayers.ProxyHost&&OpenLayers.String.startsWith(a,"http")&&(a=OpenLayers.ProxyHost+encodeURIComponent(a));this.transport=OpenLayers.Ajax.getTransport();this.request(a)},request:function(a){this.url=a;this.method=this.options.method;a=OpenLayers.Util.extend({},this.options.parameters);if(this.method!="get"&&this.method!="post")a._method=
this.method,this.method="post";this.parameters=a;if(a=OpenLayers.Util.getParameterString(a))this.method=="get"?this.url+=(this.url.indexOf("?")>-1?"&":"?")+a:/Konqueror|Safari|KHTML/.test(navigator.userAgent)&&(a+="&_=");try{var b=new OpenLayers.Ajax.Response(this);if(this.options.onCreate)this.options.onCreate(b);OpenLayers.Ajax.Responders.dispatch("onCreate",this,b);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);this.options.asynchronous&&window.setTimeout(OpenLayers.Function.bind(this.respondToReadyState,
this,1),10);this.transport.onreadystatechange=OpenLayers.Function.bind(this.onStateChange,this);this.setRequestHeaders();this.body=this.method=="post"?this.options.postBody||a:null;this.transport.send(this.body);if(!this.options.asynchronous&&this.transport.overrideMimeType)this.onStateChange()}catch(c){this.dispatchException(c)}},onStateChange:function(){var a=this.transport.readyState;a>1&&!(a==4&&this._complete)&&this.respondToReadyState(this.transport.readyState)},setRequestHeaders:function(){var a=
{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*",OpenLayers:true};if(this.method=="post"&&(a["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:""),this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005))a.Connection="close";if(typeof this.options.requestHeaders=="object"){var b=this.options.requestHeaders;if(typeof b.push=="function")for(var c=0,d=b.length;c<
d;c+=2)a[b[c]]=b[c+1];else for(c in b)a[c]=b[c]}for(var e in a)this.transport.setRequestHeader(e,a[e])},success:function(){var a=this.getStatus();return!a||a>=200&&a<300},getStatus:function(){try{return this.transport.status||0}catch(a){return 0}},respondToReadyState:function(a){var a=OpenLayers.Ajax.Request.Events[a],b=new OpenLayers.Ajax.Response(this);if(a=="Complete"){try{this._complete=true,(this.options["on"+b.status]||this.options["on"+(this.success()?"Success":"Failure")]||OpenLayers.Ajax.emptyFunction)(b)}catch(c){this.dispatchException(c)}b.getHeader("Content-type")}try{(this.options["on"+
a]||OpenLayers.Ajax.emptyFunction)(b),OpenLayers.Ajax.Responders.dispatch("on"+a,this,b)}catch(d){this.dispatchException(d)}if(a=="Complete")this.transport.onreadystatechange=OpenLayers.Ajax.emptyFunction},getHeader:function(a){try{return this.transport.getResponseHeader(a)}catch(b){return null}},dispatchException:function(a){var b=this.options.onException;if(b)b(this,a),OpenLayers.Ajax.Responders.dispatch("onException",this,a);else{for(var b=false,c=OpenLayers.Ajax.Responders.responders,d=0;d<c.length;d++)if(c[d].onException){b=
true;break}if(b)OpenLayers.Ajax.Responders.dispatch("onException",this,a);else throw a;}}});OpenLayers.Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
OpenLayers.Ajax.Response=OpenLayers.Class({status:0,statusText:"",initialize:function(a){this.request=a;var a=this.transport=a.transport,b=this.readyState=a.readyState;if(b>2&&(!window.attachEvent||window.opera)||b==4)this.status=this.getStatus(),this.statusText=this.getStatusText(),this.responseText=a.responseText==null?"":String(a.responseText);if(b==4)a=a.responseXML,this.responseXML=a===void 0?null:a},getStatus:OpenLayers.Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||
""}catch(a){return""}},getHeader:OpenLayers.Ajax.Request.prototype.getHeader,getResponseHeader:function(a){return this.transport.getResponseHeader(a)}});OpenLayers.Ajax.getElementsByTagNameNS=function(a,b,c,d){var e=null;return e=a.getElementsByTagNameNS?a.getElementsByTagNameNS(b,d):a.getElementsByTagName(c+":"+d)};OpenLayers.Ajax.serializeXMLToString=function(a){return(new XMLSerializer).serializeToString(a)};
OpenLayers.Strategy.Paging=OpenLayers.Class(OpenLayers.Strategy,{features:null,length:10,num:null,paging:false,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a)this.layer.events.on({beforefeaturesadded:this.cacheFeatures,scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&(this.clearCache(),this.layer.events.un({beforefeaturesadded:this.cacheFeatures,scope:this}));return a},cacheFeatures:function(a){if(!this.paging)this.clearCache(),
this.features=a.features,this.pageNext(a)},clearCache:function(){if(this.features)for(var a=0;a<this.features.length;++a)this.features[a].destroy();this.num=this.features=null},pageCount:function(){return Math.ceil((this.features?this.features.length:0)/this.length)},pageNum:function(){return this.num},pageLength:function(a){if(a&&a>0)this.length=a;return this.length},pageNext:function(a){var b=false;if(this.features){if(this.num===null)this.num=-1;b=this.page((this.num+1)*this.length,a)}return b},
pagePrevious:function(){var a=false;if(this.features){if(this.num===null)this.num=this.pageCount();a=this.page((this.num-1)*this.length)}return a},page:function(a,b){var c=false;if(this.features&&a>=0&&a<this.features.length){var d=Math.floor(a/this.length);if(d!=this.num)this.paging=true,c=this.features.slice(a,a+this.length),this.layer.removeFeatures(this.layer.features),this.num=d,b&&b.features?b.features=c:this.layer.addFeatures(c),this.paging=false,c=true}return c},CLASS_NAME:"OpenLayers.Strategy.Paging"});
OpenLayers.Format.SOSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",CLASS_NAME:"OpenLayers.Format.SOSCapabilities"});
OpenLayers.Layer.KaMap=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,units:null,resolution:OpenLayers.DOTS_PER_INCH,DEFAULT_PARAMS:{i:"jpeg",map:""},initialize:function(a,b,c,d){var e=[];e.push(a,b,c,d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS)},getURL:function(a){var a=this.adjustBounds(a),b=this.map.getResolution(),c=Math.round(this.map.getScale()*1E4)/1E4,d=Math.round(a.left/b);return this.getFullRequestString({t:-Math.round(a.top/
b),l:d,s:c})},calculateGridLayout:function(a,b,c){b=c*this.tileSize.w;c*=this.tileSize.h;var d=a.left,e=Math.floor(d/b)-this.buffer,d=-(d/b-e)*this.tileSize.w;e*=b;var a=a.top,f=Math.ceil(a/c)+this.buffer;return{tilelon:b,tilelat:c,tileoffsetlon:e,tileoffsetlat:f*c,tileoffsetx:d,tileoffsety:-(f-a/c+1)*this.tileSize.h}},clone:function(a){a==null&&(a=new OpenLayers.Layer.KaMap(this.name,this.url,this.params,this.getOptions()));a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);if(this.tileSize!=
null)a.tileSize=this.tileSize.clone();a.grid=[];return a},getTileBounds:function(a){var b=this.getResolution(),c=b*this.tileSize.w;b*=this.tileSize.h;var d=this.getLonLatFromViewPortPx(a),a=c*Math.floor(d.lon/c),d=b*Math.floor(d.lat/b);return new OpenLayers.Bounds(a,d,a+c,d+b)},CLASS_NAME:"OpenLayers.Layer.KaMap"});
OpenLayers.Format.WMC.v1_1_0=OpenLayers.Class(OpenLayers.Format.WMC.v1,{VERSION:"1.1.0",schemaLocation:"http://www.opengis.net/context http://schemas.opengis.net/context/1.1.0/context.xsd",initialize:function(a){OpenLayers.Format.WMC.v1.prototype.initialize.apply(this,[a])},read_sld_MinScaleDenominator:function(a,b){var c=parseFloat(this.getChildValue(b));if(c>0)a.maxScale=c},read_sld_MaxScaleDenominator:function(a,b){a.minScale=parseFloat(this.getChildValue(b))},read_wmc_SRS:function(a,b){if(!("srs"in
a))a.srs={};a.srs[this.getChildValue(b)]=true},write_wmc_Layer:function(a){var b=OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(this,[a]);if(a.maxScale){var c=this.createElementNS(this.namespaces.sld,"sld:MinScaleDenominator");c.appendChild(this.createTextNode(a.maxScale.toPrecision(16)));b.appendChild(c)}a.minScale&&(c=this.createElementNS(this.namespaces.sld,"sld:MaxScaleDenominator"),c.appendChild(this.createTextNode(a.minScale.toPrecision(16))),b.appendChild(c));if(a.srs)for(var d in a.srs)b.appendChild(this.createElementDefaultNS("SRS",
d));b.appendChild(this.write_wmc_FormatList(a));b.appendChild(this.write_wmc_StyleList(a));a.dimensions&&b.appendChild(this.write_wmc_DimensionList(a));b.appendChild(this.write_wmc_LayerExtension(a));return b},CLASS_NAME:"OpenLayers.Format.WMC.v1_1_0"});
OpenLayers.Renderer.SVG=OpenLayers.Class(OpenLayers.Renderer.Elements,{xmlns:"http://www.w3.org/2000/svg",xlinkns:"http://www.w3.org/1999/xlink",MAX_PIXEL:15E3,translationParameters:null,symbolMetrics:null,initialize:function(a){if(this.supported())OpenLayers.Renderer.Elements.prototype.initialize.apply(this,arguments),this.translationParameters={x:0,y:0},this.symbolMetrics={}},supported:function(){return document.implementation&&(document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#SVG",
"1.1")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"))},inValidRange:function(a,b,c){a+=c?0:this.translationParameters.x;b+=c?0:this.translationParameters.y;return a>=-this.MAX_PIXEL&&a<=this.MAX_PIXEL&&b>=-this.MAX_PIXEL&&b<=this.MAX_PIXEL},setExtent:function(a,b){OpenLayers.Renderer.Elements.prototype.setExtent.apply(this,arguments);var c=this.getResolution(),d=-a.left/c,c=a.top/c;return b?(this.left=d,this.top=c,this.rendererRoot.setAttributeNS(null,
"viewBox","0 0 "+this.size.w+" "+this.size.h),this.translate(0,0),true):((d=this.translate(d-this.left,c-this.top))||this.setExtent(a,true),d)},translate:function(a,b){if(this.inValidRange(a,b,true)){var c="";if(a||b)c="translate("+a+","+b+")";this.root.setAttributeNS(null,"transform",c);this.translationParameters={x:a,y:b};return true}else return false},setSize:function(a){OpenLayers.Renderer.prototype.setSize.apply(this,arguments);this.rendererRoot.setAttributeNS(null,"width",this.size.w);this.rendererRoot.setAttributeNS(null,
"height",this.size.h)},getNodeType:function(a,b){var c=null;switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":c=b.externalGraphic?"image":this.isComplexSymbol(b.graphicName)?"svg":"circle";break;case "OpenLayers.Geometry.Rectangle":c="rect";break;case "OpenLayers.Geometry.LineString":c="polyline";break;case "OpenLayers.Geometry.LinearRing":c="polygon";break;case "OpenLayers.Geometry.Polygon":case "OpenLayers.Geometry.Curve":case "OpenLayers.Geometry.Surface":c="path"}return c},setStyle:function(a,
b,c){var b=b||a._style,c=c||a._options,d=parseFloat(a.getAttributeNS(null,"r")),e=1,f;if(a._geometryClass=="OpenLayers.Geometry.Point"&&d){a.style.visibility="";if(b.graphic===false)a.style.visibility="hidden";else if(b.externalGraphic){f=this.getPosition(a);if(b.graphicTitle)a.setAttributeNS(null,"title",b.graphicTitle),d=this.nodeFactory(null,"title"),d.textContent=b.graphicTitle,a.appendChild(d);b.graphicWidth&&b.graphicHeight&&a.setAttributeNS(null,"preserveAspectRatio","none");var d=b.graphicWidth||
b.graphicHeight,g=b.graphicHeight||b.graphicWidth,d=d?d:b.pointRadius*2,g=g?g:b.pointRadius*2,h=b.graphicYOffset!=void 0?b.graphicYOffset:-(0.5*g),i=b.graphicOpacity||b.fillOpacity;a.setAttributeNS(null,"x",(f.x+(b.graphicXOffset!=void 0?b.graphicXOffset:-(0.5*d))).toFixed());a.setAttributeNS(null,"y",(f.y+h).toFixed());a.setAttributeNS(null,"width",d);a.setAttributeNS(null,"height",g);a.setAttributeNS(this.xlinkns,"href",b.externalGraphic);a.setAttributeNS(null,"style","opacity: "+i);a.onclick=OpenLayers.Renderer.SVG.preventDefault}else if(this.isComplexSymbol(b.graphicName)){var d=
b.pointRadius*3,g=d*2,j=this.importSymbol(b.graphicName);f=this.getPosition(a);e=this.symbolMetrics[j.id][0]*3/g;h=a.parentNode;i=a.nextSibling;h&&h.removeChild(a);a.firstChild&&a.removeChild(a.firstChild);a.appendChild(j.firstChild.cloneNode(true));a.setAttributeNS(null,"viewBox",j.getAttributeNS(null,"viewBox"));a.setAttributeNS(null,"width",g);a.setAttributeNS(null,"height",g);a.setAttributeNS(null,"x",f.x-d);a.setAttributeNS(null,"y",f.y-d);i?h.insertBefore(a,i):h&&h.appendChild(a)}else a.setAttributeNS(null,
"r",b.pointRadius);d=b.rotation;if((d!==void 0||a._rotation!==void 0)&&f)a._rotation=d,d|=0,a.nodeName!=="svg"?a.setAttributeNS(null,"transform","rotate("+d+" "+f.x+" "+f.y+")"):(f=this.symbolMetrics[j.id],a.firstChild.setAttributeNS(null,"transform","rotate("+d+" "+f[1]+" "+f[2]+")"))}c.isFilled?(a.setAttributeNS(null,"fill",b.fillColor),a.setAttributeNS(null,"fill-opacity",b.fillOpacity)):a.setAttributeNS(null,"fill","none");c.isStroked?(a.setAttributeNS(null,"stroke",b.strokeColor),a.setAttributeNS(null,
"stroke-opacity",b.strokeOpacity),a.setAttributeNS(null,"stroke-width",b.strokeWidth*e),a.setAttributeNS(null,"stroke-linecap",b.strokeLinecap||"round"),a.setAttributeNS(null,"stroke-linejoin","round"),b.strokeDashstyle&&a.setAttributeNS(null,"stroke-dasharray",this.dashStyle(b,e))):a.setAttributeNS(null,"stroke","none");b.pointerEvents&&a.setAttributeNS(null,"pointer-events",b.pointerEvents);b.cursor!=null&&a.setAttributeNS(null,"cursor",b.cursor);return a},dashStyle:function(a,b){var c=a.strokeWidth*
b,d=a.strokeDashstyle;switch(d){case "solid":return"none";case "dot":return[1,4*c].join();case "dash":return[4*c,4*c].join();case "dashdot":return[4*c,4*c,1,4*c].join();case "longdash":return[8*c,4*c].join();case "longdashdot":return[8*c,4*c,1,4*c].join();default:return OpenLayers.String.trim(d).replace(/\s+/g,",")}},createNode:function(a,b){var c=document.createElementNS(this.xmlns,a);b&&c.setAttributeNS(null,"id",b);return c},nodeTypeCompare:function(a,b){return b==a.nodeName},createRenderRoot:function(){return this.nodeFactory(this.container.id+
"_svgRoot","svg")},createRoot:function(a){return this.nodeFactory(this.container.id+a,"g")},createDefs:function(){var a=this.nodeFactory(this.container.id+"_defs","defs");this.rendererRoot.appendChild(a);return a},drawPoint:function(a,b){return this.drawCircle(a,b,1)},drawCircle:function(a,b,c){var d=this.getResolution(),e=b.x/d+this.left,b=this.top-b.y/d;return this.inValidRange(e,b)?(a.setAttributeNS(null,"cx",e),a.setAttributeNS(null,"cy",b),a.setAttributeNS(null,"r",c),a):false},drawLineString:function(a,
b){var c=this.getComponentsString(b.components);return c.path?(a.setAttributeNS(null,"points",c.path),c.complete?a:null):false},drawLinearRing:function(a,b){var c=this.getComponentsString(b.components);return c.path?(a.setAttributeNS(null,"points",c.path),c.complete?a:null):false},drawPolygon:function(a,b){for(var c="",d=true,e=true,f,g,h=0,i=b.components.length;h<i;h++)c+=" M",f=this.getComponentsString(b.components[h].components," "),(g=f.path)?(c+=" "+g,e=f.complete&&e):d=false;c+=" z";return d?
(a.setAttributeNS(null,"d",c),a.setAttributeNS(null,"fill-rule","evenodd"),e?a:null):false},drawRectangle:function(a,b){var c=this.getResolution(),d=b.x/c+this.left,e=this.top-b.y/c;return this.inValidRange(d,e)?(a.setAttributeNS(null,"x",d),a.setAttributeNS(null,"y",e),a.setAttributeNS(null,"width",b.width/c),a.setAttributeNS(null,"height",b.height/c),a):false},drawSurface:function(a,b){for(var c=null,d=true,e=0,f=b.components.length;e<f;e++)if(e%3==0&&e/3==0){var g=this.getShortString(b.components[e]);
g||(d=false);c="M "+g}else e%3==1?((g=this.getShortString(b.components[e]))||(d=false),c+=" C "+g):((g=this.getShortString(b.components[e]))||(d=false),c+=" "+g);c+=" Z";return d?(a.setAttributeNS(null,"d",c),a):false},drawText:function(a,b,c){var d=this.getResolution(),e=c.x/d+this.left,f=c.y/d-this.top,d=this.nodeFactory(a+this.LABEL_ID_SUFFIX,"text");d.setAttributeNS(null,"x",e);d.setAttributeNS(null,"y",-f);b.fontColor&&d.setAttributeNS(null,"fill",b.fontColor);b.fontOpacity&&d.setAttributeNS(null,
"opacity",b.fontOpacity);b.fontFamily&&d.setAttributeNS(null,"font-family",b.fontFamily);b.fontSize&&d.setAttributeNS(null,"font-size",b.fontSize);b.fontWeight&&d.setAttributeNS(null,"font-weight",b.fontWeight);b.fontStyle&&d.setAttributeNS(null,"font-style",b.fontStyle);b.labelSelect===true?(d.setAttributeNS(null,"pointer-events","visible"),d._featureId=a):d.setAttributeNS(null,"pointer-events","none");f=b.labelAlign||"cm";d.setAttributeNS(null,"text-anchor",OpenLayers.Renderer.SVG.LABEL_ALIGN[f[0]]||
"middle");OpenLayers.IS_GECKO===true&&d.setAttributeNS(null,"dominant-baseline",OpenLayers.Renderer.SVG.LABEL_ALIGN[f[1]]||"central");for(var g=b.label.split("\n"),h=g.length;d.childNodes.length>h;)d.removeChild(d.lastChild);for(var i=0;i<h;i++){var j=this.nodeFactory(a+this.LABEL_ID_SUFFIX+"_tspan_"+i,"tspan");if(b.labelSelect===true)j._featureId=a,j._geometry=c,j._geometryClass=c.CLASS_NAME;OpenLayers.IS_GECKO===false&&j.setAttributeNS(null,"baseline-shift",OpenLayers.Renderer.SVG.LABEL_VSHIFT[f[1]]||
"-35%");j.setAttribute("x",e);if(i==0){var k=OpenLayers.Renderer.SVG.LABEL_VFACTOR[f[1]];k==null&&(k=-0.5);j.setAttribute("dy",k*(h-1)+"em")}else j.setAttribute("dy","1em");j.textContent=g[i]===""?" ":g[i];j.parentNode||d.appendChild(j)}d.parentNode||this.textRoot.appendChild(d)},getComponentsString:function(a,b){for(var c=[],d=true,e=a.length,f=[],g,h=0;h<e;h++)g=a[h],c.push(g),(g=this.getShortString(g))?f.push(g):(h>0&&this.getShortString(a[h-1])&&f.push(this.clipLine(a[h],a[h-1])),h<e-1&&this.getShortString(a[h+
1])&&f.push(this.clipLine(a[h],a[h+1])),d=false);return{path:f.join(b||","),complete:d}},clipLine:function(a,b){if(b.equals(a))return"";var c=this.getResolution(),d=this.MAX_PIXEL-this.translationParameters.x,e=this.MAX_PIXEL-this.translationParameters.y,f=b.x/c+this.left,g=this.top-b.y/c,h=a.x/c+this.left,c=this.top-a.y/c,i;if(h<-d||h>d)i=(c-g)/(h-f),h=h<0?-d:d,c=g+(h-f)*i;if(c<-e||c>e)i=(h-f)/(c-g),c=c<0?-e:e,h=f+(c-g)*i;return h+","+c},getShortString:function(a){var b=this.getResolution(),c=a.x/
b+this.left,a=this.top-a.y/b;return this.inValidRange(c,a)?c+","+a:false},getPosition:function(a){return{x:parseFloat(a.getAttributeNS(null,"cx")),y:parseFloat(a.getAttributeNS(null,"cy"))}},importSymbol:function(a){if(!this.defs)this.defs=this.createDefs();var b=this.container.id+"-"+a,c=document.getElementById(b);if(c!=null)return c;var d=OpenLayers.Renderer.symbol[a];if(!d)throw Error(a+" is not a valid symbol name");var a=this.nodeFactory(b,"symbol"),e=this.nodeFactory(null,"polygon");a.appendChild(e);
for(var c=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0),f=[],g,h,i=0;i<d.length;i+=2)g=d[i],h=d[i+1],c.left=Math.min(c.left,g),c.bottom=Math.min(c.bottom,h),c.right=Math.max(c.right,g),c.top=Math.max(c.top,h),f.push(g,",",h);e.setAttributeNS(null,"points",f.join(" "));d=c.getWidth();e=c.getHeight();a.setAttributeNS(null,"viewBox",[c.left-d,c.bottom-e,d*3,e*3].join(" "));this.symbolMetrics[b]=[Math.max(d,e),c.getCenterLonLat().lon,c.getCenterLonLat().lat];this.defs.appendChild(a);return a},
getFeatureIdFromEvent:function(a){var b=OpenLayers.Renderer.Elements.prototype.getFeatureIdFromEvent.apply(this,arguments);if(!b)b=a.target,b=b.parentNode&&b!=this.rendererRoot&&b.parentNode._featureId;return b},CLASS_NAME:"OpenLayers.Renderer.SVG"});OpenLayers.Renderer.SVG.LABEL_ALIGN={l:"start",r:"end",b:"bottom",t:"hanging"};OpenLayers.Renderer.SVG.LABEL_VSHIFT={t:"-70%",b:"0"};OpenLayers.Renderer.SVG.LABEL_VFACTOR={t:0,b:-1};
OpenLayers.Renderer.SVG.preventDefault=function(a){a.preventDefault&&a.preventDefault()};
OpenLayers.Format.SLD.v1=OpenLayers.Class(OpenLayers.Format.Filter.v1_0_0,{namespaces:{sld:"http://www.opengis.net/sld",ogc:"http://www.opengis.net/ogc",gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"sld",schemaLocation:null,multipleSymbolizers:false,featureTypeCounter:null,defaultSymbolizer:{fillColor:"#808080",fillOpacity:1,strokeColor:"#000000",strokeOpacity:1,strokeWidth:1,strokeDashstyle:"solid",pointRadius:3,
graphicName:"square"},initialize:function(a){OpenLayers.Format.Filter.v1_0_0.prototype.initialize.apply(this,[a])},read:function(a,b){var b=OpenLayers.Util.applyDefaults(b,this.options),c={namedLayers:b.namedLayersAsArray===true?[]:{}};this.readChildNodes(a,c);return c},readers:OpenLayers.Util.applyDefaults({sld:{StyledLayerDescriptor:function(a,b){b.version=a.getAttribute("version");this.readChildNodes(a,b)},Name:function(a,b){b.name=this.getChildValue(a)},Title:function(a,b){b.title=this.getChildValue(a)},
Abstract:function(a,b){b.description=this.getChildValue(a)},NamedLayer:function(a,b){var c={userStyles:[],namedStyles:[]};this.readChildNodes(a,c);for(var d=0,e=c.userStyles.length;d<e;++d)c.userStyles[d].layerName=c.name;OpenLayers.Util.isArray(b.namedLayers)?b.namedLayers.push(c):b.namedLayers[c.name]=c},NamedStyle:function(a,b){b.namedStyles.push(this.getChildName(a.firstChild))},UserStyle:function(a,b){var c={defaultsPerSymbolizer:true,rules:[]};this.featureTypeCounter=-1;this.readChildNodes(a,
c);this.multipleSymbolizers?(delete c.defaultsPerSymbolizer,c=new OpenLayers.Style2(c)):c=new OpenLayers.Style(this.defaultSymbolizer,c);b.userStyles.push(c)},IsDefault:function(a,b){if(this.getChildValue(a)=="1")b.isDefault=true},FeatureTypeStyle:function(a,b){++this.featureTypeCounter;var c={rules:this.multipleSymbolizers?b.rules:[]};this.readChildNodes(a,c);if(!this.multipleSymbolizers)b.rules=c.rules},Rule:function(a,b){var c;this.multipleSymbolizers&&(c={symbolizers:[]});c=new OpenLayers.Rule(c);
this.readChildNodes(a,c);b.rules.push(c)},ElseFilter:function(a,b){b.elseFilter=true},MinScaleDenominator:function(a,b){b.minScaleDenominator=parseFloat(this.getChildValue(a))},MaxScaleDenominator:function(a,b){b.maxScaleDenominator=parseFloat(this.getChildValue(a))},TextSymbolizer:function(a,b){var c={};this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Text(c))):b.symbolizer.Text=OpenLayers.Util.applyDefaults(c,b.symbolizer.Text)},
Label:function(a,b){var c={};this.readChildNodes(a,c);if(c.property)b.label="${"+c.property+"}";else if(c=this.readOgcExpression(a))b.label=c},Font:function(a,b){this.readChildNodes(a,b)},Halo:function(a,b){var c={};this.readChildNodes(a,c);b.haloRadius=c.haloRadius;b.haloColor=c.fillColor;b.haloOpacity=c.fillOpacity},Radius:function(a,b){var c=this.readOgcExpression(a);if(c!=null)b.haloRadius=c},RasterSymbolizer:function(a,b){var c={};this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,
b.symbolizers.push(new OpenLayers.Symbolizer.Raster(c))):b.symbolizer.Raster=OpenLayers.Util.applyDefaults(c,b.symbolizer.Raster)},Geometry:function(a,b){b.geometry={};this.readChildNodes(a,b.geometry)},ColorMap:function(a,b){b.colorMap=[];this.readChildNodes(a,b.colorMap)},ColorMapEntry:function(a,b){var c=a.getAttribute("quantity"),d=a.getAttribute("opacity");b.push({color:a.getAttribute("color"),quantity:c!==null?parseFloat(c):void 0,label:a.getAttribute("label")||void 0,opacity:d!==null?parseFloat(d):
void 0})},LineSymbolizer:function(a,b){var c={};this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Line(c))):b.symbolizer.Line=OpenLayers.Util.applyDefaults(c,b.symbolizer.Line)},PolygonSymbolizer:function(a,b){var c={fill:false,stroke:false};this.multipleSymbolizers||(c=b.symbolizer.Polygon||c);this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Polygon(c))):
b.symbolizer.Polygon=c},PointSymbolizer:function(a,b){var c={fill:false,stroke:false,graphic:false};this.multipleSymbolizers||(c=b.symbolizer.Point||c);this.readChildNodes(a,c);this.multipleSymbolizers?(c.zIndex=this.featureTypeCounter,b.symbolizers.push(new OpenLayers.Symbolizer.Point(c))):b.symbolizer.Point=c},Stroke:function(a,b){b.stroke=true;this.readChildNodes(a,b)},Fill:function(a,b){b.fill=true;this.readChildNodes(a,b)},CssParameter:function(a,b){var c=this.cssMap[a.getAttribute("name")];
if(c){var d=this.readOgcExpression(a);d&&(b[c]=d)}},Graphic:function(a,b){b.graphic=true;var c={};this.readChildNodes(a,c);for(var d="stroke,strokeColor,strokeWidth,strokeOpacity,strokeLinecap,fill,fillColor,fillOpacity,graphicName,rotation,graphicFormat".split(","),e,f,g=0,h=d.length;g<h;++g)e=d[g],f=c[e],f!=void 0&&(b[e]=f);if(c.opacity!=void 0)b.graphicOpacity=c.opacity;if(c.size!=void 0)b.pointRadius=c.size/2;if(c.href!=void 0)b.externalGraphic=c.href;if(c.rotation!=void 0)b.rotation=c.rotation},
ExternalGraphic:function(a,b){this.readChildNodes(a,b)},Mark:function(a,b){this.readChildNodes(a,b)},WellKnownName:function(a,b){b.graphicName=this.getChildValue(a)},Opacity:function(a,b){var c=this.readOgcExpression(a);if(c)b.opacity=c},Size:function(a,b){var c=this.readOgcExpression(a);if(c)b.size=c},Rotation:function(a,b){var c=this.readOgcExpression(a);if(c)b.rotation=c},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,this.namespaces.xlink,"href")},Format:function(a,b){b.graphicFormat=
this.getChildValue(a)}}},OpenLayers.Format.Filter.v1_0_0.prototype.readers),cssMap:{stroke:"strokeColor","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-dasharray":"strokeDashstyle",fill:"fillColor","fill-opacity":"fillOpacity","font-family":"fontFamily","font-size":"fontSize","font-weight":"fontWeight","font-style":"fontStyle"},getCssProperty:function(a){var b=null,c;for(c in this.cssMap)if(this.cssMap[c]==a){b=c;break}return b},getGraphicFormat:function(a){var b,
c;for(c in this.graphicFormats)if(this.graphicFormats[c].test(a)){b=c;break}return b||this.defautlGraphicFormat},defaultGraphicFormat:"image/png",graphicFormats:{"image/jpeg":/\.jpe?g$/i,"image/gif":/\.gif$/i,"image/png":/\.png$/i},write:function(a){return this.writers.sld.StyledLayerDescriptor.apply(this,[a])},writers:OpenLayers.Util.applyDefaults({sld:{StyledLayerDescriptor:function(a){var b=this.createElementNSPlus("sld:StyledLayerDescriptor",{attributes:{version:this.VERSION,"xsi:schemaLocation":this.schemaLocation}});
b.setAttribute("xmlns:ogc",this.namespaces.ogc);b.setAttribute("xmlns:gml",this.namespaces.gml);a.name&&this.writeNode("Name",a.name,b);a.title&&this.writeNode("Title",a.title,b);a.description&&this.writeNode("Abstract",a.description,b);if(OpenLayers.Util.isArray(a.namedLayers))for(var c=0,d=a.namedLayers.length;c<d;++c)this.writeNode("NamedLayer",a.namedLayers[c],b);else for(c in a.namedLayers)this.writeNode("NamedLayer",a.namedLayers[c],b);return b},Name:function(a){return this.createElementNSPlus("sld:Name",
{value:a})},Title:function(a){return this.createElementNSPlus("sld:Title",{value:a})},Abstract:function(a){return this.createElementNSPlus("sld:Abstract",{value:a})},NamedLayer:function(a){var b=this.createElementNSPlus("sld:NamedLayer");this.writeNode("Name",a.name,b);if(a.namedStyles)for(var c=0,d=a.namedStyles.length;c<d;++c)this.writeNode("NamedStyle",a.namedStyles[c],b);if(a.userStyles){c=0;for(d=a.userStyles.length;c<d;++c)this.writeNode("UserStyle",a.userStyles[c],b)}return b},NamedStyle:function(a){var b=
this.createElementNSPlus("sld:NamedStyle");this.writeNode("Name",a,b);return b},UserStyle:function(a){var b=this.createElementNSPlus("sld:UserStyle");a.name&&this.writeNode("Name",a.name,b);a.title&&this.writeNode("Title",a.title,b);a.description&&this.writeNode("Abstract",a.description,b);a.isDefault&&this.writeNode("IsDefault",a.isDefault,b);if(this.multipleSymbolizers&&a.rules){for(var c={0:[]},d=[0],e,f,g,h,i,j=0,k=a.rules.length;j<k;++j)if(e=a.rules[j],e.symbolizers){f={};for(var l=0,m=e.symbolizers.length;l<
m;++l){g=e.symbolizers[l];h=g.zIndex;if(!(h in f))i=e.clone(),i.symbolizers=[],f[h]=i;f[h].symbolizers.push(g.clone())}for(h in f)h in c||(d.push(h),c[h]=[]),c[h].push(f[h])}else c[0].push(e.clone());d.sort();j=0;for(k=d.length;j<k;++j)if(e=c[d[j]],e.length>0)i=a.clone(),i.rules=c[d[j]],this.writeNode("FeatureTypeStyle",i,b)}else this.writeNode("FeatureTypeStyle",a,b);return b},IsDefault:function(a){return this.createElementNSPlus("sld:IsDefault",{value:a?"1":"0"})},FeatureTypeStyle:function(a){for(var b=
this.createElementNSPlus("sld:FeatureTypeStyle"),c=0,d=a.rules.length;c<d;++c)this.writeNode("Rule",a.rules[c],b);return b},Rule:function(a){var b=this.createElementNSPlus("sld:Rule");a.name&&this.writeNode("Name",a.name,b);a.title&&this.writeNode("Title",a.title,b);a.description&&this.writeNode("Abstract",a.description,b);a.elseFilter?this.writeNode("ElseFilter",null,b):a.filter&&this.writeNode("ogc:Filter",a.filter,b);a.minScaleDenominator!=void 0&&this.writeNode("MinScaleDenominator",a.minScaleDenominator,
b);a.maxScaleDenominator!=void 0&&this.writeNode("MaxScaleDenominator",a.maxScaleDenominator,b);var c,d;if(this.multipleSymbolizers&&a.symbolizers)for(var e=0,f=a.symbolizers.length;e<f;++e)d=a.symbolizers[e],c=d.CLASS_NAME.split(".").pop(),this.writeNode(c+"Symbolizer",d,b);else for(var f=OpenLayers.Style.SYMBOLIZER_PREFIXES,e=0,g=f.length;e<g;++e)c=f[e],(d=a.symbolizer[c])&&this.writeNode(c+"Symbolizer",d,b);return b},ElseFilter:function(){return this.createElementNSPlus("sld:ElseFilter")},MinScaleDenominator:function(a){return this.createElementNSPlus("sld:MinScaleDenominator",
{value:a})},MaxScaleDenominator:function(a){return this.createElementNSPlus("sld:MaxScaleDenominator",{value:a})},LineSymbolizer:function(a){var b=this.createElementNSPlus("sld:LineSymbolizer");this.writeNode("Stroke",a,b);return b},Stroke:function(a){var b=this.createElementNSPlus("sld:Stroke");a.strokeColor!=void 0&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeColor"},b);a.strokeOpacity!=void 0&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeOpacity"},b);a.strokeWidth!=void 0&&
this.writeNode("CssParameter",{symbolizer:a,key:"strokeWidth"},b);a.strokeDashstyle!=void 0&&a.strokeDashstyle!=="solid"&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeDashstyle"},b);a.strokeLinecap!=void 0&&this.writeNode("CssParameter",{symbolizer:a,key:"strokeLinecap"},b);return b},CssParameter:function(a){return this.createElementNSPlus("sld:CssParameter",{attributes:{name:this.getCssProperty(a.key)},value:a.symbolizer[a.key]})},TextSymbolizer:function(a){var b=this.createElementNSPlus("sld:TextSymbolizer");
a.label!=null&&this.writeNode("Label",a.label,b);(a.fontFamily!=null||a.fontSize!=null||a.fontWeight!=null||a.fontStyle!=null)&&this.writeNode("Font",a,b);(a.haloRadius!=null||a.haloColor!=null||a.haloOpacity!=null)&&this.writeNode("Halo",a,b);(a.fillColor!=null||a.fillOpacity!=null)&&this.writeNode("Fill",a,b);return b},Font:function(a){var b=this.createElementNSPlus("sld:Font");a.fontFamily&&this.writeNode("CssParameter",{symbolizer:a,key:"fontFamily"},b);a.fontSize&&this.writeNode("CssParameter",
{symbolizer:a,key:"fontSize"},b);a.fontWeight&&this.writeNode("CssParameter",{symbolizer:a,key:"fontWeight"},b);a.fontStyle&&this.writeNode("CssParameter",{symbolizer:a,key:"fontStyle"},b);return b},Label:function(a){var b=this.createElementNSPlus("sld:Label"),a=a.split("${");b.appendChild(this.createTextNode(a[0]));for(var c,d,e=1,f=a.length;e<f;e++)c=a[e],d=c.indexOf("}"),d>0?(this.writeNode("ogc:PropertyName",{property:c.substring(0,d)},b),b.appendChild(this.createTextNode(c.substring(++d)))):
b.appendChild(this.createTextNode("${"+c));return b},Halo:function(a){var b=this.createElementNSPlus("sld:Halo");a.haloRadius&&this.writeNode("Radius",a.haloRadius,b);(a.haloColor||a.haloOpacity)&&this.writeNode("Fill",{fillColor:a.haloColor,fillOpacity:a.haloOpacity},b);return b},Radius:function(a){return this.createElementNSPlus("sld:Radius",{value:a})},RasterSymbolizer:function(a){var b=this.createElementNSPlus("sld:RasterSymbolizer");a.geometry&&this.writeNode("Geometry",a.geometry,b);a.opacity&&
this.writeNode("Opacity",a.opacity,b);a.colorMap&&this.writeNode("ColorMap",a.colorMap,b);return b},Geometry:function(a){var b=this.createElementNSPlus("sld:Geometry");a.property&&this.writeNode("ogc:PropertyName",a,b);return b},ColorMap:function(a){for(var b=this.createElementNSPlus("sld:ColorMap"),c=0,d=a.length;c<d;++c)this.writeNode("ColorMapEntry",a[c],b);return b},ColorMapEntry:function(a){var b=this.createElementNSPlus("sld:ColorMapEntry");b.setAttribute("color",a.color);a.opacity!==void 0&&
b.setAttribute("opacity",parseFloat(a.opacity));a.quantity!==void 0&&b.setAttribute("quantity",parseFloat(a.quantity));a.label!==void 0&&b.setAttribute("label",a.label);return b},PolygonSymbolizer:function(a){var b=this.createElementNSPlus("sld:PolygonSymbolizer");a.fill!==false&&this.writeNode("Fill",a,b);a.stroke!==false&&this.writeNode("Stroke",a,b);return b},Fill:function(a){var b=this.createElementNSPlus("sld:Fill");a.fillColor&&this.writeNode("CssParameter",{symbolizer:a,key:"fillColor"},b);
a.fillOpacity!=null&&this.writeNode("CssParameter",{symbolizer:a,key:"fillOpacity"},b);return b},PointSymbolizer:function(a){var b=this.createElementNSPlus("sld:PointSymbolizer");this.writeNode("Graphic",a,b);return b},Graphic:function(a){var b=this.createElementNSPlus("sld:Graphic");a.externalGraphic!=void 0?this.writeNode("ExternalGraphic",a,b):this.writeNode("Mark",a,b);a.graphicOpacity!=void 0&&this.writeNode("Opacity",a.graphicOpacity,b);a.pointRadius!=void 0&&this.writeNode("Size",a.pointRadius*
2,b);a.rotation!=void 0&&this.writeNode("Rotation",a.rotation,b);return b},ExternalGraphic:function(a){var b=this.createElementNSPlus("sld:ExternalGraphic");this.writeNode("OnlineResource",a.externalGraphic,b);this.writeNode("Format",a.graphicFormat||this.getGraphicFormat(a.externalGraphic),b);return b},Mark:function(a){var b=this.createElementNSPlus("sld:Mark");a.graphicName&&this.writeNode("WellKnownName",a.graphicName,b);a.fill!==false&&this.writeNode("Fill",a,b);a.stroke!==false&&this.writeNode("Stroke",
a,b);return b},WellKnownName:function(a){return this.createElementNSPlus("sld:WellKnownName",{value:a})},Opacity:function(a){return this.createElementNSPlus("sld:Opacity",{value:a})},Size:function(a){return this.createElementNSPlus("sld:Size",{value:a})},Rotation:function(a){return this.createElementNSPlus("sld:Rotation",{value:a})},OnlineResource:function(a){return this.createElementNSPlus("sld:OnlineResource",{attributes:{"xlink:type":"simple","xlink:href":a}})},Format:function(a){return this.createElementNSPlus("sld:Format",
{value:a})}}},OpenLayers.Format.Filter.v1_0_0.prototype.writers),CLASS_NAME:"OpenLayers.Format.SLD.v1"});OpenLayers.Format.SLD.v1_0_0=OpenLayers.Class(OpenLayers.Format.SLD.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd",initialize:function(a){OpenLayers.Format.SLD.v1.prototype.initialize.apply(this,[a])},CLASS_NAME:"OpenLayers.Format.SLD.v1_0_0"});
OpenLayers.Format.OWSContext=OpenLayers.Class(OpenLayers.Format.Context,{defaultVersion:"0.3.1",getVersion:function(a,b){var c=OpenLayers.Format.XML.VersionedOGC.prototype.getVersion.apply(this,arguments);if(c==="0.3.0")c=this.defaultVersion;return c},toContext:function(a){var b={};if(a.CLASS_NAME=="OpenLayers.Map")b.bounds=a.getExtent(),b.maxExtent=a.maxExtent,b.projection=a.projection,b.size=a.getSize(),b.layers=a.layers;return b},CLASS_NAME:"OpenLayers.Format.OWSContext"});
OpenLayers.Format.OWSContext.v0_3_1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{owc:"http://www.opengis.net/ows-context",gml:"http://www.opengis.net/gml",kml:"http://www.opengis.net/kml/2.2",ogc:"http://www.opengis.net/ogc",ows:"http://www.opengis.net/ows",sld:"http://www.opengis.net/sld",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},VERSION:"0.3.1",schemaLocation:"http://www.opengis.net/ows-context http://www.ogcnetwork.net/schemas/owc/0.3.1/owsContext.xsd",
defaultPrefix:"owc",extractAttributes:true,xy:true,regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},featureNS:"http://mapserver.gis.umn.edu/mapserver",featureType:"vector",geometryName:"geometry",nestingLayerLookup:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);OpenLayers.Format.GML.v2.prototype.setGeometryTypes.call(this)},setNestingPath:function(a){if(a.layersContext)for(var b=0,c=a.layersContext.length;b<c;b++){var d=
a.layersContext[b],e=[],f=a.title||"";a.metadata&&a.metadata.nestingPath&&(e=a.metadata.nestingPath.slice());f!=""&&e.push(f);d.metadata.nestingPath=e;d.layersContext&&this.setNestingPath(d)}},decomposeNestingPath:function(a){var b=[];if(OpenLayers.Util.isArray(a)){for(a=a.slice();a.length>0;)b.push(a.slice()),a.pop();b.reverse()}return b},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,
b);this.setNestingPath({layersContext:b.layersContext});a=[];this.processLayer(a,b);delete b.layersContext;b.layersContext=a;return b},processLayer:function(a,b){if(b.layersContext)for(var c=0,d=b.layersContext.length;c<d;c++){var e=b.layersContext[c];a.push(e);e.layersContext&&this.processLayer(a,e)}},write:function(a,b){this.nestingLayerLookup={};b=b||{};OpenLayers.Util.applyDefaults(b,a);var c=this.writeNode("OWSContext",b);this.nestingLayerLookup=null;this.setAttributeNS(c,this.namespaces.xsi,
"xsi:schemaLocation",this.schemaLocation);return OpenLayers.Format.XML.prototype.write.apply(this,[c])},readers:{kml:{Document:function(a,b){b.features=(new OpenLayers.Format.KML({kmlns:this.namespaces.kml,extractStyles:true})).read(a)}},owc:{OWSContext:function(a,b){this.readChildNodes(a,b)},General:function(a,b){this.readChildNodes(a,b)},ResourceList:function(a,b){this.readChildNodes(a,b)},Layer:function(a,b){var c={metadata:{},visibility:a.getAttribute("hidden")!="1",queryable:a.getAttribute("queryable")==
"1",opacity:a.getAttribute("opacity")!=null?parseFloat(a.getAttribute("opacity")):null,name:a.getAttribute("name"),categoryLayer:a.getAttribute("name")==null,formats:[],styles:[]};if(!b.layersContext)b.layersContext=[];b.layersContext.push(c);this.readChildNodes(a,c)},InlineGeometry:function(a,b){b.features=[];var c=this.getElementsByTagNameNS(a,this.namespaces.gml,"featureMember"),d;c.length>=1&&(d=c[0]);if(d&&d.firstChild)c=d.firstChild.nextSibling?d.firstChild.nextSibling:d.firstChild,this.setNamespace("feature",
c.namespaceURI),this.featureType=c.localName||c.nodeName.split(":").pop(),this.readChildNodes(a,b)},Server:function(a,b){if(!b.service&&!b.version||b.service!=OpenLayers.Format.Context.serviceTypes.WMS)b.service=a.getAttribute("service"),b.version=a.getAttribute("version"),this.readChildNodes(a,b)},Name:function(a,b){b.name=this.getChildValue(a);this.readChildNodes(a,b)},Title:function(a,b){b.title=this.getChildValue(a);this.readChildNodes(a,b)},StyleList:function(a,b){this.readChildNodes(a,b.styles)},
Style:function(a,b){var c={};b.push(c);this.readChildNodes(a,c)},LegendURL:function(a,b){var c={};b.legend=c;this.readChildNodes(a,c)},OnlineResource:function(a,b){b.url=this.getAttributeNS(a,this.namespaces.xlink,"href");this.readChildNodes(a,b)}},ows:OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows,gml:OpenLayers.Format.GML.v2.prototype.readers.gml,sld:OpenLayers.Format.SLD.v1_0_0.prototype.readers.sld,feature:OpenLayers.Format.GML.v2.prototype.readers.feature},writers:{owc:{OWSContext:function(a){var b=
this.createElementNSPlus("OWSContext",{attributes:{version:this.VERSION,id:a.id||OpenLayers.Util.createUniqueID("OpenLayers_OWSContext_")}});this.writeNode("General",a,b);this.writeNode("ResourceList",a,b);return b},General:function(a){var b=this.createElementNSPlus("General");this.writeNode("ows:BoundingBox",a,b);this.writeNode("ows:Title",a.title||"OpenLayers OWSContext",b);return b},ResourceList:function(a){for(var b=this.createElementNSPlus("ResourceList"),c=0,d=a.layers.length;c<d;c++){var e=
a.layers[c],f=this.decomposeNestingPath(e.metadata.nestingPath);this.writeNode("_Layer",{layer:e,subPaths:f},b)}return b},Server:function(a){var b=this.createElementNSPlus("Server",{attributes:{version:a.version,service:a.service}});this.writeNode("OnlineResource",a,b);return b},OnlineResource:function(a){return this.createElementNSPlus("OnlineResource",{attributes:{"xlink:href":a.url}})},InlineGeometry:function(a){var b=this.createElementNSPlus("InlineGeometry");this.writeNode("gml:boundedBy",a.getDataExtent(),
b);for(var c=0,d=a.features.length;c<d;c++)this.writeNode("gml:featureMember",a.features[c],b);return b},StyleList:function(a){for(var b=this.createElementNSPlus("StyleList"),c=0,d=a.length;c<d;c++)this.writeNode("Style",a[c],b);return b},Style:function(a){var b=this.createElementNSPlus("Style");this.writeNode("Name",a,b);this.writeNode("Title",a,b);a.legend&&this.writeNode("LegendURL",a,b);return b},Name:function(a){return this.createElementNSPlus("Name",{value:a.name})},Title:function(a){return this.createElementNSPlus("Title",
{value:a.title})},LegendURL:function(a){var b=this.createElementNSPlus("LegendURL");this.writeNode("OnlineResource",a.legend,b);return b},_WMS:function(a){var b=this.createElementNSPlus("Layer",{attributes:{name:a.params.LAYERS,queryable:a.queryable?"1":"0",hidden:a.visibility?"0":"1",opacity:a.opacity?a.opacity:null}});this.writeNode("ows:Title",a.name,b);this.writeNode("ows:OutputFormat",a.params.FORMAT,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.WMS,version:a.params.VERSION,
url:a.url},b);a.metadata.styles&&a.metadata.styles.length>0&&this.writeNode("StyleList",a.metadata.styles,b);return b},_Layer:function(a){var b,c,d;b=a.layer;c=a.subPaths;d=null;if(c.length>0)b=c[0].join("/"),c=b.lastIndexOf("/"),d=this.nestingLayerLookup[b],c=c>0?b.substring(c+1,b.length):b,d||(d=this.createElementNSPlus("Layer"),this.writeNode("ows:Title",c,d),this.nestingLayerLookup[b]=d),a.subPaths.shift(),this.writeNode("_Layer",a,d);else{if(b instanceof OpenLayers.Layer.WMS)d=this.writeNode("_WMS",
b);else if(b instanceof OpenLayers.Layer.Vector)if(b.protocol instanceof OpenLayers.Protocol.WFS.v1)d=this.writeNode("_WFS",b);else if(b.protocol instanceof OpenLayers.Protocol.HTTP)if(b.protocol.format instanceof OpenLayers.Format.GML)b.protocol.format.version="2.1.2",d=this.writeNode("_GML",b);else{if(b.protocol.format instanceof OpenLayers.Format.KML)b.protocol.format.version="2.2",d=this.writeNode("_KML",b)}else this.setNamespace("feature",this.featureNS),d=this.writeNode("_InlineGeometry",b);
b.options.maxScale&&this.writeNode("sld:MinScaleDenominator",b.options.maxScale,d);b.options.minScale&&this.writeNode("sld:MaxScaleDenominator",b.options.minScale,d);this.nestingLayerLookup[b.name]=d}return d},_WFS:function(a){var b=this.createElementNSPlus("Layer",{attributes:{name:a.protocol.featurePrefix+":"+a.protocol.featureType,hidden:a.visibility?"0":"1"}});this.writeNode("ows:Title",a.name,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.WFS,version:a.protocol.version,
url:a.protocol.url},b);return b},_InlineGeometry:function(a){var b=this.createElementNSPlus("Layer",{attributes:{name:this.featureType,hidden:a.visibility?"0":"1"}});this.writeNode("ows:Title",a.name,b);this.writeNode("InlineGeometry",a,b);return b},_GML:function(a){var b=this.createElementNSPlus("Layer");this.writeNode("ows:Title",a.name,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.GML,url:a.protocol.url,version:a.protocol.format.version},b);return b},_KML:function(a){var b=
this.createElementNSPlus("Layer");this.writeNode("ows:Title",a.name,b);this.writeNode("Server",{service:OpenLayers.Format.Context.serviceTypes.KML,version:a.protocol.format.version,url:a.protocol.url},b);return b}},gml:OpenLayers.Util.applyDefaults({boundedBy:function(a){var b=this.createElementNSPlus("gml:boundedBy");this.writeNode("gml:Box",a,b);return b}},OpenLayers.Format.GML.v2.prototype.writers.gml),ows:OpenLayers.Format.OWSCommon.v1_0_0.prototype.writers.ows,sld:OpenLayers.Format.SLD.v1_0_0.prototype.writers.sld,
feature:OpenLayers.Format.GML.v2.prototype.writers.feature},CLASS_NAME:"OpenLayers.Format.OWSContext.v0_3_1"});
OpenLayers.Control.ScaleLine=OpenLayers.Class(OpenLayers.Control,{maxWidth:100,topOutUnits:"km",topInUnits:"m",bottomOutUnits:"mi",bottomInUnits:"ft",eTop:null,eBottom:null,geodesic:false,draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(!this.eTop)this.eTop=document.createElement("div"),this.eTop.className=this.displayClass+"Top",this.div.appendChild(this.eTop),this.eTop.style.visibility=this.topOutUnits==""||this.topInUnits==""?"hidden":"visible",this.eBottom=document.createElement("div"),
this.eBottom.className=this.displayClass+"Bottom",this.div.appendChild(this.eBottom),this.eBottom.style.visibility=this.bottomOutUnits==""||this.bottomInUnits==""?"hidden":"visible";this.map.events.register("moveend",this,this.update);this.update();return this.div},getBarLen:function(a){var b=parseInt(Math.log(a)/Math.log(10)),b=Math.pow(10,b),a=parseInt(a/b);return(a>5?5:a>2?2:1)*b},update:function(){var a=this.map.getResolution();if(a){var b=this.map.getUnits(),c=OpenLayers.INCHES_PER_UNIT,d=this.maxWidth*
a*c[b],e=1;this.geodesic===true&&(e=(this.map.getGeodesicPixelSize().w||1.0E-6)*this.maxWidth/(d/c.km),d*=e);var f,g;d>1E5?(f=this.topOutUnits,g=this.bottomOutUnits):(f=this.topInUnits,g=this.bottomInUnits);var h=d/c[f],i=d/c[g],d=this.getBarLen(h),j=this.getBarLen(i),h=d/c[b]*c[f],i=j/c[b]*c[g],b=h/a/e,a=i/a/e;if(this.eBottom.style.visibility=="visible")this.eBottom.style.width=Math.round(a)+"px",this.eBottom.innerHTML=j+" "+g;if(this.eTop.style.visibility=="visible")this.eTop.style.width=Math.round(b)+
"px",this.eTop.innerHTML=d+" "+f}},CLASS_NAME:"OpenLayers.Control.ScaleLine"});
OpenLayers.Control.PanZoom=OpenLayers.Class(OpenLayers.Control,{slideFactor:50,slideRatio:null,buttons:null,position:null,initialize:function(a){this.position=new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,OpenLayers.Control.PanZoom.Y);OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.removeButtons();this.position=this.buttons=null;OpenLayers.Control.prototype.destroy.apply(this,arguments)},draw:function(a){OpenLayers.Control.prototype.draw.apply(this,arguments);
a=this.position;this.buttons=[];var b=new OpenLayers.Size(18,18),c=new OpenLayers.Pixel(a.x+b.w/2,a.y);this._addButton("panup","north-mini.png",c,b);a.y=c.y+b.h;this._addButton("panleft","west-mini.png",a,b);this._addButton("panright","east-mini.png",a.add(b.w,0),b);this._addButton("pandown","south-mini.png",c.add(0,b.h*2),b);this._addButton("zoomin","zoom-plus-mini.png",c.add(0,b.h*3+5),b);this._addButton("zoomworld","zoom-world-mini.png",c.add(0,b.h*4+5),b);this._addButton("zoomout","zoom-minus-mini.png",
c.add(0,b.h*5+5),b);return this.div},_addButton:function(a,b,c,d){b=OpenLayers.Util.getImagesLocation()+b;c=OpenLayers.Util.createAlphaImageDiv(this.id+"_"+a,c,d,b,"absolute");c.style.cursor="pointer";this.div.appendChild(c);OpenLayers.Event.observe(c,"mousedown",OpenLayers.Function.bindAsEventListener(this.buttonDown,c));OpenLayers.Event.observe(c,"dblclick",OpenLayers.Function.bindAsEventListener(this.doubleClick,c));OpenLayers.Event.observe(c,"click",OpenLayers.Function.bindAsEventListener(this.doubleClick,
c));c.action=a;c.map=this.map;if(this.slideRatio)var e=this.slideRatio,a=function(a){return this.map.getSize()[a]*e};else var f=this.slideFactor,a=function(){return f};c.getSlideFactor=a;this.buttons.push(c);return c},_removeButton:function(a){OpenLayers.Event.stopObservingElement(a);a.map=null;a.getSlideFactor=null;this.div.removeChild(a);OpenLayers.Util.removeItem(this.buttons,a)},removeButtons:function(){for(var a=this.buttons.length-1;a>=0;--a)this._removeButton(this.buttons[a])},doubleClick:function(a){OpenLayers.Event.stop(a);
return false},buttonDown:function(a){if(OpenLayers.Event.isLeftClick(a)){switch(this.action){case "panup":this.map.pan(0,-this.getSlideFactor("h"));break;case "pandown":this.map.pan(0,this.getSlideFactor("h"));break;case "panleft":this.map.pan(-this.getSlideFactor("w"),0);break;case "panright":this.map.pan(this.getSlideFactor("w"),0);break;case "zoomin":this.map.zoomIn();break;case "zoomout":this.map.zoomOut();break;case "zoomworld":this.map.zoomToMaxExtent()}OpenLayers.Event.stop(a)}},CLASS_NAME:"OpenLayers.Control.PanZoom"});
OpenLayers.Control.PanZoom.X=4;OpenLayers.Control.PanZoom.Y=4;
OpenLayers.Icon=OpenLayers.Class({url:null,size:null,offset:null,calculateOffset:null,imageDiv:null,px:null,initialize:function(a,b,c,d){this.url=a;this.size=b?b:new OpenLayers.Size(20,20);this.offset=c?c:new OpenLayers.Pixel(-(this.size.w/2),-(this.size.h/2));this.calculateOffset=d;a=OpenLayers.Util.createUniqueID("OL_Icon_");this.imageDiv=OpenLayers.Util.createAlphaImageDiv(a)},destroy:function(){this.erase();OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild);this.imageDiv.innerHTML=
"";this.imageDiv=null},clone:function(){return new OpenLayers.Icon(this.url,this.size,this.offset,this.calculateOffset)},setSize:function(a){if(a!=null)this.size=a;this.draw()},setUrl:function(a){if(a!=null)this.url=a;this.draw()},draw:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,null,this.size,this.url,"absolute");this.moveTo(a);return this.imageDiv},erase:function(){this.imageDiv!=null&&this.imageDiv.parentNode!=null&&OpenLayers.Element.remove(this.imageDiv)},setOpacity:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,
null,null,null,null,null,null,null,a)},moveTo:function(a){if(a!=null)this.px=a;if(this.imageDiv!=null)if(this.px==null)this.display(false);else{if(this.calculateOffset)this.offset=this.calculateOffset(this.size);a=this.px.offset(this.offset);OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,a)}},display:function(a){this.imageDiv.style.display=a?"":"none"},isDrawn:function(){return this.imageDiv&&this.imageDiv.parentNode&&this.imageDiv.parentNode.nodeType!=11},CLASS_NAME:"OpenLayers.Icon"});
OpenLayers.Marker=OpenLayers.Class({icon:null,lonlat:null,events:null,map:null,initialize:function(a,b){this.lonlat=a;var c=b?b:OpenLayers.Marker.defaultIcon();this.icon==null?this.icon=c:(this.icon.url=c.url,this.icon.size=c.size,this.icon.offset=c.offset,this.icon.calculateOffset=c.calculateOffset);this.events=new OpenLayers.Events(this,this.icon.imageDiv,null)},destroy:function(){this.erase();this.map=null;this.events.destroy();this.events=null;if(this.icon!=null)this.icon.destroy(),this.icon=
null},draw:function(a){return this.icon.draw(a)},erase:function(){this.icon!=null&&this.icon.erase()},moveTo:function(a){a!=null&&this.icon!=null&&this.icon.moveTo(a);this.lonlat=this.map.getLonLatFromLayerPx(a)},isDrawn:function(){return this.icon&&this.icon.isDrawn()},onScreen:function(){var a=false;this.map&&(a=this.map.getExtent().containsLonLat(this.lonlat));return a},inflate:function(a){this.icon&&this.icon.setSize(new OpenLayers.Size(this.icon.size.w*a,this.icon.size.h*a))},setOpacity:function(a){this.icon.setOpacity(a)},
setUrl:function(a){this.icon.setUrl(a)},display:function(a){this.icon.display(a)},CLASS_NAME:"OpenLayers.Marker"});OpenLayers.Marker.defaultIcon=function(){var a=OpenLayers.Util.getImagesLocation()+"marker.png",b=new OpenLayers.Size(21,25);return new OpenLayers.Icon(a,b,null,function(a){return new OpenLayers.Pixel(-(a.w/2),-a.h)})};
OpenLayers.Popup=OpenLayers.Class({events:null,id:"",lonlat:null,div:null,contentSize:null,size:null,contentHTML:null,backgroundColor:"",opacity:"",border:"",contentDiv:null,groupDiv:null,closeDiv:null,autoSize:false,minSize:null,maxSize:null,displayClass:"olPopup",contentDisplayClass:"olPopupContent",padding:0,disableFirefoxOverflowHack:false,fixPadding:function(){if(typeof this.padding=="number")this.padding=new OpenLayers.Bounds(this.padding,this.padding,this.padding,this.padding)},panMapIfOutOfView:false,
keepInMap:false,closeOnMove:false,map:null,initialize:function(a,b,c,d,e,f){a==null&&(a=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_"));this.id=a;this.lonlat=b;this.contentSize=c!=null?c:new OpenLayers.Size(OpenLayers.Popup.WIDTH,OpenLayers.Popup.HEIGHT);if(d!=null)this.contentHTML=d;this.backgroundColor=OpenLayers.Popup.COLOR;this.opacity=OpenLayers.Popup.OPACITY;this.border=OpenLayers.Popup.BORDER;this.div=OpenLayers.Util.createDiv(this.id,null,null,null,null,null,"hidden");this.div.className=
this.displayClass;this.groupDiv=OpenLayers.Util.createDiv(this.id+"_GroupDiv",null,null,null,"relative",null,"hidden");a=this.div.id+"_contentDiv";this.contentDiv=OpenLayers.Util.createDiv(a,null,this.contentSize.clone(),null,"relative");this.contentDiv.className=this.contentDisplayClass;this.groupDiv.appendChild(this.contentDiv);this.div.appendChild(this.groupDiv);e&&this.addCloseBox(f);this.registerEvents()},destroy:function(){this.border=this.opacity=this.backgroundColor=this.contentHTML=this.size=
this.lonlat=this.id=null;this.closeOnMove&&this.map&&this.map.events.unregister("movestart",this,this.hide);this.events.destroy();this.events=null;this.closeDiv&&(OpenLayers.Event.stopObservingElement(this.closeDiv),this.groupDiv.removeChild(this.closeDiv));this.closeDiv=null;this.div.removeChild(this.groupDiv);this.groupDiv=null;this.map!=null&&this.map.removePopup(this);this.panMapIfOutOfView=this.padding=this.maxSize=this.minSize=this.autoSize=this.div=this.map=null},draw:function(a){a==null&&
this.lonlat!=null&&this.map!=null&&(a=this.map.getLayerPxFromLonLat(this.lonlat));this.closeOnMove&&this.map.events.register("movestart",this,this.hide);!this.disableFirefoxOverflowHack&&OpenLayers.BROWSER_NAME=="firefox"&&(this.map.events.register("movestart",this,function(){var a=document.defaultView.getComputedStyle(this.contentDiv,null).getPropertyValue("overflow");if(a!="hidden")this.contentDiv._oldOverflow=a,this.contentDiv.style.overflow="hidden"}),this.map.events.register("moveend",this,function(){var a=
this.contentDiv._oldOverflow;if(a)this.contentDiv.style.overflow=a,this.contentDiv._oldOverflow=null}));this.moveTo(a);!this.autoSize&&!this.size&&this.setSize(this.contentSize);this.setBackgroundColor();this.setOpacity();this.setBorder();this.setContentHTML();this.panMapIfOutOfView&&this.panIntoView();return this.div},updatePosition:function(){if(this.lonlat&&this.map){var a=this.map.getLayerPxFromLonLat(this.lonlat);a&&this.moveTo(a)}},moveTo:function(a){if(a!=null&&this.div!=null)this.div.style.left=
a.x+"px",this.div.style.top=a.y+"px"},visible:function(){return OpenLayers.Element.visible(this.div)},toggle:function(){this.visible()?this.hide():this.show()},show:function(){this.div.style.display="";this.panMapIfOutOfView&&this.panIntoView()},hide:function(){this.div.style.display="none"},setSize:function(a){this.size=a.clone();var b=this.getContentDivPadding(),c=b.left+b.right,d=b.top+b.bottom;this.fixPadding();c+=this.padding.left+this.padding.right;d+=this.padding.top+this.padding.bottom;if(this.closeDiv){var e=
parseInt(this.closeDiv.style.width);c+=e+b.right}this.size.w+=c;this.size.h+=d;OpenLayers.BROWSER_NAME=="msie"&&(this.contentSize.w+=b.left+b.right,this.contentSize.h+=b.bottom+b.top);if(this.div!=null)this.div.style.width=this.size.w+"px",this.div.style.height=this.size.h+"px";if(this.contentDiv!=null)this.contentDiv.style.width=a.w+"px",this.contentDiv.style.height=a.h+"px"},updateSize:function(){var a="<div class='"+this.contentDisplayClass+"'>"+this.contentDiv.innerHTML+"</div>",b=this.map?this.map.layerContainerDiv:
document.body,c=OpenLayers.Util.getRenderedDimensions(a,null,{displayClass:this.displayClass,containerElement:b}),d=this.getSafeContentSize(c),e=null;d.equals(c)?e=c:(e=new OpenLayers.Size,e.w=d.w<c.w?d.w:null,e.h=d.h<c.h?d.h:null,e.w&&e.h?e=d:(a=OpenLayers.Util.getRenderedDimensions(a,e,{displayClass:this.contentDisplayClass,containerElement:b}),OpenLayers.Element.getStyle(this.contentDiv,"overflow")!="hidden"&&a.equals(d)&&(d=OpenLayers.Util.getScrollbarWidth(),e.w?a.h+=d:a.w+=d),e=this.getSafeContentSize(a)));
this.setSize(e)},setBackgroundColor:function(a){if(a!=void 0)this.backgroundColor=a;if(this.div!=null)this.div.style.backgroundColor=this.backgroundColor},setOpacity:function(a){if(a!=void 0)this.opacity=a;if(this.div!=null)this.div.style.opacity=this.opacity,this.div.style.filter="alpha(opacity="+this.opacity*100+")"},setBorder:function(a){if(a!=void 0)this.border=a;if(this.div!=null)this.div.style.border=this.border},setContentHTML:function(a){if(a!=null)this.contentHTML=a;if(this.contentDiv!=null&&
this.contentHTML!=null&&this.contentHTML!=this.contentDiv.innerHTML)this.contentDiv.innerHTML=this.contentHTML,this.autoSize&&(this.registerImageListeners(),this.updateSize())},registerImageListeners:function(){for(var a=function(){this.popup.updateSize();this.popup.visible()&&this.popup.panMapIfOutOfView&&this.popup.panIntoView();OpenLayers.Event.stopObserving(this.img,"load",this.img._onImageLoad)},b=this.contentDiv.getElementsByTagName("img"),c=0,d=b.length;c<d;c++){var e=b[c];if(e.width==0||e.height==
0)e._onImgLoad=OpenLayers.Function.bind(a,{popup:this,img:e}),OpenLayers.Event.observe(e,"load",e._onImgLoad)}},getSafeContentSize:function(a){var a=a.clone(),b=this.getContentDivPadding(),c=b.left+b.right,d=b.top+b.bottom;this.fixPadding();c+=this.padding.left+this.padding.right;d+=this.padding.top+this.padding.bottom;if(this.closeDiv){var e=parseInt(this.closeDiv.style.width);c+=e+b.right}if(this.minSize)a.w=Math.max(a.w,this.minSize.w-c),a.h=Math.max(a.h,this.minSize.h-d);if(this.maxSize)a.w=Math.min(a.w,
this.maxSize.w-c),a.h=Math.min(a.h,this.maxSize.h-d);if(this.map&&this.map.size){e=b=0;if(this.keepInMap&&!this.panMapIfOutOfView)switch(e=this.map.getPixelFromLonLat(this.lonlat),this.relativePosition){case "tr":b=e.x;e=this.map.size.h-e.y;break;case "tl":b=this.map.size.w-e.x;e=this.map.size.h-e.y;break;case "bl":b=this.map.size.w-e.x;e=e.y;break;case "br":b=e.x;e=e.y;break;default:b=e.x,e=this.map.size.h-e.y}d=this.map.size.h-this.map.paddingForPopups.top-this.map.paddingForPopups.bottom-d-e;a.w=
Math.min(a.w,this.map.size.w-this.map.paddingForPopups.left-this.map.paddingForPopups.right-c-b);a.h=Math.min(a.h,d)}return a},getContentDivPadding:function(){var a=this._contentDivPadding;if(!a){if(this.div.parentNode==null)this.div.style.display="none",document.body.appendChild(this.div);this._contentDivPadding=a=new OpenLayers.Bounds(OpenLayers.Element.getStyle(this.contentDiv,"padding-left"),OpenLayers.Element.getStyle(this.contentDiv,"padding-bottom"),OpenLayers.Element.getStyle(this.contentDiv,
"padding-right"),OpenLayers.Element.getStyle(this.contentDiv,"padding-top"));if(this.div.parentNode==document.body)document.body.removeChild(this.div),this.div.style.display=""}return a},addCloseBox:function(a){this.closeDiv=OpenLayers.Util.createDiv(this.id+"_close",null,new OpenLayers.Size(17,17));this.closeDiv.className="olPopupCloseBox";var b=this.getContentDivPadding();this.closeDiv.style.right=b.right+"px";this.closeDiv.style.top=b.top+"px";this.groupDiv.appendChild(this.closeDiv);a=a||function(a){this.hide();
OpenLayers.Event.stop(a)};OpenLayers.Event.observe(this.closeDiv,"touchend",OpenLayers.Function.bindAsEventListener(a,this));OpenLayers.Event.observe(this.closeDiv,"click",OpenLayers.Function.bindAsEventListener(a,this))},panIntoView:function(){var a=this.map.getSize(),b=this.map.getViewPortPxFromLayerPx(new OpenLayers.Pixel(parseInt(this.div.style.left),parseInt(this.div.style.top))),c=b.clone();if(b.x<this.map.paddingForPopups.left)c.x=this.map.paddingForPopups.left;else if(b.x+this.size.w>a.w-
this.map.paddingForPopups.right)c.x=a.w-this.map.paddingForPopups.right-this.size.w;if(b.y<this.map.paddingForPopups.top)c.y=this.map.paddingForPopups.top;else if(b.y+this.size.h>a.h-this.map.paddingForPopups.bottom)c.y=a.h-this.map.paddingForPopups.bottom-this.size.h;this.map.pan(b.x-c.x,b.y-c.y)},registerEvents:function(){this.events=new OpenLayers.Events(this,this.div,null,true);this.events.on({mousedown:this.onmousedown,mousemove:this.onmousemove,mouseup:this.onmouseup,click:this.onclick,mouseout:this.onmouseout,
dblclick:this.ondblclick,touchstart:function(a){OpenLayers.Event.stop(a,true)},scope:this})},onmousedown:function(a){this.mousedown=true;OpenLayers.Event.stop(a,true)},onmousemove:function(a){this.mousedown&&OpenLayers.Event.stop(a,true)},onmouseup:function(a){if(this.mousedown)this.mousedown=false,OpenLayers.Event.stop(a,true)},onclick:function(a){OpenLayers.Event.stop(a,true)},onmouseout:function(){this.mousedown=false},ondblclick:function(a){OpenLayers.Event.stop(a,true)},CLASS_NAME:"OpenLayers.Popup"});
OpenLayers.Popup.WIDTH=200;OpenLayers.Popup.HEIGHT=200;OpenLayers.Popup.COLOR="white";OpenLayers.Popup.OPACITY=1;OpenLayers.Popup.BORDER="0px";
OpenLayers.Popup.Anchored=OpenLayers.Class(OpenLayers.Popup,{relativePosition:null,keepInMap:true,anchor:null,initialize:function(a,b,c,d,e,f,g){OpenLayers.Popup.prototype.initialize.apply(this,[a,b,c,d,f,g]);this.anchor=e!=null?e:{size:new OpenLayers.Size(0,0),offset:new OpenLayers.Pixel(0,0)}},destroy:function(){this.relativePosition=this.anchor=null;OpenLayers.Popup.prototype.destroy.apply(this,arguments)},show:function(){this.updatePosition();OpenLayers.Popup.prototype.show.apply(this,arguments)},
moveTo:function(a){var b=this.relativePosition;this.relativePosition=this.calculateRelativePosition(a);a=this.calculateNewPx(a);OpenLayers.Popup.prototype.moveTo.apply(this,Array(a));this.relativePosition!=b&&this.updateRelativePosition()},setSize:function(a){OpenLayers.Popup.prototype.setSize.apply(this,arguments);this.lonlat&&this.map&&this.moveTo(this.map.getLayerPxFromLonLat(this.lonlat))},calculateRelativePosition:function(a){a=this.map.getLonLatFromLayerPx(a);a=this.map.getExtent().determineQuadrant(a);
return OpenLayers.Bounds.oppositeQuadrant(a)},updateRelativePosition:function(){},calculateNewPx:function(a){var a=a.offset(this.anchor.offset),b=this.size||this.contentSize,c=this.relativePosition.charAt(0)=="t";a.y+=c?-b.h:this.anchor.size.h;c=this.relativePosition.charAt(1)=="l";a.x+=c?-b.w:this.anchor.size.w;return a},CLASS_NAME:"OpenLayers.Popup.Anchored"});
OpenLayers.Popup.Framed=OpenLayers.Class(OpenLayers.Popup.Anchored,{imageSrc:null,imageSize:null,isAlphaImage:false,positionBlocks:null,blocks:null,fixedRelativePosition:false,initialize:function(a,b,c,d,e,f,g){OpenLayers.Popup.Anchored.prototype.initialize.apply(this,arguments);if(this.fixedRelativePosition)this.updateRelativePosition(),this.calculateRelativePosition=function(){return this.relativePosition};this.contentDiv.style.position="absolute";this.contentDiv.style.zIndex=1;if(f)this.closeDiv.style.zIndex=
1;this.groupDiv.style.position="absolute";this.groupDiv.style.top="0px";this.groupDiv.style.left="0px";this.groupDiv.style.height="100%";this.groupDiv.style.width="100%"},destroy:function(){this.isAlphaImage=this.imageSize=this.imageSrc=null;this.fixedRelativePosition=false;this.positionBlocks=null;for(var a=0;a<this.blocks.length;a++){var b=this.blocks[a];b.image&&b.div.removeChild(b.image);b.image=null;b.div&&this.groupDiv.removeChild(b.div);b.div=null}this.blocks=null;OpenLayers.Popup.Anchored.prototype.destroy.apply(this,
arguments)},setBackgroundColor:function(){},setBorder:function(){},setOpacity:function(){},setSize:function(a){OpenLayers.Popup.Anchored.prototype.setSize.apply(this,arguments);this.updateBlocks()},updateRelativePosition:function(){this.padding=this.positionBlocks[this.relativePosition].padding;if(this.closeDiv){var a=this.getContentDivPadding();this.closeDiv.style.right=a.right+this.padding.right+"px";this.closeDiv.style.top=a.top+this.padding.top+"px"}this.updateBlocks()},calculateNewPx:function(a){var b=
OpenLayers.Popup.Anchored.prototype.calculateNewPx.apply(this,arguments);return b=b.offset(this.positionBlocks[this.relativePosition].offset)},createBlocks:function(){this.blocks=[];var a=null,b;for(b in this.positionBlocks){a=b;break}a=this.positionBlocks[a];for(b=0;b<a.blocks.length;b++){var c={};this.blocks.push(c);c.div=OpenLayers.Util.createDiv(this.id+"_FrameDecorationDiv_"+b,null,null,null,"absolute",null,"hidden",null);c.image=(this.isAlphaImage?OpenLayers.Util.createAlphaImageDiv:OpenLayers.Util.createImage)(this.id+
"_FrameDecorationImg_"+b,null,this.imageSize,this.imageSrc,"absolute",null,null,null);c.div.appendChild(c.image);this.groupDiv.appendChild(c.div)}},updateBlocks:function(){this.blocks||this.createBlocks();if(this.size&&this.relativePosition){for(var a=this.positionBlocks[this.relativePosition],b=0;b<a.blocks.length;b++){var c=a.blocks[b],d=this.blocks[b],e=c.anchor.left,f=c.anchor.bottom,g=c.anchor.right,h=c.anchor.top,i=isNaN(c.size.w)?this.size.w-(g+e):c.size.w,j=isNaN(c.size.h)?this.size.h-(f+
h):c.size.h;d.div.style.width=(i<0?0:i)+"px";d.div.style.height=(j<0?0:j)+"px";d.div.style.left=e!=null?e+"px":"";d.div.style.bottom=f!=null?f+"px":"";d.div.style.right=g!=null?g+"px":"";d.div.style.top=h!=null?h+"px":"";d.image.style.left=c.position.x+"px";d.image.style.top=c.position.y+"px"}this.contentDiv.style.left=this.padding.left+"px";this.contentDiv.style.top=this.padding.top+"px"}},CLASS_NAME:"OpenLayers.Popup.Framed"});
OpenLayers.Format.GeoJSON=OpenLayers.Class(OpenLayers.Format.JSON,{ignoreExtraDims:false,read:function(a,b,c){var b=b?b:"FeatureCollection",d=null,e=null;if(e=typeof a=="string"?OpenLayers.Format.JSON.prototype.read.apply(this,[a,c]):a)if(typeof e.type!="string")OpenLayers.Console.error("Bad GeoJSON - no type: "+a);else{if(this.isValidType(e,b))switch(b){case "Geometry":try{d=this.parseGeometry(e)}catch(f){OpenLayers.Console.error(f)}break;case "Feature":try{d=this.parseFeature(e),d.type="Feature"}catch(g){OpenLayers.Console.error(g)}break;
case "FeatureCollection":switch(d=[],e.type){case "Feature":try{d.push(this.parseFeature(e))}catch(h){d=null,OpenLayers.Console.error(h)}break;case "FeatureCollection":a=0;for(b=e.features.length;a<b;++a)try{d.push(this.parseFeature(e.features[a]))}catch(i){d=null,OpenLayers.Console.error(i)}break;default:try{var j=this.parseGeometry(e);d.push(new OpenLayers.Feature.Vector(j))}catch(k){d=null,OpenLayers.Console.error(k)}}}}else OpenLayers.Console.error("Bad JSON: "+a);return d},isValidType:function(a,
b){var c=false;switch(b){case "Geometry":OpenLayers.Util.indexOf("Point,MultiPoint,LineString,MultiLineString,Polygon,MultiPolygon,Box,GeometryCollection".split(","),a.type)==-1?OpenLayers.Console.error("Unsupported geometry type: "+a.type):c=true;break;case "FeatureCollection":c=true;break;default:a.type==b?c=true:OpenLayers.Console.error("Cannot convert types from "+a.type+" to "+b)}return c},parseFeature:function(a){var b,c,d;c=a.properties?a.properties:{};d=a.geometry&&a.geometry.bbox||a.bbox;
try{b=this.parseGeometry(a.geometry)}catch(e){throw e;}b=new OpenLayers.Feature.Vector(b,c);if(d)b.bounds=OpenLayers.Bounds.fromArray(d);if(a.id)b.fid=a.id;return b},parseGeometry:function(a){if(a==null)return null;var b,c=false;if(a.type=="GeometryCollection"){if(!OpenLayers.Util.isArray(a.geometries))throw"GeometryCollection must have geometries array: "+a;b=a.geometries.length;for(var c=Array(b),d=0;d<b;++d)c[d]=this.parseGeometry.apply(this,[a.geometries[d]]);b=new OpenLayers.Geometry.Collection(c);
c=true}else{if(!OpenLayers.Util.isArray(a.coordinates))throw"Geometry must have coordinates array: "+a;if(!this.parseCoords[a.type.toLowerCase()])throw"Unsupported geometry type: "+a.type;try{b=this.parseCoords[a.type.toLowerCase()].apply(this,[a.coordinates])}catch(e){throw e;}}this.internalProjection&&this.externalProjection&&!c&&b.transform(this.externalProjection,this.internalProjection);return b},parseCoords:{point:function(a){if(this.ignoreExtraDims==false&&a.length!=2)throw"Only 2D points are supported: "+
a;return new OpenLayers.Geometry.Point(a[0],a[1])},multipoint:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.point.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.MultiPoint(b)},linestring:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.point.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.LineString(b)},multilinestring:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=
this.parseCoords.linestring.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.MultiLineString(b)},polygon:function(a){for(var b=[],c,d,e=0,f=a.length;e<f;++e){try{d=this.parseCoords.linestring.apply(this,[a[e]])}catch(g){throw g;}c=new OpenLayers.Geometry.LinearRing(d.components);b.push(c)}return new OpenLayers.Geometry.Polygon(b)},multipolygon:function(a){for(var b=[],c=null,d=0,e=a.length;d<e;++d){try{c=this.parseCoords.polygon.apply(this,[a[d]])}catch(f){throw f;}b.push(c)}return new OpenLayers.Geometry.MultiPolygon(b)},
box:function(a){if(a.length!=2)throw"GeoJSON box coordinates must have 2 elements";return new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing([new OpenLayers.Geometry.Point(a[0][0],a[0][1]),new OpenLayers.Geometry.Point(a[1][0],a[0][1]),new OpenLayers.Geometry.Point(a[1][0],a[1][1]),new OpenLayers.Geometry.Point(a[0][0],a[1][1]),new OpenLayers.Geometry.Point(a[0][0],a[0][1])])])}},write:function(a,b){var c={type:null};if(OpenLayers.Util.isArray(a)){c.type="FeatureCollection";var d=
a.length;c.features=Array(d);for(var e=0;e<d;++e){var f=a[e];if(!f instanceof OpenLayers.Feature.Vector)throw"FeatureCollection only supports collections of features: "+f;c.features[e]=this.extract.feature.apply(this,[f])}}else if(a.CLASS_NAME.indexOf("OpenLayers.Geometry")==0)c=this.extract.geometry.apply(this,[a]);else if(a instanceof OpenLayers.Feature.Vector&&(c=this.extract.feature.apply(this,[a]),a.layer&&a.layer.projection))c.crs=this.createCRSObject(a);return OpenLayers.Format.JSON.prototype.write.apply(this,
[c,b])},createCRSObject:function(a){var a=a.layer.projection.toString(),b={};a.match(/epsg:/i)&&(a=parseInt(a.substring(a.indexOf(":")+1)),b=a==4326?{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}}:{type:"name",properties:{name:"EPSG:"+a}});return b},extract:{feature:function(a){var b=this.extract.geometry.apply(this,[a.geometry]),b={type:"Feature",properties:a.attributes,geometry:b};if(a.fid!=null)b.id=a.fid;return b},geometry:function(a){if(a==null)return null;this.internalProjection&&
this.externalProjection&&(a=a.clone(),a.transform(this.internalProjection,this.externalProjection));var b=a.CLASS_NAME.split(".")[2],a=this.extract[b.toLowerCase()].apply(this,[a]);return b=="Collection"?{type:"GeometryCollection",geometries:a}:{type:b,coordinates:a}},point:function(a){return[a.x,a.y]},multipoint:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.point.apply(this,[a.components[c]]));return b},linestring:function(a){for(var b=[],c=0,d=a.components.length;c<
d;++c)b.push(this.extract.point.apply(this,[a.components[c]]));return b},multilinestring:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.linestring.apply(this,[a.components[c]]));return b},polygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.linestring.apply(this,[a.components[c]]));return b},multipolygon:function(a){for(var b=[],c=0,d=a.components.length;c<d;++c)b.push(this.extract.polygon.apply(this,[a.components[c]]));return b},collection:function(a){for(var b=
a.components.length,c=Array(b),d=0;d<b;++d)c[d]=this.extract.geometry.apply(this,[a.components[d]]);return c}},CLASS_NAME:"OpenLayers.Format.GeoJSON"});
OpenLayers.Marker.LabelMarker=OpenLayers.Class(OpenLayers.Marker,{label:"",markerDiv:null,initialize:function(a,b,c,d){OpenLayers.Marker.prototype.initialize.apply(this,[a,b]);this.label=c;this.markerDiv=OpenLayers.Util.createDiv();this.markerDiv.appendChild(this.icon.imageDiv);a=OpenLayers.Util.createDiv();a.className="markerLabel";OpenLayers.Util.modifyDOMElement(this.markerDiv,null,d);OpenLayers.Util.modifyDOMElement(a,null,new OpenLayers.Pixel(0,this.icon.size.h));a.innerHTML=this.label;this.markerDiv.appendChild(a)},
destroy:function(){OpenLayers.Marker.prototype.destroy.apply(this,arguments);this.markerDiv.innerHTML="";this.markerDiv=null},draw:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.icon.imageDiv,null,null,this.icon.size,this.icon.url);OpenLayers.Util.modifyDOMElement(this.markerDiv,null,new OpenLayers.Pixel(a.x-this.icon.size.w/2,a.y-this.icon.size.h/2));return this.markerDiv},redraw:function(a){a!=null&&this.markerDiv!=null&&OpenLayers.Util.modifyDOMElement(this.markerDiv,null,a)},moveTo:function(a){this.redraw(a);
this.lonlat=this.map.getLonLatFromLayerPx(a)},isDrawn:function(){return false},CLASS_NAME:"OpenLayers.Marker.LabelMarker"});
OpenLayers.Layer.XYZ=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,sphericalMercator:false,zoomOffset:0,serverResolutions:null,initialize:function(a,b,c){if(c&&c.sphericalMercator||this.sphericalMercator)c=OpenLayers.Util.extend({maxExtent:new OpenLayers.Bounds(-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7),maxResolution:156543.03390625,numZoomLevels:19,units:"m",projection:"EPSG:900913"},c);b=b||this.url;a=a||this.name;OpenLayers.Layer.Grid.prototype.initialize.apply(this,
[a,b,{},c])},clone:function(a){a==null&&(a=new OpenLayers.Layer.XYZ(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.getXYZ(a),b=this.url;OpenLayers.Util.isArray(b)&&(b=this.selectUrl(""+a.x+a.y+a.z,b));return OpenLayers.String.format(b,a)},getXYZ:function(a){var b=this.map.getResolution(),c=Math.round((a.left-this.maxExtent.left)/(b*this.tileSize.w)),a=Math.round((this.maxExtent.top-a.top)/(b*this.tileSize.h)),b=
this.serverResolutions!=null?OpenLayers.Util.indexOf(this.serverResolutions,b):this.map.getZoom()+this.zoomOffset,d=Math.pow(2,b);this.wrapDateLine&&(c=(c%d+d)%d);return{x:c,y:a,z:b}},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);if(!this.tileOrigin)this.tileOrigin=new OpenLayers.LonLat(this.maxExtent.left,this.maxExtent.bottom)},CLASS_NAME:"OpenLayers.Layer.XYZ"});
OpenLayers.Layer.OSM=OpenLayers.Class(OpenLayers.Layer.XYZ,{name:"OpenStreetMap",attribution:"Data CC-By-SA by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",sphericalMercator:true,url:"http://tile.openstreetmap.org/${z}/${x}/${y}.png",clone:function(a){a==null&&(a=new OpenLayers.Layer.OSM(this.name,this.url,this.getOptions()));return a=OpenLayers.Layer.XYZ.prototype.clone.apply(this,[a])},wrapDateLine:true,CLASS_NAME:"OpenLayers.Layer.OSM"});
OpenLayers.Handler.Drag=OpenLayers.Class(OpenLayers.Handler,{started:false,stopDown:true,dragging:false,touch:false,last:null,start:null,lastMoveEvt:null,oldOnselectstart:null,interval:0,timeoutId:null,documentDrag:false,documentEvents:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);if(this.documentDrag===true){var d=this;this._docMove=function(a){d.mousemove({xy:{x:a.clientX,y:a.clientY},element:document})};this._docUp=function(a){d.mouseup({xy:{x:a.clientX,
y:a.clientY}})}}},dragstart:function(a){var b=true;this.dragging=false;if(this.checkModifiers(a)&&(OpenLayers.Event.isLeftClick(a)||OpenLayers.Event.isSingleTouch(a))){this.started=true;this.last=this.start=a.xy;OpenLayers.Element.addClass(this.map.viewPortDiv,"olDragDown");this.down(a);this.callback("down",[a.xy]);OpenLayers.Event.stop(a);if(!this.oldOnselectstart)this.oldOnselectstart=document.onselectstart?document.onselectstart:OpenLayers.Function.True;document.onselectstart=OpenLayers.Function.False;
b=!this.stopDown}else this.started=false,this.last=this.start=null;return b},dragmove:function(a){this.lastMoveEvt=a;if(this.started&&!this.timeoutId&&(a.xy.x!=this.last.x||a.xy.y!=this.last.y)){this.documentDrag===true&&this.documentEvents&&(a.element===document?(this.adjustXY(a),this.setEvent(a)):this.removeDocumentEvents());if(this.interval>0)this.timeoutId=setTimeout(OpenLayers.Function.bind(this.removeTimeout,this),this.interval);this.dragging=true;this.move(a);this.callback("move",[a.xy]);if(!this.oldOnselectstart)this.oldOnselectstart=
document.onselectstart,document.onselectstart=OpenLayers.Function.False;this.last=a.xy}return true},dragend:function(a){if(this.started){this.documentDrag===true&&this.documentEvents&&(this.adjustXY(a),this.removeDocumentEvents());var b=this.start!=this.last;this.dragging=this.started=false;OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");this.up(a);this.callback("up",[a.xy]);b&&this.callback("done",[a.xy]);document.onselectstart=this.oldOnselectstart}return true},down:function(){},
move:function(){},up:function(){},out:function(){},mousedown:function(a){return this.dragstart(a)},touchstart:function(a){if(!this.touch)this.touch=true,this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,mousemove:this.mousemove,click:this.click,scope:this});return this.dragstart(a)},mousemove:function(a){return this.dragmove(a)},touchmove:function(a){return this.dragmove(a)},removeTimeout:function(){this.timeoutId=null;this.dragging&&this.mousemove(this.lastMoveEvt)},mouseup:function(a){return this.dragend(a)},
touchend:function(a){a.xy=this.last;return this.dragend(a)},mouseout:function(a){if(this.started&&OpenLayers.Util.mouseLeft(a,this.map.eventsDiv))if(this.documentDrag===true)this.addDocumentEvents();else{var b=this.start!=this.last;this.dragging=this.started=false;OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");this.out(a);this.callback("out",[]);b&&this.callback("done",[a.xy]);if(document.onselectstart)document.onselectstart=this.oldOnselectstart}return true},click:function(){return this.start==
this.last},activate:function(){var a=false;if(OpenLayers.Handler.prototype.activate.apply(this,arguments))this.dragging=false,a=true;return a},deactivate:function(){var a=false;if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments))this.dragging=this.started=this.touch=false,this.last=this.start=null,a=true,OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");return a},adjustXY:function(a){var b=OpenLayers.Util.pagePosition(this.map.viewPortDiv);a.xy.x-=b[0];a.xy.y-=b[1]},addDocumentEvents:function(){OpenLayers.Element.addClass(document.body,
"olDragDown");this.documentEvents=true;OpenLayers.Event.observe(document,"mousemove",this._docMove);OpenLayers.Event.observe(document,"mouseup",this._docUp)},removeDocumentEvents:function(){OpenLayers.Element.removeClass(document.body,"olDragDown");this.documentEvents=false;OpenLayers.Event.stopObserving(document,"mousemove",this._docMove);OpenLayers.Event.stopObserving(document,"mouseup",this._docUp)},CLASS_NAME:"OpenLayers.Handler.Drag"});
OpenLayers.Handler.Box=OpenLayers.Class(OpenLayers.Handler,{dragHandler:null,boxDivClassName:"olHandlerBoxZoomBox",boxOffsets:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);this.dragHandler=new OpenLayers.Handler.Drag(this,{down:this.startBox,move:this.moveBox,out:this.removeBox,up:this.endBox},{keyMask:this.keyMask})},destroy:function(){OpenLayers.Handler.prototype.destroy.apply(this,arguments);if(this.dragHandler)this.dragHandler.destroy(),this.dragHandler=
null},setMap:function(a){OpenLayers.Handler.prototype.setMap.apply(this,arguments);this.dragHandler&&this.dragHandler.setMap(a)},startBox:function(){this.callback("start",[]);this.zoomBox=OpenLayers.Util.createDiv("zoomBox",new OpenLayers.Pixel(-9999,-9999));this.zoomBox.className=this.boxDivClassName;this.zoomBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;this.map.eventsDiv.appendChild(this.zoomBox);OpenLayers.Element.addClass(this.map.eventsDiv,"olDrawBox")},moveBox:function(a){var b=this.dragHandler.start.x,
c=this.dragHandler.start.y,d=Math.abs(b-a.x),e=Math.abs(c-a.y),f=this.getBoxOffsets();this.zoomBox.style.width=d+f.width+1+"px";this.zoomBox.style.height=e+f.height+1+"px";this.zoomBox.style.left=(a.x<b?b-d-f.left:b-f.left)+"px";this.zoomBox.style.top=(a.y<c?c-e-f.top:c-f.top)+"px"},endBox:function(a){var b;if(Math.abs(this.dragHandler.start.x-a.x)>5||Math.abs(this.dragHandler.start.y-a.y)>5){var c=this.dragHandler.start;b=Math.min(c.y,a.y);var d=Math.max(c.y,a.y),e=Math.min(c.x,a.x),a=Math.max(c.x,
a.x);b=new OpenLayers.Bounds(e,d,a,b)}else b=this.dragHandler.start.clone();this.removeBox();this.callback("done",[b])},removeBox:function(){this.map.eventsDiv.removeChild(this.zoomBox);this.boxOffsets=this.zoomBox=null;OpenLayers.Element.removeClass(this.map.eventsDiv,"olDrawBox")},activate:function(){return OpenLayers.Handler.prototype.activate.apply(this,arguments)?(this.dragHandler.activate(),true):false},deactivate:function(){return OpenLayers.Handler.prototype.deactivate.apply(this,arguments)?
(this.dragHandler.deactivate()&&this.zoomBox&&this.removeBox(),true):false},getBoxOffsets:function(){if(!this.boxOffsets){var a=document.createElement("div");a.style.position="absolute";a.style.border="1px solid black";a.style.width="3px";document.body.appendChild(a);var b=a.clientWidth==3;document.body.removeChild(a);var a=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-left-width")),c=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-right-width")),d=parseInt(OpenLayers.Element.getStyle(this.zoomBox,
"border-top-width")),e=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-bottom-width"));this.boxOffsets={left:a,right:c,top:d,bottom:e,width:b===false?a+c:0,height:b===false?d+e:0}}return this.boxOffsets},CLASS_NAME:"OpenLayers.Handler.Box"});
OpenLayers.Control.ZoomBox=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,out:false,alwaysZoom:false,draw:function(){this.handler=new OpenLayers.Handler.Box(this,{done:this.zoomBox},{keyMask:this.keyMask})},zoomBox:function(a){if(a instanceof OpenLayers.Bounds){var b;if(this.out){b=Math.abs(a.right-a.left);var c=Math.abs(a.top-a.bottom);b=Math.min(this.map.size.h/c,this.map.size.w/b);var c=this.map.getExtent(),d=this.map.getLonLatFromPixel(a.getCenterPixel()),a=d.lon-c.getWidth()/
2*b,e=d.lon+c.getWidth()/2*b,f=d.lat-c.getHeight()/2*b;b=d.lat+c.getHeight()/2*b;b=new OpenLayers.Bounds(a,f,e,b)}else b=this.map.getLonLatFromPixel(new OpenLayers.Pixel(a.left,a.bottom)),c=this.map.getLonLatFromPixel(new OpenLayers.Pixel(a.right,a.top)),b=new OpenLayers.Bounds(b.lon,b.lat,c.lon,c.lat);c=this.map.getZoom();this.map.zoomToExtent(b);c==this.map.getZoom()&&this.alwaysZoom==true&&this.map.zoomTo(c+(this.out?-1:1))}else this.out?this.map.setCenter(this.map.getLonLatFromPixel(a),this.map.getZoom()-
1):this.map.setCenter(this.map.getLonLatFromPixel(a),this.map.getZoom()+1)},CLASS_NAME:"OpenLayers.Control.ZoomBox"});
OpenLayers.Control.DragPan=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,panned:false,interval:1,documentDrag:false,kinetic:null,enableKinetic:false,kineticInterval:10,draw:function(){if(this.enableKinetic){var a={interval:this.kineticInterval};typeof this.enableKinetic==="object"&&(a=OpenLayers.Util.extend(a,this.enableKinetic));this.kinetic=new OpenLayers.Kinetic(a)}this.handler=new OpenLayers.Handler.Drag(this,{move:this.panMap,done:this.panMapDone,down:this.panMapStart},
{interval:this.interval,documentDrag:this.documentDrag})},panMapStart:function(){this.kinetic&&this.kinetic.begin()},panMap:function(a){this.kinetic&&this.kinetic.update(a);this.panned=true;this.map.pan(this.handler.last.x-a.x,this.handler.last.y-a.y,{dragging:true,animate:false})},panMapDone:function(a){if(this.panned){var b=null;this.kinetic&&(b=this.kinetic.end(a));this.map.pan(this.handler.last.x-a.x,this.handler.last.y-a.y,{dragging:!!b,animate:false});if(b){var c=this;this.kinetic.move(b,function(a,
b,f){c.map.pan(a,b,{dragging:!f,animate:false})})}this.panned=false}},CLASS_NAME:"OpenLayers.Control.DragPan"});
OpenLayers.Handler.Click=OpenLayers.Class(OpenLayers.Handler,{delay:300,single:true,"double":false,pixelTolerance:0,dblclickTolerance:13,stopSingle:false,stopDouble:false,timerId:null,touch:false,down:null,last:null,first:null,rightclickTimerId:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments)},touchstart:function(a){if(!this.touch)this.unregisterMouseListeners(),this.touch=true;this.down=this.getEventInfo(a);this.last=this.getEventInfo(a);return true},
touchmove:function(a){this.last=this.getEventInfo(a);return true},touchend:function(a){if(this.down)a.xy=this.last.xy,a.lastTouches=this.last.touches,this.handleSingle(a),this.down=null;return true},unregisterMouseListeners:function(){this.map.events.un({mousedown:this.mousedown,mouseup:this.mouseup,click:this.click,dblclick:this.dblclick,scope:this})},mousedown:function(a){this.down=this.getEventInfo(a);this.last=this.getEventInfo(a);return true},mouseup:function(a){var b=true;this.checkModifiers(a)&&
this.control.handleRightClicks&&OpenLayers.Event.isRightClick(a)&&(b=this.rightclick(a));return b},rightclick:function(a){if(this.passesTolerance(a))if(this.rightclickTimerId!=null)return this.clearTimer(),this.callback("dblrightclick",[a]),!this.stopDouble;else a=this["double"]?OpenLayers.Util.extend({},a):this.callback("rightclick",[a]),a=OpenLayers.Function.bind(this.delayedRightCall,this,a),this.rightclickTimerId=window.setTimeout(a,this.delay);return!this.stopSingle},delayedRightCall:function(a){this.rightclickTimerId=
null;a&&this.callback("rightclick",[a])},click:function(a){if(!this.last)this.last=this.getEventInfo(a);this.handleSingle(a);return!this.stopSingle},dblclick:function(a){this.handleDouble(a);return!this.stopDouble},handleDouble:function(a){this["double"]&&this.passesDblclickTolerance(a)&&this.callback("dblclick",[a])},handleSingle:function(a){if(this.passesTolerance(a))this.timerId!=null?(this.last.touches&&this.last.touches.length===1&&(this["double"]&&OpenLayers.Event.stop(a),this.handleDouble(a)),
(!this.last.touches||this.last.touches.length!==2)&&this.clearTimer()):(this.first=this.getEventInfo(a),this.queuePotentialClick(this.single?OpenLayers.Util.extend({},a):null))},queuePotentialClick:function(a){this.timerId=window.setTimeout(OpenLayers.Function.bind(this.delayedCall,this,a),this.delay)},passesTolerance:function(a){var b=true;if(this.pixelTolerance!=null&&this.down&&this.down.xy&&(b=this.pixelTolerance>=this.down.xy.distanceTo(a.xy))&&this.touch&&this.down.touches.length===this.last.touches.length)for(var a=
0,c=this.down.touches.length;a<c;++a)if(this.getTouchDistance(this.down.touches[a],this.last.touches[a])>this.pixelTolerance){b=false;break}return b},getTouchDistance:function(a,b){return Math.sqrt(Math.pow(a.clientX-b.clientX,2)+Math.pow(a.clientY-b.clientY,2))},passesDblclickTolerance:function(){var a=true;this.down&&this.first&&(a=this.down.xy.distanceTo(this.first.xy)<=this.dblclickTolerance);return a},clearTimer:function(){if(this.timerId!=null)window.clearTimeout(this.timerId),this.timerId=
null;if(this.rightclickTimerId!=null)window.clearTimeout(this.rightclickTimerId),this.rightclickTimerId=null},delayedCall:function(a){this.timerId=null;a&&this.callback("click",[a])},getEventInfo:function(a){var b;if(a.touches){var c=a.touches.length;b=Array(c);for(var d,e=0;e<c;e++)d=a.touches[e],b[e]={clientX:d.clientX,clientY:d.clientY}}return{xy:a.xy,touches:b}},deactivate:function(){var a=false;if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments))this.clearTimer(),this.last=this.first=
this.down=null,this.touch=false,a=true;return a},CLASS_NAME:"OpenLayers.Handler.Click"});
OpenLayers.Control.Navigation=OpenLayers.Class(OpenLayers.Control,{dragPan:null,dragPanOptions:null,pinchZoom:null,pinchZoomOptions:null,documentDrag:false,zoomBox:null,zoomBoxEnabled:true,zoomWheelEnabled:true,mouseWheelOptions:null,handleRightClicks:false,zoomBoxKeyMask:OpenLayers.Handler.MOD_SHIFT,autoActivate:true,initialize:function(a){this.handlers={};OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.deactivate();this.dragPan&&this.dragPan.destroy();this.dragPan=
null;this.zoomBox&&this.zoomBox.destroy();this.zoomBox=null;this.pinchZoom&&this.pinchZoom.destroy();this.pinchZoom=null;OpenLayers.Control.prototype.destroy.apply(this,arguments)},activate:function(){this.dragPan.activate();this.zoomWheelEnabled&&this.handlers.wheel.activate();this.handlers.click.activate();this.zoomBoxEnabled&&this.zoomBox.activate();this.pinchZoom&&this.pinchZoom.activate();return OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){this.pinchZoom&&
this.pinchZoom.deactivate();this.zoomBox.deactivate();this.dragPan.deactivate();this.handlers.click.deactivate();this.handlers.wheel.deactivate();return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},draw:function(){if(this.handleRightClicks)this.map.viewPortDiv.oncontextmenu=OpenLayers.Function.False;this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.defaultClick,dblclick:this.defaultDblClick,dblrightclick:this.defaultDblRightClick},{"double":true,stopDouble:true});
this.dragPan=new OpenLayers.Control.DragPan(OpenLayers.Util.extend({map:this.map,documentDrag:this.documentDrag},this.dragPanOptions));this.zoomBox=new OpenLayers.Control.ZoomBox({map:this.map,keyMask:this.zoomBoxKeyMask});this.dragPan.draw();this.zoomBox.draw();this.handlers.wheel=new OpenLayers.Handler.MouseWheel(this,{up:this.wheelUp,down:this.wheelDown},this.mouseWheelOptions);if(OpenLayers.Control.PinchZoom)this.pinchZoom=new OpenLayers.Control.PinchZoom(OpenLayers.Util.extend({map:this.map},
this.pinchZoomOptions))},defaultClick:function(a){a.lastTouches&&a.lastTouches.length==2&&this.map.zoomOut()},defaultDblClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),this.map.zoom+1)},defaultDblRightClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),this.map.zoom-1)},wheelChange:function(a,b){var c=this.map.getZoom(),d=this.map.getZoom()+Math.round(b),d=Math.max(d,0),d=Math.min(d,this.map.getNumZoomLevels());if(d!==c){var e=this.map.getSize(),
c=e.w/2-a.xy.x,e=a.xy.y-e.h/2,f=this.map.baseLayer.getResolutionForZoom(d),g=this.map.getLonLatFromPixel(a.xy);this.map.setCenter(new OpenLayers.LonLat(g.lon+c*f,g.lat+e*f),d)}},wheelUp:function(a,b){this.wheelChange(a,b||1)},wheelDown:function(a,b){this.wheelChange(a,b||-1)},disableZoomBox:function(){this.zoomBoxEnabled=false;this.zoomBox.deactivate()},enableZoomBox:function(){this.zoomBoxEnabled=true;this.active&&this.zoomBox.activate()},disableZoomWheel:function(){this.zoomWheelEnabled=false;this.handlers.wheel.deactivate()},
enableZoomWheel:function(){this.zoomWheelEnabled=true;this.active&&this.handlers.wheel.activate()},CLASS_NAME:"OpenLayers.Control.Navigation"});
OpenLayers.Control.DrawFeature=OpenLayers.Class(OpenLayers.Control,{layer:null,callbacks:null,EVENT_TYPES:["featureadded"],multi:false,featureAdded:function(){},handlerOptions:null,initialize:function(a,b,c){this.EVENT_TYPES=OpenLayers.Control.DrawFeature.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);OpenLayers.Control.prototype.initialize.apply(this,[c]);this.callbacks=OpenLayers.Util.extend({done:this.drawFeature,modify:function(a,b){this.layer.events.triggerEvent("sketchmodified",
{vertex:a,feature:b})},create:function(a,b){this.layer.events.triggerEvent("sketchstarted",{vertex:a,feature:b})}},this.callbacks);this.layer=a;this.handlerOptions=this.handlerOptions||{};if(!("multi"in this.handlerOptions))this.handlerOptions.multi=this.multi;if(a=this.layer.styleMap&&this.layer.styleMap.styles.temporary)this.handlerOptions.layerOptions=OpenLayers.Util.applyDefaults(this.handlerOptions.layerOptions,{styleMap:new OpenLayers.StyleMap({"default":a})});this.handler=new b(this,this.callbacks,
this.handlerOptions)},drawFeature:function(a){a=new OpenLayers.Feature.Vector(a);if(this.layer.events.triggerEvent("sketchcomplete",{feature:a})!==false)a.state=OpenLayers.State.INSERT,this.layer.addFeatures([a]),this.featureAdded(a),this.events.triggerEvent("featureadded",{feature:a})},insertXY:function(a,b){this.handler&&this.handler.line&&this.handler.insertXY(a,b)},insertDeltaXY:function(a,b){this.handler&&this.handler.line&&this.handler.insertDeltaXY(a,b)},insertDirectionLength:function(a,b){this.handler&&
this.handler.line&&this.handler.insertDirectionLength(a,b)},insertDeflectionLength:function(a,b){this.handler&&this.handler.line&&this.handler.insertDeflectionLength(a,b)},undo:function(){return this.handler.undo&&this.handler.undo()},redo:function(){return this.handler.redo&&this.handler.redo()},finishSketch:function(){this.handler.finishGeometry()},cancel:function(){this.handler.cancel()},CLASS_NAME:"OpenLayers.Control.DrawFeature"});
OpenLayers.Handler.Polygon=OpenLayers.Class(OpenLayers.Handler.Path,{holeModifier:null,drawingHole:false,polygon:null,initialize:function(a,b,c){OpenLayers.Handler.Path.prototype.initialize.apply(this,arguments)},createFeature:function(a){a=this.map.getLonLatFromPixel(a);a=new OpenLayers.Geometry.Point(a.lon,a.lat);this.point=new OpenLayers.Feature.Vector(a);this.line=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LinearRing([this.point.geometry]));this.polygon=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon([this.line.geometry]));
this.callback("create",[this.point.geometry,this.getSketch()]);this.point.geometry.clearBounds();this.layer.addFeatures([this.polygon,this.point],{silent:true})},addPoint:function(a){if(!this.drawingHole&&this.holeModifier&&this.evt&&this.evt[this.holeModifier])for(var b=this.point.geometry,c=this.control.layer.features,d,e=c.length-1;e>=0;--e)if(d=c[e].geometry,(d instanceof OpenLayers.Geometry.Polygon||d instanceof OpenLayers.Geometry.MultiPolygon)&&d.intersects(b)){b=c[e];this.control.layer.removeFeatures([b],
{silent:true});this.control.layer.events.registerPriority("sketchcomplete",this,this.finalizeInteriorRing);this.control.layer.events.registerPriority("sketchmodified",this,this.enforceTopology);b.geometry.addComponent(this.line.geometry);this.polygon=b;this.drawingHole=true;break}OpenLayers.Handler.Path.prototype.addPoint.apply(this,arguments)},getCurrentPointIndex:function(){return this.line.geometry.components.length-2},enforceTopology:function(a){var a=a.vertex,b=this.line.geometry.components;
if(!this.polygon.geometry.intersects(a))b=b[b.length-3],a.x=b.x,a.y=b.y},finishGeometry:function(){this.line.geometry.removeComponent(this.line.geometry.components[this.line.geometry.components.length-2]);this.removePoint();this.finalize()},finalizeInteriorRing:function(){var a=this.line.geometry,b=a.getArea()!==0;if(b){for(var c=this.polygon.geometry.components,d=c.length-2;d>=0;--d)if(a.intersects(c[d])){b=false;break}if(b){d=c.length-2;a:for(;d>0;--d)for(var e=c[d].components,f=0,g=e.length;f<
g;++f)if(a.containsPoint(e[f])){b=false;break a}}}if(b){if(this.polygon.state!==OpenLayers.State.INSERT)this.polygon.state=OpenLayers.State.UPDATE}else this.polygon.geometry.removeComponent(a);this.restoreFeature();return false},cancel:function(){this.drawingHole&&(this.polygon.geometry.removeComponent(this.line.geometry),this.restoreFeature(true));return OpenLayers.Handler.Path.prototype.cancel.apply(this,arguments)},restoreFeature:function(a){this.control.layer.events.unregister("sketchcomplete",
this,this.finalizeInteriorRing);this.control.layer.events.unregister("sketchmodified",this,this.enforceTopology);this.layer.removeFeatures([this.polygon],{silent:true});this.control.layer.addFeatures([this.polygon],{silent:true});this.drawingHole=false;a||this.control.layer.events.triggerEvent("sketchcomplete",{feature:this.polygon})},destroyFeature:function(a){OpenLayers.Handler.Path.prototype.destroyFeature.call(this,a);this.polygon=null},drawFeature:function(){this.layer.drawFeature(this.polygon,
this.style);this.layer.drawFeature(this.point,this.style)},getSketch:function(){return this.polygon},getGeometry:function(){var a=this.polygon&&this.polygon.geometry;a&&this.multi&&(a=new OpenLayers.Geometry.MultiPolygon([a]));return a},CLASS_NAME:"OpenLayers.Handler.Polygon"});
OpenLayers.Control.EditingToolbar=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a,b){OpenLayers.Control.Panel.prototype.initialize.apply(this,[b]);b.showPanSwitch&&this.addControls([new OpenLayers.Control.Navigation]);var c=[];b.showPointSwitch&&c.push(new OpenLayers.Control.DrawFeature(a,OpenLayers.Handler.Point,{displayClass:"olControlDrawFeaturePoint"}));b.showLineSwitch&&c.push(new OpenLayers.Control.DrawFeature(a,OpenLayers.Handler.Path,{displayClass:"olControlDrawFeaturePath"}));
b.showPolygonSwitch&&c.push(new OpenLayers.Control.DrawFeature(a,OpenLayers.Handler.Polygon,{displayClass:"olControlDrawFeaturePolygon"}));for(var d=0,e=c.length;d<e;d++)c[d].featureAdded=function(a){a.state=OpenLayers.State.INSERT};this.addControls(c)},draw:function(){var a=OpenLayers.Control.Panel.prototype.draw.apply(this,arguments);this.activateControl(this.controls[0]);return a},CLASS_NAME:"OpenLayers.Control.EditingToolbar"});
OpenLayers.Protocol.WFS.v1=OpenLayers.Class(OpenLayers.Protocol,{version:null,srsName:"EPSG:4326",featureType:null,featureNS:null,geometryName:"the_geom",schema:null,featurePrefix:"feature",formatOptions:null,readFormat:null,readOptions:null,initialize:function(a){OpenLayers.Protocol.prototype.initialize.apply(this,[a]);if(!a.format)this.format=OpenLayers.Format.WFST(OpenLayers.Util.extend({version:this.version,featureType:this.featureType,featureNS:this.featureNS,featurePrefix:this.featurePrefix,
geometryName:this.geometryName,srsName:this.srsName,schema:this.schema},this.formatOptions));!a.geometryName&&parseFloat(this.format.version)>1&&this.setGeometryName(null)},destroy:function(){this.options&&!this.options.format&&this.format.destroy();this.format=null;OpenLayers.Protocol.prototype.destroy.apply(this)},read:function(a){OpenLayers.Protocol.prototype.read.apply(this,arguments);a=OpenLayers.Util.extend({},a);OpenLayers.Util.applyDefaults(a,this.options||{});var b=new OpenLayers.Protocol.Response({requestType:"read"}),
c=OpenLayers.Format.XML.prototype.write.apply(this.format,[this.format.writeNode("wfs:GetFeature",a)]);b.priv=OpenLayers.Request.POST({url:a.url,callback:this.createCallback(this.handleRead,b,a),params:a.params,headers:a.headers,data:c});return b},setFeatureType:function(a){this.featureType=a;this.format.featureType=a},setGeometryName:function(a){this.geometryName=a;this.format.geometryName=a},handleRead:function(a,b){b=OpenLayers.Util.extend({},b);OpenLayers.Util.applyDefaults(b,this.options);if(b.callback){var c=
a.priv;c.status>=200&&c.status<300?(c=this.parseResponse(c,b.readOptions))&&c.success!==false?(b.readOptions&&b.readOptions.output=="object"?OpenLayers.Util.extend(a,c):a.features=c,a.code=OpenLayers.Protocol.Response.SUCCESS):(a.code=OpenLayers.Protocol.Response.FAILURE,a.error=c):a.code=OpenLayers.Protocol.Response.FAILURE;b.callback.call(b.scope,a)}},parseResponse:function(a,b){var c=a.responseXML;if(!c||!c.documentElement)c=a.responseText;if(!c||c.length<=0)return null;c=this.readFormat!==null?
this.readFormat.read(c):this.format.read(c,b);if(!this.featureNS){var d=this.readFormat||this.format;this.featureNS=d.featureNS;d.autoConfig=false;this.geometryName||this.setGeometryName(d.geometryName)}return c},commit:function(a,b){b=OpenLayers.Util.extend({},b);OpenLayers.Util.applyDefaults(b,this.options);var c=new OpenLayers.Protocol.Response({requestType:"commit",reqFeatures:a});c.priv=OpenLayers.Request.POST({url:b.url,headers:b.headers,data:this.format.write(a,b),callback:this.createCallback(this.handleCommit,
c,b)});return c},handleCommit:function(a,b){if(b.callback){var c=a.priv,d=c.responseXML;if(!d||!d.documentElement)d=c.responseText;c=this.format.read(d)||{};a.insertIds=c.insertIds||[];c.success?a.code=OpenLayers.Protocol.Response.SUCCESS:(a.code=OpenLayers.Protocol.Response.FAILURE,a.error=c);b.callback.call(b.scope,a)}},filterDelete:function(a,b){b=OpenLayers.Util.extend({},b);OpenLayers.Util.applyDefaults(b,this.options);new OpenLayers.Protocol.Response({requestType:"commit"});var c=this.format.createElementNSPlus("wfs:Transaction",
{attributes:{service:"WFS",version:this.version}}),d=this.format.createElementNSPlus("wfs:Delete",{attributes:{typeName:(b.featureNS?this.featurePrefix+":":"")+b.featureType}});b.featureNS&&d.setAttribute("xmlns:"+this.featurePrefix,b.featureNS);var e=this.format.writeNode("ogc:Filter",a);d.appendChild(e);c.appendChild(d);c=OpenLayers.Format.XML.prototype.write.apply(this.format,[c]);return OpenLayers.Request.POST({url:this.url,callback:b.callback||function(){},data:c})},abort:function(a){a&&a.priv.abort()},
CLASS_NAME:"OpenLayers.Protocol.WFS.v1"});
OpenLayers.Layer.WorldWind=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{},isBaseLayer:true,lzd:null,zoomLevels:null,initialize:function(a,b,c,d,e,f){this.lzd=c;this.zoomLevels=d;c=[];c.push(a,b,e,f);OpenLayers.Layer.Grid.prototype.initialize.apply(this,c);this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS)},getZoom:function(){var a=this.map.getZoom();this.map.getMaxExtent();a-=Math.log(this.maxResolution/(this.lzd/512))/Math.log(2);return a},getURL:function(a){var a=
this.adjustBounds(a),b=this.getZoom(),c=this.map.getMaxExtent(),d=this.lzd/Math.pow(2,this.getZoom()),e=Math.floor((a.left-c.left)/d),a=Math.floor((a.bottom-c.bottom)/d);return this.map.getResolution()<=this.lzd/512&&this.getZoom()<=this.zoomLevels?this.getFullRequestString({L:b,X:e,Y:a}):OpenLayers.Util.getImagesLocation()+"blank.gif"},CLASS_NAME:"OpenLayers.Layer.WorldWind"});
OpenLayers.Protocol.WFS.v1_1_0=OpenLayers.Class(OpenLayers.Protocol.WFS.v1,{version:"1.1.0",initialize:function(a){OpenLayers.Protocol.WFS.v1.prototype.initialize.apply(this,arguments);if(this.outputFormat&&!this.readFormat)if(this.outputFormat.toLowerCase()=="gml2")this.readFormat=new OpenLayers.Format.GML.v2({featureType:this.featureType,featureNS:this.featureNS,geometryName:this.geometryName});else if(this.outputFormat.toLowerCase()=="json")this.readFormat=new OpenLayers.Format.GeoJSON},CLASS_NAME:"OpenLayers.Protocol.WFS.v1_1_0"});
OpenLayers.Format.WMTSCapabilities=OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC,{defaultVersion:"1.0.0",yx:{"urn:ogc:def:crs:EPSG::4326":true},createLayer:function(a,b){var c,d={layer:true,matrixSet:true},e;for(e in d)if(!(e in b))throw Error("Missing property '"+e+"' in layer configuration.");d=a.contents;e=d.tileMatrixSets[b.matrixSet];for(var f,g=0,h=d.layers.length;g<h;++g)if(d.layers[g].identifier===b.layer){f=d.layers[g];break}if(f&&e){for(var i,g=0,h=f.styles.length;g<h;++g)if(i=f.styles[g],
i.isDefault)break;c=new OpenLayers.Layer.WMTS(OpenLayers.Util.applyDefaults(b,{url:a.operationsMetadata.GetTile.dcp.http.get,name:f.title,style:i.identifier,matrixIds:e.matrixIds}))}return c},CLASS_NAME:"OpenLayers.Format.WMTSCapabilities"});
OpenLayers.Layer.Google.v3={DEFAULTS:{maxExtent:new OpenLayers.Bounds(-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7),sphericalMercator:true,maxResolution:156543.03390625,units:"m",projection:"EPSG:900913"},animationEnabled:true,loadMapObject:function(){if(!this.type)this.type=google.maps.MapTypeId.ROADMAP;var a,b=OpenLayers.Layer.Google.cache[this.map.id];b?(a=b.mapObject,++b.count):(b=this.map.viewPortDiv,a=document.createElement("div"),a.id=this.map.id+"_GMapContainer",a.style.position=
"absolute",a.style.width="100%",a.style.height="100%",b.appendChild(a),b=this.map.getCenter(),a=new google.maps.Map(a,{center:b?new google.maps.LatLng(b.lat,b.lon):new google.maps.LatLng(0,0),zoom:this.map.getZoom()||0,mapTypeId:this.type,disableDefaultUI:true,keyboardShortcuts:false,draggable:false,disableDoubleClickZoom:true,scrollwheel:false,streetViewControl:false}),b={mapObject:a,count:1},OpenLayers.Layer.Google.cache[this.map.id]=b,this.repositionListener=google.maps.event.addListenerOnce(a,
"center_changed",OpenLayers.Function.bind(this.repositionMapElements,this)));this.mapObject=a;this.setGMapVisibility(this.visibility)},repositionMapElements:function(){google.maps.event.trigger(this.mapObject,"resize");var a=this.mapObject.getDiv().firstChild;if(!a||a.childNodes.length<3)return this.repositionTimer=window.setTimeout(OpenLayers.Function.bind(this.repositionMapElements,this),250),false;for(var b=OpenLayers.Layer.Google.cache[this.map.id],c=this.map.viewPortDiv;a.lastChild.style.display==
"none";)c.appendChild(a.lastChild);var d=a.lastChild;c.appendChild(d);d.style.zIndex="1100";d.style.bottom="";d.className="olLayerGoogleCopyright olLayerGoogleV3";a=a.lastChild;c.appendChild(a);a.style.zIndex="1100";a.style.bottom="";a.className="olLayerGooglePoweredBy olLayerGoogleV3 gmnoprint";a.style.display="";b.poweredBy=a;this.setGMapVisibility(this.visibility)},onMapResize:function(){if(this.visibility)google.maps.event.trigger(this.mapObject,"resize");else{var a=OpenLayers.Layer.Google.cache[this.map.id];
if(!a.resized){var b=this;google.maps.event.addListenerOnce(this.mapObject,"tilesloaded",function(){google.maps.event.trigger(b.mapObject,"resize");b.moveTo(b.map.getCenter(),b.map.getZoom());delete a.resized})}a.resized=true}},setGMapVisibility:function(a){var b=OpenLayers.Layer.Google.cache[this.map.id];if(b){for(var c=this.type,d=this.map.layers,e,f=d.length-1;f>=0;--f)if(e=d[f],e instanceof OpenLayers.Layer.Google&&e.visibility===true&&e.inRange===true){c=e.type;a=true;break}d=this.mapObject.getDiv();
if(a===true){this.mapObject.setMapTypeId(c);d.style.left="";if(b.termsOfUse&&b.termsOfUse.style)b.termsOfUse.style.left="",b.termsOfUse.style.display="",b.poweredBy.style.display="";b.displayed=this.id}else if(delete b.displayed,d.style.left="-9999px",b.termsOfUse&&b.termsOfUse.style)b.termsOfUse.style.display="none",b.termsOfUse.style.left="-9999px",b.poweredBy.style.display="none"}},getMapContainer:function(){return this.mapObject.getDiv()},getMapObjectBoundsFromOLBounds:function(a){var b=null;
a!=null&&(b=this.sphericalMercator?this.inverseMercator(a.bottom,a.left):new OpenLayers.LonLat(a.bottom,a.left),a=this.sphericalMercator?this.inverseMercator(a.top,a.right):new OpenLayers.LonLat(a.top,a.right),b=new google.maps.LatLngBounds(new google.maps.LatLng(b.lat,b.lon),new google.maps.LatLng(a.lat,a.lon)));return b},getMapObjectLonLatFromMapObjectPixel:function(a){var b=this.map.getSize(),c=this.getLongitudeFromMapObjectLonLat(this.mapObject.center),d=this.getLatitudeFromMapObjectLonLat(this.mapObject.center),
e=this.map.getResolution(),a=new OpenLayers.LonLat(c+(a.x-b.w/2)*e,d-(a.y-b.h/2)*e);this.wrapDateLine&&(a=a.wrapDateLine(this.maxExtent));return this.getMapObjectLonLatFromLonLat(a.lon,a.lat)},getMapObjectPixelFromMapObjectLonLat:function(a){var b=this.getLongitudeFromMapObjectLonLat(a),a=this.getLatitudeFromMapObjectLonLat(a),c=this.map.getResolution(),d=this.map.getExtent(),b=new OpenLayers.Pixel(1/c*(b-d.left),1/c*(d.top-a));return this.getMapObjectPixelFromXY(b.x,b.y)},setMapObjectCenter:function(a,
b){if(this.animationEnabled===false&&b!=this.mapObject.zoom){var c=this.getMapContainer();google.maps.event.addListenerOnce(this.mapObject,"idle",function(){c.style.visibility=""});c.style.visibility="hidden"}this.mapObject.setOptions({center:a,zoom:b})},getMapObjectZoomFromMapObjectBounds:function(a){return this.mapObject.getBoundsZoomLevel(a)},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),c=new google.maps.LatLng(c.lat,c.lon)):c=new google.maps.LatLng(b,
a);return c},getMapObjectPixelFromXY:function(a,b){return new google.maps.Point(a,b)},destroy:function(){this.repositionListener&&google.maps.event.removeListener(this.repositionListener);this.repositionTimer&&window.clearTimeout(this.repositionTimer);OpenLayers.Layer.Google.prototype.destroy.apply(this,arguments)}};
OpenLayers.Format.WPSDescribeProcess=OpenLayers.Class(OpenLayers.Format.XML,{VERSION:"1.0.0",namespaces:{wps:"http://www.opengis.net/wps/1.0.0",ows:"http://www.opengis.net/ows/1.1",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd",defaultPrefix:"wps",regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,
[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,b);return b},readers:{wps:{ProcessDescriptions:function(a,b){b.processDescriptions={};this.readChildNodes(a,b.processDescriptions)},ProcessDescription:function(a,b){var c={processVersion:this.getAttributeNS(a,this.namespaces.wps,"processVersion"),statusSupported:a.getAttribute("statusSupported")==="true",storeSupported:a.getAttribute("storeSupported")==="true"};this.readChildNodes(a,c);b[c.identifier]=c},DataInputs:function(a,
b){b.dataInputs=[];this.readChildNodes(a,b.dataInputs)},ProcessOutputs:function(a,b){b.processOutputs=[];this.readChildNodes(a,b.processOutputs)},Output:function(a,b){var c={};this.readChildNodes(a,c);b.push(c)},ComplexOutput:function(a,b){b.complexOutput={};this.readChildNodes(a,b.complexOutput)},Input:function(a,b){var c={maxOccurs:parseInt(a.getAttribute("maxOccurs")),minOccurs:parseInt(a.getAttribute("minOccurs"))};this.readChildNodes(a,c);b.push(c)},BoundingBoxData:function(a,b){b.boundingBoxData=
{};this.readChildNodes(a,b.boundingBoxData)},CRS:function(a,b){if(!b.CRSs)b.CRSs={};b.CRSs[this.getChildValue(a)]=true},LiteralData:function(a,b){b.literalData={};this.readChildNodes(a,b.literalData)},ComplexData:function(a,b){b.complexData={};this.readChildNodes(a,b.complexData)},Default:function(a,b){b["default"]={};this.readChildNodes(a,b["default"])},Supported:function(a,b){b.supported={};this.readChildNodes(a,b.supported)},Format:function(a,b){var c={};this.readChildNodes(a,c);if(!b.formats)b.formats=
{};b.formats[c.mimeType]=true},MimeType:function(a,b){b.mimeType=this.getChildValue(a)}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WPSDescribeProcess"});
OpenLayers.Control.NavToolbar=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);this.addControls([new OpenLayers.Control.Navigation,new OpenLayers.Control.ZoomBox])},draw:function(){var a=OpenLayers.Control.Panel.prototype.draw.apply(this,arguments);if(this.defaultControl===null)this.defaultControl=this.controls[0];return a},CLASS_NAME:"OpenLayers.Control.NavToolbar"});
OpenLayers.Control.PanZoomBar=OpenLayers.Class(OpenLayers.Control.PanZoom,{zoomStopWidth:18,zoomStopHeight:11,slider:null,sliderEvents:null,zoombarDiv:null,divEvents:null,zoomWorldIcon:false,panIcons:true,forceFixedZoomLevel:false,mouseDragStart:null,deltaY:null,zoomStart:null,destroy:function(){this._removeZoomBar();this.map.events.un({changebaselayer:this.redraw,scope:this});OpenLayers.Control.PanZoom.prototype.destroy.apply(this,arguments);delete this.mouseDragStart;delete this.zoomStart},setMap:function(a){OpenLayers.Control.PanZoom.prototype.setMap.apply(this,
arguments);this.map.events.register("changebaselayer",this,this.redraw)},redraw:function(){this.div!=null&&(this.removeButtons(),this._removeZoomBar());this.draw()},draw:function(a){OpenLayers.Control.prototype.draw.apply(this,arguments);a=this.position.clone();this.buttons=[];var b=new OpenLayers.Size(18,18);if(this.panIcons){var c=new OpenLayers.Pixel(a.x+b.w/2,a.y),d=b.w;this.zoomWorldIcon&&(c=new OpenLayers.Pixel(a.x+b.w,a.y));this._addButton("panup","north-mini.png",c,b);a.y=c.y+b.h;this._addButton("panleft",
"west-mini.png",a,b);this.zoomWorldIcon&&(this._addButton("zoomworld","zoom-world-mini.png",a.add(b.w,0),b),d*=2);this._addButton("panright","east-mini.png",a.add(d,0),b);this._addButton("pandown","south-mini.png",c.add(0,b.h*2),b);this._addButton("zoomin","zoom-plus-mini.png",c.add(0,b.h*3+5),b);c=this._addZoomBar(c.add(0,b.h*4+5));this._addButton("zoomout","zoom-minus-mini.png",c,b)}else this._addButton("zoomin","zoom-plus-mini.png",a,b),c=this._addZoomBar(a.add(0,b.h)),this._addButton("zoomout",
"zoom-minus-mini.png",c,b),this.zoomWorldIcon&&(c=c.add(0,b.h+3),this._addButton("zoomworld","zoom-world-mini.png",c,b));return this.div},_addZoomBar:function(a){var b=OpenLayers.Util.getImagesLocation(),c=this.id+"_"+this.map.id,d=this.map.getNumZoomLevels()-1-this.map.getZoom(),d=OpenLayers.Util.createAlphaImageDiv(c,a.add(-1,d*this.zoomStopHeight),new OpenLayers.Size(20,9),b+"slider.png","absolute");d.style.cursor="move";this.slider=d;this.sliderEvents=new OpenLayers.Events(this,d,null,true,{includeXY:true});
this.sliderEvents.on({touchstart:this.zoomBarDown,touchmove:this.zoomBarDrag,touchend:this.zoomBarUp,mousedown:this.zoomBarDown,mousemove:this.zoomBarDrag,mouseup:this.zoomBarUp,dblclick:this.doubleClick,click:this.doubleClick});var e=new OpenLayers.Size;e.h=this.zoomStopHeight*this.map.getNumZoomLevels();e.w=this.zoomStopWidth;c=null;OpenLayers.Util.alphaHack()?(c=this.id+"_"+this.map.id,c=OpenLayers.Util.createAlphaImageDiv(c,a,new OpenLayers.Size(e.w,this.zoomStopHeight),b+"zoombar.png","absolute",
null,"crop"),c.style.height=e.h+"px"):c=OpenLayers.Util.createDiv("OpenLayers_Control_PanZoomBar_Zoombar"+this.map.id,a,e,b+"zoombar.png");c.style.cursor="pointer";this.zoombarDiv=c;this.divEvents=new OpenLayers.Events(this,c,null,true,{includeXY:true});this.divEvents.on({touchmove:this.passEventToSlider,mousedown:this.divClick,mousemove:this.passEventToSlider,dblclick:this.doubleClick,click:this.doubleClick});this.div.appendChild(c);this.startTop=parseInt(c.style.top);this.div.appendChild(d);this.map.events.register("zoomend",
this,this.moveZoomBar);return a=a.add(0,this.zoomStopHeight*this.map.getNumZoomLevels())},_removeZoomBar:function(){this.sliderEvents.un({touchmove:this.zoomBarDrag,mousedown:this.zoomBarDown,mousemove:this.zoomBarDrag,mouseup:this.zoomBarUp,dblclick:this.doubleClick,click:this.doubleClick});this.sliderEvents.destroy();this.divEvents.un({touchmove:this.passEventToSlider,mousedown:this.divClick,mousemove:this.passEventToSlider,dblclick:this.doubleClick,click:this.doubleClick});this.divEvents.destroy();
this.div.removeChild(this.zoombarDiv);this.zoombarDiv=null;this.div.removeChild(this.slider);this.slider=null;this.map.events.unregister("zoomend",this,this.moveZoomBar)},passEventToSlider:function(a){this.sliderEvents.handleBrowserEvent(a)},divClick:function(a){if(OpenLayers.Event.isLeftClick(a)){var b=a.xy.y/this.zoomStopHeight;if(this.forceFixedZoomLevel||!this.map.fractionalZoom)b=Math.floor(b);b=this.map.getNumZoomLevels()-1-b;b=Math.min(Math.max(b,0),this.map.getNumZoomLevels()-1);this.map.zoomTo(b);
OpenLayers.Event.stop(a)}},zoomBarDown:function(a){if(OpenLayers.Event.isLeftClick(a)||OpenLayers.Event.isSingleTouch(a))this.map.events.on({touchmove:this.passEventToSlider,mousemove:this.passEventToSlider,mouseup:this.passEventToSlider,scope:this}),this.mouseDragStart=a.xy.clone(),this.zoomStart=a.xy.clone(),this.div.style.cursor="move",this.zoombarDiv.offsets=null,OpenLayers.Event.stop(a)},zoomBarDrag:function(a){if(this.mouseDragStart!=null){var b=this.mouseDragStart.y-a.xy.y,c=OpenLayers.Util.pagePosition(this.zoombarDiv);
if(a.clientY-c[1]>0&&a.clientY-c[1]<parseInt(this.zoombarDiv.style.height)-2)this.slider.style.top=parseInt(this.slider.style.top)-b+"px",this.mouseDragStart=a.xy.clone();this.deltaY=this.zoomStart.y-a.xy.y;OpenLayers.Event.stop(a)}},zoomBarUp:function(a){if((OpenLayers.Event.isLeftClick(a)||a.type==="touchend")&&this.mouseDragStart){this.div.style.cursor="";this.map.events.un({touchmove:this.passEventToSlider,mouseup:this.passEventToSlider,mousemove:this.passEventToSlider,scope:this});var b=this.map.zoom;
!this.forceFixedZoomLevel&&this.map.fractionalZoom?(b+=this.deltaY/this.zoomStopHeight,b=Math.min(Math.max(b,0),this.map.getNumZoomLevels()-1)):(b+=this.deltaY/this.zoomStopHeight,b=Math.max(Math.round(b),0));this.map.zoomTo(b);this.zoomStart=this.mouseDragStart=null;this.deltaY=0;OpenLayers.Event.stop(a)}},moveZoomBar:function(){this.slider.style.top=(this.map.getNumZoomLevels()-1-this.map.getZoom())*this.zoomStopHeight+this.startTop+1+"px"},CLASS_NAME:"OpenLayers.Control.PanZoomBar"});
OpenLayers.Format.CSWGetRecords.v2_0_2=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{csw:"http://www.opengis.net/cat/csw/2.0.2",dc:"http://purl.org/dc/elements/1.1/",dct:"http://purl.org/dc/terms/",geonet:"http://www.fao.org/geonetwork",ogc:"http://www.opengis.net/ogc",ows:"http://www.opengis.net/ows",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"csw",version:"2.0.2",schemaLocation:"http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",
requestId:null,resultType:null,outputFormat:null,outputSchema:null,startPosition:null,maxRecords:null,DistributedSearch:null,ResponseHandler:null,Query:null,regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,b);return b},
readers:{csw:{GetRecordsResponse:function(a,b){b.records=[];this.readChildNodes(a,b);var c=this.getAttributeNS(a,"","version");if(c!="")b.version=c},RequestId:function(a,b){b.RequestId=this.getChildValue(a)},SearchStatus:function(a,b){b.SearchStatus={};var c=this.getAttributeNS(a,"","timestamp");if(c!="")b.SearchStatus.timestamp=c},SearchResults:function(a,b){this.readChildNodes(a,b);for(var c=a.attributes,d={},e=0,f=c.length;e<f;++e)d[c[e].name]=c[e].name=="numberOfRecordsMatched"||c[e].name=="numberOfRecordsReturned"||
c[e].name=="nextRecord"?parseInt(c[e].nodeValue):c[e].nodeValue;b.SearchResults=d},SummaryRecord:function(a,b){var c={type:"SummaryRecord"};this.readChildNodes(a,c);b.records.push(c)},BriefRecord:function(a,b){var c={type:"BriefRecord"};this.readChildNodes(a,c);b.records.push(c)},DCMIRecord:function(a,b){var c={type:"DCMIRecord"};this.readChildNodes(a,c);b.records.push(c)},Record:function(a,b){var c={type:"Record"};this.readChildNodes(a,c);b.records.push(c)},"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();
b[c]=this.getChildValue(a)}},geonet:{info:function(a,b){var c={};this.readChildNodes(a,c);b.gninfo=c}},dc:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();OpenLayers.Util.isArray(b[c])||(b[c]=[]);for(var d={},e=a.attributes,f=0,g=e.length;f<g;++f)d[e[f].name]=e[f].nodeValue;d.value=this.getChildValue(a);b[c].push(d)}},dct:{"*":function(a,b){var c=a.localName||a.nodeName.split(":").pop();OpenLayers.Util.isArray(b[c])||(b[c]=[]);b[c].push(this.getChildValue(a))}},ows:OpenLayers.Util.applyDefaults({BoundingBox:function(a,
b){if(b.bounds)b.BoundingBox=[{crs:b.projection,value:[b.bounds.left,b.bounds.bottom,b.bounds.right,b.bounds.top]}],delete b.projection,delete b.bounds;OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows.BoundingBox.apply(this,arguments)}},OpenLayers.Format.OWSCommon.v1_0_0.prototype.readers.ows)},write:function(a){a=this.writeNode("csw:GetRecords",a);return OpenLayers.Format.XML.prototype.write.apply(this,[a])},writers:{csw:{GetRecords:function(a){a||(a={});var b=this.createElementNSPlus("csw:GetRecords",
{attributes:{service:"CSW",version:this.version,requestId:a.requestId||this.requestId,resultType:a.resultType||this.resultType,outputFormat:a.outputFormat||this.outputFormat,outputSchema:a.outputSchema||this.outputSchema,startPosition:a.startPosition||this.startPosition,maxRecords:a.maxRecords||this.maxRecords}});if(a.DistributedSearch||this.DistributedSearch)this.writeNode("csw:DistributedSearch",a.DistributedSearch||this.DistributedSearch,b);var c=a.ResponseHandler||this.ResponseHandler;if(OpenLayers.Util.isArray(c)&&
c.length>0)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ResponseHandler",c[d],b);this.writeNode("Query",a.Query||this.Query,b);return b},DistributedSearch:function(a){return this.createElementNSPlus("csw:DistributedSearch",{attributes:{hopCount:a.hopCount}})},ResponseHandler:function(a){return this.createElementNSPlus("csw:ResponseHandler",{value:a.value})},Query:function(a){a||(a={});var b=this.createElementNSPlus("csw:Query",{attributes:{typeNames:a.typeNames||"csw:Record"}}),c=a.ElementName;
if(OpenLayers.Util.isArray(c)&&c.length>0)for(var d=0,e=c.length;d<e;d++)this.writeNode("csw:ElementName",c[d],b);else this.writeNode("csw:ElementSetName",a.ElementSetName||{value:"summary"},b);a.Constraint&&this.writeNode("csw:Constraint",a.Constraint,b);a.SortBy&&this.writeNode("ogc:SortBy",a.SortBy,b);return b},ElementName:function(a){return this.createElementNSPlus("csw:ElementName",{value:a.value})},ElementSetName:function(a){return this.createElementNSPlus("csw:ElementSetName",{attributes:{typeNames:a.typeNames},
value:a.value})},Constraint:function(a){var b=this.createElementNSPlus("csw:Constraint",{attributes:{version:a.version}});if(a.Filter){var c=new OpenLayers.Format.Filter({version:a.version});b.appendChild(c.write(a.Filter))}else a.CqlText&&(a=this.createElementNSPlus("CqlText",{value:a.CqlText.value}),b.appendChild(a));return b}},ogc:OpenLayers.Format.Filter.v1_1_0.prototype.writers.ogc},CLASS_NAME:"OpenLayers.Format.CSWGetRecords.v2_0_2"});
OpenLayers.Marker.Box=OpenLayers.Class(OpenLayers.Marker,{bounds:null,div:null,initialize:function(a,b,c){this.bounds=a;this.div=OpenLayers.Util.createDiv();this.div.style.overflow="hidden";this.events=new OpenLayers.Events(this,this.div,null);this.setBorder(b,c)},destroy:function(){this.div=this.bounds=null;OpenLayers.Marker.prototype.destroy.apply(this,arguments)},setBorder:function(a,b){a||(a="red");b||(b=2);this.div.style.border=b+"px solid "+a},draw:function(a,b){OpenLayers.Util.modifyDOMElement(this.div,
null,a,b);return this.div},onScreen:function(){var a=false;this.map&&(a=this.map.getExtent().containsBounds(this.bounds,true,true));return a},display:function(a){this.div.style.display=a?"":"none"},CLASS_NAME:"OpenLayers.Marker.Box"});
OpenLayers.Format.Text=OpenLayers.Class(OpenLayers.Format,{defaultStyle:null,extractStyles:true,initialize:function(a){a=a||{};if(a.extractStyles!==false)a.defaultStyle={externalGraphic:OpenLayers.Util.getImagesLocation()+"marker.png",graphicWidth:21,graphicHeight:25,graphicXOffset:-10.5,graphicYOffset:-12.5};OpenLayers.Format.prototype.initialize.apply(this,[a])},read:function(a){for(var a=a.split("\n"),b,c=[],d=0;d<a.length-1;d++){var e=a[d].replace(/^\s*/,"").replace(/\s*$/,"");if(e.charAt(0)!=
"#")if(b){for(var e=e.split("\t"),f=new OpenLayers.Geometry.Point(0,0),g={},h=this.defaultStyle?OpenLayers.Util.applyDefaults({},this.defaultStyle):null,i=false,j=0;j<e.length;j++)if(e[j])if(b[j]=="point")i=e[j].split(","),f.y=parseFloat(i[0]),f.x=parseFloat(i[1]),i=true;else if(b[j]=="lat")f.y=parseFloat(e[j]),i=true;else if(b[j]=="lon")f.x=parseFloat(e[j]),i=true;else if(b[j]=="title")g.title=e[j];else if(b[j]=="image"||b[j]=="icon"&&h)h.externalGraphic=e[j];else if(b[j]=="iconSize"&&h){var k=e[j].split(",");
h.graphicWidth=parseFloat(k[0]);h.graphicHeight=parseFloat(k[1])}else b[j]=="iconOffset"&&h?(k=e[j].split(","),h.graphicXOffset=parseFloat(k[0]),h.graphicYOffset=parseFloat(k[1])):b[j]=="description"?g.description=e[j]:b[j]=="overflow"?g.overflow=e[j]:g[b[j]]=e[j];i&&(this.internalProjection&&this.externalProjection&&f.transform(this.externalProjection,this.internalProjection),e=new OpenLayers.Feature.Vector(f,g,h),c.push(e))}else b=e.split("\t")}return c},CLASS_NAME:"OpenLayers.Format.Text"});
OpenLayers.Layer.Text=OpenLayers.Class(OpenLayers.Layer.Markers,{location:null,features:null,formatOptions:null,selectedFeature:null,initialize:function(a,b){OpenLayers.Layer.Markers.prototype.initialize.apply(this,arguments);this.features=[]},destroy:function(){OpenLayers.Layer.Markers.prototype.destroy.apply(this,arguments);this.clearFeatures();this.features=null},loadText:function(){if(!this.loaded&&this.location!=null)this.events.triggerEvent("loadstart"),OpenLayers.Request.GET({url:this.location,
success:this.parseData,failure:function(){this.events.triggerEvent("loadend")},scope:this}),this.loaded=true},moveTo:function(a,b,c){OpenLayers.Layer.Markers.prototype.moveTo.apply(this,arguments);this.visibility&&!this.loaded&&this.loadText()},parseData:function(a){var a=a.responseText,b={};OpenLayers.Util.extend(b,this.formatOptions);if(this.map&&!this.projection.equals(this.map.getProjectionObject()))b.externalProjection=this.projection,b.internalProjection=this.map.getProjectionObject();for(var a=
(new OpenLayers.Format.Text(b)).read(a),b=0,c=a.length;b<c;b++){var d={},e=a[b],f,g,h;f=new OpenLayers.LonLat(e.geometry.x,e.geometry.y);e.style.graphicWidth&&e.style.graphicHeight&&(g=new OpenLayers.Size(e.style.graphicWidth,e.style.graphicHeight));e.style.graphicXOffset!==void 0&&e.style.graphicYOffset!==void 0&&(h=new OpenLayers.Pixel(e.style.graphicXOffset,e.style.graphicYOffset));e.style.externalGraphic!=null?d.icon=new OpenLayers.Icon(e.style.externalGraphic,g,h):(d.icon=OpenLayers.Marker.defaultIcon(),
g!=null&&d.icon.setSize(g));e.attributes.title!=null&&e.attributes.description!=null&&(d.popupContentHTML="<h2>"+e.attributes.title+"</h2><p>"+e.attributes.description+"</p>");d.overflow=e.attributes.overflow||"auto";d=new OpenLayers.Feature(this,f,d);this.features.push(d);f=d.createMarker();e.attributes.title!=null&&e.attributes.description!=null&&f.events.register("click",d,this.markerClick);this.addMarker(f)}this.events.triggerEvent("loadend")},markerClick:function(a){var b=this==this.layer.selectedFeature;
this.layer.selectedFeature=!b?this:null;for(var c=0,d=this.layer.map.popups.length;c<d;c++)this.layer.map.removePopup(this.layer.map.popups[c]);b||this.layer.map.addPopup(this.createPopup());OpenLayers.Event.stop(a)},clearFeatures:function(){if(this.features!=null)for(;this.features.length>0;){var a=this.features[0];OpenLayers.Util.removeItem(this.features,a);a.destroy()}},CLASS_NAME:"OpenLayers.Layer.Text"});
OpenLayers.Control.Scale=OpenLayers.Class(OpenLayers.Control,{element:null,geodesic:false,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);this.element=OpenLayers.Util.getElement(a)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(!this.element)this.element=document.createElement("div"),this.div.appendChild(this.element);this.map.events.register("moveend",this,this.updateScale);this.updateScale();return this.div},updateScale:function(){var a;
if(this.geodesic===true){if(!this.map.getUnits())return;a=OpenLayers.INCHES_PER_UNIT;a=(this.map.getGeodesicPixelSize().w||1.0E-6)*a.km*OpenLayers.DOTS_PER_INCH}else a=this.map.getScale();if(a)a=a>=9500&&a<=95E4?Math.round(a/1E3)+"K":a>=95E4?Math.round(a/1E6)+"M":Math.round(a),this.element.innerHTML=OpenLayers.i18n("Scale = 1 : ${scaleDenom}",{scaleDenom:a})},CLASS_NAME:"OpenLayers.Control.Scale"});
OpenLayers.Layer.MapGuide=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,useHttpTile:false,singleTile:false,useOverlay:false,useAsyncOverlay:true,TILE_PARAMS:{operation:"GETTILEIMAGE",version:"1.2.0"},SINGLE_TILE_PARAMS:{operation:"GETMAPIMAGE",format:"PNG",locale:"en",clip:"1",version:"1.0.0"},OVERLAY_PARAMS:{operation:"GETDYNAMICMAPOVERLAYIMAGE",format:"PNG",locale:"en",clip:"1",version:"2.0.0"},FOLDER_PARAMS:{tileColumnsPerFolder:30,tileRowsPerFolder:30,format:"png",querystring:null},
defaultSize:new OpenLayers.Size(300,300),tileOriginCorner:"tl",initialize:function(a,b,c,d){OpenLayers.Layer.Grid.prototype.initialize.apply(this,arguments);if(d==null||d.isBaseLayer==null)this.isBaseLayer=this.transparent!="true"&&this.transparent!=true;if(d&&d.useOverlay!=null)this.useOverlay=d.useOverlay;if(this.singleTile)if(this.useOverlay){if(OpenLayers.Util.applyDefaults(this.params,this.OVERLAY_PARAMS),!this.useAsyncOverlay)this.params.version="1.0.0"}else OpenLayers.Util.applyDefaults(this.params,
this.SINGLE_TILE_PARAMS);else this.useHttpTile?OpenLayers.Util.applyDefaults(this.params,this.FOLDER_PARAMS):OpenLayers.Util.applyDefaults(this.params,this.TILE_PARAMS),this.setTileSize(this.defaultSize)},clone:function(a){a==null&&(a=new OpenLayers.Layer.MapGuide(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var b;b=a.getCenterLonLat();var c=this.map.getSize();if(this.singleTile){a={setdisplaydpi:OpenLayers.DOTS_PER_INCH,
setdisplayheight:c.h*this.ratio,setdisplaywidth:c.w*this.ratio,setviewcenterx:b.lon,setviewcentery:b.lat,setviewscale:this.map.getScale()};if(this.useOverlay&&!this.useAsyncOverlay)b={},b=OpenLayers.Util.extend(b,a),b.operation="GETVISIBLEMAPEXTENT",b.version="1.0.0",b.session=this.params.session,b.mapName=this.params.mapName,b.format="text/xml",b=this.getFullRequestString(b),OpenLayers.Request.GET({url:b,async:false});b=this.getFullRequestString(a)}else c=this.map.getResolution(),b=Math.floor((a.left-
this.maxExtent.left)/c),b=Math.round(b/this.tileSize.w),a=Math.floor((this.maxExtent.top-a.top)/c),a=Math.round(a/this.tileSize.h),b=this.useHttpTile?this.getImageFilePath({tilecol:b,tilerow:a,scaleindex:this.resolutions.length-this.map.zoom-1}):this.getFullRequestString({tilecol:b,tilerow:a,scaleindex:this.resolutions.length-this.map.zoom-1});return b},getFullRequestString:function(a,b){var c=b==null?this.url:b;typeof c=="object"&&(c=c[Math.floor(Math.random()*c.length)]);var d=c,e=OpenLayers.Util.extend({},
this.params),e=OpenLayers.Util.extend(e,a),f=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(c)),g;for(g in e)g.toUpperCase()in f&&delete e[g];e=OpenLayers.Util.getParameterString(e);e=e.replace(/,/g,"+");e!=""&&(f=c.charAt(c.length-1),d+=f=="&"||f=="?"?e:c.indexOf("?")==-1?"?"+e:"&"+e);return d},getImageFilePath:function(a,b){var c=b==null?this.url:b;typeof c=="object"&&(c=c[Math.floor(Math.random()*c.length)]);var d="",e="";a.tilerow<0&&(d="-");d+=a.tilerow==0?"0":Math.floor(Math.abs(a.tilerow/
this.params.tileRowsPerFolder))*this.params.tileRowsPerFolder;a.tilecol<0&&(e="-");e+=a.tilecol==0?"0":Math.floor(Math.abs(a.tilecol/this.params.tileColumnsPerFolder))*this.params.tileColumnsPerFolder;d="/S"+Math.floor(a.scaleindex)+"/"+this.params.basemaplayergroupname+"/R"+d+"/C"+e+"/"+a.tilerow%this.params.tileRowsPerFolder+"_"+a.tilecol%this.params.tileColumnsPerFolder+"."+this.params.format;this.params.querystring&&(d+="?"+this.params.querystring);c+=d;return c},calculateGridLayout:function(a,
b,c){var d=c*this.tileSize.w;c*=this.tileSize.h;var e=a.left-b.lon,f=Math.floor(e/d)-this.buffer,a=b.lat-a.top+c,g=Math.floor(a/c)-this.buffer;return{tilelon:d,tilelat:c,tileoffsetlon:b.lon+f*d,tileoffsetlat:b.lat-c*g,tileoffsetx:-(e/d-f)*this.tileSize.w,tileoffsety:(g-a/c)*this.tileSize.h}},CLASS_NAME:"OpenLayers.Layer.MapGuide"});
OpenLayers.Control.Measure=OpenLayers.Class(OpenLayers.Control,{EVENT_TYPES:["measure","measurepartial"],handlerOptions:null,callbacks:null,displaySystem:"metric",geodesic:false,displaySystemUnits:{geographic:["dd"],english:["mi","ft","in"],metric:["km","m"]},partialDelay:300,delayedTrigger:null,persist:false,immediate:false,initialize:function(a,b){this.EVENT_TYPES=OpenLayers.Control.Measure.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);OpenLayers.Control.prototype.initialize.apply(this,
[b]);var c={done:this.measureComplete,point:this.measurePartial};if(this.immediate)c.modify=this.measureImmediate;this.callbacks=OpenLayers.Util.extend(c,this.callbacks);this.handlerOptions=OpenLayers.Util.extend({persist:this.persist},this.handlerOptions);this.handler=new a(this,this.callbacks,this.handlerOptions)},deactivate:function(){this.cancelDelay();return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},cancel:function(){this.cancelDelay();this.handler.cancel()},setImmediate:function(a){(this.immediate=
a)?this.callbacks.modify=this.measureImmediate:delete this.callbacks.modify},updateHandler:function(a,b){var c=this.active;c&&this.deactivate();this.handler=new a(this,this.callbacks,b);c&&this.activate()},measureComplete:function(a){this.cancelDelay();this.measure(a,"measure")},measurePartial:function(a,b){this.cancelDelay();b=b.clone();this.handler.freehandMode(this.handler.evt)?this.measure(b,"measurepartial"):this.delayedTrigger=window.setTimeout(OpenLayers.Function.bind(function(){this.delayedTrigger=
null;this.measure(b,"measurepartial")},this),this.partialDelay)},measureImmediate:function(a,b,c){c&&this.delayedTrigger===null&&!this.handler.freehandMode(this.handler.evt)&&this.measure(b.geometry,"measurepartial")},cancelDelay:function(){if(this.delayedTrigger!==null)window.clearTimeout(this.delayedTrigger),this.delayedTrigger=null},measure:function(a,b){var c,d;a.CLASS_NAME.indexOf("LineString")>-1?(c=this.getBestLength(a),d=1):(c=this.getBestArea(a),d=2);this.events.triggerEvent(b,{measure:c[0],
units:c[1],order:d,geometry:a})},getBestArea:function(a){for(var b=this.displaySystemUnits[this.displaySystem],c,d,e=0,f=b.length;e<f;++e)if(c=b[e],d=this.getArea(a,c),d>1)break;return[d,c]},getArea:function(a,b){var c,d;this.geodesic?(c=a.getGeodesicArea(this.map.getProjectionObject()),d="m"):(c=a.getArea(),d=this.map.getUnits());var e=OpenLayers.INCHES_PER_UNIT[b];e&&(c*=Math.pow(OpenLayers.INCHES_PER_UNIT[d]/e,2));return c},getBestLength:function(a){for(var b=this.displaySystemUnits[this.displaySystem],
c,d,e=0,f=b.length;e<f;++e)if(c=b[e],d=this.getLength(a,c),d>1)break;return[d,c]},getLength:function(a,b){var c,d;this.geodesic?(c=a.getGeodesicLength(this.map.getProjectionObject()),d="m"):(c=a.getLength(),d=this.map.getUnits());var e=OpenLayers.INCHES_PER_UNIT[b];e&&(c*=OpenLayers.INCHES_PER_UNIT[d]/e);return c},CLASS_NAME:"OpenLayers.Control.Measure"});
OpenLayers.Format.WMC.v1_0_0=OpenLayers.Class(OpenLayers.Format.WMC.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd",initialize:function(a){OpenLayers.Format.WMC.v1.prototype.initialize.apply(this,[a])},read_wmc_SRS:function(a,b){var c=this.getChildValue(b);if(typeof a.projections!="object")a.projections={};for(var c=c.split(/ +/),d=0,e=c.length;d<e;d++)a.projections[c[d]]=true},write_wmc_Layer:function(a){var b=OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(this,
[a]);if(a.srs){var c=[],d;for(d in a.srs)c.push(d);b.appendChild(this.createElementDefaultNS("SRS",c.join(" ")))}b.appendChild(this.write_wmc_FormatList(a));b.appendChild(this.write_wmc_StyleList(a));a.dimensions&&b.appendChild(this.write_wmc_DimensionList(a));b.appendChild(this.write_wmc_LayerExtension(a))},CLASS_NAME:"OpenLayers.Format.WMC.v1_0_0"});
OpenLayers.Format.WMTSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.OWSCommon.v1_1_0,{version:"1.0.0",namespaces:{ows:"http://www.opengis.net/ows/1.1",wmts:"http://www.opengis.net/wmts/1.0",xlink:"http://www.w3.org/1999/xlink"},yx:null,defaultPrefix:"wmts",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.options=a;a=OpenLayers.Util.extend({},OpenLayers.Format.WMTSCapabilities.prototype.yx);this.yx=OpenLayers.Util.extend(a,this.yx)},read:function(a){typeof a==
"string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,b);b.version=this.version;return b},readers:{wmts:{Capabilities:function(a,b){this.readChildNodes(a,b)},Contents:function(a,b){b.contents={};b.contents.layers=[];b.contents.tileMatrixSets={};this.readChildNodes(a,b.contents)},Layer:function(a,b){var c={styles:[],formats:[],tileMatrixSetLinks:[],layers:[]};this.readChildNodes(a,c);b.layers.push(c)},Style:function(a,b){var c=
{};c.isDefault=a.getAttribute("isDefault")==="true";this.readChildNodes(a,c);b.styles.push(c)},Format:function(a,b){b.formats.push(this.getChildValue(a))},TileMatrixSetLink:function(a,b){var c={};this.readChildNodes(a,c);b.tileMatrixSetLinks.push(c)},TileMatrixSet:function(a,b){if(b.layers){var c={matrixIds:[]};this.readChildNodes(a,c);b.tileMatrixSets[c.identifier]=c}else b.tileMatrixSet=this.getChildValue(a)},TileMatrix:function(a,b){var c={supportedCRS:b.supportedCRS};this.readChildNodes(a,c);
b.matrixIds.push(c)},ScaleDenominator:function(a,b){b.scaleDenominator=parseFloat(this.getChildValue(a))},TopLeftCorner:function(a,b){var c=this.getChildValue(a).split(" "),d;b.supportedCRS&&(d=!!this.yx[b.supportedCRS.replace(/urn:ogc:def:crs:(\w+):.+:(\w+)$/,"urn:ogc:def:crs:$1::$2")]);b.topLeftCorner=d?new OpenLayers.LonLat(c[1],c[0]):new OpenLayers.LonLat(c[0],c[1])},TileWidth:function(a,b){b.tileWidth=parseInt(this.getChildValue(a))},TileHeight:function(a,b){b.tileHeight=parseInt(this.getChildValue(a))},
MatrixWidth:function(a,b){b.matrixWidth=parseInt(this.getChildValue(a))},MatrixHeight:function(a,b){b.matrixHeight=parseInt(this.getChildValue(a))},ResourceURL:function(a,b){b.resourceUrl=b.resourceUrl||{};b.resourceUrl[a.getAttribute("resourceType")]={format:a.getAttribute("format"),template:a.getAttribute("template")}},WSDL:function(a,b){b.wsdl={};b.wsdl.href=a.getAttribute("xlink:href")},ServiceMetadataURL:function(a,b){b.serviceMetadataUrl={};b.serviceMetadataUrl.href=a.getAttribute("xlink:href")}},
ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WMTSCapabilities.v1_0_0"});
OpenLayers.Popup.FramedCloud=OpenLayers.Class(OpenLayers.Popup.Framed,{contentDisplayClass:"olFramedCloudPopupContent",autoSize:true,panMapIfOutOfView:true,imageSize:new OpenLayers.Size(1276,736),isAlphaImage:false,fixedRelativePosition:false,positionBlocks:{tl:{offset:new OpenLayers.Pixel(44,0),padding:new OpenLayers.Bounds(8,40,8,9),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,51,22,0),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,
50,0,0),position:new OpenLayers.Pixel(-1238,0)},{size:new OpenLayers.Size("auto",19),anchor:new OpenLayers.Bounds(0,32,22,null),position:new OpenLayers.Pixel(0,-631)},{size:new OpenLayers.Size(22,18),anchor:new OpenLayers.Bounds(null,32,0,null),position:new OpenLayers.Pixel(-1238,-632)},{size:new OpenLayers.Size(81,35),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(0,-688)}]},tr:{offset:new OpenLayers.Pixel(-45,0),padding:new OpenLayers.Bounds(8,40,8,9),blocks:[{size:new OpenLayers.Size("auto",
"auto"),anchor:new OpenLayers.Bounds(0,51,22,0),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,50,0,0),position:new OpenLayers.Pixel(-1238,0)},{size:new OpenLayers.Size("auto",19),anchor:new OpenLayers.Bounds(0,32,22,null),position:new OpenLayers.Pixel(0,-631)},{size:new OpenLayers.Size(22,19),anchor:new OpenLayers.Bounds(null,32,0,null),position:new OpenLayers.Pixel(-1238,-631)},{size:new OpenLayers.Size(81,35),anchor:new OpenLayers.Bounds(0,
0,null,null),position:new OpenLayers.Pixel(-215,-687)}]},bl:{offset:new OpenLayers.Pixel(45,0),padding:new OpenLayers.Bounds(8,9,8,40),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,21,22,32),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,21,0,32),position:new OpenLayers.Pixel(-1238,0)},{size:new OpenLayers.Size("auto",21),anchor:new OpenLayers.Bounds(0,0,22,null),position:new OpenLayers.Pixel(0,-629)},{size:new OpenLayers.Size(22,
21),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(-1238,-629)},{size:new OpenLayers.Size(81,33),anchor:new OpenLayers.Bounds(null,null,0,0),position:new OpenLayers.Pixel(-101,-674)}]},br:{offset:new OpenLayers.Pixel(-44,0),padding:new OpenLayers.Bounds(8,9,8,40),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,21,22,32),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,21,0,32),position:new OpenLayers.Pixel(-1238,
0)},{size:new OpenLayers.Size("auto",21),anchor:new OpenLayers.Bounds(0,0,22,null),position:new OpenLayers.Pixel(0,-629)},{size:new OpenLayers.Size(22,21),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(-1238,-629)},{size:new OpenLayers.Size(81,33),anchor:new OpenLayers.Bounds(0,null,null,0),position:new OpenLayers.Pixel(-311,-674)}]}},minSize:new OpenLayers.Size(105,10),maxSize:new OpenLayers.Size(1200,660),initialize:function(a,b,c,d,e,f,g){this.imageSrc=OpenLayers.Util.getImagesLocation()+
"cloud-popup-relative.png";OpenLayers.Popup.Framed.prototype.initialize.apply(this,arguments);this.contentDiv.className=this.contentDisplayClass},destroy:function(){OpenLayers.Popup.Framed.prototype.destroy.apply(this,arguments)},CLASS_NAME:"OpenLayers.Popup.FramedCloud"});
OpenLayers.Geometry.Rectangle=OpenLayers.Class(OpenLayers.Geometry,{x:null,y:null,width:null,height:null,initialize:function(a,b,c,d){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);this.x=a;this.y=b;this.width=c;this.height=d},calculateBounds:function(){this.bounds=new OpenLayers.Bounds(this.x,this.y,this.x+this.width,this.y+this.height)},getLength:function(){return 2*this.width+2*this.height},getArea:function(){return this.width*this.height},CLASS_NAME:"OpenLayers.Geometry.Rectangle"});
OpenLayers.Tile.WFS=OpenLayers.Class(OpenLayers.Tile,{features:null,url:null,request:null,initialize:function(a,b,c,d,e){OpenLayers.Tile.prototype.initialize.apply(this,arguments);this.url=d;this.features=[]},destroy:function(){OpenLayers.Tile.prototype.destroy.apply(this,arguments);this.destroyAllFeatures();this.url=this.features=null;if(this.request)this.request.abort(),this.request=null},clear:function(){this.destroyAllFeatures()},draw:function(){if(OpenLayers.Tile.prototype.draw.apply(this,arguments))this.isLoading?
this.events.triggerEvent("reload"):(this.isLoading=true,this.events.triggerEvent("loadstart")),this.loadFeaturesForRegion(this.requestSuccess)},loadFeaturesForRegion:function(a,b){this.request&&this.request.abort();this.request=OpenLayers.Request.GET({url:this.url,success:a,failure:b,scope:this})},requestSuccess:function(a){if(this.features){var b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;this.layer.vectorMode?this.layer.addFeatures(this.layer.formatObject.read(b)):(a=new OpenLayers.Format.XML,
typeof b=="string"&&(b=a.read(b)),this.addResults(a.getElementsByTagNameNS(b,"http://www.opengis.net/gml","featureMember")))}this.events&&this.events.triggerEvent("loadend");this.request=null},addResults:function(a){for(var b=0;b<a.length;b++)this.features.push(new this.layer.featureClass(this.layer,a[b]))},destroyAllFeatures:function(){for(;this.features.length>0;)this.features.shift().destroy()},CLASS_NAME:"OpenLayers.Tile.WFS"});
OpenLayers.Format.SOSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.SOSCapabilities,{namespaces:{ows:"http://www.opengis.net/ows/1.1",sos:"http://www.opengis.net/sos/1.0",gml:"http://www.opengis.net/gml",xlink:"http://www.w3.org/1999/xlink"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);this.options=a},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,
[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,b);return b},readers:{gml:OpenLayers.Util.applyDefaults({name:function(a,b){b.name=this.getChildValue(a)},TimePeriod:function(a,b){b.timePeriod={};this.readChildNodes(a,b.timePeriod)},beginPosition:function(a,b){b.beginPosition=this.getChildValue(a)},endPosition:function(a,b){b.endPosition=this.getChildValue(a)}},OpenLayers.Format.GML.v3.prototype.readers.gml),sos:{Capabilities:function(a,b){this.readChildNodes(a,b)},Contents:function(a,
b){b.contents={};this.readChildNodes(a,b.contents)},ObservationOfferingList:function(a,b){b.offeringList={};this.readChildNodes(a,b.offeringList)},ObservationOffering:function(a,b){var c=this.getAttributeNS(a,this.namespaces.gml,"id");b[c]={procedures:[],observedProperties:[],featureOfInterestIds:[],responseFormats:[],resultModels:[],responseModes:[]};this.readChildNodes(a,b[c])},time:function(a,b){b.time={};this.readChildNodes(a,b.time)},procedure:function(a,b){b.procedures.push(this.getAttributeNS(a,
this.namespaces.xlink,"href"))},observedProperty:function(a,b){b.observedProperties.push(this.getAttributeNS(a,this.namespaces.xlink,"href"))},featureOfInterest:function(a,b){b.featureOfInterestIds.push(this.getAttributeNS(a,this.namespaces.xlink,"href"))},responseFormat:function(a,b){b.responseFormats.push(this.getChildValue(a))},resultModel:function(a,b){b.resultModels.push(this.getChildValue(a))},responseMode:function(a,b){b.responseModes.push(this.getChildValue(a))}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},
CLASS_NAME:"OpenLayers.Format.SOSCapabilities.v1_0_0"});
OpenLayers.Handler.Pinch=OpenLayers.Class(OpenLayers.Handler,{started:false,stopDown:false,pinching:false,last:null,start:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments)},touchstart:function(a){var b=true;this.pinching=false;OpenLayers.Event.isMultiTouch(a)?(this.started=true,this.last=this.start={distance:this.getDistance(a.touches),delta:0,scale:1},this.callback("start",[a,this.start]),b=!this.stopDown):(this.started=false,this.last=this.start=null);
OpenLayers.Event.stop(a);return b},touchmove:function(a){if(this.started&&OpenLayers.Event.isMultiTouch(a)){this.pinching=true;var b=this.getPinchData(a);this.callback("move",[a,b]);this.last=b;OpenLayers.Event.stop(a)}return true},touchend:function(a){if(this.started)this.pinching=this.started=false,this.callback("done",[a,this.start,this.last]),this.last=this.start=null;return true},activate:function(){var a=false;if(OpenLayers.Handler.prototype.activate.apply(this,arguments))this.pinching=false,
a=true;return a},deactivate:function(){var a=false;if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments))this.pinching=this.started=false,this.last=this.start=null,a=true;return a},getDistance:function(a){var b=a[0],a=a[1];return Math.sqrt(Math.pow(b.clientX-a.clientX,2)+Math.pow(b.clientY-a.clientY,2))},getPinchData:function(a){a=this.getDistance(a.touches);return{distance:a,delta:this.last.distance-a,scale:a/this.start.distance}},CLASS_NAME:"OpenLayers.Handler.Pinch"});
OpenLayers.Control.MouseDefaults=OpenLayers.Class(OpenLayers.Control,{performedDrag:false,wheelObserver:null,initialize:function(){OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.handler&&this.handler.destroy();this.handler=null;this.map.events.un({click:this.defaultClick,dblclick:this.defaultDblClick,mousedown:this.defaultMouseDown,mouseup:this.defaultMouseUp,mousemove:this.defaultMouseMove,mouseout:this.defaultMouseOut,scope:this});OpenLayers.Event.stopObserving(window,
"DOMMouseScroll",this.wheelObserver);OpenLayers.Event.stopObserving(window,"mousewheel",this.wheelObserver);OpenLayers.Event.stopObserving(document,"mousewheel",this.wheelObserver);this.wheelObserver=null;OpenLayers.Control.prototype.destroy.apply(this,arguments)},draw:function(){this.map.events.on({click:this.defaultClick,dblclick:this.defaultDblClick,mousedown:this.defaultMouseDown,mouseup:this.defaultMouseUp,mousemove:this.defaultMouseMove,mouseout:this.defaultMouseOut,scope:this});this.registerWheelEvents()},
registerWheelEvents:function(){this.wheelObserver=OpenLayers.Function.bindAsEventListener(this.onWheelEvent,this);OpenLayers.Event.observe(window,"DOMMouseScroll",this.wheelObserver);OpenLayers.Event.observe(window,"mousewheel",this.wheelObserver);OpenLayers.Event.observe(document,"mousewheel",this.wheelObserver)},defaultClick:function(a){if(OpenLayers.Event.isLeftClick(a))return a=!this.performedDrag,this.performedDrag=false,a},defaultDblClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),
this.map.zoom+1);OpenLayers.Event.stop(a);return false},defaultMouseDown:function(a){if(OpenLayers.Event.isLeftClick(a)){this.mouseDragStart=a.xy.clone();this.performedDrag=false;if(a.shiftKey)this.map.div.style.cursor="crosshair",this.zoomBox=OpenLayers.Util.createDiv("zoomBox",this.mouseDragStart,null,null,"absolute","2px solid red"),this.zoomBox.style.backgroundColor="white",this.zoomBox.style.filter="alpha(opacity=50)",this.zoomBox.style.opacity="0.50",this.zoomBox.style.fontSize="1px",this.zoomBox.style.zIndex=
this.map.Z_INDEX_BASE.Popup-1,this.map.eventsDiv.appendChild(this.zoomBox);document.onselectstart=OpenLayers.Function.False;OpenLayers.Event.stop(a)}},defaultMouseMove:function(a){this.mousePosition=a.xy.clone();if(this.mouseDragStart!=null){if(this.zoomBox){var b=Math.abs(this.mouseDragStart.x-a.xy.x),c=Math.abs(this.mouseDragStart.y-a.xy.y);this.zoomBox.style.width=Math.max(1,b)+"px";this.zoomBox.style.height=Math.max(1,c)+"px";if(a.xy.x<this.mouseDragStart.x)this.zoomBox.style.left=a.xy.x+"px";
if(a.xy.y<this.mouseDragStart.y)this.zoomBox.style.top=a.xy.y+"px"}else{var b=this.mouseDragStart.x-a.xy.x,c=this.mouseDragStart.y-a.xy.y,d=this.map.getSize();this.map.setCenter(this.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(d.w/2+b,d.h/2+c)),null,true);this.mouseDragStart=a.xy.clone();this.map.div.style.cursor="move"}this.performedDrag=true}},defaultMouseUp:function(a){if(OpenLayers.Event.isLeftClick(a))this.zoomBox?this.zoomBoxEnd(a):this.performedDrag&&this.map.setCenter(this.map.center),
this.mouseDragStart=document.onselectstart=null,this.map.div.style.cursor=""},defaultMouseOut:function(a){if(this.mouseDragStart!=null&&OpenLayers.Util.mouseLeft(a,this.map.eventsDiv))this.zoomBox&&this.removeZoomBox(),this.mouseDragStart=null},defaultWheelUp:function(a){this.map.getZoom()<=this.map.getNumZoomLevels()&&this.map.setCenter(this.map.getLonLatFromPixel(a.xy),this.map.getZoom()+1)},defaultWheelDown:function(a){this.map.getZoom()>0&&this.map.setCenter(this.map.getLonLatFromPixel(a.xy),
this.map.getZoom()-1)},zoomBoxEnd:function(a){if(this.mouseDragStart!=null){if(Math.abs(this.mouseDragStart.x-a.xy.x)>5||Math.abs(this.mouseDragStart.y-a.xy.y)>5){var b=this.map.getLonLatFromViewPortPx(this.mouseDragStart),c=this.map.getLonLatFromViewPortPx(a.xy),a=Math.max(b.lat,c.lat),d=Math.min(b.lat,c.lat),e=Math.min(b.lon,c.lon),b=Math.max(b.lon,c.lon);this.map.zoomToExtent(new OpenLayers.Bounds(e,d,b,a))}else c=this.map.getLonLatFromViewPortPx(a.xy),this.map.setCenter(new OpenLayers.LonLat(c.lon,
c.lat),this.map.getZoom()+1);this.removeZoomBox()}},removeZoomBox:function(){this.map.eventsDiv.removeChild(this.zoomBox);this.zoomBox=null},onWheelEvent:function(a){for(var b=false,c=OpenLayers.Event.element(a);c!=null;){if(this.map&&c==this.map.div){b=true;break}c=c.parentNode}if(b){b=0;if(!a)a=window.event;a.wheelDelta?(b=a.wheelDelta/120,window.opera&&window.opera.version()<9.2&&(b=-b)):a.detail&&(b=-a.detail/3);if(b)a.xy=this.mousePosition,b<0?this.defaultWheelDown(a):this.defaultWheelUp(a);
OpenLayers.Event.stop(a)}},CLASS_NAME:"OpenLayers.Control.MouseDefaults"});
OpenLayers.Strategy.Refresh=OpenLayers.Class(OpenLayers.Strategy,{force:false,interval:0,timer:null,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);a&&(this.layer.visibility===true&&this.start(),this.layer.events.on({visibilitychanged:this.reset,scope:this}));return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&this.stop();return a},reset:function(){this.layer.visibility===true?this.start():this.stop()},start:function(){if(this.interval&&
typeof this.interval==="number"&&this.interval>0)this.timer=window.setInterval(OpenLayers.Function.bind(this.refresh,this),this.interval)},refresh:function(){this.layer&&this.layer.refresh&&typeof this.layer.refresh=="function"&&this.layer.refresh({force:this.force})},stop:function(){if(this.timer!==null)window.clearInterval(this.timer),this.timer=null},CLASS_NAME:"OpenLayers.Strategy.Refresh"});
OpenLayers.Control.Geolocate=OpenLayers.Class(OpenLayers.Control,{EVENT_TYPES:["locationupdated","locationfailed","locationuncapable"],geolocation:navigator.geolocation,bind:true,watch:false,geolocationOptions:null,initialize:function(a){this.EVENT_TYPES=OpenLayers.Control.Geolocate.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);this.geolocationOptions={};OpenLayers.Control.prototype.initialize.apply(this,[a])},destroy:function(){this.deactivate();OpenLayers.Control.prototype.destroy.apply(this,
arguments)},activate:function(){if(!this.geolocation)return this.events.triggerEvent("locationuncapable"),false;return OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.watch?this.watchId=this.geolocation.watchPosition(OpenLayers.Function.bind(this.geolocate,this),OpenLayers.Function.bind(this.failure,this),this.geolocationOptions):this.getCurrentLocation(),true):false},deactivate:function(){this.active&&this.watchId!==null&&this.geolocation.clearWatch(this.watchId);return OpenLayers.Control.prototype.deactivate.apply(this,
arguments)},geolocate:function(a){var b=(new OpenLayers.LonLat(a.coords.longitude,a.coords.latitude)).transform(new OpenLayers.Projection("EPSG:4326"),this.map.getProjectionObject());this.bind&&this.map.setCenter(b);this.events.triggerEvent("locationupdated",{position:a,point:new OpenLayers.Geometry.Point(b.lon,b.lat)})},getCurrentLocation:function(){if(!this.active||this.watch)return false;this.geolocation.getCurrentPosition(OpenLayers.Function.bind(this.geolocate,this),OpenLayers.Function.bind(this.failure,
this),this.geolocationOptions);return true},failure:function(a){this.events.triggerEvent("locationfailed",{error:a})},CLASS_NAME:"OpenLayers.Control.Geolocate"});
OpenLayers.Layer.ArcGIS93Rest=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{format:"png"},isBaseLayer:true,initialize:function(a,b,c,d){var e=[],c=OpenLayers.Util.upperCaseObject(c);e.push(a,b,c,d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);OpenLayers.Util.applyDefaults(this.params,OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS));if(this.params.TRANSPARENT&&this.params.TRANSPARENT.toString().toLowerCase()=="true"){if(d==null||!d.isBaseLayer)this.isBaseLayer=false;if(this.params.FORMAT==
"jpg")this.params.FORMAT=OpenLayers.Util.alphaHack()?"gif":"png"}},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)},clone:function(a){a==null&&(a=new OpenLayers.Layer.ArcGIS93Rest(this.name,this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),b=this.projection.getCode().split(":"),b=b[b.length-1],c=this.getImageSize(),a={BBOX:a.toBBOX(),SIZE:c.w+","+c.h,F:"image",BBOXSR:b,
IMAGESR:b};if(this.layerDefs){var b=[],d;for(d in this.layerDefs)this.layerDefs.hasOwnProperty(d)&&this.layerDefs[d]&&(b.push(d),b.push(":"),b.push(this.layerDefs[d]),b.push(";"));b.length>0&&(a.LAYERDEFS=b.join(""))}return this.getFullRequestString(a)},setLayerFilter:function(a,b){if(!this.layerDefs)this.layerDefs={};b?this.layerDefs[a]=b:delete this.layerDefs[a]},clearLayerFilter:function(a){a?delete this.layerDefs[a]:delete this.layerDefs},mergeNewParams:function(a){a=[OpenLayers.Util.upperCaseObject(a)];
return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,a)},CLASS_NAME:"OpenLayers.Layer.ArcGIS93Rest"});
OpenLayers.Layer.MapServer=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{mode:"map",map_imagetype:"png"},initialize:function(a,b,c,d){var e=[];e.push(a,b,c,d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS);if(d==null||d.isBaseLayer==null)this.isBaseLayer=this.params.transparent!="true"&&this.params.transparent!=true},clone:function(a){a==null&&(a=new OpenLayers.Layer.MapServer(this.name,this.url,this.params,
this.getOptions()));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),a=[a.left,a.bottom,a.right,a.top],b=this.getImageSize();return this.getFullRequestString({mapext:a,imgext:a,map_size:[b.w,b.h],imgx:b.w/2,imgy:b.h/2,imgxy:[b.w,b.h]})},getFullRequestString:function(a,b){var c=b==null?this.url:b,d=OpenLayers.Util.extend({},this.params),d=OpenLayers.Util.extend(d,a),e=OpenLayers.Util.getParameterString(d);OpenLayers.Util.isArray(c)&&(c=this.selectUrl(e,
c));var e=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(c)),f;for(f in d)f.toUpperCase()in e&&delete d[f];e=OpenLayers.Util.getParameterString(d);d=c;e=e.replace(/,/g,"+");e!=""&&(f=c.charAt(c.length-1),d+=f=="&"||f=="?"?e:c.indexOf("?")==-1?"?"+e:"&"+e);return d},CLASS_NAME:"OpenLayers.Layer.MapServer"});
OpenLayers.Layer.MapServer.Untiled=OpenLayers.Class(OpenLayers.Layer.MapServer,{singleTile:true,initialize:function(a,b,c,d){OpenLayers.Layer.MapServer.prototype.initialize.apply(this,arguments);OpenLayers.Console.warn("The OpenLayers.Layer.MapServer.Untiled class is deprecated and will be removed in 3.0. Instead, you should use the normal OpenLayers.Layer.MapServer class, passing it the option 'singleTile' as true.")},clone:function(a){a==null&&(a=new OpenLayers.Layer.MapServer.Untiled(this.name,
this.url,this.params,this.getOptions()));return a=OpenLayers.Layer.MapServer.prototype.clone.apply(this,[a])},CLASS_NAME:"OpenLayers.Layer.MapServer.Untiled"});
OpenLayers.Handler.Hover=OpenLayers.Class(OpenLayers.Handler,{delay:500,pixelTolerance:null,stopMove:false,px:null,timerId:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments)},mousemove:function(a){if(this.passesTolerance(a.xy))this.clearTimer(),this.callback("move",[a]),this.px=a.xy,a=OpenLayers.Util.extend({},a),this.timerId=window.setTimeout(OpenLayers.Function.bind(this.delayedCall,this,a),this.delay);return!this.stopMove},mouseout:function(a){OpenLayers.Util.mouseLeft(a,
this.map.eventsDiv)&&(this.clearTimer(),this.callback("move",[a]));return true},passesTolerance:function(a){var b=true;this.pixelTolerance&&this.px&&Math.sqrt(Math.pow(this.px.x-a.x,2)+Math.pow(this.px.y-a.y,2))<this.pixelTolerance&&(b=false);return b},clearTimer:function(){if(this.timerId!=null)window.clearTimeout(this.timerId),this.timerId=null},delayedCall:function(a){this.callback("pause",[a])},deactivate:function(){var a=false;OpenLayers.Handler.prototype.deactivate.apply(this,arguments)&&(this.clearTimer(),
a=true);return a},CLASS_NAME:"OpenLayers.Handler.Hover"});
OpenLayers.Control.GetFeature=OpenLayers.Class(OpenLayers.Control,{protocol:null,multipleKey:null,toggleKey:null,modifiers:null,multiple:false,click:true,single:true,clickout:true,toggle:false,clickTolerance:5,hover:false,box:false,maxFeatures:10,features:null,hoverFeature:null,handlerOptions:null,handlers:null,hoverResponse:null,filterType:OpenLayers.Filter.Spatial.BBOX,EVENT_TYPES:"featureselected,featuresselected,featureunselected,clickout,beforefeatureselected,beforefeaturesselected,hoverfeature,outfeature".split(","),initialize:function(a){this.EVENT_TYPES=
OpenLayers.Control.GetFeature.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);a.handlerOptions=a.handlerOptions||{};OpenLayers.Control.prototype.initialize.apply(this,[a]);this.features={};this.handlers={};if(this.click)this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.selectClick},this.handlerOptions.click||{});if(this.box)this.handlers.box=new OpenLayers.Handler.Box(this,{done:this.selectBox},OpenLayers.Util.extend(this.handlerOptions.box,{boxDivClassName:"olHandlerBoxSelectFeature"}));
if(this.hover)this.handlers.hover=new OpenLayers.Handler.Hover(this,{move:this.cancelHover,pause:this.selectHover},OpenLayers.Util.extend(this.handlerOptions.hover,{delay:250}))},activate:function(){if(!this.active)for(var a in this.handlers)this.handlers[a].activate();return OpenLayers.Control.prototype.activate.apply(this,arguments)},deactivate:function(){if(this.active)for(var a in this.handlers)this.handlers[a].deactivate();return OpenLayers.Control.prototype.deactivate.apply(this,arguments)},
selectClick:function(a){var b=this.pixelToBounds(a.xy);this.setModifiers(a);this.request(b,{single:this.single})},selectBox:function(a){var b;if(a instanceof OpenLayers.Bounds)b=this.map.getLonLatFromPixel(new OpenLayers.Pixel(a.left,a.bottom)),a=this.map.getLonLatFromPixel(new OpenLayers.Pixel(a.right,a.top)),b=new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat);else{if(this.click)return;b=this.pixelToBounds(a)}this.setModifiers(this.handlers.box.dragHandler.evt);this.request(b)},selectHover:function(a){this.request(this.pixelToBounds(a.xy),
{single:true,hover:true})},cancelHover:function(){if(this.hoverResponse)this.protocol.abort(this.hoverResponse),this.hoverResponse=null,OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait")},request:function(a,b){var b=b||{},c=new OpenLayers.Filter.Spatial({type:this.filterType,value:a});OpenLayers.Element.addClass(this.map.viewPortDiv,"olCursorWait");c=this.protocol.read({maxFeatures:b.single==true?this.maxFeatures:void 0,filter:c,callback:function(c){c.success()&&(c.features.length?
b.single==true?this.selectBestFeature(c.features,a.getCenterLonLat(),b):this.select(c.features):b.hover?this.hoverSelect():(this.events.triggerEvent("clickout"),this.clickout&&this.unselectAll()));OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait")},scope:this});if(b.hover==true)this.hoverResponse=c},selectBestFeature:function(a,b,c){c=c||{};if(a.length){for(var b=new OpenLayers.Geometry.Point(b.lon,b.lat),d,e,f,g=Number.MAX_VALUE,h=0;h<a.length;++h)if(d=a[h],d.geometry&&(f=b.distanceTo(d.geometry,
{edge:false}),f<g&&(g=f,e=d,g==0)))break;c.hover==true?this.hoverSelect(e):this.select(e||a)}},setModifiers:function(a){this.modifiers={multiple:this.multiple||this.multipleKey&&a[this.multipleKey],toggle:this.toggle||this.toggleKey&&a[this.toggleKey]}},select:function(a){!this.modifiers.multiple&&!this.modifiers.toggle&&this.unselectAll();OpenLayers.Util.isArray(a)||(a=[a]);var b=this.events.triggerEvent("beforefeaturesselected",{features:a});if(b!==false){for(var c=[],d,e=0,f=a.length;e<f;++e)d=
a[e],this.features[d.fid||d.id]?this.modifiers.toggle&&this.unselect(this.features[d.fid||d.id]):(b=this.events.triggerEvent("beforefeatureselected",{feature:d}),b!==false&&(this.features[d.fid||d.id]=d,c.push(d),this.events.triggerEvent("featureselected",{feature:d})));this.events.triggerEvent("featuresselected",{features:c})}},hoverSelect:function(a){var b=a?a.fid||a.id:null,c=this.hoverFeature?this.hoverFeature.fid||this.hoverFeature.id:null;if(c&&c!=b)this.events.triggerEvent("outfeature",{feature:this.hoverFeature}),
this.hoverFeature=null;if(b&&b!=c)this.events.triggerEvent("hoverfeature",{feature:a}),this.hoverFeature=a},unselect:function(a){delete this.features[a.fid||a.id];this.events.triggerEvent("featureunselected",{feature:a})},unselectAll:function(){for(var a in this.features)this.unselect(this.features[a])},setMap:function(a){for(var b in this.handlers)this.handlers[b].setMap(a);OpenLayers.Control.prototype.setMap.apply(this,arguments)},pixelToBounds:function(a){var b=a.add(-this.clickTolerance/2,this.clickTolerance/
2),a=a.add(this.clickTolerance/2,-this.clickTolerance/2),b=this.map.getLonLatFromPixel(b),a=this.map.getLonLatFromPixel(a);return new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat)},CLASS_NAME:"OpenLayers.Control.GetFeature"});
OpenLayers.Format.QueryStringFilter=function(){function a(a){a=a.replace(/%/g,"\\%");a=a.replace(/\\\\\.(\*)?/g,function(a,b){return b?a:"\\\\_"});a=a.replace(/\\\\\.\*/g,"\\\\%");a=a.replace(/(\\)?\.(\*)?/g,function(a,b,c){return b||c?a:"_"});a=a.replace(/(\\)?\.\*/g,function(a,b){return b?a:"%"});a=a.replace(/\\\./g,".");return a=a.replace(/(\\)?\\\*/g,function(a,b){return b?a:"*"})}var b={};b[OpenLayers.Filter.Comparison.EQUAL_TO]="eq";b[OpenLayers.Filter.Comparison.NOT_EQUAL_TO]="ne";b[OpenLayers.Filter.Comparison.LESS_THAN]=
"lt";b[OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO]="lte";b[OpenLayers.Filter.Comparison.GREATER_THAN]="gt";b[OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO]="gte";b[OpenLayers.Filter.Comparison.LIKE]="ilike";return OpenLayers.Class(OpenLayers.Format,{wildcarded:false,srsInBBOX:false,write:function(c,d){var d=d||{},e=c.CLASS_NAME,e=e.substring(e.lastIndexOf(".")+1);switch(e){case "Spatial":switch(c.type){case OpenLayers.Filter.Spatial.BBOX:d.bbox=c.value.toArray();this.srsInBBOX&&c.projection&&
d.bbox.push(c.projection.getCode());break;case OpenLayers.Filter.Spatial.DWITHIN:d.tolerance=c.distance;case OpenLayers.Filter.Spatial.WITHIN:d.lon=c.value.x;d.lat=c.value.y;break;default:OpenLayers.Console.warn("Unknown spatial filter type "+c.type)}break;case "Comparison":e=b[c.type];if(e!==void 0){var f=c.value;c.type==OpenLayers.Filter.Comparison.LIKE&&(f=a(f),this.wildcarded&&(f="%"+f+"%"));d[c.property+"__"+e]=f;d.queryable=d.queryable||[];d.queryable.push(c.property)}else OpenLayers.Console.warn("Unknown comparison filter type "+
c.type);break;case "Logical":if(c.type===OpenLayers.Filter.Logical.AND){e=0;for(f=c.filters.length;e<f;e++)d=this.write(c.filters[e],d)}else OpenLayers.Console.warn("Unsupported logical filter type "+c.type);break;default:OpenLayers.Console.warn("Unknown filter type "+e)}return d},CLASS_NAME:"OpenLayers.Format.QueryStringFilter"})}();OpenLayers.Rico=OpenLayers.Rico||{};
OpenLayers.Rico.Color=OpenLayers.Class({initialize:function(a,b,c){this.rgb={r:a,g:b,b:c}},setRed:function(a){this.rgb.r=a},setGreen:function(a){this.rgb.g=a},setBlue:function(a){this.rgb.b=a},setHue:function(a){var b=this.asHSB();b.h=a;this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,b.b)},setSaturation:function(a){var b=this.asHSB();b.s=a;this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,b.b)},setBrightness:function(a){var b=this.asHSB();b.b=a;this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,b.b)},
darken:function(a){var b=this.asHSB();this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,Math.max(b.b-a,0))},brighten:function(a){var b=this.asHSB();this.rgb=OpenLayers.Rico.Color.HSBtoRGB(b.h,b.s,Math.min(b.b+a,1))},blend:function(a){this.rgb.r=Math.floor((this.rgb.r+a.rgb.r)/2);this.rgb.g=Math.floor((this.rgb.g+a.rgb.g)/2);this.rgb.b=Math.floor((this.rgb.b+a.rgb.b)/2)},isBright:function(){this.asHSB();return this.asHSB().b>0.5},isDark:function(){return!this.isBright()},asRGB:function(){return"rgb("+
this.rgb.r+","+this.rgb.g+","+this.rgb.b+")"},asHex:function(){return"#"+this.rgb.r.toColorPart()+this.rgb.g.toColorPart()+this.rgb.b.toColorPart()},asHSB:function(){return OpenLayers.Rico.Color.RGBtoHSB(this.rgb.r,this.rgb.g,this.rgb.b)},toString:function(){return this.asHex()}});
OpenLayers.Rico.Color.createFromHex=function(a){if(a.length==4)for(var b=a,a="#",c=1;c<4;c++)a+=b.charAt(c)+b.charAt(c);a.indexOf("#")==0&&(a=a.substring(1));b=a.substring(0,2);c=a.substring(2,4);a=a.substring(4,6);return new OpenLayers.Rico.Color(parseInt(b,16),parseInt(c,16),parseInt(a,16))};
OpenLayers.Rico.Color.createColorFromBackground=function(a){var b=OpenLayers.Element.getStyle(OpenLayers.Util.getElement(a),"backgroundColor");if(b=="transparent"&&a.parentNode)return OpenLayers.Rico.Color.createColorFromBackground(a.parentNode);return b==null?new OpenLayers.Rico.Color(255,255,255):b.indexOf("rgb(")==0?(a=b.substring(4,b.length-1).split(","),new OpenLayers.Rico.Color(parseInt(a[0]),parseInt(a[1]),parseInt(a[2]))):b.indexOf("#")==0?OpenLayers.Rico.Color.createFromHex(b):new OpenLayers.Rico.Color(255,
255,255)};
OpenLayers.Rico.Color.HSBtoRGB=function(a,b,c){var d=0,e=0,f=0;if(b==0)f=e=d=parseInt(c*255+0.5);else{var a=(a-Math.floor(a))*6,g=a-Math.floor(a),h=c*(1-b),i=c*(1-b*g),b=c*(1-b*(1-g));switch(parseInt(a)){case 0:d=c*255+0.5;e=b*255+0.5;f=h*255+0.5;break;case 1:d=i*255+0.5;e=c*255+0.5;f=h*255+0.5;break;case 2:d=h*255+0.5;e=c*255+0.5;f=b*255+0.5;break;case 3:d=h*255+0.5;e=i*255+0.5;f=c*255+0.5;break;case 4:d=b*255+0.5;e=h*255+0.5;f=c*255+0.5;break;case 5:d=c*255+0.5,e=h*255+0.5,f=i*255+0.5}}return{r:parseInt(d),g:parseInt(e),
b:parseInt(f)}};OpenLayers.Rico.Color.RGBtoHSB=function(a,b,c){var d,e=a>b?a:b;c>e&&(e=c);var f=a<b?a:b;c<f&&(f=c);d=e!=0?(e-f)/e:0;if(d==0)a=0;else{var g=(e-a)/(e-f),h=(e-b)/(e-f),c=(e-c)/(e-f),a=a==e?c-h:b==e?2+g-c:4+h-g;a/=6;a<0&&(a+=1)}return{h:a,s:d,b:e/255}};OpenLayers.Rico=OpenLayers.Rico||{};
OpenLayers.Rico.Corner={round:function(a,b){a=OpenLayers.Util.getElement(a);this._setOptions(b);var c=this.options.color;this.options.color=="fromElement"&&(c=this._background(a));var d=this.options.bgColor;this.options.bgColor=="fromParent"&&(d=this._background(a.offsetParent));this._roundCornersImpl(a,c,d)},changeColor:function(a,b){a.style.backgroundColor=b;for(var c=a.parentNode.getElementsByTagName("span"),d=0;d<c.length;d++)c[d].style.backgroundColor=b},changeOpacity:function(a,b){var c="alpha(opacity="+
b*100+")";a.style.opacity=b;a.style.filter=c;for(var d=a.parentNode.getElementsByTagName("span"),e=0;e<d.length;e++)d[e].style.opacity=b,d[e].style.filter=c},reRound:function(a,b){var c=a.parentNode.childNodes[2];a.parentNode.removeChild(a.parentNode.childNodes[0]);a.parentNode.removeChild(c);this.round(a.parentNode,b)},_roundCornersImpl:function(a,b,c){this.options.border&&this._renderBorder(a,c);this._isTopRounded()&&this._roundTopCorners(a,b,c);this._isBottomRounded()&&this._roundBottomCorners(a,
b,c)},_renderBorder:function(a,b){var c="1px solid "+this._borderColor(b);a.innerHTML="<div "+("style='border-left: "+c+";"+("border-right: "+c)+"'")+">"+a.innerHTML+"</div>"},_roundTopCorners:function(a,b,c){for(var d=this._createCorner(c),e=0;e<this.options.numSlices;e++)d.appendChild(this._createCornerSlice(b,c,e,"top"));a.style.paddingTop=0;a.insertBefore(d,a.firstChild)},_roundBottomCorners:function(a,b,c){for(var d=this._createCorner(c),e=this.options.numSlices-1;e>=0;e--)d.appendChild(this._createCornerSlice(b,
c,e,"bottom"));a.style.paddingBottom=0;a.appendChild(d)},_createCorner:function(a){var b=document.createElement("div");b.style.backgroundColor=this._isTransparent()?"transparent":a;return b},_createCornerSlice:function(a,b,c,d){var e=document.createElement("span"),f=e.style;f.backgroundColor=a;f.display="block";f.height="1px";f.overflow="hidden";f.fontSize="1px";a=this._borderColor(a,b);if(this.options.border&&c==0)f.borderTopStyle="solid",f.borderTopWidth="1px",f.borderLeftWidth="0px",f.borderRightWidth=
"0px",f.borderBottomWidth="0px",f.height="0px",f.borderColor=a;else if(a)f.borderColor=a,f.borderStyle="solid",f.borderWidth="0px 1px";if(!this.options.compact&&c==this.options.numSlices-1)f.height="2px";this._setMargin(e,c,d);this._setBorder(e,c,d);return e},_setOptions:function(a){this.options={corners:"all",color:"fromElement",bgColor:"fromParent",blend:true,border:false,compact:false};OpenLayers.Util.extend(this.options,a||{});this.options.numSlices=this.options.compact?2:4;if(this._isTransparent())this.options.blend=
false},_whichSideTop:function(){if(this._hasString(this.options.corners,"all","top"))return"";if(this.options.corners.indexOf("tl")>=0&&this.options.corners.indexOf("tr")>=0)return"";if(this.options.corners.indexOf("tl")>=0)return"left";else if(this.options.corners.indexOf("tr")>=0)return"right";return""},_whichSideBottom:function(){if(this._hasString(this.options.corners,"all","bottom"))return"";if(this.options.corners.indexOf("bl")>=0&&this.options.corners.indexOf("br")>=0)return"";if(this.options.corners.indexOf("bl")>=
0)return"left";else if(this.options.corners.indexOf("br")>=0)return"right";return""},_borderColor:function(a,b){return a=="transparent"?b:this.options.border?this.options.border:this.options.blend?this._blend(b,a):""},_setMargin:function(a,b,c){b=this._marginSize(b);c=c=="top"?this._whichSideTop():this._whichSideBottom();c=="left"?(a.style.marginLeft=b+"px",a.style.marginRight="0px"):c=="right"?(a.style.marginRight=b+"px",a.style.marginLeft="0px"):(a.style.marginLeft=b+"px",a.style.marginRight=b+
"px")},_setBorder:function(a,b,c){b=this._borderSize(b);c=c=="top"?this._whichSideTop():this._whichSideBottom();c=="left"?(a.style.borderLeftWidth=b+"px",a.style.borderRightWidth="0px"):c=="right"?(a.style.borderRightWidth=b+"px",a.style.borderLeftWidth="0px"):(a.style.borderLeftWidth=b+"px",a.style.borderRightWidth=b+"px");if(this.options.border!=false)a.style.borderLeftWidth=b+"px",a.style.borderRightWidth=b+"px"},_marginSize:function(a){if(this._isTransparent())return 0;var b=[5,3,2,1],c=[3,2,
1,0],d=[2,1],e=[1,0];return this.options.compact&&this.options.blend?e[a]:this.options.compact?d[a]:this.options.blend?c[a]:b[a]},_borderSize:function(a){var b=[5,3,2,1],c=[2,1,1,1],d=[1,0],e=[0,2,0,0];if(this.options.compact&&(this.options.blend||this._isTransparent()))return 1;else if(this.options.compact)return d[a];else if(this.options.blend)return c[a];else if(this.options.border)return e[a];else if(this._isTransparent())return b[a];return 0},_hasString:function(a){for(var b=1;b<arguments.length;b++)if(a.indexOf(arguments[b])>=
0)return true;return false},_blend:function(a,b){var c=OpenLayers.Rico.Color.createFromHex(a);c.blend(OpenLayers.Rico.Color.createFromHex(b));return c},_background:function(a){try{return OpenLayers.Rico.Color.createColorFromBackground(a).asHex()}catch(b){return"#ffffff"}},_isTransparent:function(){return this.options.color=="transparent"},_isTopRounded:function(){return this._hasString(this.options.corners,"all","top","tl","tr")},_isBottomRounded:function(){return this._hasString(this.options.corners,
"all","bottom","bl","br")},_hasSingleTextChild:function(a){return a.childNodes.length==1&&a.childNodes[0].nodeType==3}};
OpenLayers.Popup.AnchoredBubble=OpenLayers.Class(OpenLayers.Popup.Anchored,{rounded:false,initialize:function(a,b,c,d,e,f,g){this.padding=new OpenLayers.Bounds(0,OpenLayers.Popup.AnchoredBubble.CORNER_SIZE,0,OpenLayers.Popup.AnchoredBubble.CORNER_SIZE);OpenLayers.Popup.Anchored.prototype.initialize.apply(this,arguments)},draw:function(a){OpenLayers.Popup.Anchored.prototype.draw.apply(this,arguments);this.setContentHTML();this.setBackgroundColor();this.setOpacity();return this.div},updateRelativePosition:function(){this.setRicoCorners()},
setSize:function(a){OpenLayers.Popup.Anchored.prototype.setSize.apply(this,arguments);this.setRicoCorners()},setBackgroundColor:function(a){if(a!=void 0)this.backgroundColor=a;if(this.div!=null&&this.contentDiv!=null)this.div.style.background="transparent",OpenLayers.Rico.Corner.changeColor(this.groupDiv,this.backgroundColor)},setOpacity:function(a){OpenLayers.Popup.Anchored.prototype.setOpacity.call(this,a);this.div!=null&&this.groupDiv!=null&&OpenLayers.Rico.Corner.changeOpacity(this.groupDiv,this.opacity)},
setBorder:function(){this.border=0},setRicoCorners:function(){var a={corners:this.getCornersToRound(this.relativePosition),color:this.backgroundColor,bgColor:"transparent",blend:false};this.rounded?(OpenLayers.Rico.Corner.reRound(this.groupDiv,a),this.setBackgroundColor(),this.setOpacity()):(OpenLayers.Rico.Corner.round(this.div,a),this.rounded=true)},getCornersToRound:function(){var a=["tl","tr","bl","br"],b=OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);OpenLayers.Util.removeItem(a,b);
return a.join(" ")},CLASS_NAME:"OpenLayers.Popup.AnchoredBubble"});OpenLayers.Popup.AnchoredBubble.CORNER_SIZE=5;OpenLayers.Control.Button=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){},CLASS_NAME:"OpenLayers.Control.Button"});
OpenLayers.Control.NavigationHistory=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOGGLE,previous:null,previousOptions:null,next:null,nextOptions:null,limit:50,autoActivate:true,clearOnDeactivate:false,registry:null,nextStack:null,previousStack:null,listeners:null,restoring:false,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);this.registry=OpenLayers.Util.extend({moveend:this.getState},this.registry);a={trigger:OpenLayers.Function.bind(this.previousTrigger,
this),displayClass:this.displayClass+" "+this.displayClass+"Previous"};OpenLayers.Util.extend(a,this.previousOptions);this.previous=new OpenLayers.Control.Button(a);a={trigger:OpenLayers.Function.bind(this.nextTrigger,this),displayClass:this.displayClass+" "+this.displayClass+"Next"};OpenLayers.Util.extend(a,this.nextOptions);this.next=new OpenLayers.Control.Button(a);this.clear()},onPreviousChange:function(a){a&&!this.previous.active?this.previous.activate():!a&&this.previous.active&&this.previous.deactivate()},
onNextChange:function(a){a&&!this.next.active?this.next.activate():!a&&this.next.active&&this.next.deactivate()},destroy:function(){OpenLayers.Control.prototype.destroy.apply(this);this.previous.destroy();this.next.destroy();this.deactivate();for(var a in this)this[a]=null},setMap:function(a){this.map=a;this.next.setMap(a);this.previous.setMap(a)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);this.next.draw();this.previous.draw()},previousTrigger:function(){var a=this.previousStack.shift(),
b=this.previousStack.shift();b!=void 0?(this.nextStack.unshift(a),this.previousStack.unshift(b),this.restoring=true,this.restore(b),this.restoring=false,this.onNextChange(this.nextStack[0],this.nextStack.length),this.onPreviousChange(this.previousStack[1],this.previousStack.length-1)):this.previousStack.unshift(a);return b},nextTrigger:function(){var a=this.nextStack.shift();if(a!=void 0)this.previousStack.unshift(a),this.restoring=true,this.restore(a),this.restoring=false,this.onNextChange(this.nextStack[0],
this.nextStack.length),this.onPreviousChange(this.previousStack[1],this.previousStack.length-1);return a},clear:function(){this.previousStack=[];this.previous.deactivate();this.nextStack=[];this.next.deactivate()},getState:function(){return{center:this.map.getCenter(),resolution:this.map.getResolution(),projection:this.map.getProjectionObject(),units:this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units}},restore:function(a){var b,c;if(this.map.getProjectionObject()==
a.projection)c=this.map.getZoomForResolution(a.resolution),b=a.center;else{b=a.center.clone();b.transform(a.projection,this.map.getProjectionObject());c=a.units;var d=this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units;c=this.map.getZoomForResolution((c&&d?OpenLayers.INCHES_PER_UNIT[c]/OpenLayers.INCHES_PER_UNIT[d]:1)*a.resolution)}this.map.setCenter(b,c)},setListeners:function(){this.listeners={};for(var a in this.registry)this.listeners[a]=OpenLayers.Function.bind(function(){if(!this.restoring){this.previousStack.unshift(this.registry[a].apply(this,
arguments));if(this.previousStack.length>1)this.onPreviousChange(this.previousStack[1],this.previousStack.length-1);this.previousStack.length>this.limit+1&&this.previousStack.pop();if(this.nextStack.length>0)this.nextStack=[],this.onNextChange(null,0)}return true},this)},activate:function(){var a=false;if(this.map&&OpenLayers.Control.prototype.activate.apply(this)){this.listeners==null&&this.setListeners();for(var b in this.listeners)this.map.events.register(b,this,this.listeners[b]);a=true;this.previousStack.length==
0&&this.initStack()}return a},initStack:function(){this.map.getCenter()&&this.listeners.moveend()},deactivate:function(){var a=false;if(this.map&&OpenLayers.Control.prototype.deactivate.apply(this)){for(var b in this.listeners)this.map.events.unregister(b,this,this.listeners[b]);this.clearOnDeactivate&&this.clear();a=true}return a},CLASS_NAME:"OpenLayers.Control.NavigationHistory"});
OpenLayers.Protocol.HTTP=OpenLayers.Class(OpenLayers.Protocol,{url:null,headers:null,params:null,callback:null,scope:null,readWithPOST:false,wildcarded:false,srsInBBOX:false,initialize:function(a){a=a||{};this.params={};this.headers={};OpenLayers.Protocol.prototype.initialize.apply(this,arguments);if(!this.filterToParams&&OpenLayers.Format.QueryStringFilter){var b=new OpenLayers.Format.QueryStringFilter({wildcarded:this.wildcarded,srsInBBOX:this.srsInBBOX});this.filterToParams=function(a,d){return b.write(a,
d)}}},destroy:function(){this.headers=this.params=null;OpenLayers.Protocol.prototype.destroy.apply(this)},read:function(a){OpenLayers.Protocol.prototype.read.apply(this,arguments);a=a||{};a.params=OpenLayers.Util.applyDefaults(a.params,this.options.params);a=OpenLayers.Util.applyDefaults(a,this.options);if(a.filter&&this.filterToParams)a.params=this.filterToParams(a.filter,a.params);var b=a.readWithPOST!==void 0?a.readWithPOST:this.readWithPOST,c=new OpenLayers.Protocol.Response({requestType:"read"});
c.priv=b?OpenLayers.Request.POST({url:a.url,callback:this.createCallback(this.handleRead,c,a),data:OpenLayers.Util.getParameterString(a.params),headers:{"Content-Type":"application/x-www-form-urlencoded"}}):OpenLayers.Request.GET({url:a.url,callback:this.createCallback(this.handleRead,c,a),params:a.params,headers:a.headers});return c},handleRead:function(a,b){this.handleResponse(a,b)},create:function(a,b){var b=OpenLayers.Util.applyDefaults(b,this.options),c=new OpenLayers.Protocol.Response({reqFeatures:a,
requestType:"create"});c.priv=OpenLayers.Request.POST({url:b.url,callback:this.createCallback(this.handleCreate,c,b),headers:b.headers,data:this.format.write(a)});return c},handleCreate:function(a,b){this.handleResponse(a,b)},update:function(a,b){var b=b||{},c=b.url||a.url||this.options.url+"/"+a.fid,b=OpenLayers.Util.applyDefaults(b,this.options),d=new OpenLayers.Protocol.Response({reqFeatures:a,requestType:"update"});d.priv=OpenLayers.Request.PUT({url:c,callback:this.createCallback(this.handleUpdate,
d,b),headers:b.headers,data:this.format.write(a)});return d},handleUpdate:function(a,b){this.handleResponse(a,b)},"delete":function(a,b){var b=b||{},c=b.url||a.url||this.options.url+"/"+a.fid,b=OpenLayers.Util.applyDefaults(b,this.options),d=new OpenLayers.Protocol.Response({reqFeatures:a,requestType:"delete"});d.priv=OpenLayers.Request.DELETE({url:c,callback:this.createCallback(this.handleDelete,d,b),headers:b.headers});return d},handleDelete:function(a,b){this.handleResponse(a,b)},handleResponse:function(a,
b){var c=a.priv;if(b.callback){if(c.status>=200&&c.status<300){if(a.requestType!="delete")a.features=this.parseFeatures(c);a.code=OpenLayers.Protocol.Response.SUCCESS}else a.code=OpenLayers.Protocol.Response.FAILURE;b.callback.call(b.scope,a)}},parseFeatures:function(a){var b=a.responseXML;if(!b||!b.documentElement)b=a.responseText;return!b||b.length<=0?null:this.format.read(b)},commit:function(a,b){function c(a){for(var b=a.features?a.features.length:0,c=Array(b),e=0;e<b;++e)c[e]=a.features[e].fid;
o.insertIds=c;d.apply(this,[a])}function d(a){this.callUserCallback(a,b);n=n&&a.success();f++;if(f>=m&&b.callback)o.code=n?OpenLayers.Protocol.Response.SUCCESS:OpenLayers.Protocol.Response.FAILURE,b.callback.apply(b.scope,[o])}var b=OpenLayers.Util.applyDefaults(b,this.options),e=[],f=0,g={};g[OpenLayers.State.INSERT]=[];g[OpenLayers.State.UPDATE]=[];g[OpenLayers.State.DELETE]=[];for(var h,i,j=[],k=0,l=a.length;k<l;++k)if(h=a[k],i=g[h.state])i.push(h),j.push(h);var m=(g[OpenLayers.State.INSERT].length>
0?1:0)+g[OpenLayers.State.UPDATE].length+g[OpenLayers.State.DELETE].length,n=true,o=new OpenLayers.Protocol.Response({reqFeatures:j});h=g[OpenLayers.State.INSERT];h.length>0&&e.push(this.create(h,OpenLayers.Util.applyDefaults({callback:c,scope:this},b.create)));h=g[OpenLayers.State.UPDATE];for(k=h.length-1;k>=0;--k)e.push(this.update(h[k],OpenLayers.Util.applyDefaults({callback:d,scope:this},b.update)));h=g[OpenLayers.State.DELETE];for(k=h.length-1;k>=0;--k)e.push(this["delete"](h[k],OpenLayers.Util.applyDefaults({callback:d,
scope:this},b["delete"])));return e},abort:function(a){a&&a.priv.abort()},callUserCallback:function(a,b){var c=b[a.requestType];c&&c.callback&&c.callback.call(c.scope,a)},CLASS_NAME:"OpenLayers.Protocol.HTTP"});
OpenLayers.Strategy.Cluster=OpenLayers.Class(OpenLayers.Strategy,{distance:20,threshold:null,features:null,clusters:null,clustering:false,resolution:null,activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);if(a)this.layer.events.on({beforefeaturesadded:this.cacheFeatures,moveend:this.cluster,scope:this});return a},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);a&&(this.clearCache(),this.layer.events.un({beforefeaturesadded:this.cacheFeatures,
moveend:this.cluster,scope:this}));return a},cacheFeatures:function(a){var b=true;if(!this.clustering)this.clearCache(),this.features=a.features,this.cluster(),b=false;return b},clearCache:function(){this.features=null},cluster:function(a){if((!a||a.zoomChanged)&&this.features)if(a=this.layer.map.getResolution(),a!=this.resolution||!this.clustersExist()){this.resolution=a;for(var a=[],b,c,d,e=0;e<this.features.length;++e)if(b=this.features[e],b.geometry){c=false;for(var f=a.length-1;f>=0;--f)if(d=
a[f],this.shouldCluster(d,b)){this.addToCluster(d,b);c=true;break}c||a.push(this.createCluster(this.features[e]))}this.layer.removeAllFeatures();if(a.length>0){if(this.threshold>1){b=a.slice();a=[];e=0;for(d=b.length;e<d;++e)c=b[e],c.attributes.count<this.threshold?Array.prototype.push.apply(a,c.cluster):a.push(c)}this.clustering=true;this.layer.addFeatures(a);this.clustering=false}this.clusters=a}},clustersExist:function(){var a=false;if(this.clusters&&this.clusters.length>0&&this.clusters.length==
this.layer.features.length)for(var a=true,b=0;b<this.clusters.length;++b)if(this.clusters[b]!=this.layer.features[b]){a=false;break}return a},shouldCluster:function(a,b){var c=a.geometry.getBounds().getCenterLonLat(),d=b.geometry.getBounds().getCenterLonLat();return Math.sqrt(Math.pow(c.lon-d.lon,2)+Math.pow(c.lat-d.lat,2))/this.resolution<=this.distance},addToCluster:function(a,b){a.cluster.push(b);a.attributes.count+=1},createCluster:function(a){var b=a.geometry.getBounds().getCenterLonLat(),b=
new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(b.lon,b.lat),{count:1});b.cluster=[a];return b},CLASS_NAME:"OpenLayers.Strategy.Cluster"});OpenLayers.Protocol.SOS=function(a){var a=OpenLayers.Util.applyDefaults(a,OpenLayers.Protocol.SOS.DEFAULTS),b=OpenLayers.Protocol.SOS["v"+a.version.replace(/\./g,"_")];if(!b)throw"Unsupported SOS version: "+a.version;return new b(a)};OpenLayers.Protocol.SOS.DEFAULTS={version:"1.0.0"};
OpenLayers.Format.WFSDescribeFeatureType=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xsd:"http://www.w3.org/2001/XMLSchema"},readers:{xsd:{schema:function(a,b){var c=[],d={};this.readChildNodes(a,{complexTypes:c,customTypes:d});for(var e=a.attributes,f,g,h=0,i=e.length;h<i;++h)f=e[h],g=f.name,g.indexOf("xmlns")==0?this.setNamespace(g.split(":")[1]||"",f.value):b[g]=f.value;b.featureTypes=c;b.targetPrefix=this.namespaceAlias[b.targetNamespace];h=0;for(i=c.length;h<i;++h)if(e=c[h],f=d[e.typeName],
d[e.typeName])e.typeName=f.name},complexType:function(a,b){var c={typeName:a.getAttribute("name")};this.readChildNodes(a,c);b.complexTypes.push(c)},complexContent:function(a,b){this.readChildNodes(a,b)},extension:function(a,b){this.readChildNodes(a,b)},sequence:function(a,b){var c={elements:[]};this.readChildNodes(a,c);b.properties=c.elements},element:function(a,b){if(b.elements){for(var c={},d=a.attributes,e,f=0,g=d.length;f<g;++f)e=d[f],c[e.name]=e.value;d=c.type;if(!d)d={},this.readChildNodes(a,
d),c.restriction=d,c.type=d.base;c.localType=(d.base||d).split(":").pop();b.elements.push(c)}b.complexTypes&&(d=a.getAttribute("type"),c=d.split(":").pop(),b.customTypes[c]={name:a.getAttribute("name"),type:d})},simpleType:function(a,b){this.readChildNodes(a,b)},restriction:function(a,b){b.base=a.getAttribute("base");this.readRestriction(a,b)}}},readRestriction:function(a,b){for(var c=a.childNodes,d,e,f=0,g=c.length;f<g;++f)d=c[f],d.nodeType==1&&(e=d.nodeName.split(":").pop(),d=d.getAttribute("value"),
b[e]?(typeof b[e]=="string"&&(b[e]=[b[e]]),b[e].push(d)):b[e]=d)},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;var b={};this.readNode(a,b);return b},CLASS_NAME:"OpenLayers.Format.WFSDescribeFeatureType"});
OpenLayers.Control.OverviewMap=OpenLayers.Class(OpenLayers.Control,{element:null,ovmap:null,size:new OpenLayers.Size(180,90),layers:null,minRectSize:15,minRectDisplayClass:"RectReplacement",minRatio:8,maxRatio:32,mapOptions:null,autoPan:false,handlers:null,resolutionFactor:1,maximized:false,initialize:function(a){this.layers=[];this.handlers={};OpenLayers.Control.prototype.initialize.apply(this,[a])},destroy:function(){if(this.mapDiv){this.handlers.click&&this.handlers.click.destroy();this.handlers.drag&&
this.handlers.drag.destroy();this.ovmap&&this.ovmap.eventsDiv.removeChild(this.extentRectangle);this.extentRectangle=null;if(this.rectEvents)this.rectEvents.destroy(),this.rectEvents=null;if(this.ovmap)this.ovmap.destroy(),this.ovmap=null;this.element.removeChild(this.mapDiv);this.mapDiv=null;this.div.removeChild(this.element);this.element=null;if(this.maximizeDiv)OpenLayers.Event.stopObservingElement(this.maximizeDiv),this.div.removeChild(this.maximizeDiv),this.maximizeDiv=null;if(this.minimizeDiv)OpenLayers.Event.stopObservingElement(this.minimizeDiv),
this.div.removeChild(this.minimizeDiv),this.minimizeDiv=null;this.map.events.un({moveend:this.update,changebaselayer:this.baseLayerDraw,scope:this});OpenLayers.Control.prototype.destroy.apply(this,arguments)}},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(!(this.layers.length>0))if(this.map.baseLayer)this.layers=[this.map.baseLayer.clone()];else return this.map.events.register("changebaselayer",this,this.baseLayerDraw),this.div;this.element=document.createElement("div");
this.element.className=this.displayClass+"Element";this.element.style.display="none";this.mapDiv=document.createElement("div");this.mapDiv.style.width=this.size.w+"px";this.mapDiv.style.height=this.size.h+"px";this.mapDiv.style.position="relative";this.mapDiv.style.overflow="hidden";this.mapDiv.id=OpenLayers.Util.createUniqueID("overviewMap");this.extentRectangle=document.createElement("div");this.extentRectangle.style.position="absolute";this.extentRectangle.style.zIndex=1E3;this.extentRectangle.className=
this.displayClass+"ExtentRectangle";this.element.appendChild(this.mapDiv);this.div.appendChild(this.element);if(this.outsideViewport)this.element.style.display="";else{this.div.className+=" "+this.displayClass+"Container";var a=OpenLayers.Util.getImagesLocation();this.maximizeDiv=OpenLayers.Util.createAlphaImageDiv(this.displayClass+"MaximizeButton",null,new OpenLayers.Size(18,18),a+"layer-switcher-maximize.png","absolute");this.maximizeDiv.style.display="none";this.maximizeDiv.className=this.displayClass+
"MaximizeButton";OpenLayers.Event.observe(this.maximizeDiv,"click",OpenLayers.Function.bindAsEventListener(this.maximizeControl,this));this.div.appendChild(this.maximizeDiv);this.minimizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_minimizeDiv",null,new OpenLayers.Size(18,18),a+"layer-switcher-minimize.png","absolute");this.minimizeDiv.style.display="none";this.minimizeDiv.className=this.displayClass+"MinimizeButton";OpenLayers.Event.observe(this.minimizeDiv,"click",OpenLayers.Function.bindAsEventListener(this.minimizeControl,
this));this.div.appendChild(this.minimizeDiv);for(var a=["dblclick","mousedown"],b=0,c=a.length;b<c;b++)OpenLayers.Event.observe(this.maximizeDiv,a[b],OpenLayers.Event.stop),OpenLayers.Event.observe(this.minimizeDiv,a[b],OpenLayers.Event.stop);this.minimizeControl()}this.map.getExtent()&&this.update();this.map.events.register("moveend",this,this.update);this.maximized&&this.maximizeControl();return this.div},baseLayerDraw:function(){this.draw();this.map.events.unregister("changebaselayer",this,this.baseLayerDraw)},
rectDrag:function(a){var b=this.handlers.drag.last.x-a.x,c=this.handlers.drag.last.y-a.y;if(b!=0||c!=0){var d=this.rectPxBounds.top,e=this.rectPxBounds.left,a=Math.abs(this.rectPxBounds.getHeight()),f=this.rectPxBounds.getWidth(),c=Math.max(0,d-c),c=Math.min(c,this.ovmap.size.h-this.hComp-a),b=Math.max(0,e-b),b=Math.min(b,this.ovmap.size.w-this.wComp-f);this.setRectPxBounds(new OpenLayers.Bounds(b,c+a,b+f,c))}},mapDivClick:function(a){var b=this.rectPxBounds.getCenterPixel(),c=a.xy.x-b.x,d=a.xy.y-
b.y,e=this.rectPxBounds.top,f=this.rectPxBounds.left,a=Math.abs(this.rectPxBounds.getHeight()),b=this.rectPxBounds.getWidth(),d=Math.max(0,e+d),d=Math.min(d,this.ovmap.size.h-a),c=Math.max(0,f+c),c=Math.min(c,this.ovmap.size.w-b);this.setRectPxBounds(new OpenLayers.Bounds(c,d+a,c+b,d));this.updateMapToRect()},maximizeControl:function(a){this.element.style.display="";this.showToggle(false);a!=null&&OpenLayers.Event.stop(a)},minimizeControl:function(a){this.element.style.display="none";this.showToggle(true);
a!=null&&OpenLayers.Event.stop(a)},showToggle:function(a){this.maximizeDiv.style.display=a?"":"none";this.minimizeDiv.style.display=a?"none":""},update:function(){this.ovmap==null&&this.createMap();(this.autoPan||!this.isSuitableOverview())&&this.updateOverview();this.updateRectToMap()},isSuitableOverview:function(){var a=this.map.getExtent(),b=this.map.maxExtent,a=new OpenLayers.Bounds(Math.max(a.left,b.left),Math.max(a.bottom,b.bottom),Math.min(a.right,b.right),Math.min(a.top,b.top));this.ovmap.getProjection()!=
this.map.getProjection()&&(a=a.transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject()));b=this.ovmap.getResolution()/this.map.getResolution();return b>this.minRatio&&b<=this.maxRatio&&this.ovmap.getExtent().containsBounds(a)},updateOverview:function(){var a=this.map.getResolution(),b=this.ovmap.getResolution(),c=b/a;c>this.maxRatio?b=this.minRatio*a:c<=this.minRatio&&(b=this.maxRatio*a);this.ovmap.getProjection()!=this.map.getProjection()?(a=this.map.center.clone(),a.transform(this.map.getProjectionObject(),
this.ovmap.getProjectionObject())):a=this.map.center;this.ovmap.setCenter(a,this.ovmap.getZoomForResolution(b*this.resolutionFactor));this.updateRectToMap()},createMap:function(){var a=OpenLayers.Util.extend({controls:[],maxResolution:"auto",fallThrough:false},this.mapOptions);this.ovmap=new OpenLayers.Map(this.mapDiv,a);this.ovmap.eventsDiv.appendChild(this.extentRectangle);OpenLayers.Event.stopObserving(window,"unload",this.ovmap.unloadDestroy);this.ovmap.addLayers(this.layers);this.ovmap.zoomToMaxExtent();
this.wComp=(this.wComp=parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-left-width"))+parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-right-width")))?this.wComp:2;this.hComp=(this.hComp=parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-top-width"))+parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-bottom-width")))?this.hComp:2;this.handlers.drag=new OpenLayers.Handler.Drag(this,{move:this.rectDrag,done:this.updateMapToRect},{map:this.ovmap});
this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.mapDivClick},{single:true,"double":false,stopSingle:true,stopDouble:true,pixelTolerance:1,map:this.ovmap});this.handlers.click.activate();this.rectEvents=new OpenLayers.Events(this,this.extentRectangle,null,true);this.rectEvents.register("mouseover",this,function(){!this.handlers.drag.active&&!this.map.dragging&&this.handlers.drag.activate()});this.rectEvents.register("mouseout",this,function(){this.handlers.drag.dragging||this.handlers.drag.deactivate()});
if(this.ovmap.getProjection()!=this.map.getProjection()){var a=this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units,b=this.ovmap.getProjectionObject().getUnits()||this.ovmap.units||this.ovmap.baseLayer.units;this.resolutionFactor=a&&b?OpenLayers.INCHES_PER_UNIT[a]/OpenLayers.INCHES_PER_UNIT[b]:1}},updateRectToMap:function(){var a=this.getRectBoundsFromMapBounds(this.ovmap.getProjection()!=this.map.getProjection()?this.map.getExtent().transform(this.map.getProjectionObject(),
this.ovmap.getProjectionObject()):this.map.getExtent());a&&this.setRectPxBounds(a)},updateMapToRect:function(){var a=this.getMapBoundsFromRectBounds(this.rectPxBounds);this.ovmap.getProjection()!=this.map.getProjection()&&(a=a.transform(this.ovmap.getProjectionObject(),this.map.getProjectionObject()));this.map.panTo(a.getCenterLonLat())},setRectPxBounds:function(a){var b=Math.max(a.top,0),c=Math.max(a.left,0),d=Math.min(a.top+Math.abs(a.getHeight()),this.ovmap.size.h-this.hComp),a=Math.min(a.left+
a.getWidth(),this.ovmap.size.w-this.wComp),e=Math.max(a-c,0),f=Math.max(d-b,0);e<this.minRectSize||f<this.minRectSize?(this.extentRectangle.className=this.displayClass+this.minRectDisplayClass,e=c+e/2-this.minRectSize/2,this.extentRectangle.style.top=Math.round(b+f/2-this.minRectSize/2)+"px",this.extentRectangle.style.left=Math.round(e)+"px",this.extentRectangle.style.height=this.minRectSize+"px",this.extentRectangle.style.width=this.minRectSize+"px"):(this.extentRectangle.className=this.displayClass+
"ExtentRectangle",this.extentRectangle.style.top=Math.round(b)+"px",this.extentRectangle.style.left=Math.round(c)+"px",this.extentRectangle.style.height=Math.round(f)+"px",this.extentRectangle.style.width=Math.round(e)+"px");this.rectPxBounds=new OpenLayers.Bounds(Math.round(c),Math.round(d),Math.round(a),Math.round(b))},getRectBoundsFromMapBounds:function(a){var b=new OpenLayers.LonLat(a.left,a.bottom),a=new OpenLayers.LonLat(a.right,a.top),b=this.getOverviewPxFromLonLat(b),a=this.getOverviewPxFromLonLat(a),
c=null;b&&a&&(c=new OpenLayers.Bounds(b.x,b.y,a.x,a.y));return c},getMapBoundsFromRectBounds:function(a){var b=new OpenLayers.Pixel(a.left,a.bottom),a=new OpenLayers.Pixel(a.right,a.top),b=this.getLonLatFromOverviewPx(b),a=this.getLonLatFromOverviewPx(a);return new OpenLayers.Bounds(b.lon,b.lat,a.lon,a.lat)},getLonLatFromOverviewPx:function(a){var b=this.ovmap.size,c=this.ovmap.getResolution(),d=this.ovmap.getExtent().getCenterLonLat();return new OpenLayers.LonLat(d.lon+(a.x-b.w/2)*c,d.lat-(a.y-b.h/
2)*c)},getOverviewPxFromLonLat:function(a){var b=this.ovmap.getResolution(),c=this.ovmap.getExtent(),d=null;c&&(d=new OpenLayers.Pixel(Math.round(1/b*(a.lon-c.left)),Math.round(1/b*(c.top-a.lat))));return d},CLASS_NAME:"OpenLayers.Control.OverviewMap"});
OpenLayers.Format.WPSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",wps:"http://www.opengis.net/wps/1.0.0",xlink:"http://www.w3.org/1999/xlink"},regExes:{trimSpace:/^\s*|\s*$/g,removeSpace:/\s*/g,splitSpace:/\s+/,trimComma:/\s*,\s*/g},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])},read:function(a){typeof a=="string"&&(a=OpenLayers.Format.XML.prototype.read.apply(this,[a]));if(a&&a.nodeType==9)a=a.documentElement;
var b={};this.readNode(a,b);return b},readers:{wps:{Capabilities:function(a,b){this.readChildNodes(a,b)},ProcessOfferings:function(a,b){b.processOfferings={};this.readChildNodes(a,b.processOfferings)},Process:function(a,b){var c={processVersion:this.getAttributeNS(a,this.namespaces.wps,"processVersion")};this.readChildNodes(a,c);b[c.identifier]=c},Languages:function(a,b){b.languages=[];this.readChildNodes(a,b.languages)},Default:function(a,b){var c={isDefault:true};this.readChildNodes(a,c);b.push(c)},
Supported:function(a,b){var c={};this.readChildNodes(a,c);b.push(c)}},ows:OpenLayers.Format.OWSCommon.v1_1_0.prototype.readers.ows},CLASS_NAME:"OpenLayers.Format.WPSCapabilities.v1_0_0"});
OpenLayers.Control.PinchZoom=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,containerOrigin:null,pinchOrigin:null,currentCenter:null,autoActivate:true,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments);this.handler=new OpenLayers.Handler.Pinch(this,{start:this.pinchStart,move:this.pinchMove,done:this.pinchDone},this.handlerOptions)},activate:function(){var a=OpenLayers.Control.prototype.activate.apply(this,arguments);a&&(this.map.events.on({moveend:this.updateContainerOrigin,
scope:this}),this.updateContainerOrigin());return a},deactivate:function(){var a=OpenLayers.Control.prototype.deactivate.apply(this,arguments);this.map&&this.map.events&&this.map.events.un({moveend:this.updateContainerOrigin,scope:this});return a},updateContainerOrigin:function(){var a=this.map.layerContainerDiv;this.containerOrigin={x:parseInt(a.style.left,10),y:parseInt(a.style.top,10)}},pinchStart:function(a){this.currentCenter=this.pinchOrigin=a.xy},pinchMove:function(a,b){var c=b.scale,d=this.containerOrigin,
e=this.pinchOrigin,f=a.xy,g=Math.round(f.x-e.x+(c-1)*(d.x-e.x)),d=Math.round(f.y-e.y+(c-1)*(d.y-e.y));this.applyTransform("translate("+g+"px, "+d+"px) scale("+c+")");this.currentCenter=f},applyTransform:function(a){var b=this.map.layerContainerDiv.style;b["-webkit-transform"]=a;b["-moz-transform"]=a},pinchDone:function(a,b,c){this.applyTransform("");a=this.map.getZoomForResolution(this.map.getResolution()/c.scale,true);if(a!==this.map.getZoom()||!this.currentCenter.equals(this.pinchOrigin)){var b=
this.map.getResolutionForZoom(a),c=this.map.getLonLatFromPixel(this.pinchOrigin),d=this.currentCenter,e=this.map.getSize();c.lon+=b*(e.w/2-d.x);c.lat-=b*(e.h/2-d.y);this.map.setCenter(c,a)}},CLASS_NAME:"OpenLayers.Control.PinchZoom"});
OpenLayers.Control.TouchNavigation=OpenLayers.Class(OpenLayers.Control,{dragPan:null,dragPanOptions:null,pinchZoom:null,pinchZoomOptions:null,clickHandlerOptions:null,documentDrag:false,autoActivate:true,initialize:function(a){this.handlers={};OpenLayers.Control.prototype.initialize.apply(this,arguments)},destroy:function(){this.deactivate();this.dragPan&&this.dragPan.destroy();this.dragPan=null;this.pinchZoom&&(this.pinchZoom.destroy(),delete this.pinchZoom);OpenLayers.Control.prototype.destroy.apply(this,
arguments)},activate:function(){return OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.dragPan.activate(),this.handlers.click.activate(),this.pinchZoom.activate(),true):false},deactivate:function(){return OpenLayers.Control.prototype.deactivate.apply(this,arguments)?(this.dragPan.deactivate(),this.handlers.click.deactivate(),this.pinchZoom.deactivate(),true):false},draw:function(){var a={click:this.defaultClick,dblclick:this.defaultDblClick},b=OpenLayers.Util.extend({"double":true,
stopDouble:true,pixelTolerance:2},this.clickHandlerOptions);this.handlers.click=new OpenLayers.Handler.Click(this,a,b);this.dragPan=new OpenLayers.Control.DragPan(OpenLayers.Util.extend({map:this.map,documentDrag:this.documentDrag},this.dragPanOptions));this.dragPan.draw();this.pinchZoom=new OpenLayers.Control.PinchZoom(OpenLayers.Util.extend({map:this.map},this.pinchZoomOptions))},defaultClick:function(a){a.lastTouches&&a.lastTouches.length==2&&this.map.zoomOut()},defaultDblClick:function(a){this.map.setCenter(this.map.getLonLatFromViewPortPx(a.xy),
this.map.zoom+1)},CLASS_NAME:"OpenLayers.Control.TouchNavigation"});
OpenLayers.Style2=OpenLayers.Class({id:null,name:null,title:null,description:null,layerName:null,isDefault:false,rules:null,initialize:function(a){OpenLayers.Util.extend(this,a);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var a=0,b=this.rules.length;a<b;a++)this.rules[a].destroy();delete this.rules},clone:function(){var a=OpenLayers.Util.extend({},this);if(this.rules){a.rules=[];for(var b=0,c=this.rules.length;b<c;++b)a.rules.push(this.rules[b].clone())}return new OpenLayers.Style2(a)},
CLASS_NAME:"OpenLayers.Style2"});
OpenLayers.Control.MousePosition=OpenLayers.Class(OpenLayers.Control,{autoActivate:true,element:null,prefix:"",separator:", ",suffix:"",numDigits:5,granularity:10,emptyString:null,lastXy:null,displayProjection:null,destroy:function(){this.deactivate();OpenLayers.Control.prototype.destroy.apply(this,arguments)},activate:function(){return OpenLayers.Control.prototype.activate.apply(this,arguments)?(this.map.events.register("mousemove",this,this.redraw),this.map.events.register("mouseout",this,this.reset),
this.redraw(),true):false},deactivate:function(){return OpenLayers.Control.prototype.deactivate.apply(this,arguments)?(this.map.events.unregister("mousemove",this,this.redraw),this.map.events.unregister("mouseout",this,this.reset),this.element.innerHTML="",true):false},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);if(!this.element)this.div.left="",this.div.top="",this.element=this.div;return this.div},redraw:function(a){var b;if(a==null)this.reset();else if(this.lastXy==
null||Math.abs(a.xy.x-this.lastXy.x)>this.granularity||Math.abs(a.xy.y-this.lastXy.y)>this.granularity)this.lastXy=a.xy;else if(b=this.map.getLonLatFromPixel(a.xy))if(this.displayProjection&&b.transform(this.map.getProjectionObject(),this.displayProjection),this.lastXy=a.xy,a=this.formatOutput(b),a!=this.element.innerHTML)this.element.innerHTML=a},reset:function(){if(this.emptyString!=null)this.element.innerHTML=this.emptyString},formatOutput:function(a){var b=parseInt(this.numDigits);return this.prefix+
a.lon.toFixed(b)+this.separator+a.lat.toFixed(b)+this.suffix},CLASS_NAME:"OpenLayers.Control.MousePosition"});
OpenLayers.Format.WFS=OpenLayers.Class(OpenLayers.Format.GML,{layer:null,wfsns:"http://www.opengis.net/wfs",ogcns:"http://www.opengis.net/ogc",initialize:function(a,b){OpenLayers.Format.GML.prototype.initialize.apply(this,[a]);this.layer=b;if(this.layer.featureNS)this.featureNS=this.layer.featureNS;if(this.layer.options.geometry_column)this.geometryName=this.layer.options.geometry_column;if(this.layer.options.typename)this.featureName=this.layer.options.typename},write:function(a){var b=this.createElementNS(this.wfsns,
"wfs:Transaction");b.setAttribute("version","1.0.0");b.setAttribute("service","WFS");for(var c=0;c<a.length;c++)switch(a[c].state){case OpenLayers.State.INSERT:b.appendChild(this.insert(a[c]));break;case OpenLayers.State.UPDATE:b.appendChild(this.update(a[c]));break;case OpenLayers.State.DELETE:b.appendChild(this.remove(a[c]))}return OpenLayers.Format.XML.prototype.write.apply(this,[b])},createFeatureXML:function(a){var b=this.buildGeometryNode(a.geometry),c=this.createElementNS(this.featureNS,"feature:"+
this.geometryName);c.appendChild(b);b=this.createElementNS(this.featureNS,"feature:"+this.featureName);b.appendChild(c);for(var d in a.attributes){var c=this.createTextNode(a.attributes[d]),e=d;d.search(":")!=-1&&(e=d.split(":")[1]);e=this.createElementNS(this.featureNS,"feature:"+e);e.appendChild(c);b.appendChild(e)}return b},insert:function(a){var b=this.createElementNS(this.wfsns,"wfs:Insert");b.appendChild(this.createFeatureXML(a));return b},update:function(a){a.fid||OpenLayers.Console.userError(OpenLayers.i18n("noFID"));
var b=this.createElementNS(this.wfsns,"wfs:Update");b.setAttribute("typeName",this.featurePrefix+":"+this.featureName);b.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);var c=this.createElementNS(this.wfsns,"wfs:Property"),d=this.createElementNS(this.wfsns,"wfs:Name"),e=this.createTextNode(this.geometryName);d.appendChild(e);c.appendChild(d);d=this.createElementNS(this.wfsns,"wfs:Value");e=this.buildGeometryNode(a.geometry);a.layer&&e.setAttribute("srsName",a.layer.projection.getCode());
d.appendChild(e);c.appendChild(d);b.appendChild(c);for(var f in a.attributes)c=this.createElementNS(this.wfsns,"wfs:Property"),d=this.createElementNS(this.wfsns,"wfs:Name"),d.appendChild(this.createTextNode(f)),c.appendChild(d),d=this.createElementNS(this.wfsns,"wfs:Value"),d.appendChild(this.createTextNode(a.attributes[f])),c.appendChild(d),b.appendChild(c);c=this.createElementNS(this.ogcns,"ogc:Filter");f=this.createElementNS(this.ogcns,"ogc:FeatureId");f.setAttribute("fid",a.fid);c.appendChild(f);
b.appendChild(c);return b},remove:function(a){if(!a.fid)return OpenLayers.Console.userError(OpenLayers.i18n("noFID")),false;var b=this.createElementNS(this.wfsns,"wfs:Delete");b.setAttribute("typeName",this.featurePrefix+":"+this.featureName);b.setAttribute("xmlns:"+this.featurePrefix,this.featureNS);var c=this.createElementNS(this.ogcns,"ogc:Filter"),d=this.createElementNS(this.ogcns,"ogc:FeatureId");d.setAttribute("fid",a.fid);c.appendChild(d);b.appendChild(c);return b},destroy:function(){this.layer=
null},CLASS_NAME:"OpenLayers.Format.WFS"});
OpenLayers.Layer.Boxes=OpenLayers.Class(OpenLayers.Layer.Markers,{initialize:function(a,b){OpenLayers.Layer.Markers.prototype.initialize.apply(this,arguments)},drawMarker:function(a){var b=a.bounds,c=this.map.getLayerPxFromLonLat(new OpenLayers.LonLat(b.left,b.top)),b=this.map.getLayerPxFromLonLat(new OpenLayers.LonLat(b.right,b.bottom));if(b==null||c==null)a.display(false);else if(b=new OpenLayers.Size(Math.max(1,b.x-c.x),Math.max(1,b.y-c.y)),c=a.draw(c,b),!a.drawn)this.div.appendChild(c),a.drawn=
true},removeMarker:function(a){OpenLayers.Util.removeItem(this.markers,a);a.div!=null&&a.div.parentNode==this.div&&this.div.removeChild(a.div)},CLASS_NAME:"OpenLayers.Layer.Boxes"});
OpenLayers.Format.WFSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.WFSCapabilities.v1,{initialize:function(a){OpenLayers.Format.WFSCapabilities.v1.prototype.initialize.apply(this,[a])},read_cap_Service:function(a,b){var c={};this.runChildNodes(c,b);a.service=c},read_cap_Fees:function(a,b){var c=this.getChildValue(b);if(c&&c.toLowerCase()!="none")a.fees=c},read_cap_AccessConstraints:function(a,b){var c=this.getChildValue(b);if(c&&c.toLowerCase()!="none")a.accessConstraints=c},read_cap_OnlineResource:function(a,
b){var c=this.getChildValue(b);if(c&&c.toLowerCase()!="none")a.onlineResource=c},read_cap_Keywords:function(a,b){var c=this.getChildValue(b);if(c&&c.toLowerCase()!="none")a.keywords=c.split(", ")},read_cap_Capability:function(a,b){var c={};this.runChildNodes(c,b);a.capability=c},read_cap_Request:function(a,b){var c={};this.runChildNodes(c,b);a.request=c},read_cap_GetFeature:function(a,b){var c={href:{},formats:[]};this.runChildNodes(c,b);a.getfeature=c},read_cap_ResultFormat:function(a,b){for(var c=
b.childNodes,d,e=0;e<c.length;e++)d=c[e],d.nodeType==1&&a.formats.push(d.nodeName)},read_cap_DCPType:function(a,b){this.runChildNodes(a,b)},read_cap_HTTP:function(a,b){this.runChildNodes(a.href,b)},read_cap_Get:function(a,b){a.get=b.getAttribute("onlineResource")},read_cap_Post:function(a,b){a.post=b.getAttribute("onlineResource")},read_cap_SRS:function(a,b){var c=this.getChildValue(b);if(c)a.srs=c},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1_0_0"});
OpenLayers.Format.WMSCapabilities.v1_3=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1,{readers:{wms:OpenLayers.Util.applyDefaults({WMS_Capabilities:function(a,b){this.readChildNodes(a,b)},LayerLimit:function(a,b){b.layerLimit=parseInt(this.getChildValue(a))},MaxWidth:function(a,b){b.maxWidth=parseInt(this.getChildValue(a))},MaxHeight:function(a,b){b.maxHeight=parseInt(this.getChildValue(a))},BoundingBox:function(a,b){var c=OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms.BoundingBox.apply(this,
[a,b]);c.srs=a.getAttribute("CRS");b.bbox[c.srs]=c},CRS:function(a,b){this.readers.wms.SRS.apply(this,[a,b])},EX_GeographicBoundingBox:function(a,b){b.llbbox=[];this.readChildNodes(a,b.llbbox)},westBoundLongitude:function(a,b){b[0]=this.getChildValue(a)},eastBoundLongitude:function(a,b){b[2]=this.getChildValue(a)},southBoundLatitude:function(a,b){b[1]=this.getChildValue(a)},northBoundLatitude:function(a,b){b[3]=this.getChildValue(a)},MinScaleDenominator:function(a,b){b.maxScale=parseFloat(this.getChildValue(a)).toPrecision(16)},
MaxScaleDenominator:function(a,b){b.minScale=parseFloat(this.getChildValue(a)).toPrecision(16)},Dimension:function(a,b){var c={name:a.getAttribute("name").toLowerCase(),units:a.getAttribute("units"),unitsymbol:a.getAttribute("unitSymbol"),nearestVal:a.getAttribute("nearestValue")==="1",multipleVal:a.getAttribute("multipleValues")==="1","default":a.getAttribute("default")||"",current:a.getAttribute("current")==="1",values:this.getChildValue(a).split(",")};b.dimensions[c.name]=c},Keyword:function(a,
b){var c={value:this.getChildValue(a),vocabulary:a.getAttribute("vocabulary")};b.keywords&&b.keywords.push(c)}},OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms),sld:{UserDefinedSymbolization:function(a,b){this.readers.wms.UserDefinedSymbolization.apply(this,[a,b]);b.userSymbols.inlineFeature=parseInt(a.getAttribute("InlineFeature"))==1;b.userSymbols.remoteWCS=parseInt(a.getAttribute("RemoteWCS"))==1},DescribeLayer:function(a,b){this.readers.wms.DescribeLayer.apply(this,[a,b])},GetLegendGraphic:function(a,
b){this.readers.wms.GetLegendGraphic.apply(this,[a,b])}}},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_3"});
OpenLayers.Layer.Yahoo=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:0,MAX_ZOOM_LEVEL:17,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.145767211914062E-5,1.072883605957031E-5],type:null,wrapDateLine:true,sphericalMercator:false,initialize:function(a,
b){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);this.sphericalMercator&&(OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator),this.initMercatorParameters())},loadMapObject:function(){try{var a=this.getMapObjectSizeFromOLSize(this.map.getSize());this.mapObject=new YMap(this.div,this.type,a);this.mapObject.disableKeyControls();this.mapObject.disableDragMap();if(!this.mapObject.moveByXY||typeof this.mapObject.moveByXY!=
"function")this.dragPanMapObject=null}catch(b){}},onMapResize:function(){try{this.mapObject.resizeTo(this.getMapObjectSizeFromOLSize(this.map.getSize()))}catch(a){}},setMap:function(a){OpenLayers.Layer.EventPane.prototype.setMap.apply(this,arguments);this.map.events.register("moveend",this,this.fixYahooEventPane)},fixYahooEventPane:function(){var a=OpenLayers.Util.getElement("ygddfdiv");a!=null&&(a.parentNode!=null&&a.parentNode.removeChild(a),this.map.events.unregister("moveend",this,this.fixYahooEventPane))},
getWarningHTML:function(){return OpenLayers.i18n("getLayerWarning",{layerType:"Yahoo",layerLib:"Yahoo"})},getOLZoomFromMapObjectZoom:function(a){var b=null;a!=null&&(b=OpenLayers.Layer.FixedZoomLevels.prototype.getOLZoomFromMapObjectZoom.apply(this,[a]),b=18-b);return b},getMapObjectZoomFromOLZoom:function(a){var b=null;a!=null&&(b=OpenLayers.Layer.FixedZoomLevels.prototype.getMapObjectZoomFromOLZoom.apply(this,[a]),b=18-b);return b},setMapObjectCenter:function(a,b){this.mapObject.drawZoomAndCenter(a,
b)},getMapObjectCenter:function(){return this.mapObject.getCenterLatLon()},dragPanMapObject:function(a,b){this.mapObject.moveByXY({x:-a,y:b})},getMapObjectZoom:function(){return this.mapObject.getZoomLevel()},getMapObjectLonLatFromMapObjectPixel:function(a){return this.mapObject.convertXYLatLon(a)},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.convertLatLonXY(a)},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Lon,a.Lat).lon:
a.Lon},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Lon,a.Lat).lat:a.Lat},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),c=new YGeoPoint(c.lat,c.lon)):c=new YGeoPoint(b,a);return c},getXFromMapObjectPixel:function(a){return a.x},getYFromMapObjectPixel:function(a){return a.y},getMapObjectPixelFromXY:function(a,b){return new YCoordPoint(a,b)},getMapObjectSizeFromOLSize:function(a){return new YSize(a.w,
a.h)},CLASS_NAME:"OpenLayers.Layer.Yahoo"});
OpenLayers.Layer.PointGrid=OpenLayers.Class(OpenLayers.Layer.Vector,{dx:null,dy:null,ratio:1.5,maxFeatures:250,rotation:0,origin:null,gridBounds:null,initialize:function(a){a=a||{};OpenLayers.Layer.Vector.prototype.initialize.apply(this,[a.name,a])},setMap:function(a){OpenLayers.Layer.Vector.prototype.setMap.apply(this,arguments);a.events.register("moveend",this,this.onMoveEnd)},removeMap:function(a){a.events.unregister("moveend",this,this.onMoveEnd);OpenLayers.Layer.Vector.prototype.removeMap.apply(this,arguments)},
setRatio:function(a){this.ratio=a;this.updateGrid(true)},setMaxFeatures:function(a){this.maxFeatures=a;this.updateGrid(true)},setSpacing:function(a,b){this.dx=a;this.dy=b||a;this.updateGrid(true)},setOrigin:function(a){this.origin=a;this.updateGrid(true)},getOrigin:function(){if(!this.origin)this.origin=this.map.getExtent().getCenterLonLat();return this.origin},setRotation:function(a){this.rotation=a;this.updateGrid(true)},onMoveEnd:function(){this.updateGrid()},getViewBounds:function(){var a=this.map.getExtent();
if(this.rotation){var b=this.getOrigin(),b=new OpenLayers.Geometry.Point(b.lon,b.lat),a=a.toGeometry();a.rotate(-this.rotation,b);a=a.getBounds()}return a},updateGrid:function(a){if(a||this.invalidBounds()){var b=this.getViewBounds(),c=this.getOrigin(),a=new OpenLayers.Geometry.Point(c.lon,c.lat),d=b.getWidth(),e=b.getHeight(),f=d/e,g=Math.sqrt(this.dx*this.dy*this.maxFeatures/f),d=Math.min(d*this.ratio,g*f),e=Math.min(e*this.ratio,g),b=b.getCenterLonLat();this.gridBounds=new OpenLayers.Bounds(b.lon-
d/2,b.lat-e/2,b.lon+d/2,b.lat+e/2);for(var b=Math.floor(e/this.dy),d=Math.floor(d/this.dx),e=c.lon+this.dx*Math.ceil((this.gridBounds.left-c.lon)/this.dx),c=c.lat+this.dy*Math.ceil((this.gridBounds.bottom-c.lat)/this.dy),g=Array(b*d),h,i=0;i<d;++i)for(var f=e+i*this.dx,j=0;j<b;++j)h=c+j*this.dy,h=new OpenLayers.Geometry.Point(f,h),this.rotation&&h.rotate(this.rotation,a),g[i*b+j]=new OpenLayers.Feature.Vector(h);this.destroyFeatures(this.features,{silent:true});this.addFeatures(g,{silent:true})}},
invalidBounds:function(){return!this.gridBounds||!this.gridBounds.containsBounds(this.getViewBounds())},CLASS_NAME:"OpenLayers.Layer.PointGrid"});
OpenLayers.Layer.Zoomify=OpenLayers.Class(OpenLayers.Layer.Grid,{url:null,size:null,isBaseLayer:true,standardTileSize:256,tileOriginCorner:"tl",numberOfTiers:0,tileCountUpToTier:[],tierSizeInTiles:[],tierImageSize:[],initialize:function(a,b,c,d){this.initializeZoomify(c);var e=[];e.push(a,b,c,{},d);OpenLayers.Layer.Grid.prototype.initialize.apply(this,e)},initializeZoomify:function(a){var a=a.clone(),b=new OpenLayers.Size(Math.ceil(a.w/this.standardTileSize),Math.ceil(a.h/this.standardTileSize));
this.tierSizeInTiles.push(b);for(this.tierImageSize.push(a);a.w>this.standardTileSize||a.h>this.standardTileSize;)a=new OpenLayers.Size(Math.floor(a.w/2),Math.floor(a.h/2)),b=new OpenLayers.Size(Math.ceil(a.w/this.standardTileSize),Math.ceil(a.h/this.standardTileSize)),this.tierSizeInTiles.push(b),this.tierImageSize.push(a);this.tierSizeInTiles.reverse();this.tierImageSize.reverse();this.numberOfTiers=this.tierSizeInTiles.length;this.tileCountUpToTier[0]=0;for(a=1;a<this.numberOfTiers;a++)this.tileCountUpToTier.push(this.tierSizeInTiles[a-
1].w*this.tierSizeInTiles[a-1].h+this.tileCountUpToTier[a-1])},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments);this.tileCountUpToTier.length=0;this.tierSizeInTiles.length=0;this.tierImageSize.length=0},clone:function(a){a==null&&(a=new OpenLayers.Layer.Zoomify(this.name,this.url,this.size,this.options));return a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a])},getURL:function(a){var a=this.adjustBounds(a),b=this.map.getResolution(),c=Math.round((a.left-this.tileOrigin.lon)/
(b*this.tileSize.w)),a=Math.round((this.tileOrigin.lat-a.top)/(b*this.tileSize.h)),b=this.map.getZoom(),c="TileGroup"+Math.floor((c+a*this.tierSizeInTiles[b].w+this.tileCountUpToTier[b])/256)+"/"+b+"-"+c+"-"+a+".jpg",a=this.url;OpenLayers.Util.isArray(a)&&(a=this.selectUrl(c,a));return a+c},getImageSize:function(){if(arguments.length>0){var a=this.adjustBounds(arguments[0]),b=this.map.getResolution(),c=Math.round((a.left-this.tileOrigin.lon)/(b*this.tileSize.w)),a=Math.round((this.tileOrigin.lat-
a.top)/(b*this.tileSize.h)),b=this.map.getZoom(),d=this.standardTileSize,e=this.standardTileSize;c==this.tierSizeInTiles[b].w-1&&(d=this.tierImageSize[b].w%this.standardTileSize);a==this.tierSizeInTiles[b].h-1&&(e=this.tierImageSize[b].h%this.standardTileSize);return new OpenLayers.Size(d,e)}else return this.tileSize},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);this.tileOrigin=new OpenLayers.LonLat(this.map.maxExtent.left,this.map.maxExtent.top)},calculateGridLayout:function(a,
b,c){var d=c*this.tileSize.w;c*=this.tileSize.h;var e=a.left-b.lon,f=Math.floor(e/d)-this.buffer,a=b.lat-a.top+c,g=Math.floor(a/c)-this.buffer;return{tilelon:d,tilelat:c,tileoffsetlon:b.lon+f*d,tileoffsetlat:b.lat-c*g,tileoffsetx:-(e/d-f)*this.tileSize.w,tileoffsety:(g-a/c)*this.tileSize.h}},CLASS_NAME:"OpenLayers.Layer.Zoomify"});
OpenLayers.Handler.Keyboard=OpenLayers.Class(OpenLayers.Handler,{KEY_EVENTS:["keydown","keyup"],eventListener:null,initialize:function(a,b,c){OpenLayers.Handler.prototype.initialize.apply(this,arguments);this.eventListener=OpenLayers.Function.bindAsEventListener(this.handleKeyEvent,this)},destroy:function(){this.deactivate();this.eventListener=null;OpenLayers.Handler.prototype.destroy.apply(this,arguments)},activate:function(){if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){for(var a=
0,b=this.KEY_EVENTS.length;a<b;a++)OpenLayers.Event.observe(document,this.KEY_EVENTS[a],this.eventListener);return true}else return false},deactivate:function(){var a=false;if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){for(var a=0,b=this.KEY_EVENTS.length;a<b;a++)OpenLayers.Event.stopObserving(document,this.KEY_EVENTS[a],this.eventListener);a=true}return a},handleKeyEvent:function(a){this.checkModifiers(a)&&this.callback(a.type,[a])},CLASS_NAME:"OpenLayers.Handler.Keyboard"});
OpenLayers.Handler.RegularPolygon=OpenLayers.Class(OpenLayers.Handler.Drag,{sides:4,radius:null,snapAngle:null,snapToggle:"shiftKey",layerOptions:null,persist:false,irregular:false,angle:null,fixedRadius:false,feature:null,layer:null,origin:null,initialize:function(a,b,c){if(!c||!c.layerOptions||!c.layerOptions.styleMap)this.style=OpenLayers.Util.extend(OpenLayers.Feature.Vector.style["default"],{});OpenLayers.Handler.Drag.prototype.initialize.apply(this,[a,b,c]);this.options=c?c:{}},setOptions:function(a){OpenLayers.Util.extend(this.options,
a);OpenLayers.Util.extend(this,a)},activate:function(){var a=false;if(OpenLayers.Handler.Drag.prototype.activate.apply(this,arguments))a=OpenLayers.Util.extend({displayInLayerSwitcher:false,calculateInRange:OpenLayers.Function.True},this.layerOptions),this.layer=new OpenLayers.Layer.Vector(this.CLASS_NAME,a),this.map.addLayer(this.layer),a=true;return a},deactivate:function(){var a=false;if(OpenLayers.Handler.Drag.prototype.deactivate.apply(this,arguments))this.dragging&&this.cancel(),this.layer.map!=
null&&(this.layer.destroy(false),this.feature&&this.feature.destroy()),this.feature=this.layer=null,a=true;return a},down:function(a){this.fixedRadius=!!this.radius;a=this.map.getLonLatFromPixel(a.xy);this.origin=new OpenLayers.Geometry.Point(a.lon,a.lat);if(!this.fixedRadius||this.irregular)this.radius=this.map.getResolution();this.persist&&this.clear();this.feature=new OpenLayers.Feature.Vector;this.createGeometry();this.callback("create",[this.origin,this.feature]);this.layer.addFeatures([this.feature],
{silent:true});this.layer.drawFeature(this.feature,this.style)},move:function(a){var b=this.map.getLonLatFromPixel(a.xy),b=new OpenLayers.Geometry.Point(b.lon,b.lat);this.irregular?(a=Math.sqrt(2)*Math.abs(b.y-this.origin.y)/2,this.radius=Math.max(this.map.getResolution()/2,a)):this.fixedRadius?this.origin=b:(this.calculateAngle(b,a),this.radius=Math.max(this.map.getResolution()/2,b.distanceTo(this.origin)));this.modifyGeometry();this.irregular&&(a=b.x-this.origin.x,b=b.y-this.origin.y,this.feature.geometry.resize(1,
this.origin,b==0?a/(this.radius*Math.sqrt(2)):a/b),this.feature.geometry.move(a/2,b/2));this.layer.drawFeature(this.feature,this.style)},up:function(a){this.finalize();this.start==this.last&&this.callback("done",[a.xy])},out:function(){this.finalize()},createGeometry:function(){this.angle=Math.PI*(1/this.sides-0.5);this.snapAngle&&(this.angle+=this.snapAngle*(Math.PI/180));this.feature.geometry=OpenLayers.Geometry.Polygon.createRegularPolygon(this.origin,this.radius,this.sides,this.snapAngle)},modifyGeometry:function(){var a,
b,c=this.feature.geometry.components[0];c.components.length!=this.sides+1&&(this.createGeometry(),c=this.feature.geometry.components[0]);for(var d=0;d<this.sides;++d)b=c.components[d],a=this.angle+d*2*Math.PI/this.sides,b.x=this.origin.x+this.radius*Math.cos(a),b.y=this.origin.y+this.radius*Math.sin(a),b.clearBounds()},calculateAngle:function(a,b){var c=Math.atan2(a.y-this.origin.y,a.x-this.origin.x);if(this.snapAngle&&this.snapToggle&&!b[this.snapToggle]){var d=Math.PI/180*this.snapAngle;this.angle=
Math.round(c/d)*d}else this.angle=c},cancel:function(){this.callback("cancel",null);this.finalize()},finalize:function(){this.origin=null;this.radius=this.options.radius},clear:function(){this.layer&&(this.layer.renderer.clear(),this.layer.destroyFeatures())},callback:function(a){this.callbacks[a]&&this.callbacks[a].apply(this.control,[this.feature.geometry.clone()]);!this.persist&&(a=="done"||a=="cancel")&&this.clear()},CLASS_NAME:"OpenLayers.Handler.RegularPolygon"});
OpenLayers.Format.CQL=function(){function a(a){function b(){var a=e.pop();switch(a.type){case "LOGICAL":var c=b(),g=b();return new OpenLayers.Filter.Logical({filters:[g,c],type:f[a.text.toUpperCase()]});case "NOT":return c=b(),new OpenLayers.Filter.Logical({filters:[c],type:OpenLayers.Filter.Logical.NOT});case "BETWEEN":return e.pop(),g=b(),a=b(),c=b(),new OpenLayers.Filter.Comparison({property:c,lowerBoundary:a,upperBoundary:g,type:OpenLayers.Filter.Comparison.BETWEEN});case "COMPARISON":return g=
b(),c=b(),new OpenLayers.Filter.Comparison({property:c,value:g,type:d[a.text.toUpperCase()]});case "VALUE":return/^'.*'$/.test(a.text)?a.text.substr(1,a.text.length-2):Number(a.text);case "SPATIAL":switch(a.text.toUpperCase()){case "BBOX":var c=b(),a=b(),g=b(),h=b(),i=b();return new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.BBOX,property:i,value:OpenLayers.Bounds.fromArray([h,g,a,c])});case "INTERSECTS":return g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.INTERSECTS,
property:c,value:g});case "WITHIN":return g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.WITHIN,property:c,value:g});case "CONTAINS":return g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.CONTAINS,property:c,value:g});case "DWITHIN":return a=b(),g=b(),c=b(),new OpenLayers.Filter.Spatial({type:OpenLayers.Filter.Spatial.DWITHIN,value:g,property:c,distance:Number(a)})}case "GEOMETRY":return OpenLayers.Geometry.fromWKT(a.text);default:return a.text}}
for(var c=[],e=[];a.length;){var g=a.shift();switch(g.type){case "PROPERTY":case "GEOMETRY":case "VALUE":e.push(g);break;case "COMPARISON":case "BETWEEN":case "LOGICAL":for(var i=h[g.type];c.length>0&&h[c[c.length-1].type]<=i;)e.push(c.pop());c.push(g);break;case "SPATIAL":case "NOT":case "LPAREN":c.push(g);break;case "RPAREN":for(;c.length>0&&c[c.length-1].type!="LPAREN";)e.push(c.pop());c.pop();c.length>0&&c[c.length-1].type=="SPATIAL"&&e.push(c.pop());case "COMMA":case "END":break;default:throw Error("Unknown token type "+
g.type);}}for(;c.length>0;)e.push(c.pop());a=b();if(e.length>0){a="Remaining tokens after building AST: \n";for(c=e.length-1;c>=0;c--)a+=e[c].type+": "+e[c].text+"\n";throw Error(a);}return a}var b={PROPERTY:/^[_a-zA-Z]\w*/,COMPARISON:/^(=|<>|<=|<|>=|>|LIKE)/i,COMMA:/^,/,LOGICAL:/^(AND|OR)/i,VALUE:/^('\w+'|\d+(\.\d*)?|\.\d+)/,LPAREN:/^\(/,RPAREN:/^\)/,SPATIAL:/^(BBOX|INTERSECTS|DWITHIN|WITHIN|CONTAINS)/i,NOT:/^NOT/i,BETWEEN:/^BETWEEN/i,GEOMETRY:function(a){var b=/^(POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)/.exec(a);
if(b){var c=a.length,b=a.indexOf("(",b[0].length);if(b>-1)for(var d=1;b<c&&d>0;)switch(b++,a.charAt(b)){case "(":d++;break;case ")":d--}return[a.substr(0,b+1)]}},END:/^$/},c={LPAREN:["GEOMETRY","SPATIAL","PROPERTY","VALUE","LPAREN"],RPAREN:["NOT","LOGICAL","END","RPAREN"],PROPERTY:["COMPARISON","BETWEEN","COMMA"],BETWEEN:["VALUE"],COMPARISON:["VALUE"],COMMA:["GEOMETRY","VALUE","PROPERTY"],VALUE:["LOGICAL","COMMA","RPAREN","END"],SPATIAL:["LPAREN"],LOGICAL:["NOT","VALUE","SPATIAL","PROPERTY","LPAREN"],
NOT:["PROPERTY","LPAREN"],GEOMETRY:["COMMA","RPAREN"]},d={"=":OpenLayers.Filter.Comparison.EQUAL_TO,"<>":OpenLayers.Filter.Comparison.NOT_EQUAL_TO,"<":OpenLayers.Filter.Comparison.LESS_THAN,"<=":OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO,">":OpenLayers.Filter.Comparison.GREATER_THAN,">=":OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,LIKE:OpenLayers.Filter.Comparison.LIKE,BETWEEN:OpenLayers.Filter.Comparison.BETWEEN},e={},f={AND:OpenLayers.Filter.Logical.AND,OR:OpenLayers.Filter.Logical.OR},
g={},h={RPAREN:3,LOGICAL:2,COMPARISON:1},i;for(i in d)d.hasOwnProperty(i)&&(e[d[i]]=i);for(i in f)f.hasOwnProperty(i)&&(g[f[i]]=i);return OpenLayers.Class(OpenLayers.Format,{read:function(d){var e=d,d=[],f,g=["NOT","GEOMETRY","SPATIAL","PROPERTY","LPAREN"];do{a:{f=g;for(var h=void 0,g=void 0,i=f.length,h=0;h<i;h++){var g=f[h],r=b[g]instanceof RegExp?b[g].exec(e):(0,b[g])(e);if(r){f=r[0];e=e.substr(f.length).replace(/^\s*/,"");f={type:g,text:f,remainder:e};break a}}d="ERROR: In parsing: ["+e+"], expected one of: ";
for(h=0;h<i;h++)g=f[h],d+="\n    "+g+": "+b[g];throw Error(d);}e=f.remainder;g=c[f.type];if(f.type!="END"&&!g)throw Error("No follows list for "+f.type);d.push(f)}while(f.type!="END");d=a(d);if(this.keepData)this.data=d;return d},write:function(a){if(a instanceof OpenLayers.Geometry)return a.toString();switch(a.CLASS_NAME){case "OpenLayers.Filter.Spatial":switch(a.type){case OpenLayers.Filter.Spatial.BBOX:return"BBOX("+a.property+","+a.value.toBBOX()+")";case OpenLayers.Filter.Spatial.DWITHIN:return"DWITHIN("+
a.property+", "+this.write(a.value)+", "+a.distance+")";case OpenLayers.Filter.Spatial.WITHIN:return"WITHIN("+a.property+", "+this.write(a.value)+")";case OpenLayers.Filter.Spatial.INTERSECTS:return"INTERSECTS("+a.property+", "+this.write(a.value)+")";case OpenLayers.Filter.Spatial.CONTAINS:return"CONTAINS("+a.property+", "+this.write(a.value)+")";default:throw Error("Unknown spatial filter type: "+a.type);}case "OpenLayers.Filter.Logical":if(a.type==OpenLayers.Filter.Logical.NOT)return"NOT ("+this.write(a.filters[0])+
")";else{for(var b="(",c=true,d=0;d<a.filters.length;d++)c?c=false:b+=") "+g[a.type]+" (",b+=this.write(a.filters[d]);return b+")"}case "OpenLayers.Filter.Comparison":return a.type==OpenLayers.Filter.Comparison.BETWEEN?a.property+" BETWEEN "+this.write(a.lowerBoundary)+" AND "+this.write(a.upperBoundary):a.property+" "+e[a.type]+" "+this.write(a.value);case void 0:if(typeof a==="string")return"'"+a+"'";else if(typeof a==="number")return String(a);default:throw Error("Can't encode: "+a.CLASS_NAME+
" "+a);}},CLASS_NAME:"OpenLayers.Format.CQL"})}();
OpenLayers.Renderer.VML=OpenLayers.Class(OpenLayers.Renderer.Elements,{xmlns:"urn:schemas-microsoft-com:vml",symbolCache:{},offset:null,initialize:function(a){if(this.supported()){if(!document.namespaces.olv){document.namespaces.add("olv",this.xmlns);for(var b=document.createStyleSheet(),c="shape,rect,oval,fill,stroke,imagedata,group,textbox".split(","),d=0,e=c.length;d<e;d++)b.addRule("olv\\:"+c[d],"behavior: url(#default#VML); position: absolute; display: inline-block;")}OpenLayers.Renderer.Elements.prototype.initialize.apply(this,arguments)}},
supported:function(){return!!document.namespaces},setExtent:function(a,b){OpenLayers.Renderer.Elements.prototype.setExtent.apply(this,arguments);var c=this.getResolution(),d=a.left/c|0,c=a.top/c-this.size.h|0;b||!this.offset?(this.offset={x:d,y:c},c=d=0):(d-=this.offset.x,c-=this.offset.y);this.root.coordorigin=d+" "+c;for(var d=[this.root,this.vectorRoot,this.textRoot],e=0,f=d.length;e<f;++e)c=d[e],c.coordsize=this.size.w+" "+this.size.h;this.root.style.flip="y";return true},setSize:function(a){OpenLayers.Renderer.prototype.setSize.apply(this,
arguments);for(var b=[this.rendererRoot,this.root,this.vectorRoot,this.textRoot],c=this.size.w+"px",d=this.size.h+"px",e,f=0,g=b.length;f<g;++f)e=b[f],e.style.width=c,e.style.height=d},getNodeType:function(a,b){var c=null;switch(a.CLASS_NAME){case "OpenLayers.Geometry.Point":c=b.externalGraphic?"olv:rect":this.isComplexSymbol(b.graphicName)?"olv:shape":"olv:oval";break;case "OpenLayers.Geometry.Rectangle":c="olv:rect";break;case "OpenLayers.Geometry.LineString":case "OpenLayers.Geometry.LinearRing":case "OpenLayers.Geometry.Polygon":case "OpenLayers.Geometry.Curve":case "OpenLayers.Geometry.Surface":c=
"olv:shape"}return c},setStyle:function(a,b,c,d){var b=b||a._style,c=c||a._options,e=b.fillColor;if(a._geometryClass==="OpenLayers.Geometry.Point")if(b.externalGraphic){c.isFilled=true;if(b.graphicTitle)a.title=b.graphicTitle;var e=b.graphicWidth||b.graphicHeight,f=b.graphicHeight||b.graphicWidth,e=e?e:b.pointRadius*2,f=f?f:b.pointRadius*2,g=this.getResolution(),h=b.graphicXOffset!=void 0?b.graphicXOffset:-(0.5*e),i=b.graphicYOffset!=void 0?b.graphicYOffset:-(0.5*f);a.style.left=(d.x/g-this.offset.x+
h|0)+"px";a.style.top=(d.y/g-this.offset.y-(i+f)|0)+"px";a.style.width=e+"px";a.style.height=f+"px";a.style.flip="y";e="none";c.isStroked=false}else this.isComplexSymbol(b.graphicName)?(f=this.importSymbol(b.graphicName),a.path=f.path,a.coordorigin=f.left+","+f.bottom,f=f.size,a.coordsize=f+","+f,this.drawCircle(a,d,b.pointRadius),a.style.flip="y"):this.drawCircle(a,d,b.pointRadius);c.isFilled?a.fillcolor=e:a.filled="false";d=a.getElementsByTagName("fill");d=d.length==0?null:d[0];if(c.isFilled){d||
(d=this.createNode("olv:fill",a.id+"_fill"));d.opacity=b.fillOpacity;if(a._geometryClass==="OpenLayers.Geometry.Point"&&b.externalGraphic){if(b.graphicOpacity)d.opacity=b.graphicOpacity;d.src=b.externalGraphic;d.type="frame";if(!b.graphicWidth||!b.graphicHeight)d.aspect="atmost"}d.parentNode!=a&&a.appendChild(d)}else d&&a.removeChild(d);e=b.rotation;if(e!==void 0||a._rotation!==void 0)if(a._rotation=e,b.externalGraphic)this.graphicRotate(a,h,i,b),d.opacity=0;else if(a._geometryClass==="OpenLayers.Geometry.Point")a.style.rotation=
e||0;h=a.getElementsByTagName("stroke");h=h.length==0?null:h[0];if(c.isStroked){if(h||(h=this.createNode("olv:stroke",a.id+"_stroke"),a.appendChild(h)),h.on=true,h.color=b.strokeColor,h.weight=b.strokeWidth+"px",h.opacity=b.strokeOpacity,h.endcap=b.strokeLinecap=="butt"?"flat":b.strokeLinecap||"round",b.strokeDashstyle)h.dashstyle=this.dashStyle(b)}else if(a.stroked=false,h)h.on=false;if(b.cursor!="inherit"&&b.cursor!=null)a.style.cursor=b.cursor;return a},graphicRotate:function(a,b,c,d){var d=d||
a._style,e=d.rotation||0,f,g;if(!d.graphicWidth||!d.graphicHeight){var h=new Image;h.onreadystatechange=OpenLayers.Function.bind(function(){if(h.readyState=="complete"||h.readyState=="interactive")f=h.width/h.height,g=Math.max(d.pointRadius*2,d.graphicWidth||0,d.graphicHeight||0),b*=f,d.graphicWidth=g*f,d.graphicHeight=g,this.graphicRotate(a,b,c,d)},this);h.src=d.externalGraphic}else{g=Math.max(d.graphicWidth,d.graphicHeight);f=d.graphicWidth/d.graphicHeight;var i=Math.round(d.graphicWidth||g*f),
j=Math.round(d.graphicHeight||g);a.style.width=i+"px";a.style.height=j+"px";var k=document.getElementById(a.id+"_image");k||(k=this.createNode("olv:imagedata",a.id+"_image"),a.appendChild(k));k.style.width=i+"px";k.style.height=j+"px";k.src=d.externalGraphic;k.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='', sizingMethod='scale')";k=e*Math.PI/180;e=Math.sin(k);k=Math.cos(k);e="progid:DXImageTransform.Microsoft.Matrix(M11="+k+",M12="+-e+",M21="+e+",M22="+k+",SizingMethod='auto expand')\n";
(k=d.graphicOpacity||d.fillOpacity)&&k!=1&&(e+="progid:DXImageTransform.Microsoft.BasicImage(opacity="+k+")\n");a.style.filter=e;e=new OpenLayers.Geometry.Point(-b,-c);i=(new OpenLayers.Bounds(0,0,i,j)).toGeometry();i.rotate(d.rotation,e);i=i.getBounds();a.style.left=Math.round(parseInt(a.style.left)+i.left)+"px";a.style.top=Math.round(parseInt(a.style.top)-i.bottom)+"px"}},postDraw:function(a){a.style.visibility="visible";var b=a._style.fillColor,c=a._style.strokeColor;if(b=="none"&&a.fillcolor!=
b)a.fillcolor=b;if(c=="none"&&a.strokecolor!=c)a.strokecolor=c},setNodeDimension:function(a,b){var c=b.getBounds();if(c){var d=this.getResolution(),c=new OpenLayers.Bounds(c.left/d-this.offset.x|0,c.bottom/d-this.offset.y|0,c.right/d-this.offset.x|0,c.top/d-this.offset.y|0);a.style.left=c.left+"px";a.style.top=c.top+"px";a.style.width=c.getWidth()+"px";a.style.height=c.getHeight()+"px";a.coordorigin=c.left+" "+c.top;a.coordsize=c.getWidth()+" "+c.getHeight()}},dashStyle:function(a){a=a.strokeDashstyle;
switch(a){case "solid":case "dot":case "dash":case "dashdot":case "longdash":case "longdashdot":return a;default:a=a.split(/[ ,]/);if(a.length==2)return 1*a[0]>=2*a[1]?"longdash":a[0]==1||a[1]==1?"dot":"dash";else if(a.length==4)return 1*a[0]>=2*a[1]?"longdashdot":"dashdot";return"solid"}},createNode:function(a,b){var c=document.createElement(a);if(b)c.id=b;c.unselectable="on";c.onselectstart=OpenLayers.Function.False;return c},nodeTypeCompare:function(a,b){var c=b,d=c.indexOf(":");d!=-1&&(c=c.substr(d+
1));var e=a.nodeName,d=e.indexOf(":");d!=-1&&(e=e.substr(d+1));return c==e},createRenderRoot:function(){return this.nodeFactory(this.container.id+"_vmlRoot","div")},createRoot:function(a){return this.nodeFactory(this.container.id+a,"olv:group")},drawPoint:function(a,b){return this.drawCircle(a,b,1)},drawCircle:function(a,b,c){if(!isNaN(b.x)&&!isNaN(b.y)){var d=this.getResolution();a.style.left=(b.x/d-this.offset.x|0)-c+"px";a.style.top=(b.y/d-this.offset.y|0)-c+"px";b=c*2;a.style.width=b+"px";a.style.height=
b+"px";return a}return false},drawLineString:function(a,b){return this.drawLine(a,b,false)},drawLinearRing:function(a,b){return this.drawLine(a,b,true)},drawLine:function(a,b,c){this.setNodeDimension(a,b);for(var d=this.getResolution(),e=b.components.length,f=Array(e),g,h,i=0;i<e;i++)g=b.components[i],h=g.x/d-this.offset.x|0,g=g.y/d-this.offset.y|0,f[i]=" "+h+","+g+" l ";a.path="m"+f.join("")+(c?" x e":" e");return a},drawPolygon:function(a,b){this.setNodeDimension(a,b);var c=this.getResolution(),
d=[],e,f,g,h,i,j,k,l,m,n;for(e=0,f=b.components.length;e<f;e++){d.push("m");g=b.components[e].components;h=e===0;j=i=null;for(k=0,l=g.length;k<l;k++)m=g[k],n=m.x/c-this.offset.x|0,m=m.y/c-this.offset.y|0,n=" "+n+","+m,d.push(n),k==0&&d.push(" l"),h||(i?i!=n&&(j?j!=n&&(h=true):j=n):i=n);d.push(h?" x ":" ")}d.push("e");a.path=d.join("");return a},drawRectangle:function(a,b){var c=this.getResolution();a.style.left=(b.x/c-this.offset.x|0)+"px";a.style.top=(b.y/c-this.offset.y|0)+"px";a.style.width=(b.width/
c|0)+"px";a.style.height=(b.height/c|0)+"px";return a},drawText:function(a,b,c){var d=this.nodeFactory(a+this.LABEL_ID_SUFFIX,"olv:rect"),e=this.nodeFactory(a+this.LABEL_ID_SUFFIX+"_textbox","olv:textbox"),f=this.getResolution();d.style.left=(c.x/f-this.offset.x|0)+"px";d.style.top=(c.y/f-this.offset.y|0)+"px";d.style.flip="y";e.innerText=b.label;if(b.cursor!="inherit"&&b.cursor!=null)e.style.cursor=b.cursor;if(b.fontColor)e.style.color=b.fontColor;if(b.fontOpacity)e.style.filter="alpha(opacity="+
b.fontOpacity*100+")";if(b.fontFamily)e.style.fontFamily=b.fontFamily;if(b.fontSize)e.style.fontSize=b.fontSize;if(b.fontWeight)e.style.fontWeight=b.fontWeight;if(b.fontStyle)e.style.fontStyle=b.fontStyle;if(b.labelSelect===true)d._featureId=a,e._featureId=a,e._geometry=c,e._geometryClass=c.CLASS_NAME;e.style.whiteSpace="nowrap";e.inset="1px,0px,0px,0px";d.parentNode||(d.appendChild(e),this.textRoot.appendChild(d));b=b.labelAlign||"cm";b.length==1&&(b+="m");a=e.clientWidth*OpenLayers.Renderer.VML.LABEL_SHIFT[b.substr(0,
1)];e=e.clientHeight*OpenLayers.Renderer.VML.LABEL_SHIFT[b.substr(1,1)];d.style.left=parseInt(d.style.left)-a-1+"px";d.style.top=parseInt(d.style.top)+e+"px"},drawSurface:function(a,b){this.setNodeDimension(a,b);for(var c=this.getResolution(),d=[],e,f,g=0,h=b.components.length;g<h;g++)e=b.components[g],f=e.x/c-this.offset.x|0,e=e.y/c-this.offset.y|0,g%3==0&&g/3==0?d.push("m"):g%3==1&&d.push(" c"),d.push(" "+f+","+e);d.push(" x e");a.path=d.join("");return a},moveRoot:function(a){var b=this.map.getLayer(a.container.id);
b instanceof OpenLayers.Layer.Vector.RootContainer&&(b=this.map.getLayer(this.container.id));b&&b.renderer.clear();OpenLayers.Renderer.Elements.prototype.moveRoot.apply(this,arguments);b&&b.redraw()},importSymbol:function(a){var b=this.container.id+"-"+a,c=this.symbolCache[b];if(c)return c;c=OpenLayers.Renderer.symbol[a];if(!c)throw Error(a+" is not a valid symbol name");for(var a=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0),d=["m"],e=0;e<c.length;e+=2){var f=c[e],g=c[e+1];a.left=
Math.min(a.left,f);a.bottom=Math.min(a.bottom,g);a.right=Math.max(a.right,f);a.top=Math.max(a.top,g);d.push(f);d.push(g);e==0&&d.push("l")}d.push("x e");c=d.join(" ");d=(a.getWidth()-a.getHeight())/2;d>0?(a.bottom-=d,a.top+=d):(a.left+=d,a.right-=d);c={path:c,size:a.getWidth(),left:a.left,bottom:a.bottom};return this.symbolCache[b]=c},CLASS_NAME:"OpenLayers.Renderer.VML"});OpenLayers.Renderer.VML.LABEL_SHIFT={l:0,c:0.5,r:1,t:0,m:0.5,b:1};
OpenLayers.Layer.MultiMap=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:1,MAX_ZOOM_LEVEL:17,RESOLUTIONS:[9,1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5],type:null,initialize:function(a,b){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);
OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);this.sphericalMercator&&(OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator),this.initMercatorParameters(),this.RESOLUTIONS.unshift(10))},loadMapObject:function(){try{this.mapObject=new MultimapViewer(this.div)}catch(a){}},getWarningHTML:function(){return OpenLayers.i18n("getLayerWarning",{layerType:"MM",layerLib:"MultiMap"})},setMapObjectCenter:function(a,b){this.mapObject.goToPosition(a,b)},getMapObjectCenter:function(){return this.mapObject.getCurrentPosition()},
getMapObjectZoom:function(){return this.mapObject.getZoomFactor()},getMapObjectLonLatFromMapObjectPixel:function(a){a.x-=this.map.getSize().w/2;a.y-=this.map.getSize().h/2;return this.mapObject.getMapPositionAt(a)},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.geoPosToContainerPixels(a)},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lon,a.lat).lon:a.lon},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?
this.forwardMercator(a.lon,a.lat).lat:a.lat},getMapObjectLonLatFromLonLat:function(a,b){var c;this.sphericalMercator?(c=this.inverseMercator(a,b),c=new MMLatLon(c.lat,c.lon)):c=new MMLatLon(b,a);return c},getXFromMapObjectPixel:function(a){return a.x},getYFromMapObjectPixel:function(a){return a.y},getMapObjectPixelFromXY:function(a,b){return new MMPoint(a,b)},CLASS_NAME:"OpenLayers.Layer.MultiMap"});
OpenLayers.Control.MouseToolbar=OpenLayers.Class(OpenLayers.Control.MouseDefaults,{mode:null,buttons:null,direction:"vertical",buttonClicked:null,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,arguments);this.position=new OpenLayers.Pixel(OpenLayers.Control.MouseToolbar.X,OpenLayers.Control.MouseToolbar.Y);if(a)this.position=a;if(b)this.direction=b;this.measureDivs=[]},destroy:function(){for(var a in this.buttons){var b=this.buttons[a];b.map=null;b.events.destroy()}OpenLayers.Control.MouseDefaults.prototype.destroy.apply(this,
arguments)},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);OpenLayers.Control.MouseDefaults.prototype.draw.apply(this,arguments);this.buttons={};var a=new OpenLayers.Size(28,28),b=new OpenLayers.Pixel(OpenLayers.Control.MouseToolbar.X,0);this._addButton("zoombox","drag
